dash-ant-design 0.1.0 → 0.1.2
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/README.md +135 -28
- package/dash_antd_components/async-audio-player.js +1 -0
- package/dash_antd_components/async-chart-ava.js +1 -0
- package/dash_antd_components/async-chart.js +1 -0
- package/dash_antd_components/async-data-entry.js +1 -0
- package/dash_antd_components/async-display.js +1 -1
- package/dash_antd_components/async-dnd-shared.js +1 -0
- package/dash_antd_components/async-dnd.js +1 -1
- package/dash_antd_components/async-feedback.js +1 -1
- package/dash_antd_components/async-form-upload.js +1 -0
- package/dash_antd_components/async-highlight-shared.js +1 -0
- package/dash_antd_components/async-highlight.js +1 -0
- package/dash_antd_components/async-icon-filled.js +1 -0
- package/dash_antd_components/async-icon-outlined.js +1 -0
- package/dash_antd_components/async-icon-twotone.js +1 -0
- package/dash_antd_components/async-infographic.js +1 -1
- package/dash_antd_components/async-locale-ar.js +1 -0
- package/dash_antd_components/async-locale-az.js +1 -0
- package/dash_antd_components/async-locale-bg.js +1 -0
- package/dash_antd_components/async-locale-bn.js +1 -0
- package/dash_antd_components/async-locale-by.js +1 -0
- package/dash_antd_components/async-locale-ca.js +1 -0
- package/dash_antd_components/async-locale-cs.js +1 -0
- package/dash_antd_components/async-locale-da.js +1 -0
- package/dash_antd_components/async-locale-de.js +1 -0
- package/dash_antd_components/async-locale-el.js +1 -0
- package/dash_antd_components/async-locale-en.js +1 -0
- package/dash_antd_components/async-locale-es.js +1 -0
- package/dash_antd_components/async-locale-et.js +1 -0
- package/dash_antd_components/async-locale-eu.js +1 -0
- package/dash_antd_components/async-locale-fa.js +1 -0
- package/dash_antd_components/async-locale-fi.js +1 -0
- package/dash_antd_components/async-locale-fr.js +1 -0
- package/dash_antd_components/async-locale-ga.js +1 -0
- package/dash_antd_components/async-locale-gl.js +1 -0
- package/dash_antd_components/async-locale-he.js +1 -0
- package/dash_antd_components/async-locale-hi.js +1 -0
- package/dash_antd_components/async-locale-hr.js +1 -0
- package/dash_antd_components/async-locale-hu.js +1 -0
- package/dash_antd_components/async-locale-hy.js +1 -0
- package/dash_antd_components/async-locale-id.js +1 -0
- package/dash_antd_components/async-locale-is.js +1 -0
- package/dash_antd_components/async-locale-it.js +1 -0
- package/dash_antd_components/async-locale-ja.js +1 -0
- package/dash_antd_components/async-locale-ka.js +1 -0
- package/dash_antd_components/async-locale-kk.js +1 -0
- package/dash_antd_components/async-locale-km.js +1 -0
- package/dash_antd_components/async-locale-kmr.js +1 -0
- package/dash_antd_components/async-locale-kn.js +1 -0
- package/dash_antd_components/async-locale-ko.js +1 -0
- package/dash_antd_components/async-locale-ku.js +1 -0
- package/dash_antd_components/async-locale-lt.js +1 -0
- package/dash_antd_components/async-locale-lv.js +1 -0
- package/dash_antd_components/async-locale-mk.js +1 -0
- package/dash_antd_components/async-locale-ml.js +1 -0
- package/dash_antd_components/async-locale-mn.js +1 -0
- package/dash_antd_components/async-locale-mr.js +1 -0
- package/dash_antd_components/async-locale-ms.js +1 -0
- package/dash_antd_components/async-locale-my.js +1 -0
- package/dash_antd_components/async-locale-nb.js +1 -0
- package/dash_antd_components/async-locale-ne.js +1 -0
- package/dash_antd_components/async-locale-nl.js +1 -0
- package/dash_antd_components/async-locale-pl.js +1 -0
- package/dash_antd_components/async-locale-pt.js +1 -0
- package/dash_antd_components/async-locale-ro.js +1 -0
- package/dash_antd_components/async-locale-ru.js +1 -0
- package/dash_antd_components/async-locale-si.js +1 -0
- package/dash_antd_components/async-locale-sk.js +1 -0
- package/dash_antd_components/async-locale-sl.js +1 -0
- package/dash_antd_components/async-locale-sq.js +1 -0
- package/dash_antd_components/async-locale-sr.js +1 -0
- package/dash_antd_components/async-locale-sv.js +1 -0
- package/dash_antd_components/async-locale-ta.js +1 -0
- package/dash_antd_components/async-locale-th.js +1 -0
- package/dash_antd_components/async-locale-tk.js +1 -0
- package/dash_antd_components/async-locale-tr.js +1 -0
- package/dash_antd_components/async-locale-uk.js +1 -0
- package/dash_antd_components/async-locale-ur.js +1 -0
- package/dash_antd_components/async-locale-uz.js +1 -0
- package/dash_antd_components/async-locale-vi.js +1 -0
- package/dash_antd_components/async-locale-zh.js +1 -0
- package/dash_antd_components/async-lottie.js +1 -0
- package/dash_antd_components/async-markdown.js +1 -1
- package/dash_antd_components/async-media-shared.js +1 -0
- package/dash_antd_components/async-media.js +1 -1
- package/dash_antd_components/async-navigation.js +1 -0
- package/dash_antd_components/async-picker.js +1 -1
- package/dash_antd_components/async-select.js +1 -1
- package/dash_antd_components/async-sheet.js +1 -0
- package/dash_antd_components/async-socket-io.js +1 -0
- package/dash_antd_components/async-table.js +1 -1
- package/dash_antd_components/async-tree.js +1 -1
- package/dash_antd_components/async-video-dash.js +1 -0
- package/dash_antd_components/async-video-hls.js +1 -0
- package/dash_antd_components/async-video-player.js +1 -0
- package/dash_antd_components/async-viz-canvas-shared.js +1 -0
- package/dash_antd_components/async-viz-shared.js +1 -0
- package/dash_antd_components/dash_antd_components.js +1 -1
- package/package.json +43 -44
- package/dash_antd_components/async-anchor.js +0 -1
- package/dash_antd_components/async-breadcrumb.js +0 -1
- package/dash_antd_components/async-cascader.js +0 -1
- package/dash_antd_components/async-controls.js +0 -1
- package/dash_antd_components/async-count.js +0 -1
- package/dash_antd_components/async-echarts.js +0 -1
- package/dash_antd_components/async-filled-icon.js +0 -1
- package/dash_antd_components/async-floating.js +0 -1
- package/dash_antd_components/async-form.js +0 -1
- package/dash_antd_components/async-g2.js +0 -1
- package/dash_antd_components/async-input.js +0 -1
- package/dash_antd_components/async-layout.js +0 -1
- package/dash_antd_components/async-locale.js +0 -1
- package/dash_antd_components/async-lunar-calendar.js +0 -1
- package/dash_antd_components/async-mentions.js +0 -1
- package/dash_antd_components/async-menu.js +0 -1
- package/dash_antd_components/async-outlined-icon.js +0 -1
- package/dash_antd_components/async-overlay.js +0 -1
- package/dash_antd_components/async-pagination.js +0 -1
- package/dash_antd_components/async-prism.js +0 -1
- package/dash_antd_components/async-s2.js +0 -1
- package/dash_antd_components/async-steps.js +0 -1
- package/dash_antd_components/async-tabs.js +0 -1
- package/dash_antd_components/async-transfer.js +0 -1
- package/dash_antd_components/async-twotone-icon.js +0 -1
- package/dash_antd_components/async-upload.js +0 -1
- package/dash_antd_components/proptypes.js +0 -5051
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunkdash_antd_components=self.webpackChunkdash_antd_components||[]).push([["async-infographic"],{"./node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.js"(t){"use strict";var e=Object.prototype.hasOwnProperty,n="~";function r(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(t,e,r,o,s){if("function"!=typeof r)throw new TypeError("The listener must be a function");var a=new i(r,o||t,s),l=n?n+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],a]:t._events[l].push(a):(t._events[l]=a,t._eventsCount++),t}function s(t,e){0===--t._eventsCount?t._events=new r:delete t._events[e]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),a.prototype.eventNames=function(){var t,r,i=[];if(0===this._eventsCount)return i;for(r in t=this._events)e.call(t,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},a.prototype.listeners=function(t){var e=this._events[n?n+t:t];if(!e)return[];if(e.fn)return[e.fn];for(var r=0,i=e.length,o=new Array(i);r<i;r++)o[r]=e[r].fn;return o},a.prototype.listenerCount=function(t){var e=this._events[n?n+t:t];return e?e.fn?1:e.length:0},a.prototype.emit=function(t,e,r,i,o,s){var a=n?n+t:t;if(!this._events[a])return!1;var l,c,h=this._events[a],u=arguments.length;if(h.fn){switch(h.once&&this.removeListener(t,h.fn,void 0,!0),u){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,e),!0;case 3:return h.fn.call(h.context,e,r),!0;case 4:return h.fn.call(h.context,e,r,i),!0;case 5:return h.fn.call(h.context,e,r,i,o),!0;case 6:return h.fn.call(h.context,e,r,i,o,s),!0}for(c=1,l=new Array(u-1);c<u;c++)l[c-1]=arguments[c];h.fn.apply(h.context,l)}else{var d,f=h.length;for(c=0;c<f;c++)switch(h[c].once&&this.removeListener(t,h[c].fn,void 0,!0),u){case 1:h[c].fn.call(h[c].context);break;case 2:h[c].fn.call(h[c].context,e);break;case 3:h[c].fn.call(h[c].context,e,r);break;case 4:h[c].fn.call(h[c].context,e,r,i);break;default:if(!l)for(d=1,l=new Array(u-1);d<u;d++)l[d-1]=arguments[d];h[c].fn.apply(h[c].context,l)}}return!0},a.prototype.on=function(t,e,n){return o(this,t,e,n,!1)},a.prototype.once=function(t,e,n){return o(this,t,e,n,!0)},a.prototype.removeListener=function(t,e,r,i){var o=n?n+t:t;if(!this._events[o])return this;if(!e)return s(this,o),this;var a=this._events[o];if(a.fn)a.fn!==e||i&&!a.once||r&&a.context!==r||s(this,o);else{for(var l=0,c=[],h=a.length;l<h;l++)(a[l].fn!==e||i&&!a[l].once||r&&a[l].context!==r)&&c.push(a[l]);c.length?this._events[o]=1===c.length?c[0]:c:s(this,o)}return this},a.prototype.removeAllListeners=function(t){var e;return t?this._events[e=n?n+t:t]&&s(this,e):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,t.exports=a},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_SetCache.js"(t,e,n){var r=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_MapCache.js"),i=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_setCacheAdd.js"),o=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_setCacheHas.js");function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,t.exports=s},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_arraySome.js"(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsEqual.js"(t,e,n){var r=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsEqualDeep.js"),i=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObjectLike.js");t.exports=function t(e,n,o,s,a){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,s,t,a))}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsEqualDeep.js"(t,e,n){var r=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Stack.js"),i=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_equalArrays.js"),o=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_equalByTag.js"),s=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_equalObjects.js"),a=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getTag.js"),l=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isArray.js"),c=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isBuffer.js"),h=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isTypedArray.js"),u="[object Arguments]",d="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,g,m,y){var v=l(t),x=l(e),b=v?d:a(t),w=x?d:a(e),_=(b=b==u?f:b)==f,M=(w=w==u?f:w)==f,k=b==w;if(k&&c(t)){if(!c(e))return!1;v=!0,_=!1}if(k&&!_)return y||(y=new r),v||h(t)?i(t,e,n,g,m,y):o(t,e,b,n,g,m,y);if(!(1&n)){var C=_&&p.call(t,"__wrapped__"),j=M&&p.call(e,"__wrapped__");if(C||j){var O=C?t.value():t,A=j?e.value():e;return y||(y=new r),m(O,A,n,g,y)}}return!!k&&(y||(y=new r),s(t,e,n,g,m,y))}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_cacheHas.js"(t){t.exports=function(t,e){return t.has(e)}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_equalArrays.js"(t,e,n){var r=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_SetCache.js"),i=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_arraySome.js"),o=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_cacheHas.js");t.exports=function(t,e,n,s,a,l){var c=1&n,h=t.length,u=e.length;if(h!=u&&!(c&&u>h))return!1;var d=l.get(t),f=l.get(e);if(d&&f)return d==e&&f==t;var p=-1,g=!0,m=2&n?new r:void 0;for(l.set(t,e),l.set(e,t);++p<h;){var y=t[p],v=e[p];if(s)var x=c?s(v,y,p,e,t,l):s(y,v,p,t,e,l);if(void 0!==x){if(x)continue;g=!1;break}if(m){if(!i(e,function(t,e){if(!o(m,e)&&(y===t||a(y,t,n,s,l)))return m.push(e)})){g=!1;break}}else if(y!==v&&!a(y,v,n,s,l)){g=!1;break}}return l.delete(t),l.delete(e),g}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_equalByTag.js"(t,e,n){var r=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Symbol.js"),i=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Uint8Array.js"),o=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/eq.js"),s=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_equalArrays.js"),a=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_mapToArray.js"),l=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_setToArray.js"),c=r?r.prototype:void 0,h=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,u,d){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!u(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var f=a;case"[object Set]":if(f||(f=l),t.size!=e.size&&!(1&r))return!1;var p=d.get(t);if(p)return p==e;r|=2,d.set(t,e);var g=s(f(t),f(e),r,c,u,d);return d.delete(t),g;case"[object Symbol]":if(h)return h.call(t)==h.call(e)}return!1}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_equalObjects.js"(t,e,n){var r=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getAllKeys.js"),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,s,a){var l=1&n,c=r(t),h=c.length;if(h!=r(e).length&&!l)return!1;for(var u=h;u--;){var d=c[u];if(!(l?d in e:i.call(e,d)))return!1}var f=a.get(t),p=a.get(e);if(f&&p)return f==e&&p==t;var g=!0;a.set(t,e),a.set(e,t);for(var m=l;++u<h;){var y=t[d=c[u]],v=e[d];if(o)var x=l?o(v,y,d,e,t,a):o(y,v,d,t,e,a);if(!(void 0===x?y===v||s(y,v,n,o,a):x)){g=!1;break}m||(m="constructor"==d)}if(g&&!m){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(g=!1)}return a.delete(t),a.delete(e),g}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_mapToArray.js"(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_setCacheAdd.js"(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_setCacheHas.js"(t){t.exports=function(t){return this.__data__.has(t)}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_setToArray.js"(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},"./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isEqual.js"(t,e,n){var r=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsEqual.js");t.exports=function(t,e){return r(t,e)}},"./node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.browser.js"(t){var e=String,n=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};t.exports=n(),t.exports.createColors=n},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/at-rule.js"(t,e,n){"use strict";let r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js");class i extends r{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}}t.exports=i,i.default=i,r.registerAtRule(i)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/comment.js"(t,e,n){"use strict";let r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/node.js");class i extends r{constructor(t){super(t),this.type="comment"}}t.exports=i,i.default=i},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js"(t,e,n){"use strict";let r,i,o,s,a=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/comment.js"),l=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/declaration.js"),c=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/node.js"),{isClean:h,my:u}=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/symbols.js");class d extends c{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...t){for(let e of t){let t=this.normalize(e,this.last);for(let e of t)this.proxyOf.nodes.push(e)}return this.markDirty(),this}cleanRaws(t){let e=[this];for(;e.length>0;){let n=e.pop();if(n===this||n.cleanRaws===d.prototype.cleanRaws){if(c.prototype.cleanRaws.call(n,t),n.nodes)for(let t of n.nodes)e.push(t)}else n.cleanRaws(t)}}each(t){if(!this.proxyOf.nodes)return;let e,n,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(e=this.indexes[r],n=t(this.proxyOf.nodes[e],e),!1!==n);)this.indexes[r]+=1;return delete this.indexes[r],n}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?(...n)=>t[e](...n.map(t=>"function"==typeof t?(e,n)=>t(e.toProxy(),n):t)):"every"===e||"some"===e?n=>t[e]((t,...e)=>n(t.toProxy(),...e)):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map(t=>t.toProxy()):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e],set:(t,e,n)=>(t[e]===n||(t[e]=n,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0)}}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,e){let n,r=this.index(t),i=this.normalize(e,this.proxyOf.nodes[r]).reverse();r=this.index(t);for(let t of i)this.proxyOf.nodes.splice(r+1,0,t);for(let t in this.indexes)n=this.indexes[t],r<n&&(this.indexes[t]=n+i.length);return this.markDirty(),this}insertBefore(t,e){let n,r=this.index(t),i=this.normalize(e,this.proxyOf.nodes[r],0===r&&"prepend").reverse();r=this.index(t);for(let t of i)this.proxyOf.nodes.splice(r,0,t);for(let t in this.indexes)n=this.indexes[t],r<=n&&(this.indexes[t]=n+i.length);return this.markDirty(),this}normalize(t,e){if("string"==typeof t)t=function(t){let e=t.slice();for(;e.length>0;){let t=e.pop();if(delete t.source,t.nodes){t.nodes=t.nodes.slice();for(let n of t.nodes)e.push(n)}}return t.slice()}(i(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new l(t)]}else if(t.selector||t.selectors)t=[new s(t)];else if(t.name)t=[new r(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new a(t)]}return t.map(t=>(t[u]||d.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[h]&&function(t){let e=[t];for(;e.length>0;){let t=e.pop();if(t[h]=!1,t.proxyOf.nodes)for(let n of t.proxyOf.nodes)e.push(n)}}(t),t.raws||(t.raws={}),void 0===t.raws.before&&e&&void 0!==e.raws.before&&(t.raws.before=e.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...t){t=t.reverse();for(let e of t){let t=this.normalize(e,this.first,"prepend").reverse();for(let e of t)this.proxyOf.nodes.unshift(e);for(let e in this.indexes)this.indexes[e]=this.indexes[e]+t.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){let e;t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);for(let n in this.indexes)e=this.indexes[n],e>=t&&(this.indexes[n]=e-1);return this.markDirty(),this}replaceValues(t,e,n){return n||(n=e,e={}),this.walkDecls(r=>{e.props&&!e.props.includes(r.prop)||e.fast&&!r.value.includes(e.fast)||(r.value=r.value.replace(t,n))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){if(!this.proxyOf.nodes)return;let e=[{iterator:this.getIterator(),node:this.proxyOf}];for(;e.length>0;){let{iterator:n,node:r}=e[e.length-1],i=r.indexes[n];if(i>=r.proxyOf.nodes.length){delete r.indexes[n],e.pop();let t=e[e.length-1];t&&(t.node.indexes[t.iterator]+=1);continue}let o,s=r.proxyOf.nodes[i];try{o=t(s,i)}catch(t){throw s.addToError(t)}if(!1===o){for(let t of e)delete t.node.indexes[t.iterator];return!1}s.walk&&s.proxyOf.nodes?e.push({iterator:s.getIterator(),node:s}):r.indexes[n]+=1}}walkAtRules(t,e){return e?t instanceof RegExp?this.walk((n,r)=>{if("atrule"===n.type&&t.test(n.name))return e(n,r)}):this.walk((n,r)=>{if("atrule"===n.type&&n.name===t)return e(n,r)}):(e=t,this.walk((t,n)=>{if("atrule"===t.type)return e(t,n)}))}walkComments(t){return this.walk((e,n)=>{if("comment"===e.type)return t(e,n)})}walkDecls(t,e){return e?t instanceof RegExp?this.walk((n,r)=>{if("decl"===n.type&&t.test(n.prop))return e(n,r)}):this.walk((n,r)=>{if("decl"===n.type&&n.prop===t)return e(n,r)}):(e=t,this.walk((t,n)=>{if("decl"===t.type)return e(t,n)}))}walkRules(t,e){return e?t instanceof RegExp?this.walk((n,r)=>{if("rule"===n.type&&t.test(n.selector))return e(n,r)}):this.walk((n,r)=>{if("rule"===n.type&&n.selector===t)return e(n,r)}):(e=t,this.walk((t,n)=>{if("rule"===t.type)return e(t,n)}))}}d.registerParse=t=>{i=t},d.registerRule=t=>{s=t},d.registerAtRule=t=>{r=t},d.registerRoot=t=>{o=t},t.exports=d,d.default=d,d.rebuild=t=>{let e=[t];for(;e.length>0;){let t=e.pop();if("atrule"===t.type?Object.setPrototypeOf(t,r.prototype):"rule"===t.type?Object.setPrototypeOf(t,s.prototype):"decl"===t.type?Object.setPrototypeOf(t,l.prototype):"comment"===t.type?Object.setPrototypeOf(t,a.prototype):"root"===t.type&&Object.setPrototypeOf(t,o.prototype),t[u]=!0,t.nodes)for(let n of t.nodes)e.push(n)}}},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/css-syntax-error.js"(t,e,n){"use strict";let r=n("./node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.browser.js"),i=n("?c3ee");class o extends Error{constructor(t,e,n,r,i,s){super(t),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),r&&(this.source=r),s&&(this.plugin=s),void 0!==e&&void 0!==n&&("number"==typeof e?(this.line=e,this.column=n):(this.line=e.line,this.column=e.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,o)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let e=this.source;null==t&&(t=r.isColorSupported);let n=t=>t,o=t=>t,s=t=>t;if(t){let{bold:t,gray:e,red:a}=r.createColors(!0);o=e=>t(a(e)),n=t=>e(t),i&&(s=t=>i(t))}let a=e.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),h=String(c).length;return a.slice(l,c).map((t,e)=>{let r=l+1+e,i=" "+(" "+r).slice(-h)+" | ";if(r===this.line){if(t.length>160){let e=20,r=Math.max(0,this.column-e),a=Math.max(this.column+e,this.endColumn+e),l=t.slice(r,a),c=n(i.replace(/\d/g," "))+t.slice(0,Math.min(this.column-1,e-1)).replace(/[^\t]/g," ");return o(">")+n(i)+s(l)+"\n "+c+o("^")}let e=n(i.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+n(i)+s(t)+"\n "+e+o("^")}return" "+n(i)+s(t)}).join("\n")}toString(){let t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}}t.exports=o,o.default=o},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/declaration.js"(t,e,n){"use strict";let r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/node.js");class i extends r{get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}}t.exports=i,i.default=i},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/document.js"(t,e,n){"use strict";let r,i,o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js");class s extends o{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new r(new i,this,t).stringify()}}s.registerLazyResult=t=>{r=t},s.registerProcessor=t=>{i=t},t.exports=s,s.default=s},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/fromJSON.js"(t,e,n){"use strict";let r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/at-rule.js"),i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/comment.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/declaration.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/input.js"),a=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/previous-map.js"),l=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js"),c=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/rule.js");function h(t,e){return t.inputs?t.inputs.map(t=>{let e={...t,__proto__:s.prototype};return e.map&&(e.map={...e.map,__proto__:a.prototype}),e}):e}function u(t,e,n){let s,a={...t};if(delete a.inputs,delete a.nodes,a.source){let{inputId:t,...n}=a.source;a.source=n,null!=t&&(a.source.input=e[t])}if("root"===a.type)s=new l(a);else if("decl"===a.type)s=new o(a);else if("rule"===a.type)s=new c(a);else if("comment"===a.type)s=new i(a);else{if("atrule"!==a.type)throw new Error("Unknown node type: "+t.type);s=new r(a)}if(n){s.nodes=n;for(let t of n)t.parent=s}return s}function d(t,e){if(Array.isArray(t))return t.map(t=>d(t));let n,r=[{childIndex:0,children:[],inputs:h(t,e),json:t}];for(;r.length>0;){let t=r[r.length-1],e=t.json.nodes;if(e&&t.childIndex<e.length){let n=e[t.childIndex];t.childIndex+=1,r.push({childIndex:0,children:[],inputs:h(n,t.inputs),json:n});continue}r.pop();let i=u(t.json,t.inputs,e?t.children:void 0);r.length>0?r[r.length-1].children.push(i):n=i}return n}t.exports=d,d.default=d},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/input.js"(t,e,n){"use strict";let{nanoid:r}=n("./node_modules/.pnpm/nanoid@3.3.16/node_modules/nanoid/non-secure/index.cjs"),{isAbsolute:i,resolve:o}=n("?9d3a"),{SourceMapConsumer:s,SourceMapGenerator:a}=n("?0348"),{fileURLToPath:l,pathToFileURL:c}=n("?2bf4"),h=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/css-syntax-error.js"),u=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/previous-map.js"),d=n("?c3ee"),f=Symbol("lineToIndexCache"),p=Boolean(s&&a),g=Boolean(o&&i);function m(t){if(t[f])return t[f];let e=t.css.split("\n"),n=new Array(e.length),r=0;for(let t=0,i=e.length;t<i;t++)n[t]=r,r+=e[t].length+1;return t[f]=n,n}class y{get from(){return this.file||this.id}constructor(t,e={}){if(null==t||"object"==typeof t&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,e.document&&(this.document=e.document.toString()),e.from&&(this.file=!g||/^\w+:\/\//.test(e.from)||i(e.from)?e.from:o(e.from)),g&&p){let t=new u(this.css,e);if(t.text){this.map=t;let e=t.consumer().file;!this.file&&e&&(this.file=this.mapResolve(e))}}this.file||(this.id="<input css "+r(6)+">"),this.map&&(this.map.file=this.from)}error(t,e,n,r={}){let i,o,s,a,l;if(e&&"object"==typeof e){let t=e,r=n;if("number"==typeof t.offset){a=t.offset;let r=this.fromOffset(a);e=r.line,n=r.col}else a=this.fromLineAndColumn(e=t.line,n=t.column);if("number"==typeof r.offset){s=r.offset;let t=this.fromOffset(s);o=t.line,i=t.col}else o=r.line,i=r.column,s=this.fromLineAndColumn(r.line,r.column)}else if(n)a=this.fromLineAndColumn(e,n);else{a=e;let t=this.fromOffset(a);e=t.line,n=t.col}let u=this.origin(e,n,o,i);return l=u?new h(t,void 0===u.endLine?u.line:{column:u.column,line:u.line},void 0===u.endLine?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,r.plugin):new h(t,void 0===o?e:{column:n,line:e},void 0===o?n:{column:i,line:o},this.css,this.file,r.plugin),l.input={column:n,endColumn:i,endLine:o,endOffset:s,line:e,offset:a,source:this.css},this.file&&(c&&(l.input.url=c(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(t,e){return m(this)[t-1]+e-1}fromOffset(t){let e=m(this),n=0;if(t>=e[e.length-1])n=e.length-1;else{let r,i=e.length-2;for(;n<i;)if(r=n+(i-n>>1),t<e[r])i=r-1;else{if(!(t>=e[r+1])){n=r;break}n=r+1}}return{col:t-e[n]+1,line:n+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:o(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,e,n,r){if(!this.map)return!1;let o,s,a=this.map.consumer(),h=a.originalPositionFor({column:e-1,line:t});if(!h.source)return!1;if("number"==typeof n){let t=a.originalPositionFor({column:r-1,line:n});t.source&&(o=t)}s=i(h.source)?c(h.source):new URL(h.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let u={column:h.column+1,endColumn:o&&o.column+1,endLine:o&&o.line,line:h.line,url:s.toString()};if("file:"===s.protocol){if(!l)throw new Error("file: protocol is not available in this PostCSS build");u.file=l(s)}let d=a.sourceContentFor(h.source);return d&&(u.source=d),u}toJSON(){let t={};for(let e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}}t.exports=y,y.default=y,d&&d.registerInput&&d.registerInput(y)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/lazy-result.js"(t,e,n){"use strict";let r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js"),i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/document.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/map-generator.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parse.js"),a=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/result.js"),l=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js"),c=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringify.js"),{isClean:h,my:u}=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/symbols.js");n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warn-once.js");const d={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},p={Once:!0,postcssPlugin:!0,prepare:!0};function g(t){return"object"==typeof t&&"function"==typeof t.then}function m(t){let e=!1,n=d[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[n,n+"-"+e,0,n+"Exit",n+"Exit-"+e]:e?[n,n+"-"+e,n+"Exit",n+"Exit-"+e]:t.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function y(t){let e;return e="document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:m(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function v(t){let e=[t];for(;e.length>0;){let t=e.pop();if(t[h]=!1,t.nodes)for(let n of t.nodes)e.push(n)}return t}let x={};class b{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(t,e,n){let i;if(this.stringified=!1,this.processed=!1,"object"!=typeof e||null===e||"root"!==e.type&&"document"!==e.type)if(e instanceof b||e instanceof a)i=v(e.root),e.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=e.map);else{let t=s;n.syntax&&(t=n.syntax.parse),n.parser&&(t=n.parser),t.parse&&(t=t.parse);try{i=t(e,n)}catch(t){this.processed=!0,this.error=t}i&&!i[u]&&r.rebuild(i)}else i=v(e);this.result=new a(t,i,n),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(t=>"object"==typeof t&&t.prepare?{...t,...t.prepare(this.result)}:t)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){let n=this.result.lastPlugin;try{e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin||(t.plugin=n.postcssPlugin,t.setMessage())}catch(t){console&&console.error&&console.error(t)}return t}prepareVisitors(){this.listeners={};let t=(t,e,n)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,n])};for(let e of this.plugins)if("object"==typeof e)for(let n in e){if(!f[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[n])if("object"==typeof e[n])for(let r in e[n])t(e,"*"===r?n:n+"-"+r.toLowerCase(),e[n][r]);else"function"==typeof e[n]&&t(e,n,e[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let e=this.runOnRoot(this.plugins[t]);if(g(e))try{await e}catch(t){throw this.handleError(t)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[h];){t[h]=!0;let e=[y(t)];for(;e.length>0;){let t=this.visitTick(e);if(g(t))try{await t}catch(t){throw this.handleError(t,e[e.length-1].node)}}}if(this.listeners.OnceExit)for(let[e,n]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map(t=>n(t,this.helpers));await Promise.all(e)}else await n(t,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){let e=this.result.root.nodes.map(e=>t.Once(e,this.helpers));return g(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,e=c;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);let n=this.result.root.source;if(void 0===t.map&&!(n&&n.input&&n.input.map)){let t="";return e(this.result.root,e=>{t+=e}),this.result.css=t,this.result}let r=new o(e,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins)if(g(this.runOnRoot(t)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[h];)t[h]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,e){return this.async().then(t,e)}toString(){return this.css}visitSync(t,e){for(let[n,r]of t){let t;this.result.lastPlugin=n;try{t=r(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(g(t))throw this.getAsyncError()}}visitTick(t){let e=t[t.length-1],{node:n,visitors:r}=e;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void t.pop();if(r.length>0&&e.visitorIndex<r.length){let[t,i]=r[e.visitorIndex];e.visitorIndex+=1,e.visitorIndex===r.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=t;try{return i(n.toProxy(),this.helpers)}catch(t){throw this.handleError(t,n)}}if(0!==e.iterator){let r,i=e.iterator;for(;r=n.nodes[n.indexes[i]];)if(n.indexes[i]+=1,!r[h])return r[h]=!0,void t.push(y(r));e.iterator=0,delete n.indexes[i]}let i=e.events;for(;e.eventIndex<i.length;){let t=i[e.eventIndex];if(e.eventIndex+=1,0===t)return void(n.nodes&&n.nodes.length&&(n[h]=!0,e.iterator=n.getIterator()));if(this.listeners[t])return void(e.visitors=this.listeners[t])}t.pop()}walkSync(t){t[h]=!0;let e=[{eventIndex:0,events:m(t),iterator:0,node:t}];for(;e.length>0;){let t=e[e.length-1],n=t.node;if(0!==t.iterator){let r,i=t.iterator,o=!1;for(;r=n.nodes[n.indexes[i]];)if(n.indexes[i]+=1,!r[h]){r[h]=!0,e.push({eventIndex:0,events:m(r),iterator:0,node:r}),o=!0;break}if(o)continue;t.iterator=0,delete n.indexes[i]}if(t.eventIndex<t.events.length){let r=t.events[t.eventIndex];if(t.eventIndex+=1,0===r)n.nodes&&n.nodes.length&&(t.iterator=n.getIterator());else{let t=this.listeners[r];t&&this.visitSync(t,n.toProxy())&&e.pop()}continue}e.pop()}}warnings(){return this.sync().warnings()}}b.registerPostcss=t=>{x=t},t.exports=b,b.default=b,l.registerLazyResult(b),i.registerLazyResult(b)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/list.js"(t){"use strict";let e={comma:t=>e.split(t,[","],!0),space:t=>e.split(t,[" ","\n","\t"]),split(t,e,n){let r=[],i="",o=!1,s=0,a=!1,l="",c=!1;for(let n of t)c?c=!1:"\\"===n?c=!0:a?n===l&&(a=!1):'"'===n||"'"===n?(a=!0,l=n):"("===n?s+=1:")"===n?s>0&&(s-=1):0===s&&e.includes(n)&&(o=!0),o?(""!==i&&r.push(i.trim()),i="",o=!1):i+=n;return(n||""!==i)&&r.push(i.trim()),r}};t.exports=e,e.default=e},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/map-generator.js"(t,e,n){"use strict";let{dirname:r,relative:i,resolve:o,sep:s}=n("?9d3a"),{SourceMapConsumer:a,SourceMapGenerator:l}=n("?0348"),{pathToFileURL:c}=n("?2bf4"),h=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/input.js"),u=Boolean(a&&l),d=Boolean(r&&o&&i&&s);t.exports=class{constructor(t,e,n,r){this.stringify=t,this.mapOpts=n.map||{},this.root=e,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let e,n=this.toUrl(this.path(t.file)),i=t.root||r(t.file);!1===this.mapOpts.sourcesContent?(e=new a(t.text),e.sourcesContent&&(e.sourcesContent=null)):e=t.consumer(),this.map.applySourceMap(e,n,this.toUrl(this.path(i)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let t;for(let e=this.root.nodes.length-1;e>=0;e--)t=this.root.nodes[e],"comment"===t.type&&t.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(e)}else if(this.css){let t;for(;-1!==(t=this.css.lastIndexOf("/*#"));){let e=this.css.indexOf("*/",t+3);if(-1===e)break;for(;t>0&&"\n"===this.css[t-1];)t--;this.css=this.css.slice(0,t)+this.css.slice(e+2)}}}generate(){if(this.clearAnnotation(),d&&u&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,e=>{t+=e}),[t]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=l.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0});let t,e,n=1,r=1,i="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(s,a,l)=>{if(this.css+=s,a&&"end"!==l&&(o.generated.line=n,o.generated.column=r-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,this.map.addMapping(o))),e=s.match(/\n/g),e?(n+=e.length,t=s.lastIndexOf("\n"),r=s.length-t):r+=s.length,a&&"start"!==l){let t=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===t.last&&!t.raws.semicolon||(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=n,o.generated.column=r-2,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,o.generated.line=n,o.generated.column=r-1,this.map.addMapping(o)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(t=>t.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some(t=>t.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(t=>t.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute)return t;if(60===t.charCodeAt(0))return t;if(/^\w+:\/\//.test(t))return t;let e=this.memoizedPaths.get(t);if(e)return e;let n=this.opts.to?r(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=r(o(n,this.mapOpts.annotation)));let s=i(n,t);return this.memoizedPaths.set(t,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}});else{let t=new h(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(e=>{if(e.source){let n=e.source.input.from;if(n&&!t[n]){t[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,e.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let e=this.memoizedFileURLs.get(t);if(e)return e;if(c){let e=c(t).toString();return this.memoizedFileURLs.set(t,e),e}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let e=this.memoizedURLs.get(t);if(e)return e;"\\"===s&&(t=t.replace(/\\/g,"/"));let n=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,n),n}}},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/no-work-result.js"(t,e,n){"use strict";let r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/map-generator.js"),i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parse.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/result.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringify.js");n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warn-once.js");class a{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,e=i;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(t,e,n){e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=n,this._map=void 0;let i=s;this.result=new o(this._processor,void 0,this._opts),this.result.css=e;let a=this;Object.defineProperty(this.result,"root",{get:()=>a.root});let l=new r(i,void 0,this._opts,e);if(l.isMap()){let[t,e]=l.generate();t&&(this.result.css=t),e&&(this.result.map=e)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,e){return this.async().then(t,e)}toString(){return this._css}warnings(){return[]}}t.exports=a,a.default=a},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/node.js"(t,e,n){"use strict";let r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/css-syntax-error.js"),i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringifier.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringify.js"),{isClean:s,my:a}=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/symbols.js");function l(t,e){if(e&&void 0!==e.offset)return e.offset;let n=1,r=1,i=0;for(let o=0;o<t.length;o++){if(r===e.line&&n===e.column){i=o;break}"\n"===t[o]?(n=1,r+=1):n+=1}return i}class c{get proxyOf(){return this}constructor(t={}){this.raws={},this[s]=!1,this[a]=!0;for(let e of Object.keys(t))if("__proto__"!==e)if("nodes"===e){this.nodes=[];for(let n of t[e])this.append("function"==typeof n.clone&&n.parent?n.clone():n)}else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let e in t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let e=function(t){let e=new t.constructor,n=[[t,e,void 0]];for(;n.length>0;){let[t,e,r]=n.pop();for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;if("proxyCache"===i)continue;let o=t[i],s=typeof o;if("parent"===i&&"object"===s)r&&(e[i]=r);else if("source"===i)e[i]=o;else if(Array.isArray(o)){let t=[];e[i]=t;for(let r of o){let i=new r.constructor;t.push(i),n.push([r,i,e])}}else{if("object"===s&&null!==o){let t=new o.constructor;n.push([o,t,void 0]),o=t}e[i]=o}}}return e}(this);for(let n in t)e[n]=t[n];return e}cloneAfter(t={}){let e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(t={}){let e=this.clone(t);return this.parent.insertBefore(this,e),e}error(t,e={}){if(this.source){let{end:n,start:r}=this.rangeBy(e);return this.source.input.error(t,{column:r.column,line:r.line},{column:n.column,line:n.line},e)}return new r(t)}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e],set:(t,e,n)=>(t[e]===n||(t[e]=n,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0)}}markClean(){this[s]=!0}markDirty(){if(this[s]){this[s]=!1;let t=this;for(;t=t.parent;)t[s]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t={}){let e="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:l(e,this.source.start)};if(t.index)n=this.positionInside(t.index);else if(t.word){let r=e.slice(l(e,this.source.start),l(e,this.source.end)).indexOf(t.word);-1!==r&&(n=this.positionInside(r))}return n}positionInside(t){let e=this.source.start.column,n=this.source.start.line,r="document"in this.source.input?this.source.input.document:this.source.input.css,i=l(r,this.source.start),o=i+t;for(let t=i;t<o;t++)"\n"===r[t]?(e=1,n+=1):e+=1;return{column:e,line:n,offset:o}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t={}){let e="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:l(e,this.source.start)},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:"number"==typeof this.source.end.offset?this.source.end.offset:l(e,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(t.word){let i=e.slice(l(e,this.source.start),l(e,this.source.end)).indexOf(t.word);-1!==i&&(n=this.positionInside(i),r=this.positionInside(i+t.word.length))}else t.start?n={column:t.start.column,line:t.start.line,offset:l(e,t.start)}:"number"==typeof t.index&&(n=this.positionInside(t.index)),t.end?r={column:t.end.column,line:t.end.line,offset:l(e,t.end)}:"number"==typeof t.endIndex?r=this.positionInside(t.endIndex):"number"==typeof t.index&&(r=this.positionInside(t.index+1));return(r.line<n.line||r.line===n.line&&r.column<=n.column)&&(r={column:n.column+1,line:n.line,offset:n.offset+1}),{end:r,start:n}}raw(t,e){return(new i).raw(this,t,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let e=this,n=!1;for(let r of t)r===this?n=!0:n?(this.parent.insertAfter(e,r),e=r):this.parent.insertBefore(e,r);n||this.remove()}return this}root(){let t=this;for(;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}toJSON(t,e){let n=null==e;e=e||new Map;let r=[],i=[[this,r,0]];for(let t=0;t<i.length;t++){let[n,r,o]=i[t],s={};r[o]=s;for(let t in n){if(!Object.prototype.hasOwnProperty.call(n,t))continue;if("parent"===t||"proxyCache"===t)continue;let r=n[t];if(Array.isArray(r)){let n=[];s[t]=n;for(let t=0;t<r.length;t++){let o=r[t];"object"==typeof o&&o.toJSON?o.toJSON===c.prototype.toJSON?i.push([o,n,t]):n[t]=o.toJSON(null,e):n[t]=o}}else if("object"==typeof r&&r.toJSON)r.toJSON===c.prototype.toJSON?i.push([r,s,t]):s[t]=r.toJSON(null,e);else if("source"===t){if(null==r)continue;let n=e.get(r.input);null==n&&(n=e.size,e.set(r.input,n)),s[t]={end:r.end,inputId:n,start:r.start}}else s[t]=r}}let o=r[0];return n&&(o.inputs=[...e.keys()].map(t=>t.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=o){t.stringify&&(t=t.stringify);let e="";return t(this,t=>{e+=t}),e}warn(t,e,n={}){let r={node:this};for(let t in n)r[t]=n[t];return t.warn(e,r)}}t.exports=c,c.default=c},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parse.js"(t,e,n){"use strict";let r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js"),i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/input.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parser.js");function s(t,e){let n=new i(t,e),r=new o(n);try{r.parse()}catch(t){throw t}return r.root}t.exports=s,s.default=s,r.registerParse(s)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parser.js"(t,e,n){"use strict";let r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/at-rule.js"),i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/comment.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/declaration.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js"),a=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/rule.js"),l=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/tokenize.js");const c={empty:!0,space:!0};function h(t,e,n){let r="";for(let i=e;i<n;i++)r+=t[i][1];return r}t.exports=class{constructor(t){this.input=t,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let e,n,i,o=new r;o.name=t[1].slice(1),""===o.name&&this.unnamedAtrule(o,t),this.init(o,t[2]);let s=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=(t=this.tokenizer.nextToken())[0],"("===e||"["===e?c.push("("===e?")":"]"):"{"===e&&c.length>0?c.push("}"):e===c[c.length-1]&&c.pop(),0===c.length){if(";"===e){o.source.end=this.getPosition(t[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===e){a=!0;break}if("}"===e){if(l.length>0){for(i=l.length-1,n=l[i];n&&"space"===n[0];)n=l[--i];n&&(o.source.end=this.getPosition(n[3]||n[2]),o.source.end.offset++)}this.end(t);break}l.push(t)}else l.push(t);if(this.tokenizer.endOfFile()){s=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(o.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(o,"params",l),s&&(o.source.end=this.getPosition((t=l[l.length-1])[3]||t[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),a&&(o.nodes=[],this.current=o)}checkMissedSemicolon(t){let e=this.colon(t);if(!1===e)return;let n,r=0;for(let i=e-1;i>=0&&(n=t[i],"space"===n[0]||(r+=1,2!==r));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(t){let e,n,r,i=0;for(let[o,s]of t.entries()){if(n=s,r=n[0],"("===r&&(i+=1),")"===r&&(i-=1),0===i&&":"===r){if(e){if("word"===e[0]&&"progid"===e[1])continue;return o}this.doubleColon(n)}e=n}return!1}comment(t){let e=new i;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++;let n=t[1].slice(2,-2);if(n.trim()){let t=n.match(/^(\s*)([^]*\S)(\s*)$/);e.text=t[2],e.raws.left=t[1],e.raws.right=t[3]}else e.text="",e.raws.left=n,e.raws.right=""}createTokenizer(){this.tokenizer=l(this.input)}decl(t,e){let n=new o;this.init(n,t[0][2]);let r=t[t.length-1];";"===r[0]&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(r[3]||r[2]||function(t){for(let e=t.length-1;e>=0;e--){let n=t[e],r=n[3]||n[2];if(r)return r}}(t)),n.source.end.offset++;let i=0;for(;"word"!==t[i][0];)i===t.length-1&&this.unknownWord([t[i]]),i++;n.raws.before+=h(t,0,i),n.source.start=this.getPosition(t[i][2]);let s=i;for(;i<t.length;){let e=t[i][0];if(":"===e||"space"===e||"comment"===e)break;i++}n.prop=h(t,s,i);let a,l=i;for(;i<t.length&&(a=t[i],i++,":"!==a[0]);)"word"===a[0]&&/\w/.test(a[1])&&this.unknownWord([a]);n.raws.between=h(t,l,i),"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let c=i;for(;i<t.length;){let e=t[i][0];if("space"!==e&&"comment"!==e)break;i++}let u=t.slice(c,i);t=t.slice(i),this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(a=t[e],"!important"===a[1].toLowerCase()){n.important=!0;let r=this.stringFrom(t,e);r=this.spacesFromEnd(t)+r," !important"!==r&&(n.raws.important=r);break}if("important"===a[1].toLowerCase()){let r=t.slice(0),i="";for(let t=e;t>0;t--){let e=r[t][0];if(i.trim().startsWith("!")&&"space"!==e)break;i=r.pop()[1]+i}i.trim().startsWith("!")&&(n.important=!0,n.raws.important=i,t=r)}if("space"!==a[0]&&"comment"!==a[0])break}t.some(t=>"space"!==t[0]&&"comment"!==t[0])&&(n.raws.between+=u.map(t=>t[1]).join(""),u=[]),this.raw(n,"value",u.concat(t),e),n.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let e=new a;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="",e.source.end=this.getPosition(t[2]),e.source.end.offset+=e.raws.ownSemicolon.length)}}getPosition(t){let e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}}init(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}other(t){let e=!1,n=null,r=!1,i=null,o=[],s=t[1].startsWith("--"),a=[],l=t;for(;l;){if(n=l[0],a.push(l),"("===n||"["===n)i||(i=l),o.push("("===n?")":"]");else if(s&&r&&"{"===n)i||(i=l),o.push("}");else if(0===o.length){if(";"===n){if(r)return void this.decl(a,s);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),e=!0;break}":"===n&&(r=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),o.length>0&&this.unclosedBracket(i),e&&r){if(!s)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}precheckMissedSemicolon(){}raw(t,e,n,r){let i,o,s,a,l=n.length,h="",u=!0;for(let t=0;t<l;t+=1)i=n[t],o=i[0],"space"!==o||t!==l-1||r?"comment"===o?(a=n[t-1]?n[t-1][0]:"empty",s=n[t+1]?n[t+1][0]:"empty",c[a]||c[s]||","===h.slice(-1)?u=!1:h+=i[1]):h+=i[1]:u=!1;if(!u){let r=n.reduce((t,e)=>t+e[1],"");t.raws[e]={raw:r,value:h}}t[e]=h}rule(t){t.pop();let e=new a;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}spacesAndCommentsFromEnd(t){let e,n="";for(;t.length&&(e=t[t.length-1][0],"space"===e||"comment"===e);)n=t.pop()[1]+n;return n}spacesAndCommentsFromStart(t){let e,n="";for(;t.length&&(e=t[0][0],"space"===e||"comment"===e);)n+=t.shift()[1];return n}spacesFromEnd(t){let e,n="";for(;t.length&&(e=t[t.length-1][0],"space"===e);)n=t.pop()[1]+n;return n}stringFrom(t,e){let n="";for(let r=e;r<t.length;r++)n+=t[r][1];return t.splice(e,t.length-e),n}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word "+t[0][1],{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})}}},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/postcss.js"(t,e,n){"use strict";let r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/at-rule.js"),i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/comment.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/css-syntax-error.js"),a=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/declaration.js"),l=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/document.js"),c=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/fromJSON.js"),h=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/input.js"),u=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/lazy-result.js"),d=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/list.js"),f=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/node.js"),p=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parse.js"),g=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/processor.js"),m=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/result.js"),y=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js"),v=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/rule.js"),x=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringify.js"),b=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warning.js");function w(...t){return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new g(t)}w.plugin=function(t,e){let n,r=!1;function i(...n){console&&console.warn&&!r&&(r=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let i=e(...n);return i.postcssPlugin=t,i.postcssVersion=(new g).version,i}return Object.defineProperty(i,"postcss",{get:()=>(n||(n=i()),n)}),i.process=function(t,e,n){return w([i(n)]).process(t,e)},i},w.stringify=x,w.parse=p,w.fromJSON=c,w.list=d,w.comment=t=>new i(t),w.atRule=t=>new r(t),w.decl=t=>new a(t),w.rule=t=>new v(t),w.root=t=>new y(t),w.document=t=>new l(t),w.CssSyntaxError=s,w.Declaration=a,w.Container=o,w.Processor=g,w.Document=l,w.Comment=i,w.Warning=b,w.AtRule=r,w.Result=m,w.Input=h,w.Rule=v,w.Root=y,w.Node=f,u.registerPostcss(w),t.exports=w,w.default=w},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/previous-map.js"(t,e,n){"use strict";let{existsSync:r,readFileSync:i}=n("?b251"),{dirname:o,isAbsolute:s,join:a,relative:l,sep:c}=n("?9d3a"),{SourceMapConsumer:h,SourceMapGenerator:u}=n("?0348");class d{constructor(t,e){if(!1===e.map)return;e.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let n=this.loadMap(e.from,e.map?e.map.prev:void 0);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=o(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new h(this.json||this.text)),this.consumerCache}decodeInline(t){let e=t.match(/^data:application\/json;charset=utf-?8,/)||t.match(/^data:application\/json,/);if(e)return decodeURIComponent(t.substr(e[0].length));let n=t.match(/^data:application\/json;charset=utf-?8;base64,/)||t.match(/^data:application\/json;base64,/);if(n)return r=t.substr(n[0].length),Buffer?Buffer.from(r,"base64").toString():window.atob(r);var r;let i=t.slice(22);throw i=i.slice(0,i.indexOf(",")),new Error("Unsupported source map encoding "+i)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}loadAnnotation(t){let e=t.match(/\/\*\s*# sourceMappingURL=/g);if(!e)return;let n=t.lastIndexOf(e.pop()),r=t.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(t.substring(n,r)))}loadFile(t,e,n){if(!n&&!this.unsafeMap){if(!/\.map$/i.test(t))return;if(e){let n=l(o(e),t);if(".."===n||n.startsWith(".."+c)||s(n))return}}if(this.root=o(t),r(t))return this.mapFile=t,i(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof h)return u.fromSourceMap(e).toString();if(e instanceof u)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}{let n=e(t);if(n){let e=this.loadFile(n,t,!0);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let e=this.annotation;t&&(e=a(o(t),e));let n=this.loadFile(e,t,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return n}}}startWith(t,e){return!!t&&t.substr(0,e.length)===e}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}t.exports=d,d.default=d},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/processor.js"(t,e,n){"use strict";let r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/document.js"),i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/lazy-result.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/no-work-result.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js");class a{constructor(t=[]){this.version="8.5.19",this.plugins=this.normalize(t)}normalize(t){let e=[];for(let n of t)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))e=e.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)e.push(n);else if("function"==typeof n)e.push(n);else if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin");return e}process(t,e={}){return this.plugins.length||e.parser||e.stringifier||e.syntax?new i(this,t,e):new o(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}}t.exports=a,a.default=a,s.registerProcessor(a),r.registerProcessor(a)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/result.js"(t,e,n){"use strict";let r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warning.js");class i{get content(){return this.css}constructor(t,e,n){this.processor=t,this.messages=[],this.root=e,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(t,e={}){e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);let n=new r(t,e);return this.messages.push(n),n}warnings(){return this.messages.filter(t=>"warning"===t.type)}}t.exports=i,i.default=i},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js"(t,e,n){"use strict";let r,i,o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js");class s extends o{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,e,n){let r=new Set;for(let e of Array.isArray(t)?t:[t])e&&"object"==typeof e&&!e.parent&&e.raws&&void 0!==e.raws.before&&r.add(e.raws);let i=super.normalize(t);if(e)if("prepend"===n)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(let t of i)r.has(t.raws)||(t.raws.before=e.raws.before);return i}removeChild(t,e){let n=this.index(t);return!e&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(t)}toResult(t={}){return new r(new i,this,t).stringify()}}s.registerLazyResult=t=>{r=t},s.registerProcessor=t=>{i=t},t.exports=s,s.default=s,o.registerRoot(s)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/rule.js"(t,e,n){"use strict";let r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js"),i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/list.js");class o extends r{get selectors(){return i.comma(this.selector)}set selectors(t){let e=this.selector?this.selector.match(/,\s*/):null,n=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(n)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}}t.exports=o,o.default=o,r.registerRule(o)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringifier.js"(t){"use strict";const e=/(<)(\/?style\b)/gi,n=/(<)(!--)/g;function r(t){return"string"!=typeof t?t:t.includes("<")?t.replace(e,"\\3c $2").replace(n,"\\3c $2"):t}const i={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function o(t,e){let n="@"+e.name,r=e.params?t.rawValue(e,"params"):"";return void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),n+r}function s(t,e,n){let r=n.nodes,i=r.length-1;for(;i>0&&"comment"===r[i].type;)i-=1;let o=t.raw(n,"semicolon"),s="document"===n.type;for(let t=r.length-1;t>=0;t--)e.push({document:s,node:r[t],semicolon:i!==t||o})}function a(t,e,n,i){let o=t.raw(n,"between","beforeOpen");t.builder(r(i+o)+"{",n,"start");let a=n.nodes&&n.nodes.length,l=()=>{let e=a?t.raw(n,"after"):t.raw(n,"after","emptyBody");e&&t.builder(r(e)),t.builder("}",n,"end"),"rule"===n.type&&n.raws.ownSemicolon&&t.builder(r(n.raws.ownSemicolon),n,"end")};a?(e.push(l),s(t,e,n)):l()}class l{constructor(t){this.builder=t}atrule(t,e){let n=o(this,t);t.nodes?this.block(t,n):this.builder(r(n+((t.raws.between||"")+(e?";":""))),t)}beforeAfter(t,e){let n;n=this.raw(t,null,"decl"===t.type?"beforeDecl":"comment"===t.type?"beforeComment":"before"===e?"beforeRule":"beforeClose");let r=t.parent,i=0;for(;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){let e=this.raw(t,null,"indent");if(e.length)for(let t=0;t<i;t++)n+=e}return n}block(t,e){let n,i=this.raw(t,"between","beforeOpen");this.builder(r(e+i)+"{",t,"start"),t.nodes&&t.nodes.length?(this.body(t),n=this.raw(t,"after")):n=this.raw(t,"after","emptyBody"),n&&this.builder(r(n)),this.builder("}",t,"end")}body(t){let e=l.prototype,n=["atrule","block","body","rule","stringify"].every(t=>this[t]===e[t]),i=[];for(s(this,i,t);i.length>0;){let t=i.pop();if("function"==typeof t){t();continue}let e=t.node,s=this.raw(e,"before");s&&this.builder(t.document?s:r(s)),n&&"rule"===e.type?a(this,i,e,this.rawValue(e,"selector")):n&&"atrule"===e.type&&e.nodes?a(this,i,e,o(this,e)):this.stringify(e,t.semicolon)}}comment(t){let e=this.raw(t,"left","commentLeft"),n=this.raw(t,"right","commentRight");this.builder(r("/*"+e+t.text+n+"*/"),t)}decl(t,e){let n=t.raws,i=this.raw(t,"between","colon"),o=t.prop+i+this.rawValue(t,"value");t.important&&(o+=n.important||" !important"),e&&(o+=";"),this.builder(r(o),t)}document(t){this.body(t)}raw(t,e,n){let r;if(n||(n=e),e&&(r=t.raws[e],void 0!==r))return r;let o=t.parent;if("before"===n){if(!o||"root"===o.type&&o.first===t)return"";if(o&&"document"===o.type)return""}if(!o)return i[n];let s=t.root(),a=s.rawCache||(s.rawCache={});if(void 0!==a[n])return a[n];if("before"===n||"after"===n)return this.beforeAfter(t,n);{let i="raw"+((l=n)[0].toUpperCase()+l.slice(1));this[i]?r=this[i](s,t):s.walk(t=>{if(r=t.raws[e],void 0!==r)return!1})}var l;return void 0===r&&(r=i[n]),a[n]=r,r}rawBeforeClose(t){let e;return t.walk(t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return e=t.raws.after,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawBeforeComment(t,e){let n;return t.walkComments(t=>{if(void 0!==t.raws.before)return n=t.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(e,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(t,e){let n;return t.walkDecls(t=>{if(void 0!==t.raws.before)return n=t.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(e,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(t){let e;return t.walk(t=>{if("decl"!==t.type&&(e=t.raws.between,void 0!==e))return!1}),e}rawBeforeRule(t){let e;return t.walk(n=>{if(n.nodes&&(n.parent!==t||t.first!==n)&&void 0!==n.raws.before)return e=n.raws.before,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawColon(t){let e;return t.walkDecls(t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1}),e}rawEmptyBody(t){let e;return t.walk(t=>{if(t.nodes&&0===t.nodes.length&&(e=t.raws.after,void 0!==e))return!1}),e}rawIndent(t){if(t.raws.indent)return t.raws.indent;let e;return t.walk(n=>{let r=n.parent;if(r&&r!==t&&r.parent&&r.parent===t&&void 0!==n.raws.before){let t=n.raws.before.split("\n");return e=t[t.length-1],e=e.replace(/\S/g,""),!1}}),e}rawSemicolon(t){let e;return t.walk(t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&(e=t.raws.semicolon,void 0!==e))return!1}),e}rawValue(t,e){let n=t[e],r=t.raws[e];return r&&r.value===n?r.raw:n}root(t){if(this.body(t),t.raws.after){let e=t.raws.after;this.builder(t.parent&&"document"===t.parent.type?e:r(e))}}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(r(t.raws.ownSemicolon),t,"end")}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}}t.exports=l,l.default=l},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringify.js"(t,e,n){"use strict";let r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringifier.js");function i(t,e){new r(e).stringify(t)}t.exports=i,i.default=i},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/symbols.js"(t){"use strict";t.exports.isClean=Symbol("isClean"),t.exports.my=Symbol("my")},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/tokenize.js"(t){"use strict";const e="'".charCodeAt(0),n='"'.charCodeAt(0),r="\\".charCodeAt(0),i="/".charCodeAt(0),o="\n".charCodeAt(0),s=" ".charCodeAt(0),a="\f".charCodeAt(0),l="\t".charCodeAt(0),c="\r".charCodeAt(0),h="[".charCodeAt(0),u="]".charCodeAt(0),d="(".charCodeAt(0),f=")".charCodeAt(0),p="{".charCodeAt(0),g="}".charCodeAt(0),m=";".charCodeAt(0),y="*".charCodeAt(0),v=":".charCodeAt(0),x="@".charCodeAt(0),b=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,_=/.[\r\n"'(/\\]/,M=/[\da-f]/i;t.exports=function(t,k={}){let C,j,O,A,E,S,$,z,P,L,T=t.css.valueOf(),I=k.ignoreErrors,R=T.length,N=0,H=[],B=[],W=-1;function F(e){throw t.error("Unclosed "+e,N)}return{back:function(t){B.push(t)},endOfFile:function(){return 0===B.length&&N>=R},nextToken:function(t){if(B.length)return B.pop();if(N>=R)return;let k=!!t&&t.ignoreUnclosed;switch(C=T.charCodeAt(N),C){case o:case s:case l:case c:case a:A=N;do{A+=1,C=T.charCodeAt(A)}while(C===s||C===o||C===l||C===c||C===a);S=["space",T.slice(N,A)],N=A-1;break;case h:case u:case p:case g:case v:case m:case f:{let t=String.fromCharCode(C);S=[t,t,N];break}case d:if(L=H.length?H.pop()[1]:"",P=T.charCodeAt(N+1),"url"===L&&P!==e&&P!==n&&P!==s&&P!==o&&P!==l&&P!==a&&P!==c){A=N;do{if($=!1,A=T.indexOf(")",A+1),-1===A){if(I||k){A=N;break}F("bracket")}for(z=A;T.charCodeAt(z-1)===r;)z-=1,$=!$}while($);S=["brackets",T.slice(N,A+1),N,A],N=A}else N<=W?S=["(","(",N]:(A=T.indexOf(")",N+1),j=T.slice(N,A+1),-1===A||_.test(j)?(W=-1===A?R:A,S=["(","(",N]):(S=["brackets",j,N,A],N=A));break;case e:case n:E=C===e?"'":'"',A=N;do{if($=!1,A=T.indexOf(E,A+1),-1===A){if(I||k){A=N+1;break}F("string")}for(z=A;T.charCodeAt(z-1)===r;)z-=1,$=!$}while($);S=["string",T.slice(N,A+1),N,A],N=A;break;case x:b.lastIndex=N+1,b.test(T),A=0===b.lastIndex?T.length-1:b.lastIndex-2,S=["at-word",T.slice(N,A+1),N,A],N=A;break;case r:for(A=N,O=!0;T.charCodeAt(A+1)===r;)A+=1,O=!O;if(C=T.charCodeAt(A+1),O&&C!==i&&C!==s&&C!==o&&C!==l&&C!==c&&C!==a&&(A+=1,M.test(T.charAt(A)))){for(;M.test(T.charAt(A+1));)A+=1;T.charCodeAt(A+1)===s&&(A+=1)}S=["word",T.slice(N,A+1),N,A],N=A;break;default:C===i&&T.charCodeAt(N+1)===y?(A=T.indexOf("*/",N+2)+1,0===A&&(I||k?A=T.length:F("comment")),S=["comment",T.slice(N,A+1),N,A],N=A):(w.lastIndex=N+1,w.test(T),A=0===w.lastIndex?T.length-1:w.lastIndex-2,S=["word",T.slice(N,A+1),N,A],H.push(S),N=A)}return N++,S},position:function(){return N}}}},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warn-once.js"(t){"use strict";let e={};t.exports=function(t){e[t]||(e[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))}},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warning.js"(t){"use strict";class e{constructor(t,e={}){if(this.type="warning",this.text=t,e.node&&e.node.source){let t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in e)this[t]=e[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}t.exports=e,e.default=e},"./src/components/fragments/async/extensions/Infographic.tsx"(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>VI});var r={};n.r(r),n.d(r,{diamond:()=>oa,dot:()=>sa,hex:()=>aa,line:()=>la,mosaic:()=>ca,square:()=>ha});var i=n("react/jsx-runtime");function o(t){return t.trim().toLowerCase().replace(/[_\s]+/g,"-").replace(/-+/g,"-")}function s(t,e){if(t===e)return 0;if(!t.length)return e.length;if(!e.length)return t.length;const n=Array.from({length:e.length+1},(t,e)=>e),r=new Array(e.length+1);for(let i=1;i<=t.length;i+=1){r[0]=i;const o=t.charCodeAt(i-1);for(let t=1;t<=e.length;t+=1){const i=o===e.charCodeAt(t-1)?0:1;r[t]=Math.min(n[t]+1,r[t-1]+1,n[t-1]+i)}for(let t=0;t<r.length;t+=1)n[t]=r[t]}return n[e.length]}function a(t,e){const n=Math.min(t.length,e.length);let r=0;for(;r<n&&t.charCodeAt(r)===e.charCodeAt(r);)r+=1;return r}function l(t,e,n,r,i,o){return i<e||i===e&&o>n||i===e&&o===n&&(!t||r<t)}const c=new Map;const h=new Set,u={};Object.entries({"compare-quadrant-quarter-simple-card":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"quarter-simple-card"}]}},"compare-quadrant-quarter-circular":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"quarter-circular"}]}},"compare-quadrant-simple-illus":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"simple-illus"}]}}}).forEach(([t,e])=>{u[t]=e;const n=t.replace("compare-quadrant","quadrant");u[n]=new Proxy(e,{get:(e,r,i)=>(h.has(n)||(console.warn(`[Deprecated] "${n}" 已被废弃,将在下个版本移除,请使用 "${t}"`),h.add(n)),Reflect.get(e,r,i))})});const d=u,f={edgeType:"curved",edgeColorMode:"gradient",edgeWidth:2,colorMode:"branch",levelGap:80,nodeGap:18},p={edgeType:"curved",edgeWidth:2,edgeColorMode:"gradient",colorMode:"level",levelGap:80,nodeGap:18},g={type:"lined-text",usePaletteColor:!0,showUnderline:!0,underlineThickness:2},m={type:"capsule-item"},y={type:"circular-progress"},v={type:"rounded-rect-node",positionH:"center"},x={type:"compact-card"},b=(t,e)=>Object.assign(Object.assign({type:"hierarchy-mindmap"},void 0!==e?{edgeAlign:e}:{}),t),w=(t,e,n,r)=>[t,{design:{structure:b(e,r),item:n}}],_=Object.fromEntries([w("hierarchy-mindmap-branch-gradient-lined-palette",f,g,"bottom"),w("hierarchy-mindmap-level-gradient-lined-palette",p,g,"bottom"),w("hierarchy-mindmap-branch-gradient-capsule-item",f,m),w("hierarchy-mindmap-level-gradient-capsule-item",p,m),w("hierarchy-mindmap-branch-gradient-circle-progress",f,y,.4),w("hierarchy-mindmap-level-gradient-circle-progress",p,y,.4),w("hierarchy-mindmap-branch-gradient-rounded-rect",f,v),w("hierarchy-mindmap-level-gradient-rounded-rect",p,v),w("hierarchy-mindmap-branch-gradient-compact-card",f,x),w("hierarchy-mindmap-level-gradient-compact-card",p,x)]),M={"tech-style":{edgeType:"straight",edgeStyle:"solid",edgeColorMode:"gradient",edgeMarker:"arrow",markerSize:12,edgeCornerRadius:5},"dashed-line":{edgeStyle:"dashed",edgeCornerRadius:10,edgeDashPattern:"10,5",edgeColorMode:"gradient",edgeMarker:"dot",markerSize:6,edgeOffset:6},"distributed-origin":{edgeOrigin:"distributed",edgeOriginPadding:30,edgeMarker:"arrow",edgeCornerRadius:10,markerSize:12,edgeColorMode:"gradient"},"curved-line":{edgeType:"curved",edgeColorMode:"gradient",edgeMarker:"none"},"dashed-arrow":{edgeType:"straight",edgeStyle:"dashed",edgeDashPattern:"8,4",edgeMarker:"arrow",markerSize:10,edgeCornerRadius:0}},k=["capsule-item","rounded-rect-node","compact-card","badge-card","ribbon-card"],C={},j="hierarchy-tree",O=[{key:""},{key:"bt",orientation:"bottom-top"},{key:"lr",orientation:"left-right"},{key:"rl",orientation:"right-left"}],A=(t,e,n)=>t?`${j}-${t}-${e}-${n}`:`${j}-${e}-${n}`;for(const t of k)for(const[e,n]of Object.entries(M))for(const{key:r,orientation:i}of O)C[A(r,e,t)]={design:{structure:Object.assign(Object.assign({type:"hierarchy-tree"},i?{orientation:i}:{}),n),item:{type:t}}};const E={"simple-circle-node":{type:"simple-circle-node"},"badge-card":{type:"badge-card"},capsule:{type:"capsule-item"},"compact-card":{type:"compact-card"}},S={type:"relation-dagre-flow",edgeColorMode:"gradient",showArrow:!0,arrowType:"triangle",colorMode:"node"},$={tb:Object.assign(Object.assign({},S),{rankdir:"TB",edgeRouting:"orth"}),lr:Object.assign(Object.assign({},S),{rankdir:"LR",edgeRouting:"orth"}),"tb-animated":Object.assign(Object.assign({},S),{rankdir:"TB",edgeCornerRadius:12,edgeRouting:"orth",edgeAnimation:"ant-line",edgeDashPattern:"8,4",edgeAnimationSpeed:1}),"lr-animated":Object.assign(Object.assign({},S),{rankdir:"LR",edgeCornerRadius:12,edgeRouting:"orth",edgeAnimation:"ant-line",edgeDashPattern:"8,4",edgeAnimationSpeed:1})},z={},P=["lr-capsule","tb-capsule"];Object.entries($).forEach(([t,e])=>{Object.entries(E).forEach(([n,r])=>{const i=`${t}-${n}`;P.includes(i)||(z[`relation-dagre-flow-${i}`]={design:{title:"default",structure:e,item:r}})})});const L={"badge-card":{type:"badge-card",width:160,height:60},"compact-card":{type:"compact-card",width:180,height:60},"capsule-item":{type:"capsule-item",width:150,height:60},"rounded-rect-node":{type:"rounded-rect-node",width:140,height:60}},T={type:"sequence-interaction",showLaneHeader:!0,arrowType:"triangle"},I={default:{},dashed:{edgeStyle:"dashed"},animated:{edgeStyle:"dashed",animated:!0}},R={default:Object.assign(Object.assign({},T),{showLifeline:!0,nodeGap:40}),compact:Object.assign(Object.assign({},T),{showLifeline:!0,nodeGap:20}),wide:Object.assign(Object.assign({},T),{showLifeline:!0,nodeGap:60})},N={},H=[];Object.entries(R).forEach(([t,e])=>{Object.entries(I).forEach(([n,r])=>{Object.entries(L).forEach(([i,o])=>{const s=[t];"default"!==n&&s.push(n),s.push(i);const a=s.join("-");H.includes(a)||(N[`sequence-interaction-${a}`]={design:{title:"default",structure:Object.assign(Object.assign({},e),r),item:o}})})})});const B=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"compare-hierarchy-left-right-circle-node-pill-badge":{design:{structure:{type:"compare-hierarchy-left-right",decoration:"split-line",surround:!1,groupGap:-20},title:"default",items:[{type:"circle-node",width:240},"pill-badge"]},themeConfig:{}},"compare-hierarchy-left-right-circle-node-plain-text":{design:{title:"default",structure:{type:"compare-hierarchy-left-right",decoration:"dot-line",flipLeaf:!0,groupGap:-10},items:[{type:"circle-node",width:180},{type:"plain-text"}]}},"list-pyramid-rounded-rect-node":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"rounded-rect-node"}]}},"list-pyramid-badge-card":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"badge-card"}]}},"list-pyramid-compact-card":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"compact-card"}]}},"list-column-done-list":{design:{title:"default",structure:{type:"list-column"},items:[{type:"done-list"}]}},"list-column-vertical-icon-arrow":{design:{title:"default",structure:{type:"list-column",gap:-5,zigzag:!0},items:[{type:"vertical-icon-arrow"}]}},"list-grid-badge-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"badge-card"}]}},"list-grid-candy-card-lite":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"candy-card-lite"}]}},"chart-column-simple":{design:{title:"default",structure:{type:"chart-column"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-grid-circular-progress":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"circular-progress"}]}},"list-grid-compact-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"compact-card"}]}},"list-grid-done-list":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"done-list"}]}},"list-grid-horizontal-icon-arrow":{design:{title:"default",structure:{type:"list-grid",gap:0,zigzag:!0},items:[{type:"horizontal-icon-arrow"}]}},"list-grid-progress-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"progress-card"}]}},"list-grid-ribbon-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"ribbon-card"}]}},"list-grid-simple":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"simple"}]}},"list-row-circular-progress":{design:{title:"default",structure:{type:"list-row"},items:[{type:"circular-progress"}]}},"list-row-horizontal-icon-arrow":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"horizontal-icon-arrow"}]}},"relation-circle-circular-progress":{design:{title:"default",structure:{type:"relation-circle"},items:[{type:"circular-progress"}]}},"relation-circle-icon-badge":{design:{title:"default",structure:{type:"relation-circle"},items:[{type:"icon-badge"}]}},"relation-network-icon-badge":{design:{title:"default",structure:{type:"relation-network"},items:[{type:"icon-badge"}]}},"relation-network-simple-circle-node":{design:{title:"default",structure:{type:"relation-network"},items:[{type:"simple-circle-node"}]}},"sequence-steps-badge-card":{design:{title:"default",structure:{type:"sequence-steps"},items:[{type:"badge-card"}]}},"sequence-steps-simple":{design:{title:"default",structure:{type:"sequence-steps",gap:10},items:[{type:"simple"}]}},"sequence-timeline-done-list":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"done-list"}]}},"sequence-timeline-plain-text":{design:{title:"default",structure:{type:"sequence-timeline",showStepLabels:!1},items:[{type:"plain-text"}]}},"sequence-timeline-rounded-rect-node":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"rounded-rect-node"}]}},"sequence-ascending-steps":{design:{title:"default",structure:{type:"sequence-ascending-steps",vGap:-46,hGap:-20},items:[{type:"l-corner-card"}]}},"sequence-timeline-simple":{design:{title:"default",structure:{type:"sequence-timeline",gap:20,showStepLabels:!1},items:[{type:"simple",positionV:"middle"}]}},"sequence-cylinders-3d-simple":{design:{title:"default",structure:{type:"sequence-cylinders-3d",gapY:20},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-column-simple-vertical-arrow":{design:{title:"default",structure:{type:"list-column",gap:0,zigzag:!0},items:[{type:"simple-vertical-arrow"}]}},"list-row-simple-horizontal-arrow":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"simple-horizontal-arrow"}]}},"compare-swot":{design:{title:"default",structure:{type:"compare-hierarchy-row",itemGap:32,itemPadding:40,showColumnBackground:!0,columnBackgroundAlpha:.08},items:[{type:"letter-card",showBottomShade:!1},{type:"plain-text",formatter:t=>`● ${t}`,usePaletteColor:!0}]}},"compare-hierarchy-row-letter-card-compact-card":{design:{title:"default",structure:{type:"compare-hierarchy-row"},items:[{type:"letter-card"},{type:"compact-card"}]}},"compare-hierarchy-row-letter-card-rounded-rect-node":{design:{title:"default",structure:{type:"compare-hierarchy-row"},items:[{type:"letter-card"},{type:"rounded-rect-node"}]}},"sequence-snake-steps-compact-card":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"compact-card"}]}},"sequence-snake-steps-pill-badge":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"pill-badge"}]}},"sequence-snake-steps-simple":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"simple"}]}},"sequence-color-snake-steps-horizontal-icon-line":{design:{title:"default",structure:{type:"sequence-color-snake-steps"},items:[{type:"horizontal-icon-line"}]}},"sequence-pyramid-simple":{design:{title:"default",structure:{type:"sequence-pyramid"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]},themeConfig:{colorPrimary:"#1677ff"}},"sequence-funnel-simple":{design:{title:"default",structure:{type:"sequence-funnel"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]},themeConfig:{palette:"#1677ff"}},"list-row-horizontal-icon-line":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"horizontal-icon-line"}]}},"list-sector-simple":{design:{title:"default",structure:{type:"list-sector"},items:[{type:"simple"}]}},"list-sector-plain-text":{design:{title:"default",structure:{type:"list-sector"},items:[{type:"plain-text"}]}},"list-sector-half-plain-text":{design:{title:"default",structure:{type:"list-sector",startAngle:-180,endAngle:0},items:[{type:"plain-text"}]}},"list-waterfall-badge-card":{design:{title:"default",structure:{type:"list-waterfall"},items:[{type:"badge-card"}]}},"list-waterfall-compact-card":{design:{title:"default",structure:{type:"list-waterfall"},items:[{type:"compact-card"}]}},"sequence-roadmap-vertical-plain-text":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"plain-text"}]}},"sequence-roadmap-vertical-simple":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"simple",showIcon:!1}]}},"sequence-roadmap-vertical-badge-card":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"badge-card"}]}},"sequence-roadmap-vertical-pill-badge":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"pill-badge"}]}},"sequence-roadmap-vertical-quarter-circular":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"quarter-circular"}]}},"sequence-roadmap-vertical-quarter-simple-card":{design:{title:"default",structure:{type:"sequence-roadmap-vertical",flipped:!0},items:[{type:"quarter-simple-card"}]}},"sequence-horizontal-zigzag-simple-illus":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple-illus"}]}},"sequence-horizontal-zigzag-horizontal-icon-line":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"horizontal-icon-line"}]}},"sequence-horizontal-zigzag-plain-text":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"plain-text"}]}},"sequence-horizontal-zigzag-simple-horizontal-arrow":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple-horizontal-arrow"}]}},"sequence-horizontal-zigzag-simple":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple"}]}},"list-row-simple-illus":{design:{title:"default",structure:{type:"list-row"},items:[{type:"simple-illus"}]}},"sequence-color-snake-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-color-snake-steps"},items:[{type:"simple-illus"}]}},"sequence-snake-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"simple-illus"}]}},"sequence-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-steps"},items:[{type:"simple-illus"}]}},"sequence-timeline-simple-illus":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"simple-illus",usePaletteColor:!0}]}},"sequence-zigzag-steps-underline-text":{design:{title:"default",structure:{type:"sequence-zigzag-steps"},items:[{type:"underline-text"}]}},"sequence-horizontal-zigzag-underline-text":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"underline-text"}]}},"sequence-roadmap-vertical-underline-text":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"underline-text"}]}},"sequence-snake-steps-underline-text":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"underline-text"}]}},"sequence-circle-arrows-indexed-card":{design:{title:"default",structure:{type:"sequence-circle-arrows"},items:[{type:"indexed-card"}]}},"sequence-zigzag-pucks-3d-simple":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-zigzag-pucks-3d-underline-text":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"underline-text"}]}},"sequence-zigzag-pucks-3d-indexed-card":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"indexed-card"}]}},"sequence-ascending-stairs-3d-simple":{design:{title:"default",structure:{type:"sequence-ascending-stairs-3d"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-ascending-stairs-3d-underline-text":{design:{title:"default",structure:{type:"sequence-ascending-stairs-3d"},items:[{type:"underline-text"}]}},"sequence-circular-underline-text":{design:{title:"default",structure:{type:"sequence-circular"},items:[{type:"underline-text"}]}},"sequence-circular-simple":{design:{title:"default",structure:{type:"sequence-circular"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-filter-mesh-underline-text":{design:{title:"default",structure:{type:"sequence-filter-mesh"},items:[{type:"underline-text"}]}},"sequence-filter-mesh-simple":{design:{title:"default",structure:{type:"sequence-filter-mesh"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-mountain-underline-text":{design:{title:"default",structure:{type:"sequence-mountain"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-simple-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"compact-card"}]}},"compare-binary-horizontal-simple-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"compact-card"}]}},"compare-binary-horizontal-simple-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"compact-card"}]}},"chart-bar-plain-text":{design:{title:"default",structure:{type:"chart-bar"},items:[{type:"plain-text",positionH:"flipped"}]}},"chart-line-plain-text":{design:{title:"default",structure:{type:"chart-line"},items:[{type:"plain-text",lineNumber:2}]}}},{"chart-pie-plain-text":{design:{title:"default",structure:{type:"chart-pie"},items:[{type:"plain-text"}]}},"chart-pie-compact-card":{design:{title:"default",structure:{type:"chart-pie",avoidLabelOverlap:!0},items:[{type:"compact-card"}]}},"chart-pie-pill-badge":{design:{title:"default",structure:{type:"chart-pie",avoidLabelOverlap:!0},items:[{type:"pill-badge"}]}},"chart-pie-donut-plain-text":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90},items:[{type:"plain-text"}]}},"chart-pie-donut-compact-card":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90,avoidLabelOverlap:!0},items:[{type:"compact-card"}]}},"chart-pie-donut-pill-badge":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90,avoidLabelOverlap:!0},items:[{type:"pill-badge"}]}}}),d),C),_),{"sequence-stairs-front-pill-badge":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"pill-badge"}]}},"sequence-stairs-front-compact-card":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"compact-card"}]}},"sequence-stairs-front-simple":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"simple",usePaletteColor:!0}]}}}),{"chart-wordcloud-rotate":{design:{structure:{type:"chart-wordcloud"},item:"simple"}},"chart-wordcloud":{design:{structure:{type:"chart-wordcloud",enableRotate:!1},item:"simple"}}}),{"list-zigzag-up-compact-card":{design:{title:"default",structure:{type:"list-zigzag-up"},items:[{type:"compact-card"}]},themeConfig:{colorPrimary:"#17CA2C"}},"list-zigzag-up-simple":{design:{title:"default",structure:{type:"list-zigzag-up"},items:[{type:"simple",usePaletteColor:!0}]},themeConfig:{colorPrimary:"#17CA2C"}},"list-zigzag-down-compact-card":{design:{title:"default",structure:{type:"list-zigzag-down"},items:[{type:"compact-card"}]},themeConfig:{colorPrimary:"#17CA2C"}},"list-zigzag-down-simple":{design:{title:"default",structure:{type:"list-zigzag-down"},items:[{type:"simple",usePaletteColor:!0}]},themeConfig:{colorPrimary:"#17CA2C"}}}),z),N),{"hierarchy-structure":{design:{title:"default",structure:{type:"hierarchy-structure"},item:"simple"}},"hierarchy-structure-mirror":{design:{title:"default",structure:{type:"hierarchy-structure",layerLabelPosition:"right"},item:"simple"}}});Object.entries(B).forEach(([t,e])=>{!function(t,e){c.set(t,e)}(t,e)});const W=Symbol.for("@antv/infographic/Fragment");function F(t,e={}){return{type:t,props:e}}const D=F,V=Symbol.for("@antv/infographic/Defs");function U(t){return{type:V,props:t}}function q(t){var e,n,r,i;const{x:o=0,y:s=0,width:a=0,height:l=0}=t;return null!==(e=t.cx)&&void 0!==e||(t.cx=o+a/2),null!==(n=t.cy)&&void 0!==n||(t.cy=s+l/2),null!==(r=t.rx)&&void 0!==r||(t.rx=a/2),null!==(i=t.ry)&&void 0!==i||(t.ry=l/2),{type:"ellipse",props:t}}function Y(t){const{x:e=0,y:n=0}=t;return(e||n)&&(t.transform||(t.transform=`translate(${e}, ${n})`)),{type:"g",props:t}}function G(t){const{x:e,y:n}=t,r=Object.assign({},t);return void 0===e&&void 0===n||(r.transform=`translate(${null!=e?e:0}, ${null!=n?n:0})`),{type:"path",props:r}}function X(t){var{points:e=[]}=t,n=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["points"]);const{x:r,y:i}=n,o=e.map(({x:t,y:e})=>`${t},${e}`).join(" "),s=Object.assign(Object.assign({},n),{points:o});return void 0===r&&void 0===i||(s.transform=`translate(${null!=r?r:0}, ${null!=i?i:0})`+(s.transform||"")),{type:"polygon",props:s}}function Z(t){return{type:"rect",props:t}}function K(t){return Object.keys(t[0]).reduce((e,n)=>{const r=n;return t.every(e=>e[r]===t[0][r])&&(e[r]=t[0][r]),e},{})}const Q=(t,e)=>{if("number"==typeof t)return 3===e?{mode:"rgb",r:(t>>8&15|t>>4&240)/255,g:(t>>4&15|240&t)/255,b:(15&t|t<<4&240)/255}:4===e?{mode:"rgb",r:(t>>12&15|t>>8&240)/255,g:(t>>8&15|t>>4&240)/255,b:(t>>4&15|240&t)/255,alpha:(15&t|t<<4&240)/255}:6===e?{mode:"rgb",r:(t>>16&255)/255,g:(t>>8&255)/255,b:(255&t)/255}:8===e?{mode:"rgb",r:(t>>24&255)/255,g:(t>>16&255)/255,b:(t>>8&255)/255,alpha:(255&t)/255}:void 0},J={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},tt=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,et="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",nt=`${et}%`,rt=`(?:${et}%|${et})`,it=`(?:${et}(deg|grad|rad|turn)|${et})`,ot="\\s*,\\s*",st=(new RegExp(`^(?:${et}%|${et}|none)$`),new RegExp(`^rgba?\\(\\s*${et}${ot}${et}${ot}${et}\\s*(?:,\\s*${rt}\\s*)?\\)$`)),at=new RegExp(`^rgba?\\(\\s*${nt}${ot}${nt}${ot}${nt}\\s*(?:,\\s*${rt}\\s*)?\\)$`),lt=(t="rgb")=>e=>void 0!==(e=((t,e)=>void 0===t?void 0:"object"!=typeof t?Lt(t):void 0!==t.mode?t:e?{...t,mode:e}:void 0)(e,t))?e.mode===t?e:ct[e.mode][t]?ct[e.mode][t](e):"rgb"===t?ct[e.mode].rgb(e):ct.rgb[t](ct[e.mode].rgb(e)):void 0,ct={},ht={},ut=[],dt={},ft=t=>t,pt=t=>(ct[t.mode]={...ct[t.mode],...t.toMode},Object.keys(t.fromMode||{}).forEach(e=>{ct[e]||(ct[e]={}),ct[e][t.mode]=t.fromMode[e]}),t.ranges||(t.ranges={}),t.difference||(t.difference={}),t.channels.forEach(e=>{if(void 0===t.ranges[e]&&(t.ranges[e]=[0,1]),!t.interpolate[e])throw new Error(`Missing interpolator for: ${e}`);"function"==typeof t.interpolate[e]&&(t.interpolate[e]={use:t.interpolate[e]}),t.interpolate[e].fixup||(t.interpolate[e].fixup=ft)}),ht[t.mode]=t,(t.parse||[]).forEach(e=>{gt(e,t.mode)}),lt(t.mode)),gt=(t,e)=>{if("string"==typeof t){if(!e)throw new Error("'mode' required when 'parser' is a string");dt[t]=e}else"function"==typeof t&&ut.indexOf(t)<0&&ut.push(t)},mt=/[^\x00-\x7F]|[a-zA-Z_]/,yt=/[^\x00-\x7F]|[-\w]/,vt="function",xt="ident",bt="number",wt="percentage",_t="none",Mt="hue",kt="alpha";let Ct=0;function jt(t){let e=t[Ct],n=t[Ct+1];return"-"===e||"+"===e?/\d/.test(n)||"."===n&&/\d/.test(t[Ct+2]):/\d/.test("."===e?n:e)}function Ot(t){if(Ct>=t.length)return!1;let e=t[Ct];if(mt.test(e))return!0;if("-"===e){if(t.length-Ct<2)return!1;let e=t[Ct+1];return!("-"!==e&&!mt.test(e))}return!1}const At={deg:1,rad:180/Math.PI,grad:.9,turn:360};function Et(t){let e="";if("-"!==t[Ct]&&"+"!==t[Ct]||(e+=t[Ct++]),e+=St(t),"."===t[Ct]&&/\d/.test(t[Ct+1])&&(e+=t[Ct++]+St(t)),"e"!==t[Ct]&&"E"!==t[Ct]||("-"!==t[Ct+1]&&"+"!==t[Ct+1]||!/\d/.test(t[Ct+2])?/\d/.test(t[Ct+1])&&(e+=t[Ct++]+St(t)):e+=t[Ct++]+t[Ct++]+St(t)),Ot(t)){let n=$t(t);return"deg"===n||"rad"===n||"turn"===n||"grad"===n?{type:Mt,value:e*At[n]}:void 0}return"%"===t[Ct]?(Ct++,{type:wt,value:+e}):{type:bt,value:+e}}function St(t){let e="";for(;/\d/.test(t[Ct]);)e+=t[Ct++];return e}function $t(t){let e="";for(;Ct<t.length&&yt.test(t[Ct]);)e+=t[Ct++];return e}function zt(t){let e=$t(t);return"("===t[Ct]?(Ct++,{type:vt,value:e}):"none"===e?{type:_t,value:void 0}:{type:xt,value:e}}function Pt(t,e){const n=[];let r;for(;t._i<t.length;)if(r=t[t._i++],r.type===_t||r.type===bt||r.type===kt||r.type===wt||e&&r.type===Mt)n.push(r);else{if(")"!==r.type)return;if(t._i<t.length)return}if(!(n.length<3||n.length>4)){if(4===n.length){if(n[3].type!==kt)return;n[3]=n[3].value}return 3===n.length&&n.push({type:_t,value:void 0}),n.every(t=>t.type!==kt)?n:void 0}}const Lt=t=>{if("string"!=typeof t)return;const e=function(t=""){let e,n=t.trim(),r=[];for(Ct=0;Ct<n.length;)if(e=n[Ct++],"\n"!==e&&"\t"!==e&&" "!==e){if(","===e)return;if(")"!==e){if("+"===e){if(Ct--,jt(n)){r.push(Et(n));continue}return}if("-"===e){if(Ct--,jt(n)){r.push(Et(n));continue}if(Ot(n)){r.push({type:xt,value:$t(n)});continue}return}if("."===e){if(Ct--,jt(n)){r.push(Et(n));continue}return}if("/"===e){for(;Ct<n.length&&("\n"===n[Ct]||"\t"===n[Ct]||" "===n[Ct]);)Ct++;let t;if(jt(n)&&(t=Et(n),t.type!==Mt)){r.push({type:kt,value:t});continue}if(Ot(n)&&"none"===$t(n)){r.push({type:kt,value:{type:_t,value:void 0}});continue}return}if(/\d/.test(e))Ct--,r.push(Et(n));else{if(!mt.test(e))return;Ct--,r.push(zt(n))}}else r.push({type:")"})}else for(;Ct<n.length&&("\n"===n[Ct]||"\t"===n[Ct]||" "===n[Ct]);)Ct++;return r}(t),n=e?function(t){t._i=0;let e=t[t._i++];if(!e||e.type!==vt)return;let n=Pt(t,!0);return n?(n.unshift(e.value),n):void 0}(e):void 0;let r,i=0,o=ut.length;for(;i<o;)if(void 0!==(r=ut[i++](t,n)))return r;return e?function(t){t._i=0;let e=t[t._i++];if(!e||e.type!==vt||"color"!==e.value)return;if(e=t[t._i++],e.type!==xt)return;const n=dt[e.value];if(!n)return;const r={mode:n},i=Pt(t,!1);if(!i)return;const o=(t=>ht[t])(n).channels;for(let t,e,n=0;n<o.length;n++)t=i[n],e=o[n],t.type!==_t&&(r[e]=t.type===bt?t.value:t.value/100,"alpha"===e&&(r[e]=Math.max(0,Math.min(1,r[e]))));return r}(e):void 0},Tt=(It=(t,e,n)=>t+n*(e-t),t=>{let e=(t=>{let e=[];for(let n=0;n<t.length-1;n++){let r=t[n],i=t[n+1];e.push(void 0===r&&void 0===i?void 0:void 0!==r&&void 0!==i?[r,i]:void 0!==r?[r,r]:[i,i])}return e})(t);return t=>{let n=t*e.length,r=t>=1?e.length-1:Math.max(Math.floor(n),0),i=e[r];return void 0===i?void 0:It(i[0],i[1],n-r)}});var It;const Rt=t=>{let e=!1,n=t.map(t=>void 0!==t?(e=!0,t):1);return e?n:t},Nt={mode:"rgb",channels:["r","g","b","alpha"],parse:[function(t,e){if(!e||"rgb"!==e[0]&&"rgba"!==e[0])return;const n={mode:"rgb"},[,r,i,o,s]=e;return r.type!==Mt&&i.type!==Mt&&o.type!==Mt?(r.type!==_t&&(n.r=r.type===bt?r.value/255:r.value/100),i.type!==_t&&(n.g=i.type===bt?i.value/255:i.value/100),o.type!==_t&&(n.b=o.type===bt?o.value/255:o.value/100),s.type!==_t&&(n.alpha=Math.min(1,Math.max(0,s.type===bt?s.value:s.value/100))),n):void 0},t=>{let e;return(e=t.match(tt))?Q(parseInt(e[1],16),e[1].length):void 0},t=>{let e,n={mode:"rgb"};if(e=t.match(st))void 0!==e[1]&&(n.r=e[1]/255),void 0!==e[2]&&(n.g=e[2]/255),void 0!==e[3]&&(n.b=e[3]/255);else{if(!(e=t.match(at)))return;void 0!==e[1]&&(n.r=e[1]/100),void 0!==e[2]&&(n.g=e[2]/100),void 0!==e[3]&&(n.b=e[3]/100)}return void 0!==e[4]?n.alpha=Math.max(0,Math.min(1,e[4]/100)):void 0!==e[5]&&(n.alpha=Math.max(0,Math.min(1,+e[5]))),n},t=>Q(J[t.toLowerCase()],6),t=>"transparent"===t?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,"srgb"],serialize:"srgb",interpolate:{r:Tt,g:Tt,b:Tt,alpha:{use:Tt,fixup:Rt}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Ht=(t=0)=>Math.pow(Math.abs(t),563/256)*Math.sign(t),Bt=t=>{let e=Ht(t.r),n=Ht(t.g),r=Ht(t.b),i={mode:"xyz65",x:.5766690429101305*e+.1855582379065463*n+.1882286462349947*r,y:.297344975250536*e+.6273635662554661*n+.0752914584939979*r,z:.0270313613864123*e+.0706888525358272*n+.9913375368376386*r};return void 0!==t.alpha&&(i.alpha=t.alpha),i},Wt=t=>Math.pow(Math.abs(t),256/563)*Math.sign(t),Ft=({x:t,y:e,z:n,alpha:r})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let i={mode:"a98",r:Wt(2.0415879038107465*t-.5650069742788597*e-.3447313507783297*n),g:Wt(-.9692436362808798*t+1.8759675015077206*e+.0415550574071756*n),b:Wt(.0134442806320312*t-.1183623922310184*e+1.0151749943912058*n)};return void 0!==r&&(i.alpha=r),i},Dt=(t=0)=>{const e=Math.abs(t);return e<=.04045?t/12.92:(Math.sign(t)||1)*Math.pow((e+.055)/1.055,2.4)},Vt=({r:t,g:e,b:n,alpha:r})=>{let i={mode:"lrgb",r:Dt(t),g:Dt(e),b:Dt(n)};return void 0!==r&&(i.alpha=r),i},Ut=t=>{let{r:e,g:n,b:r,alpha:i}=Vt(t),o={mode:"xyz65",x:.4123907992659593*e+.357584339383878*n+.1804807884018343*r,y:.2126390058715102*e+.715168678767756*n+.0721923153607337*r,z:.0193308187155918*e+.119194779794626*n+.9505321522496607*r};return void 0!==i&&(o.alpha=i),o},qt=(t=0)=>{const e=Math.abs(t);return e>.0031308?(Math.sign(t)||1)*(1.055*Math.pow(e,1/2.4)-.055):12.92*t},Yt=({r:t,g:e,b:n,alpha:r},i="rgb")=>{let o={mode:i,r:qt(t),g:qt(e),b:qt(n)};return void 0!==r&&(o.alpha=r),o},Gt=({x:t,y:e,z:n,alpha:r})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let i=Yt({r:3.2409699419045226*t-1.537383177570094*e-.4986107602930034*n,g:-.9692436362808796*t+1.8759675015077204*e+.0415550574071756*n,b:.0556300796969936*t-.2039769588889765*e+1.0569715142428784*n});return void 0!==r&&(i.alpha=r),i},Xt={...Nt,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:t=>Ft(Ut(t)),xyz65:Ft},toMode:{rgb:t=>Gt(Bt(t)),xyz65:Bt}},Zt=Xt,Kt=t=>(t%=360)<0?t+360:t,Qt=t=>((t,e)=>t.map((n,r,i)=>{if(void 0===n)return n;let o=Kt(n);return 0===r||void 0===t[r-1]?o:e(o-Kt(i[r-1]))}).reduce((t,e)=>t.length&&void 0!==e&&void 0!==t[t.length-1]?(t.push(e+t[t.length-1]),t):(t.push(e),t),[]))(t,t=>Math.abs(t)<=180?t:t-360*Math.sign(t)),Jt=[-.14861,1.78277,-.29227,-.90649,1.97294,0],te=Math.PI/180,ee=180/Math.PI;let ne=Jt[3]*Jt[4],re=Jt[1]*Jt[4],ie=Jt[1]*Jt[2]-Jt[0]*Jt[3];const oe=(t,e)=>{if(void 0===t.h||void 0===e.h||!t.s||!e.s)return 0;let n=Kt(t.h),r=Kt(e.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(t.s*e.s)*i},se=(t,e)=>{if(void 0===t.h||void 0===e.h||!t.c||!e.c)return 0;let n=Kt(t.h),r=Kt(e.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(t.c*e.c)*i},ae=t=>{let e=t.reduce((t,e)=>{if(void 0!==e){let n=e*Math.PI/180;t.sin+=Math.sin(n),t.cos+=Math.cos(n)}return t},{sin:0,cos:0}),n=180*Math.atan2(e.sin,e.cos)/Math.PI;return n<0?360+n:n},le={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:({r:t,g:e,b:n,alpha:r})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let i=(ie*n+t*ne-e*re)/(ie+ne-re),o=n-i,s=(Jt[4]*(e-i)-Jt[2]*o)/Jt[3],a={mode:"cubehelix",l:i,s:0===i||1===i?void 0:Math.sqrt(o*o+s*s)/(Jt[4]*i*(1-i))};return a.s&&(a.h=Math.atan2(s,o)*ee-120),void 0!==r&&(a.alpha=r),a}},toMode:{rgb:({h:t,s:e,l:n,alpha:r})=>{let i={mode:"rgb"};t=(void 0===t?0:t+120)*te,void 0===n&&(n=0);let o=void 0===e?0:e*n*(1-n),s=Math.cos(t),a=Math.sin(t);return i.r=n+o*(Jt[0]*s+Jt[1]*a),i.g=n+o*(Jt[2]*s+Jt[3]*a),i.b=n+o*(Jt[4]*s+Jt[5]*a),void 0!==r&&(i.alpha=r),i}},interpolate:{h:{use:Tt,fixup:Qt},s:Tt,l:Tt,alpha:{use:Tt,fixup:Rt}},difference:{h:oe},average:{h:ae}},ce=({l:t,a:e,b:n,alpha:r},i="lch")=>{void 0===e&&(e=0),void 0===n&&(n=0);let o=Math.sqrt(e*e+n*n),s={mode:i,l:t,c:o};return o&&(s.h=Kt(180*Math.atan2(n,e)/Math.PI)),void 0!==r&&(s.alpha=r),s},he=({l:t,c:e,h:n,alpha:r},i="lab")=>{void 0===n&&(n=0);let o={mode:i,l:t,a:e?e*Math.cos(n/180*Math.PI):0,b:e?e*Math.sin(n/180*Math.PI):0};return void 0!==r&&(o.alpha=r),o},ue=Math.pow(29,3)/Math.pow(3,3),de=Math.pow(6,3)/Math.pow(29,3),fe=.3457/.3585,pe=.2958/.3585,ge=.3127/.329,me=.3583/.329;Math.pow(29,3),Math.pow(3,3),Math.pow(6,3),Math.pow(29,3);let ye=t=>Math.pow(t,3)>de?Math.pow(t,3):(116*t-16)/ue;const ve=({l:t,a:e,b:n,alpha:r})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let i=(t+16)/116,o=i-n/200,s={mode:"xyz65",x:ye(e/500+i)*ge,y:1*ye(i),z:ye(o)*me};return void 0!==r&&(s.alpha=r),s},xe=t=>Gt(ve(t)),be=t=>t>de?Math.cbrt(t):(ue*t+16)/116,we=({x:t,y:e,z:n,alpha:r})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let i=be(t/ge),o=be(e/1),s={mode:"lab65",l:116*o-16,a:500*(i-o),b:200*(o-be(n/me))};return void 0!==r&&(s.alpha=r),s},_e=t=>{let e=we(Ut(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},Me=26/180*Math.PI,ke=Math.cos(Me),Ce=Math.sin(Me),je=100/Math.log(1.39),Oe=({l:t,c:e,h:n,alpha:r})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let i={mode:"lab65",l:(Math.exp(1*t/je)-1)/.0039},o=(Math.exp(.0435*e*1*1)-1)/.075,s=o*Math.cos(n/180*Math.PI-Me),a=o*Math.sin(n/180*Math.PI-Me);return i.a=s*ke-a/.83*Ce,i.b=s*Ce+a/.83*ke,void 0!==r&&(i.alpha=r),i},Ae=({l:t,a:e,b:n,alpha:r})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let i=e*ke+n*Ce,o=.83*(n*ke-e*Ce),s=Math.sqrt(i*i+o*o),a={mode:"dlch",l:je/1*Math.log(1+.0039*t),c:Math.log(1+.075*s)/.0435};return a.c&&(a.h=Kt((Math.atan2(o,i)+Me)/Math.PI*180)),void 0!==r&&(a.alpha=r),a},Ee=t=>Oe(ce(t,"dlch")),Se=t=>he(Ae(t),"dlab"),$e={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Ee,rgb:t=>xe(Ee(t))},fromMode:{lab65:Se,rgb:t=>Se(_e(t))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:Tt,a:Tt,b:Tt,alpha:{use:Tt,fixup:Rt}}},ze=$e,Pe={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Oe,dlab:t=>he(t,"dlab"),rgb:t=>xe(Oe(t))},fromMode:{lab65:Ae,dlab:t=>ce(t,"dlch"),rgb:t=>Ae(_e(t))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:Tt,c:Tt,h:{use:Tt,fixup:Qt},alpha:{use:Tt,fixup:Rt}},difference:{h:se},average:{h:ae}},Le=Pe,Te={mode:"hsi",toMode:{rgb:function({h:t,s:e,i:n,alpha:r}){t=Kt(void 0!==t?t:0),void 0===e&&(e=0),void 0===n&&(n=0);let i,o=Math.abs(t/60%2-1);switch(Math.floor(t/60)){case 0:i={r:n*(1+e*(3/(2-o)-1)),g:n*(1+e*(3*(1-o)/(2-o)-1)),b:n*(1-e)};break;case 1:i={r:n*(1+e*(3*(1-o)/(2-o)-1)),g:n*(1+e*(3/(2-o)-1)),b:n*(1-e)};break;case 2:i={r:n*(1-e),g:n*(1+e*(3/(2-o)-1)),b:n*(1+e*(3*(1-o)/(2-o)-1))};break;case 3:i={r:n*(1-e),g:n*(1+e*(3*(1-o)/(2-o)-1)),b:n*(1+e*(3/(2-o)-1))};break;case 4:i={r:n*(1+e*(3*(1-o)/(2-o)-1)),g:n*(1-e),b:n*(1+e*(3/(2-o)-1))};break;case 5:i={r:n*(1+e*(3/(2-o)-1)),g:n*(1-e),b:n*(1+e*(3*(1-o)/(2-o)-1))};break;default:i={r:n*(1-e),g:n*(1-e),b:n*(1-e)}}return i.mode="rgb",void 0!==r&&(i.alpha=r),i}},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:function({r:t,g:e,b:n,alpha:r}){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let i=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsi",s:t+e+n===0?0:1-3*o/(t+e+n),i:(t+e+n)/3};return i-o!==0&&(s.h=60*(i===t?(e-n)/(i-o)+6*(e<n):i===e?(n-t)/(i-o)+2:(t-e)/(i-o)+4)),void 0!==r&&(s.alpha=r),s}},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:Tt,fixup:Qt},s:Tt,i:Tt,alpha:{use:Tt,fixup:Rt}},difference:{h:oe},average:{h:ae}},Ie=Te,Re=new RegExp(`^hsla?\\(\\s*${it}${ot}${nt}${ot}${nt}\\s*(?:,\\s*${rt}\\s*)?\\)$`),Ne={mode:"hsl",toMode:{rgb:function({h:t,s:e,l:n,alpha:r}){t=Kt(void 0!==t?t:0),void 0===e&&(e=0),void 0===n&&(n=0);let i,o=n+e*(n<.5?n:1-n),s=o-2*(o-n)*Math.abs(t/60%2-1);switch(Math.floor(t/60)){case 0:i={r:o,g:s,b:2*n-o};break;case 1:i={r:s,g:o,b:2*n-o};break;case 2:i={r:2*n-o,g:o,b:s};break;case 3:i={r:2*n-o,g:s,b:o};break;case 4:i={r:s,g:2*n-o,b:o};break;case 5:i={r:o,g:2*n-o,b:s};break;default:i={r:2*n-o,g:2*n-o,b:2*n-o}}return i.mode="rgb",void 0!==r&&(i.alpha=r),i}},fromMode:{rgb:function({r:t,g:e,b:n,alpha:r}){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let i=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsl",s:i===o?0:(i-o)/(1-Math.abs(i+o-1)),l:.5*(i+o)};return i-o!==0&&(s.h=60*(i===t?(e-n)/(i-o)+6*(e<n):i===e?(n-t)/(i-o)+2:(t-e)/(i-o)+4)),void 0!==r&&(s.alpha=r),s}},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[function(t,e){if(!e||"hsl"!==e[0]&&"hsla"!==e[0])return;const n={mode:"hsl"},[,r,i,o,s]=e;if(r.type!==_t){if(r.type===wt)return;n.h=r.value}if(i.type!==_t){if(i.type===Mt)return;n.s=i.value/100}if(o.type!==_t){if(o.type===Mt)return;n.l=o.value/100}return s.type!==_t&&(n.alpha=Math.min(1,Math.max(0,s.type===bt?s.value:s.value/100))),n},t=>{let e=t.match(Re);if(!e)return;let n={mode:"hsl"};return void 0!==e[3]?n.h=+e[3]:void 0!==e[1]&&void 0!==e[2]&&(n.h=((t,e)=>{switch(e){case"deg":return+t;case"rad":return t/Math.PI*180;case"grad":return t/10*9;case"turn":return 360*t}})(e[1],e[2])),void 0!==e[4]&&(n.s=Math.min(Math.max(0,e[4]/100),1)),void 0!==e[5]&&(n.l=Math.min(Math.max(0,e[5]/100),1)),void 0!==e[6]?n.alpha=Math.max(0,Math.min(1,e[6]/100)):void 0!==e[7]&&(n.alpha=Math.max(0,Math.min(1,+e[7]))),n}],serialize:t=>`hsl(${void 0!==t.h?t.h:"none"} ${void 0!==t.s?100*t.s+"%":"none"} ${void 0!==t.l?100*t.l+"%":"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:Tt,fixup:Qt},s:Tt,l:Tt,alpha:{use:Tt,fixup:Rt}},difference:{h:oe},average:{h:ae}},He=Ne;function Be({h:t,s:e,v:n,alpha:r}){t=Kt(void 0!==t?t:0),void 0===e&&(e=0),void 0===n&&(n=0);let i,o=Math.abs(t/60%2-1);switch(Math.floor(t/60)){case 0:i={r:n,g:n*(1-e*o),b:n*(1-e)};break;case 1:i={r:n*(1-e*o),g:n,b:n*(1-e)};break;case 2:i={r:n*(1-e),g:n,b:n*(1-e*o)};break;case 3:i={r:n*(1-e),g:n*(1-e*o),b:n};break;case 4:i={r:n*(1-e*o),g:n*(1-e),b:n};break;case 5:i={r:n,g:n*(1-e),b:n*(1-e*o)};break;default:i={r:n*(1-e),g:n*(1-e),b:n*(1-e)}}return i.mode="rgb",void 0!==r&&(i.alpha=r),i}function We({r:t,g:e,b:n,alpha:r}){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let i=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsv",s:0===i?0:1-o/i,v:i};return i-o!==0&&(s.h=60*(i===t?(e-n)/(i-o)+6*(e<n):i===e?(n-t)/(i-o)+2:(t-e)/(i-o)+4)),void 0!==r&&(s.alpha=r),s}const Fe={mode:"hsv",toMode:{rgb:Be},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:We},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:Tt,fixup:Qt},s:Tt,v:Tt,alpha:{use:Tt,fixup:Rt}},difference:{h:oe},average:{h:ae}},De={mode:"hwb",toMode:{rgb:function({h:t,w:e,b:n,alpha:r}){if(void 0===e&&(e=0),void 0===n&&(n=0),e+n>1){let t=e+n;e/=t,n/=t}return Be({h:t,s:1===n?1:1-e/(1-n),v:1-n,alpha:r})}},fromMode:{rgb:function(t){let e=We(t);if(void 0===e)return;let n=void 0!==e.v?e.v:0,r={mode:"hwb",w:(1-(void 0!==e.s?e.s:0))*n,b:1-n};return void 0!==e.h&&(r.h=e.h),void 0!==e.alpha&&(r.alpha=e.alpha),r}},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[function(t,e){if(!e||"hwb"!==e[0])return;const n={mode:"hwb"},[,r,i,o,s]=e;if(r.type!==_t){if(r.type===wt)return;n.h=r.value}if(i.type!==_t){if(i.type===Mt)return;n.w=i.value/100}if(o.type!==_t){if(o.type===Mt)return;n.b=o.value/100}return s.type!==_t&&(n.alpha=Math.min(1,Math.max(0,s.type===bt?s.value:s.value/100))),n}],serialize:t=>`hwb(${void 0!==t.h?t.h:"none"} ${void 0!==t.w?100*t.w+"%":"none"} ${void 0!==t.b?100*t.b+"%":"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:Tt,fixup:Qt},w:Tt,b:Tt,alpha:{use:Tt,fixup:Rt}},difference:{h:(t,e)=>{if(void 0===t.h||void 0===e.h)return 0;let n=Kt(t.h),r=Kt(e.h);return Math.abs(r-n)>180?n-(r-360*Math.sign(r-n)):r-n}},average:{h:ae}},Ve=De,Ue=.1593017578125,qe=78.84375,Ye=.8359375,Ge=18.8515625,Xe=18.6875;function Ze(t){if(t<0)return 0;const e=Math.pow(t,1/qe);return 1e4*Math.pow(Math.max(0,e-Ye)/(Ge-Xe*e),1/Ue)}function Ke(t){if(t<0)return 0;const e=Math.pow(t/1e4,Ue);return Math.pow((Ye+Ge*e)/(1+Xe*e),qe)}const Qe=t=>Math.max(t/203,0),Je=({i:t,t:e,p:n,alpha:r})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);const i=Ze(t+.008609037037932761*e+.11102962500302593*n),o=Ze(t-.00860903703793275*e-.11102962500302599*n),s=Ze(t+.5600313357106791*e-.32062717498731885*n),a={mode:"xyz65",x:Qe(2.070152218389422*i-1.3263473389671556*o+.2066510476294051*s),y:Qe(.3647385209748074*i+.680566024947227*o-.0453045459220346*s),z:Qe(-.049747207535812*i-.0492609666966138*o+1.1880659249923042*s)};return void 0!==r&&(a.alpha=r),a},tn=(t=0)=>Math.max(203*t,0),en=({x:t,y:e,z:n,alpha:r})=>{const i=tn(t),o=tn(e),s=tn(n),a=Ke(.3592832590121217*i+.6976051147779502*o-.0358915932320289*s),l=Ke(-.1920808463704995*i+1.1004767970374323*o+.0753748658519118*s),c=Ke(.0070797844607477*i+.0748396662186366*o+.8433265453898765*s),h={mode:"itp",i:.5*a+.5*l,t:1.61376953125*a-3.323486328125*l+1.709716796875*c,p:4.378173828125*a-4.24560546875*l-.132568359375*c};return void 0!==r&&(h.alpha=r),h},nn={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Je,rgb:t=>Gt(Je(t))},fromMode:{xyz65:en,rgb:t=>en(Ut(t))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:Tt,t:Tt,p:Tt,alpha:{use:Tt,fixup:Rt}}},rn=nn,on=t=>{if(t<0)return 0;let e=Math.pow(t/1e4,Ue);return Math.pow((Ye+Ge*e)/(1+Xe*e),134.03437499999998)},sn=(t=0)=>Math.max(203*t,0),an=({x:t,y:e,z:n,alpha:r})=>{t=sn(t),e=sn(e);let i=1.15*t-.15*(n=sn(n)),o=.66*e+.34*t,s=on(.41478972*i+.579999*o+.014648*n),a=on(-.20151*i+1.120649*o+.0531008*n),l=on(-.0166008*i+.2648*o+.6684799*n),c=(s+a)/2,h={mode:"jab",j:.44*c/(1-.56*c)-16295499532821565e-27,a:3.524*s-4.066708*a+.542708*l,b:.199076*s+1.096799*a-1.295875*l};return void 0!==r&&(h.alpha=r),h},ln=16295499532821565e-27,cn=t=>{if(t<0)return 0;let e=Math.pow(t,.007460772656268216);return 1e4*Math.pow((Ye-e)/(Xe*e-Ge),1/Ue)},hn=t=>t/203,un=({j:t,a:e,b:n,alpha:r})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let i=(t+ln)/(.44+.56*(t+ln)),o=cn(i+.13860504*e+.058047316*n),s=cn(i-.13860504*e-.058047316*n),a=cn(i-.096019242*e-.8118919*n),l={mode:"xyz65",x:hn(1.661373024652174*o-.914523081304348*s+.23136208173913045*a),y:hn(-.3250758611844533*o+1.571847026732543*s-.21825383453227928*a),z:hn(-.090982811*o-.31272829*s+1.5227666*a)};return void 0!==r&&(l.alpha=r),l},dn=t=>{let e=an(Ut(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},fn=t=>Gt(un(t)),pn={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:dn,xyz65:an},toMode:{rgb:fn,xyz65:un},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:Tt,a:Tt,b:Tt,alpha:{use:Tt,fixup:Rt}}},gn=({j:t,a:e,b:n,alpha:r})=>{void 0===e&&(e=0),void 0===n&&(n=0);let i=Math.sqrt(e*e+n*n),o={mode:"jch",j:t,c:i};return i&&(o.h=Kt(180*Math.atan2(n,e)/Math.PI)),void 0!==r&&(o.alpha=r),o},mn=({j:t,c:e,h:n,alpha:r})=>{void 0===n&&(n=0);let i={mode:"jab",j:t,a:e?e*Math.cos(n/180*Math.PI):0,b:e?e*Math.sin(n/180*Math.PI):0};return void 0!==r&&(i.alpha=r),i},yn={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:mn,rgb:t=>fn(mn(t))},fromMode:{rgb:t=>gn(dn(t)),jab:gn},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:Tt,fixup:Qt},c:Tt,j:Tt,alpha:{use:Tt,fixup:Rt}},difference:{h:se},average:{h:ae}},vn=yn,xn=Math.pow(29,3)/Math.pow(3,3),bn=Math.pow(6,3)/Math.pow(29,3);let wn=t=>Math.pow(t,3)>bn?Math.pow(t,3):(116*t-16)/xn;const _n=({l:t,a:e,b:n,alpha:r})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let i=(t+16)/116,o=i-n/200,s={mode:"xyz50",x:wn(e/500+i)*fe,y:1*wn(i),z:wn(o)*pe};return void 0!==r&&(s.alpha=r),s},Mn=({x:t,y:e,z:n,alpha:r})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let i=Yt({r:3.1341359569958707*t-1.6173863321612538*e-.4906619460083532*n,g:-.978795502912089*t+1.916254567259524*e+.03344273116131949*n,b:.07195537988411677*t-.2289768264158322*e+1.405386058324125*n});return void 0!==r&&(i.alpha=r),i},kn=t=>Mn(_n(t)),Cn=t=>{let{r:e,g:n,b:r,alpha:i}=Vt(t),o={mode:"xyz50",x:.436065742824811*e+.3851514688337912*n+.14307845442264197*r,y:.22249319175623702*e+.7168870538238823*n+.06061979053616537*r,z:.013923904500943465*e+.09708128566574634*n+.7140993584005155*r};return void 0!==i&&(o.alpha=i),o},jn=t=>t>bn?Math.cbrt(t):(xn*t+16)/116,On=({x:t,y:e,z:n,alpha:r})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let i=jn(t/fe),o=jn(e/1),s={mode:"lab",l:116*o-16,a:500*(i-o),b:200*(o-jn(n/pe))};return void 0!==r&&(s.alpha=r),s},An=t=>{let e=On(Cn(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},En={mode:"lab",toMode:{xyz50:_n,rgb:kn},fromMode:{xyz50:On,rgb:An},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[function(t,e){if(!e||"lab"!==e[0])return;const n={mode:"lab"},[,r,i,o,s]=e;return r.type!==Mt&&i.type!==Mt&&o.type!==Mt?(r.type!==_t&&(n.l=Math.min(Math.max(0,r.value),100)),i.type!==_t&&(n.a=i.type===bt?i.value:125*i.value/100),o.type!==_t&&(n.b=o.type===bt?o.value:125*o.value/100),s.type!==_t&&(n.alpha=Math.min(1,Math.max(0,s.type===bt?s.value:s.value/100))),n):void 0}],serialize:t=>`lab(${void 0!==t.l?t.l:"none"} ${void 0!==t.a?t.a:"none"} ${void 0!==t.b?t.b:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{l:Tt,a:Tt,b:Tt,alpha:{use:Tt,fixup:Rt}}},Sn=En,$n={...Sn,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:ve,rgb:xe},fromMode:{xyz65:we,rgb:_e},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}},zn={mode:"lch",toMode:{lab:he,rgb:t=>kn(he(t))},fromMode:{rgb:t=>ce(An(t)),lab:ce},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[function(t,e){if(!e||"lch"!==e[0])return;const n={mode:"lch"},[,r,i,o,s]=e;if(r.type!==_t){if(r.type===Mt)return;n.l=Math.min(Math.max(0,r.value),100)}if(i.type!==_t&&(n.c=Math.max(0,i.type===bt?i.value:150*i.value/100)),o.type!==_t){if(o.type===wt)return;n.h=o.value}return s.type!==_t&&(n.alpha=Math.min(1,Math.max(0,s.type===bt?s.value:s.value/100))),n}],serialize:t=>`lch(${void 0!==t.l?t.l:"none"} ${void 0!==t.c?t.c:"none"} ${void 0!==t.h?t.h:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:Tt,fixup:Qt},c:Tt,l:Tt,alpha:{use:Tt,fixup:Rt}},difference:{h:se},average:{h:ae}},Pn=zn,Ln={...Pn,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:t=>he(t,"lab65"),rgb:t=>xe(he(t,"lab65"))},fromMode:{rgb:t=>ce(_e(t),"lch65"),lab65:t=>ce(t,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},Tn=Ln,In=({l:t,u:e,v:n,alpha:r})=>{void 0===e&&(e=0),void 0===n&&(n=0);let i=Math.sqrt(e*e+n*n),o={mode:"lchuv",l:t,c:i};return i&&(o.h=Kt(180*Math.atan2(n,e)/Math.PI)),void 0!==r&&(o.alpha=r),o},Rn=({l:t,c:e,h:n,alpha:r})=>{void 0===n&&(n=0);let i={mode:"luv",l:t,u:e?e*Math.cos(n/180*Math.PI):0,v:e?e*Math.sin(n/180*Math.PI):0};return void 0!==r&&(i.alpha=r),i},Nn=(t,e,n)=>4*t/(t+15*e+3*n),Hn=(t,e,n)=>9*e/(t+15*e+3*n),Bn=Nn(fe,1,pe),Wn=Hn(fe,1,pe),Fn=({x:t,y:e,z:n,alpha:r})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let i=(t=>t<=bn?xn*t:116*Math.cbrt(t)-16)(e/1),o=Nn(t,e,n),s=Hn(t,e,n);isFinite(o)&&isFinite(s)?(o=13*i*(o-Bn),s=13*i*(s-Wn)):i=o=s=0;let a={mode:"luv",l:i,u:o,v:s};return void 0!==r&&(a.alpha=r),a},Dn=((t,e,n)=>4*t/(t+15+3*n))(fe,0,pe),Vn=((t,e,n)=>9/(t+15+3*n))(fe,0,pe),Un=({l:t,u:e,v:n,alpha:r})=>{if(void 0===t&&(t=0),0===t)return{mode:"xyz50",x:0,y:0,z:0};void 0===e&&(e=0),void 0===n&&(n=0);let i=e/(13*t)+Dn,o=n/(13*t)+Vn,s=1*(t<=8?t/xn:Math.pow((t+16)/116,3)),a={mode:"xyz50",x:s*(9*i)/(4*o),y:s,z:s*(12-3*i-20*o)/(4*o)};return void 0!==r&&(a.alpha=r),a},qn={mode:"lchuv",toMode:{luv:Rn,rgb:t=>Mn(Un(Rn(t)))},fromMode:{rgb:t=>In(Fn(Cn(t))),luv:In},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:Tt,fixup:Qt},c:Tt,l:Tt,alpha:{use:Tt,fixup:Rt}},difference:{h:se},average:{h:ae}},Yn=qn,Gn={...Nt,mode:"lrgb",toMode:{rgb:Yt},fromMode:{rgb:Vt},parse:["srgb-linear"],serialize:"srgb-linear"},Xn={mode:"luv",toMode:{xyz50:Un,rgb:t=>Mn(Un(t))},fromMode:{xyz50:Fn,rgb:t=>Fn(Cn(t))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:Tt,u:Tt,v:Tt,alpha:{use:Tt,fixup:Rt}}},Zn=Xn,Kn=({r:t,g:e,b:n,alpha:r})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let i=Math.cbrt(.412221469470763*t+.5363325372617348*e+.0514459932675022*n),o=Math.cbrt(.2119034958178252*t+.6806995506452344*e+.1073969535369406*n),s=Math.cbrt(.0883024591900564*t+.2817188391361215*e+.6299787016738222*n),a={mode:"oklab",l:.210454268309314*i+.7936177747023054*o-.0040720430116193*s,a:1.9779985324311684*i-2.42859224204858*o+.450593709617411*s,b:.0259040424655478*i+.7827717124575296*o-.8086757549230774*s};return void 0!==r&&(a.alpha=r),a},Qn=t=>{let e=Kn(Vt(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},Jn=({l:t,a:e,b:n,alpha:r})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let i=Math.pow(t+.3963377773761749*e+.2158037573099136*n,3),o=Math.pow(t-.1055613458156586*e-.0638541728258133*n,3),s=Math.pow(t-.0894841775298119*e-1.2914855480194092*n,3),a={mode:"lrgb",r:4.076741636075957*i-3.3077115392580616*o+.2309699031821044*s,g:-1.2684379732850317*i+2.6097573492876887*o-.3413193760026573*s,b:-.0041960761386756*i-.7034186179359362*o+1.7076146940746117*s};return void 0!==r&&(a.alpha=r),a},tr=t=>Yt(Jn(t));function er(t){const e=.206,n=1.206/1.03;return.5*(n*t-e+Math.sqrt((n*t-e)*(n*t-e)+.12*n*t))}function nr(t){return(t*t+.206*t)/(1.206/1.03*(t+.03))}function rr(t,e){let n=function(t,e){let n,r,i,o,s,a,l,c;-1.88170328*t-.80936493*e>1?(n=1.19086277,r=1.76576728,i=.59662641,o=.75515197,s=.56771245,a=4.0767416621,l=-3.3077115913,c=.2309699292):1.81444104*t-1.19445276*e>1?(n=.73956515,r=-.45954404,i=.08285427,o=.1254107,s=.14503204,a=-1.2684380046,l=2.6097574011,c=-.3413193965):(n=1.35733652,r=-.00915799,i=-1.1513021,o=-.50559606,s=.00692167,a=-.0041960863,l=-.7034186147,c=1.707614701);let h=n+r*t+i*e+o*t*t+s*t*e,u=.3963377774*t+.2158037573*e,d=-.1055613458*t-.0638541728*e,f=-.0894841775*t-1.291485548*e;{let t=1+h*u,e=1+h*d,n=1+h*f,r=a*(t*t*t)+l*(e*e*e)+c*(n*n*n),i=a*(3*u*t*t)+l*(3*d*e*e)+c*(3*f*n*n);h-=r*i/(i*i-.5*r*(a*(6*u*u*t)+l*(6*d*d*e)+c*(6*f*f*n)))}return h}(t,e),r=Jn({l:1,a:n*t,b:n*e}),i=Math.cbrt(1/Math.max(r.r,r.g,r.b));return[i,i*n]}function ir(t,e,n=null){n||(n=rr(t,e));let r=n[0],i=n[1];return[i/r,i/(1-r)]}function or(t,e,n){let r=rr(e,n),i=function(t,e,n,r,i,o=null){let s;if(o||(o=rr(t,e)),(n-i)*o[1]-(o[0]-i)*r<=0)s=o[1]*i/(r*o[0]+o[1]*(i-n));else{s=o[1]*(i-1)/(r*(o[0]-1)+o[1]*(i-n));{let o=n-i,a=.3963377774*t+.2158037573*e,l=-.1055613458*t-.0638541728*e,c=-.0894841775*t-1.291485548*e,h=o+r*a,u=o+r*l,d=o+r*c;{let t=i*(1-s)+s*n,e=s*r,o=t+e*a,f=t+e*l,p=t+e*c,g=o*o*o,m=f*f*f,y=p*p*p,v=3*h*o*o,x=3*u*f*f,b=3*d*p*p,w=6*h*h*o,_=6*u*u*f,M=6*d*d*p,k=4.0767416621*g-3.3077115913*m+.2309699292*y-1,C=4.0767416621*v-3.3077115913*x+.2309699292*b,j=C/(C*C-.5*k*(4.0767416621*w-3.3077115913*_+.2309699292*M)),O=-k*j,A=-1.2684380046*g+2.6097574011*m-.3413193965*y-1,E=-1.2684380046*v+2.6097574011*x-.3413193965*b,S=E/(E*E-.5*A*(-1.2684380046*w+2.6097574011*_-.3413193965*M)),$=-A*S,z=-.0041960863*g-.7034186147*m+1.707614701*y-1,P=-.0041960863*v-.7034186147*x+1.707614701*b,L=P/(P*P-.5*z*(-.0041960863*w-.7034186147*_+1.707614701*M)),T=-z*L;O=j>=0?O:1e6,$=S>=0?$:1e6,T=L>=0?T:1e6,s+=Math.min(O,Math.min($,T))}}}return s}(e,n,t,1,t,r),o=ir(e,n,r),s=t*(.11516993+1/(7.4477897+4.1590124*n+e*(1.75198401*n-2.19557347+e*(-2.13704948-10.02301043*n+e*(5.38770819*n-4.24894561+4.69891013*e))))),a=(1-t)*(.11239642+1/(1.6132032-.68124379*n+e*(.40370612+.90148123*n+e*(.6122399*n-.27087943+e*(.00299215-.45399568*n-.14661872*e))))),l=i/Math.min(t*o[0],(1-t)*o[1])*.9*Math.sqrt(Math.sqrt(1/(1/(s*s*s*s)+1/(a*a*a*a))));return s=.4*t,a=.8*(1-t),[Math.sqrt(1/(1/(s*s)+1/(a*a))),l,i]}function sr(t){const e=void 0!==t.l?t.l:0,n=void 0!==t.a?t.a:0,r=void 0!==t.b?t.b:0,i={mode:"okhsl",l:er(e)};void 0!==t.alpha&&(i.alpha=t.alpha);let o=Math.sqrt(n*n+r*r);if(!o)return i.s=0,i;let s,[a,l,c]=or(e,n/o,r/o);if(o<l){let t=0,e=.8*a;s=(o-t)/(e+(1-e/l)*(o-t))*.8}else{let t=.2*l*l*1.25*1.25/a;s=.8+(o-l)/(t+(1-t/(c-l))*(o-l))*.2}return s&&(i.s=s,i.h=Kt(180*Math.atan2(r,n)/Math.PI)),i}function ar(t){let e=void 0!==t.h?t.h:0,n=void 0!==t.s?t.s:0,r=void 0!==t.l?t.l:0;const i={mode:"oklab",l:nr(r)};if(void 0!==t.alpha&&(i.alpha=t.alpha),!n||1===r)return i.a=i.b=0,i;let o,s,a,l,c=Math.cos(e/180*Math.PI),h=Math.sin(e/180*Math.PI),[u,d,f]=or(i.l,c,h);n<.8?(o=1.25*n,s=0,a=.8*u,l=1-a/d):(o=5*(n-.8),s=d,a=.2*d*d*1.25*1.25/u,l=1-a/(f-d));let p=s+o*a/(1-l*o);return i.a=p*c,i.b=p*h,i}const lr={...He,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:sr,rgb:t=>sr(Qn(t))},toMode:{oklab:ar,rgb:t=>tr(ar(t))}},cr=lr;function hr(t){let e=void 0!==t.l?t.l:0,n=void 0!==t.a?t.a:0,r=void 0!==t.b?t.b:0,i=Math.sqrt(n*n+r*r),o=i?n/i:1,s=i?r/i:1,[a,l]=ir(o,s),c=1-.5/a,h=l/(i+e*l),u=h*e,d=h*i,f=nr(u),p=d*f/u,g=Jn({l:f,a:o*p,b:s*p}),m=Math.cbrt(1/Math.max(g.r,g.g,g.b,0));e/=m,i=i/m*er(e)/e,e=er(e);const y={mode:"okhsv",s:i?(.5+l)*d/(.5*l+l*c*d):0,v:e?e/u:0};return y.s&&(y.h=Kt(180*Math.atan2(r,n)/Math.PI)),void 0!==t.alpha&&(y.alpha=t.alpha),y}function ur(t){const e={mode:"oklab"};void 0!==t.alpha&&(e.alpha=t.alpha);const n=void 0!==t.h?t.h:0,r=void 0!==t.s?t.s:0,i=void 0!==t.v?t.v:0,o=Math.cos(n/180*Math.PI),s=Math.sin(n/180*Math.PI),[a,l]=ir(o,s),c=.5,h=1-c/a,u=1-r*c/(c+l-l*h*r),d=r*l*c/(c+l-l*h*r),f=nr(u),p=d*f/u,g=Jn({l:f,a:o*p,b:s*p}),m=Math.cbrt(1/Math.max(g.r,g.g,g.b,0)),y=nr(i*u),v=d*y/u;return e.l=y*m,e.a=v*o*m,e.b=v*s*m,e}const dr={...Fe,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:hr,rgb:t=>hr(Qn(t))},toMode:{oklab:ur,rgb:t=>tr(ur(t))}},fr=dr,pr={...Sn,mode:"oklab",toMode:{lrgb:Jn,rgb:tr},fromMode:{lrgb:Kn,rgb:Qn},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[function(t,e){if(!e||"oklab"!==e[0])return;const n={mode:"oklab"},[,r,i,o,s]=e;return r.type!==Mt&&i.type!==Mt&&o.type!==Mt?(r.type!==_t&&(n.l=Math.min(Math.max(0,r.type===bt?r.value:r.value/100),1)),i.type!==_t&&(n.a=i.type===bt?i.value:.4*i.value/100),o.type!==_t&&(n.b=o.type===bt?o.value:.4*o.value/100),s.type!==_t&&(n.alpha=Math.min(1,Math.max(0,s.type===bt?s.value:s.value/100))),n):void 0}],serialize:t=>`oklab(${void 0!==t.l?t.l:"none"} ${void 0!==t.a?t.a:"none"} ${void 0!==t.b?t.b:"none"}${t.alpha<1?` / ${t.alpha}`:""})`},gr=pr,mr={...Pn,mode:"oklch",toMode:{oklab:t=>he(t,"oklab"),rgb:t=>tr(he(t,"oklab"))},fromMode:{rgb:t=>ce(Qn(t),"oklch"),oklab:t=>ce(t,"oklch")},parse:[function(t,e){if(!e||"oklch"!==e[0])return;const n={mode:"oklch"},[,r,i,o,s]=e;if(r.type!==_t){if(r.type===Mt)return;n.l=Math.min(Math.max(0,r.type===bt?r.value:r.value/100),1)}if(i.type!==_t&&(n.c=Math.max(0,i.type===bt?i.value:.4*i.value/100)),o.type!==_t){if(o.type===wt)return;n.h=o.value}return s.type!==_t&&(n.alpha=Math.min(1,Math.max(0,s.type===bt?s.value:s.value/100))),n}],serialize:t=>`oklch(${void 0!==t.l?t.l:"none"} ${void 0!==t.c?t.c:"none"} ${void 0!==t.h?t.h:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},yr=mr,vr=t=>{let{r:e,g:n,b:r,alpha:i}=Vt(t),o={mode:"xyz65",x:.486570948648216*e+.265667693169093*n+.1982172852343625*r,y:.2289745640697487*e+.6917385218365062*n+.079286914093745*r,z:0*e+.0451133818589026*n+1.043944368900976*r};return void 0!==i&&(o.alpha=i),o},xr=({x:t,y:e,z:n,alpha:r})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let i=Yt({r:2.4934969119414263*t-.9313836179191242*e-.402710784450717*n,g:-.8294889695615749*t+1.7626640603183465*e+.0236246858419436*n,b:.0358458302437845*t-.0761723892680418*e+.9568845240076871*n},"p3");return void 0!==r&&(i.alpha=r),i},br={...Nt,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:t=>xr(Ut(t)),xyz65:xr},toMode:{rgb:t=>Gt(vr(t)),xyz65:vr}},wr=br,_r=t=>{let e=Math.abs(t);return e>=1/512?Math.sign(t)*Math.pow(e,1/1.8):16*t},Mr=({x:t,y:e,z:n,alpha:r})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let i={mode:"prophoto",r:_r(1.3457868816471585*t-.2555720873797946*e-.0511018649755453*n),g:_r(-.5446307051249019*t+1.5082477428451466*e+.0205274474364214*n),b:_r(0*t+0*e+1.2119675456389452*n)};return void 0!==r&&(i.alpha=r),i},kr=(t=0)=>{let e=Math.abs(t);return e>=16/512?Math.sign(t)*Math.pow(e,1.8):t/16},Cr=t=>{let e=kr(t.r),n=kr(t.g),r=kr(t.b),i={mode:"xyz50",x:.7977666449006423*e+.1351812974005331*n+.0313477341283922*r,y:.2880748288194013*e+.7118352342418731*n+899369387256e-16*r,z:0*e+0*n+.8251046025104602*r};return void 0!==t.alpha&&(i.alpha=t.alpha),i},jr={...Nt,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:Mr,rgb:t=>Mr(Cn(t))},toMode:{xyz50:Cr,rgb:t=>Mn(Cr(t))}},Or=jr,Ar=1.09929682680944,Er=t=>{const e=Math.abs(t);return e>.018053968510807?(Math.sign(t)||1)*(Ar*Math.pow(e,.45)-(Ar-1)):4.5*t},Sr=({x:t,y:e,z:n,alpha:r})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let i={mode:"rec2020",r:Er(1.7166511879712683*t-.3556707837763925*e-.2533662813736599*n),g:Er(-.6666843518324893*t+1.6164812366349395*e+.0157685458139111*n),b:Er(.0176398574453108*t-.0427706132578085*e+.9421031212354739*n)};return void 0!==r&&(i.alpha=r),i},$r=1.09929682680944,zr=(t=0)=>{let e=Math.abs(t);return e<.08124285829863151?t/4.5:(Math.sign(t)||1)*Math.pow((e+$r-1)/$r,1/.45)},Pr=t=>{let e=zr(t.r),n=zr(t.g),r=zr(t.b),i={mode:"xyz65",x:.6369580483012911*e+.1446169035862083*n+.1688809751641721*r,y:.262700212011267*e+.6779980715188708*n+.059301716469862*r,z:0*e+.0280726930490874*n+1.0609850577107909*r};return void 0!==t.alpha&&(i.alpha=t.alpha),i},Lr={...Nt,mode:"rec2020",fromMode:{xyz65:Sr,rgb:t=>Sr(Ut(t))},toMode:{xyz65:Pr,rgb:t=>Gt(Pr(t))},parse:["rec2020"],serialize:"rec2020"},Tr=Lr,Ir=.0037930732552754493,Rr=Math.cbrt(Ir),Nr=t=>Math.cbrt(t)-Rr,Hr=t=>Math.pow(t+Rr,3),Br={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:({x:t,y:e,b:n,alpha:r})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);const i=Hr(t+e)-Ir,o=Hr(e-t)-Ir,s=Hr(n+e)-Ir,a=Yt({r:11.031566904639861*i-9.866943908131562*o-.16462299650829934*s,g:-3.2541473810744237*i+4.418770377582723*o-.16462299650829934*s,b:-3.6588512867136815*i+2.7129230459360922*o+1.9459282407775895*s});return void 0!==r&&(a.alpha=r),a}},fromMode:{rgb:t=>{const{r:e,g:n,b:r,alpha:i}=Vt(t),o=Nr(.3*e+.622*n+.078*r+Ir),s=Nr(.23*e+.692*n+.078*r+Ir),a={mode:"xyb",x:(o-s)/2,y:(o+s)/2,b:Nr(.2434226892454782*e+.2047674442449682*n+.5518098665095535*r+Ir)-(o+s)/2};return void 0!==i&&(a.alpha=i),a}},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:Tt,y:Tt,b:Tt,alpha:{use:Tt,fixup:Rt}}},Wr={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Mn,lab:On},fromMode:{rgb:Cn,lab:_n},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:Tt,y:Tt,z:Tt,alpha:{use:Tt,fixup:Rt}}},Fr={mode:"xyz65",toMode:{rgb:Gt,xyz50:t=>{let{x:e,y:n,z:r,alpha:i}=t;void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0);let o={mode:"xyz50",x:1.0479298208405488*e+.0229467933410191*n-.0501922295431356*r,y:.0296278156881593*e+.990434484573249*n-.0170738250293851*r,z:-.0092430581525912*e+.0150551448965779*n+.7518742899580008*r};return void 0!==i&&(o.alpha=i),o}},fromMode:{rgb:Ut,xyz50:t=>{let{x:e,y:n,z:r,alpha:i}=t;void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0);let o={mode:"xyz65",x:.9554734527042182*e-.0230985368742614*n+.0632593086610217*r,y:-.0283697069632081*e+1.0099954580058226*n+.021041398966943*r,z:.0123140016883199*e-.0205076964334779*n+1.3303659366080753*r};return void 0!==i&&(o.alpha=i),o}},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:Tt,y:Tt,z:Tt,alpha:{use:Tt,fixup:Rt}}},Dr={mode:"yiq",toMode:{rgb:({y:t,i:e,q:n,alpha:r})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);const i={mode:"rgb",r:t+.95608445*e+.6208885*n,g:t-.27137664*e-.6486059*n,b:t-1.10561724*e+1.70250126*n};return void 0!==r&&(i.alpha=r),i}},fromMode:{rgb:({r:t,g:e,b:n,alpha:r})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);const i={mode:"yiq",y:.29889531*t+.58662247*e+.11448223*n,i:.59597799*t-.2741761*e-.32180189*n,q:.21147017*t-.52261711*e+.31114694*n};return void 0!==r&&(i.alpha=r),i}},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:Tt,i:Tt,q:Tt,alpha:{use:Tt,fixup:Rt}}};const Vr=t=>Math.round(255*(t=>Math.max(0,Math.min(1,t||0)))(t)),Ur=lt("rgb"),qr=(lt("hsl"),t=>{if(void 0!==t)return"#"+(1<<24|Vr(t.r)<<16|Vr(t.g)<<8|Vr(t.b)).toString(16).slice(1)}),Yr=t=>qr(Ur(t));function Gr(t){let e=lt("lrgb")(t);return.2126*e.r+.7152*e.g+.0722*e.b}function Xr(t,e){let n=Gr(t),r=Gr(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}pt(Zt),pt(le),pt(ze),pt(Le),pt(Ie),pt(He),pt(Fe),pt(Ve),pt(rn),pt(pn),pt(vn),pt(Sn),pt($n),pt(Pn),pt(Tn),pt(Yn),pt(Gn),pt(Zn),pt(cr),pt(fr),pt(gr);const Zr=pt(yr);function Kr(t){if(!t)return!1;const e=t.trim().toLowerCase();return"none"!==e&&"transparent"!==e&&""!==e}function Qr(t){const e=Lt(t);return!!e&&Gr(e)<.5}pt(wr),pt(Or),pt(Tr),pt(Nt),pt(Br),pt(Wr),pt(Fr),pt(Dr);const Jr=Array.isArray,ti="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;var ei="object"==typeof self&&self&&self.Object===Object&&self;const ni=ti||ei||Function("return this")(),ri=ni.Symbol;var ii=Object.prototype,oi=ii.hasOwnProperty,si=ii.toString,ai=ri?ri.toStringTag:void 0;var li=Object.prototype.toString;var ci=ri?ri.toStringTag:void 0;const hi=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ci&&ci in Object(t)?function(t){var e=oi.call(t,ai),n=t[ai];try{t[ai]=void 0;var r=!0}catch(t){}var i=si.call(t);return r&&(e?t[ai]=n:delete t[ai]),i}(t):function(t){return li.call(t)}(t)},ui=function(t){return null!=t&&"object"==typeof t},di=function(t){return"symbol"==typeof t||ui(t)&&"[object Symbol]"==hi(t)};var fi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pi=/^\w*$/;const gi=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},mi=function(t){if(!gi(t))return!1;var e=hi(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};var yi,vi=ni["__core-js_shared__"],xi=(yi=/[^.]+$/.exec(vi&&vi.keys&&vi.keys.IE_PROTO||""))?"Symbol(src)_1."+yi:"";var bi=Function.prototype.toString;const wi=function(t){if(null!=t){try{return bi.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var _i=/^\[object .+?Constructor\]$/,Mi=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const ki=function(t){return!(!gi(t)||(e=t,xi&&xi in e))&&(mi(t)?Mi:_i).test(wi(t));var e},Ci=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return ki(n)?n:void 0},ji=Ci(Object,"create");var Oi=Object.prototype.hasOwnProperty;var Ai=Object.prototype.hasOwnProperty;function Ei(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ei.prototype.clear=function(){this.__data__=ji?ji(null):{},this.size=0},Ei.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ei.prototype.get=function(t){var e=this.__data__;if(ji){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Oi.call(e,t)?e[t]:void 0},Ei.prototype.has=function(t){var e=this.__data__;return ji?void 0!==e[t]:Ai.call(e,t)},Ei.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ji&&void 0===e?"__lodash_hash_undefined__":e,this};const Si=Ei,$i=function(t,e){return t===e||t!=t&&e!=e},zi=function(t,e){for(var n=t.length;n--;)if($i(t[n][0],e))return n;return-1};var Pi=Array.prototype.splice;function Li(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Li.prototype.clear=function(){this.__data__=[],this.size=0},Li.prototype.delete=function(t){var e=this.__data__,n=zi(e,t);return!(n<0||(n==e.length-1?e.pop():Pi.call(e,n,1),--this.size,0))},Li.prototype.get=function(t){var e=this.__data__,n=zi(e,t);return n<0?void 0:e[n][1]},Li.prototype.has=function(t){return zi(this.__data__,t)>-1},Li.prototype.set=function(t,e){var n=this.__data__,r=zi(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};const Ti=Li,Ii=Ci(ni,"Map"),Ri=function(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map};function Ni(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ni.prototype.clear=function(){this.size=0,this.__data__={hash:new Si,map:new(Ii||Ti),string:new Si}},Ni.prototype.delete=function(t){var e=Ri(this,t).delete(t);return this.size-=e?1:0,e},Ni.prototype.get=function(t){return Ri(this,t).get(t)},Ni.prototype.has=function(t){return Ri(this,t).has(t)},Ni.prototype.set=function(t,e){var n=Ri(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};const Hi=Ni;function Bi(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Bi.Cache||Hi),n}Bi.Cache=Hi;var Wi,Fi,Di=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vi=/\\(\\)?/g,Ui=(Wi=Bi(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Di,function(t,n,r,i){e.push(r?i.replace(Vi,"$1"):n||t)}),e},function(t){return 500===Fi.size&&Fi.clear(),t}),Fi=Wi.cache,Wi);const qi=Ui;var Yi=ri?ri.prototype:void 0,Gi=Yi?Yi.toString:void 0;const Xi=function t(e){if("string"==typeof e)return e;if(Jr(e))return function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}(e,t)+"";if(di(e))return Gi?Gi.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n},Zi=function(t){return null==t?"":Xi(t)},Ki=function(t,e){return Jr(t)?t:function(t,e){if(Jr(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!di(t))||pi.test(t)||!fi.test(t)||null!=e&&t in Object(e)}(t,e)?[t]:qi(Zi(t))},Qi=function(t){if("string"==typeof t||di(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},Ji=function(t,e,n){var r=null==t?void 0:function(t,e){for(var n=0,r=(e=Ki(e,t)).length;null!=t&&n<r;)t=t[Qi(e[n++])];return n&&n==r?t:void 0}(t,e);return void 0===r?n:r};function to(t,e){if(0===e.length)return{};const n=Array.isArray(t)?t[e[0]]:t.items[e[0]];if(1===e.length)return n;const r=e.slice(1).map(t=>`children[${t}]`).join(".");return Ji(n,r)}function eo(t){const{structure:e,item:n,items:r}=t;return!!e&&!!n&&!r.some(t=>!t)}const no="infographic-component",ro=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}(t,e,n)};var io=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const oo=function(t){return io.test(t)};var so="\\ud800-\\udfff",ao="["+so+"]",lo="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",co="\\ud83c[\\udffb-\\udfff]",ho="[^"+so+"]",uo="(?:\\ud83c[\\udde6-\\uddff]){2}",fo="[\\ud800-\\udbff][\\udc00-\\udfff]",po="(?:"+lo+"|"+co+")?",go="[\\ufe0e\\ufe0f]?",mo=go+po+"(?:\\u200d(?:"+[ho,uo,fo].join("|")+")"+go+po+")*",yo="(?:"+[ho+lo+"?",lo,uo,fo,ao].join("|")+")",vo=RegExp(co+"(?="+co+")|"+yo+mo,"g");const xo=function(t){return oo(t)?function(t){return t.match(vo)||[]}(t):function(t){return t.split("")}(t)},bo=(wo="toUpperCase",function(t){t=Zi(t);var e=oo(t)?xo(t):void 0,n=e?e[0]:t.charAt(0),r=e?ro(e,1).join(""):t.slice(1);return n[wo]()+r});var wo;const _o=function(t){return function(e){return null==t?void 0:t[e]}}({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});var Mo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ko=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var Co=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var jo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Oo="\\ud800-\\udfff",Ao="\\u2700-\\u27bf",Eo="a-z\\xdf-\\xf6\\xf8-\\xff",So="A-Z\\xc0-\\xd6\\xd8-\\xde",$o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zo="["+$o+"]",Po="\\d+",Lo="["+Ao+"]",To="["+Eo+"]",Io="[^"+Oo+$o+Po+Ao+Eo+So+"]",Ro="(?:\\ud83c[\\udde6-\\uddff]){2}",No="[\\ud800-\\udbff][\\udc00-\\udfff]",Ho="["+So+"]",Bo="(?:"+To+"|"+Io+")",Wo="(?:"+Ho+"|"+Io+")",Fo="(?:['’](?:d|ll|m|re|s|t|ve))?",Do="(?:['’](?:D|LL|M|RE|S|T|VE))?",Vo="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Uo="[\\ufe0e\\ufe0f]?",qo=Uo+Vo+"(?:\\u200d(?:"+["[^"+Oo+"]",Ro,No].join("|")+")"+Uo+Vo+")*",Yo="(?:"+[Lo,Ro,No].join("|")+")"+qo,Go=RegExp([Ho+"?"+To+"+"+Fo+"(?="+[zo,Ho,"$"].join("|")+")",Wo+"+"+Do+"(?="+[zo,Ho+Bo,"$"].join("|")+")",Ho+"?"+Bo+"+"+Fo,Ho+"+"+Do,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Po,Yo].join("|"),"g");const Xo=function(t,e,n){return t=Zi(t),void 0===(e=n?void 0:e)?function(t){return jo.test(t)}(t)?function(t){return t.match(Go)||[]}(t):function(t){return t.match(Co)||[]}(t):t.match(e)||[]};var Zo=RegExp("['’]","g");const Ko=function(t){return function(e){return function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}(Xo(function(t){return(t=Zi(t))&&t.replace(Mo,_o).replace(ko,"")}(e).replace(Zo,"")),t,"")}},Qo=Ko(function(t,e,n){return e=e.toLowerCase(),t+(n?function(t){return bo(Zi(t).toLowerCase())}(e):e)}),Jo=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","-apple-system","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong"]);function ts(t){const e=[];let n="",r=null;const i=()=>{const t=n.trim();t&&e.push(t),n=""};for(let e=0;e<t.length;e+=1){const o=t[e];r?(n+=o,o===r&&(r=null)):'"'!==o&&"'"!==o?","!==o?n+=o:i():(r=o,n+=o)}return i(),e}function es(t){const e=t.trim();return e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'")?e.slice(1,-1):e}function ns(t){const e=ts(t);return e.length?1===e.length?es(e[0]):e.map(t=>es(t)).join(", "):""}function rs(t){const e=ts(t);return e.length?e.map(t=>function(t){const e=t.trim();if(!e)return e;if(function(t){const e=t.trim();return e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'")}(e))return e;if(Jo.has(e.toLowerCase()))return e;if(!function(t){return/^\d/.test(t)||/\s/.test(t)}(e))return e;const n=e.includes('"')&&!e.includes("'")?"'":'"';return`${n}${e}${n}`}(t)).join(", "):t.trim()}const is={100:"thin",hairline:"thin",thin:"thin",200:"extralight",ultralight:"extralight",extralight:"extralight",300:"light",light:"light",400:"regular",normal:"regular",regular:"regular",500:"medium",medium:"medium",600:"semibold",demibold:"semibold",semibold:"semibold",700:"bold",bold:"bold",800:"extrabold",ultrabold:"extrabold",extrabold:"extrabold",900:"black",heavy:"black",black:"black",950:"extrablack",ultrablack:"extrablack",extrablack:"extrablack"};function os(t){const e=String(t).toLowerCase();return is[e]||"regular"}const ss=new Map,as=new Map;const ls={fontFamily:"sans-serif",fontWeight:400,fontStyle:"normal",unitsPerEm:2048,metrics:{ascender:2189,descender:-555,lineGap:0},glyphs:{'"':727,"%":1821,"'":391,"(":682,")":682,"*":797,"+":1196,"-":682,"<":1196,"=":1196,">":1196,"@":2079,C:1479,D:1479,F:1251,G:1593,H:1479,J:1024,M:1706,N:1479,O:1593,Q:1593,R:1479,T:1251,U:1479,W:1933,Z:1251,"^":961,_:1024,"`":682,c:1024,i:455,j:455,k:1024,l:455,m:1706,r:682,s:1024,v:1024,w:1479,x:1024,y:1024,z:1024,"{":684,"|":532,"}":684,"~":1196},glyphsByWidth:{569:" !,./:;I[\\]ft",1139:"#$0123456789?Labdeghnopqu",1366:"&ABEKPSVXY"},defaultWidth:1139};function cs(t){return void 0===t||"normal"===t?"400":"bold"===t?"700":"string"==typeof t?{thin:"100",hairline:"100","extra-light":"200","ultra-light":"200",light:"300",regular:"400",normal:"400",medium:"500","semi-bold":"600",semibold:"600","demi-bold":"600",demibold:"600","extra-bold":"800",extrabold:"800","ultra-bold":"800",ultrabold:"800",black:"900",heavy:"900","extra-black":"950",extrablack:"950","ultra-black":"950",ultrablack:"950",bolder:"900",lighter:"300"}[t.toLowerCase()]||t:String(t)}function hs(t){return t||"normal"}function us(t){const e=t.fontFamily,n=cs(t.fontWeight),r=hs(t.fontStyle);if(t.aliases)for(const n of t.aliases)as.has(n)||as.set(n,e);if(t.glyphsByWidth){const e={...t.glyphs||{}};for(const[n,r]of Object.entries(t.glyphsByWidth))if("string"==typeof r){const t=Number(n);for(const n of r)e[n]=t}else e[n]=r;t={...t,glyphs:e,glyphsByWidth:void 0}}ss.has(e)||ss.set(e,new Map);const i=ss.get(e);i.has(n)||i.set(n,new Map),i.get(n).set(r,t)}function ds(t){if(void 0===t)return 14;if("number"==typeof t)return t;const e=parseFloat(t);return isNaN(e)?16:e}function fs(t,e={}){const n=function(t,e){if(!e||"none"===e)return t;switch(e){case"uppercase":return t.toUpperCase();case"lowercase":return t.toLowerCase();case"capitalize":return t.split(" ").map(t=>0===t.length?t:t[0].toUpperCase()+t.slice(1).toLowerCase()).join(" ");default:return t}}(t,e.textTransform),r=function(t,e,n){const r=function(t){return t?ss.has(t)?t:as.get(t)||t:t}(t||"sans-serif"),i=cs(e),o=hs(n),s=ss.get(r);if(!s)return console.warn(`Font family "${r}" not registered, using fallback font data`),ls;let a=s.get(i);if(a){let t=a.get(o);if(t)return t;if("normal"!==o&&(t=a.get("normal"),t))return t;const e=a.values().next().value;if(e)return e}if(a=s.get("400"),a){let t=a.get(o);if(t)return t;if("normal"!==o&&(t=a.get("normal"),t))return t;const e=a.values().next().value;if(e)return e}const l=s.values().next().value;if(l){const t=l.values().next().value;if(t)return t}throw new Error(`No font data found for family "${r}" with weight "${i}" and style "${o}"`)}(e.fontFamily,e.fontWeight,e.fontStyle),i=ds(e.fontSize),o=e.letterSpacing||0,s=e.wordSpacing||0;let a=0;const l=Array.from(n);for(let t=0;t<l.length;t++){const e=l[t],n=t<l.length-1?l[t+1]:void 0;let c=r.glyphs?.[e];if(void 0===c&&(c=r.defaultWidth||r.unitsPerEm/2),a+=c/r.unitsPerEm*i,n&&r.kerning){const t=r.kerning[e+n];void 0!==t&&(a+=t/r.unitsPerEm*i)}t<l.length-1&&(a+=o)," "===e&&(a+=s)}const c=function(t,e){const n=ds(t.fontSize),r=t.lineHeight;if(void 0===r){const{ascender:t,descender:r,lineGap:i=0}=e.metrics;return(t-r+i)/e.unitsPerEm*n}return"number"==typeof r?r*n:"pixel"===r.type?r.value:"percent"===r.type?r.value/100*n:n}(e,r),{ascender:h}=r.metrics;return{width:a,height:c,baseline:h/r.unitsPerEm*i}}const ps=new WeakMap;function gs(t){const e=ps.get(t);return e?Array.from(e.values()):[]}function ms(t,e){var n;return null===(n=ps.get(t))||void 0===n?void 0:n.get(e)}function ys(t,e,n){let r=ps.get(t);return r||(r=new Map,ps.set(t,r)),r.set(e,n),n.finally(()=>{const r=ps.get(t);r&&(r.get(e)===n&&r.delete(e),0===r.size&&ps.delete(t))}),n}const vs=new Map;let xs="Alibaba PuHuiTi";function bs(t){const e=ts(t);for(const t of e){const e=vs.get(ns(t));if(e)return e}return null}function ws(){return Array.from(vs.values())}function _s(t){xs=rs(t)}function Ms(t){const e=ts(t).flatMap(t=>{const e=bs(t);if(!e)return[];const{baseUrl:n,fontWeight:r}=e;return Object.values(r).filter(t=>!!t).map(t=>kc(n,t))});return Array.from(new Set(e))}const ks=new WeakMap,Cs=new WeakMap;function js(t,e,n){let r=Cs.get(t);return r||(r=new Map,Cs.set(t,r)),r.set(e,n),n.finally(()=>{const r=Cs.get(t);r&&(r.get(e)===n&&r.delete(e),0===r.size&&Cs.delete(t))}),n}const Os="https://assets.antv.antgroup.com",As=t=>`${t}/result.css`;[{fontFamily:"Alibaba PuHuiTi",name:"阿里巴巴普惠体",baseUrl:Os,fontWeight:{regular:As("AlibabaPuHuiTi-Regular"),bold:As("AlibabaPuHuiTi-Bold")}},{fontFamily:"Source Han Sans",name:"黑体",baseUrl:Os,fontWeight:{regular:As("SourceHanSansCN-Regular")}},{fontFamily:"Source Han Serif",name:"宋体",baseUrl:Os,fontWeight:{regular:As("SourceHanSerifCN-Regular")}},{fontFamily:"LXGW WenKai",name:"楷体",baseUrl:Os,fontWeight:{regular:As("LXGWWenKai-Regular")}},{fontFamily:"851tegakizatsu",name:"手写体",baseUrl:Os,fontWeight:{regular:As("851tegakizatsu-Regular")}}].forEach(function(t){const e=Object.assign({},t);return vs.set(e.fontFamily,e),e.fontFamily=rs(e.fontFamily),e});const Es=new Map;function Ss(t,e){Es.set(t,e)}Ss("antv",["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#70CAF8"]),Ss("spectral",(t,e,n)=>{const r=Math.min(Math.max(n,3),11);return[["#fc8d59","#ffffbf","#99d594"],["#d7191c","#fdae61","#abdda4","#2b83ba"],["#d7191c","#fdae61","#ffffbf","#abdda4","#2b83ba"],["#d53e4f","#fc8d59","#fee08b","#e6f598","#99d594","#3288bd"],["#d53e4f","#fc8d59","#fee08b","#ffffbf","#e6f598","#99d594","#3288bd"],["#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd"],["#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd"],["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]][r-3][e%r]});const $s=(t=[],e,n)=>{var r;const i="string"==typeof t?function(t){return Es.get(t)}(t)||[]:t,o=null!==(r=e[0])&&void 0!==r?r:0;if("function"==typeof i)return i(n?o/n:0,o,null!=n?n:0);if(Array.isArray(i)){if(0===i.length)return;return i[o%i.length]}};function zs(t,e){const n=Object.entries(e).reduce((e,[n,r])=>{if("function"==typeof r){const i=r(t.getAttribute(n),t);null!=i&&(e[n]=i)}else Object.assign(e,{[n]:r});return e},{});return n}const Ps="btn-add-icon",Ls="btn-remove-icon";const Ts="btn-icon-defs";function Is(t,e){const{id:n,x:r=0,y:i=0,width:o=0,height:s=0}=Sl(t,["id","x","y","width","height"]),a=Ol("g",{id:n,class:"btn-group",transform:`translate(${r}, ${i})`}),l=t.getAttribute("data-items");l&&a.setAttribute("data-items",l);const c=Math.max(+o,+s)/2,h=Ol("circle",{cx:c,cy:c,r:c,fill:"#fff",stroke:"transparent"});a.appendChild(h);const u=Ol("use",{href:`#${e}`,width:o,height:s});a.appendChild(u),a.style.cursor="pointer",t.replaceWith(a)}function Rs(t){Is(t,Ps)}function Ns(t){Is(t,Ls)}function Hs(t){return function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})}(this,void 0,void 0,function*(){var e;if(!t||!t.startsWith("data:"))return null;const n=null===(e=t.match(/^data:([^;]+)/))||void 0===e?void 0:e[1];if(!n)return null;const{width:r,height:i,hasAlpha:o}=yield new Promise((e,r)=>{const i=new Image;i.onload=()=>{const t=i.naturalWidth,r=i.naturalHeight,o=document.createElement("canvas"),s=o.getContext("2d");if(!s)return e({width:t,height:r,hasAlpha:!1});if(["image/jpeg","image/jpg","image/webp","image/gif"].includes(n))return e({width:t,height:r,hasAlpha:!1});o.width=t,o.height=r,s.drawImage(i,0,0);let a=!1;for(let e=0;e<t&&!a;e+=10)for(let t=0;t<r;t+=10)if(s.getImageData(e,t,1,1).data[3]<255){a=!0;break}e({width:t,height:r,hasAlpha:a})},i.onerror=()=>r(new Error("Failed to analysis image")),i.src=t}),s=(()=>{if(o)return"xMidYMid meet";if((null==n?void 0:n.includes("image/gif"))||(null==n?void 0:n.includes("image/svg")))return"xMidYMid meet";if(Math.min(r,i)<=200)return"xMidYMid meet";const t=r/i;return t>=.6&&t<=1.67||t<.3||t>3.33?"xMidYMid meet":"xMidYMid slice"})();return Al(`\n<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${r} ${i}" preserveAspectRatio="${s}">\n <image href="${t}" width="${r}" height="${i}" />\n</symbol>`)})}function Bs(t){return t&&function(t){const e=t.trim();return/^(?:<\?xml[^>]*>\s*)?<svg[\s>]/i.test(e)||e.startsWith("<symbol")}(t)?Al(t.replace(/<svg(?=[\s/>])/i,"<symbol").replace(/<\/svg>/i,"</symbol>")):null}function Ws(t,e){return function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})}(this,void 0,void 0,function*(){if(!t||!function(t){try{return Boolean(new URL(t))}catch(t){return!1}}(t))return null;const n=yield mc(t);if(!n.ok)throw new Error("Failed to load resource");if(function(t,e){return!!t.toLowerCase().includes("image/svg")||!t&&"svg"===e}(n.headers.get("Content-Type")||"",e))return Bs(yield n.text());const r=yield n.blob(),i=yield function(t){return new Promise((e,n)=>{const r=new FileReader;r.onloadend=()=>{e(r.result)},r.onerror=n,r.readAsDataURL(t)})}(r);return Hs(i)})}var Fs=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})};function Ds(t,e){return Fs(this,void 0,void 0,function*(){var n;if(!t)return null;const r=yield(t=>Fs(void 0,void 0,void 0,function*(){try{const e=`https://www.weavefox.cn/api/v1/infographic/icon?${new URLSearchParams({text:t,topK:"1"}).toString()}`,n=yield mc(e);if(!n.ok)return null;const r=yield n.json();return(null==r?void 0:r.success)&&Array.isArray(r.data)&&r.data[0]||null}catch(e){return console.error(`Failed to query icon for "${t}":`,e),null}}))(t);if(!r)return null;if(function(t){const e=t.trim();return e.startsWith("<svg")||e.startsWith("<symbol")}(r))return Bs(r);if(r.startsWith("data:")){const t=(null===(n=r.match(/^data:([^;]+)/))||void 0===n?void 0:n[1])||"",e=r.includes(";base64,");if("image/svg+xml"===t&&!e){const t=r.indexOf(",");return Bs(t>=0?r.slice(t+1):r)}return Hs(r)}return Ws(r,e)})}const Vs=new Set(["svg","png","jpg","jpeg","webp","gif"]);function Us(t){const e=t.toLowerCase();return e.endsWith(".svg")||e.includes(".svg?")?"svg":e.endsWith(".png")||e.endsWith(".jpg")||e.endsWith(".jpeg")||e.endsWith(".webp")||e.endsWith(".gif")?"image":void 0}function qs(t){if(!t)return null;if("string"!=typeof t)return t.source?t:"image"===t.type?{source:"inline",format:"image",data:t.data}:"svg"===t.type?{source:"inline",format:"svg",encoding:"raw",data:t.data}:"remote"===t.type?{source:"remote",format:t.format,data:t.data}:"search"===t.type?{source:"search",format:t.format||"svg",data:t.data}:"custom"===t.type?{source:"custom",data:t.data}:null;const e=function(t){if(!t.startsWith("data:"))return null;const e=t.indexOf(",");if(-1===e)return null;const n=t.slice(5,e),r=t.slice(e+1),i=n.split(";"),o=i[0],s=i.includes("base64");return"image/svg+xml"!==o||s?o.startsWith("image/")?{source:"inline",format:"image/svg+xml"===o?"svg":"image",encoding:s?"base64":"data-uri",data:t}:null:{source:"inline",format:"svg",encoding:"raw",data:r.startsWith("%3C")?decodeURIComponent(r):r}}(t);if(e)return e;return function(t){var e;if(!t.startsWith("ref:"))return null;const n=t.slice(4),[r,...i]=n.split(":");if(!r||0===i.length)return null;let o;i.length>1&&Vs.has(i[0].toLowerCase())&&(o=null===(e=i.shift())||void 0===e?void 0:e.toLowerCase());const s=i.join(":");if(!s)return null;const a="url"===r?"remote":r;return"remote"===a?{source:"remote",format:o||Us(s)||void 0,data:s}:"search"===a?{source:"search",format:o||"svg",data:s}:"svg"===a?{source:"inline",format:"svg",data:s,encoding:"raw"}:{source:"custom",data:t,format:o}}(t)||(function(t){const e=t.trim();return e.startsWith("<svg")||e.startsWith("<symbol")}(t)?{source:"inline",format:"svg",encoding:"raw",data:t}:{source:"custom",data:t})}function Ys(t){const e="string"==typeof t?qs(t):t;return e?"rsc-"+yc(JSON.stringify(e)):null}function Gs(t){const e=Ys(t);return e?`#${e}`:null}var Xs=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})};const Zs=new Map,Ks=new WeakMap;function Qs(t,e,n,r){return Xs(this,void 0,void 0,function*(){if(!t)return null;const i=qs(n);if(!i)return null;const o=Ys(i),s=`resource:${o}`,a=Ks.get(t);if(null==a?void 0:a.has(o))return o;const l=ms(t,s);if(l)return yield l;const c=(()=>Xs(this,void 0,void 0,function*(){const n=Zs.has(o)?Zs.get(o)||null:yield function(t,e,n){return Xs(this,void 0,void 0,function*(){const r=qs(e);if(!r)return null;r.scene||(r.scene=t);const{source:i,data:o,format:s,encoding:a}=r;let l=null;try{if("inline"===i){const t=o.startsWith("data:");l="svg"===s&&"raw"===a?Bs(o):"svg"===s&&t||t||"image"===s?yield Hs(o):Bs(o)}else if("remote"===i)l=yield Ws(o,s);else if("search"===i)l=yield Ds(o,s);else{const t=null;t&&(l=yield t(r))}}catch(t){l=null}return l||(yield Ds(function(t,e,n){const r="illus"===e?"illustration":"icon",i=Js(t.data)||Js(null==n?void 0:n.label)||Js(null==n?void 0:n.desc);if(i)return i;const o=Js(t.data);return o?"inline"===t.source||o.startsWith("data:")||o.startsWith("<svg")||o.startsWith("<symbol")?r:o:r}(r,t,n),s))})}(e,i,r);if(!n)return null;Ks.has(t)||Ks.set(t,new Map);const s=Ks.get(t);if(s.has(o))return o;const a=zl(t);return n.id=o,a.appendChild(n),s.set(o,n),o}))();return ys(t,s,c),yield c})}function Js(t){if("string"!=typeof t)return null;return t.trim()||null}function ta(t,e,n,r,i={}){if(!n)return null;const o=qs(n);if(!o)return null;const s=Ys(o);i&&Object.keys(i).length>0&&El(e,i);const a=function(t,e,n){const r=`clip-${n}-${crypto&&crypto.randomUUID?crypto.randomUUID():"xxxx-xxxx-4xxx-yxxx".replace(/[xy]/g,function(t){const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}`;if(t.querySelector(`#${r}`))return r;const i=zl(t),o=Ol("clipPath",{id:r}),s=e.cloneNode();return a=s,["id","data-illus-bounds","data-element-type"].forEach(t=>{a.removeAttribute(t)}),o.appendChild(s),i.appendChild(o),r;var a}(t,e,s);Qs(t,"illus",o,r);const{data:l,color:c}=o;return function(t,e,n){const{"clip-path":r}=e,i=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(e,["clip-path"]),{x:o="0",y:s="0",width:a="0",height:l="0"}=i,c=Ol("rect",{id:`${t}-volume`,"data-element-type":"illus-volume",x:o,y:s,width:a,height:l,fill:"transparent"}),h=Ol("g",{"data-element-type":"illus-group","clip-path":r,id:`${t}-group`});h.appendChild(c);const u=Ol("use",Object.assign(Object.assign({id:t,fill:"lightgray"},i),{href:Gs(n),"data-element-type":"illus"}));return h.appendChild(u),h}(s,Object.assign(Object.assign(Object.assign(Object.assign({},function(t){const e=t.getAttribute("data-illus-bounds");if(!e)return Object.assign({x:"0",y:"0",width:"0",height:"0"},Sl(t,["x","y","width","height"]));const[n,r,i,o]=e.split(" ");return{x:n,y:r,width:i,height:o}}(e)),c?{color:c}:{}),i),{"clip-path":`url(#${a})`}),l)}var ea=n("./node_modules/.pnpm/tinycolor2@1.6.0/node_modules/tinycolor2/esm/tinycolor.js");function na(t){return t.replace(/#|%|\.| |\/|\(|\)/g,"").replace(/,/g,"-")}function ra(t,e,n,r){const i=function(t,e){var n;if((null===(n=e.colors)||void 0===n?void 0:n.length)||!t)return e;const r=(0,ea.A)(t),i=Object.assign({},e);return i.colors=r.isDark()?[t,r.lighten(20).toHexString()]:[r.darken(20).toHexString(),t],"angle"in e||"linear-gradient"!==i.type||(i.angle=225),i}(t.getAttribute(r),n),{type:o,colors:s=[]}=i,a=s.length-1,l=s.map((t,e)=>Ol("stop","string"==typeof t?{offset:""+e/a,"stop-color":t}:{offset:`${t.offset}`,"stop-color":t.color})),c=function(t){const{type:e,colors:n=[]}=t,r=na(n.map(t=>"string"==typeof t?t:`${t.color}_${t.offset}`).join("-"));if("linear-gradient"===e){const{angle:n=0}=t;return`${e}-${r}-${n}`}return`${e}-${r}`}(i);if("linear-gradient"===o){const{angle:t=0}=i,[[n,r],[o,s]]=function(t){const e=Math.PI/180*t,n=Math.cos(e),r=Math.sin(e);return[[.5-n/2,.5-r/2],[.5+n/2,.5+r/2]]}(t),a=Ol("linearGradient",{id:c,x1:n,y1:r,x2:o,y2:s});l.forEach(t=>a.appendChild(t)),ia(e,c,a)}else if("radial-gradient"===o){const t=Ol("radialGradient",{id:c});l.forEach(e=>t.appendChild(e)),ia(e,c,t)}const h=t.getAttribute("fill"),u=t.getAttribute("stroke");Kr(h)&&t.setAttribute("fill",`url(#${c})`),Kr(u)&&t.setAttribute("stroke",`url(#${c})`)}function ia(t,e,n){const r=zl(t);n.setAttribute("id",e);const i=r.querySelector(`#${e}`);i?i.replaceWith(n):r.appendChild(n)}const oa=({scale:t=.5,backgroundColor:e,foregroundColor:n})=>{const r=Ol("pattern",{id:"pattern-diamond",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=Ol("rect",{width:"100%",height:"100%",fill:e}),o=Ol("path",{d:"M0,0 L20,20 M20,0 L0,20",stroke:n,"stroke-width":"1"});return r.appendChild(i),r.appendChild(o),r},sa=({scale:t=1,backgroundColor:e,foregroundColor:n})=>{const r=Ol("pattern",{id:"pattern-dot",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=Ol("rect",{width:"100%",height:"100%",fill:e}),o=Ol("circle",{cx:"5",cy:"5",r:"3",fill:n}),s=Ol("circle",{cx:"15",cy:"15",r:"3",fill:n});return r.appendChild(i),r.appendChild(o),r.appendChild(s),r},aa=({scale:t=.3,backgroundColor:e,foregroundColor:n})=>{const r=Ol("pattern",{id:"pattern-hex",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=Ol("rect",{width:"100%",height:"100%",fill:e}),o=Ol("path",{d:"M10,0 L20,5 L20,15 L10,20 L0,15 L0,5 Z",fill:n});return r.appendChild(i),r.appendChild(o),r},la=({scale:t=1,backgroundColor:e,foregroundColor:n})=>{const r=Ol("pattern",{id:"pattern-line",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=Ol("rect",{width:"100%",height:"100%",fill:e}),o=Ol("line",{x1:"7",y1:"-3",x2:"23",y2:"13",stroke:n,"stroke-width":6,"stroke-opacity":"0.5"}),s=Ol("line",{x1:"-3",y1:"7",x2:"13",y2:"23",stroke:n,"stroke-width":6,"stroke-opacity":"0.5"});return r.appendChild(i),r.appendChild(o),r.appendChild(s),r},ca=({scale:t=1,backgroundColor:e="#ffffff",foregroundColor:n="#000000"})=>{const r=Ol("pattern",{id:"pattern-mosaic",width:20,height:20,patternUnits:"userSpaceOnUse",patternTransform:`scale(${t})`}),i=Ol("rect",{width:"100%",height:"100%",fill:e});r.appendChild(i);for(let t=0;t<4;t++)for(let e=0;e<4;e++)if((e+t)%2==0){const i=Ol("rect",{x:5*e,y:5*t,width:5,height:5,fill:n});r.appendChild(i)}return r},ha=({scale:t=.3,backgroundColor:e,foregroundColor:n})=>{const r=Ol("pattern",{id:"pattern-square",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),i=Ol("rect",{width:"100%",height:"100%",fill:e}),o=Ol("path",{d:"M0,0 L20,0 L20,20 L0,20 Z",fill:n});return r.appendChild(i),r.appendChild(o),r};const ua=new Map;function da(t,e){ua.has(t)&&console.warn(`Pattern ${t} will be overwritten`),ua.set(t,e)}for(const[t,e]of Object.entries(r))da(t,e);function fa(t,e,n){const r=n.themeConfig.stylize;if(!r||"pattern"!==r.type)return;const{pattern:i}=r,o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(r,["pattern"]),s=ua.get(i);if(!s)return console.warn(`Pattern ${i} not found`);const{fill:a}=Sl(t,["fill","stroke"]),l=a,c=Object.assign({backgroundColor:l?(0,ea.A)(l).setAlpha(.5).toRgbString():l,foregroundColor:l},o),h=function(t){const{pattern:e,foregroundColor:n="unset",backgroundColor:r="unset",scale:i="unset"}=t;return na(`pattern-${e}-${n}-${r}-${i}`)}(Object.assign(Object.assign({},r),c));!function(t,e,n){const r=zl(t);n.setAttribute("id",e);const i=r.querySelector(`pattern#${e}`);i?i.replaceWith(n):r.appendChild(n)}(e,h,s(c)),Kr(a)&&(t.setAttribute("fill",`url(#${h})`),!t.getAttribute("stroke")&&a&&t.setAttribute("stroke",a))}function pa(t,e,n){if(t&&t.length){const[r,i]=e,o=Math.PI/180*n,s=Math.cos(o),a=Math.sin(o);for(const e of t){const[t,n]=e;e[0]=(t-r)*s-(n-i)*a+r,e[1]=(t-r)*a+(n-i)*s+i}}}function ga(t,e){return t[0]===e[0]&&t[1]===e[1]}function ma(t,e,n,r=1){const i=n,o=Math.max(e,.1),s=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,a=[0,0];if(i)for(const t of s)pa(t,a,i);const l=function(t,e,n){const r=[];for(const e of t){const t=[...e];ga(t[0],t[t.length-1])||t.push([t[0][0],t[0][1]]),t.length>2&&r.push(t)}const i=[];e=Math.max(e,.1);const o=[];for(const t of r)for(let e=0;e<t.length-1;e++){const n=t[e],r=t[e+1];if(n[1]!==r[1]){const t=Math.min(n[1],r[1]);o.push({ymin:t,ymax:Math.max(n[1],r[1]),x:t===n[1]?n[0]:r[0],islope:(r[0]-n[0])/(r[1]-n[1])})}}if(o.sort((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax)),!o.length)return i;let s=[],a=o[0].ymin,l=0;for(;s.length||o.length;){if(o.length){let t=-1;for(let e=0;e<o.length&&!(o[e].ymin>a);e++)t=e;o.splice(0,t+1).forEach(t=>{s.push({s:a,edge:t})})}if(s=s.filter(t=>!(t.edge.ymax<=a)),s.sort((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x)),(1!==n||l%e==0)&&s.length>1)for(let t=0;t<s.length;t+=2){const e=t+1;if(e>=s.length)break;const n=s[e].edge;i.push([[Math.round(s[t].edge.x),a],[Math.round(n.x),a]])}a+=n,s.forEach(t=>{t.edge.x=t.edge.x+n*t.edge.islope}),l++}return i}(s,o,r);if(i){for(const t of s)pa(t,a,-i);!function(t,e,n){const r=[];t.forEach(t=>r.push(...t)),pa(r,e,n)}(l,a,-i)}return l}function ya(t,e){var n;const r=e.hachureAngle+90;let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.round(Math.max(i,.1));let o=1;return e.roughness>=1&&((null===(n=e.randomizer)||void 0===n?void 0:n.next())||Math.random())>.7&&(o=i),ma(t,i,r,o||1)}class va{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){const n=ya(t,e);return{type:"fillSketch",ops:this.renderLines(n,e)}}renderLines(t,e){const n=[];for(const r of t)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],e));return n}}function xa(t){const e=t[0],n=t[1];return Math.sqrt(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))}class ba extends va{fillPolygons(t,e){let n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.max(n,.1);const r=ya(t,Object.assign({},e,{hachureGap:n})),i=Math.PI/180*e.hachureAngle,o=[],s=.5*n*Math.cos(i),a=.5*n*Math.sin(i);for(const[t,e]of r)xa([t,e])&&o.push([[t[0]-s,t[1]+a],[...e]],[[t[0]+s,t[1]-a],[...e]]);return{type:"fillSketch",ops:this.renderLines(o,e)}}}class wa extends va{fillPolygons(t,e){const n=this._fillPolygons(t,e),r=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),i=this._fillPolygons(t,r);return n.ops=n.ops.concat(i.ops),n}}class _a{constructor(t){this.helper=t}fillPolygons(t,e){const n=ya(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(n,e)}dotsOnLines(t,e){const n=[];let r=e.hachureGap;r<0&&(r=4*e.strokeWidth),r=Math.max(r,.1);let i=e.fillWeight;i<0&&(i=e.strokeWidth/2);const o=r/4;for(const s of t){const t=xa(s),a=Math.ceil(t/r)-1,l=t-a*r,c=(s[0][0]+s[1][0])/2-r/4,h=Math.min(s[0][1],s[1][1]);for(let t=0;t<a;t++){const s=h+l+t*r,a=c-o+2*Math.random()*o,u=s-o+2*Math.random()*o,d=this.helper.ellipse(a,u,i,i,e);n.push(...d.ops)}}return{type:"fillSketch",ops:n}}}class Ma{constructor(t){this.helper=t}fillPolygons(t,e){const n=ya(t,e);return{type:"fillSketch",ops:this.dashedLine(n,e)}}dashedLine(t,e){const n=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,r=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,i=[];return t.forEach(t=>{const o=xa(t),s=Math.floor(o/(n+r)),a=(o+r-s*(n+r))/2;let l=t[0],c=t[1];l[0]>c[0]&&(l=t[1],c=t[0]);const h=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let t=0;t<s;t++){const o=t*(n+r),s=o+n,c=[l[0]+o*Math.cos(h)+a*Math.cos(h),l[1]+o*Math.sin(h)+a*Math.sin(h)],u=[l[0]+s*Math.cos(h)+a*Math.cos(h),l[1]+s*Math.sin(h)+a*Math.sin(h)];i.push(...this.helper.doubleLineOps(c[0],c[1],u[0],u[1],e))}}),i}}class ka{constructor(t){this.helper=t}fillPolygons(t,e){const n=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,r=e.zigzagOffset<0?n:e.zigzagOffset,i=ya(t,e=Object.assign({},e,{hachureGap:n+r}));return{type:"fillSketch",ops:this.zigzagLines(i,r,e)}}zigzagLines(t,e,n){const r=[];return t.forEach(t=>{const i=xa(t),o=Math.round(i/(2*e));let s=t[0],a=t[1];s[0]>a[0]&&(s=t[1],a=t[0]);const l=Math.atan((a[1]-s[1])/(a[0]-s[0]));for(let t=0;t<o;t++){const i=2*t*e,o=2*(t+1)*e,a=Math.sqrt(2*Math.pow(e,2)),c=[s[0]+i*Math.cos(l),s[1]+i*Math.sin(l)],h=[s[0]+o*Math.cos(l),s[1]+o*Math.sin(l)],u=[c[0]+a*Math.cos(l+Math.PI/4),c[1]+a*Math.sin(l+Math.PI/4)];r.push(...this.helper.doubleLineOps(c[0],c[1],u[0],u[1],n),...this.helper.doubleLineOps(u[0],u[1],h[0],h[1],n))}}),r}}const Ca={};class ja{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const Oa={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Aa(t,e){return t.type===e}function Ea(t){const e=[],n=function(t){const e=new Array;for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t);let r="BOD",i=0,o=n[i];for(;!Aa(o,2);){let s=0;const a=[];if("BOD"===r){if("M"!==o.text&&"m"!==o.text)return Ea("M0,0"+t);i++,s=Oa[o.text],r=o.text}else Aa(o,1)?s=Oa[r]:(i++,s=Oa[o.text],r=o.text);if(!(i+s<n.length))throw new Error("Path data ended short");for(let t=i;t<i+s;t++){const e=n[t];if(!Aa(e,1))throw new Error("Param not a number: "+r+","+e.text);a[a.length]=+e.text}if("number"!=typeof Oa[r])throw new Error("Bad segment: "+r);e.push({key:r,data:a}),i+=s,o=n[i],"M"===r&&(r="L"),"m"===r&&(r="l")}return e}function Sa(t){let e=0,n=0,r=0,i=0;const o=[];for(const{key:s,data:a}of t)switch(s){case"M":o.push({key:"M",data:[...a]}),[e,n]=a,[r,i]=a;break;case"m":e+=a[0],n+=a[1],o.push({key:"M",data:[e,n]}),r=e,i=n;break;case"L":o.push({key:"L",data:[...a]}),[e,n]=a;break;case"l":e+=a[0],n+=a[1],o.push({key:"L",data:[e,n]});break;case"C":o.push({key:"C",data:[...a]}),e=a[4],n=a[5];break;case"c":{const t=a.map((t,r)=>r%2?t+n:t+e);o.push({key:"C",data:t}),e=t[4],n=t[5];break}case"Q":o.push({key:"Q",data:[...a]}),e=a[2],n=a[3];break;case"q":{const t=a.map((t,r)=>r%2?t+n:t+e);o.push({key:"Q",data:t}),e=t[2],n=t[3];break}case"A":o.push({key:"A",data:[...a]}),e=a[5],n=a[6];break;case"a":e+=a[5],n+=a[6],o.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],e,n]});break;case"H":o.push({key:"H",data:[...a]}),e=a[0];break;case"h":e+=a[0],o.push({key:"H",data:[e]});break;case"V":o.push({key:"V",data:[...a]}),n=a[0];break;case"v":n+=a[0],o.push({key:"V",data:[n]});break;case"S":o.push({key:"S",data:[...a]}),e=a[2],n=a[3];break;case"s":{const t=a.map((t,r)=>r%2?t+n:t+e);o.push({key:"S",data:t}),e=t[2],n=t[3];break}case"T":o.push({key:"T",data:[...a]}),e=a[0],n=a[1];break;case"t":e+=a[0],n+=a[1],o.push({key:"T",data:[e,n]});break;case"Z":case"z":o.push({key:"Z",data:[]}),e=r,n=i}return o}function $a(t){const e=[];let n="",r=0,i=0,o=0,s=0,a=0,l=0;for(const{key:c,data:h}of t){switch(c){case"M":e.push({key:"M",data:[...h]}),[r,i]=h,[o,s]=h;break;case"C":e.push({key:"C",data:[...h]}),r=h[4],i=h[5],a=h[2],l=h[3];break;case"L":e.push({key:"L",data:[...h]}),[r,i]=h;break;case"H":r=h[0],e.push({key:"L",data:[r,i]});break;case"V":i=h[0],e.push({key:"L",data:[r,i]});break;case"S":{let t=0,o=0;"C"===n||"S"===n?(t=r+(r-a),o=i+(i-l)):(t=r,o=i),e.push({key:"C",data:[t,o,...h]}),a=h[0],l=h[1],r=h[2],i=h[3];break}case"T":{const[t,o]=h;let s=0,c=0;"Q"===n||"T"===n?(s=r+(r-a),c=i+(i-l)):(s=r,c=i),e.push({key:"C",data:[r+2*(s-r)/3,i+2*(c-i)/3,t+2*(s-t)/3,o+2*(c-o)/3,t,o]}),a=s,l=c,r=t,i=o;break}case"Q":{const[t,n,o,s]=h;e.push({key:"C",data:[r+2*(t-r)/3,i+2*(n-i)/3,o+2*(t-o)/3,s+2*(n-s)/3,o,s]}),a=t,l=n,r=o,i=s;break}case"A":{const t=Math.abs(h[0]),n=Math.abs(h[1]),o=h[2],s=h[3],a=h[4],l=h[5],c=h[6];0===t||0===n?(e.push({key:"C",data:[r,i,l,c,l,c]}),r=l,i=c):r===l&&i===c||(Pa(r,i,l,c,t,n,o,s,a).forEach(function(t){e.push({key:"C",data:t})}),r=l,i=c);break}case"Z":e.push({key:"Z",data:[]}),r=o,i=s}n=c}return e}function za(t,e,n){return[t*Math.cos(n)-e*Math.sin(n),t*Math.sin(n)+e*Math.cos(n)]}function Pa(t,e,n,r,i,o,s,a,l,c){const h=Math.PI*s/180;let u=[],d=0,f=0,p=0,g=0;if(c)[d,f,p,g]=c;else{[t,e]=za(t,e,-h),[n,r]=za(n,r,-h);const s=(t-n)/2,c=(e-r)/2;let u=s*s/(i*i)+c*c/(o*o);u>1&&(u=Math.sqrt(u),i*=u,o*=u);const m=i*i,y=o*o,v=(a===l?-1:1)*Math.sqrt(Math.abs((m*y-m*c*c-y*s*s)/(m*c*c+y*s*s)));p=v*i*c/o+(t+n)/2,g=v*-o*s/i+(e+r)/2,d=Math.asin(parseFloat(((e-g)/o).toFixed(9))),f=Math.asin(parseFloat(((r-g)/o).toFixed(9))),t<p&&(d=Math.PI-d),n<p&&(f=Math.PI-f),d<0&&(d=2*Math.PI+d),f<0&&(f=2*Math.PI+f),l&&d>f&&(d-=2*Math.PI),!l&&f>d&&(f-=2*Math.PI)}let m=f-d;if(Math.abs(m)>120*Math.PI/180){const t=f,e=n,a=r;f=l&&f>d?d+120*Math.PI/180*1:d+120*Math.PI/180*-1,u=Pa(n=p+i*Math.cos(f),r=g+o*Math.sin(f),e,a,i,o,s,0,l,[f,t,p,g])}m=f-d;const y=Math.cos(d),v=Math.sin(d),x=Math.cos(f),b=Math.sin(f),w=Math.tan(m/4),_=4/3*i*w,M=4/3*o*w,k=[t,e],C=[t+_*v,e-M*y],j=[n+_*b,r-M*x],O=[n,r];if(C[0]=2*k[0]-C[0],C[1]=2*k[1]-C[1],c)return[C,j,O].concat(u);{u=[C,j,O].concat(u);const t=[];for(let e=0;e<u.length;e+=3){const n=za(u[e][0],u[e][1],h),r=za(u[e+1][0],u[e+1][1],h),i=za(u[e+2][0],u[e+2][1],h);t.push([n[0],n[1],r[0],r[1],i[0],i[1]])}return t}}const La={randOffset:function(t,e){return Ya(t,e)},randOffsetWithRange:function(t,e,n){return qa(t,e,n)},ellipse:function(t,e,n,r,i){return Ha(t,e,i,Na(n,r,i)).opset},doubleLineOps:function(t,e,n,r,i){return Ga(t,e,n,r,i,!0)}};function Ta(t,e,n,r,i){return{type:"path",ops:Ga(t,e,n,r,i)}}function Ia(t,e,n){const r=(t||[]).length;if(r>2){const i=[];for(let e=0;e<r-1;e++)i.push(...Ga(t[e][0],t[e][1],t[e+1][0],t[e+1][1],n));return e&&i.push(...Ga(t[r-1][0],t[r-1][1],t[0][0],t[0][1],n)),{type:"path",ops:i}}return 2===r?Ta(t[0][0],t[0][1],t[1][0],t[1][1],n):{type:"path",ops:[]}}function Ra(t,e){if(t.length){const n="number"==typeof t[0][0]?[t]:t,r=Za(n[0],1*(1+.2*e.roughness),e),i=e.disableMultiStroke?[]:Za(n[0],1.5*(1+.22*e.roughness),Va(e));for(let t=1;t<n.length;t++){const o=n[t];if(o.length){const t=Za(o,1*(1+.2*e.roughness),e),n=e.disableMultiStroke?[]:Za(o,1.5*(1+.22*e.roughness),Va(e));for(const e of t)"move"!==e.op&&r.push(e);for(const t of n)"move"!==t.op&&i.push(t)}}return{type:"path",ops:r.concat(i)}}return{type:"path",ops:[]}}function Na(t,e,n){const r=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),i=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),o=2*Math.PI/i;let s=Math.abs(t/2),a=Math.abs(e/2);const l=1-n.curveFitting;return s+=Ya(s*l,n),a+=Ya(a*l,n),{increment:o,rx:s,ry:a}}function Ha(t,e,n,r){const[i,o]=Qa(r.increment,t,e,r.rx,r.ry,1,r.increment*qa(.1,qa(.4,1,n),n),n);let s=Ka(i,null,n);if(!n.disableMultiStroke&&0!==n.roughness){const[i]=Qa(r.increment,t,e,r.rx,r.ry,1.5,0,n),o=Ka(i,null,n);s=s.concat(o)}return{estimatedPoints:o,opset:{type:"path",ops:s}}}function Ba(t,e,n,r,i,o,s,a,l){const c=t,h=e;let u=Math.abs(n/2),d=Math.abs(r/2);u+=Ya(.01*u,l),d+=Ya(.01*d,l);let f=i,p=o;for(;f<0;)f+=2*Math.PI,p+=2*Math.PI;p-f>2*Math.PI&&(f=0,p=2*Math.PI);const g=2*Math.PI/l.curveStepCount,m=Math.min(g/2,(p-f)/2),y=Ja(m,c,h,u,d,f,p,1,l);if(!l.disableMultiStroke){const t=Ja(m,c,h,u,d,f,p,1.5,l);y.push(...t)}return s&&(a?y.push(...Ga(c,h,c+u*Math.cos(f),h+d*Math.sin(f),l),...Ga(c,h,c+u*Math.cos(p),h+d*Math.sin(p),l)):y.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+u*Math.cos(f),h+d*Math.sin(f)]})),{type:"path",ops:y}}function Wa(t,e){const n=$a(Sa(Ea(t))),r=[];let i=[0,0],o=[0,0];for(const{key:t,data:s}of n)switch(t){case"M":o=[s[0],s[1]],i=[s[0],s[1]];break;case"L":r.push(...Ga(o[0],o[1],s[0],s[1],e)),o=[s[0],s[1]];break;case"C":{const[t,n,i,a,l,c]=s;r.push(...tl(t,n,i,a,l,c,o,e)),o=[l,c];break}case"Z":r.push(...Ga(o[0],o[1],i[0],i[1],e)),o=[i[0],i[1]]}return{type:"path",ops:r}}function Fa(t,e){const n=[];for(const r of t)if(r.length){const t=e.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:"move",data:[r[0][0]+Ya(t,e),r[0][1]+Ya(t,e)]});for(let o=1;o<i;o++)n.push({op:"lineTo",data:[r[o][0]+Ya(t,e),r[o][1]+Ya(t,e)]})}}return{type:"fillPath",ops:n}}function Da(t,e){return function(t,e){let n=t.fillStyle||"hachure";if(!Ca[n])switch(n){case"zigzag":Ca[n]||(Ca[n]=new ba(e));break;case"cross-hatch":Ca[n]||(Ca[n]=new wa(e));break;case"dots":Ca[n]||(Ca[n]=new _a(e));break;case"dashed":Ca[n]||(Ca[n]=new Ma(e));break;case"zigzag-line":Ca[n]||(Ca[n]=new ka(e));break;default:n="hachure",Ca[n]||(Ca[n]=new va(e))}return Ca[n]}(e,La).fillPolygons(t,e)}function Va(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function Ua(t){return t.randomizer||(t.randomizer=new ja(t.seed||0)),t.randomizer.next()}function qa(t,e,n,r=1){return n.roughness*r*(Ua(n)*(e-t)+t)}function Ya(t,e,n=1){return qa(-t,t,e,n)}function Ga(t,e,n,r,i,o=!1){const s=o?i.disableMultiStrokeFill:i.disableMultiStroke,a=Xa(t,e,n,r,i,!0,!1);if(s)return a;const l=Xa(t,e,n,r,i,!0,!0);return a.concat(l)}function Xa(t,e,n,r,i,o,s){const a=Math.pow(t-n,2)+Math.pow(e-r,2),l=Math.sqrt(a);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let h=i.maxRandomnessOffset||0;h*h*100>a&&(h=l/10);const u=h/2,d=.2+.2*Ua(i);let f=i.bowing*i.maxRandomnessOffset*(r-e)/200,p=i.bowing*i.maxRandomnessOffset*(t-n)/200;f=Ya(f,i,c),p=Ya(p,i,c);const g=[],m=()=>Ya(u,i,c),y=()=>Ya(h,i,c),v=i.preserveVertices;return o&&g.push(s?{op:"move",data:[t+(v?0:m()),e+(v?0:m())]}:{op:"move",data:[t+(v?0:Ya(h,i,c)),e+(v?0:Ya(h,i,c))]}),g.push(s?{op:"bcurveTo",data:[f+t+(n-t)*d+m(),p+e+(r-e)*d+m(),f+t+2*(n-t)*d+m(),p+e+2*(r-e)*d+m(),n+(v?0:m()),r+(v?0:m())]}:{op:"bcurveTo",data:[f+t+(n-t)*d+y(),p+e+(r-e)*d+y(),f+t+2*(n-t)*d+y(),p+e+2*(r-e)*d+y(),n+(v?0:y()),r+(v?0:y())]}),g}function Za(t,e,n){if(!t.length)return[];const r=[];r.push([t[0][0]+Ya(e,n),t[0][1]+Ya(e,n)]),r.push([t[0][0]+Ya(e,n),t[0][1]+Ya(e,n)]);for(let i=1;i<t.length;i++)r.push([t[i][0]+Ya(e,n),t[i][1]+Ya(e,n)]),i===t.length-1&&r.push([t[i][0]+Ya(e,n),t[i][1]+Ya(e,n)]);return Ka(r,null,n)}function Ka(t,e,n){const r=t.length,i=[];if(r>3){const o=[],s=1-n.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<r;e++){const n=t[e];o[0]=[n[0],n[1]],o[1]=[n[0]+(s*t[e+1][0]-s*t[e-1][0])/6,n[1]+(s*t[e+1][1]-s*t[e-1][1])/6],o[2]=[t[e+1][0]+(s*t[e][0]-s*t[e+2][0])/6,t[e+1][1]+(s*t[e][1]-s*t[e+2][1])/6],o[3]=[t[e+1][0],t[e+1][1]],i.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}if(e&&2===e.length){const t=n.maxRandomnessOffset;i.push({op:"lineTo",data:[e[0]+Ya(t,n),e[1]+Ya(t,n)]})}}else 3===r?(i.push({op:"move",data:[t[1][0],t[1][1]]}),i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===r&&i.push(...Xa(t[0][0],t[0][1],t[1][0],t[1][1],n,!0,!0));return i}function Qa(t,e,n,r,i,o,s,a){const l=[],c=[];if(0===a.roughness){t/=4,c.push([e+r*Math.cos(-t),n+i*Math.sin(-t)]);for(let o=0;o<=2*Math.PI;o+=t){const t=[e+r*Math.cos(o),n+i*Math.sin(o)];l.push(t),c.push(t)}c.push([e+r*Math.cos(0),n+i*Math.sin(0)]),c.push([e+r*Math.cos(t),n+i*Math.sin(t)])}else{const h=Ya(.5,a)-Math.PI/2;c.push([Ya(o,a)+e+.9*r*Math.cos(h-t),Ya(o,a)+n+.9*i*Math.sin(h-t)]);const u=2*Math.PI+h-.01;for(let s=h;s<u;s+=t){const t=[Ya(o,a)+e+r*Math.cos(s),Ya(o,a)+n+i*Math.sin(s)];l.push(t),c.push(t)}c.push([Ya(o,a)+e+r*Math.cos(h+2*Math.PI+.5*s),Ya(o,a)+n+i*Math.sin(h+2*Math.PI+.5*s)]),c.push([Ya(o,a)+e+.98*r*Math.cos(h+s),Ya(o,a)+n+.98*i*Math.sin(h+s)]),c.push([Ya(o,a)+e+.9*r*Math.cos(h+.5*s),Ya(o,a)+n+.9*i*Math.sin(h+.5*s)])}return[c,l]}function Ja(t,e,n,r,i,o,s,a,l){const c=o+Ya(.1,l),h=[];h.push([Ya(a,l)+e+.9*r*Math.cos(c-t),Ya(a,l)+n+.9*i*Math.sin(c-t)]);for(let o=c;o<=s;o+=t)h.push([Ya(a,l)+e+r*Math.cos(o),Ya(a,l)+n+i*Math.sin(o)]);return h.push([e+r*Math.cos(s),n+i*Math.sin(s)]),h.push([e+r*Math.cos(s),n+i*Math.sin(s)]),Ka(h,null,l)}function tl(t,e,n,r,i,o,s,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let h=[0,0];const u=a.disableMultiStroke?1:2,d=a.preserveVertices;for(let f=0;f<u;f++)l.push(0===f?{op:"move",data:[s[0],s[1]]}:{op:"move",data:[s[0]+(d?0:Ya(c[0],a)),s[1]+(d?0:Ya(c[0],a))]}),h=d?[i,o]:[i+Ya(c[f],a),o+Ya(c[f],a)],l.push({op:"bcurveTo",data:[t+Ya(c[f],a),e+Ya(c[f],a),n+Ya(c[f],a),r+Ya(c[f],a),h[0],h[1]]});return l}function el(t){return[...t]}function nl(t,e=0){const n=t.length;if(n<3)throw new Error("A curve must have at least three points.");const r=[];if(3===n)r.push(el(t[0]),el(t[1]),el(t[2]),el(t[2]));else{const n=[];n.push(t[0],t[0]);for(let e=1;e<t.length;e++)n.push(t[e]),e===t.length-1&&n.push(t[e]);const i=[],o=1-e;r.push(el(n[0]));for(let t=1;t+2<n.length;t++){const e=n[t];i[0]=[e[0],e[1]],i[1]=[e[0]+(o*n[t+1][0]-o*n[t-1][0])/6,e[1]+(o*n[t+1][1]-o*n[t-1][1])/6],i[2]=[n[t+1][0]+(o*n[t][0]-o*n[t+2][0])/6,n[t+1][1]+(o*n[t][1]-o*n[t+2][1])/6],i[3]=[n[t+1][0],n[t+1][1]],r.push(i[1],i[2],i[3])}}return r}function rl(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function il(t,e,n){const r=rl(e,n);if(0===r)return rl(t,e);let i=((t[0]-e[0])*(n[0]-e[0])+(t[1]-e[1])*(n[1]-e[1]))/r;return i=Math.max(0,Math.min(1,i)),rl(t,ol(e,n,i))}function ol(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function sl(t,e,n,r){const i=r||[];if(function(t,e){const n=t[e+0],r=t[e+1],i=t[e+2],o=t[e+3];let s=3*r[0]-2*n[0]-o[0];s*=s;let a=3*r[1]-2*n[1]-o[1];a*=a;let l=3*i[0]-2*o[0]-n[0];l*=l;let c=3*i[1]-2*o[1]-n[1];return c*=c,s<l&&(s=l),a<c&&(a=c),s+a}(t,e)<n){const n=t[e+0];i.length?Math.sqrt(rl(i[i.length-1],n))>1&&i.push(n):i.push(n),i.push(t[e+3])}else{const r=.5,o=t[e+0],s=t[e+1],a=t[e+2],l=t[e+3],c=ol(o,s,r),h=ol(s,a,r),u=ol(a,l,r),d=ol(c,h,r),f=ol(h,u,r),p=ol(d,f,r);sl([o,c,d,p],0,n,i),sl([p,f,u,l],0,n,i)}return i}function al(t,e){return ll(t,0,t.length,e)}function ll(t,e,n,r,i){const o=i||[],s=t[e],a=t[n-1];let l=0,c=1;for(let r=e+1;r<n-1;++r){const e=il(t[r],s,a);e>l&&(l=e,c=r)}return Math.sqrt(l)>r?(ll(t,e,c+1,r,o),ll(t,c,n,r,o)):(o.length||o.push(s),o.push(a)),o}function cl(t,e=.15,n){const r=[],i=(t.length-1)/3;for(let n=0;n<i;n++)sl(t,3*n,e,r);return n&&n>0?ll(r,0,r.length,n):r}const hl="none";class ul{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,n){return{shape:t,sets:e||[],options:n||this.defaultOptions}}line(t,e,n,r,i){const o=this._o(i);return this._d("line",[Ta(t,e,n,r,o)],o)}rectangle(t,e,n,r,i){const o=this._o(i),s=[],a=function(t,e,n,r,i){return function(t,e){return Ia(t,!0,e)}([[t,e],[t+n,e],[t+n,e+r],[t,e+r]],i)}(t,e,n,r,o);if(o.fill){const i=[[t,e],[t+n,e],[t+n,e+r],[t,e+r]];s.push("solid"===o.fillStyle?Fa([i],o):Da([i],o))}return o.stroke!==hl&&s.push(a),this._d("rectangle",s,o)}ellipse(t,e,n,r,i){const o=this._o(i),s=[],a=Na(n,r,o),l=Ha(t,e,o,a);if(o.fill)if("solid"===o.fillStyle){const n=Ha(t,e,o,a).opset;n.type="fillPath",s.push(n)}else s.push(Da([l.estimatedPoints],o));return o.stroke!==hl&&s.push(l.opset),this._d("ellipse",s,o)}circle(t,e,n,r){const i=this.ellipse(t,e,n,n,r);return i.shape="circle",i}linearPath(t,e){const n=this._o(e);return this._d("linearPath",[Ia(t,!1,n)],n)}arc(t,e,n,r,i,o,s=!1,a){const l=this._o(a),c=[],h=Ba(t,e,n,r,i,o,s,!0,l);if(s&&l.fill)if("solid"===l.fillStyle){const s=Object.assign({},l);s.disableMultiStroke=!0;const a=Ba(t,e,n,r,i,o,!0,!1,s);a.type="fillPath",c.push(a)}else c.push(function(t,e,n,r,i,o,s){const a=t,l=e;let c=Math.abs(n/2),h=Math.abs(r/2);c+=Ya(.01*c,s),h+=Ya(.01*h,s);let u=i,d=o;for(;u<0;)u+=2*Math.PI,d+=2*Math.PI;d-u>2*Math.PI&&(u=0,d=2*Math.PI);const f=(d-u)/s.curveStepCount,p=[];for(let t=u;t<=d;t+=f)p.push([a+c*Math.cos(t),l+h*Math.sin(t)]);return p.push([a+c*Math.cos(d),l+h*Math.sin(d)]),p.push([a,l]),Da([p],s)}(t,e,n,r,i,o,l));return l.stroke!==hl&&c.push(h),this._d("arc",c,l)}curve(t,e){const n=this._o(e),r=[],i=Ra(t,n);if(n.fill&&n.fill!==hl)if("solid"===n.fillStyle){const e=Ra(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{const e=[],i=t;if(i.length){const t="number"==typeof i[0][0]?[i]:i;for(const r of t)r.length<3?e.push(...r):3===r.length?e.push(...cl(nl([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):e.push(...cl(nl(r),10,(1+n.roughness)/2))}e.length&&r.push(Da([e],n))}return n.stroke!==hl&&r.push(i),this._d("curve",r,n)}polygon(t,e){const n=this._o(e),r=[],i=Ia(t,!0,n);return n.fill&&r.push("solid"===n.fillStyle?Fa([t],n):Da([t],n)),n.stroke!==hl&&r.push(i),this._d("polygon",r,n)}path(t,e){const n=this._o(e),r=[];if(!t)return this._d("path",r,n);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const i=n.fill&&"transparent"!==n.fill&&n.fill!==hl,o=n.stroke!==hl,s=!!(n.simplification&&n.simplification<1),a=function(t,e,n){const r=$a(Sa(Ea(t))),i=[];let o=[],s=[0,0],a=[];const l=()=>{a.length>=4&&o.push(...cl(a,1)),a=[]},c=()=>{l(),o.length&&(i.push(o),o=[])};for(const{key:t,data:e}of r)switch(t){case"M":c(),s=[e[0],e[1]],o.push(s);break;case"L":l(),o.push([e[0],e[1]]);break;case"C":if(!a.length){const t=o.length?o[o.length-1]:s;a.push([t[0],t[1]])}a.push([e[0],e[1]]),a.push([e[2],e[3]]),a.push([e[4],e[5]]);break;case"Z":l(),o.push([s[0],s[1]])}if(c(),!n)return i;const h=[];for(const t of i){const e=al(t,n);e.length&&h.push(e)}return h}(t,0,s?4-4*(n.simplification||1):(1+n.roughness)/2),l=Wa(t,n);if(i)if("solid"===n.fillStyle)if(1===a.length){const e=Wa(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else r.push(Fa(a,n));else r.push(Da(a,n));return o&&(s?a.forEach(t=>{r.push(Ia(t,!1,n))}):r.push(l)),this._d("path",r,n)}opsToPath(t,e){let n="";for(const r of t.ops){const t="number"==typeof e&&e>=0?r.data.map(t=>+t.toFixed(e)):r.data;switch(r.op){case"move":n+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":n+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":n+=`L${t[0]} ${t[1]} `}}return n.trim()}toPaths(t){const e=t.sets||[],n=t.options||this.defaultOptions,r=[];for(const t of e){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:hl};break;case"fillPath":e={d:this.opsToPath(t),stroke:hl,strokeWidth:0,fill:n.fill||hl};break;case"fillSketch":e=this.fillSketch(t,n)}e&&r.push(e)}return r}fillSketch(t,e){let n=e.fillWeight;return n<0&&(n=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||hl,strokeWidth:n,fill:hl}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}const dl="http://www.w3.org/2000/svg";class fl{constructor(t,e){this.svg=t,this.gen=new ul(e)}draw(t){const e=t.sets||[],n=t.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,i=r.createElementNS(dl,"g"),o=t.options.fixedDecimalPlaceDigits;for(const s of e){let e=null;switch(s.type){case"path":e=r.createElementNS(dl,"path"),e.setAttribute("d",this.opsToPath(s,o)),e.setAttribute("stroke",n.stroke),e.setAttribute("stroke-width",n.strokeWidth+""),e.setAttribute("fill","none"),n.strokeLineDash&&e.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":e=r.createElementNS(dl,"path"),e.setAttribute("d",this.opsToPath(s,o)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",n.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(r,s,n)}e&&i.appendChild(e)}return i}fillSketch(t,e,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);const i=t.createElementNS(dl,"path");return i.setAttribute("d",this.opsToPath(e,n.fixedDecimalPlaceDigits)),i.setAttribute("stroke",n.fill||""),i.setAttribute("stroke-width",r+""),i.setAttribute("fill","none"),n.fillLineDash&&i.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,n,r,i){const o=this.gen.line(t,e,n,r,i);return this.draw(o)}rectangle(t,e,n,r,i){const o=this.gen.rectangle(t,e,n,r,i);return this.draw(o)}ellipse(t,e,n,r,i){const o=this.gen.ellipse(t,e,n,r,i);return this.draw(o)}circle(t,e,n,r){const i=this.gen.circle(t,e,n,r);return this.draw(i)}linearPath(t,e){const n=this.gen.linearPath(t,e);return this.draw(n)}polygon(t,e){const n=this.gen.polygon(t,e);return this.draw(n)}arc(t,e,n,r,i,o,s=!1,a){const l=this.gen.arc(t,e,n,r,i,o,s,a);return this.draw(l)}curve(t,e){const n=this.gen.curve(t,e);return this.draw(n)}path(t,e){const n=this.gen.path(t,e);return this.draw(n)}}function pl(t,e,n){if(!t||!e)return void console.warn("Invalid node or svg element");const r=((t,e)=>new fl(t,e))(e,{options:{seed:1e3}}),i=Ol("g");t.hasAttribute("transform")&&i.setAttribute("transform",t.getAttribute("transform")||"");const o=t.cloneNode();El(o,{opacity:.5}),o.hasAttribute("transform")&&o.removeAttribute("transform"),o.dataset.elementType="rough-volume",i.appendChild(o);const s=function(t,e,n){const r=e.nodeName.toLowerCase(),i=(t,e)=>{const r=Sl(t,[...e,"fill","fill-opacity","stroke","stroke-opacity","stroke-width","stroke-dasharray","stroke-linecap","stroke-linejoin","opacity","filter","clip-path","mask"],!0),i={},o=Object.assign({},n),s={};e.forEach(t=>{void 0!==r[t]&&(i[t]=r[t])});const{fill:a,"fill-opacity":l,stroke:c,"stroke-opacity":h,"stroke-width":u,"stroke-dasharray":d,"stroke-linecap":f,"stroke-linejoin":p,opacity:g,filter:m,"clip-path":y,mask:v}=r;if(o.fill=a||"none",o.stroke=c||(a&&"none"!==a?a:"currentColor"),u&&(o.strokeWidth=parseFloat(u)),d&&"none"!==d){const t=d.split(/[\s,]+/).map(t=>parseFloat(t)).filter(t=>!isNaN(t));t.length>0&&(o.strokeLineDash=t)}return l&&(s.fillOpacity=parseFloat(l)),h&&(s.strokeOpacity=parseFloat(h)),g&&(s.opacity=parseFloat(g)),f&&(s.strokeLinecap=f),p&&(s.strokeLinejoin=p),d&&"none"!==d&&(s.strokeDasharray=d),m&&(s.filter=m),y&&(s.clipPath=y),v&&(s.mask=v),[i,o,s]};try{let n=null,o={};switch(r){case"circle":{const[r,s,a]=i(e,["cx","cy","r"]),l=parseFloat(r.cx)||0,c=parseFloat(r.cy)||0,h=parseFloat(r.r)||0;n=t.circle(l,c,2*h,s),o=a;break}case"ellipse":{const[r,s,a]=i(e,["cx","cy","rx","ry"]),l=parseFloat(r.cx)||0,c=parseFloat(r.cy)||0,h=parseFloat(r.rx)||0,u=parseFloat(r.ry)||0;n=t.ellipse(l,c,2*h,2*u,s),o=a;break}case"line":{const[r,s,a]=i(e,["x1","y1","x2","y2"]),l=parseFloat(r.x1)||0,c=parseFloat(r.y1)||0,h=parseFloat(r.x2)||0,u=parseFloat(r.y2)||0;n=t.line(l,c,h,u,s),o=a;break}case"rect":{const[r,s,a]=i(e,["x","y","width","height","rx","ry"]),l=parseFloat(r.x)||0,c=parseFloat(r.y)||0,h=parseFloat(r.width)||0,u=parseFloat(r.height)||0,d=parseFloat(r.rx)||0,f=parseFloat(r.ry)||0;if(d>0||f>0){const e=function(t,e,n,r,i,o){return`\n M ${t+(i=Math.min(i,n/2))} ${e}\n L ${t+n-i} ${e}\n A ${i} ${o=Math.min(o,r/2)} 0 0 1 ${t+n} ${e+o}\n L ${t+n} ${e+r-o}\n A ${i} ${o} 0 0 1 ${t+n-i} ${e+r}\n L ${t+i} ${e+r}\n A ${i} ${o} 0 0 1 ${t} ${e+r-o}\n L ${t} ${e+o}\n A ${i} ${o} 0 0 1 ${t+i} ${e}\n Z\n `.replace(/\s+/g," ").trim()}(l,c,h,u,d||f,f||d);n=t.path(e,s)}else n=t.rectangle(l,c,h,u,s);o=a;break}case"path":{const[r,s,a]=i(e,["d"]),l=r.d||"";if(!l)return console.warn("Path element has no d attribute"),null;n=t.path(l,s),o=a;break}case"polygon":{const[r,s,a]=i(e,["points"]),l=gl(r.points||"");if(l.length<3)return console.warn("Polygon needs at least 3 points"),null;n=t.polygon(l,s),o=a;break}case"polyline":{const[r,s,a]=i(e,["points"]),l=gl(r.points||"");if(l.length<2)return console.warn("Polyline needs at least 2 points"),null;n=t.linearPath(l,s),o=a;break}default:return console.warn(`Unsupported shape type: ${r}`),null}return n?{element:n,svgAttributes:o}:null}catch(t){return console.error(`Error creating rough shape for ${r}:`,t),null}}(r,t,n);if(s){const{element:t,svgAttributes:e}=s;t.dataset.elementType="rough-element",t.style.pointerEvents="none",function(t,e){void 0!==e.opacity&&t.setAttribute("opacity",String(e.opacity)),void 0!==e.fillOpacity&&t.setAttribute("fill-opacity",String(e.fillOpacity)),void 0!==e.strokeOpacity&&t.setAttribute("stroke-opacity",String(e.strokeOpacity)),e.strokeLinecap&&t.setAttribute("stroke-linecap",e.strokeLinecap),e.strokeLinejoin&&t.setAttribute("stroke-linejoin",e.strokeLinejoin),e.strokeDasharray&&t.setAttribute("stroke-dasharray",e.strokeDasharray),e.filter&&t.setAttribute("filter",e.filter),e.clipPath&&t.setAttribute("clip-path",e.clipPath),e.mask&&t.setAttribute("mask",e.mask)}(t,e),i.appendChild(t)}t.id&&(i.id=t.id),Array.from(t.classList).forEach(t=>{i.classList.contains(t)||i.classList.add(t)}),Array.from(t.attributes).forEach(t=>{t.name.startsWith("data-")&&i.setAttribute(t.name,t.value)}),i.childElementCount>0?t.replaceWith(i):t.remove()}function gl(t){if(!t||"string"!=typeof t)return[];try{const e=t.trim().replace(/,/g," ").replace(/\s+/g," ").split(" ").filter(Boolean),n=[];for(let t=0;t<e.length-1;t+=2){const r=parseFloat(e[t]),i=parseFloat(e[t+1]);isNaN(r)||isNaN(i)?console.warn(`Invalid coordinate pair at index ${t}: "${e[t]}", "${e[t+1]}"`):n.push([r,i])}return e.length%2!=0&&console.warn(`Odd number of coordinates in points attribute, last value ignored: "${e[e.length-1]}"`),n}catch(e){return console.error("Failed to parse polygon points:",t,e),[]}}function ml(t,e,n){var r;const{themeConfig:i}=n;return El(e,zs(e,Object.assign({},null===(r=i.base)||void 0===r?void 0:r.shape,i.shape))),function(t,e,n){const r=n.themeConfig.stylize;if(!r)return t;const{type:i}=r;if(!i)return t;if("rough"===i)return pl(t,e,r);if("pattern"===i)return fa(t,e,n);if("linear-gradient"===i||"radial-gradient"===i){const{fill:n,stroke:i}=Sl(t,["fill","stroke"]);Kr(n)&&ra(t,e,r,"fill"),Kr(i)&&ra(t,e,r,"stroke")}}(e,t,n),e}const yl=Ko(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()});function vl(t,e,n={}){if(!e)return null;const r=t;El(r,zs(r,n));const i=function(t,e){const n=xl(e.dataset.x,0),r=xl(e.dataset.y,0),i=xl(e.getAttribute("width")),o=xl(e.getAttribute("height")),s=function(t){return Sl(t,["font-family","font-size","font-weight","font-style","font-variant","letter-spacing","line-height","fill","stroke","stroke-width"])}(e);return Object.assign(s,{x:n,y:r,width:i,height:o,"data-horizontal-align":e.dataset.horizontalAlign||"LEFT","data-vertical-align":e.dataset.verticalAlign||"TOP"}),function(t,e){const n=document.createElement("span");n.setAttribute("xmlns","http://www.w3.org/1999/xhtml");const r=Ol("foreignObject",{overflow:"visible"});return r.appendChild(n),Ll(r,{textContent:t,attributes:e}),r}(t,s)}(e,r);for(const t in r.dataset)i.setAttribute(`data-${yl(t)}`,r.dataset[t]);return i}const xl=(t,e)=>t?parseFloat(t):e,bl=(t,e)=>{t!==e&&(e?t.replaceWith(e):t.remove())};class wl{constructor(t,e){this.options=t,this.template=e,this.rendered=!1}getOptions(){return this.options}getSVG(){return this.template}render(){const t=this.getSVG();if(this.rendered)return t;!function(t,e){(function(t,e){var n;const{themeConfig:r,data:i}=e;!function(t,e){e&&Object.keys(e).length>0&&$l(t,t=>{El(t,zs(t,e))})}(t,null===(n=r.base)||void 0===n?void 0:n.global);t.querySelectorAll("[data-element-type]").forEach(n=>{var o,s,a,l,c,h,u;const d=n.id||"";if(Bl(n)){const t=vl(n,i.title||"",Object.assign({},null===(o=r.base)||void 0===o?void 0:o.text,r.title,null===(s=i.attributes)||void 0===s?void 0:s.title));return bl(n,t)}if(Wl(n)){const t=vl(n,i.desc||"",Object.assign({},null===(a=r.base)||void 0===a?void 0:a.text,r.desc,null===(l=i.attributes)||void 0===l?void 0:l.desc));return bl(n,t)}if(Vl(n)){const e=ta(t,n,null===(c=i.illus)||void 0===c?void 0:c[d],void 0,null===(h=i.attributes)||void 0===h?void 0:h.illus);return bl(n,e)}if(Dl(n))return Array.from(n.children).forEach(n=>{ml(t,n,e)});if(Fl(n)){const r=ml(t,n,e);return bl(n,r)}if(Jl(n))return function(t,e){El(e,{display:"none"});const n=e.querySelectorAll('[id^="btn-add-"]'),r=e.querySelectorAll('[id^="btn-remove-"]');!function(t){const e=Ol("defs");ac(e,Ts);const n=Al('<symbol class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200">\n <path\n d="M512 1024C229.216 1024 0 794.784 0 512S229.216 0 512 0s512 229.216 512 512-229.216 512-512 512z m0-960C264.576 64 64 264.576 64 512s200.576 448 448 448 448-200.576 448-448S759.424 64 512 64z m192 480h-160v160a32 32 0 0 1-64 0v-160h-160a32 32 0 0 1 0-64h160v-160a32 32 0 0 1 64 0v160h160a32 32 0 0 1 0 64z"\n fill="#339900"></path>\n</symbol>');n&&(n.setAttribute("id",Ps),e.appendChild(n));const r=Al('<symbol viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200">\n <path d="M874.971429 149.942857C776.228571 54.857143 648.228571 0 512.914286 0S245.942857 54.857143 150.857143 149.942857c-201.142857 201.142857-201.142857 522.971429 0 724.114286C245.942857 969.142857 377.6 1024 512.914286 1024s266.971429-54.857143 362.057143-149.942857c201.142857-201.142857 201.142857-522.971429 0-724.114286m-51.2 672.914286C739.657143 906.971429 629.942857 950.857143 512.914286 950.857143s-226.742857-43.885714-310.857143-128c-171.885714-171.885714-171.885714-449.828571 0-621.714286C286.171429 117.028571 395.885714 73.142857 512.914286 73.142857s226.742857 43.885714 310.857143 128c171.885714 171.885714 171.885714 449.828571 0 621.714286" fill="#E63C33"></path>\n <path d="M772.571429 475.428571H253.257143c-21.942857 0-36.571429 14.628571-36.571429 36.571429 0 10.971429 3.657143 18.285714 10.971429 25.6s14.628571 10.971429 25.6 10.971429H768.914286c21.942857 0 36.571429-14.628571 36.571428-36.571429s-14.628571-36.571429-32.914285-36.571429" fill="#E63C33"></path>\n</symbol>');r&&(r.setAttribute("id",Ls),e.appendChild(r)),t.prepend(e)}(t),n.forEach(Rs),r.forEach(Ns)}(t,n);if(null===(u=n.dataset.elementType)||void 0===u?void 0:u.startsWith("item-")){const r=Mc(n.dataset.indexes||"0"),o=n.dataset.elementType.replace("item-",""),s=to(i,r);if(Xl(n)||Zl(n)||Kl(n)){const t=function(t,e,n){var r,i,o;const s="text"===e.nodeName?e:null;if(!s)return null;const{data:a,themeConfig:l}=n,c=to(a,Mc(e.dataset.indexes||"0")),h=String(Ji(c,t,"")),u=null===(r=null==c?void 0:c.attributes)||void 0===r?void 0:r[t],d=zs(s,Object.assign({},null===(i=l.base)||void 0===i?void 0:i.text,null===(o=l.item)||void 0===o?void 0:o[t],u));return vl(e,e.textContent||h,d)}(o,n,e);return bl(n,t)}if(!s)return;if(Ql(n)){const e=function(t,e,n){var r;return ta(t,e,n.illus,n,null===(r=n.attributes)||void 0===r?void 0:r.illus)}(t,n,s);return bl(n,e)}if(Yl(n)){const r=function(t,e,n,r){var i,o;const s=n.icon;if(!s)return null;const{themeConfig:a}=r,l=null===(i=n.attributes)||void 0===i?void 0:i.icon;return function(t,e,n,r,i){return Qs(t,"icon",n,i),function(t,e={}){const n=Ol("use",Object.assign(Object.assign({},e),{href:Gs(t)}));return xc(n),vc.set(n,t),n}(n,Object.assign(Object.assign({},Sl(e,["id","x","y","width","height","fill","stroke","data-element-type","data-indexes"])),r))}(t,e,s,zs(e,Object.assign(Object.assign({},null===(o=a.item)||void 0===o?void 0:o.icon),l)),n)}(t,n,s,e);return bl(n,r)}}return Ul(n)?function(t,e){var n;const r=(null===(n=e.themeConfig.base)||void 0===n?void 0:n.text)||{};El(t,r),r["font-family"]&&t.setAttribute("font-family",rs(r["font-family"])),t.style.userSelect="none",t.style.pointerEvents="none"}(n,e):ql(n)?void 0:function(t,e){var n;El(t,(null===(n=e.themeConfig.base)||void 0===n?void 0:n.shape)||{})}(n,e)}),function(t,e){var n;const{themeConfig:r}=e,{"font-family":i=xs}=(null===(n=r.base)||void 0===n?void 0:n.text)||{};t.setAttribute("font-family",i)}(t,e)})(t,e),function(t,e){const{width:n,height:r}=e,{style:i={},attributes:o={},id:s,className:a}=e.svg||{};s&&(t.id=s),a&&t.classList.add(a),void 0!==n&&t.setAttribute("width","number"==typeof n?`${n}px`:n),void 0!==r&&t.setAttribute("height","number"==typeof r?`${r}px`:r),Object.assign(t.style,i),El(t,o)}(t,e),function(t,e){var n,r;if(!1===(null===(n=e.svg)||void 0===n?void 0:n.background))return;const{themeConfig:{colorBg:i}}=e;if(!i)return;const o=t.parentElement;o&&(o.style.backgroundColor=i||"none");const s=lc(t,"background");if(t.style.backgroundColor=i,s)s.setAttribute("fill",i);else if(null===(r=t.viewBox)||void 0===r?void 0:r.baseVal){const{x:e,y:n,width:r,height:o}=t.viewBox.baseVal,s=Ol("rect",{x:e,y:n,width:r,height:o,fill:i,"data-element-type":"background"});t.prepend(s)}}(t,e)}(t,this.options),t.style.visibility="hidden";const e=()=>{!function(t,e){const{padding:n=0,viewBox:r}=e;r?t.setAttribute("viewBox",r):void 0!==n&&Ac(t,Oc(n))}(this.template,this.options),function(t){_c||ws().forEach(e=>function(t,e){const n=t.ownerDocument,r=(null==n?void 0:n.head)||document.head;if(!r)return;ks.has(r)||ks.set(r,new Map);const i=ks.get(r),o=Ms(e);if(!o.length)return;const s=[];o.forEach(o=>{const a=`${e}-${o}`,l=`font:${a}`;if(ms(t,l))return;let c=i.get(a);c||(c=n.createElement("link"),c.id=a,c.rel="stylesheet",c.href=o,s.push(c),i.set(a,c));const h=function(t,e,n){var r;return(null===(r=Cs.get(t))||void 0===r?void 0:r.get(e))||(!n||function(t){if("true"===t.getAttribute("data-infographic-font-loaded"))return!0;try{return!!t.sheet}catch(t){return!1}}(n)?js(t,e,Promise.resolve()):js(t,e,new Promise(t=>{const e=()=>{n.setAttribute("data-infographic-font-loaded","true"),t()};n.addEventListener("load",e,{once:!0}),n.addEventListener("error",e,{once:!0})})))}(r,a,c);ys(t,l,h)}),s.length&&"HEAD"===r.tagName&&s.forEach(t=>r.appendChild(t))}(t,e.fontFamily))}(this.template),t.style.removeProperty("visibility")};if(_c)e();else{const n=new MutationObserver(r=>{r.forEach(r=>{r.addedNodes.forEach(r=>{(r===t||r.contains(t))&&(e(),n.disconnect())})})});try{n.observe(this.options.container,{childList:!0,subtree:!0})}catch(t){e(),console.error(t)}}return this.rendered=!0,t}}us({fontFamily:"Alibaba PuHuiTi",aliases:["AlibabaPuHuiTi","AlibabaPuHuiTi-Regular"],fontWeight:400,fontStyle:"normal",unitsPerEm:1e3,metrics:{ascender:1060,descender:-340,lineGap:0},glyphs:{" ":257,"!":361,'"':405,"#":600,"%":821,"&":640,"'":253,"(":359,")":359,"*":430,",":302,"-":440,".":302,"/":500,":":378,";":378,"?":431,"@":860,B:620,C:599,D:699,F:527,G:685,H:708,J:271,K:614,L:507,M:830,N:737,P:597,R:614,S:566,T:528,V:617,W:898,X:624,Y:594,Z:626,"[":294,"\\":510,"]":294,_:500,"`":346,b:635,c:497,d:635,f:349,g:636,k:518,l:286,m:921,p:635,q:636,r:379,s:479,t:337,v:526,w:828,x:516,y:527,z:506,"{":299,"|":183,"}":299," ":257,"¡":357,"¦":183,"§":479,"¨":346,"©":806,ª:483,"«":511,"":440,"®":404,"¯":346,"°":363,"´":346,"¶":593,"·":357,"¸":346,º:445,"»":511,"¼":902,"½":914,"¾":902,"¿":431,Æ:889,Ç:599,Ð:719,Ñ:737,Ý:594,Þ:597,ß:610,æ:926,ç:497,ý:527,þ:635,ÿ:527,Ć:599,ć:497,Ĉ:599,ĉ:497,Ċ:599,ċ:497,Č:599,č:497,Ď:699,ď:640,Đ:719,đ:635,Ĝ:685,ĝ:636,Ğ:685,ğ:636,Ġ:685,ġ:636,Ģ:685,ģ:636,Ĥ:708,Ħ:708,IJ:545,ij:536,Ĵ:271,Ķ:614,ķ:518,ĸ:518,Ĺ:507,ĺ:286,Ļ:507,ļ:286,Ľ:507,ľ:290,Ŀ:507,ŀ:291,Ł:507,ł:286,Ń:737,Ņ:737,Ň:737,ʼn:669,Ŋ:737,Œ:987,œ:917,Ŕ:614,ŕ:379,Ŗ:614,ŗ:379,Ř:614,ř:379,Ś:566,ś:479,Ŝ:566,ŝ:479,Ş:566,ş:479,Š:566,š:479,Ţ:528,ţ:337,Ť:528,ť:340,Ŧ:528,ŧ:337,Ŵ:898,ŵ:828,Ŷ:594,ŷ:527,Ÿ:594,Ź:626,ź:506,Ż:626,ż:506,Ž:626,ž:506,ſ:310,Ə:719,ǎ:608,ǐ:265,ǒ:614,ǔ:609,ǖ:609,ǘ:609,ǚ:609,ǜ:609,Ǽ:889,ǽ:926,Ș:566,ș:479,Ț:528,ț:337,ʹ:255,"͵":255,";":378,"΄":346,"΅":346,Ά:670,"·":357,Έ:628,Ή:779,Ί:346,Ό:765,Ύ:726,Ώ:765,ΐ:312,Β:620,Γ:507,Ζ:626,Η:708,Κ:614,Λ:617,Μ:830,Ν:737,Π:708,Ρ:597,Σ:596,Τ:528,Υ:594,Φ:831,Χ:624,Ψ:804,Ϋ:594,έ:509,ή:643,ί:312,ΰ:593,β:610,γ:526,ε:509,ζ:465,η:643,θ:638,ι:312,κ:518,λ:514,ν:526,ξ:465,π:616,ρ:619,ς:497,σ:639,τ:437,υ:593,φ:774,χ:509,ψ:745,ω:782,ϊ:312,ϋ:593,ύ:593,ώ:782,"‐":440,"‑":440,"–":495,"—":684,"―":684,"‗":500,"‘":270,"’":270,"‚":270,"‛":270,"“":784,"”":784,"„":468,"†":500,"‡":500,"•":308,"…":1085,"‰":1174,"′":256,"″":472,"‴":689,"‵":256,"‶":472,"‷":689,"‹":312,"›":312,"‼":589,"‽":433,"‾":500,"⁄":120,"⁺":407,"⁻":407,"⁼":407,"⁽":225,"⁾":225,ⁿ:486,"₊":407,"₋":407,"₌":407,"₍":225,"₎":225,ₙ:486,"₡":599,"₣":527,"₤":600,"₥":921,"₦":625,"₨":1093,"₩":769,"₪":754,"₫":635,"₭":614,"₮":528,"₯":1288,"₰":950,"₲":685,"₴":576,"₵":599,"₶":576,"₷":700,"₸":528,"₻":750,"₼":683,"₾":577,"₿":620,"℃":915,"℅":825,"℉":868,ℓ:385,"№":1176,"℗":806,"℡":1022,"™":903,℮:903,"⅛":930,"⅜":931,"⅝":931,"⅞":871,Ⅶ:1166,"∂":587,"∈":663,"∏":708,"∑":596,"√":604,"∞":679,"∧":617,"∫":531,"∮":654,"≈":600,"≒":662,"◊":600," ":0,"〞":472},glyphsByWidth:{268:"ijìíîïĩīĭįıĵȷ",274:"IÌÍÎÏĨĪĬĮİΙΪ",406:"²³¹⁰⁴⁵⁶⁷⁸⁹₀₁₂₃₄₅₆₇₈₉",552:"+<=>^~¬±×÷−∕∙≠≤≥≦≧≮≯",556:"EÈÉÊËĒĔĖĘĚΕΞ",575:"$0123456789¢£¤¥ƒ₢₧€₱₹₺₽",578:"eèéêëēĕėęě",612:"aàáâãäåāăąǻ",613:"uµùúûüũūŭůűųάαμ∨",618:"hnoðñòóôõöøĥħńņňŋōŏőǿδοό",667:"AÀÁÂÃÄÅĀĂĄǺΑΔ₳∆",701:"UÙÚÛÜŨŪŬŮŰŲ",743:"OQÒÓÔÕÖØŌŎŐǾΘΟΩΩ",1e3:"─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▓▔▕■□▲△▼▽◆◇○◎●◢◣◤◥★☆☉♀♂〾"},defaultWidth:984,kerning:{'""':-56,"\"'":-57,'",':-179,'".':-179,"'\"":-56,"''":-57,"',":-179,"'.":-179,"(j":60,',"':-160,",'":-160,",1":-140,",7":-41,",9":-39,'."':-160,".'":-160,".1":-140,".7":-41,".9":-39,"//":-120,"1,":-99,"1.":-99,"1:":-99,"1;":-99,"7,":-160,"7.":-160,"7:":-99,"7;":-99,":1":-79,":7":-59,";1":-79,";7":-59,'A"':-100,"A'":-100,AC:-20,AG:-20,AO:-20,AQ:-20,AT:-80,AU:-10,AV:-70,AW:-39,AY:-81,Af:-20,Al:-10,At:-20,Av:-20,Ay:-20,BC:-10,BG:-10,BO:-10,BQ:-10,BT:-40,BV:-20,BX:-20,BY:-21,"D,":-59,"D.":-59,DA:-20,DT:-36,DV:-30,DW:-19,DX:-20,DY:-40,DZ:-20,Da:-39,Ej:19,"F,":-159,"F.":-159,FA:-40,Fa:-59,Fh:1,Fk:1,GV:-11,GY:-21,JJ:7,KA:-19,KC:-20,KG:-20,KO:-20,KQ:-20,KT:-19,KU:-39,KV:-39,KW:-39,KY:-40,Kc:-39,Kd:-39,Ke:-39,Kg:-39,Kl:-39,Ko:-39,Kq:-39,Ks:-19,Kt:-10,Ku:-40,Kv:-60,Kw:-40,Ky:-60,'L"':-99,"L'":-99,LA:20,LC:-59,LG:-59,LO:-59,LQ:-59,LT:-79,LU:-19,LV:-79,LW:-39,LY:-100,Lv:-41,Lw:-21,Ly:-41,"O,":-59,"O.":-59,OA:-20,OT:-36,OV:-30,OW:-19,OX:-20,OY:-40,OZ:-20,Oa:-39,"P,":-199,"P.":-199,PA:-60,PT:-29,PV:-10,PW:-10,PX:-50,PY:-20,PZ:-39,Pa:-60,"Q,":-59,"Q.":-59,QA:-20,QJ:7,QT:-36,QV:-30,QW:-19,QX:-20,QY:-40,QZ:-20,Qa:-39,RC:-15,RG:-15,RO:-15,RQ:-15,RT:-40,RU:-10,RV:-21,RW:-10,RX:-29,RY:-41,Rc:-20,Rd:-20,Re:-20,Rg:-20,Ro:-20,Rq:-20,Rt:-20,Ru:-10,Rv:-10,Rx:20,Ry:-10,"S,":-20,"S.":-20,SS:-1,ST:-1,SV:-21,SW:-10,SY:-21,St:-1,Sv:-20,Sw:-10,Sx:-1,Sy:-20,'T"':2,"T'":2,"T,":-154,"T.":-154,TA:-80,TC:-20,TG:-20,TO:-20,TQ:-20,TS:-1,Ta:-80,Tc:-59,Td:-59,Te:-59,Tg:-59,Ti:-20,Tj:-19,Tm:-59,Tn:-59,To:-59,Tp:-58,Tq:-59,Tr:-59,Ts:-60,Tt:20,Tu:-79,Tv:-39,Tw:-19,Tx:-39,Ty:-39,Tz:-59,UA:-10,UX:-19,Ux:-1,"V,":-140,"V.":-140,"V:":-41,"V;":-41,VA:-70,VC:-30,VG:-30,VO:-30,VQ:-30,VS:-10,Va:-41,Vc:-21,Vd:-21,Ve:-21,Vg:-21,Vh:1,Vk:1,Vo:-21,Vq:-21,Vs:-21,Vv:-1,Vy:-1,"W,":-79,"W.":-79,"W:":-39,"W;":-39,WA:-40,WC:-19,WG:-19,WO:-19,WQ:-19,Wa:-40,Wc:-20,Wd:-20,We:-20,Wg:-20,Wo:-20,Wq:-20,Ws:-20,XA:-19,XC:-20,XG:-20,XO:-20,XQ:-20,XT:-19,XU:-39,XV:-39,XW:-39,XY:-40,Xc:-39,Xd:-39,Xe:-39,Xg:-39,Xl:-39,Xo:-39,Xq:-39,Xs:-19,Xt:-10,Xu:-40,Xv:-60,Xw:-40,Xy:-60,'Y"':1,"Y'":1,"Y,":-141,"Y.":-141,"Y:":-60,"Y;":-60,YA:-81,YC:-40,YG:-40,YO:-40,YQ:-40,YS:-1,Ya:-101,Yc:-60,Yd:-60,Ye:-60,Yf:-1,Yg:-60,Yh:1,Yi:-19,Yk:1,Ym:-41,Yn:-41,Yo:-60,Yp:-40,Yq:-60,Yr:-41,Ys:-61,Yt:-1,Yu:-40,Yv:-40,Yx:-41,Yy:-40,Yz:-41,ZC:-20,ZG:-20,ZO:-20,ZQ:-20,"[j":80,aT:-60,aV:-21,aY:-61,av:-10,aw:-10,ay:-10,"b,":-40,"b.":-40,bT:-59,bV:-21,bW:-20,bX:-39,bY:-60,bv:-10,bx:-20,by:-10,"e,":-20,"e.":-20,eT:-59,eY:-40,ej:20,'f"':3,"f'":3,"f)":1,"f*":61,"f,":-1,"f.":-1,"f?":40,fT:40,fV:21,fW:21,fX:21,fY:1,"f]":21,fa:-29,fc:-19,fd:-19,fe:-19,ff:1,fg:-39,fh:-19,fi:-19,fj:-19,fk:-19,fl:-19,fo:-19,fq:-19,fs:-19,ft:1,"f}":3,hT:-58,hY:-39,hv:-10,hy:-10,'i"':2,"i'":2,"i)":2,"i?":3,iT:-20,"i]":41,"i}":22,jT:-20,kT:-39,kU:-1,kW:-20,ka:-20,kc:-20,kd:-20,ke:-20,kg:-20,kl:-20,ko:-20,kq:-20,ku:-10,lf:-20,lv:-19,lw:-10,ly:-19,mT:-58,mY:-39,mv:-10,my:-10,nT:-58,nY:-39,nv:-10,ny:-10,"o,":-40,"o.":-40,oT:-59,oV:-21,oW:-20,oX:-39,oY:-60,ov:-10,ox:-20,oy:-10,"p,":-40,"p.":-40,pT:-59,pV:-21,pW:-20,pX:-39,pY:-60,pv:-10,px:-20,py:-10,qT:-19,qY:-19,qj:20,'r"':2,"r'":2,"r,":-90,"r.":-90,ra:-49,rc:-19,rd:-19,re:-19,rf:1,ro:-19,rq:-19,rt:20,sT:-59,sV:-21,sW:-20,sX:-19,sY:-60,sv:-19,sx:-10,sy:-19,tf:1,uT:-40,uY:-19,"v,":-90,"v.":-90,vT:-39,vX:-39,va:-35,vc:-10,vd:-10,ve:-10,vo:-10,vq:-10,"w,":-50,"w.":-50,wT:-19,wX:-39,wa:-30,xT:-39,xU:-1,xW:-20,xa:-20,xc:-20,xd:-20,xe:-20,xg:-20,xl:-20,xo:-20,xq:-20,xu:-10,"y,":-90,"y.":-90,yT:-39,yX:-39,ya:-35,yc:-10,yd:-10,ye:-10,yo:-10,yq:-10,zT:-59,"{h":2,"{j":79,"{k":2}});const _l={"851tegakizatsu":{fontFamily:"851tegakizatsu",fontWeight:400,fontStyle:"normal",unitsPerEm:1024,metrics:{ascender:880,descender:-144,lineGap:0},glyphs:{" ":341," ":256," ":171," ":10,"":0,"‿":0,"⁀":0,"⁄":0,"\t":512,"\n":512,"\r":512},glyphsByWidth:{512:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ ¡¢£¤¥¦©ª®°²³¹º¼½¾¿ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåçèéêëìíîïðñòóôõöøùúûüýþÿĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıĴĵĶķĸĹĺĻļĽľĿŀŁłŃńŅņŇňʼnŊŋŌōŎŏŐőŔŕŖŗŘřŚśŜŝŞşŠšŢţŤťŦŧŨũŪūŬŭŮůŰűŲųŴŵŶŷŸŹźŻżŽžſƀƁƂƃƄƅƆƇƈƉƊƋƌƍƎƏƐƑƒƓƔƕƖƗƘƙƚƛƜƝƞƟƠơƢƣƤƥƦƧƨƩƪƫƬƭƮƯưƱƲƳƴƵƶƷƸƹƺƻƼƽƾƿǀǁǂǃǍǎǏǐǑǒǓǔǕǖǗǘǙǚǛǜǝǞǟǠǡǤǥǦǧǨǩǪǫǬǭǮǯǰǴǵǶǷǸǹǺǻǾǿȀȁȂȃȄȅȆȇȈȉȊȋȌȍȎȏȐȑȒȓȔȕȖȗȘșȚțȜȝȞȟȠȡȢȣȤȥȦȧȨȩȪȫȬȭȮȯȰȱȲȳȴȵȶȷȸȹȺȻȼȽȾȿɀɁɂɃɄɅɆɇɈɉɊɋɌɍɎɏͰͱͲͳʹ͵Ͷͷͺͻͼͽ;Ϳ΄΅Ά·ΈΉΊΌΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώϏϐϑϒϓϔϕϖϗϘϙϚϛϜϝϞϟϠϡϢϣϤϥϦϧϨϩϪϫϬϭϮϯϰϱϲϳϴϵ϶ϷϸϹϺϻϼϽϾϿ –‗•\u2029‵‹›‽‾⁅⁆⁰ⁱ⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾ⁿ₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎ₐₑₒₓₔₕₖₗₘₙₚₛₜ₠₡₢₣₤₥₦₧₨₩₪₫€₭₮₰₱₲₳₴₵₶₷₸₹₺₼₽₾₿⃀ℏ℩KÅℵℶℷℸ⅐⅑⅒⅓⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞⅟↉↊↋↔↕↚↛↜↝↞↟↠↡↢↣↤↥↦↧↨↩↪↫↬↭↮↯↰↱↲↳↴↵↶↷↸↹↺↻↼↽↾↿⇀⇁⇂⇃⇄⇅⇆⇇⇈⇉⇊⇋⇌⇜⇝⇞⇟⇠⇡⇢⇣⇤⇥⇪⇫⇬⇭⇮⇯⇰⇱⇲⇳⇴⇵⇶⇷⇸⇹⇺⇻⇼⇽⇾⇿∁∅∎−∓∔∕∖∗∘∙√∛∜∣∤∦∱∲∳∶∷∸∹∺∻∼∿≀≁≂≃≄≅≆≇≈≉≊≋≌≍≎≏≐≑≓≔≕≖≗≘≙≚≛≜≝≞≟≢≣≤≥≨≩≬≭≮≯≰≱≲≳≴≵≶≷≸≹≺≻≼≽≾≿⊀⊁⊄⊅⊈⊉⊊⊋⊌⊍⊎⊏⊐⊑⊒⊓⊔⊦⊧⊨⊩⊪⊫⊬⊭⊮⊯⊲⊳⊴⊵⊹⊺⊻⊼⊽⊾⋀⋁⋂⋃⋄⋅⋆⋇⋈⋉⋊⋋⋌⋍⋎⋏⋐⋑⋒⋓⋔⋕⋖⋗⋚⋛⋜⋝⋞⋟⋠⋡⋢⋣⋤⋥⋦⋧⋨⋩⋪⋫⋬⋭⋮⌀⌁⌂⌃⌄⌅⌆⌈⌉⌊⌋⌌⌍⌎⌏⌜⌝⌞⌟⌠⌡⌢⌣⌯⌰⍳⍴⍵⍶⍷⍸⍹⍺⎛⎜⎝⎞⎟⎠⎡⎢⎣⎤⎥⎦⎧⎨⎩⎪⎫⎬⎭⎮⎰⎱⎷⎸⎹⎺⎻⎼⎽⏎⏐⏑⏒⏓⏨⏻⏼⏽⏾⏿╌╍╎╏═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╱╲╳╴╵╶╷╸╹╺╻╼╽╾╿♩♪♭♮♯ㆻㆼㆽㆾㆿ。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ᅠᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ│←↑→↓■○"},defaultWidth:1024},Arial:{fontFamily:"Arial",fontWeight:400,fontStyle:"normal",unitsPerEm:2048,metrics:{ascender:2189,descender:-555,lineGap:0},glyphs:{'"':727,"%":1821,"'":391,"*":797,"@":2079,M:1706,W:1933,"^":961,m:1706,"{":684,"|":532,"}":684,"¦":532,"©":1509,ª:758,"®":1509,"°":819,"¶":1100,º:748,æ:1821,ď:1284,IJ:1538,ij:909,ĸ:895,ŀ:651,ʼn:1282,Ŋ:1481,œ:1933,ť:831,Ŵ:1933,Ɓ:1516,Ƃ:1341,Ƈ:1569,ƈ:1186,Ɗ:1616,Ƌ:1341,ƍ:1141,Ə:1493,Ɛ:1237,Ɠ:1620,Ɣ:1329,ƕ:1651,Ɩ:502,Ɨ:659,ƚ:659,Ɯ:1706,Ơ:1589,Ƣ:2087,ƣ:1602,Ƥ:1505,Ʃ:1233,ƪ:750,Ƭ:1169,Ư:1589,ư:1270,Ʊ:1532,Ƴ:1540,ƴ:1260,Ʒ:1286,Ƹ:1286,ƹ:1077,ƺ:983,ƽ:1077,ǁ:950,ǂ:971,DŽ:2730,Dž:2503,dž:2163,LJ:2109,lj:909,NJ:2503,Nj:1933,ǣ:1821,Ǯ:1094,ǯ:1094,DZ:2730,Dz:2503,dz:2163,ǽ:1821,ʹ:631,"͵":631,Έ:1442,Ή:1554,Ί:645,Ύ:1528,Ώ:1552,Γ:1126,Δ:1397,Μ:1706,Ξ:1331,Σ:1233,Φ:1655,Ψ:1647,Ω:1552,ά:1180,έ:889,ΰ:1128,α:1180,β:1153,δ:1141,ε:889,ζ:901,κ:1020,μ:1133,ξ:885,ρ:1169,ς:967,σ:1268,τ:782,υ:1128,φ:1329,χ:1069,ψ:1493,ω:1569,ϋ:1128,ύ:1128,ώ:1569,ϐ:1153,ϑ:1262,ϒ:1292,ϓ:1487,ϔ:1292,ϕ:1319,ϖ:1599,Ϝ:1184,Ϟ:1167,Ϡ:1417,Ϣ:1802,ϣ:1706,Ϥ:1401,ϥ:1143,Ϧ:1393,ϧ:1083,Ϩ:1141,ϩ:1034,Ϫ:1276,ϫ:1235,Ϭ:1249,Ϯ:1163,ϯ:889,ϱ:1169," ":512," ":342," ":205," ":102,"":0,"":0,"":0,"―":1155,"‖":877,"•":717,"‣":717,"\u2028":0,"\u2029":0,"‱":2724,"″":762,"‴":1069,"‵":422,"‶":729,"‷":1036,"‸":639,"‼":965,"‿":1935,"⁀":1935,"⁁":639,"⁂":1679,"⁄":342,"⁽":430,"⁾":430,"₍":430,"₎":430,"₥":1706,"₨":2097,"₩":1925,"₪":1606,"℀":1821,"℁":1821,"℃":2093,"℅":1821,"℆":1821,ℇ:1026,"℉":1886,ℊ:1044,ℋ:1855,ℌ:2023,ℐ:1409,ℑ:1133,ℒ:1450,ℓ:596,"№":2198,"℗":1509,℘:1516,ℛ:1898,ℜ:1628,"℡":2404,"℥":1110,Ω:1573,"℧":1573,ℨ:1430,"℩":657,ℬ:1898,ℭ:1323,ℯ:788,ℰ:1260,ℱ:1409,ℳ:2284,ℴ:831,ℵ:1409,ℶ:1409,ℷ:705,ℸ:1409,Ⅱ:1137,Ⅲ:1704,Ⅳ:1911,Ⅵ:1913,Ⅶ:2111,Ⅷ:2597,Ⅸ:1933,Ⅺ:1933,Ⅻ:2120,Ⅿ:1706,ⅱ:909,ⅲ:1364,ⅳ:1434,ⅵ:1434,ⅶ:1888,ⅷ:2343,ⅸ:1458,ⅺ:1458,ⅻ:1913,ⅿ:1706,ↀ:2013,ↂ:2013,"↭":1665,"↮":1665,"⇎":1946,"⇔":1767,"⇜":1665,"⇝":1665,"∂":1012,"∆":1253,"∇":1253,"∏":1686,"∐":1686,"∕":342,"∗":797,"∘":819,"∙":819,"∣":532,"∤":909,"∥":856,"∦":1233,"∫":1036,"∬":1651,"∭":2265,"∮":1036,"∯":1651,"∰":2265,"∱":1036,"∲":1036,"∳":1036,"∶":864,"≀":864,"≔":1509,"≕":1509,"≪":1985,"≫":1985,"⊑":1378,"⊒":1378,"⊦":817,"⊧":817,"⊫":1376,"⊯":1376,"⋅":512,"⋇":1329,"⋈":1290,"⋉":1290,"⋊":1290,"⋋":1290,"⋌":1290,"⋐":1368,"⋑":1368,"⋒":1368,"⋓":1368,"⋕":1233,"⋘":2773,"⋙":2773,"⋢":1378,"⋣":1378,"⋤":1378,"⋥":1378,"⌈":920,"⌉":920,"⌊":920,"⌋":920,"⌗":1331,"⌘":1597,"⌠":1036,"⌡":1036,"〈":674,"〉":674,"★":1671,"☆":1686,"☎":1473,"☏":1473,"☐":1503,"☑":1503,"☒":1503,"☓":1561,"☚":1966,"☛":1966,"☜":1923,"☝":1923,"☞":1923,"☟":1923,"☤":1188,"☥":942,"☦":909,"☧":1331,"☨":909,"☩":1573,"☫":1741,"☬":1382,"☰":1843,"☱":1843,"☲":1843,"☳":1843,"☴":1843,"☵":1843,"☶":1843,"☷":1843,"☿":1516,"♀":1516,"♁":1516,"♂":1516,"♃":1337,"♄":1004,"♅":1294,"♆":1597,"♇":1147,"♈":1716,"♉":1597,"♊":1503,"♋":1817,"♌":1597,"♍":2212,"♎":1835,"♏":2212,"♐":1647,"♑":1778,"♒":1888,"♓":1425,"♡":1503,"♢":1380,"♣":1647,"♥":1503,"♦":1380,"♧":1647,"♨":1761,"♩":866,"♪":1212,"♭":899,"♮":899,"♯":899,"✁":1995,"✂":1968,"✃":1995,"✄":2007,"✆":1616,"✇":1618,"✈":1620,"✉":1413,"✍":1751,"✎":1866,"✏":1911,"✐":1866,"✑":1935,"✒":1995,"✓":1546,"✔":1733,"✕":1561,"✖":1559,"✗":1169,"✘":1386,"✙":1563,"✚":1556,"✛":1554,"✜":1544,"✝":1012,"✞":1130,"✟":1100,"✠":1182,"✡":1417,"✢":1610,"✥":1618,"✦":1624,"✧":1626,"✩":1686,"✪":1616,"✫":1722,"✬":1686,"✭":1706,"✮":1671,"✯":1702,"✰":1890,"✱":1524,"✲":1481,"✳":1534,"✴":1618,"✵":1622,"✶":1423,"✷":1589,"✸":1573,"✹":1622,"✺":1554,"✻":1448,"✼":1450,"✽":1397,"✾":1436,"✿":1692,"❀":1669,"❁":1616,"❂":1616,"❃":1448,"❄":1407,"❅":1425,"❆":1411,"❇":1610,"❈":1612,"❊":1620,"❋":1608,"❍":1788,"❏":1561,"❐":1561,"❑":1554,"❒":1554,"❖":1606,"❘":283,"❙":567,"❚":850,"❛":803,"❜":803,"❝":1368,"❞":1368,"❡":1499,"❢":1114,"❣":1114,"❤":1864,"❦":1556,"❧":1556,"➔":1831,"➘":1532,"➙":1892,"➚":1532,"➛":1880,"➜":1898,"➝":1901,"➞":1901,"➠":1788,"➡":1696,"➢":1892,"➣":1892,"➤":1878,"➥":1905,"➦":1907,"➧":948,"➨":1808,"➩":1712,"➪":1712,"➫":1776,"➬":1776,"➭":1425,"➮":1425,"➯":1790,"➱":1790,"➲":1556,"➳":1937,"➴":1579,"➵":1772,"➶":1579,"➷":1819,"➸":1980,"➹":1819,"➺":1702,"➻":1788,"➼":1898,"➽":1987,"➾":1880,匭:2036,憁:2050,鐧:2044},glyphsByWidth:{455:"ijlĩīĭįĵĺļľłſǰΐίιϊϳ‘’‚‛′ⅰⅼ",569:" \t\n\r!,./:;I[\\]ft ·ÌÍÎÏìíîïĨĪĬĮİıţŧƒƫƭǀǃǏǐȈȉȊȋͺ;΄΅·ΙΪ ․‧⁅⁆Ⅰ∖⋮",682:"()-`r¡¨²³´¸¹ŕŗřȑȓ ‐‑“”„‟‹›⁃⁰⁴⁵⁶⁷⁸⁹⁺⁻⁼ⁿ₀₁₂₃₄₅₆₇₈₉₊₋₌",1024:"J_cksvxyz¯çýÿćĉċčĴķśŝşšŷźżžƙƛƨƶǩγλνϲ –‗‾ℎℏⅴⅹⅽ☇☈。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ᅠᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ│←↑→↓■○",1124:"∈∉∊∋∌∍∎∝∞⊢⊣⊤⊥⊨⊩⊪⊬⊭⊮⊰⊱⊲⊳⊴⊵⊹⊺⋄⋆⌀⌂⌃⌄⌅⌆⌇⌌⌍⌎⌏⌐⌑⌔⌕⌖⌙⌚⌛⌜⌝⌞⌟⌬⌭⌮⌯⌰⌱⌲⌳⌴⌵✌",1139:"#$0123456789?Labdeghnopqu¢£¤¥§«µ»àáâãäåèéêëðñòóôõöùúûüþāăąđēĕėęěĝğġģĥħĹĻĽĿŁńņňŋōŏőũūŭůűųƀƃƄƅƌƞơƥƻƼƾƿǎǒǔǖǘǚǜǝǟǡǥǧǫǭǵǻȁȃȅȇȍȏȕȗήηθοό ‒†‡‥‽₠₡₢₣₤₦₧₫€ℙ℮Ⅼⅾ",1149:"∧∨∩∪∴∵∷⊌⊍⊎⊓⊔⋀⋁⋂⋃⋎⋏⋔",1196:"+<=>~¬±×÷−∓∔∟∠∡∢∸∹∺∻∼∽∾∿≁≂≃≄≅≆≇≈≉≊≋≌≍≎≏≐≑≒≓≖≗≘≙≚≛≜≝≞≟≠≡≢≣≤≥≦≧≨≩≬≭≮≯≰≱≲≳≴≵≶≷≸≹≺≻≼≽≾≿⊀⊁⊻⊼⊽⊾⊿⋍⋖⋗⋚⋛⋜⋝⋞⋟⋠⋡⋦⋧⋨⋩⋪⋫⋬⋭",1229:"ϰ∀∁∃∄√∛∜⌶⌷⌸⌹⌺⌻⌼⌽⌾⌿⍀⍁⍂⍃⍄⍅⍆⍇⍈⍉⍊⍋⍌⍍⍎⍏⍐⍑⍒⍓⍔⍕⍖⍗⍘⍙⍚⍛⍜⍝⍞⍟⍠⍡⍢⍣⍤⍥⍦⍧⍨⍩⍪⍫⍬⍭⍮⍯⍰⍱⍲⍳⍴⍵⍶⍷⍸⍹⍺⎕─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋╌╍╎╏═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳╴╵╶╷╸╹╺╻╼╽╾╿▀▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▐░▒▓▔▕■□▢▣▤▥▦▧▨▩▪▫▬▭▮▯▰▱▲△▴▵▶▷▸▹►▻▼▽▾▿◀◁◂◃◄◅◆◇◈◉◊○◌◍◎●◐◑◒◓◔◕◖◗◘◙◚◛◜◝◞◟◠◡◢◣◤◥◦◧◨◩◪◫◬◭◮◯☡",1251:"FTZ¿ßøŢŤŦŹŻŽƑƮƵǿΖΤϭ℄ℤℲ",1366:"&ABEKPSVXYÀÁÂÃÄÅÈÉÊËÝÞĀĂĄĒĔĖĘĚĶŚŜŞŠŶŸƎƘƧƲǍǞǠǨǺȀȂȄȆΆΑΒΕΚΛΡΥΧΫℂ℈ℝ℞℟KÅⅤⅩ❥",1389:"π⊂⊃⊄⊅⊆⊇⊈⊉⊊⊋⊏⊐",1460:"←↑→↓↔↕↖↗↘↙↚↛↜↝↞↟↠↡↢↣↤↥↦↧↨↩↪↫↬↯↰↱↲↳↴↵↶↷↸↹↼↽↾↿⇀⇁⇂⇃⇄⇅⇆⇇⇈⇉⇊⇋⇌⇍⇏⇐⇑⇒⇓⇕⇖⇗⇘⇙⇚⇛⇞⇟⇠⇡⇢⇣⇤⇥⇦⇧⇨⇩⇪∑⊶⊷⊸⌢⌣❉",1479:"CDHNRUwÇÐÑÙÚÛÜĆĈĊČĎĐĤĦŃŅŇŔŖŘŨŪŬŮŰŲŵƆƉƝƦǓǕǗǙǛȐȒȔȖΗΝΠϚℍℕℚ℣ⅭⅮↁ♠♤",1536:"☀☂☃☠☢☣☮☯☸☹☺☻☼☽☾♫♬",1593:"GOQÒÓÔÕÖØĜĞĠĢŌŎŐƟLjnjǑǤǦǪǬǴǾȌȎΌΘΟ℔",1614:"✣✤❶❷❸❹❺❻❼❽❾❿➀➁➂➃➄➅➆➇➈➉➊➋➌➍➎➏➐➑➒➓",1638:"↺↻∅⊕⊖⊗⊘⊙⊚⊛⊜⊝⊞⊟⊠⊡⌒⌓☉☊☋☌☍☪☭",1708:"¼½¾⅓⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞⅟➟"},defaultWidth:2048},"LXGW WenKai":{fontFamily:"LXGW WenKai",fontWeight:400,fontStyle:"normal",unitsPerEm:1e3,metrics:{ascender:928,descender:-256,lineGap:0},glyphs:{"%":800,"&":700,"@":784,B:650,D:728,F:582,H:700,J:492,K:630,L:547,M:855,P:618,R:635,S:617,V:620,W:880,b:573,f:370,j:301,m:816,p:572,q:576,r:430,t:360,v:490,w:730,z:490,"¢":556,"£":713,"§":675,"©":780,ª:320,"®":780,"°":320,º:320,Æ:900,Ð:728,Þ:618,ß:610,æ:900,ð:622,þ:572,Ď:728,Đ:728,đ:583,Ĥ:700,Ħ:700,IJ:492,Ĵ:492,ĵ:301,Ķ:630,ĸ:445,Ĺ:547,Ļ:547,Ľ:547,ľ:302,Ŀ:547,ŀ:300,Ł:547,Œ:945,œ:948,Ŕ:635,ŕ:430,Ŗ:635,ŗ:430,Ř:635,ř:430,Ś:617,Ŝ:617,Ş:617,Š:617,ţ:360,ť:360,ŧ:360,Ŵ:880,ŵ:730,ź:490,ż:490,ž:490,ſ:370,ƀ:573,Ɓ:677,Ƃ:629,ƃ:573,Ƅ:604,ƅ:523,Ɔ:725,Ɖ:728,Ɗ:766,Ƌ:629,ƍ:556,Ɛ:627,Ƒ:582,Ɣ:620,ƕ:883,Ɩ:314,Ƙ:669,ƛ:534,Ɯ:816,Ƣ:869,ƣ:683,ƥ:572,Ʀ:635,Ƨ:617,Ʃ:557,ƪ:430,ƫ:360,ƭ:360,Ʊ:762,ƶ:490,Ʒ:552,Ƹ:552,ƹ:540,ƺ:491,ƽ:512,ƾ:540,ƿ:572,ǀ:351,ǁ:351,DŽ:1310,Dž:1200,dž:1037,LJ:983,Lj:776,lj:541,NJ:1203,Nj:1004,nj:855,Ǣ:900,ǣ:900,Ǩ:630,ǩ:542,Ǯ:552,ǯ:540,ǰ:301,DZ:1310,Dz:1200,dz:1037,Ƕ:1004,Ƿ:556,Ǽ:900,ǽ:900,Ȑ:635,ȑ:430,Ȓ:635,ȓ:430,Ș:617,ț:360,ȝ:456,Ȟ:700,Ƞ:675,ȡ:625,Ȣ:627,ȣ:586,ȥ:490,ȴ:318,ȵ:637,ȶ:360,ȷ:301,ȸ:880,ȹ:880,Ƚ:547,ɀ:490,Ɂ:570,ɂ:511,Ƀ:650,Ʌ:620,Ɉ:492,ɉ:301,Ɋ:788,ɋ:576,Ɍ:635,ɍ:430,Ͱ:568,ͱ:464,Ͳ:617,ʹ:200,"͵":200,ͷ:583,Ϳ:492,"΄":286,"΅":424,Έ:727,Ή:790,Ί:383,Ό:811,Ύ:759,Ώ:821,ΐ:294,Β:636,Γ:573,Δ:650,Η:701,Κ:630,Μ:855,Ξ:599,Π:627,Ρ:618,Σ:557,Φ:737,Ψ:754,Ω:755,ί:294,ΰ:558,β:565,γ:480,δ:556,ζ:514,θ:570,ι:294,κ:501,λ:534,ν:515,ξ:528,ο:568,ρ:578,ς:516,σ:572,τ:446,υ:558,φ:621,χ:486,ψ:611,ω:687,ϊ:294,ϋ:558,ό:568,ύ:558,ώ:687,Ϗ:630,ϒ:644,ϓ:759,ϔ:644,ϕ:574,ϖ:668,ϗ:586,ϛ:516,Ϝ:573,ϝ:476,Ϟ:585,ϟ:560,Ϡ:625,ϡ:675,ϰ:586,ϱ:578,ϳ:301,ϵ:522,"϶":522,Ϸ:618,ϸ:572,Ϻ:817,ϻ:639,ϼ:578,Ͻ:725,Ͽ:725," ":333," ":250," ":167," ":200," ":100,"":0,"•":392,"′":286,"″":388,"‴":520,"‶":388,"‷":520,"⁂":900,"⁄":330,"⁒":330,ⁱ:180,ⁿ:340,ₐ:320,ₑ:320,ₒ:320,ₓ:300,ₔ:330,ₕ:320,ₖ:305,ₗ:180,ₘ:457,ₙ:340,ₚ:320,ₛ:300,ₜ:300,"₠":700,"₣":582,"₤":713,"₨":1099,"₩":880,"₪":802,"€":750,"₭":630,"₯":1069,"₱":618,"₴":617,"₶":595,"₷":637,"₹":554,"₺":649,"₻":781,"₼":754,"₽":618,"₿":650,ℏ:618,ℓ:557,"℞":633,"℠":810,"™":790,"℩":294,Ⅎ:596,"⅂":547,"⅃":596,ⅎ:476,"∂":630,"∏":627,"∑":557,"√":640,"∛":640,"∜":640,"⍳":294,"⍴":578,"⍵":687,"⍸":294,"⍹":687,"⏨":635,"❛":371,"❜":371,"❝":648,"❞":648,"❟":371,"❠":648,"〪":0,"〫":0,"〬":0,"〭":0,"゙":0,"゚":0},glyphsByWidth:{263:"ilìíîïĩīĭįıĺļƚǐȉȋ",304:"IÌÍÎÏĨĪĬĮİłƗǏȈȊΙΪ",350:" !\"'(),-./:;[\\]{|} ¡¦·ijǃͺ;· ‘’‚‛“”„‟−∕∖⋅\t\n\r",380:"²³¹⁰⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎",500:"*_`xy¨¯´¸ýÿŷƒƴȳɏ ‒‵‾⁑∁∊∍⌃❲❳〿。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ᅠᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ│←↑→↓■○",510:"ksķśŝşšƙƨșȿέε",530:"c¤«»çćĉċčƈȼͻͼͽϐϑϲ‹›⃀⍷",543:"eèéêëēĕėęěǝȅȇȩɇήη",562:"oòóôõöøōŏőơǒǫǭǿȍȏȫȭȯȱμϙ",575:"adàáâãäåāăąďƌǎǟǡǻȁȃȧ₫",577:"TŢŤŦƬƮȚȾͳΤπ₮₸",580:"gĝğġģǥǧǵάαℊ⍶⍺",588:"hnñĥħńņňʼnŋƞǹȟℎ",590:"u¬µùúûüũūŭůűųưǔǖǘǚǜȕȗ",600:"#$+0123456789<=>?XYZ^~¥±¿×Ý÷ŶŸŹŻŽƳƵƻƼǂȜȤȲɎΖΥΧΫ ‽₰⅄↊↋ㆴㆵㆶㆷㆻ",638:"E¶ÈÉÊËĒĔĖĘĚƎƤȄȆȨɆΕ",690:"AÀÁÂÃÄÅĀĂĄǍǞǠǺȀȂȦȺΆΑΛ₳",703:"CÇĆĈĊČƇƏȻϚϹϾ₡₢₵₾",710:"UÙÚÛÜŨŪŬŮŰŲƯƲǓǕǗǙǛȔȖɄ",738:"NÑŃŅŇŊƝǸͶΝ₦",745:"OQÒÓÔÕÖØŌŎŐƟƠǑǪǬǾȌȎȪȬȮȰΘΟϘϴΩ℧",752:"GĜĞĠĢƓǤǦǴ₲⅁"},defaultWidth:1e3},"Source Han Sans":{fontFamily:"Source Han Sans",fontWeight:400,fontStyle:"normal",unitsPerEm:1e3,metrics:{ascender:880,descender:-120,lineGap:500},glyphs:{" ":224,"\t":224,"\n":224,"\r":224,"!":323,'"':475,"%":921,"&":680,"'":278,"(":338,")":338,"*":467,",":278,"-":347,".":278,"/":392,":":278,";":278,"?":474,"@":946,B:657,C:638,D:687,E:588,F:552,G:689,H:728,I:293,J:536,K:646,L:542,M:812,N:722,P:632,R:635,S:597,T:599,V:575,W:878,X:573,Y:531,Z:603,"[":338,"\\":392,"]":338,_:559,b:618,c:509,d:620,e:554,f:325,g:563,i:275,j:275,k:552,l:285,m:926,n:611,p:620,q:620,r:388,s:468,t:377,v:521,w:802,x:498,y:521,z:474,"{":338,"|":269,"}":338,"¡":323,"¦":269,"©":832,ª:385,"«":479,"®":473,"°":370,"²":410,"³":410,µ:628,"·":561,"¹":410,º:407,"»":479,"¼":872,"½":903,"¾":889,"¿":474,Æ:918,Ç:638,È:588,É:588,Ê:588,Ë:588,Ì:293,Í:293,Î:293,Ï:293,Ð:712,Ñ:722,Ý:531,Þ:651,ß:642,æ:877,ç:509,è:554,é:554,ê:554,ë:554,ì:275,í:275,î:275,ï:275,ð:608,ñ:611,ý:521,þ:620,ÿ:521,Đ:712,đ:620,Ē:588,ē:554,Ě:588,ě:554,Ĩ:293,ĩ:275,Ī:293,ī:275,Ń:722,ń:611,Ň:722,ň:611,Œ:947,œ:937,Ư:736,Ǐ:293,ǐ:275,Ǹ:722,ǹ:611,Β:657,Γ:557,Δ:657,Ε:588,Ζ:603,Η:728,Ι:293,Κ:646,Λ:575,Μ:812,Ν:722,Ξ:595,Π:720,Ρ:632,Σ:601,Τ:599,Υ:531,Φ:803,Χ:573,Ψ:780,Ω:758,α:625,β:631,γ:540,δ:594,ε:501,ζ:473,η:604,θ:583,ι:292,κ:551,λ:552,μ:628,ν:528,ξ:481,ο:597,π:654,ρ:613,σ:610,τ:513,υ:569,φ:759,χ:537,ψ:769,ω:782,"‒":536,"—":894,"‚":278,"„":475,"•":339,"′":278,"″":475,"‹":302,"›":302,"‼":613,"⁇":910,"⁈":758,"⁉":758,ℓ:457,"№":997,"™":711,℮:894,"✓":683,"〪":0,"〫":0,"〬":0,"〭":0,"〮":250,"〯":250},glyphsByWidth:{500:" 。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ│←↑→↓■○",555:"#$+0123456789<=>^~¢£¤¥¬ƒ₩€",564:"aàáâãäåāăǎ",606:"`o¨¯´¸òóôõöøōŏơǒ",607:"AhuÀÁÂÃÄÅùúûüĀĂũūŭưǍǔǖǘǚǜΑ",721:"UÙÚÛÜŨŪŬǓǕǗǙǛ",742:"OQÒÓÔÕÖØŌŎƠǑΘΟ",920:"ㄱㄲㄳㄴㄵㄶㄷㄸㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅃㅄㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣㅥㅦㅧㅨㅩㅪㅫㅬㅭㅮㅯㅰㅱㅲㅳㅴㅵㅶㅷㅸㅹㅺㅻㅼㅽㅾㅿㆀㆁㆂㆃㆄㆅㆆㆇㆈㆉㆊㆋㆌㆍㆎ"},defaultWidth:1e3,kerning:{'",':-128,'".':-128,'"A':-61,'"J':-106,'"S':-11,'"X':-11,'"c':-33,'"d':-33,'"e':-33,'"o':-33,'"q':-33,'"s':-22,"',":-128,"'.":-128,"'A":-61,"'J":-106,"'S":-11,"'X":-11,"'c":-33,"'d":-33,"'e":-33,"'o":-33,"'q":-33,"'s":-22,"(J":-22,"(j":89,',"':-107,",'":-107,",*":-154,",T":-110,",U":-22,",V":-73,",W":-38,",Y":-103,",c":-13,",d":-13,",e":-13,",j":29,",o":-13,",q":-13,",t":-51,",v":-38,",w":-25,",y":-22,"-J":-22,"-S":-19,"-T":-53,"-V":-21,"-W":-11,"-X":-30,"-Y":-74,"-Z":-22,"-t":-29,"-v":-8,"-x":-15,'."':-107,".'":-107,".*":-154,".T":-110,".U":-22,".V":-73,".W":-38,".Y":-103,".c":-13,".d":-13,".e":-13,".j":29,".o":-13,".q":-13,".t":-51,".v":-38,".w":-25,".y":-22,"/A":-45,"/C":-11,"/G":-11,"/J":-89,"/O":-11,"/Q":-11,"/a":-27,"/c":-35,"/d":-35,"/e":-35,"/g":-11,"/i":29,"/j":29,"/o":-35,"/q":-35,"/t":10,"/u":-22,":*":-55,":Y":-29,":j":4,";*":-55,";Y":-29,";j":4,'A"':-61,"A'":-61,"A*":-105,"A?":-29,AA:-7,AC:-11,AG:-11,AO:-11,AQ:-11,AT:-61,AU:-17,AV:-15,AX:4,AY:-15,AZ:-8,"A\\":-45,Aa:26,Af:-11,As:26,At:-15,Au:-7,Av:-8,Aw:-4,Ax:-4,Ay:-8,"B*":-34,BJ:-18,BS:-15,BT:-27,BV:-6,BW:-4,BX:-4,BY:-15,BZ:-4,Bt:-11,Bv:-15,Bw:-11,Bx:-11,By:-15,"C-":-29,CC:-32,CG:-32,CJ:-11,CO:-32,CQ:-32,CS:-27,CT:-20,CU:-15,CV:-4,CW:-4,CX:-4,CY:-8,CZ:-11,Cg:-22,Ct:-30,Cu:-11,Cv:-15,Cw:-11,Cy:-15,"D*":-38,"D/":-20,DA:-11,DJ:-44,DT:-27,DV:-11,DW:-7,DX:-19,DY:-22,DZ:-22,Dx:-15,Dz:-8,Ec:-11,Ed:-11,Ee:-11,Eo:-11,Eq:-11,Et:-27,Ev:-11,Ex:-34,Ey:-11,"F,":-81,"F.":-81,"F/":-78,FA:-42,FC:-11,FG:-11,FJ:-155,FO:-11,FQ:-11,FS:-22,FV:4,FW:4,FX:-27,FZ:-34,Fa:-38,Fc:-15,Fd:-15,Fe:-15,Fg:-27,Fm:-22,Fn:-22,Fo:-15,Fp:-22,Fq:-15,Fr:-22,Fs:-22,Ft:-11,Fu:-18,Fv:-22,Fw:-18,Fx:-29,Fy:-18,Fz:-33,"G*":-31,GA:-4,GT:-22,GV:-15,GW:-4,"J,":-27,"J.":-27,JJ:-45,'K"':-23,"K'":-23,"K*":-45,"K-":-33,"K?":-8,KA:-11,KC:-22,KG:-22,KO:-22,KQ:-22,KS:-10,KT:-19,KU:-15,KV:-14,KW:-11,KY:-18,Kc:-8,Kd:-8,Ke:-8,Kj:-11,Ko:-8,Kq:-8,Kt:-37,Ku:-16,Kv:-22,Kw:-18,Kx:-18,Ky:-22,Kz:-15,'L"':-99,"L'":-99,"L*":-170,"L-":-60,"L?":-36,LA:3,LC:-29,LG:-29,LO:-29,LQ:-29,LS:-25,LT:-134,LU:-32,LV:-85,LW:-63,LY:-85,"L\\":-89,Lc:-13,Ld:-13,Le:-13,Lf:-15,Lg:-4,Lo:-13,Lq:-13,Lt:-22,Lu:-11,Lv:-40,Lw:-38,Ly:-40,"O*":-38,"O/":-20,OA:-11,OJ:-44,OT:-27,OV:-11,OW:-7,OX:-19,OY:-22,OZ:-22,Ox:-15,Oz:-8,"P,":-125,"P-":-37,"P.":-125,"P/":-85,PA:-56,PJ:-164,PS:-11,PT:-27,PX:-27,PY:-11,PZ:-87,Pa:-48,Pc:-27,Pd:-27,Pe:-27,Pg:-34,Po:-27,Pq:-27,Ps:-11,Px:-15,Pz:-22,"Q*":-38,"Q/":-20,QA:-11,QJ:-44,QT:-27,QV:-11,QW:-7,QX:-19,QY:-22,QZ:-22,Qx:-15,Qz:-8,"R*":-11,"R-":-35,RA:-4,RJ:-20,RS:-15,RT:-15,RV:6,RW:7,RX:-4,RZ:-11,Ra:-4,Rc:-11,Rd:-11,Re:-11,Rg:-4,Ro:-11,Rq:-11,Rx:-8,Rz:-8,"S*":-18,"S-":15,SJ:-15,SS:-15,ST:-22,SY:-15,St:-27,"T,":-119,"T-":-81,"T.":-119,"T/":-100,"T:":-22,"T;":-22,TA:-45,TC:-27,TG:-27,TJ:-141,TO:-27,TQ:-27,TS:-44,TX:-22,TY:-15,TZ:-60,Ta:-81,Tc:-74,Td:-74,Te:-74,Tf:-20,Tg:-81,Tm:-52,Tn:-52,To:-74,Tp:-52,Tq:-74,Tr:-52,Ts:-66,Tt:-20,Tu:-52,Tv:-37,Tw:-38,Tx:-44,Ty:-37,Tz:-84,"U,":-18,"U.":-18,"U/":-35,UA:-18,UJ:-53,US:-11,UV:-4,UX:-11,UY:-15,Ua:-4,Ug:-11,Us:-4,Ux:-8,"V,":-73,"V-":-21,"V.":-73,"V/":-52,VA:-15,VC:-11,VG:-11,VJ:-81,VO:-11,VQ:-11,VS:-11,VU:-11,VV:11,VZ:-21,Va:-25,Vc:-17,Vd:-17,Ve:-17,Vg:-24,Vm:-22,Vn:-22,Vo:-17,Vp:-22,Vq:-17,Vr:-22,Vs:-14,Vu:-34,Vv:-10,Vw:-10,Vx:-17,Vy:-10,Vz:-28,"W,":-38,"W-":-11,"W.":-38,"W/":-33,WC:-7,WG:-7,WJ:-73,WO:-7,WQ:-7,WS:-7,WZ:-7,Wa:-18,Wg:-14,Wz:-11,'X"':-11,"X'":-11,"X*":-11,"X-":-30,XA:3,XC:-19,XG:-19,XO:-19,XQ:-19,XS:-15,XT:-22,XU:-11,Xa:-11,Xc:-8,Xd:-8,Xe:-8,Xf:-18,Xo:-8,Xq:-8,Xt:-18,Xu:-11,Xv:-18,Xw:-15,Xx:-11,Xy:-18,Xz:-15,"Y,":-101,"Y-":-74,"Y.":-101,"Y/":-75,"Y:":-28,"Y;":-28,"Y?":-8,YA:-15,YC:-15,YG:-15,YJ:-112,YO:-15,YQ:-15,YS:-18,YT:-15,YU:-11,YZ:-29,Ya:-75,Yc:-46,Yd:-46,Ye:-46,Yg:-67,Ym:-45,Yn:-45,Yo:-46,Yp:-45,Yq:-46,Yr:-45,Ys:-46,Yt:-31,Yu:-38,Yv:-15,Yw:-27,Yx:-38,Yy:-15,Yz:-53,"Z-":-38,ZA:-7,ZC:-22,ZG:-22,ZJ:-37,ZO:-22,ZQ:-22,ZS:-34,ZU:-11,ZV:-7,ZW:-7,ZY:-15,ZZ:-18,Za:-18,Zc:-24,Zd:-24,Ze:-24,Zf:-22,Zg:-16,Zo:-24,Zq:-24,Zt:-15,Zu:-26,Zv:-18,Zw:-18,Zx:-27,Zy:-18,"[J":-22,"[j":89,"\\T":-96,"\\U":-33,"\\V":-59,"\\W":-33,"\\Y":-81,"\\g":37,"\\j":81,"\\v":-22,"\\w":-11,"\\y":14,"a*":-60,"a?":-14,aT:-27,aV:-18,aW:-4,aY:-27,at:-15,'b"':-33,"b'":-33,"b*":-29,"b,":-11,"b-":7,"b.":-11,"b?":-14,bT:-64,bV:-21,bX:-4,bY:-52,"b\\":-29,ba:-16,bt:-19,bv:-4,bw:-4,bx:-19,by:-4,bz:-6,"c-":-22,cT:-22,cV:-15,cY:-27,ca:-11,cc:-24,cd:-24,ce:-24,cg:-11,co:-24,cq:-24,ct:-11,cv:7,cw:7,cx:9,cy:7,"e*":-38,"e-":11,"e?":-8,eJ:-22,eS:-22,eT:-27,eV:-18,eW:-11,eY:-29,"e\\":-22,ea:-16,eg:-11,et:-11,ev:5,ew:5,ex:-8,ey:5,"f!":16,'f"':45,"f'":45,"f)":55,"f,":-56,"f-":-15,"f.":-56,"f/":-16,"f?":29,fT:52,fV:74,fW:52,fX:37,fY:66,"f\\":70,"f]":55,fa:-22,fc:-11,fd:-11,fe:-11,fg:-16,fj:-11,fo:-11,fq:-11,fs:-4,fv:14,fx:-4,fz:-15,"f}":55,"g)":16,"g*":-37,"g/":53,"g?":-40,gT:-29,gY:-15,"g]":16,ga:-18,gc:-15,gd:-15,ge:-15,gj:41,go:-15,gq:-15,gv:-4,gw:-4,gy:17,gz:-15,"g}":16,"h*":-38,"h?":-8,hT:-27,hV:-11,hY:-18,"k*":-24,"k,":14,"k-":-49,"k.":14,"k:":14,"k;":14,"k?":-14,kT:-39,kY:-13,ka:-11,kc:-20,kd:-20,ke:-20,kg:-11,kj:-11,ko:-20,kq:-20,kt:-23,ku:-15,kx:-8,kz:-8,lj:9,"m*":-38,"m?":-8,mT:-27,mV:-11,mY:-18,"n*":-38,"n?":-8,nT:-27,nV:-11,nY:-18,'o"':-33,"o'":-33,"o*":-29,"o,":-11,"o-":7,"o.":-11,"o?":-14,oT:-64,oV:-21,oX:-4,oY:-52,"o\\":-29,oa:-16,ot:-19,ov:-4,ow:-4,ox:-19,oy:-4,oz:-6,'p"':-33,"p'":-33,"p*":-29,"p,":-11,"p-":7,"p.":-11,"p?":-14,pT:-64,pV:-21,pX:-4,pY:-52,"p\\":-29,pa:-16,pt:-19,pv:-4,pw:-4,px:-19,py:-4,pz:-6,"q*":-27,qT:-22,qV:-15,qY:-34,"r,":-63,"r-":-27,"r.":-63,"r/":-38,"r:":29,"r;":29,rA:-15,rJ:-61,rZ:-11,"r\\":14,ra:-27,rc:-11,rd:-11,re:-11,rg:-11,ro:-11,rq:-11,rs:-4,rv:29,rw:21,ry:29,rz:-4,"s*":-55,"s-":11,"s?":-12,sT:-27,sV:-11,sY:-22,st:-22,"t,":7,"t-":-29,"t.":7,"t/":11,"t:":16,"t;":16,"t?":-29,tT:-15,tY:-4,ta:-24,tc:-15,td:-15,te:-15,tg:-11,to:-15,tq:-15,ts:-11,tt:-22,tx:-18,"u*":-27,uT:-22,uV:-15,uY:-34,"v*":-13,"v,":-38,"v-":-8,"v.":-38,"v/":-22,vA:-13,vJ:-45,vT:-22,vV:-10,vY:-15,vZ:-11,va:-22,vc:-4,vd:-4,ve:-4,vj:-11,vo:-4,vq:-4,vz:-27,"w*":-13,"w,":-45,"w.":-45,"w/":-8,wA:-4,wJ:-34,wT:-27,wV:-10,wX:-15,wY:-27,wa:-11,wc:-4,wd:-4,we:-4,wj:-11,wo:-4,wq:-4,wz:-19,"x!":-15,"x*":-25,"x,":8,"x-":-15,"x.":-8,"x;":8,xC:-11,xG:-11,xO:-11,xQ:-11,xS:-4,xT:-37,xV:-17,xX:-11,xY:-38,xa:-11,xc:-19,xd:-19,xe:-19,xo:-19,xq:-19,xt:-27,"y,":-38,"y.":-38,"y/":-16,yJ:-45,yT:-22,yV:-4,yX:-4,yY:-8,ya:-22,yc:-4,yd:-4,ye:-4,yj:-11,yo:-4,yq:-4,yx:-15,yz:-27,"z-":-18,zT:-29,zY:-33,za:-26,zc:-11,zd:-11,ze:-11,zg:-7,zo:-11,zq:-11,zu:-11,zv:-4,zy:-4,"{J":-22,"{j":89}},"Source Han Serif":{fontFamily:"Source Han Serif",fontWeight:400,fontStyle:"normal",unitsPerEm:1e3,metrics:{ascender:1151,descender:-286,lineGap:0},glyphs:{" ":258,"\t":258,"\n":258,"\r":258,"!":303,'"':367,"#":567,"%":935,"&":780,"'":189,"(":361,")":361,"*":479,"+":576,",":326,"-":338,".":326,"/":348,":":326,";":326,"<":576,"=":576,">":576,"?":438,"@":901,B:675,C:690,D:772,E:655,F:629,G:742,H:859,I:401,J:402,K:723,L:640,M:979,N:798,P:637,R:707,S:557,T:653,V:726,W:1047,X:702,Y:688,Z:599,"[":341,"\\":348,"]":341,"^":576,_:555,"`":435,b:627,c:529,d:617,e:549,f:385,g:560,h:655,i:325,j:301,k:592,l:324,m:976,n:658,p:630,q:602,r:454,s:470,t:354,v:546,w:829,x:564,y:551,z:496,"{":375,"|":270,"}":375,"~":576,"¡":303,"¤":542,"¦":270,"¨":435,"©":822,ª:376,"«":524,"¬":576,"®":498,"¯":435,"°":350,"²":395,"³":395,"´":435,µ:619,"·":326,"¸":435,"¹":395,º:404,"»":524,"¼":935,"½":935,"¾":935,"¿":438,Æ:997,Ç:690,È:655,É:655,Ê:655,Ë:655,Ì:401,Í:401,Î:401,Ï:401,Ð:772,Ñ:798,Ý:688,Þ:659,ß:636,æ:852,ç:529,è:549,é:549,ê:549,ë:549,ì:325,í:325,î:325,ï:325,ð:591,ñ:658,ý:551,þ:608,ÿ:551,Đ:772,đ:617,Ē:655,ē:549,Ě:655,ě:549,Ĩ:401,ĩ:325,Ī:401,ī:325,Ń:798,ń:658,Ň:798,ň:658,Œ:1012,œ:949,Ǐ:401,ǐ:325,Ǹ:798,ǹ:658,Β:675,Γ:608,Δ:688,Ε:655,Ζ:599,Η:859,Ι:401,Κ:723,Λ:716,Μ:979,Ν:798,Ξ:636,Π:844,Ρ:637,Σ:591,Τ:653,Υ:688,Φ:770,Χ:702,Ψ:822,Ω:797,α:604,β:616,γ:529,δ:565,ε:455,ζ:450,ι:303,κ:571,λ:570,μ:619,ν:529,ξ:471,ο:563,π:645,ρ:591,ς:495,σ:636,τ:522,υ:586,φ:754,χ:527,ψ:776,ω:788,"‒":555,"—":882,"‚":229,"„":436,"′":265,"″":449,"‹":309,"›":309,"‼":584,"⁇":832,"⁉":713,ℓ:495,"№":1089,"™":780,℮:870,"−":576,"✓":646,"〪":0,"〫":0,"〬":0,"〭":0,"〮":250,"〯":250,"゙":0,"゚":0},glyphsByWidth:{500:" 。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ│←↑→↓■○",539:"$0123456789¢£¥ƒ₩₫€",552:"aàáâãäåāăǎθ",594:"oòóôõöøōŏơǒη",639:"uùúûüũūŭưǔǖǘǚǜ",719:"AÀÁÂÃÄÅĀĂǍΑ⁈",769:"OQÒÓÔÕÖØŌŎƠǑΘΟ",792:"UÙÚÛÜŨŪŬƯǓǕǗǙǛ",966:"ㄱㄲㄳㄴㄵㄶㄷㄸㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅃㅄㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣㅥㅦㅧㅨㅩㅪㅫㅬㅭㅮㅯㅰㅱㅲㅳㅴㅵㅶㅷㅸㅹㅺㅻㅼㅽㅾㅿㆀㆁㆂㆃㆄㆅㆆㆇㆈㆉㆊㆋㆌㆍㆎ"},defaultWidth:1e3,kerning:{'",':-114,'".':-114,'"/':-86,'"A':-133,'"C':-27,'"G':-27,'"J':-10,'"O':-27,'"Q':-27,'"S':-10,'"T':32,'"U':-4,'"a':-32,'"c':-43,'"d':-43,'"e':-43,'"f':-5,'"g':-56,'"m':-8,'"n':-8,'"o':-43,'"p':-19,'"q':-43,'"r':-8,'"s':-32,'"z':-10,"#/":-32,"#A":-41,"#C":14,"#G":14,"#O":14,"#Q":14,"#V":-21,"#W":-21,"#Y":-5,"#f":-5,"#g":-7,"#t":10,"#v":5,"#w":5,"#y":5,"&)":-21,"&,":-7,"&-":-25,"&.":-7,"&J":-8,"&T":-59,"&U":-30,"&V":-68,"&W":-63,"&Y":-63,"&]":-21,"&c":-10,"&d":-10,"&e":-10,"&o":-10,"&q":-10,"&}":-21,"',":-114,"'.":-114,"'/":-86,"'A":-133,"'C":-27,"'G":-27,"'J":-10,"'O":-27,"'Q":-27,"'S":-10,"'T":32,"'U":-4,"'a":-32,"'c":-43,"'d":-43,"'e":-43,"'f":-5,"'g":-56,"'m":-8,"'n":-8,"'o":-43,"'p":-19,"'q":-43,"'r":-8,"'s":-32,"'z":-10,"(#":-21,"(&":-21,"((":-54,"()":13,"(-":-43,"(:":-43,"(;":-43,"(A":-32,"(C":-21,"(G":-21,"(J":36,"(O":-21,"(Q":-21,"(S":-10,"(U":-10,"([":-54,"(]":13,"(c":-30,"(d":-30,"(e":-30,"(f":-5,"(j":106,"(m":-16,"(n":-16,"(o":-30,"(q":-30,"(r":-16,"(s":-21,"(t":-10,"(u":-23,"(v":-21,"(w":-21,"(x":-10,"(y":16,"(z":-10,"({":-54,"(}":13,"))":-54,"),":-43,").":-43,")A":-31,")T":-21,")U":-21,")V":-53,")W":-43,")X":-21,")Y":-43,")]":-54,")}":-54,"*,":-108,"*.":-108,"*A":-122,"*C":-10,"*G":-10,"*J":-21,"*O":-10,"*Q":-10,"*T":23,"*X":-7,"*a":-41,"*c":-27,"*d":-27,"*e":-27,"*f":-8,"*g":-46,"*m":-7,"*n":-7,"*o":-27,"*p":-10,"*q":-27,"*r":-7,"*s":-25,"*z":-14,',"':-86,",'":-86,",(":-54,",)":-48,",*":-141,",-":-43,",C":-59,",G":-59,",O":-59,",Q":-59,",T":-86,",U":-65,",V":-144,",W":-128,",Y":-127,",[":-54,",\\":-141,",]":-48,",a":-21,",c":-32,",d":-32,",e":-32,",g":-21,",j":8,",o":-32,",p":-32,",q":-32,",s":-16,",t":-43,",u":-45,",v":-97,",w":-97,",y":-43,",z":-21,",{":-54,",}":-48,"-)":-43,"-,":-53,"-.":-53,"-/":-32,"-A":-32,"-C":10,"-G":10,"-J":-21,"-M":-10,"-N":-10,"-O":10,"-Q":10,"-T":-44,"-U":-10,"-V":-85,"-W":-75,"-X":-43,"-Y":-76,"-Z":-10,"-\\":-43,"-]":-43,"-b":-3,"-c":10,"-d":10,"-e":10,"-f":-7,"-g":5,"-h":-3,"-k":-3,"-l":-3,"-o":10,"-q":10,"-v":-7,"-w":-7,"-x":-21,"-y":-8,"-}":-43,'."':-86,".'":-86,".(":-54,".)":-48,".*":-141,".-":-43,".C":-59,".G":-59,".O":-59,".Q":-59,".T":-86,".U":-65,".V":-144,".W":-128,".Y":-127,".[":-54,".\\":-141,".]":-48,".a":-21,".c":-32,".d":-32,".e":-32,".g":-21,".j":8,".o":-32,".p":-32,".q":-32,".s":-16,".t":-43,".u":-45,".v":-97,".w":-97,".y":-43,".z":-21,".{":-54,".}":-48,"/#":-21,"/,":-148,"/-":-65,"/.":-148,"//":-82,"/A":-76,"/T":5,"/V":13,"/W":13,"/a":-35,"/c":-32,"/d":-32,"/e":-32,"/g":-35,"/m":-19,"/n":-19,"/o":-32,"/p":-19,"/q":-32,"/r":-19,"/s":-21,"/u":-14,"/x":-10,"/z":-21,":T":-5,":U":-10,":V":-32,":W":-32,":X":-7,":Y":-54,":c":-3,":d":-3,":e":-3,":o":-3,":q":-3,";T":-5,";U":-10,";V":-32,";W":-32,";X":-7,";Y":-54,";c":-3,";d":-3,";e":-3,";o":-3,";q":-3,"?)":-33,"?,":-121,"?.":-121,"?/":-76,"?]":-33,"?}":-33,"@,":-16,"@.":-16,"@A":-6,"@C":5,"@G":5,"@O":5,"@Q":5,"@V":-3,"@W":-3,"@X":-3,"@Y":-5,"@_":-86,"@b":-13,"@f":-5,"@g":-10,"@h":-13,"@k":-13,"@l":-13,"@p":-8,"@y":5,'A"':-122,"A'":-122,"A(":-20,"A)":-32,"A*":-117,"A-":-34,AA:10,AB:-10,AC:-38,AD:-10,AE:-10,AF:-10,AG:-38,AH:-10,AI:-10,AJ:-13,AK:-10,AL:-10,AM:-7,AN:-7,AO:-38,AP:-10,AQ:-38,AR:-10,AT:-63,AU:-72,AV:-132,AW:-108,AY:-97,"A[":-20,"A\\":-65,"A]":-32,Aa:-4,Ac:-19,Ad:-19,Ae:-19,Ag:-3,Aj:-8,Ao:-19,Ap:-30,Aq:-19,At:-21,Au:-21,Av:-57,Aw:-57,Ay:-48,"A{":-20,"A}":-32,'B"':-21,"B'":-21,"B)":-16,"B*":-10,"B,":-29,"B.":-29,"B/":-19,BA:-32,BB:-27,BC:-7,BD:-27,BE:-27,BF:-27,BG:-7,BH:-27,BI:-27,BJ:-11,BK:-27,BL:-27,BM:-16,BN:-16,BO:-7,BP:-27,BQ:-7,BR:-27,BT:-21,BU:-32,BV:-54,BW:-40,BX:-32,BY:-54,BZ:-7,"B\\":-16,"B]":-16,B_:-27,Bb:-10,Bf:-16,Bh:-10,Bk:-10,Bl:-10,Bp:-10,Bu:-16,Bv:-18,Bw:-18,Bx:-10,By:-8,"B}":-16,'C"':21,"C'":21,"C)":3,"C*":3,"C@":5,CU:-10,CV:-10,CW:-10,CY:-21,"C]":3,C_:-7,Cp:-10,Cu:-10,"C}":3,'D"':-3,"D'":-3,"D)":-21,"D,":-45,"D-":3,"D.":-45,"D/":-30,"D@":16,DA:-57,DB:-28,DC:10,DD:-28,DE:-28,DF:-28,DG:10,DH:-28,DI:-28,DJ:-10,DK:-28,DL:-28,DM:-21,DN:-21,DO:10,DP:-28,DQ:10,DR:-28,DT:-19,DU:-21,DV:-48,DW:-51,DX:-43,DY:-65,DZ:-8,"D\\":-16,"D]":-21,D_:-76,Db:-10,Dg:-10,Dh:-10,Dk:-10,Dl:-10,Dp:-10,Ds:-10,Dx:-10,"D}":-21,EU:-15,EV:-15,EW:-15,EY:-15,Eg:-7,Ep:-19,Eu:-10,Ev:-19,Ew:-19,Ey:-21,'F"':13,"F&":-8,"F'":13,"F(":-10,"F*":10,"F,":-103,"F-":-21,"F.":-103,"F/":-65,"F:":-5,"F;":-5,"F@":-22,FA:-77,FB:-10,FC:-9,FD:-10,FE:-10,FF:-10,FG:-9,FH:-10,FI:-10,FK:-10,FL:-10,FO:-9,FP:-10,FQ:-9,FR:-10,FT:10,"F[":-10,"F\\":14,F_:-130,Fa:-43,Fb:-3,Fc:-46,Fd:-46,Fe:-46,Ff:-30,Fg:-67,Fh:-3,Fi:-8,Fk:-3,Fl:-3,Fm:-21,Fn:-21,Fo:-46,Fp:-43,Fq:-46,Fr:-21,Fs:-47,Fu:-21,Fv:-21,Fw:-21,Fx:-32,Fy:-21,Fz:-32,"F{":-10,"G(":10,"G)":-5,"G,":-8,"G-":23,"G.":-8,"G/":-16,"G@":13,GA:-10,GB:-8,GC:10,GD:-8,GE:-8,GF:-8,GG:10,GH:-8,GI:-8,GK:-8,GL:-8,GO:10,GP:-8,GQ:10,GR:-8,GT:-8,GU:-15,GV:-38,GW:-38,GX:-19,GY:-48,GZ:-8,"G[":10,"G]":-5,G_:-41,Gp:-10,"G{":10,"G}":-5,HC:-23,HG:-23,HO:-23,HQ:-23,Ha:-21,Hc:-25,Hd:-25,He:-25,Hf:-18,Hg:-18,Ho:-25,Hp:-34,Hq:-25,Hs:-21,Ht:-10,Hu:-25,Hv:-40,Hw:-40,Hy:-30,IC:-23,IG:-23,IO:-23,IQ:-23,Ia:-21,Ic:-25,Id:-25,Ie:-25,If:-18,Ig:-18,Io:-25,Ip:-34,Iq:-25,Is:-21,It:-10,Iu:-25,Iv:-40,Iw:-40,Iy:-30,"J,":-57,"J-":-10,"J.":-57,"J/":-30,"J:":-23,"J;":-23,"J@":-14,JA:-41,JC:-10,JG:-10,JO:-10,JQ:-10,JS:-8,J_:-79,Ja:-26,Jc:-25,Jd:-25,Je:-25,Jf:-40,Jg:-32,Ji:-8,Jj:-8,Jm:-27,Jn:-27,Jo:-25,Jp:-41,Jq:-25,Jr:-27,Js:-30,Jt:-19,Ju:-32,Jv:-32,Jw:-32,Jx:-21,Jy:-30,Jz:-21,"K-":-32,KA:10,KC:-30,KG:-30,KJ:-16,KO:-30,KQ:-30,KU:-10,KV:-8,KW:-8,KY:-10,KZ:8,Ka:-8,Kc:-21,Kd:-21,Ke:-21,Kg:-10,Ko:-21,Kp:-30,Kq:-21,Kt:-21,Ku:-21,Kv:-59,Kw:-59,Ky:-52,'L"':-141,"L'":-141,"L)":-27,"L*":-108,LB:-18,LC:-16,LD:-18,LE:-18,LF:-18,LG:-16,LH:-18,LI:-18,LJ:-18,LK:-18,LL:-18,LM:-7,LN:-7,LO:-16,LP:-18,LQ:-16,LR:-18,LS:-16,LT:-77,LU:-48,LV:-117,LW:-101,LX:-16,LY:-108,LZ:-16,"L\\":-59,"L]":-27,Lf:-7,Lp:-18,Lt:-8,Lu:-22,Lv:-41,Lw:-41,Ly:-32,"L}":-27,MC:-23,MG:-23,MO:-23,MQ:-23,Ma:-21,Mc:-25,Md:-25,Me:-25,Mf:-18,Mg:-18,Mo:-25,Mp:-34,Mq:-25,Ms:-21,Mt:-10,Mu:-25,Mv:-40,Mw:-40,My:-30,"N,":-32,"N-":-3,"N.":-32,"N/":-33,"N:":-14,"N;":-14,NA:-39,NB:-8,NC:-17,ND:-8,NE:-8,NF:-8,NG:-17,NH:-8,NI:-8,NK:-8,NL:-8,NO:-17,NP:-8,NQ:-17,NR:-8,NS:-8,NU:-10,NX:-10,NZ:-3,N_:-59,Na:-14,Nc:-11,Nd:-11,Ne:-11,Nf:-21,Ng:-21,Nm:-10,Nn:-10,No:-11,Np:-22,Nq:-11,Nr:-10,Ns:-11,Nt:-10,Nu:-21,Nv:-21,Nw:-21,Nx:-19,Ny:-21,Nz:-21,'O"':-27,"O'":-27,"O)":-21,"O*":-10,"O,":-43,"O-":10,"O.":-43,"O/":-21,"O@":21,OA:-38,OB:-23,OC:10,OD:-23,OE:-23,OF:-23,OG:10,OH:-23,OI:-23,OJ:-8,OK:-23,OL:-23,OM:-16,ON:-16,OO:10,OP:-23,OQ:10,OR:-23,OT:-8,OU:-19,OV:-38,OW:-29,OX:-32,OY:-43,"O\\":-7,"O]":-21,O_:-59,"O}":-21,'P"':10,"P&":-6,"P'":10,"P)":-9,"P*":23,"P,":-111,"P-":-5,"P.":-111,"P/":-54,"P:":8,"P;":8,PA:-66,PB:-10,PD:-10,PE:-10,PF:-10,PH:-10,PI:-10,PJ:-10,PK:-10,PL:-10,PP:-10,PR:-10,PS:7,PT:10,PU:-21,PV:-10,PW:-10,PX:-21,PY:-23,PZ:10,"P\\":10,"P]":-9,P_:-155,Pa:-5,Pb:-3,Pc:-21,Pd:-21,Pe:-21,Pg:-21,Ph:-3,Pk:-3,Pl:-3,Pm:-7,Pn:-7,Po:-21,Pq:-21,Pr:-7,Ps:-3,Pt:16,Pv:8,Pw:8,Py:16,"P}":-9,'Q"':-27,"Q'":-27,"Q)":-21,"Q*":-10,"Q,":-43,"Q-":10,"Q.":-43,"Q/":-21,"Q@":21,QA:-38,QB:-23,QC:10,QD:-23,QE:-23,QF:-23,QG:10,QH:-23,QI:-23,QJ:-8,QK:-23,QL:-23,QM:-16,QN:-16,QO:10,QP:-23,QQ:10,QR:-23,QT:-8,QU:-19,QV:-38,QW:-29,QX:-32,QY:-43,"Q\\":-7,"Q]":-21,Q_:-59,"Q}":-21,'R"':-43,"R'":-43,"R*":-14,"R-":-16,RA:10,RC:-20,RG:-20,RJ:-10,RO:-20,RQ:-20,RT:-32,RU:-35,RV:-59,RW:-52,RX:7,RY:-52,RZ:7,"R\\":-21,R_:18,Rc:-10,Rd:-10,Re:-10,Ro:-10,Rp:-14,Rq:-10,Rt:-10,Ru:-14,Rv:-21,Rw:-21,Ry:-21,"S)":-10,"S,":-21,"S.":-21,"S/":-16,"S@":5,SA:-19,SB:-7,SD:-7,SE:-7,SF:-7,SH:-7,SI:-7,SJ:-8,SK:-7,SL:-7,SM:-7,SN:-7,SP:-7,SR:-7,SS:-8,ST:-10,SU:-27,SV:-29,SW:-27,SX:-10,SY:-32,"S]":-10,S_:-43,Sb:-7,Sf:-16,Sg:-7,Sh:-7,Sk:-7,Sl:-7,Sp:-10,St:-10,Su:-10,Sv:-19,Sw:-19,Sx:-8,Sy:-19,"S}":-10,'T"':32,"T'":32,"T(":-21,"T*":23,"T,":-86,"T-":-44,"T.":-86,"T/":-50,"T:":-5,"T;":-5,"T@":-21,TA:-70,TC:-8,TG:-8,TO:-8,TQ:-8,TT:10,TU:-10,TX:-3,TZ:7,"T[":-21,"T\\":27,T_:-88,Ta:-43,Tc:-73,Td:-73,Te:-73,Tf:-10,Tg:-43,Tm:-32,Tn:-32,To:-73,Tp:-72,Tq:-73,Tr:-32,Ts:-54,Tu:-30,Tv:-43,Tw:-43,Tx:-38,Ty:-43,Tz:-65,"T{":-21,"U&":-14,"U(":-21,"U)":-10,"U,":-86,"U-":-14,"U.":-86,"U/":-60,"U:":-14,"U;":-14,UA:-79,UB:-21,UC:-28,UD:-21,UE:-21,UF:-21,UG:-28,UH:-21,UI:-21,UJ:-15,UK:-21,UL:-21,UM:-10,UN:-10,UO:-28,UP:-21,UQ:-28,UR:-21,US:-19,UT:-10,UU:-21,UV:-18,UW:-7,UX:-10,UZ:-9,"U[":-21,"U]":-10,U_:-90,Ua:-43,Ub:-7,Uc:-32,Ud:-32,Ue:-32,Uf:-21,Ug:-43,Uh:-7,Ui:-19,Uj:-8,Uk:-7,Ul:-7,Um:-27,Un:-27,Uo:-32,Up:-46,Uq:-32,Ur:-27,Us:-43,Ut:-21,Uu:-32,Uv:-25,Uw:-25,Ux:-35,Uy:-32,Uz:-38,"U{":-21,"U}":-10,"V&":-42,"V(":-54,"V,":-166,"V-":-80,"V.":-166,"V/":-95,"V:":-43,"V;":-43,"V@":-52,VA:-122,VC:-48,VG:-48,VO:-48,VQ:-48,VS:-21,VU:-10,VZ:-10,"V[":-54,"V\\":13,V_:-171,Va:-86,Vb:-5,Vc:-79,Vd:-79,Ve:-79,Vf:-54,Vg:-90,Vh:-5,Vi:-30,Vj:-21,Vk:-5,Vl:-5,Vm:-63,Vn:-63,Vo:-79,Vp:-78,Vq:-79,Vr:-63,Vs:-92,Vt:-32,Vu:-65,Vv:-43,Vw:-43,Vx:-76,Vy:-65,Vz:-68,"V{":-54,"W&":-33,"W(":-43,"W,":-133,"W-":-70,"W.":-133,"W/":-97,"W:":-43,"W;":-43,"W@":-52,WA:-114,WC:-41,WG:-41,WM:-7,WN:-7,WO:-41,WQ:-41,WS:-21,WU:-10,WZ:-10,"W[":-43,"W\\":13,W_:-142,Wa:-79,Wb:-5,Wc:-81,Wd:-81,We:-81,Wf:-43,Wg:-90,Wh:-5,Wi:-21,Wj:-21,Wk:-5,Wl:-5,Wm:-54,Wn:-54,Wo:-81,Wp:-76,Wq:-81,Wr:-54,Ws:-78,Wt:-28,Wu:-59,Wv:-46,Ww:-46,Wx:-59,Wy:-46,Wz:-68,"W{":-43,"X(":-21,"X*":-7,"X-":-46,"X:":-7,"X;":-7,XC:-32,XG:-32,XO:-32,XQ:-32,XT:-10,XU:-10,XZ:7,"X[":-21,Xa:-3,Xc:-33,Xd:-33,Xe:-33,Xj:-16,Xo:-33,Xp:-34,Xq:-33,Xs:-10,Xt:-32,Xu:-43,Xv:-70,Xw:-70,Xy:-52,"X{":-21,"Y&":-41,"Y(":-54,"Y,":-113,"Y-":-86,"Y.":-113,"Y/":-97,"Y:":-65,"Y;":-65,"Y@":-52,YA:-96,YC:-54,YG:-54,YO:-54,YQ:-54,YS:-43,"Y[":-54,"Y\\":14,Y_:-119,Ya:-84,Yb:-5,Yc:-100,Yd:-100,Ye:-100,Yf:-65,Yg:-104,Yh:-5,Yi:-43,Yj:-27,Yk:-5,Yl:-5,Ym:-72,Yn:-72,Yo:-100,Yp:-97,Yq:-100,Yr:-72,Ys:-89,Yt:-65,Yu:-89,Yv:-76,Yw:-76,Yx:-68,Yy:-76,Yz:-92,"Y{":-54,"Z@":5,ZC:-7,ZG:-7,ZO:-7,ZQ:-7,ZT:-10,ZU:-20,ZV:-10,ZW:-10,ZY:-10,Zp:-10,Zu:-14,Zv:-27,Zw:-27,Zy:-27,"[#":-21,"[&":-21,"[(":-54,"[)":13,"[-":-43,"[:":-43,"[;":-43,"[A":-32,"[C":-21,"[G":-21,"[J":36,"[O":-21,"[Q":-21,"[S":-10,"[U":-10,"[[":-54,"[]":13,"[c":-30,"[d":-30,"[e":-30,"[f":-5,"[j":106,"[m":-16,"[n":-16,"[o":-30,"[q":-30,"[r":-16,"[s":-21,"[t":-10,"[u":-23,"[v":-21,"[w":-21,"[x":-10,"[y":16,"[z":-10,"[{":-54,"[}":13,'\\"':-86,"\\'":-86,"\\,":16,"\\-":-21,"\\.":16,"\\C":-32,"\\G":-32,"\\J":76,"\\O":-32,"\\Q":-32,"\\T":-65,"\\U":-57,"\\V":-103,"\\W":-90,"\\Y":-86,"\\\\":-82,"\\g":5,"\\j":93,"\\t":-10,"\\u":-5,"\\v":-21,"\\w":-21,"\\y":32,"])":-54,"],":-43,"].":-43,"]A":-31,"]T":-21,"]U":-21,"]V":-53,"]W":-43,"]X":-21,"]Y":-43,"]]":-54,"]}":-54,_C:-59,_G:-59,_J:35,_O:-59,_Q:-59,_S:-21,_T:-88,_U:-108,_V:-163,_W:-152,_Y:-119,_a:-16,_c:-54,_d:-54,_e:-54,_o:-54,_p:-23,_q:-54,_s:-19,_t:-54,_u:-51,_v:-79,_w:-79,_y:-64,'a"':-67,"a'":-67,"a*":-48,"a-":-10,"a?":-3,aA:7,aB:-7,aC:-14,aD:-7,aE:-7,aF:-7,aG:-14,aH:-7,aI:-7,aJ:-19,aK:-7,aL:-7,aO:-14,aP:-7,aQ:-14,aR:-7,aT:-59,aU:-55,aV:-105,aW:-97,aY:-86,"a\\":-46,ag:-8,am:-4,an:-4,ap:-19,ar:-4,av:-19,aw:-19,ay:-10,'b"':-43,"b'":-43,"b)":-14,"b*":-27,"b,":-27,"b-":10,"b.":-27,"b/":-19,"b:":-3,"b;":-3,"b?":-3,bA:-43,bB:-23,bD:-23,bE:-23,bF:-23,bH:-23,bI:-23,bJ:-25,bK:-23,bL:-23,bM:-8,bN:-8,bP:-23,bR:-23,bS:-7,bT:-65,bU:-41,bV:-81,bW:-70,bX:-21,bY:-81,"b\\":-21,"b]":-14,b_:-54,bb:-7,bh:-7,bk:-7,bl:-7,bp:-8,bt:-7,bu:-7,bx:-19,by:-10,"b}":-14,'c"':-5,"c'":-5,"c*":-3,"c,":-3,"c.":-3,cA:-10,cB:-14,cD:-14,cE:-14,cF:-14,cH:-14,cI:-14,cJ:-21,cK:-14,cL:-14,cP:-14,cR:-14,cT:-43,cU:-32,cV:-73,cW:-65,cX:-21,cY:-65,"c\\":-5,c_:-27,cb:-10,ch:-10,ck:-10,cl:-10,cp:-10,'d"':-23,"d&":-13,"d'":-23,"d)":-3,"d*":-21,"d-":-5,"d?":-5,dJ:-3,dT:-23,dU:-26,dV:-43,dW:-38,dY:-45,"d\\":-5,"d]":-3,da:-8,dg:-8,dp:-18,du:-10,dv:-10,dw:-10,dy:-10,"d}":-3,'e"':-21,"e'":-21,"e)":-16,"e*":-21,"e,":-29,"e.":-29,"e/":-8,"e?":-3,eA:-19,eB:-10,eD:-10,eE:-10,eF:-10,eH:-10,eI:-10,eJ:-21,eK:-10,eL:-10,eP:-10,eR:-10,eT:-52,eU:-32,eV:-71,eW:-63,eX:-21,eY:-77,"e\\":-21,"e]":-16,e_:-43,ea:-7,eb:-10,ef:-7,eh:-10,ek:-10,el:-10,ep:-8,ev:-7,ew:-7,ey:-7,"e}":-16,"f!":41,'f"':84,"f'":84,"f)":97,"f*":57,"f,":-38,"f-":-13,"f.":-38,"f/":-18,"f?":39,fA:-7,fB:18,fD:18,fE:18,fF:18,fH:18,fI:18,fJ:26,fK:18,fL:18,fM:42,fN:42,fP:18,fR:18,fS:25,fT:58,fU:42,fV:58,fW:58,fX:51,fY:58,fZ:42,"f\\":104,"f]":97,f_:-23,fb:-10,fc:-17,fd:-17,fe:-17,fg:-5,fh:-10,fi:25,fj:25,fk:-10,fl:-10,fo:-17,fq:-17,fu:-10,fv:10,fw:10,fy:10,"f}":97,"g&":-21,"g-":-3,"g/":14,"g?":-5,gB:-7,gD:-7,gE:-7,gF:-7,gH:-7,gI:-7,gJ:52,gK:-7,gL:-7,gM:-5,gN:-5,gP:-7,gR:-7,gT:-27,gU:-34,gV:-43,gW:-43,gY:-72,"g\\":-16,ga:-19,gb:-13,gc:-8,gd:-8,ge:-8,gg:-8,gh:-13,gj:20,gk:-13,gl:-13,go:-8,gq:-8,gv:4,gw:4,gy:9,'h"':-59,"h'":-59,"h)":-14,"h*":-72,"h?":-7,hB:-5,hC:-3,hD:-5,hE:-5,hF:-5,hG:-3,hH:-5,hI:-5,hJ:-21,hK:-5,hL:-5,hO:-3,hP:-5,hQ:-3,hR:-5,hT:-63,hU:-35,hV:-92,hW:-84,hY:-76,"h\\":-54,"h]":-14,hp:-15,ht:-4,hu:-4,hv:-27,hw:-27,hy:-27,"h}":-14,"i!":-5,'i"':-7,"i&":-5,"i'":-7,"i*":-5,"i?":-7,iB:-5,iD:-5,iE:-5,iF:-5,iH:-5,iI:-5,iK:-5,iL:-5,iP:-5,iR:-5,iT:-21,iU:-21,iV:-21,iW:-21,iY:-21,ip:-11,iv:-15,iw:-15,iy:-15,'j"':-5,"j&":-5,"j'":-5,"j*":-5,"j,":-16,"j.":-16,"j/":-13,"j:":-14,"j;":-14,"j?":-3,jA:-14,jB:-7,jC:-3,jD:-7,jE:-7,jF:-7,jG:-3,jH:-7,jI:-7,jK:-7,jL:-7,jO:-3,jP:-7,jQ:-3,jR:-7,jU:-26,jV:-18,jW:-18,jX:-10,jY:-21,j_:-35,jb:-3,jg:-10,jh:-3,jk:-3,jl:-3,jp:-3,"k)":-10,"k*":-3,"k-":-21,"k:":-3,"k;":-3,"k?":-5,kA:16,kB:-5,kC:-4,kD:-5,kE:-5,kF:-5,kG:-4,kH:-5,kI:-5,kJ:-21,kK:-5,kL:-5,kO:-4,kP:-5,kQ:-4,kR:-5,kT:-43,kU:-43,kV:-72,kW:-59,kX:5,kY:-76,kZ:8,"k\\":-3,"k]":-10,kc:-19,kd:-19,ke:-19,ko:-19,kp:-10,kq:-19,ks:-7,"k}":-10,'l"':-23,"l&":-13,"l'":-23,"l)":-3,"l*":-21,"l-":-5,"l?":-5,lJ:-3,lT:-23,lU:-26,lV:-43,lW:-38,lY:-45,"l\\":-5,"l]":-3,la:-8,lg:-8,lp:-18,lu:-10,lv:-10,lw:-10,ly:-10,"l}":-3,'m"':-59,"m'":-59,"m)":-14,"m*":-72,"m?":-7,mB:-5,mC:-3,mD:-5,mE:-5,mF:-5,mG:-3,mH:-5,mI:-5,mJ:-21,mK:-5,mL:-5,mO:-3,mP:-5,mQ:-3,mR:-5,mT:-63,mU:-35,mV:-92,mW:-84,mY:-76,"m\\":-54,"m]":-14,mp:-15,mt:-4,mu:-4,mv:-27,mw:-27,my:-27,"m}":-14,'n"':-59,"n'":-59,"n)":-14,"n*":-72,"n?":-7,nB:-5,nC:-3,nD:-5,nE:-5,nF:-5,nG:-3,nH:-5,nI:-5,nJ:-21,nK:-5,nL:-5,nO:-3,nP:-5,nQ:-3,nR:-5,nT:-63,nU:-35,nV:-92,nW:-84,nY:-76,"n\\":-54,"n]":-14,np:-15,nt:-4,nu:-4,nv:-27,nw:-27,ny:-27,"n}":-14,'o"':-43,"o'":-43,"o)":-14,"o*":-27,"o,":-27,"o-":10,"o.":-27,"o/":-19,"o:":-3,"o;":-3,"o?":-3,oA:-43,oB:-23,oD:-23,oE:-23,oF:-23,oH:-23,oI:-23,oJ:-25,oK:-23,oL:-23,oM:-8,oN:-8,oP:-23,oR:-23,oS:-7,oT:-65,oU:-41,oV:-81,oW:-70,oX:-21,oY:-81,"o\\":-21,"o]":-14,o_:-54,ob:-7,oh:-7,ok:-7,ol:-7,op:-8,ot:-7,ou:-7,ox:-19,oy:-10,"o}":-14,'p"':-43,"p'":-43,"p)":-14,"p*":-27,"p,":-27,"p-":10,"p.":-27,"p/":-19,"p:":-3,"p;":-3,"p?":-3,pA:-43,pB:-23,pD:-23,pE:-23,pF:-23,pH:-23,pI:-23,pJ:-25,pK:-23,pL:-23,pM:-8,pN:-8,pP:-23,pR:-23,pS:-7,pT:-65,pU:-41,pV:-81,pW:-70,pX:-21,pY:-81,"p\\":-21,"p]":-14,p_:-54,pb:-7,ph:-7,pk:-7,pl:-7,pp:-8,pt:-7,pu:-7,px:-19,py:-10,"p}":-14,'q"':-25,"q&":-3,"q'":-25,"q)":10,"q*":-23,"q,":32,"q.":13,"q/":10,"q;":33,"q?":-3,qA:-14,qB:-23,qD:-23,qE:-23,qF:-23,qH:-23,qI:-23,qJ:33,qK:-23,qL:-23,qM:-16,qN:-16,qP:-23,qR:-23,qT:-54,qU:-45,qV:-86,qW:-72,qX:-5,qY:-86,"q\\":-14,"q]":10,q_:-3,qa:-8,qb:-7,qh:-7,qj:39,qk:-7,ql:-7,qy:19,"q}":10,'r"':5,"r&":-11,"r'":5,"r)":-25,"r*":16,"r,":-93,"r-":-32,"r.":-93,"r/":-52,"r:":-8,"r;":-8,"r?":-5,"r@":-13,rA:-60,rB:-25,rD:-25,rE:-25,rF:-25,rH:-25,rI:-25,rJ:-30,rK:-25,rL:-25,rM:-16,rN:-16,rP:-25,rR:-25,rT:-5,rU:-30,rV:-51,rW:-43,rX:-59,rY:-52,"r]":-25,r_:-71,ra:-10,rb:-10,rc:-14,rd:-14,re:-14,rg:-14,rh:-10,rk:-10,rl:-10,ro:-14,rq:-14,rs:-8,rt:18,rv:10,rw:10,ry:10,"r}":-25,'s"':-21,"s'":-21,"s)":-14,"s*":-14,"s,":-23,"s.":-23,sA:-10,sB:-21,sD:-21,sE:-21,sF:-21,sH:-21,sI:-21,sJ:-27,sK:-21,sL:-21,sM:-10,sN:-10,sP:-21,sR:-21,sT:-35,sU:-25,sV:-76,sW:-65,sY:-94,"s\\":-25,"s]":-14,s_:-41,sb:-10,sf:-4,sh:-10,sk:-10,sl:-10,sp:-9,"s}":-14,'t"':5,"t'":5,"t-":-10,tA:16,tJ:-10,tU:-13,tV:-43,tW:-32,tY:-48,tZ:7,t_:13,tt:7,tv:8,tw:8,'u"':-40,"u'":-40,"u)":-23,"u*":-38,"u:":-10,"u;":-10,uC:-13,uG:-13,uJ:-29,uO:-13,uQ:-13,uT:-41,uU:-40,uV:-83,uW:-76,uY:-78,"u\\":-21,"u]":-23,uc:-7,ud:-7,ue:-7,ug:-10,uj:-7,uo:-7,up:-11,uq:-7,uv:-21,uw:-21,uy:-21,"u}":-23,'v"':-3,"v&":-17,"v'":-3,"v)":-36,"v*":-3,"v,":-101,"v-":-14,"v.":-101,"v/":-43,"v:":-3,"v;":-3,"v?":-5,"v@":-8,vA:-71,vB:-27,vD:-27,vE:-27,vF:-27,vH:-27,vI:-27,vJ:-41,vK:-27,vL:-27,vM:-21,vN:-21,vP:-27,vR:-27,vT:-14,vU:-25,vV:-54,vW:-45,vX:-54,vY:-59,vZ:-6,"v]":-36,v_:-84,va:-15,vb:-23,vc:-19,vd:-19,ve:-19,vg:-19,vh:-23,vk:-23,vl:-23,vo:-19,vq:-19,vs:-9,vt:7,vv:11,vw:11,vy:11,"v}":-36,'w"':-3,"w&":-17,"w'":-3,"w)":-36,"w*":-3,"w,":-101,"w-":-14,"w.":-101,"w/":-43,"w:":-3,"w;":-3,"w?":-5,"w@":-8,wA:-71,wB:-27,wD:-27,wE:-27,wF:-27,wH:-27,wI:-27,wJ:-41,wK:-27,wL:-27,wM:-21,wN:-21,wP:-27,wR:-27,wT:-14,wU:-25,wV:-54,wW:-45,wX:-54,wY:-59,wZ:-6,"w]":-36,w_:-84,wa:-15,wb:-23,wc:-19,wd:-19,we:-19,wg:-19,wh:-23,wk:-23,wl:-23,wo:-19,wq:-19,ws:-9,wt:7,wv:11,ww:11,wy:11,"w}":-36,"x)":-14,"x-":-25,xA:7,xC:-8,xG:-8,xJ:-19,xO:-8,xQ:-8,xT:-30,xU:-32,xV:-76,xW:-54,xY:-68,"x]":-14,xa:-11,xc:-19,xd:-19,xe:-19,xg:-8,xo:-19,xp:-19,xq:-19,xx:5,"x}":-14,'y"':-3,"y&":-17,"y'":-3,"y)":-36,"y*":-3,"y,":-101,"y-":-14,"y.":-101,"y/":-43,"y:":-3,"y;":-3,"y?":-5,"y@":-8,yA:-71,yB:-27,yD:-27,yE:-27,yF:-27,yH:-27,yI:-27,yJ:-41,yK:-27,yL:-27,yM:-21,yN:-21,yP:-27,yR:-27,yT:-14,yU:-25,yV:-54,yW:-45,yX:-54,yY:-59,yZ:-6,"y]":-36,y_:-84,ya:-15,yb:-23,yc:-19,yd:-19,ye:-19,yg:-19,yh:-23,yk:-23,yl:-23,yo:-19,yq:-19,ys:-9,yt:7,yv:11,yw:11,yy:11,"y}":-36,"z)":-10,"z*":-5,zT:-16,zU:-27,zV:-65,zW:-56,zY:-61,"z]":-10,zp:-8,"z}":-10,"{#":-21,"{&":-21,"{(":-54,"{)":13,"{-":-43,"{:":-43,"{;":-43,"{A":-32,"{C":-21,"{G":-21,"{J":36,"{O":-21,"{Q":-21,"{S":-10,"{U":-10,"{[":-54,"{]":13,"{c":-30,"{d":-30,"{e":-30,"{f":-5,"{j":106,"{m":-16,"{n":-16,"{o":-30,"{q":-30,"{r":-16,"{s":-21,"{t":-10,"{u":-23,"{v":-21,"{w":-21,"{x":-10,"{y":16,"{z":-10,"{{":-54,"{}":13,"})":-54,"},":-43,"}.":-43,"}A":-31,"}T":-21,"}U":-21,"}V":-53,"}W":-43,"}X":-21,"}Y":-43,"}]":-54,"}}":-54}}},Ml=new Set;let kl,Cl=null;function jl(t="",e){var n;if(e.width&&e.height)return{width:e.width,height:e.height};if("string"!=typeof t&&"number"!=typeof t)return{width:0,height:0};const{fontFamily:r=xs,fontSize:i=14,fontWeight:o="normal",lineHeight:s=1.4}=e,a=t.toString();!function(t){var e,n;const r=null===(n=null===(e=ns(t))||void 0===e?void 0:e.split(",")[0])||void 0===n?void 0:n.trim();if(!r||Ml.has(r))return;const i=_l[r];i&&(us(i),Ml.add(r))}(r);const l={fontFamily:r,fontSize:parseFloat(i.toString()),fontWeight:o,lineHeight:s},c=null!==(n=function(t,{fontFamily:e,fontSize:n,fontWeight:r,lineHeight:i}){const o=t.split(/\r?\n/),s=rs(e),a=r||"normal",l=function(t,e){if(null==e)return 1.4*t;if("string"==typeof e){const n=e.trim();if(n.endsWith("px")){const e=Number.parseFloat(n);return Number.isFinite(e)?e:1.4*t}e=Number(n)}return"number"==typeof e&&Number.isFinite(e)?e>4?e:e*t:1.4*t}(n,i),c=function(){if("undefined"==typeof document)return null;if(void 0!==kl)return kl;const t=document.createElement("canvas");return kl=t.getContext("2d"),kl}();if(c){c.font=`${a} ${n}px ${s}`;const t=o.reduce((t,e)=>{const n=c.measureText(e);return Math.max(t,n.width)},0);return{width:t,height:l*Math.max(o.length,1)}}const h="undefined"==typeof document?null:document.body?Cl||(Cl=document.createElement("span"),Cl.style.position="absolute",Cl.style.top="-10000px",Cl.style.left="-10000px",Cl.style.visibility="hidden",Cl.style.pointerEvents="none",Cl.style.whiteSpace="pre",Cl.style.display="inline-block",Cl.style.padding="0",Cl.style.margin="0",document.body.appendChild(Cl),Cl):null;if(!h)return null;h.style.fontFamily=s,h.style.fontSize=`${n}px`,h.style.fontWeight=String(a),h.style.lineHeight=`${l}px`,h.textContent=t;const u=h.getBoundingClientRect();return t&&u.width<=0&&u.height<=0?null:{width:u.width,height:u.height}}(a,l))&&void 0!==n?n:fs(a,Object.assign(Object.assign({},l),{fontFamily:ns(r)}));return{width:Math.ceil(1.015*c.width),height:Math.ceil(1.015*c.height)}}function Ol(t,e={}){const n=document.createElementNS("http://www.w3.org/2000/svg",t);return El(n,e),n}function Al(t){const e=(new DOMParser).parseFromString(t,"image/svg+xml");if(e.querySelector("parsererror"))throw new Error("Invalid SVG string");return e.documentElement}function El(t,e){Object.entries(e).forEach(([e,n])=>{null==n?t.removeAttribute(e):t.setAttribute(e,n)})}function Sl(t,e,n=!0){return e.reduce((e,r)=>{const i=t.getAttribute(r);return(!n||null!==i&&""!==i&&void 0!==i)&&(e[r]=i),e},{})}function $l(t,e){!1!==e(t)&&Array.from(t.children).forEach(t=>{$l(t,e)})}function zl(t,e="infographic-defs"){const n=t.querySelector(e?`defs#${e}`:"defs");if(n)return n;const r=Ol("defs");return e&&(r.id=e),t.prepend(r),r}function Pl(t){return nc(t)?t.querySelector("span"):null}function Ll(t,e){const{textContent:n,attributes:r}=e;if(void 0!==n&&Il(t,n),!r)return;const i=Pl(t);let{width:o,height:s}=r;const a={};if(i){if(Object.assign(i.style,function(t){const{"font-size":e,"letter-spacing":n,"line-height":r,fill:i,"stroke-width":o,"font-family":s}=t,a=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["x","y","width","height","data-horizontal-align","data-vertical-align","font-size","letter-spacing","line-height","fill","stroke-width","text-anchor","dominant-baseline","font-family"]),l={overflow:"visible"};return i&&(l.color=i),Object.entries(a).forEach(([t,e])=>{l[Qo(t)]=e}),e&&(l.fontSize=`${e}px`),r&&(l.lineHeight="string"==typeof r&&r.endsWith("px")?r:+r),n&&(l.letterSpacing=`${n}px`),o&&(l.strokeWidth=`${o}px`),s&&(l.fontFamily=rs(s)),l}(r)),!o||!s){const e=null!=n?n:Tl(t),{fontFamily:r,fontSize:a,fontWeight:l,lineHeight:c}=i.style,h=a?parseFloat(String(a)):12,u=jl(e,{fontFamily:r,fontSize:h,fontWeight:l,lineHeight:c.endsWith("px")?parseFloat(c):(parseFloat(c)||1.4)*h});o||t.hasAttribute("width")||(o=String(u.width)),s||t.hasAttribute("height")||(s=String(u.height))}const{"data-horizontal-align":e,"data-vertical-align":a}=r;Object.assign(i.style,function(t,e){const n={width:"100%",height:"100%",display:"flex",flexWrap:"wrap",wordBreak:"break-word",whiteSpace:"pre-wrap"};switch(t){case"LEFT":n.textAlign="left",n.justifyContent="flex-start";break;case"CENTER":n.textAlign="center",n.justifyContent="center";break;case"RIGHT":n.textAlign="right",n.justifyContent="flex-end"}switch(e){case"TOP":n.alignContent="flex-start",n.alignItems="flex-start";break;case"MIDDLE":n.alignContent="center",n.alignItems="center";break;case"BOTTOM":n.alignContent="flex-end",n.alignItems="flex-end"}return n}(e,a))}const{id:l,x:c,y:h}=r;l&&(a.id=l),void 0!==c&&(a.x=String(c)),void 0!==h&&(a.y=String(h)),void 0!==o&&(a.width=String(o)),void 0!==s&&(a.height=String(s)),El(t,a)}function Tl(t){const e=Pl(t);return e&&(e.innerText||e.textContent)||""}function Il(t,e){const n=Pl(t);if(n)try{n.innerText=e}catch(t){n.textContent=e}}function Rl(t){const e=Pl(t);if(!e)return{};const{color:n,fontSize:r,fontFamily:i,justifyContent:o,alignContent:s,fontWeight:a}=e.style,[l,c]=function(t,e){let n="LEFT",r="TOP";switch(t){case"flex-start":n="LEFT";break;case"center":n="CENTER";break;case"flex-end":n="RIGHT"}switch(e){case"flex-start":r="TOP";break;case"center":r="MIDDLE";break;case"flex-end":r="BOTTOM"}return[n,r]}(o,s),h={"data-horizontal-align":l,"data-vertical-align":c};return i&&(h["font-family"]=ns(i)),a&&(h["font-weight"]=a),r&&(h["font-size"]=String(parseInt(r))),n&&(h.fill=n),{attributes:h,textContent:Tl(t)}}const Nl=(t,e)=>{var n;return(null===(n=null==t?void 0:t.dataset)||void 0===n?void 0:n.elementType)===e},Hl=(t,e)=>t.tagName.toLowerCase()===e.toLowerCase(),Bl=t=>Nl(t,"title"),Wl=t=>Nl(t,"desc"),Fl=t=>Nl(t,"shape"),Dl=t=>Nl(t,"shapes-group"),Vl=t=>Nl(t,"illus"),Ul=t=>t instanceof SVGElement&&Hl(t,"text"),ql=t=>t instanceof SVGElement&&Hl(t,"g"),Yl=t=>Nl(t,"item-icon"),Gl=t=>Nl(t,"item-icon-group"),Xl=t=>Nl(t,"item-label"),Zl=t=>Nl(t,"item-desc"),Kl=t=>Nl(t,"item-value"),Ql=t=>Nl(t,"item-illus"),Jl=t=>Nl(t,"btns-group"),tc=t=>Nl(t,"rough-element"),ec=t=>Nl(t,"rough-volume");function nc(t){return Hl(t,"foreignObject")}function rc(t){const e=cc(t);return["title","desc","item-label","item-desc"].includes(e)}function ic(t){if(!t)return!1;if(!rc(t))return!1;const e=Pl(t);return!!e&&e.hasAttribute("contenteditable")}function oc(t){const e=t.tagName.toLowerCase();return["rect","circle","ellipse","line","polygon","polyline","path"].includes(e)}function sc(t){return Yl(t)||Gl(t)}function ac(t,e){t.setAttribute("data-element-type",e)}function lc(t,e){return t.querySelector(`[data-element-type="${e}"]`)}function cc(t){return sc(t)?"item-icon":t.getAttribute("data-element-type")||"unknown"}var hc=n("./node_modules/.pnpm/flru@1.0.2/node_modules/flru/dist/flru.mjs"),uc=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})};const dc=globalThis.fetch,fc=(0,hc.A)(1024),pc=new Map;function gc(t){return new Response(t.body.slice(0),t.init)}function mc(t,e){return uc(this,void 0,void 0,function*(){const n=new Request(t,e);if("GET"!==n.method)return dc(n);const r=function(t){const e=function(t){const e=Array.from(t.headers.entries());return 0===e.length?"":(e.sort(([t],[e])=>t.toLowerCase().localeCompare(e.toLowerCase())),e.map(([t,e])=>`${t.toLowerCase()}:${e}`).join("|"))}(t);return e?`${t.method}:${t.url}:${e}`:`${t.method}:${t.url}`}(n);if(fc.has(r))return gc(fc.get(r));let i=pc.get(r);return i||(i=function(t,e){return uc(this,void 0,void 0,function*(){try{const n=yield dc(t),r={body:yield n.arrayBuffer(),init:{status:n.status,statusText:n.statusText,headers:Array.from(n.headers.entries())}};return n.ok&&fc.set(e,r),r}finally{pc.delete(e)}})}(n,r),pc.set(r,i)),gc(yield i)})}function yc(t){let e=0;if(0===t.length)return e.toString();for(let n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n),e&=e;return Math.abs(e).toString()}const vc=new WeakMap;function xc(t){const{stroke:e,fill:n}=Sl(t,["fill","stroke"]);t.style.color=n||e||"currentColor"}function bc(t){return"use"===t.tagName?t:t.querySelector("use")}function wc(t){const e=bc(t);return e?Sl(e,["width","height","x","y","width","height","fill","fill-opacity","stroke","opacity"]):{}}const _c=!("undefined"==typeof process||!process.versions||!process.versions.node),Mc=t=>((t,e=",")=>t.split(e).map(t=>parseInt(t,10)))(t);function kc(...t){return t.map(t=>t.replace(/^\/+|\/+$/g,"")).filter(t=>t.trim().length>0).join("/")}function Cc(t){const e=t.getAttribute("viewBox");if(e){const[t,n,r,i]=e.split(" ").map(Number);return{x:t,y:n,width:r,height:i}}const n=t.getAttribute("width"),r=t.getAttribute("height");return{x:0,y:0,width:Number(n)||0,height:Number(r)||0}}function jc(t){return`${t.x} ${t.y} ${t.width} ${t.height}`}function Oc(t){return t?"number"==typeof t?[t,t,t,t]:1===t.length?[t[0],t[0],t[0],t[0]]:2===t.length?[t[0],t[1],t[0],t[1]]:3===t.length?[t[0],t[1],t[2],t[1]]:4===t.length?[t[0],t[1],t[2],t[3]]:[0,0,0,0]:[0,0,0,0]}function Ac(t,e){if(_c)Ec(t,e);else if(t.isConnected)$c(t,e);else try{const n=new MutationObserver(r=>{r.forEach(r=>{r.addedNodes.forEach(r=>{var i,o;(r===t||r.contains(t))&&(i=t,o=()=>{$c(t,e)},requestAnimationFrame(()=>{const t=()=>{const e=i.getBoundingClientRect();e.width>0&&e.height>0?o():requestAnimationFrame(t)};t()}),n.disconnect())})})});n.observe(document,{childList:!0,subtree:!0})}catch(n){Ec(t,e)}}function Ec(t,e){const n=Cc(t),[r,i,o,s]=e;El(t,{viewBox:`${n.x-s} ${n.y-r} ${n.width+s+i} ${n.height+r+o}`})}function Sc(t,e){const n=t.getBBox(),r=t.getBoundingClientRect(),i=r.width>0?n.width/r.width:1,o=r.height>0?n.height/r.height:1,[s,a,l,c]=e,h=s*o,u=c*i;return`${n.x-u} ${n.y-h} ${n.width+u+a*i} ${n.height+h+l*o}`}function $c(t,e){El(t,{viewBox:Sc(t,e)})}function zc(t,e,n){var r;const i=function(t){if(!t)return document;if(t instanceof Document||t instanceof ShadowRoot)return t;if(!t.isConnected)return document;const e=t.getRootNode();return e instanceof ShadowRoot?e:document}(n);if(function(t,e){return t instanceof Document?Boolean(t.getElementById(e)):Boolean(t.querySelector(`#${e}`))}(i,t))return;const o=(i instanceof Document?i:null!==(r=i.ownerDocument)&&void 0!==r?r:document).createElement("style");o.id=t,o.textContent=e,i instanceof Document?i.head.appendChild(o):i.appendChild(o)}function Pc(t){const{id:e,x:n=0,y:r=0,width:i,height:o,alignHorizontal:s="left",alignVertical:a="top",children:l,fontSize:c=14,fontFamily:h,fontStyle:u,fontWeight:d,textDecoration:f,letterSpacing:p,wordSpacing:g,opacity:m,fill:y="black",lineHeight:v,wordWrap:x,backgroundColor:b="none",backgroundOpacity:w=1,backgroundRadius:_=0}=t,M=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["id","x","y","width","height","alignHorizontal","alignVertical","children","fontSize","fontFamily","fontStyle","fontWeight","textDecoration","letterSpacing","wordSpacing","opacity","fill","lineHeight","wordWrap","backgroundColor","backgroundOpacity","backgroundRadius"]);let k=i,C=o,j=0,O=0;if(!k||!C){const e=jl(l,t);k||(k=e.width),C||(C=e.height)}i&&(j="center"===s?k/2:"right"===s?k:0),o&&(O="middle"===a?C/2:"bottom"===a?C:0);const A=Object.entries(Object.assign(Object.assign({width:k,height:C},void 0!==v&&{"line-height":v}),void 0!==x&&{"data-word-wrap":x})).reduce((t,[e,n])=>Object.assign(Object.assign({},t),{[e]:n}),{}),E=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"data-element-type":"text",width:k,height:C,x:j,y:O,"data-x":0,"data-y":0,fill:y,fontSize:c,textAnchor:"center"===s?"middle":"right"===s?"end":"start",dominantBaseline:"middle"===a?"central":"bottom"===a?"baseline":"hanging","data-horizontal-align":s.toUpperCase(),"data-vertical-align":a.toUpperCase(),children:l},A),M),h&&{fontFamily:h}),u&&{fontStyle:u}),d&&{fontWeight:d}),f&&"none"!==f&&{textDecoration:f}),p&&{letterSpacing:p}),g&&{wordSpacing:g}),void 0!==m&&1!==m&&{opacity:m}),S=Object.assign(Object.assign(Object.assign({},0!==n||0!==r?{x:n,y:r,transform:`translate(${n}, ${r})`}:{}),{width:k,height:C}),e&&{id:e}),$=b&&"none"!==b?{"data-element-type":"shape",x:0,y:0,width:k,height:C,fill:b,fillOpacity:w,rx:_,ry:_}:void 0;return{type:"g",props:Object.assign(Object.assign({},S),{children:[...$?[{type:"rect",props:$}]:[],{type:"text",props:E}]})}}function Lc(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)&&"type"in t}function Tc(t){return Ic(t).filter(Lc)}function Ic(t,e=[]){var n;if(!t||"boolean"==typeof t)return e;if(Array.isArray(t))t.forEach(t=>Ic(t,e));else if(function(t){return!(!t||"object"!=typeof t||Array.isArray(t))&&t.type===W}(t)){const r=null===(n=t.props)||void 0===n?void 0:n.children;(Array.isArray(r)?r:[r]).filter(Boolean).forEach(t=>{Ic(t,e)})}else e.push(t);return e}function Rc(t){return"number"==typeof t&&!Number.isNaN(t)&&Number.isFinite(t)}function Nc(t){if(!t||0===t.length)return{x:0,y:0,width:0,height:0};let e=1/0,n=1/0,r=-1/0,i=-1/0;for(const o of t){const{x:t,y:s,width:a,height:l}=o,c=t+a,h=s+l;t<e&&(e=t),s<n&&(n=s),c>r&&(r=c),h>i&&(i=h)}return e===1/0||n===1/0||r===-1/0||i===-1/0?{x:0,y:0,width:0,height:0}:{x:e,y:n,width:Math.max(0,r-e),height:Math.max(0,i-n)}}function Hc(t){var e,n,r,i;if(!t)return{x:0,y:0,width:0,height:0};if(Array.isArray(t))return Bc(Tc(t));if("object"!=typeof t)return{x:0,y:0,width:0,height:0};const{type:o,props:s={}}=t;if(Xc(t))return Hc(Zc(t));if("function"==typeof o){const t=null!==(e=s.x)&&void 0!==e?e:0,r=null!==(n=s.y)&&void 0!==n?n:0,i=s.width,a=s.height;if(Rc(i)&&Rc(a))return{x:t,y:r,width:i,height:a};const l=o(s);if(!l)return{x:t,y:r,width:null!=i?i:0,height:null!=a?a:0};if(Array.isArray(l)){const e=Bc(Tc(l));return Rc(i)&&Rc(a)?{x:t,y:r,width:i,height:a}:{x:t+e.x,y:r+e.y,width:0!==e.width?e.width:null!=i?i:0,height:0!==e.height?e.height:null!=a?a:0}}if(Lc(l)){const e=l,n=Hc(e);if(function(t,e){if(!(null==t?void 0:t.props)||!e)return!1;const n=t.props;if(Rc(n.x)&&Rc(n.y)&&Rc(e.x)&&Rc(e.y)&&n.x===e.x&&n.y===e.y){const t=Rc(n.width)&&Rc(n.height),r=Rc(e.width)&&Rc(e.height);if(!t&&!r)return!0}return!!(Rc(n.x)&&Rc(n.y)&&Rc(n.width)&&Rc(n.height)&&Rc(e.x)&&Rc(e.y)&&Rc(e.width)&&Rc(e.height))&&(n.x===e.x&&n.y===e.y&&n.width===e.width&&n.height===e.height)}(e,s))return n;const o=e.props&&Rc(e.props.width)&&Rc(e.props.height),c=Wc(e).flatMap(t=>Tc(t)).length>0,h=e.props&&e.props.x===s.x&&e.props.y===s.y;return o?{x:h?n.x:t+n.x,y:h?n.y:r+n.y,width:n.width,height:n.height}:Rc(i)&&Rc(a)?c?{x:h?n.x:t,y:h?n.y:r,width:i,height:a}:{x:h?n.x:t+n.x,y:h?n.y:r+n.y,width:i,height:a}:{x:h?n.x:t+n.x,y:h?n.y:r+n.y,width:0!==n.width?n.width:null!=i?i:0,height:0!==n.height?n.height:null!=a?a:0}}return{x:t,y:r,width:null!=i?i:0,height:null!=a?a:0}}const a=null!==(r=s.x)&&void 0!==r?r:0,l=null!==(i=s.y)&&void 0!==i?i:0,c=Rc(s.width)?s.width:void 0,h=Rc(s.height)?s.height:void 0;if(Rc(c)&&Rc(h))return{x:a,y:l,width:c,height:h};const u=Wc(t).flatMap(t=>Tc(t));if(u.length>0){const t=Bc(u);return{x:a+t.x,y:l+t.y,width:Rc(c)?c:t.width,height:Rc(h)?h:t.height}}return{x:a,y:l,width:null!=c?c:0,height:null!=h?h:0}}function Bc(t){if(!t||!Array.isArray(t)||0===t.length)return{x:0,y:0,width:0,height:0};const e=[];for(const n of t){const t=Tc(n);for(const n of t){const t=Hc(n);t&&e.push(t)}}return Nc(e)}function Wc(t){var e;const n=null===(e=t.props)||void 0===e?void 0:e.children;return n?Array.isArray(n)?n:[n]:[]}function Fc(t){var e;return null==t||"boolean"==typeof t?[]:Array.isArray(t)?Ic(t):"object"==typeof t?Ic(null===(e=t.props)||void 0===e?void 0:e.children):[t]}const Dc=(t,e)=>{const{type:n,props:r}=t,i=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["type","props"]);return Object.assign({type:n,props:Object.assign(Object.assign({},r),e)},i)},Vc=()=>({defs:new Map});function Uc(t){const e={"&":"&","<":"<",">":">",'"':""","'":"'"};return String(t).replace(/[&<>"']/g,t=>e[t])}const qc={className:"class",viewBox:"viewBox",preserveAspectRatio:"preserveAspectRatio",gradientUnits:"gradientUnits",gradientTransform:"gradientTransform",patternUnits:"patternUnits",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",maskUnits:"maskUnits",maskContentUnits:"maskContentUnits",clipPathUnits:"clipPathUnits",primitiveUnits:"primitiveUnits",filterUnits:"filterUnits",markerUnits:"markerUnits",markerWidth:"markerWidth",markerHeight:"markerHeight",refX:"refX",refY:"refY",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink",xlinkHref:"href",xlinkTitle:"xlink:title",xlinkShow:"xlink:show",xlinkActuate:"xlink:actuate",textLength:"textLength",lengthAdjust:"lengthAdjust",attributeName:"attributeName",attributeType:"attributeType",repeatCount:"repeatCount",repeatDur:"repeatDur",calcMode:"calcMode",keyTimes:"keyTimes",keySplines:"keySplines",keyPoints:"keyPoints",stdDeviation:"stdDeviation",baseFrequency:"baseFrequency",numOctaves:"numOctaves",pathLength:"pathLength",systemLanguage:"systemLanguage",requiredFeatures:"requiredFeatures",requiredExtensions:"requiredExtensions"},Yc=new Map;function Gc(t){const e=Symbol("layout");return Yc.set(e,t),t=>({type:e,props:t})}function Xc(t){return null!=t&&"object"==typeof t&&!Array.isArray(t)&&"symbol"==typeof t.type&&Yc.has(t.type)}function Zc(t,e=Vc()){const n=Yc.get(t.type);return n?n(Fc(t).filter(t=>"object"==typeof t),t.props,e):(console.warn("Layout function not found for symbol:",t.type),t)}var Kc=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function Qc(t,e){if(null==t||"boolean"==typeof t)return null;if("string"==typeof t||"number"==typeof t)return t;if(Array.isArray(t))return t.map(t=>Qc(t,e)).filter(Boolean);if(Xc(t))return Qc(Zc(t,e),e);if("function"==typeof t.type)return Qc(t.type(t.props),e);const n=Fc(t).map(t=>Qc(t,e)).filter(Boolean);return t.type===W?n:t.type===V?(n.forEach(t=>{"object"==typeof t&&t.props.id&&e.defs.set(t.props.id,t)}),null):n.length?Dc(t,{children:n}):t}function Jc(t,e){if(null==t)return"";if("string"==typeof t)return Uc(t);if("number"==typeof t)return String(t);const{type:n,props:r}=t;if(!n)return"";const i=Fc(t);if(n===W)return i.map(t=>Jc(t,e)).filter(Boolean).join("");if(n===V)return"";if("function"==typeof n||Xc(t))return console.warn("Unexpected unprocessed component in render:",t),"";const o=eh(r),s=i.map(t=>Jc(t,e)).filter(Boolean).join(""),a=String(n);return s?`<${a}${o}>${s}</${a}>`:`<${a}${o} />`}function th(t,e={}){const n=Vc(),r=Qc(t,n);if(!r)return"";const i=Array.isArray(r)?r.map(t=>Jc(t,n)).join(""):Jc(r,n),{x:o,y:s,width:a,height:l,style:c}=e,h=Kc(e,["x","y","width","height","style"]),u=Object.assign(Object.assign({},h),{xmlns:"http://www.w3.org/2000/svg"});if(!u.viewBox)if(a&&l)u.viewBox=`${null!=o?o:0} ${null!=s?s:0} ${null!=a?a:0} ${null!=l?l:0}`;else{const t=Hc(r);if(t){const{x:e,y:n,width:r,height:i}=t;u.viewBox=`${e} ${n} ${r} ${i}`}}const d=eh(u),f=function(t){if(!t||0===Object.keys(t).length)return"";const e=Object.entries(t).map(([t,e])=>`${t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}: ${e};`).join("");return` style="${Uc(e)}"`}(c);return`<svg${d}${f}>${n.defs.size?`<defs>${Array.from(n.defs.values()).map(t=>Jc(t,n)).join("")}</defs>`:""}${i}</svg>`}function eh(t){if(!t)return"";const e=Kc(t,["children"]);return Object.entries(e).filter(([,t])=>null!=t).map(([t,e])=>{var n;return` ${qc[n=t]?qc[n]:n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}="${"string"==typeof e?Uc(String(e)):String(e)}"`}).join("")}var nh=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const rh=t=>{const{indexes:e}=t,n=nh(t,["indexes"]);return F(Z,Object.assign({},{fill:"#B9EBCA",fillOpacity:.3,width:20,height:20,"data-indexes":e,"data-element-type":"btn-add"},n))},ih=t=>{const{indexes:e}=t,n=nh(t,["indexes"]);return F(Z,Object.assign({},{fill:"#F9C0C0",fillOpacity:.3,width:20,height:20,"data-indexes":e,"data-element-type":"btn-remove"},n))},oh=t=>F(Y,Object.assign({"data-element-type":"btns-group",width:0,height:0},t,{display:"none"})),sh=()=>F(W,{});const ah=t=>{var{indexes:e}=t,n=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["indexes"]);const r=Object.assign(Object.assign({},{fill:"lightgray"}),n);return e?(r["data-indexes"]=e,r["data-element-type"]="item-illus"):r["data-element-type"]="illus",F(Z,Object.assign({},r))};const lh=t=>{var e,{indexes:n,lineNumber:r=2,children:i}=t,o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["indexes","lineNumber","children"]);if(!i)return null;const s=Object.assign({fontSize:14,fill:"#666",wordWrap:!0,lineHeight:1.4,children:i},o);return null!==(e=s.height)&&void 0!==e||(s.height=Math.ceil(r*+s.lineHeight*+s.fontSize)),F(Pc,Object.assign({},s,{"data-indexes":n,"data-element-type":"item-desc"}))};var ch=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const hh=t=>{const{indexes:e,size:n=32}=t,r=ch(t,["indexes","size"]),i=Object.assign({fill:"lightgray",width:n,height:n},r);return F(Z,Object.assign({},i,{"data-indexes":e,"data-element-type":"item-icon"}))},uh=t=>{const{indexes:e,size:n=50,fill:r,colorBg:i="white"}=t,o=ch(t,["indexes","size","fill","colorBg"]),s=n/Math.SQRT2*.9,a=(n-s)/2,l=Object.assign(Object.assign({fill:i},o),{x:a,y:a,width:s,height:s});return D(Y,Object.assign({},o,{width:n,height:n,"data-element-type":"item-icon-group",children:[F(q,{width:n,height:n,fill:r,"data-element-type":"shape"}),F(Z,Object.assign({},l,{"data-indexes":e,"data-element-type":"item-icon"}))]}))};const dh=t=>{var e,{indexes:n,children:r}=t,i=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["indexes","children"]);const o=Object.assign({fontSize:18,fontWeight:"bold",fill:"#252525",lineHeight:1.4,children:r},i);return null!==(e=o.height)&&void 0!==e||(o.height=Math.ceil(+o.lineHeight*+o.fontSize)),F(Pc,Object.assign({},o,{"data-indexes":n,"data-element-type":"item-label"}))},fh=t=>F(Y,Object.assign({"data-element-type":"items-group"},t));const ph=t=>{var e,{indexes:n,value:r,formatter:i=t=>String(t)}=t,o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["indexes","value","formatter"]);const s=Object.assign({fontSize:14,fill:"#666",wordWrap:!0,lineHeight:1.4,children:i(r),"data-value":r},o);return null!==(e=s.height)&&void 0!==e||(s.height=Math.ceil(+s.lineHeight*+s.fontSize)),F(Pc,Object.assign({},s,{"data-indexes":n,"data-element-type":"item-value"}))},gh=t=>F(Y,Object.assign({"data-element-type":"shapes-group"},t));const mh=Gc((t,e)=>{var n,r,i,o,{horizontal:s,vertical:a}=e,l=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(e,["horizontal","vertical"]);if(!t||0===t.length)return F(Y,Object.assign({},l));const c=t.map(t=>Hc(t)),h=Bc(t),u=null!==(n=l.x)&&void 0!==n?n:h.x,d=null!==(r=l.y)&&void 0!==r?r:h.y,f=null!==(i=l.width)&&void 0!==i?i:h.width,p=null!==(o=l.height)&&void 0!==o?o:h.height,g=t.map((t,e)=>{const n=c[e],r=Object.assign({},t.props);if(void 0!==s)switch(s){case"left":r.x=-n.x;break;case"center":r.x=(f-n.width)/2-n.x;break;case"right":r.x=f-n.width-n.x}else void 0===r.x&&(r.x=n.x-u);if(void 0!==a)switch(a){case"top":r.y=-n.y;break;case"middle":r.y=(p-n.height)/2-n.y;break;case"bottom":r.y=p-n.height-n.y}else void 0===r.y&&(r.y=n.y-d);return Dc(t,r)}),m=Object.assign(Object.assign({},l),{x:u,y:d,width:f,height:p});return F(Y,Object.assign({},m,{children:g}))});const yh=Gc((t,e)=>{var n,r,i,o,s,a,{flexDirection:l="row",justifyContent:c="flex-start",alignItems:h="flex-start",alignContent:u="flex-start",flexWrap:d="nowrap",gap:f=0}=e,p=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(e,["flexDirection","justifyContent","alignItems","alignContent","flexWrap","gap"]);if(!t||0===t.length)return F(Y,Object.assign({},p));const g="row"===l||"row-reverse"===l,m="row-reverse"===l||"column-reverse"===l,y=t.map(t=>Hc(t)),v=Bc(t),x=null!==(n=p.width)&&void 0!==n?n:v.width,b=null!==(r=p.height)&&void 0!==r?r:v.height,w=void 0!==p.width&&void 0!==p.height,_=[];if("wrap"===d&&w){let e=[],n=[],r=0;for(let i=0;i<t.length;i++){const o=t[i],s=y[i],a=g?s.width:s.height;0===e.length||r+f+a<=(g?x:b)?(e.push(o),n.push(s),r+=(e.length>1?f:0)+a):(_.push({children:e,bounds:n}),e=[o],n=[s],r=a)}e.length>0&&_.push({children:e,bounds:n})}else _.push({children:t,bounds:y});const M=[];let k=0;const C=[];if(_.forEach(t=>{const{children:e,bounds:n}=t,r=n.reduce((t,e,n)=>t+(g?e.width:e.height)+(n>0?f:0),0),i=Math.max(...n.map(t=>g?t.height:t.width));C.push(i);let o=0;const s=(g?x:b)-r;if(w)switch(c){case"flex-end":o=s;break;case"center":o=s/2;break;default:o=0}let a=f;w&&"space-between"===c&&e.length>1&&(a=s/(e.length-1)+f);let l=o;e.forEach((t,e)=>{const r=n[e],o=g?r.width:r.height,s=g?r.height:r.width,c=g?r.x:r.y,u=g?r.y:r.x;let d,f,p=k;if(w)switch(h){case"flex-end":p=k+i-s;break;case"center":p=k+(i-s)/2;break;default:p=k}g?(d=m?x-l-o-c:l-c,f=p-u):(d=p-u,f=m?b-l-o-c:l-c);const y=Dc(t,{x:d,y:f});M.push(y),l+=o+a}),k+=i+f}),_.length>1&&w){const t=C.reduce((t,e)=>t+e,0)+(_.length-1)*f,e=(g?b:x)-t;let n=0;switch(u){case"flex-end":n=e;break;case"center":n=e/2;break;case"space-between":if(_.length>1){const t=e/(_.length-1);let n=0;_.forEach((e,r)=>{const i=_.slice(0,r).reduce((t,e)=>t+e.children.length,0),o=i+e.children.length;for(let t=i;t<o;t++){const e=M[t],r=Object.assign({},e.props);g?r.y=(r.y||0)+n:r.x=(r.x||0)+n,M[t]=Dc(e,r)}n+=C[r]+f+(r<_.length-1?t:0)});break}break;default:n=0}0!==n&&"space-between"!==u&&M.forEach((t,e)=>{const r=Object.assign({},t.props);g?r.y=(r.y||0)+n:r.x=(r.x||0)+n,M[e]=Dc(t,r)})}if(!w&&"center"===h)if(g){const t=Math.max(...y.map(t=>t.height));M.forEach((e,n)=>{const r=(t-y[n].height)/2,i=Object.assign({},e.props);i.y=(i.y||0)+r,M[n]=Dc(e,i)})}else{const t=Math.max(...y.map(t=>t.width));M.forEach((e,n)=>{const r=(t-y[n].width)/2,i=Object.assign({},e.props);i.x=(i.x||0)+r,M[n]=Dc(e,i)})}const j=Bc(M),O=Object.assign(Object.assign({},p),{x:null!==(i=p.x)&&void 0!==i?i:v.x,y:null!==(o=p.y)&&void 0!==o?o:v.y,width:null!==(s=p.width)&&void 0!==s?s:j.width,height:null!==(a=p.height)&&void 0!==a?a:j.height});return F(Y,Object.assign({},O,{children:M}))}),vh=new Map;function xh(t,e){vh.set(t,e)}xh("light",{colorBg:"#ffffff"}),xh("dark",{colorBg:"#1F1F1F",base:{text:{fill:"#fff"}}}),xh("hand-drawn",{base:{text:{"font-family":"851tegakizatsu"}},stylize:{type:"rough"}}),pt(yr);const bh=({colorPrimary:t,colorBg:e="#ffffff",isDarkMode:n=!1})=>{const r=Lt(t),i=Lt(e),o=kh({primaryColor:r,bgColor:i});return Ch(o,{primaryColor:r,bgColor:i,isDarkMode:n})},wh=t=>{const e=Zr(Lt(t)),n=Object.assign(Object.assign({},e),{l:Math.min(1,e.l+.2)});return Yr(n)},_h=(t,e)=>{const n=Lt(t),r=Lt("#262626"),i=Lt("#ffffff"),o=Xr(r,n);return Xr(i,n)>=3?Yr(i):o>=4.5?Yr(r):"#ffffff"},Mh=(t,e)=>{const n=Zr(t);return e?jh(Object.assign(Object.assign({},n),{l:Math.min(1,n.l+.1)}),"#1f1f1f"):n.l>.95?"#ffffff":jh(Object.assign(Object.assign({},n),{l:Math.min(1,n.l+.05)}),"#ffffff")},kh=({primaryColor:t,bgColor:e})=>({colorPrimary:jh(t,"#FF356A"),colorBg:jh(e,"#ffffff"),colorWhite:"#ffffff"}),Ch=(t,{primaryColor:e,bgColor:n,isDarkMode:r})=>{const i=((t,e)=>{if(e)return"#ffffff";const n=Lt("#262626");return Xr(n,t)>=7?Yr(n):"#000000"})(n,r),o=((t,e)=>(t=>(t=>{if(void 0===t)return;let e=Vr(void 0!==t.alpha?t.alpha:1);return qr(t)+(256|e).toString(16).slice(1)})(Ur(t)))(Object.assign(Object.assign({},t),{alpha:e?.2:.1}))||"#ffffff")(e,r);return Object.assign(Object.assign({},t),{isDarkMode:r,colorPrimaryBg:o,colorText:i,colorTextSecondary:wh(i),colorPrimaryText:_h(o),colorBgElevated:Mh(n,r)})};function jh(t,e="#000000"){var n;return null!==(n=Yr(t))&&void 0!==n?n:e}const Oh="#FF356A";function Ah(t){var e;return(null===(e=null==t?void 0:t.themeConfig)||void 0===e?void 0:e.colorPrimary)||Oh}function Eh(t){var e;const{themeConfig:n={},data:r}=t,{colorPrimary:i,palette:o}=n;return o&&0!==o.length?r.items.map((t,e)=>$s(o,[e],r.items.length)||Oh):Array((null===(e=null==r?void 0:r.items)||void 0===e?void 0:e.length)||1).fill(i||Oh)}function Sh(t,e){var n,r,i;return $s(null===(n=null==t?void 0:t.themeConfig)||void 0===n?void 0:n.palette,e,null===(i=null===(r=t.data)||void 0===r?void 0:r.items)||void 0===i?void 0:i.length)}function $h(t,e){var n;const{colorBg:r=(null===(n=null==e?void 0:e.themeConfig)||void 0===n?void 0:n.colorBg)||"white",colorPrimary:i=(e?Ah(e):"black")}=t;return bh({colorPrimary:i,isDarkMode:Qr(r),colorBg:r})}const zh=(t,e,n,r,i,o,s)=>{const a=Math.cos(n),l=Math.sin(n),c=-l,h=a,u=s,d=.55*s;if("arrow"===r)return[F(G,{d:`M ${t-a*u+c*d} ${e-l*u+h*d} L ${t} ${e} L ${t-a*u-c*d} ${e-l*u-h*d}`,stroke:i,strokeWidth:Math.max(1.5,o),strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})];if("diamond"===r){const n=1.25*u,r=.75*d,s=t-a*n*.5,f=e-l*n*.5;return[F(X,{points:[{x:t,y:e},{x:s+c*r,y:f+h*r},{x:t-a*n,y:e-l*n},{x:s-c*r,y:f-h*r}],fill:i,stroke:i,strokeWidth:Math.max(1,.8*o)})]}return[F(X,{points:[{x:t,y:e},{x:t-a*u+c*d,y:e-l*u+h*d},{x:t-a*u-c*d,y:e-l*u-h*d}],fill:i,stroke:i,strokeWidth:Math.max(1,.8*o)})]},Ph=t=>{const{x:e,y:n,width:r,height:i,radio:o=.25}=t,s=i*o,a=.5*i,l=i*(1-o);return{LT:{x:e,y:n+s},LC:{x:e,y:n+a},LB:{x:e,y:n+l},RT:{x:e+r,y:n+s},RC:{x:e+r,y:n+a},RB:{x:e+r,y:n+l}}},Lh=(t,e)=>{const n=t.length;if(4===n){const n=t[0],r=t[1],i=t[2],o=t[3];return 0===e?Math.atan2(r[1]-n[1],r[0]-n[0]):Math.atan2(o[1]-i[1],o[0]-i[0])}if(3===n){const n=t[0],r=t[1],i=t[2];return 0===e?Math.atan2(r[1]-n[1],r[0]-n[0]):Math.atan2(i[1]-r[1],i[0]-r[0])}if(2===n){const e=t[0],n=t[1];return Math.atan2(n[1]-e[1],n[0]-e[0])}return 0};function Th(t,e){const{depth:n,originalIndexes:r,flatIndex:i}=t;switch(e){case"level":return[n];case"branch":return 0===n?[0]:[r[1]+1];case"node":return r;case"node-flat":return void 0!==i?[i]:(console.warn("node-flat mode requires flatIndex in HierarchyNode, falling back to originalIndexes"),r);default:return[0]}}function Ih(t,e=[]){const n=Object.assign({},t),r={};return["indexes","data","datum","positionH","positionV","themeColors","valueFormatter",...e].forEach(t=>{t in n&&(r[t]=n[t],delete n[t])}),["x","y","width","height"].forEach(e=>{e in t&&(n[e]=t[e])}),[r,n]}function Rh(t,e){var n;return 0===t.length?()=>null:void 0===e?t[0]:null!==(n=t[e])&&void 0!==n?n:t[0]}const Nh=new Map;function Hh(t,e){Nh.set(t,e)}Hh("badge-card",{component:t=>{const[{datum:e,indexes:n,width:r=200,height:i=80,iconSize:o=24,badgeSize:s=32,gap:a=8,positionH:l="normal",themeColors:c,valueFormatter:h},u]=Ih(t,["width","height","iconSize","badgeSize","gap"]),d=e.value,f=void 0!==d,p=!!e.desc,g=!!e.icon,m=`${c.colorPrimary}-badge`,y="flipped"===l?r-a-s:a,v=g?"flipped"===l?a:s+2*a:a,x=r-2*a,b=g?r-s-3*a:x,w=a+14+18+8,_=w-a,M=p?a:(i-s)/2,k=f||p?a:(i-14)/2,C=g||"center"!==l?"flipped"===l?"right":"left":"center";return D(Y,Object.assign({},u,{width:r,height:i,children:[F(U,{children:D("radialGradient",{id:m,cx:"50%",cy:"50%",r:"50%",children:[F("stop",{offset:"0%",stopColor:c.colorPrimary}),F("stop",{offset:"100%",stopColor:(0,ea.A)(c.colorPrimary).darken(20).toHexString()})]})}),F(Z,{"data-element-type":"shape",x:0,y:0,width:r,height:i,fill:c.colorPrimaryBg,rx:8,ry:8}),g&&D(W,{children:[F(q,{x:y,y:M,width:s,height:s,fill:`url(#${m})`}),F(hh,{indexes:n,x:y+(s-o)/2,y:M+(s-o)/2,size:o,fill:c.colorWhite})]}),D(yh,{flexDirection:"column",x:v,y:k,width:b,height:f||p?_:void 0,alignItems:"center",justifyContent:"center",children:[F(dh,{indexes:n,width:b,alignHorizontal:C,alignVertical:"middle",fontSize:14,fill:c.colorText,children:e.label}),f&&F(ph,{indexes:n,width:b,alignHorizontal:"flipped"===l?"right":"left",alignVertical:"middle",fontSize:18,lineHeight:1,fontWeight:"bold",fill:c.colorPrimary,value:d,formatter:h})]}),p&&F(lh,{indexes:n,x:a,y:w,width:x,alignHorizontal:C,fontSize:11,fill:c.colorTextSecondary,lineNumber:2,lineHeight:1.2,wordWrap:!0,children:e.desc})]}))},composites:["icon","label","value","desc"]}),Hh("candy-card-lite",{component:t=>{const[{indexes:e,datum:n,width:r=280,height:i=140,themeColors:o},s]=Ih(t,["width","height"]);return D(Y,Object.assign({},s,{children:[F("rect",{x:0,y:0,width:r,height:i,rx:22,ry:22,fill:o.colorPrimaryBg,stroke:o.colorPrimary,"data-element-type":"shape"}),F(G,{x:r-85,y:.5,width:85,height:65,d:"M0 0H62.4495C74.9557 0 85.4549 10.8574 84.4557 23.1875V60.1875L77.8772 62.5839C64.3776 67.6876 48.51 64.6893 37.8662 53.7441L10.2361 25.3312C4.91402 19.8571 1.65356 13.1736 0.435652 6.21819L0 0Z",fill:o.colorBg,"data-element-type":"shape"}),F(dh,{indexes:e,x:20,y:24,width:200,alignHorizontal:"left",alignVertical:"middle",fill:o.colorText,children:n.label}),F(lh,{indexes:e,x:20,y:58,width:220,height:70,fill:o.colorTextSecondary,alignHorizontal:"left",alignVertical:"top",children:n.desc}),F(hh,{indexes:e,x:r-48,y:12,width:32,height:32,fill:o.colorPrimary})]}))},composites:["icon","label","desc"]});const Bh=t=>{const{color:e="black",opacity:n=.8}=t,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["color","opacity"]);return F("filter",Object.assign({id:"drop-shadow",x:"-25%",y:"-25%",width:"200%",height:"200%"},r,{children:F("feDropShadow",{dx:"4",dy:"4",stdDeviation:"4","flood-color":e,"flood-opacity":n})}))},Wh=t=>{const{id:e="linear-gradient",startColor:n="black",stopColor:r="white",direction:i="left-right"}=t;return D("linearGradient",Object.assign({id:e},{"left-right":{x1:"0%",y1:"0%",x2:"100%",y2:"0%"},"right-left":{x1:"100%",y1:"0%",x2:"0%",y2:"0%"},"top-bottom":{x1:"0%",y1:"0%",x2:"0%",y2:"100%"},"bottom-top":{x1:"0%",y1:"100%",x2:"0%",y2:"0%"}}[i],{children:[F("stop",{offset:"0%",stopColor:n}),F("stop",{offset:"100%",stopColor:r})]}))};function Fh(t,e,n){return ea.A.mix(t,"#ffffff",e).setAlpha(n).toRgbString()}function Dh(t,e,n,r){const i=(r-90)*Math.PI/180;return{x:t+n*Math.cos(i),y:e+n*Math.sin(i)}}Hh("capsule-item",{component:t=>{const[{datum:e,indexes:n,width:r=300,height:i=80,gap:o=12,positionH:s="normal",iconPadding:a=i/10,themeColors:l},c]=Ih(t,["width","height","gap","iconPadding"]),h=i/2,u=i-2*a,d="flipped"===s,f=!!e.icon,p=f?r-i-o:r-2*o,g=f?d?o:i:o,m=f?d?"right":"left":"center",y={indexes:n,width:p,alignHorizontal:m,alignVertical:"middle",fontSize:16,fontWeight:"600",fill:l.colorWhite},v=Hc(F(dh,Object.assign({},y,{children:e.label}))),x={indexes:n,width:p,alignHorizontal:m,alignVertical:"top",fontSize:12,lineNumber:1,fill:l.colorWhite},b=Hc(e.desc?F(lh,Object.assign({},x,{children:e.desc})):null),w=(i-(v.height+4+b.height))/2,_=w+v.height+4,M=d?r-i+a:a,k=a;return D(Y,Object.assign({},c,{children:[F(U,{children:F(Bh,{})}),F(Z,{x:0,y:0,width:r,height:i,fill:l.colorPrimary,rx:h,ry:h,"data-element-type":"shape"}),e.icon&&D(W,{children:[F(q,{x:M,y:k,width:u,height:u,fillOpacity:.5,fill:l.colorBg,filter:"url(#drop-shadow)"}),F(uh,{indexes:n,x:M,y:k,size:u,fill:l.colorBg,colorBg:l.colorPrimary})]}),e.label&&F(dh,Object.assign({x:g,y:w},y,{children:e.label})),e.desc&&F(lh,Object.assign({x:g,y:_},x,{children:e.desc}))]}))},composites:["icon","label","desc"]}),Hh("circle-node",{component:t=>{const[{indexes:e,datum:n,themeColors:r,positionH:i="normal",width:o=240,height:s=o},a]=Ih(t,["width","height"]),l=Math.min(o,s),c=.7*l,h=(l-c)/2,u=c*Math.sqrt(2)/2,d=(l-u)/2,f=(0,ea.A)(r.colorPrimary),p=Fh(f,80,.2),g=Fh(f,20,.8),m=Fh(f,75,.32),y=Fh(f,45,.4),v=f.clone().darken(5).toRgbString(),x=`${r.colorPrimary}-${i}-outer`,b=`${r.colorPrimary}-${i}-inner`,w="flipped"===i?{x1:"0%",y1:"0%",x2:"100%",y2:"0%"}:{x1:"100%",y1:"0%",x2:"0%",y2:"0%"};return D(Y,Object.assign({},a,{children:[D(U,{children:[D("linearGradient",Object.assign({id:x},w,{children:[F("stop",{offset:"0%",stopColor:p}),F("stop",{offset:"100%",stopColor:g})]})),D("linearGradient",Object.assign({id:b},w,{children:[F("stop",{offset:"0%",stopColor:m}),F("stop",{offset:"100%",stopColor:y})]}))]}),F(q,{width:l,height:l,fill:`url(#${x})`,"data-element-type":"shape"}),F(q,{x:h,y:h,width:c,height:c,fill:`url(#${b})`,stroke:"#FFFFFF",strokeWidth:1,"data-element-type":"shape"}),F(dh,{indexes:e,x:d,y:d,width:u,height:u,lineHeight:1.1,alignHorizontal:"center",alignVertical:"middle",fill:v,fontWeight:"500",children:n.label})]}))},composites:["label"]}),Hh("circular-progress",{component:t=>{var e;const[{datum:n,indexes:r,size:i=120,strokeWidth:o=12,gap:s=8,themeColors:a,valueFormatter:l=t=>`${Math.round(t)}%`},c]=Ih(t,["size","strokeWidth","gap"]),h=null!==(e=n.value)&&void 0!==e?e:0,u=Math.min(Math.max(h/100,0),1),d=i/2,f=o/2,p=i-o,g=u>=1,m=function(t,e,n,r,i){const o=Dh(t,e,n,i),s=Dh(t,e,n,0);return`M ${o.x} ${o.y} A ${n} ${n} 0 ${i-0<=180?"0":"1"} 0 ${s.x} ${s.y}`}(d,d,(i-o)/2,0,360*u),y={x:f,y:f,width:p,height:p};return D(Y,Object.assign({},c,{width:i,height:i+s+20,children:[F(Z,{width:i,height:i,fill:"none"}),F(q,Object.assign({},y,{fill:"none",stroke:"#f0f0f0",strokeWidth:o,"data-element-type":"shape"})),g?F(q,Object.assign({},y,{fill:"none",stroke:a.colorPrimary,strokeWidth:o,"data-element-type":"shape"})):F(G,{d:m,fill:"none",stroke:a.colorPrimary,strokeWidth:o,strokeLinecap:"round","data-element-type":"shape"}),F(ph,{indexes:r,x:o,y:o,width:p-o,height:p-o,fontSize:24,fontWeight:"bold",fill:a.colorPrimary,alignHorizontal:"center",alignVertical:"middle",value:h,formatter:l}),F(dh,{indexes:r,x:0,y:i+s,width:i,alignHorizontal:"center",fontSize:12,fill:a.colorTextSecondary,children:n.label})]}))},composites:["label","value"]}),Hh("compact-card",{component:t=>{const[{datum:e,indexes:n,width:r=200,height:i=60,iconSize:o=20,gap:s=8,positionH:a="normal",themeColors:l,valueFormatter:c},h]=Ih(t,["width","height","iconSize","gap"]),u=e.value,d=null!=u,f="compact-shadow",p="flipped"===a?r-s-o:s,g="flipped"===a?s:o+2*s,m=r-o-3*s,y=d?.8*m:m,v=d?.2*m:0;return D(Y,Object.assign({},h,{children:[F(U,{children:F("filter",{id:f,children:F("feDropShadow",{dx:"0",dy:"2",stdDeviation:"2",floodOpacity:"0.15"})})}),F(Z,{x:0,y:0,width:r,height:i,fill:l.colorBgElevated,stroke:l.colorBgElevated,strokeWidth:1,rx:6,ry:6,filter:`url(#${f})`,"data-element-type":"shape"}),F(Z,{x:"flipped"===a?r-3:0,y:0,width:3,height:i,fill:l.colorPrimary,rx:1.5,ry:1.5,"data-element-type":"shape"}),F(hh,{indexes:n,x:p,y:(i-o)/2,size:o,fill:l.colorPrimary}),D(yh,{x:g,y:s,width:m,height:i-2*s,flexDirection:"column",justifyContent:"center",alignItems:"flex-start",children:[D(yh,{width:m,flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[F(dh,{indexes:n,width:y,alignHorizontal:"left",fontSize:12,fill:l.colorText,children:e.label}),d&&F(ph,{indexes:n,width:v,alignHorizontal:"right",fontSize:12,fontWeight:"bold",fill:l.colorPrimary,value:u,formatter:c})]}),F(lh,{indexes:n,width:m,alignHorizontal:"left",alignVertical:"middle",fontSize:10,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:e.desc})]})]}))},composites:["icon","label","value","desc"]}),Hh("done-list",{component:t=>{const[{datum:e,indexes:n,width:r=300,height:i=30,iconSize:o=30,gap:s=5,positionH:a="normal",positionV:l="middle",themeColors:c},h]=Ih(t,["width","height","iconSize","gap"]),u=r-o-s;return D(Y,Object.assign({},h,{children:[F(G,{"data-element-type":"shape",x:"flipped"===a?u+s:0,y:"middle"===l?(i-o)/2:"flipped"===l?i-o:0,fill:c.colorPrimary,width:o,height:o,d:"M14.7273 30C6.54538 30 0 22.9077 0 14.7269C0 6.54617 6.54538 0 14.7273 0C22.9092 0 30 6.54617 30 14.7269C30 22.9077 22.9092 30 14.7273 30ZM24.5454 10.9077C22.9092 9.27307 22.9092 9.27307 22.9092 9.27307C22.3638 8.72692 22.3638 8.7269 21.8181 8.7269C21.2727 8.7269 21.2727 8.72692 20.7273 9.27307C13.0908 16.9077 13.0908 16.9077 13.0908 16.9077C8.72731 12.5461 8.72731 12.5462 8.72731 12.5462C8.18193 12.5462 8.18193 12 7.63654 12L7.09077 12.5462C4.90923 14.1808 4.90923 14.1808 4.90923 14.1808C4.90923 14.7269 4.90923 14.7269 4.90923 15.2731C4.90923 15.8192 4.90923 15.8192 4.90923 16.3654C12 23.4539 12 23.4538 12 23.4538C12.5454 23.4538 12.5454 23.4538 13.0908 23.4538C13.6365 23.4538 13.6365 23.4538 14.1819 23.4538C24.5454 12.5461 24.5454 12.5462 24.5454 12.5462L25.0908 12C25.0908 11.4538 24.5454 10.9077 24.5454 10.9077Z"}),F(dh,{indexes:n,x:"flipped"===a?0:o+s,width:u,height:i,fontWeight:"normal",alignVertical:"middle",wordWrap:!1,fill:"#666",children:e.label||e.desc})]}))},composites:["label"]});const Vh=t=>{const{x:e=0,y:n=0,width:r=100,height:i=40,fill:o="#FF356A",size:s=10}=t;return F(X,{width:r,height:i,points:[{x:e,y:n},{x:e+r-s,y:n},{x:e+r,y:n+i/2},{x:e+r-s,y:n+i},{x:e,y:n+i},{x:e+s,y:n+i/2}],fill:o,"data-element-type":"shape"})},Uh=t=>{const{x:e=0,y:n=0,width:r=10,height:i=50,fill:o,positionV:s="top"}=t,a=r/2,l=i-a,c=a;return D(gh,{x:e,y:n,width:r,height:i,children:[F(q,{width:r,height:r,fill:o,y:"top"===s?0:l-a}),F(G,{d:"top"===s?`M${c},${a} L${c},${a+l}`:`M${c},0 L${c},${l-a}`,strokeWidth:2,stroke:o})]})};function qh(){}function Yh(t){return null==t?qh:function(){return this.querySelector(t)}}function Gh(){return[]}function Xh(t){return null==t?Gh:function(){return this.querySelectorAll(t)}}function Zh(t){return function(){return this.matches(t)}}function Kh(t){return function(e){return e.matches(t)}}Hh("horizontal-icon-arrow",{component:t=>{const[{indexes:e,datum:n,width:r=140,themeColors:i,positionV:o="normal"},s]=Ih(t,["width"]),a="flipped"!==o,l="normal"===o?"bottom":"top",c=F(dh,{indexes:e,width:r,fill:i.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),h=F(lh,{indexes:e,width:r,fill:i.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),u=F(uh,{indexes:e,fill:i.colorPrimary,colorBg:i.colorWhite}),d=F(Uh,{width:8,height:30,fill:i.colorPrimary,positionV:o}),f=Hc(c),p=Hc(h),g=Hc(u),m=Hc(d),y=f.height+p.height+5+m.height-g.height-25;return F(Y,Object.assign({width:r,height:g.height+25+30+m.height+5+f.height+p.height},s,{children:D(yh,{flexDirection:"column",alignItems:"center",children:[D(W,a?{children:[h,c,F(sh,{height:5}),d]}:{children:[F(sh,{height:y}),u,F(sh,{height:25})]}),D(mh,{horizontal:"center",vertical:"middle",width:r,height:30,children:[F(Vh,{width:r,height:30,fill:i.colorPrimary}),F(Pc,{width:r,height:30,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:n.time?n.time:String(e[0]+1).padStart(2,"0").slice(-2)})]}),D(W,a?{children:[F(sh,{height:25}),u]}:{children:[d,F(sh,{height:5}),c,h]})]})}))},composites:["icon","label","desc","time"]}),Hh("horizontal-icon-line",{component:t=>{const[{indexes:e,datum:n,width:r=160,themeColors:i,positionH:o="center",positionV:s="normal"},a]=Ih(t,["width"]),l="normal"===o?"left":"flipped"===o?"right":"center",c=F(dh,{indexes:e,width:r,alignHorizontal:l,fill:i.colorPrimary,children:n.label}),h=Hc(c),u=n.desc?F(lh,{indexes:e,width:r,fill:i.colorTextSecondary,alignHorizontal:l,alignVertical:"flipped"===s?"top":"bottom",children:n.desc}):null,d=Hc(u),f=n.icon?F(uh,{size:45,indexes:e,colorBg:i.colorBg,fill:i.colorPrimary}):null,p=Hc(f),g=n.time?F(Pc,{width:r,height:30,alignHorizontal:"center",alignVertical:"middle",fill:i.colorPrimary,fontSize:18,fontWeight:"bold",children:n.time}):null,m=Hc(g),y=D(mh,{horizontal:"center",vertical:"middle",width:r,height:18,children:[F(Z,{width:r,height:18,fill:i.colorPrimary,"data-element-type":"shape"}),F(q,{width:24,height:24,fill:i.colorBg,fillOpacity:.5,"data-element-type":"shape"}),F(q,{width:12,height:12,fill:"white","data-element-type":"shape"})]}),v=h.height+d.height,x=p.height+m.height+5,b=Math.abs(x-v),w=x>v?b:0,_=v>x?b:0;return D(yh,Object.assign({},a,"flipped"===s?{flexDirection:"column",alignItems:"center",children:[F(sh,{height:_}),g,f,F(sh,{height:5}),y,c,u,F(sh,{height:w})]}:{flexDirection:"column",alignItems:"center",children:[F(sh,{height:w}),c,u,y,F(sh,{height:5}),f,g,F(sh,{height:_})]}))},composites:["icon","label","desc"]}),Hh("icon-badge",{component:t=>{var e;const[{datum:n,indexes:r,size:i=80,iconSize:o=28,badgeSize:s=24,gap:a=8,themeColors:l,width:c=84,height:h=105},u]=Ih(t,["size","iconSize","badgeSize","gap"]),d=null!==(e=n.value)&&void 0!==e?e:0,f=`${l.colorPrimary}-icon`,p="#ff6b6b-badge";return D(Y,Object.assign({},u,{width:c,height:h,children:[D(U,{children:[D("radialGradient",{id:f,cx:"50%",cy:"30%",r:"70%",children:[F("stop",{offset:"0%",stopColor:(0,ea.A)(l.colorPrimary).lighten(30).toHexString()}),F("stop",{offset:"100%",stopColor:l.colorPrimary})]}),D("linearGradient",{id:p,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[F("stop",{offset:"0%",stopColor:"#ff6b6b"}),F("stop",{offset:"100%",stopColor:"#ee5a52"})]})]}),F(q,{x:0,y:0,width:i,height:i,fill:`url(#${f})`,"data-element-type":"shape"}),F(hh,{indexes:r,x:(i-o)/2,y:(i-o)/2,size:o,fill:l.colorPrimaryText}),F(q,{x:i-s+4,width:s,height:s,fill:`url(#${p})`}),F(Pc,{x:i-s+4,width:s,height:s,fontSize:10,fontWeight:"bold",fill:l.colorWhite,alignHorizontal:"center",alignVertical:"middle",children:d>99?"99+":Math.round(d)}),F(dh,{indexes:r,x:0,y:i+a,width:i,alignHorizontal:"center",fontSize:12,fill:l.colorText,children:n.label})]}))},composites:["icon","label"]}),Hh("indexed-card",{component:t=>{const[{datum:e,indexes:n,width:r=200,borderRadius:i=12,padding:o=16,separatorHeight:s=2,indexFontSize:a=20,labelFontSize:l=16,gap:c=8,themeColors:h},u]=Ih(t,["width","height","borderRadius","padding","separatorHeight","indexFontSize","labelFontSize","gap"]),d=String(n[0]+1).padStart(2,"0"),f=void 0!==e.label,p=void 0!==e.desc,g=ea.A.mix(h.colorPrimary,h.colorWhite,40).toHexString(),m=h.colorBgElevated||h.colorWhite,y=r-2*o,v=Hc(F(Pc,{fontSize:a,fontWeight:"bold",children:d})),x=y-v.width-c,b=f?Hc(F(dh,{indexes:n,width:x,fontSize:l,fontWeight:"bold",x:a,children:e.label})):{width:0,height:0},w=p?Hc(F(lh,{indexes:n,width:y,fontSize:14,lineHeight:1.5,wordWrap:!0,children:e.desc})):{width:0,height:0},_=Math.max(v.height,b.height),M=2*o+_+(f||p?c:0)+s+(p?c:0)+w.height;return D(Y,Object.assign({},u,{width:r,height:M,children:[F(Z,{x:0,y:0,width:r,height:M,rx:i,ry:i,fill:m,stroke:(0,ea.A)(m).darken(5).toHexString(),strokeWidth:.5,"data-element-type":"shape"}),D(Y,{x:o,y:o,children:[D(Y,{x:0,y:0,children:[F(Pc,{x:0,y:0,fontSize:a,fontWeight:"bold",fill:h.colorPrimary,alignVertical:"top",children:d}),f&&F(dh,{indexes:n,x:a+c,y:0,width:x,fontSize:l,fontWeight:"bold",fill:h.colorTextSecondary,alignVertical:"top",children:e.label})]}),F(Z,{x:0,y:_+c,width:y,height:s,fill:g,"data-element-type":"shape"}),p&&F(lh,{indexes:n,x:0,y:_+c+s+c,width:y,fontSize:14,lineHeight:1.5,wordWrap:!0,fill:h.colorTextSecondary,children:e.desc})]})]}))},composites:["label","desc"]}),Hh("l-corner-card",{component:t=>{const[{indexes:e,datum:n,width:r=140,iconSize:i=24,themeColors:o},s]=Ih(t,["width","iconSize"]),{label:a,desc:l}=n,c=r-16-12,h=`M 28 ${76+(i+44)} L 28 76 L ${28+c} 76`;return D(Y,Object.assign({},s,{children:[F(lh,{indexes:e,x:28,width:r-28,height:60,fontSize:12,alignHorizontal:"left",alignVertical:"bottom",fill:o.colorTextSecondary,children:l}),F(X,{points:[{x:0,y:88},{x:16,y:72},{x:16,y:88}],fill:o.colorPrimary,opacity:.9,width:16,height:16,"data-element-type":"shape"}),F(G,{d:h,stroke:o.colorPrimary,strokeWidth:8,fill:"none","data-element-type":"shape"}),F(hh,{indexes:e,x:32+c/2-i/2,y:88,size:i,fill:o.colorPrimary}),F(dh,{indexes:e,x:32,y:80+i+16,width:c,fontSize:14,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:o.colorText,children:a})]}))},composites:["icon","label","desc"]}),Hh("letter-card",{component:t=>{var e,n;const[{datum:r,indexes:i,width:o=280,height:s=160,showStripe:a=!0,showGradient:l=!0,showBottomShade:c=!0,themeColors:h},u]=Ih(t,["width","height","showStripe","showGradient","showBottomShade"]),d=null===(e=r.label)||void 0===e?void 0:e[0].toUpperCase(),f=null===(n=r.label)||void 0===n?void 0:n.toUpperCase(),p=h.colorPrimary,g=(0,ea.A)(p),m=g.clone().darken(4).toHexString(),y=g.clone().lighten(12).toHexString(),v=`letter-card-${i.join("-")}`,x=`${v}-gradient`,b=`${v}-pattern`,w=`${v}-shade`,_=s/16,M=(s-(96+_+16))/2,k=M+96+_;return D(Y,Object.assign({},u,{width:o,height:s,children:[D(U,{children:[l&&D("linearGradient",{id:x,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[F("stop",{offset:"0%",stopColor:m}),F("stop",{offset:"100%",stopColor:y})]}),a&&D("pattern",{id:b,patternUnits:"userSpaceOnUse",width:10,height:10,patternTransform:"rotate(45)",children:[F("rect",{x:"0",y:"0",width:10,height:10,fill:"rgba(255, 255, 255, 0)"}),F("rect",{x:"0",y:"0",width:4,height:10,fill:"rgba(0, 0, 0, 0.03)"})]}),c&&D("linearGradient",{id:w,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[F("stop",{offset:"0%",stopColor:"rgba(0,0,0,0)"}),F("stop",{offset:"100%",stopColor:"rgba(0,0,0,0.16)"})]})]}),F(Z,{x:0,y:0,width:o,height:s,fill:l?`url(#${x})`:p,rx:0,ry:0,"data-element-type":"shape"}),a&&F(Z,{x:0,y:0,width:o,height:s,fill:`url(#${b})`,rx:0,ry:0}),c&&F(Z,{x:0,y:s-40,width:o,height:40,fill:`url(#${w})`,rx:0,ry:0}),d&&F(dh,{indexes:i,x:0,y:M,width:o,fontSize:96,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"top",lineHeight:1,children:d}),F(dh,{indexes:i,x:0,y:k,width:o,fontSize:16,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"middle",lineHeight:1,children:f})]}))},composites:["label"]}),Hh("lined-text",{component:t=>{var e,n,r;const[{datum:i,indexes:o,width:s,themeColors:a,positionH:l="normal",positionV:c="center",formatter:h=t=>t||"",usePaletteColor:u=!1,showUnderline:d=!1,underlineGap:f=6,underlineExtend:p=8,underlineThickness:g=2},m]=Ih(t,["width","formatter","usePaletteColor","showUnderline","underlineGap","underlineExtend","underlineThickness"]),y=h(null!==(n=null!==(e=i.label)&&void 0!==e?e:i.desc)&&void 0!==n?n:""),v="flipped"===l?"right":"center"===l?"center":"left",x=Hc(F(dh,{indexes:o,width:s,children:y})),b=null!=s?s:x.width,w=x.height,_=d?b+2*p:0,M=w+(d?f+g:0),k=d?Math.max(b,_):b,C=null!==(r=m.height)&&void 0!==r?r:M,j="right"===v?k-_:"center"===v?(k-_)/2:0,O=C;return D(Y,Object.assign({},m,{width:k,height:C,children:[F(dh,{indexes:o,x:"right"===v?k-b:"center"===v?(k-b)/2:0,y:"middle"===c?(C-M)/2:"flipped"===c?C-M:0,width:b,height:w,alignHorizontal:v,alignVertical:"flipped"===c?"bottom":"center"===c?"middle":"top",fill:u?a.colorPrimary:a.colorText,children:y}),d&&F(G,{d:`M 0 ${g/2} L ${_} ${g/2}`,x:j,y:O-g/2,width:_,height:g,stroke:a.colorPrimary,strokeWidth:g,fill:"none",strokeLinecap:"round","data-element-type":"shape"})]}))},composites:["label"]}),Hh("pill-badge",{component:t=>{const[{datum:e,indexes:n,width:r=300,pillWidth:i=120,pillHeight:o=36,gap:s=16,positionH:a="normal",themeColors:l},c]=Ih(t,["width","pillWidth","pillHeight","gap"]),h=!!e.desc,u=h?r:i,d=h?"center"===a?(u-i)/2:"flipped"===a?u-i:0:0,f=o+s,p=u,g=`drop-shadow-${l.colorPrimary}`,m="linear-gradient-white-top-bottom";return D(Y,Object.assign({},c,{children:[D(U,{children:[F(Bh,{id:g,color:l.colorPrimary}),F(Wh,{id:m,startColor:"#fff",stopColor:"#ffffff33",direction:"top-bottom"})]}),F(Z,{x:d,y:0,width:i,height:o,fill:l.colorPrimaryBg,stroke:l.colorPrimary,rx:o/2,ry:o/2,filter:`url(#${g})`,"data-element-type":"shape"}),F(Z,{x:d,y:0,width:i,height:o,fill:`url(#${m})`,opacity:l.isDarkMode?.4:.7,rx:o/2,ry:o/2}),F(dh,{indexes:n,x:d,y:0,width:i,height:o,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:l.colorText,children:e.label}),e.desc&&F(lh,{indexes:n,x:0,y:f,width:p,alignHorizontal:"center"===a?"center":"flipped"===a?"right":"left",fontSize:12,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:e.desc})]}))},composites:["label","desc"]}),Hh("plain-text",{component:t=>{var e;const[{indexes:n,datum:r,width:i=120,themeColors:o,positionH:s="normal",positionV:a="center",formatter:l=t=>t||"",usePaletteColor:c=!1,lineNumber:h=1},u]=Ih(t,["width","formatter","usePaletteColor","lineNumber"]),d=null!==(e=u.height)&&void 0!==e?e:Math.ceil(1.4*h*14);return F(dh,Object.assign({},u,{indexes:n,width:i,height:d,lineHeight:1.4,fill:c?o.colorPrimary:o.colorText,fontSize:14,fontWeight:"regular",alignHorizontal:"flipped"===s?"right":"center"===s?"center":"left",alignVertical:"flipped"===a?"bottom":"center"===a?"middle":"top",children:l(r.label||r.desc)}))},composites:["label"]});var Qh=Array.prototype.find;function Jh(){return this.firstElementChild}var tu=Array.prototype.filter;function eu(){return Array.from(this.children)}function nu(t){return new Array(t.length)}function ru(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function iu(t,e,n,r,i,o){for(var s,a=0,l=e.length,c=o.length;a<c;++a)(s=e[a])?(s.__data__=o[a],r[a]=s):n[a]=new ru(t,o[a]);for(;a<l;++a)(s=e[a])&&(i[a]=s)}function ou(t,e,n,r,i,o,s){var a,l,c,h=new Map,u=e.length,d=o.length,f=new Array(u);for(a=0;a<u;++a)(l=e[a])&&(f[a]=c=s.call(l,l.__data__,a,e)+"",h.has(c)?i[a]=l:h.set(c,l));for(a=0;a<d;++a)c=s.call(t,o[a],a,o)+"",(l=h.get(c))?(r[a]=l,l.__data__=o[a],h.delete(c)):n[a]=new ru(t,o[a]);for(a=0;a<u;++a)(l=e[a])&&h.get(f[a])===l&&(i[a]=l)}function su(t){return t.__data__}function au(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function lu(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}ru.prototype={constructor:ru,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 cu="http://www.w3.org/1999/xhtml";const hu={svg:"http://www.w3.org/2000/svg",xhtml:cu,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function uu(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),hu.hasOwnProperty(e)?{space:hu[e],local:t}:t}function du(t){return function(){this.removeAttribute(t)}}function fu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function pu(t,e){return function(){this.setAttribute(t,e)}}function gu(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function mu(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function yu(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 vu(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function xu(t){return function(){this.style.removeProperty(t)}}function bu(t,e,n){return function(){this.style.setProperty(t,e,n)}}function wu(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function _u(t,e){return t.style.getPropertyValue(e)||vu(t).getComputedStyle(t,null).getPropertyValue(e)}function Mu(t){return function(){delete this[t]}}function ku(t,e){return function(){this[t]=e}}function Cu(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function ju(t){return t.trim().split(/^|\s+/)}function Ou(t){return t.classList||new Au(t)}function Au(t){this._node=t,this._names=ju(t.getAttribute("class")||"")}function Eu(t,e){for(var n=Ou(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Su(t,e){for(var n=Ou(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function $u(t){return function(){Eu(this,t)}}function zu(t){return function(){Su(this,t)}}function Pu(t,e){return function(){(e.apply(this,arguments)?Eu:Su)(this,t)}}function Lu(){this.textContent=""}function Tu(t){return function(){this.textContent=t}}function Iu(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Ru(){this.innerHTML=""}function Nu(t){return function(){this.innerHTML=t}}function Hu(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Bu(){this.nextSibling&&this.parentNode.appendChild(this)}function Wu(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Fu(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===cu&&e.documentElement.namespaceURI===cu?e.createElement(t):e.createElementNS(n,t)}}function Du(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Vu(t){var e=uu(t);return(e.local?Du:Fu)(e)}function Uu(){return null}function qu(){var t=this.parentNode;t&&t.removeChild(this)}function Yu(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Gu(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Xu(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 Zu(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 s=0,a=i.length;s<a;++s)if((r=i[s]).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 Ku(t,e,n){var r=vu(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 Qu(t,e){return function(){return Ku(this,t,e)}}function Ju(t,e){return function(){return Ku(this,t,e.apply(this,arguments))}}Au.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 td=[null];function ed(t,e){this._groups=t,this._parents=e}function nd(){return new ed([[document.documentElement]],td)}ed.prototype=nd.prototype={constructor:ed,select:function(t){"function"!=typeof t&&(t=Yh(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,s,a=e[i],l=a.length,c=r[i]=new Array(l),h=0;h<l;++h)(o=a[h])&&(s=t.call(o,o.__data__,h,a))&&("__data__"in o&&(s.__data__=o.__data__),c[h]=s);return new ed(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return function(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}(t.apply(this,arguments))}}(t):Xh(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var s,a=e[o],l=a.length,c=0;c<l;++c)(s=a[c])&&(r.push(t.call(s,s.__data__,c,a)),i.push(s));return new ed(r,i)},selectChild:function(t){return this.select(null==t?Jh:function(t){return function(){return Qh.call(this.children,t)}}("function"==typeof t?t:Kh(t)))},selectChildren:function(t){return this.selectAll(null==t?eu:function(t){return function(){return tu.call(this.children,t)}}("function"==typeof t?t:Kh(t)))},filter:function(t){"function"!=typeof t&&(t=Zh(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,s=e[i],a=s.length,l=r[i]=[],c=0;c<a;++c)(o=s[c])&&t.call(o,o.__data__,c,s)&&l.push(o);return new ed(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,su);var n=e?ou:iu,r=this._parents,i=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var h=r[c],u=i[c],d=u.length,f=au(t.call(h,h&&h.__data__,c,r)),p=f.length,g=a[c]=new Array(p),m=s[c]=new Array(p);n(h,u,g,m,l[c]=new Array(d),f,e);for(var y,v,x=0,b=0;x<p;++x)if(y=g[x]){for(x>=b&&(b=x+1);!(v=m[b])&&++b<p;);y._next=v||null}}return(s=new ed(s,r))._enter=a,s._exit=l,s},enter:function(){return new ed(this._enter||this._groups.map(nu),this._parents)},exit:function(){return new ed(this._exit||this._groups.map(nu),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=Math.min(i,r.length),s=new Array(i),a=0;a<o;++a)for(var l,c=n[a],h=r[a],u=c.length,d=s[a]=new Array(u),f=0;f<u;++f)(l=c[f]||h[f])&&(d[f]=l);for(;a<i;++a)s[a]=n[a];return new ed(s,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,s=i[o];--o>=0;)(r=i[o])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=lu);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s,a=n[o],l=a.length,c=i[o]=new Array(l),h=0;h<l;++h)(s=a[h])&&(c[h]=s);c.sort(e)}return new ed(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 s=r[i];if(s)return s}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],s=0,a=o.length;s<a;++s)(i=o[s])&&t.call(i,i.__data__,s,o);return this},attr:function(t,e){var n=uu(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?fu:du:"function"==typeof e?n.local?yu:mu:n.local?gu:pu)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?xu:"function"==typeof e?wu:bu)(t,e,n??"")):_u(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Mu:"function"==typeof e?Cu:ku)(t,e)):this.node()[t]},classed:function(t,e){var n=ju(t+"");if(arguments.length<2){for(var r=Ou(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?Pu:e?$u:zu)(n,e))},text:function(t){return arguments.length?this.each(null==t?Lu:("function"==typeof t?Iu:Tu)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Ru:("function"==typeof t?Hu:Nu)(t)):this.node().innerHTML},raise:function(){return this.each(Bu)},lower:function(){return this.each(Wu)},append:function(t){var e="function"==typeof t?t:Vu(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:Vu(t),r=null==e?Uu:"function"==typeof e?e:Yh(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(qu)},clone:function(t){return this.select(t?Gu:Yu)},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+""),s=o.length;if(!(arguments.length<2)){for(a=e?Zu:Xu,r=0;r<s;++r)this.each(a(o[r],e,n));return this}var a=this.node().__on;if(a)for(var l,c=0,h=a.length;c<h;++c)for(r=0,l=a[c];r<s;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?Ju:Qu)(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,s=i.length;o<s;++o)(r=i[o])&&(yield r)}};const rd=nd;var id=n("./node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js"),od=n("./node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js");function sd(t,e,n){var r=new od.M4;return r.restart(n=>{r.stop(),t(n+e)},e=null==e?0:+e,n),r}var ad=(0,id.A)("start","end","cancel","interrupt"),ld=[];function cd(t,e,n,r,i,o){var s=t.__transition;if(s){if(n in s)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(l){var c,h,u,d;if(1!==n.state)return a();for(c in i)if((d=i[c]).name===n.name){if(3===d.state)return sd(o);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[c]):+c<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete i[c])}if(sd(function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(u=n.tween.length),c=0,h=-1;c<u;++c)(d=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++h]=d);r.length=h+1}}function s(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(a),n.state=5,1),o=-1,s=r.length;++o<s;)r[o].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),a())}function a(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=(0,od.O1)(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:ad,tween:ld,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function hd(t,e){var n=dd(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function ud(t,e){var n=dd(t,e);if(n.state>3)throw new Error("too late; already running");return n}function dd(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var fd,pd=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/number.js"),gd=180/Math.PI,md={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function yd(t,e,n,r,i,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),t*r<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*gd,skewX:Math.atan(l)*gd,scaleX:s,scaleY:a}}function vd(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,s){var a=[],l=[];return o=t(o),s=t(s),function(t,r,i,o,s,a){if(t!==i||r!==o){var l=s.push("translate(",null,e,null,n);a.push({i:l-4,x:(0,pd.A)(t,i)},{i:l-2,x:(0,pd.A)(r,o)})}else(i||o)&&s.push("translate("+i+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,a,l),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:(0,pd.A)(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,s.rotate,a,l),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:(0,pd.A)(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,s.skewX,a,l),function(t,e,n,r,o,s){if(t!==n||e!==r){var a=o.push(i(o)+"scale(",null,",",null,")");s.push({i:a-4,x:(0,pd.A)(t,n)},{i:a-2,x:(0,pd.A)(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,a,l),o=s=null,function(t){for(var e,n=-1,r=l.length;++n<r;)a[(e=l[n]).i]=e.x(t);return a.join("")}}}var xd=vd(function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?md:yd(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),bd=vd(function(t){return null==t?md:(fd||(fd=document.createElementNS("http://www.w3.org/2000/svg","g")),fd.setAttribute("transform",t),(t=fd.transform.baseVal.consolidate())?yd((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):md)},", ",")",")");function wd(t,e){var n,r;return function(){var i=ud(this,t),o=i.tween;if(o!==n)for(var s=0,a=(r=n=o).length;s<a;++s)if(r[s].name===e){(r=r.slice()).splice(s,1);break}i.tween=r}}function _d(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=ud(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:e,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===e){i[l]=a;break}l===c&&i.push(a)}o.tween=i}}function Md(t,e,n){var r=t._id;return t.each(function(){var t=ud(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return dd(t,r).value[e]}}var kd=n("./node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.js"),Cd=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.js"),jd=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.js");function Od(t,e){var n;return("number"==typeof e?pd.A:e instanceof kd.Ay?Cd.Ay:(n=(0,kd.Ay)(e))?(e=n,Cd.Ay):jd.A)(t,e)}function Ad(t){return function(){this.removeAttribute(t)}}function Ed(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Sd(t,e,n){var r,i,o=n+"";return function(){var s=this.getAttribute(t);return s===o?null:s===r?i:i=e(r=s,n)}}function $d(t,e,n){var r,i,o=n+"";return function(){var s=this.getAttributeNS(t.space,t.local);return s===o?null:s===r?i:i=e(r=s,n)}}function zd(t,e,n){var r,i,o;return function(){var s,a,l=n(this);if(null!=l)return(s=this.getAttribute(t))===(a=l+"")?null:s===r&&a===i?o:(i=a,o=e(r=s,l));this.removeAttribute(t)}}function Pd(t,e,n){var r,i,o;return function(){var s,a,l=n(this);if(null!=l)return(s=this.getAttributeNS(t.space,t.local))===(a=l+"")?null:s===r&&a===i?o:(i=a,o=e(r=s,l));this.removeAttributeNS(t.space,t.local)}}function Ld(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 Td(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 Id(t,e){return function(){hd(this,t).delay=+e.apply(this,arguments)}}function Rd(t,e){return e=+e,function(){hd(this,t).delay=e}}function Nd(t,e){return function(){ud(this,t).duration=+e.apply(this,arguments)}}function Hd(t,e){return e=+e,function(){ud(this,t).duration=e}}var Bd=rd.prototype.constructor;function Wd(t){return function(){this.style.removeProperty(t)}}var Fd=0;function Dd(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Vd(){return++Fd}var Ud=rd.prototype;Dd.prototype=function(t){return rd().transition(t)}.prototype={constructor:Dd,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Yh(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a,l,c=r[s],h=c.length,u=o[s]=new Array(h),d=0;d<h;++d)(a=c[d])&&(l=t.call(a,a.__data__,d,c))&&("__data__"in a&&(l.__data__=a.__data__),u[d]=l,cd(u[d],e,n,d,u,dd(a,n)));return new Dd(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Xh(t));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l,c=r[a],h=c.length,u=0;u<h;++u)if(l=c[u]){for(var d,f=t.call(l,l.__data__,u,c),p=dd(l,n),g=0,m=f.length;g<m;++g)(d=f[g])&&cd(d,e,n,g,f,p);o.push(f),s.push(l)}return new Dd(o,s,e,n)},selectChild:Ud.selectChild,selectChildren:Ud.selectChildren,filter:function(t){"function"!=typeof t&&(t=Zh(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,s=e[i],a=s.length,l=r[i]=[],c=0;c<a;++c)(o=s[c])&&t.call(o,o.__data__,c,s)&&l.push(o);return new Dd(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=Math.min(r,n.length),o=new Array(r),s=0;s<i;++s)for(var a,l=e[s],c=n[s],h=l.length,u=o[s]=new Array(h),d=0;d<h;++d)(a=l[d]||c[d])&&(u[d]=a);for(;s<r;++s)o[s]=e[s];return new Dd(o,this._parents,this._name,this._id)},selection:function(){return new Bd(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Vd(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],l=a.length,c=0;c<l;++c)if(s=a[c]){var h=dd(s,e);cd(s,t,n,c,a,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Dd(r,this._parents,t,n)},call:Ud.call,nodes:Ud.nodes,node:Ud.node,size:Ud.size,empty:Ud.empty,each:Ud.each,on:function(t,e){var n=this._id;return arguments.length<2?dd(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)?hd:ud;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(e,n),s.on=i}}(n,t,e))},attr:function(t,e){var n=uu(t),r="transform"===n?bd:Od;return this.attrTween(t,"function"==typeof e?(n.local?Pd:zd)(n,r,Md(this,"attr."+t,e)):null==e?(n.local?Ed:Ad)(n):(n.local?$d:Sd)(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=uu(t);return this.tween(n,(r.local?Ld:Td)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?xd:Od;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=_u(this,t),s=(this.style.removeProperty(t),_u(this,t));return o===s?null:o===n&&s===r?i:i=e(n=o,r=s)}}(t,r)).on("end.style."+t,Wd(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,o;return function(){var s=_u(this,t),a=n(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=_u(this,t)),s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a))}}(t,r,Md(this,"style."+t,e))).each(function(t,e){var n,r,i,o,s="style."+e,a="end."+s;return function(){var l=ud(this,t),c=l.on,h=null==l.value[s]?o||(o=Wd(e)):void 0;c===n&&i===h||(r=(n=c).copy()).on(a,i=h),l.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,o=n+"";return function(){var s=_u(this,t);return s===o?null:s===r?i:i=e(r=s,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,n??""))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=e??""}}(Md(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=dd(this.node(),n).tween,o=0,s=i.length;o<s;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?wd:_d)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Id:Rd)(e,t)):dd(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Nd:Hd)(e,t)):dd(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(){ud(this,t).ease=e}}(e,t)):dd(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;ud(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,s){var a={value:s},l={value:function(){0===--i&&o()}};n.each(function(){var n=ud(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e}),0===i&&o()})},[Symbol.iterator]:Ud[Symbol.iterator]};var qd={time:null,delay:0,duration:250,ease:n("./node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.js").wq};function Yd(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}rd.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var n,r,i,o=t.__transition,s=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):s=!1;s&&delete t.__transition}}(this,t)})},rd.prototype.transition=function(t){var e,n;t instanceof Dd?(e=t._id,t=t._name):(e=Vd(),(n=qd).time=(0,od.tB)(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],l=a.length,c=0;c<l;++c)(s=a[c])&&cd(s,t,e,c,a,n||Yd(s,e));return new Dd(r,this._parents,t,e)};Math;function Gd(t){return{type:t}}["w","e"].map(Gd),["n","s"].map(Gd),["n","w","e","s","nw","ne","sw","se"].map(Gd);var Xd=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/center.js"),Zd=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/collide.js"),Kd=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/link.js"),Qd=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/manyBody.js"),Jd=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/simulation.js"),tf=n("./node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/index.js"),ef=n("./node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/tree.js"),nf=n("./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ticks.js"),rf=n("./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisect.js"),of=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/value.js");function sf(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function af(t){return+t}var lf=[0,1];function cf(t){return t}function hf(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function uf(t,e,n){var r=t[0],i=t[1],o=e[0],s=e[1];return i<r?(r=hf(i,r),o=n(s,o)):(r=hf(r,i),o=n(o,s)),function(t){return o(r(t))}}function df(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),s=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<r;)i[s]=hf(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(e){var n=(0,rf.Ay)(t,e,1,r)-1;return o[n](i[n](e))}}function ff(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var pf=n("./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatSpecifier.js"),gf=n("./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/exponent.js"),mf=n("./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/defaultLocale.js");function yf(){var t=function(){var t,e,n,r,i,o,s=lf,a=lf,l=of.A,c=cf;function h(){var t=Math.min(s.length,a.length);return c!==cf&&(c=function(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(s[0],s[t-1])),r=t>2?df:uf,i=o=null,u}function u(e){return null==e||isNaN(e=+e)?n:(i||(i=r(s.map(t),a,l)))(t(c(e)))}return u.invert=function(n){return c(e((o||(o=r(a,s.map(t),pd.A)))(n)))},u.domain=function(t){return arguments.length?(s=Array.from(t,af),h()):s.slice()},u.range=function(t){return arguments.length?(a=Array.from(t),h()):a.slice()},u.rangeRound=function(t){return a=Array.from(t),l=sf,h()},u.clamp=function(t){return arguments.length?(c=!!t||cf,h()):c!==cf},u.interpolate=function(t){return arguments.length?(l=t,h()):l},u.unknown=function(t){return arguments.length?(n=t,u):n},function(n,r){return t=n,e=r,h()}}()(cf,cf);return t.copy=function(){return e=t,yf().domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());var e},ff.apply(t,arguments),function(t){var e=t.domain;return t.ticks=function(t){var n=e();return(0,nf.Ay)(n[0],n[n.length-1],t??10)},t.tickFormat=function(t,n){var r=e();return function(t,e,n,r){var i,o=(0,nf.sG)(t,e,n);switch((r=(0,pf.A)(r??",f")).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,gf.A)(e)/3)))-(0,gf.A)(Math.abs(t)))}(o,s))||(r.precision=i),(0,mf.s)(r,s);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,(0,gf.A)(e)-(0,gf.A)(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-(0,gf.A)(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return(0,mf.GP)(r)}(r[0],r[r.length-1],t??10,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),s=0,a=o.length-1,l=o[s],c=o[a],h=10;for(c<l&&(i=l,l=c,c=i,i=s,s=a,a=i);h-- >0;){if((i=(0,nf.lq)(l,c,n))===r)return o[s]=l,o[a]=c,e(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}(t)}var vf=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/arc.js"),xf=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/line.js"),bf=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/array.js"),wf=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.js");function _f(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Mf(t){return t}var kf=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/math.js"),Cf=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.js");function jf(t,e,n){this.k=t,this.x=e,this.y=n}jf.prototype={constructor:jf,scale:function(t){return 1===t?this:new jf(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new jf(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+")"}},new jf(1,0,0),Hh("progress-card",{component:t=>{const[{datum:e,data:n,indexes:r,width:i=280,height:o=120,iconSize:s=32,gap:a=12,progressHeight:l=8,borderRadius:c=12,positionH:h="normal",themeColors:u,valueFormatter:d=t=>`${t}%`},f]=Ih(t,["width","height","iconSize","gap","progressHeight","borderRadius"]),p=e.value,g=null!=p?p:0,m=Math.max(...n.items.map(t=>{var e;return null!==(e=t.value)&&void 0!==e?e:0}),100),y=i-2*a,v=yf().domain([0,m]).range([0,y])(g),x=`${u.colorPrimary}-progress`,b=`${u.colorPrimaryBg}-progress-bg`,w=Hc(F(dh,{indexes:r})),_="flipped"===h?i-a-s:a,M=a,k="flipped"===h?a:s+2*a,C=i-s-3*a,j=M,O=o-a-l,A=void 0!==p;return D(Y,Object.assign({},f,{children:[D(U,{children:[D("linearGradient",{id:x,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[F("stop",{offset:"0%",stopColor:u.colorPrimary}),F("stop",{offset:"100%",stopColor:ea.A.mix(u.colorPrimary,"#fff",20).toHexString()})]}),D("linearGradient",{id:b,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[F("stop",{offset:"0%",stopColor:u.colorPrimaryBg}),F("stop",{offset:"100%",stopColor:u.colorBg})]})]}),F(Z,{x:0,y:0,width:i,height:o,fill:u.colorBgElevated,stroke:u.colorPrimaryBg,strokeWidth:1,rx:c,ry:c,"data-element-type":"shape"}),F(hh,{indexes:r,x:_,y:M,size:s,fill:u.colorPrimary}),F(dh,{indexes:r,x:k,y:j,width:C,alignHorizontal:"flipped"===h?"right":"left",alignVertical:"top",fontSize:16,fontWeight:"medium",fill:u.colorText,children:e.label}),A&&F(ph,{indexes:r,x:k,y:j+w.height,width:C,alignHorizontal:"flipped"===h?"right":"left",alignVertical:"top",lineHeight:1,fontSize:24,fontWeight:"bold",fill:u.colorPrimary,value:g,formatter:d}),F(lh,{indexes:r,x:k,y:j+w.height+(A?27:4),width:C,alignHorizontal:"flipped"===h?"right":"left",alignVertical:"top",fontSize:11,fill:u.colorTextSecondary,lineNumber:A?2:3,wordWrap:!0,children:e.desc}),F(Z,{x:a,y:O,width:y,height:l,fill:`url(#${b})`,rx:l/2,ry:l/2,"data-element-type":"shape"}),F(Z,{x:a,y:O,width:v,height:l,fill:`url(#${x})`,rx:l/2,ry:l/2,"data-element-type":"shape"})]}))},composites:["icon","label","value","desc"]}),Hh("quarter-circular",{component:t=>{const[{datum:e,indexes:n,width:r=280,height:i=120,iconSize:o=30,circleRadius:s=80,positionH:a="normal",positionV:l="normal",themeColors:c},h]=Ih(t,["width","height","iconSize","circleRadius"]),u=4*s/(3*Math.PI),d=40,f=String(n[0]+1).padStart(2,"0"),p="flipped"===a,g="flipped"===l,m=p?{diagonalStartX:r-4,diagonalStartY:g?i-35:35,diagonalEndX:r-d,diagonalEndY:g?i-4:4,topLineStartX:r-d,topLineEndX:u,topLineY:g?i-4:4}:{diagonalStartX:4,diagonalStartY:g?i-35:35,diagonalEndX:d,diagonalEndY:g?i-4:4,topLineStartX:d,topLineEndX:r-u,topLineY:g?i-4:4},y=(()=>{if(p){const t=s+10;return{valueX:r-30,contentX:t,contentWidth:r-t-d,circleX:0,circleY:g?0:i,iconX:u-o/2}}return{valueX:0,contentX:d,contentWidth:r-d-s-10,circleX:r,circleY:g?0:i,iconX:r-u-o/2}})(),v=g?u-o/2:i-u-o/2,x=20+Hc(F(dh,{indexes:n,width:y.contentWidth,children:e.label})).height+8;return D(Y,Object.assign({},h,{width:r,height:i,children:[D(gh,{children:[F(G,{d:`M ${m.diagonalStartX} ${m.diagonalStartY} L ${m.diagonalEndX} ${m.diagonalEndY}`,stroke:c.colorPrimary,strokeWidth:2,fill:"none"}),F(G,{d:`M ${m.topLineStartX} ${m.topLineY} L ${m.topLineEndX} ${m.topLineY}`,stroke:c.colorPrimary,strokeWidth:2,fill:"none"}),F(q,{x:m.diagonalStartX-4,y:m.diagonalStartY-4,width:8,height:8,fill:c.colorPrimary}),F(q,{x:m.topLineEndX-4,y:m.topLineY-4,width:8,height:8,fill:c.colorPrimary})]}),D(Y,{children:[F(Pc,{x:y.valueX,y:40,fontSize:28,fontWeight:"bold",fill:c.colorPrimary,children:f}),F(G,{d:(()=>{const{circleX:t,circleY:e}=y;return p?g?`M ${t} ${e} L ${t} ${e+s} A ${s} ${s} 0 0 0 ${t+s} ${e} Z`:`M ${t} ${e} L ${t} ${e-s} A ${s} ${s} 0 0 1 ${t+s} ${e} Z`:g?`M ${t} ${e} L ${t} ${e+s} A ${s} ${s} 0 0 1 ${t-s} ${e} Z`:`M ${t} ${e} L ${t} ${e-s} A ${s} ${s} 0 0 0 ${t-s} ${e} Z`})(),fill:c.colorPrimary,"data-element-type":"shape"}),e.icon&&F(hh,{indexes:n,x:y.iconX,y:v,size:o,fill:c.colorWhite}),e.label&&F(dh,{indexes:n,x:y.contentX,y:20,width:y.contentWidth,fontWeight:"bold",fill:c.colorText,alignHorizontal:p?"right":"left",children:e.label}),e.desc&&F(lh,{indexes:n,x:y.contentX,y:x,width:y.contentWidth,fill:c.colorTextSecondary,alignHorizontal:p?"right":"left",children:e.desc})]})]}))},composites:["icon","label","desc"]}),Hh("quarter-simple-card",{component:t=>{const[{datum:e,indexes:n,width:r=150,height:i=150,iconSize:o=30,padding:s=20,borderRadius:a=16,positionH:l="center",positionV:c="middle",themeColors:h},u]=Ih(t,["width","height","iconSize","padding","borderRadius"]),d=r-2*s,f="flipped"===l?r-s-o:"center"===l?(r-o)/2:s,p=s,g=p+o+8,m="flipped"===l?r-s-d:s,y=g+Hc(F(dh,{indexes:n,width:d,children:e.label})).height+4,v=m;let x="";return x="center"===l&&"middle"===c?`\n M ${a} 0\n L ${r-a} 0\n Q ${r} 0 ${r} ${a}\n L ${r} ${i-a}\n Q ${r} ${i} ${r-a} ${i}\n L ${a} ${i}\n Q 0 ${i} 0 ${i-a}\n L 0 ${a}\n Q 0 0 ${a} 0\n Z\n`:"flipped"===l&&"flipped"===c?`\n M ${a} 0\n L ${r-a} 0\n Q ${r} 0 ${r} ${a}\n L ${r} ${i-a}\n Q ${r} ${i} ${r-a} ${i}\n L ${a} ${i}\n Q 0 ${i} 0 ${i-a}\n L 0 0\n L ${a} 0\n Z\n`:"normal"===l&&"flipped"===c?`\n M 0 0\n L ${r} 0\n L ${r} ${i-a}\n Q ${r} ${i} ${r-a} ${i}\n L ${a} ${i}\n Q 0 ${i} 0 ${i-a}\n L 0 ${a}\n Q 0 0 ${a} 0\n Z\n`:"flipped"===l?`\n M ${a} 0\n L ${r-a} 0\n Q ${r} 0 ${r} ${a}\n L ${r} ${i-a}\n Q ${r} ${i} ${r-a} ${i}\n L 0 ${i}\n L 0 ${a}\n Q 0 0 ${a} 0\n Z\n`:`\n M ${a} 0\n L ${r-a} 0\n Q ${r} 0 ${r} ${a}\n L ${r} ${i}\n L ${a} ${i}\n Q 0 ${i} 0 ${i-a}\n L 0 ${a}\n Q 0 0 ${a} 0\n Z\n`,D(Y,Object.assign({},u,{children:[F(G,{d:x,x:0,y:0,width:r,height:i,fill:h.colorPrimary,"data-element-type":"shape"}),F(hh,{indexes:n,x:f,y:p,size:o,fill:h.colorBg}),F(dh,{indexes:n,x:m,y:g,width:d,fontSize:14,fontWeight:"bold",fill:h.colorBg,alignHorizontal:"flipped"===l?"right":"left",children:e.label}),e.desc&&F(lh,{indexes:n,x:v,y,width:d,fontSize:11,wordWrap:!0,fill:h.colorBg,alignHorizontal:"flipped"===l?"right":"left",children:e.desc})]}))},composites:["icon","label","desc"]}),Hh("ribbon-card",{component:t=>{const[{datum:e,indexes:n,width:r=240,height:i=140,iconSize:o=28,gap:s=12,ribbonHeight:a=32,themeColors:l},c]=Ih(t,["width","height","iconSize","gap","ribbonHeight"]),h=`${l.colorPrimary}-ribbon`;return D(Y,Object.assign({},c,{children:[F(U,{children:D("linearGradient",{id:h,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[F("stop",{offset:"0%",stopColor:l.colorPrimary}),F("stop",{offset:"100%",stopColor:(0,ea.A)(l.colorPrimary).darken(15).toHexString()})]})}),D(gh,{children:[F(Z,{x:0,y:0,width:r,height:i,fill:l.colorBgElevated,stroke:l.colorPrimaryBg,strokeWidth:1,rx:8,ry:8}),F(Z,{x:0,y:0,width:r,height:a,fill:`url(#${h})`,rx:8,ry:8}),F(Z,{x:0,y:8,width:r,height:a-8,fill:`url(#${h})`}),F(G,{x:r-20,y:a,width:20,height:8,fill:(0,ea.A)(l.colorPrimary).darken(25).toHexString(),d:"M0,0 L20,0 L15,8 L5,8 Z"})]}),F(hh,{indexes:n,x:s,y:a+s,size:o,fill:l.colorPrimary}),F(dh,{indexes:n,x:o+2*s,y:a+s,width:r-o-3*s,height:o,alignHorizontal:"left",alignVertical:"middle",lineHeight:1,fontWeight:"bold",fill:l.colorText,children:e.label}),F(lh,{indexes:n,x:s,y:a+o+s+5,width:r-2*s,alignHorizontal:"left",fill:l.colorTextSecondary,lineNumber:3,wordWrap:!0,children:e.desc}),F(hh,{indexes:n,x:r-s-8,y:s/2,size:16,fill:l.colorWhite})]}))},composites:["icon","label","desc"]}),Hh("rounded-rect-node",{component:t=>{const[{indexes:e,datum:n,themeColors:r,width:i=300,height:o=40,padding:s=4,positionH:a="normal"},l]=Ih(t,["width","height","borderRadius","padding"]),c=o/2,h=c,u=s,d=i-2*c,f=o-2*s;return D(Y,Object.assign({},l,{children:[F(Z,{"data-element-type":"shape",width:i,height:o,rx:c,ry:c,fill:r.colorPrimaryBg,stroke:r.colorPrimary,strokeWidth:1,opacity:.8}),F(dh,{indexes:e,x:h,y:u,width:d,height:f,alignHorizontal:"flipped"===a?"right":"center"===a?"center":"left",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:r.colorText,children:n.label})]}))},composites:["label"]}),Hh("simple-circle-node",{component:t=>{const[{width:e=24,height:n=e,strokeWidth:r=2,themeColors:i,datum:o},s]=Ih(t,["width","height"]),a=Math.min(e,n)-r,l=r/2;return D(Y,Object.assign({},s,{width:e,height:n,children:[F(Z,{width:e,height:n,fill:"none",visibility:"hidden"}),F(q,{x:l,y:l,width:a,height:a,fill:i.colorPrimary,stroke:i.isDarkMode?"#FFF":"#000",strokeWidth:r,"data-element-type":"shape",children:F("title",{children:o.label||o.desc})})]}))},composites:[]});const Of=t=>{const{x:e=0,y:n=0,width:r=100,height:i=40,fill:o="#FF356A",size:s=10}=t;return F(X,{width:r,height:i,points:[{x:e,y:n},{x:e+r-s,y:n},{x:e+r,y:n+i/2},{x:e+r-s,y:n+i},{x:e,y:n+i},{x:e+s,y:n+i/2}],fill:o,"data-element-type":"shape"})};Hh("simple-horizontal-arrow",{component:t=>{const[{indexes:e,datum:n,width:r=140,themeColors:i,positionV:o="normal"},s]=Ih(t,["width"]),a="flipped"!==o,l=a?"bottom":"top",c=F(dh,{indexes:e,width:r,fill:i.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),h=F(lh,{indexes:e,width:r,fill:i.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),u=10,d=Hc(c),f=Hc(h),p=d.height+f.height;return F(Y,Object.assign({width:r,height:p+u+30+u+p},s,{children:D(yh,{flexDirection:"column",alignItems:"center",children:[a?D(W,{children:[h,c,F(sh,{height:u})]}):F(W,{children:F(sh,{height:p+u})}),D(mh,{horizontal:"center",vertical:"middle",children:[F(Of,{width:r,height:30,fill:i.colorPrimary}),F(Pc,{width:r,height:30,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:n.time?n.time:String(e[0]+1).padStart(2,"0").slice(-2)})]}),a?F(W,{children:F(sh,{height:p+u})}):D(W,{children:[F(sh,{height:u}),c,h]})]})}))},composites:["label","desc","time"]}),Hh("simple-illus",{component:t=>{const[{indexes:e,datum:n,width:r=180,illusSize:i=r,gap:o=8,themeColors:s,usePaletteColor:a=!1},l]=Ih(t,["width","illusSize","gap","usePaletteColor"]),{label:c,desc:h}=n,u=F(dh,{indexes:e,width:r,alignHorizontal:"center",alignVertical:"middle",fill:a?s.colorPrimary:s.colorText,children:c}),d=Hc(u);return D(yh,Object.assign({},l,{width:r,height:i+o+d.height+o+48,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:o,children:[F(ah,{indexes:e,width:i,height:i}),u,F(lh,{indexes:e,width:r,alignHorizontal:"center",alignVertical:"top",fill:s.colorTextSecondary,lineNumber:3,children:h})]}))},composites:["illus","label","desc"]}),Hh("simple",{component:t=>{const[{indexes:e,datum:n,width:r=200,height:i,gap:o=4,showIcon:s=!0,iconSize:a=30,iconType:l="default",positionH:c="normal",positionV:h="normal",usePaletteColor:u=!1,themeColors:d},f]=Ih(t,["width","height","gap","showIcon","iconSize","iconType","usePaletteColor"]),{label:p,desc:g,icon:m}=n,y="normal"===(v=c)?"left":"flipped"===v?"right":"center";var v;const x=u?d.colorPrimary:d.colorText,b=Hc(F(dh,{indexes:e,width:r,alignHorizontal:"center",alignVertical:"middle",fill:x,children:p})),w=s?"circle"===l?F(uh,{indexes:e,size:a,fill:d.colorPrimary,colorBg:d.colorBg}):F(hh,{indexes:e,size:a,fill:d.colorTextSecondary}):null;if(!s||!m){const t=i?Math.max(0,i-b.height-o):void 0,n=t?t<=60?1:Math.floor(t/(1.4*14)):2,s=i?"middle"===h?(i-b.height-(t||0)-o)/2:"flipped"===h?i-b.height-(t||0)-o:0:0;return D(Y,Object.assign({},f,{children:[F(dh,{indexes:e,width:r,y:s,alignHorizontal:y,alignVertical:"middle",fill:x,children:p}),F(lh,{indexes:e,width:r,height:t,y:s+b.height+o,alignHorizontal:y,alignVertical:"top",lineNumber:n,fill:d.colorTextSecondary,children:g})]}))}if("center"===c){const t=s&&m?a:0,n=i?Math.max(0,i-b.height-t-2*o):void 0,l=n?n<=60?1:Math.floor(n/(1.4*14)):2,c=b.height+(n||0)+o,u=i?"middle"===h?(i-c-t-o)/2:"flipped"===h?i-c-t-o:0:0;return F(yh,Object.assign({},f,{flexDirection:"column",gap:o,alignItems:"center",children:D(W,"flipped"===h?{children:[D(Y,{children:[F(dh,{indexes:e,width:r,y:u,alignHorizontal:"center",alignVertical:"middle",fill:x,children:p}),F(lh,{indexes:e,width:r,height:n,y:u+b.height+o,alignHorizontal:"center",alignVertical:"bottom",lineNumber:l,fill:d.colorTextSecondary,children:g})]}),w]}:{children:[w,D(Y,{children:[F(dh,{indexes:e,width:r,y:u,alignHorizontal:"center",alignVertical:"middle",fill:x,children:p}),F(lh,{indexes:e,width:r,height:n,y:u+b.height+o,alignHorizontal:"center",alignVertical:"top",lineNumber:l,fill:d.colorTextSecondary,children:g})]})]})}))}const _=Hc(w),M=Math.max(r-_.width-o,0),k=i?Math.max(0,i-b.height-o):void 0,C=k?k<=60?1:Math.floor(k/(1.4*14)):2,j=i?"middle"===h?(i-b.height-(k||0)-o)/2:"flipped"===h?i-b.height-(k||0)-o:0:0;return F(yh,Object.assign({},f,{flexDirection:"row",gap:o,alignItems:function(t){return"normal"===t?"flex-start":"flipped"===t?"flex-end":"center"}(h),children:D(W,"flipped"===c?{children:[D(Y,{children:[F(dh,{indexes:e,width:M,y:j,alignHorizontal:"right",alignVertical:"middle",fill:x,children:p}),F(lh,{indexes:e,width:M,height:k,y:j+b.height+o,alignHorizontal:"right",alignVertical:"top",lineNumber:C,fill:d.colorTextSecondary,children:g})]}),w]}:{children:[w,D(Y,{children:[F(dh,{indexes:e,width:M,y:j,alignHorizontal:"left",alignVertical:"middle",fill:x,children:p}),F(lh,{indexes:e,width:M,height:k,y:j+b.height+o,alignHorizontal:"left",alignVertical:"top",lineNumber:C,fill:d.colorTextSecondary,children:g})]})]})}))},composites:["icon","label","desc"]});const Af=t=>{const{x:e=0,y:n=0,width:r=30,height:i=100,fill:o="#FF356A",size:s=10}=t;return F(X,{width:r,height:i,points:[{x:e,y:n},{x:e+r/2,y:n+s},{x:e+r,y:n},{x:e+r,y:n+i-s},{x:e+r/2,y:n+i},{x:e,y:n+i-s}],fill:o,"data-element-type":"shape"})};Hh("simple-vertical-arrow",{component:t=>{const[{indexes:e,datum:n,height:r=140,themeColors:i,positionH:o="normal"},s]=Ih(t,["height"]),a="normal"===o?"right":"left",l=F(dh,{indexes:e,width:120,fill:i.colorText,alignHorizontal:a,alignVertical:"middle",fontSize:14,children:n.label}),c=F(lh,{indexes:e,width:120,fill:i.colorTextSecondary,alignHorizontal:a,alignVertical:"top",children:n.desc}),h="flipped"!==o;return F(Y,Object.assign({width:300,height:r},s,{children:D(yh,{flexDirection:"row",alignItems:"center",children:[h?D(W,{children:[D(yh,{flexDirection:"column",alignItems:"flex-end",children:[l,c]}),F(sh,{width:15})]}):F(W,{children:F(sh,{width:135})}),D(mh,{horizontal:"center",vertical:"middle",children:[F(Af,{width:30,height:r,fill:i.colorPrimary}),F(Pc,{width:30,height:r,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:String(e[0]+1).padStart(2,"0").slice(-2)})]}),h?F(W,{children:F(sh,{width:135})}):D(W,{children:[F(sh,{width:15}),D(yh,{flexDirection:"column",alignItems:"flex-start",children:[l,c]})]})]})}))},composites:["label","desc"]}),Hh("underline-text",{component:t=>{const[{datum:e,indexes:n,width:r=200,gap:i=4,positionH:o="center",themeColors:s},a]=Ih(t,["width","height","gap"]),l=Hc(F(dh,{indexes:n,fontSize:18,fontWeight:"bold",width:r,children:e.label})),c=e.desc?Hc(F(lh,{indexes:n,width:r,wordWrap:!0,children:e.desc})):{width:0,height:0},h="center"===o?"center":"flipped"===o?"right":"left",u="center"===o?(r-80)/2:"flipped"===o?r-80:0,d=0+l.height+i,f=d+3+2*i;return D(Y,Object.assign({width:r,height:l.height+i+3+(e.desc?2*i+c.height:0)},a,{children:[e.label&&F(dh,{indexes:n,x:0,y:0,width:r,alignHorizontal:h,fill:s.colorPrimary,fontSize:18,fontWeight:"bold",children:e.label}),e.label&&F(Z,{x:u,y:d,width:80,height:3,fill:s.colorPrimary,"data-element-type":"shape"}),e.desc&&F(lh,{indexes:n,width:r,x:0,y:f,alignHorizontal:h,wordWrap:!0,fill:s.colorText,children:e.desc})]}))},composites:["label","desc"]});const Ef=t=>{const{x:e=0,y:n=0,width:r=30,height:i=100,fill:o="#FF356A",size:s=10}=t;return F(X,{width:r,height:i,points:[{x:e,y:n},{x:e+r/2,y:n+s},{x:e+r,y:n},{x:e+r,y:n+i-s},{x:e+r/2,y:n+i},{x:e,y:n+i-s}],fill:o,"data-element-type":"shape"})},Sf=t=>{const{x:e=0,y:n=0,width:r=50,height:i=10,fill:o,positionH:s="normal"}=t,a=i/2,l=r-a,c=a;return D(Y,{x:e,y:n,width:r,height:i,children:[F(q,{width:i,height:i,fill:o,x:"normal"===s?0:l-a,"data-element-type":"shape"}),F(G,{d:"normal"===s?`M${a},${c} L${a+l},${c}`:`M0,${c} L${l-a},${c}`,strokeWidth:2,stroke:o,"data-element-type":"shape"})]})};Hh("vertical-icon-arrow",{component:t=>{const[{indexes:e,datum:n,height:r=140,themeColors:i,positionH:o="normal"},s]=Ih(t,["height"]),a="flipped"!==o?"right":"left",l=F(dh,{indexes:e,width:120,fill:i.colorText,alignHorizontal:a,alignVertical:"middle",fontSize:14,children:n.label}),c=F(lh,{indexes:e,width:120,fill:i.colorTextSecondary,alignHorizontal:a,alignVertical:"top",children:n.desc}),h=F(uh,{indexes:e,fill:i.colorPrimary,colorBg:i.colorWhite}),u=F(Sf,{width:30,height:8,fill:i.colorPrimary,positionH:o}),d="flipped"!==o,f=Hc(l),p=Hc(h),g=Hc(u),m=f.width+5+g.width-p.width-25,y=2*Math.max(f.width+5+g.width,25+p.width)+30;return F(Y,Object.assign({width:y,height:r},s,{children:D(yh,{flexDirection:"row",alignItems:"center",children:[D(W,d?{children:[D(yh,{flexDirection:"column",alignItems:"flex-end",children:[l,c]}),F(sh,{width:5}),u]}:{children:[F(sh,{width:m}),h,F(sh,{width:25})]}),D(mh,{horizontal:"center",vertical:"middle",children:[F(Ef,{width:30,height:r,fill:i.colorPrimary}),F(Pc,{width:30,height:r,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:String(e[0]+1).padStart(2,"0").slice(-2)})]}),D(W,d?{children:[F(sh,{width:25}),h]}:{children:[u,F(sh,{width:5}),D(yh,{flexDirection:"column",alignItems:"flex-start",children:[l,c]})]})]})}))},composites:["icon","label","desc"]});const $f=new Map;function zf(t,e){$f.set(t,e)}zf("chart-bar",{component:t=>{var e,n,r;const{Title:i,Item:o,data:s,width:a,gap:l,barGap:c,barHeight:h=28,barAreaWidth:u,labelGap:d=16,padding:f=24,showValue:p=!0,options:g,valueFormatter:m=t=>t.toString()}=t,y=null!==(e=null!=u?u:a)&&void 0!==e?e:480,{title:v,desc:x,items:b=[],xTitle:w,yTitle:_}=s,M=i?F(i,{title:v,desc:x}):null;if(0===b.length)return F(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:M});const[k,C,j,O]=Oc(f),A=null!==(n=b[0])&&void 0!==n?n:{label:"",value:0},E=Hc(F(o,{indexes:[0],datum:A,data:s})),S=E.width||140,$=E.height||h,z=Math.max(h,$),P=Math.max(12,.35*z),L=null!==(r=null!=c?c:l)&&void 0!==r?r:P,T=b.map(t=>{var e;return null!==(e=t.value)&&void 0!==e?e:0}),I=Math.max(...T,0),R=Math.min(...T,0),N=R<0?1.1*R:0;let H=I>0?1.1*I:0;H===N&&(H=N+1);const B=yf().domain([N,H]).range([0,y]),W=Math.min(Math.max(B(0),0),y),V=Math.max(2,.02*y),U=b.length*(z+L)-L,q=_?24:0,X=w?24:0,K=k+q,Q=O+S+d,J=p?80:0,tt=Math.max(8,.2*z),et=Q+y+J+C,nt=K+U+tt+20+X+j,rt=$h(g.themeConfig),it=rt.colorText||"#666",ot=Ah(g),st=[],at=[],lt=[],ct=[],ht=[],ut=[],dt=[],ft=K+U+tt,pt=t=>Number.isInteger(t)?t.toString():t.toFixed(1);b.forEach((t,e)=>{var n;const r=[e],i=null!==(n=t.value)&&void 0!==n?n:0,a=K+e*(z+L),l=a+(z-h)/2,c=i>=0?Q+W:Q+B(i),u=i>=0?B(i)-W:W-B(i),d=0===u?V:u,f=Sh(g,[e])||rt.colorPrimary;st.push(F(Z,{x:c,y:l,width:d,height:h,fill:f,rx:6,ry:6,"data-element-type":"shape"})),p&&at.push(F(Pc,{x:i>=0?c+d+8:c-8,y:l+h/2,alignHorizontal:i>=0?"left":"right",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:f,children:m(i,t)})),lt.push(F(o,{indexes:r,datum:t,data:s,x:O,y:a+(z-$)/2,width:S,height:$,positionV:"middle"}))});const gt=Math.max(3,Math.min(7,Math.floor(y/80)));return B.ticks(gt).forEach(t=>{const e=Q+B(t);ut.push(F(G,{d:`M${e} ${K} L${e} ${K+U}`,stroke:it,strokeOpacity:.08,"data-element-type":"shape"})),ht.push(F(G,{d:`M${e-.5} ${ft} L${e-.5} ${ft+6}`,stroke:it,"data-element-type":"shape"})),ht.push(F(Pc,{x:e,y:ft+14,alignHorizontal:"center",alignVertical:"middle",fontSize:12,fill:it,children:pt(t)}))}),ct.push(F(G,{d:`M${Q} ${ft} L${Q+y} ${ft}`,stroke:it,"data-element-type":"shape"})),N<0&&ct.push(F(Z,{x:Q+W-.5,y:K,width:1,height:U,fill:ot,"data-element-type":"shape"})),_&&dt.push(F(Pc,{x:O+S/2,y:k+q/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:it,children:_})),w&&dt.push(F(Pc,{x:Q+y/2,y:ft+20+X/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:it,children:w})),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[M,D(Y,{width:et,height:nt,children:[F(Y,{children:ut}),F(Y,{children:st}),F(Y,{children:at}),F(Y,{children:dt}),F(Y,{children:[...ct,...ht]}),F(fh,{children:lt})]})]})},composites:["title","item","xTitle","yTitle"]}),zf("chart-column",{component:t=>{const{Title:e,Item:n,data:r,columnGap:i=60,columnWidth:o=50,padding:s=20,showValue:a=!0,options:l,valueFormatter:c=t=>t.toString()}=t,{title:h,desc:u,items:d=[]}=r,f=e?F(e,{title:h,desc:u}):null;if(0===d.length)return F(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:f});const p=$h(l.themeConfig),g=[...d.map(t=>{var e;return null!==(e=t.value)&&void 0!==e?e:0}),0].sort((t,e)=>t-e),m=g[0]<0,y=d.length*o+(d.length-1)*i,[v,x,b,w]=Oc(s),_=m&&a?10+(a?24:0):10,M=y+w+x,k=300+v+b+_,C=yf().domain([g[0],g[g.length-1]]).range([300,0]),j=C(0),O=[],A=[],E=[],S=[];return d.forEach((t,e)=>{var s;const h=[e],u=null!==(s=t.value)&&void 0!==s?s:0,d=w+e*(o+i),f=u>=0?C(u):j,g=Math.abs(C(u)-j),m=Sh(l,[e])||p.colorPrimary,y=`${m}-column-positive-${e}`,x=`${m}-column-negative-${e}`;S.push(D("linearGradient",{id:u>=0?y:x,x1:"0%",y1:u>=0?"0%":"100%",x2:"0%",y2:u>=0?"100%":"0%",children:[F("stop",{offset:"0%",stopColor:m}),F("stop",{offset:"100%",stopColor:ea.A.mix(m,"#fff",40).toHexString()})]})),O.push(F(Z,{x:d,y:v+f,width:o,height:g,fill:`url(#${u>=0?y:x})`,rx:8,ry:8,"data-element-type":"shape"})),a&&A.push(F(Pc,{x:d+o/2,y:u>=0?v+f-10:v+f+g+20,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:u>=0?"bottom":"top",fill:m,children:c(u,t)}));const b=o+i;E.push(F(n,{indexes:h,datum:t,data:r,x:d+o/2-b/2,y:v+300+_,width:b,positionH:"center"}))}),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,D(Y,{width:M,height:k,children:[F(U,{children:S}),F(Y,{children:O}),F(Y,{children:A}),F(fh,{children:E})]})]})},composites:["title","item"]}),zf("chart-line",{component:t=>{const{Title:e,Item:n,data:r,width:i,height:o=260,gap:s=10,padding:a=24,showValue:l=!0,options:c,valueFormatter:h=t=>t.toString()}=t,{title:u,desc:d,items:f=[],xTitle:p,yTitle:g}=r,m=e?F(e,{title:u,desc:d}):null;if(0===f.length)return F(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:m});const[y,v,x,b]=Oc(a),w={indexes:[0],datum:f[0],data:r,positionH:"center",positionV:"normal"},_=Hc(F(n,Object.assign({},w))),M=_.width,k=Math.max(28,_.height+14),C=g?26:0,j=p?22:0,O=M+s,A=void 0!==i?i:Math.max(200,(f.length>0?(f.length-1)*O+M:0)||320),E=f.length>1?Math.max(O,(A-M)/(f.length-1)):0,S=f.length>0?Math.max(M,(f.length-1)*E+M):0,$=b+44+C,z=y+C,P=$+S+v,L=z+o+k+j+x,T=f.map(t=>{var e;return null!==(e=t.value)&&void 0!==e?e:0}),I=Math.max(...T,0),R=Math.min(...T,0),N=.1*Math.max(Math.abs(I),Math.abs(R)),H=R<0?R-N:0;let B=I>0?I+N:1;B===H&&(B=H+1);const W=yf().domain([H,B]).nice().range([o,0]),V=Math.max(0,Math.min(o,W(0))),X=B<=0?0:H>=0?o:V,Z=Ah(c),K=$h(c.themeConfig),Q=K.colorText||"#666",J=[],tt=[],et=[],nt=[],rt=[],it=[],ot=[],st=W.ticks(6),at=W.tickFormat(6);st.forEach(t=>{const e=z+W(t);J.push(F(G,{d:`M ${$} ${e} L ${$+S} ${e}`,width:S,height:1,stroke:Q,strokeWidth:1,"data-element-type":"shape",opacity:.08})),ot.push(F(Pc,{x:$-8,y:e,alignHorizontal:"right",alignVertical:"middle",fontSize:12,fill:Q,children:at(t)}))});const lt=[],ct=[],ht=[];f.forEach((t,e)=>{var r;const i=$+e*E+M/2,s=z+W(null!==(r=t.value)&&void 0!==r?r:0);ct.push({x:i,y:s,datum:t}),lt.push(F(n,Object.assign({},w,{indexes:[e],datum:t,x:i-M/2,y:z+o+4})));const a=Sh(c,[e])||K.colorPrimary;ht.push({x:i,color:a})});const ut=ht.length>0?Math.min(...ht.map(t=>t.x)):$,dt=ht.length>0?Math.max(...ht.map(t=>t.x)):$+S,ft=Math.max(1,dt-ut),pt=ht.map(t=>F("stop",{offset:(t.x-ut)/ft*100+"%",stopColor:t.color})),gt=ht.map(t=>F("stop",{offset:(t.x-ut)/ft*100+"%",stopColor:t.color,stopOpacity:"0.18"}));if(ht.length>0){const t=ht[ht.length-1].color;pt.push(F("stop",{offset:"100%",stopColor:t})),gt.push(F("stop",{offset:"100%",stopColor:t,stopOpacity:"0.04"}))}const mt=`chart-line-${yc([S,o,Q,Z,ht.map(t=>`${t.x.toFixed(2)}-${t.color}`).join()].join(":"))}`,yt=`${mt}-stroke`,vt=`${mt}-area`,xt=(t=>{if(0===t.length)return"";if(1===t.length){const e=t[0];return`M ${e.x} ${e.y}`}const e=[];e.push(`M ${t[0].x} ${t[0].y}`);for(let n=0;n<t.length-1;n++){const r=t[n-1]||t[n],i=t[n],o=t[n+1],s=t[n+2]||o;e.push(`C ${i.x+(o.x-r.x)/6} ${i.y+(o.y-r.y)/6} ${o.x-(s.x-i.x)/6} ${o.y-(s.y-i.y)/6} ${o.x} ${o.y}`)}return e.join(" ")})(ct);et.push(F(G,{d:xt,width:S,height:o,stroke:`url(#${yt})`,strokeWidth:3,fill:"none","data-element-type":"shape"}));const bt=xt.includes("C")?xt.slice(xt.indexOf("C")):"",wt=[`M ${ct[0].x} ${z+X}`,`L ${ct[0].x} ${ct[0].y}`,bt,`L ${ct[ct.length-1].x} ${z+X}`,"Z"].join(" ");return et.push(F(G,{d:wt,width:S,height:o,fill:`url(#${vt})`,stroke:"none","data-element-type":"shape"})),ct.forEach((t,e)=>{var n;const r=Sh(c,[e])||K.colorPrimary;nt.push(F(q,{x:t.x-6,y:t.y-6,width:12,height:12,fill:r,"data-element-type":"shape"})),l&&rt.push(F(Pc,{x:t.x,y:t.y-12,alignHorizontal:"center",alignVertical:"bottom",fontSize:12,fontWeight:"bold",fill:r,children:h(null!==(n=t.datum.value)&&void 0!==n?n:0,t.datum)}))}),tt.push(F(G,{d:`M ${$} ${z+X} L ${$+S} ${z+X}`,width:S,height:1,stroke:Q,strokeWidth:1,"data-element-type":"shape"})),tt.push(F(G,{d:`M ${$} ${z} L ${$} ${z+o}`,width:1,height:o,stroke:Q,strokeWidth:1,"data-element-type":"shape"})),p&&it.push(F(Pc,{x:$+S/2,y:z+o+k+j/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:Q,children:p})),g&&it.push(F(Pc,{x:b+C/2,y:z+o/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:Q,children:g})),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,D(Y,{width:P,height:L,children:[D(U,{children:[F("linearGradient",{id:yt,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:pt}),F("linearGradient",{id:vt,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:gt})]}),F(Y,{children:J}),F(Y,{children:[...tt,...ot]}),F(Y,{children:et}),F(Y,{children:nt}),F(Y,{children:rt}),F(Y,{children:it}),F(fh,{children:lt})]})]})},composites:["title","item","xTitle","yTitle"]});const Pf=1.35;function Lf(t,e,n,r){if(t.length<=1)return t.map(t=>Object.assign({},t));const i=t.map(t=>Object.assign({},t)).sort((t,e)=>t.y-e.y),o=i.some((t,e)=>{if(0===e)return!1;const n=i[e-1];return t.y-n.y<(n.height+t.height)/2}),s=i[0],a=i[i.length-1];if(!o&&!(s.y-s.height/2<n||a.y+a.height/2>r))return i;const l=i.reduce((t,e)=>t+e.height,0),c=r-n;let h=e;l+e*(i.length-1)>c&&(h=Math.max(0,(c-l)/(i.length-1)));for(let t=1;t<i.length;t++){const e=i[t-1],n=i[t],r=e.y+(e.height+n.height)/2+h;n.y<r&&(n.y=r)}const u=i.length-1,d=i[u];if(d.y+d.height/2>r){d.y=r-d.height/2;for(let t=u-1;t>=0;t--){const e=i[t+1],n=i[t],r=e.y-(e.height+n.height)/2-h;n.y>r&&(n.y=r)}}const f=i[0];if(f.y-f.height/2<n){const t=n-(f.y-f.height/2);i.forEach(e=>e.y+=t)}return i}zf("chart-pie",{component:t=>{var e;const{Title:n,Item:r,data:i,radius:o=140,innerRadius:s=0,padding:a=30,showPercentage:l=!0,avoidLabelOverlap:c=!1,minShowLabelPercent:h=0,options:u}=t,d=function(t){if(null==t)return 0;if("string"==typeof t){const e=t.trim(),n=e.endsWith("%")?e.slice(0,-1):e,r=parseFloat(n);return isNaN(r)?0:r}return t}(h),{title:f,desc:p,items:g=[]}=i,m=n?F(n,{title:f,desc:p}):null,y=Hc(F(rh,{indexes:[0]})),v=null!==(e=g[0])&&void 0!==e?e:{label:"",value:0},x=Hc(F(r,{indexes:[0],datum:v,data:i,positionH:"center",positionV:"middle"})),b=x.width||140,w=x.height||32,_=Math.max(o,60),M=_,k=a+(_*Pf+8+b),C=a+M,j=2*k,O=2*C;if(0===g.length)return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,F(Y,{width:j,height:O,children:F(oh,{children:F(rh,{indexes:[0],x:k-y.width/2,y:C-y.height/2})})})]});const A=g.reduce((t,e)=>{var n;return t+Math.max(null!==(n=e.value)&&void 0!==n?n:0,0)},0),E=Ah(u),S=$h(u.themeConfig),$=function(){var t=Mf,e=_f,n=null,r=(0,wf.A)(0),i=(0,wf.A)(kf.FA),o=(0,wf.A)(0);function s(s){var a,l,c,h,u,d=(s=(0,bf.A)(s)).length,f=0,p=new Array(d),g=new Array(d),m=+r.apply(this,arguments),y=Math.min(kf.FA,Math.max(-kf.FA,i.apply(this,arguments)-m)),v=Math.min(Math.abs(y)/d,o.apply(this,arguments)),x=v*(y<0?-1:1);for(a=0;a<d;++a)(u=g[p[a]=a]=+t(s[a],a,s))>0&&(f+=u);for(null!=e?p.sort(function(t,n){return e(g[t],g[n])}):null!=n&&p.sort(function(t,e){return n(s[t],s[e])}),a=0,c=f?(y-d*x)/f:0;a<d;++a,m=h)g[l=p[a]]={data:s[l],index:a,value:u=g[l],startAngle:m,endAngle:h=m+(u>0?u*c:0)+x,padAngle:v};return g}return s.value=function(e){return arguments.length?(t="function"==typeof e?e:(0,wf.A)(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,n=null,s):e},s.sort=function(t){return arguments.length?(n=t,e=null,s):n},s.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:(0,wf.A)(+t),s):r},s.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:(0,wf.A)(+t),s):i},s.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:(0,wf.A)(+t),s):o},s}().value(t=>{var e;return Math.max(null!==(e=t.value)&&void 0!==e?e:0,0)}).sort(null).startAngle(0).endAngle(2*Math.PI),z=$(g),P=(0,vf.A)().innerRadius(s).outerRadius(_).cornerRadius(2),L=(0,vf.A)().innerRadius(_).outerRadius(_),T=(0,vf.A)().innerRadius(1.15*_).outerRadius(1.15*_),I=s+.5*(_-s),R=(0,vf.A)().innerRadius(I).outerRadius(I),N=(0,vf.A)().innerRadius(.85*_).outerRadius(.85*_),H=[],B=[],W=[],V=[],U=[],q=[];z.forEach(t=>{const e=t.index,n=Sh(u,[e])||S.colorPrimary||E,r=P(t)||"";H.push(F(G,{d:r,fill:n,stroke:S.colorBg,strokeWidth:1,"data-element-type":"shape",width:2*_,height:2*_}));const i=t.startAngle+(t.endAngle-t.startAngle)/2,o=(i<0?i+2*Math.PI:i)<Math.PI;if((A>0?t.value/A*100:0)<d)return;const s=T.centroid(t);q.push({arcDatum:t,originalIndex:e,x:s[0],y:s[1],height:w,isRight:o,color:n})});let X=q;if(c){const t=-M*Pf,e=M*Pf,n=q.filter(t=>!t.isRight),r=q.filter(t=>t.isRight),i=w,o=Lf(r,i,t,e);X=[...Lf(n,i,t,e),...o]}return X.forEach(t=>{const{arcDatum:e,originalIndex:n,isRight:o,color:s,y:a}=t,c=L.centroid(e),h=T.centroid(e),d=a,f=Math.abs(d-h[1]),p=_*Pf,g=p+.2*_+20,m=[Math.min(p+.3*f,g)*(o?1:-1),d],v=[g*(o?1:-1),d];if(W.push(F(G,{d:`M${k+c[0]} ${C+c[1]} \n L${k+h[0]} ${C+h[1]} \n L${k+m[0]} ${C+m[1]}\n L${k+v[0]} ${C+v[1]}\n `,stroke:s,strokeOpacity:.45,strokeWidth:2,fill:"none","data-element-type":"shape"})),V.push(F(r,{indexes:[n],datum:e.data,data:i,x:k+v[0]+(o?8:-8-b),y:C+a-w/2,width:b,height:w,positionH:o?"normal":"flipped",positionV:"middle",themeColors:$h({colorPrimary:s},u)})),l&&A>0){const t=R.centroid(e),r=Math.max(e.value,0),i=(100*r/A).toFixed(1),o=50,s=20;B.push(F(Pc,{x:k+t[0]-o/2,y:C+t[1]-s/2,width:o,height:s,alignHorizontal:"center",alignVertical:"middle",fontSize:12,fontWeight:"bold",fill:"#ffffff","data-value":r,"data-indexes":[n],"data-element-type":"item-value",children:`${i}%`}))}const x=N.centroid(e);U.push(F(ih,{indexes:[n],x:k+x[0]-y.width/2,y:C+x[1]-y.height/2}))}),z.forEach((t,e)=>{const n=(e+1)%z.length,r=(t.endAngle+(z[n].startAngle+(0===n?2*Math.PI:0)))/2,i=1*_,o=Math.sin(r)*i,s=-Math.cos(r)*i;U.push(F(rh,{indexes:[e+1],x:k+o-y.width/2,y:C+s-y.height/2}))}),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[m,D(Y,{width:j,height:O,children:[F(Y,{x:k,y:C,children:H}),F(Y,{children:W}),F(Y,{children:B}),F(fh,{children:V}),F(oh,{children:U})]})]})},composites:["title","item"]});const Tf=[0,30,-30,60,-60],If=Math.PI*(3-Math.sqrt(5));function Rf(t,e,n){const r=Math.PI/180*n,i=Math.cos(r),o=Math.sin(r);return{width:Math.abs(t*i)+Math.abs(e*o),height:Math.abs(t*o)+Math.abs(e*i)}}function Nf(t,e,n,r,i,o){const s=t-o,a=t+n+o,l=e-o,c=e+r+o;return i.some(t=>!(a<=t.box.x-o||s>=t.box.x+t.box.width+o||c<=t.box.y-o||l>=t.box.y+t.box.height+o))}zf("chart-wordcloud",{component:t=>{const{data:e,options:n,minFontSize:r=16,maxFontSize:i=48,enableRotate:o=!0,padding:s=6,spiralStep:a=.45,radiusStep:l=10}=t,{items:c=[]}=e,h=c.map((t,e)=>({datum:t,index:e})).filter(({datum:t})=>t.label);if(0===h.length)return F(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:F(Y,{children:F(fh,{})})});const u=h.map(({datum:t})=>t.value).filter(t=>"number"==typeof t),d=u.length>0,f=d?Math.min(...u):0,p=d?Math.max(...u):0,g=d&&f===p,m=(r+i)/2,y=h.map(({datum:t,index:e})=>{const o=(t=>!d||g?m:null==t?r:r+(t-f)/(p-f||1)*(i-r))(t.value),s=Hc(F(Pc,{fontSize:o,fontWeight:"bold",children:t.label})),a=Sh(n,[e])||Ah(n)||"#333333";return{label:t.label,value:t.value,color:a,fontSize:o,width:1.05*s.width,height:s.height}}).sort((t,e)=>e.fontSize-t.fontSize),v=function(t,e,n,r,i){const o=[],s=e?Tf:[0],a=Math.max(1600,28*t.length);return t.forEach((t,e)=>{const l=Math.max(t.width,t.height),c=e*If;let h=0,u=null;for(let e=0;e<a&&!u;e++){e===Math.floor(.6*a)&&(h=l);const d=c+e*r,f=i*Math.sqrt(e+1)+h+.25*l,p=f*Math.cos(d),g=f*Math.sin(d);for(const e of s){const r=Rf(t.width,t.height,e),i=p-r.width/2,s=g-r.height/2;if(!Nf(i,s,r.width,r.height,o,n)){u=Object.assign(Object.assign({},t),{angle:e,centerX:p,centerY:g,box:{x:i,y:s,width:r.width,height:r.height}});break}}}if(!u){const n=s[e%s.length],r=i*Math.sqrt(a+1)+l,o=c,h=r*Math.cos(o),d=r*Math.sin(o),f=Rf(t.width,t.height,n);u=Object.assign(Object.assign({},t),{angle:n,centerX:h,centerY:d,box:{x:h-f.width/2,y:d-f.height/2,width:f.width,height:f.height}})}o.push(u)}),o}(y,o,s,a,l),x=Math.min(...v.map(t=>t.box.x)),b=Math.min(...v.map(t=>t.box.y)),w=Math.max(...v.map(t=>t.box.x+t.box.width)),_=Math.max(...v.map(t=>t.box.y+t.box.height)),M=-x+s,k=-b+s,C=w-x+2*s,j=_-b+2*s,O=v.map((t,e)=>F(Y,{transform:`translate(${t.centerX-t.width/2+M}, ${t.centerY-t.height/2+k}) rotate(${t.angle}, ${t.width/2}, ${t.height/2})`,children:F(Pc,{width:t.width,height:t.height,fontSize:t.fontSize,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:t.color,"data-indexes":e,"data-element-type":"item-label",children:t.label})}));return F(fh,{id:"infographic-container",width:C,height:j,children:O})},composites:[]});const Hf=new Map,Bf=(t,e)=>{Hf.set(t,e)};Bf("pros-cons-arrow",t=>{const{x:e,y:n,colorPositive:r,colorNegative:i,colorBg:o}=t,s={width:90,height:40,fontSize:22,alignHorizontal:"center",alignVertical:"middle",fontWeight:"bold",fill:o};return D(Y,{x:e,y:n,width:200,height:141,children:[D(gh,{children:[F("path",{d:"M137 54C137 54.2903 137 54.5806 136.706 54.7742L108.614 86.0323H64.7619C64.4071 86.0204 64.0557 86.1043 63.7453 86.2747C63.4349 86.4452 63.1773 86.6959 63 87C63.0037 86.7447 63.1092 86.5012 63.2936 86.3226L91.3862 55.0645H135.238C135.593 55.0763 135.944 54.9925 136.255 54.822C136.565 54.6516 136.823 54.4009 137 54.0968V54Z",fill:"#D9D9D9"}),F("path",{d:"M39.3272 0.484649C39.6146 0.234929 39.9662 0.0736935 40.3407 0.0198929C40.7152 -0.0339076 41.0971 0.0219605 41.4414 0.180925C41.7857 0.33989 42.0783 0.595358 42.2846 0.917314C42.491 1.23927 42.6026 1.61434 42.6063 1.99848V14.8156H136.013C136.54 14.8156 137.045 15.0282 137.418 15.4068C137.791 15.7853 138 16.2987 138 16.834V53.166C138 53.7013 137.791 54.2147 137.418 54.5932C137.045 54.9718 136.54 55.1844 136.013 55.1844H42.6063V68.0015C42.6026 68.3857 42.491 68.7607 42.2846 69.0827C42.0783 69.4046 41.7857 69.6601 41.4414 69.8191C41.0971 69.9781 40.7152 70.0339 40.3407 69.9801C39.9662 69.9263 39.6146 69.7651 39.3272 69.5154L0.672847 36.5138C0.461378 36.3244 0.292014 36.0915 0.176005 35.8305C0.0599968 35.5695 0 35.2864 0 35C0 34.7136 0.0599968 34.4306 0.176005 34.1696C0.292014 33.9085 0.461378 33.6756 0.672847 33.4862L39.4265 0.484649H39.3272Z",fill:r}),F("path",{d:"M157.394 73.0007C157.397 72.6162 157.509 72.2407 157.715 71.9183C157.922 71.596 158.214 71.3403 158.559 71.1811C158.903 71.022 159.285 70.9661 159.659 71.0199C160.034 71.0738 160.385 71.2352 160.673 71.4852L199.327 104.524C199.539 104.714 199.708 104.947 199.824 105.208C199.94 105.47 200 105.753 200 106.04C200 106.326 199.94 106.61 199.824 106.871C199.708 107.132 199.539 107.366 199.327 107.555L160.573 140.594C160.285 140.815 159.943 140.951 159.584 140.989C159.225 141.027 158.862 140.965 158.535 140.809C158.208 140.653 157.929 140.41 157.728 140.105C157.527 139.8 157.411 139.445 157.394 139.078V126.247H63.9874C63.4603 126.247 62.9548 126.034 62.5821 125.655C62.2094 125.276 62 124.762 62 124.226V87.8531C62 87.3172 62.2094 86.8032 62.5821 86.4242C62.9548 86.0453 63.4603 85.8324 63.9874 85.8324H157.394V73.0007Z",fill:i})]}),F(Pc,Object.assign({x:40,y:15},s,{children:"Pros"})),F(Pc,Object.assign({x:70,y:85},s,{children:"Cons"}))]})}),Bf("pros-cons-fold",t=>{const{x:e,y:n,colorPositive:r,colorNegative:i,colorBg:o}=t,s={width:85,height:30,fontSize:20,alignHorizontal:"center",alignVertical:"middle",fontWeight:"bold",fill:o};return D(Y,{x:e,y:n,width:240,height:300,children:[D(gh,{children:[F("path",{d:"M136.914 38.7755C137.303 38.7733 137.683 38.6617 138.011 38.4534C138.339 38.2451 138.602 37.9485 138.77 37.5977C138.937 37.247 139.002 36.8561 138.957 36.4701C138.913 36.084 138.76 35.7183 138.517 35.415L110.741 0.982313C110.548 0.735138 110.301 0.535238 110.018 0.397762C109.736 0.260286 109.426 0.188841 109.112 0.188841C108.798 0.188841 108.488 0.260286 108.206 0.397762C107.924 0.535238 107.676 0.735138 107.483 0.982313L79.7069 35.415C79.4639 35.7183 79.3113 36.084 79.2667 36.4701C79.222 36.8561 79.2871 37.247 79.4545 37.5977C79.6219 37.9485 79.8847 38.2451 80.213 38.4534C80.5412 38.6617 80.9216 38.7733 81.3104 38.7755H92.8965C93.0517 57.1293 97.5517 64.9878 105.259 73.7252C107.017 75.7932 108.983 77.8612 111.103 80.1361C113.276 82.4626 122.121 88.9252 131.069 95.181C129.362 88.7701 128.172 81.2218 127.293 73.7252C125.224 55.9918 125.017 38.7755 125.017 38.7755H136.914Z",fill:r,fillOpacity:.4}),F("path",{d:"M237.931 109.967C238.48 109.967 239.006 109.749 239.394 109.362C239.782 108.974 240 108.448 240 107.899V75.7932C240 75.2447 239.782 74.7187 239.394 74.3309C239.006 73.9431 238.48 73.7252 237.931 73.7252H127.241C128.172 81.2218 129.362 88.7701 131.069 95.181C138.182 100.171 145.337 105.1 152.534 109.967H237.931Z",fill:r}),F("path",{d:"M152.586 109.967C152.586 109.967 141.724 102.678 131.069 95.181C124.122 90.5838 117.455 85.5772 111.103 80.1878C109.034 77.8612 107.017 75.7415 105.259 73.7252H48.6207V56.6639C48.6091 56.2797 48.4905 55.9063 48.2784 55.5857C48.0662 55.2651 47.7689 55.0099 47.4197 54.8488C47.0705 54.6878 46.6833 54.6271 46.3016 54.6738C45.9199 54.7204 45.5587 54.8725 45.2586 55.1129L1.50002 90.2694C1.26208 90.4633 1.07029 90.7078 0.938585 90.985C0.80688 91.2622 0.738558 91.5652 0.738558 91.8721C0.738558 92.179 0.80688 92.482 0.938585 92.7592C1.07029 93.0365 1.26208 93.2809 1.50002 93.4748L45.2586 128.631C45.5621 128.874 45.928 129.027 46.3142 129.071C46.7005 129.116 47.0914 129.051 47.4424 128.884C47.7933 128.716 48.09 128.454 48.2984 128.125C48.5068 127.797 48.6185 127.417 48.6207 127.029V109.967H152.586Z",fill:"#BFBFBF"}),F("path",{d:"M36.1034 88.9252H28.9655V93.785H36.1034V101.85H41.4828V93.785H48.6207V88.8735H41.4828V81.1701H36.1034V88.9252Z",fill:"#404040"}),F("path",{d:"M103.086 261.224C102.697 261.227 102.317 261.338 101.989 261.547C101.661 261.755 101.398 262.051 101.23 262.402C101.063 262.753 100.998 263.144 101.043 263.53C101.087 263.916 101.24 264.282 101.483 264.585L129.259 299.018C129.452 299.265 129.699 299.465 129.982 299.602C130.264 299.74 130.574 299.811 130.888 299.811C131.202 299.811 131.512 299.74 131.794 299.602C132.076 299.465 132.324 299.265 132.517 299.018L160.293 264.585C160.536 264.282 160.689 263.916 160.733 263.53C160.778 263.144 160.713 262.753 160.546 262.402C160.378 262.051 160.115 261.755 159.787 261.547C159.459 261.338 159.078 261.227 158.69 261.224H147.103C146.948 242.871 142.448 235.012 134.741 226.275C132.983 224.207 131.017 222.139 128.897 219.864C126.724 217.537 117.879 211.075 108.931 204.819C110.677 211.877 111.938 219.045 112.707 226.275C114.776 244.008 114.983 261.224 114.983 261.224H103.086Z",fill:i,fillOpacity:.4}),F("path",{d:"M2.06897 190.033C1.52025 190.033 0.993996 190.251 0.605989 190.638C0.217983 191.026 5.00679e-06 191.552 5.00679e-06 192.101V224.207C5.00679e-06 224.755 0.217983 225.281 0.605989 225.669C0.993996 226.057 1.52025 226.275 2.06897 226.275H112.759C111.828 218.778 110.638 211.23 108.931 204.819C99.9827 198.512 90.931 192.411 88.2414 190.55C87.7206 190.204 87.1077 190.024 86.4828 190.033H2.06897Z",fill:i}),F("path",{d:"M87.4138 190.033C87.4138 190.033 98.2759 197.322 108.931 204.819C115.878 209.416 122.545 214.423 128.897 219.812C130.966 222.139 132.983 224.258 134.741 226.275H191.379V243.336C191.391 243.72 191.51 244.094 191.722 244.414C191.934 244.735 192.231 244.99 192.58 245.151C192.929 245.312 193.317 245.373 193.698 245.326C194.08 245.28 194.441 245.128 194.741 244.887L238.5 209.731C238.738 209.537 238.93 209.292 239.061 209.015C239.193 208.738 239.261 208.435 239.261 208.128C239.261 207.821 239.193 207.518 239.061 207.241C238.93 206.964 238.738 206.719 238.5 206.525L194.741 171.369C194.438 171.126 194.072 170.973 193.686 170.929C193.3 170.884 192.909 170.949 192.558 171.116C192.207 171.284 191.91 171.546 191.702 171.875C191.493 172.203 191.382 172.583 191.379 172.971V190.033H87.4138Z",fill:"#BFBFBF"}),F("path",{d:"M192.414 205.905V210.816H212.069V205.905H192.414Z",fill:"#404040"})]}),F(Pc,Object.assign({x:153,y:77},s,{children:"PROS"})),F(Pc,Object.assign({x:2,y:193},s,{children:"CONS"}))]})}),Bf("vs",t=>{const{x:e,y:n,colorPrimary:r,colorBg:i}=t,o=100,s=100,a=(0,ea.A)(r).lighten(20).toString();return D(Y,{x:e,y:n,width:o,height:s,children:[D(U,{children:[F("filter",{id:"vs-divider-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:F("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"8",result:"blur"})}),F(Bh,{})]}),F(q,{x:0,y:0,width:o,height:s,fill:a,filter:"url(#vs-divider-glow-filter)",opacity:.6}),F(q,{x:0,y:0,width:o,height:s,fill:r,"data-element-type":"shape"}),F("text",{x:50,y:50,fontSize:Math.min(o,s)/1.5,fontWeight:"bold",fill:i,textAnchor:"middle",dominantBaseline:"central",filter:"url(#drop-shadow)",children:"VS"})]})}),zf("compare-binary-horizontal",{component:t=>{const{Title:e,Item:n,data:r,gap:i=20,groupGap:o=20,opposite:s=!0,flipped:a=!0,dividerType:l="vs",options:c}=t,{title:h,desc:u,items:d=[]}=r,f=e?F(e,{title:h,desc:u}):null;if(0===d.length)return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,F(Y,{children:F(oh,{children:F(rh,{indexes:[0],x:0,y:0})})})]});const p=(d[0]||{children:[]}).children||[],g=(d[1]||{children:[]}).children||[],m=$h(c.themeConfig),y=Hc(F(n,{indexes:[0,0],data:r,datum:p[0]||{}})),v=Hc(F(rh,{indexes:[0]})),x=(t=>{var e;return t&&null!==(e=Hf.get(t))&&void 0!==e?e:null})(l),b=x?Hc(F(x,{x:0,y:0,colorPrimary:m.colorPrimary,colorBg:m.colorBg,colorPositive:m.colorPrimary,colorNegative:m.colorPrimary})):{width:0,height:0},w=[],_=[],M=[],k=Math.max(p.length,g.length),C=k>0?k*(y.height+i)-i:0,j=k>0?i/2+v.height/2:v.height/2,O=v.width+5,A=O+y.width+o,E=A+b.width+o,S=a?"flipped":"normal",$=a?"normal":s?"flipped":"normal";return p.forEach((t,e)=>{const o=j+e*(y.height+i),s=[0,e];w.push(F(n,{indexes:s,datum:t,data:r,x:O,y:o,positionH:S,positionV:"middle"})),_.push(F(ih,{indexes:s,x:O-v.width-5,y:o+(y.height-v.height)/2})),e<p.length-1&&_.push(F(rh,{indexes:[0,e+1],x:O+(y.width-v.width)/2,y:o+y.height+i/2-v.height/2}))}),p.length>0?(_.push(F(rh,{indexes:[0,0],x:O+(y.width-v.width)/2,y:j-i/2-v.height/2})),_.push(F(rh,{indexes:[0,p.length],x:O+(y.width-v.width)/2,y:j+(p.length-1)*(y.height+i)+y.height+i/2-v.height/2}))):d.length>=1&&_.push(F(rh,{indexes:[0,0],x:O+(y.width-v.width)/2,y:j-v.height/2})),g.forEach((t,e)=>{const o=j+e*(y.height+i),s=[1,e];w.push(F(n,{indexes:s,datum:t,data:r,x:E,y:o,positionH:$,positionV:"middle"})),_.push(F(ih,{indexes:s,x:E+y.width+5,y:o+(y.height-v.height)/2})),e<g.length-1&&_.push(F(rh,{indexes:[1,e+1],x:E+(y.width-v.width)/2,y:o+y.height+i/2-v.height/2}))}),g.length>0?(_.push(F(rh,{indexes:[1,0],x:E+(y.width-v.width)/2,y:j-i/2-v.height/2})),_.push(F(rh,{indexes:[1,g.length],x:E+(y.width-v.width)/2,y:j+(g.length-1)*(y.height+i)+y.height+i/2-v.height/2}))):d.length>=2&&_.push(F(rh,{indexes:[1,0],x:E+(y.width-v.width)/2,y:j-v.height/2})),d.length<2&&_.push(F(rh,{indexes:[1],x:E+(y.width-v.width)/2,y:j+(C-v.height)/2})),x&&M.push(F(x,{x:A,y:j+(C-b.height)/2,colorPrimary:m.colorPrimary,colorBg:m.colorBg,colorPositive:Sh(c,[0])||m.colorPrimary,colorNegative:Sh(c,[1])||m.colorPrimary})),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,D(Y,{children:[F(Y,{children:M}),F(fh,{children:w}),F(oh,{children:_})]})]})},composites:["title","item"]});const Wf={none:5,"dot-line":100,"arc-dot":20,"split-line":5},Ff=t=>{const{x:e,y:n,width:r,height:i,color:o,colorBg:s,side:a}=t,l=n+i,c=`split-line-linear-gradient-${a}`;return D(W,{children:[F(U,{children:F(Wh,{id:c,startColor:o,stopColor:s,direction:"left"===a?"left-right":"right-left"})}),F(Z,{x:e,y:l,width:r,height:1,fill:`url(#${c})`})]})},Df=t=>{const{x:e,y:n,side:r,width:i,height:o,color:s,colorBg:a}=t,l="left"===r?e+i+6+5:e-6-5,c=n+o/2,h=l-2,u=c-2,d="left"===r?80:-80,f=`dot-line-linear-gradient-${r}`;return D(Y,{children:[F(U,{children:F(Wh,{id:f,startColor:s,stopColor:a,direction:"left"===r?"left-right":"right-left"})}),D(gh,{children:[F(q,{x:l-6,y:c-6,width:12,height:12,fill:"none",strokeWidth:1,stroke:s}),F(q,{x:h,y:u,width:4,height:4,fill:s})]}),F(Z,{x:"left"===r?l:l+d,y:c-.5,width:80,height:1,fill:`url(#${f})`})]})};zf("compare-hierarchy-left-right",{component:t=>{var e,n;const{Title:r,Items:i,data:o,gap:s=20,groupGap:a=0,decoration:l="none",surround:c=!0,flipRoot:h=!1,flipLeaf:u=!1,options:d}=t,[f,p]=i,{title:g,desc:m,items:y=[]}=o,v=r?F(r,{title:g,desc:m}):null,x=F(f,{indexes:[0],data:o,datum:o.items[0],themeColors:{}}),b=F(p,{indexes:[0,0],data:o,datum:(null===(n=null===(e=y[0])||void 0===e?void 0:e.children)||void 0===n?void 0:n[0])||y[2]}),w=Hc(x),_=Hc(b),M=[],k=[],[C,j]=y,O=(null==C?void 0:C.children)||[],A=(null==j?void 0:j.children)||[],E=Math.max(w.height,O.length*(_.height+s)-s,A.length*(_.height+s)-s),S=Wf[l]||0,$=_.width+S,z=$+w.width+a,P=(E-w.height)/2;C&&M.push(F(f,{indexes:[0],x:$,y:P,data:o,datum:C,positionH:h?"normal":"flipped"})),j&&M.push(F(f,{indexes:[1],x:z,y:P,data:o,datum:j,positionH:h?"flipped":"normal"}));const L=(t,e,n)=>{if("none"===l)return;const[r,i]=e,o=Sh(d,n),s={x:r,y:i,width:_.width,height:_.height,side:t,color:o||"#ccc",colorBg:d.themeConfig.colorBg||"#fff"};"split-line"===l?k.push(F(Ff,Object.assign({},s))):"dot-line"===l&&k.push(F(Df,Object.assign({},s)))};if(c){const t=(2*w.width+a+_.width)/2+S,e=$+w.width+a/2,n=P+w.height/2;O.forEach((r,i)=>{const a=(E-(O.length*(_.height+s)-s))/2+i*(_.height+s),l=a+_.height/2-n,c=Math.max(0,t*t-l*l),h=e-Math.sqrt(c)-_.width/2;M.push(F(p,{indexes:[0,i],datum:r,data:o,x:h,y:a,positionH:u?"flipped":"normal"})),L("left",[h,a],[0,i])}),A.forEach((r,i)=>{const a=(E-(A.length*(_.height+s)-s))/2+i*(_.height+s),l=a+_.height/2-n,c=Math.max(0,t*t-l*l),h=e+Math.sqrt(c)-_.width/2;M.push(F(p,{indexes:[1,i],datum:r,data:o,x:h,y:a,positionH:u?"normal":"flipped"})),L("right",[h,a],[1,i])})}else O.forEach((t,e)=>{const n=(E-(O.length*(_.height+s)-s))/2+e*(_.height+s),r=[0,e];M.push(F(p,{indexes:r,datum:t,data:o,x:0,y:n,positionH:u?"flipped":"normal"})),L("left",[0,n],r)}),A.forEach((t,e)=>{const n=(E-(A.length*(_.height+s)-s))/2+e*(_.height+s),r=[1,e],i=z+w.width+S;M.push(F(p,{indexes:r,datum:t,data:o,x:i,y:n,positionH:u?"normal":"flipped"})),L("right",[i,n],r)});return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,D(Y,{children:[F(fh,{children:M}),F(Y,{width:0,height:0,children:k})]})]})},composites:["title","item"]}),zf("compare-hierarchy-row",{component:t=>{var e,n;const{Title:r,Items:i,data:o,gap:s=0,itemGap:a=20,columnWidth:l=280,itemPadding:c=5,showColumnBackground:h=!0,columnBackgroundAlpha:u=.08,options:d}=t,[f,p]=i,{title:g,desc:m,items:y=[]}=o,v=r?F(r,{title:g,desc:m}):null,x=Eh(d),b=[],w=[],_=l-2*c,M=Hc(F(f,{indexes:[0],data:o,datum:y[0],width:l})),k=Hc(F(p,{indexes:[0,0],data:o,datum:(null===(n=null===(e=y[0])||void 0===e?void 0:e.children)||void 0===n?void 0:n[0])||{},width:_})),C=Hc(F(rh,{indexes:[0]})),j=Math.max(...y.map(t=>{var e;return(null===(e=t.children)||void 0===e?void 0:e.length)||0}),0),O=M.height+a+j*(k.height+a);return y.forEach((t,e)=>{const{children:n=[]}=t,r=e*(l+s),i=r;if(h){const t=`${x[e%x.length]}${Math.round(255*u).toString(16).padStart(2,"0")}`;b.push(F(Z,{x:r,y:0,width:l,height:O,fill:t,rx:0,ry:0,"data-element-type":"shape"}))}b.push(F(f,{indexes:[e],datum:t,data:o,x:i,y:0,width:l})),w.push(F(ih,{indexes:[e],x:i+M.width-C.width-10,y:10})),0===e&&w.push(F(rh,{indexes:[e],x:i+M.width/2-C.width/2,y:0-C.height-5}));const d=0+M.height+a;n.forEach((t,r)=>{const s=d+r*(k.height+a),l=i+c,h=[e,r];b.push(F(p,{indexes:h,datum:t,data:o,x:l,y:s,width:_})),w.push(F(ih,{indexes:h,x:l+k.width-C.width-10,y:s+(k.height-C.height)/2})),r<n.length-1&&w.push(F(rh,{indexes:[e,r+1],x:l+k.width/2-C.width/2,y:s+k.height-C.height/2}))});const g=i+c;w.push(F(rh,n.length>0?{indexes:[e,n.length],x:g+k.width/2-C.width/2,y:d+n.length*(k.height+a)-k.height/2-C.height/2}:{indexes:[e,0],x:g+k.width/2-C.width/2,y:d-a/2-C.height/2}))}),y.length>0&&w.push(F(rh,{indexes:[y.length],x:y.length*(l+s)-s/2-C.width/2,y:-C.height-5})),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,D(Y,{children:[F(fh,{children:b}),F(oh,{children:w})]})]})},composites:["title","item"]});const Vf={axisColor:"#D9D9D9",axisArrowSize:5,strokeWidth:1,dashArray:"4,2",defaultExtraSpacing:20};zf("quadrant",{component:t=>{const{Title:e,Item:n,data:r,quadrantWidth:i,quadrantHeight:o,showAxis:s=!0,dashedAxis:a=!0}=t,{title:l,desc:c,items:h=[]}=r,u=e?F(e,{title:l,desc:c}):null,d=Array.from({length:4},(t,e)=>h[e]),f=d[0]?Hc(F(n,{indexes:[0],data:r,datum:d[0]})):{width:0,height:0},p=null!=i?i:f.width+Vf.defaultExtraSpacing,g=null!=o?o:f.height+Vf.defaultExtraSpacing,m=function(t,e,n){const r=t/2,i=e/2;return[{x:r-n.width/2,y:i-n.height/2},{x:t+r-n.width/2,y:i-n.height/2},{x:r-n.width/2,y:e+i-n.height/2},{x:t+r-n.width/2,y:e+i-n.height/2}]}(p,g,f),y=d.map((t,e)=>{if(!t)return null;const i=m[e];return F(n,{indexes:[e],datum:t,data:r,x:i.x,y:i.y,positionH:e%2?"flipped":"normal",positionV:e<2?"normal":"flipped"})}).filter(Boolean),v=function(t,e,n,r){if(!n)return[];const{axisColor:i,axisArrowSize:o,strokeWidth:s,dashArray:a}=Vf,l=t,c=e,h=2*t,u=2*e,d=r?a:void 0;return[F(G,{d:`M 0 ${c} L ${h} ${c}`,stroke:i,strokeWidth:s,strokeDasharray:d,fill:"none","data-element-type":"shape"}),D(gh,{transform:`translate(${h}, ${c})`,children:[F(G,{d:`M 0 0 L ${-o} ${-o/2}`,stroke:i,strokeWidth:s,fill:"none"}),F(G,{d:`M 0 0 L ${-o} ${o/2}`,stroke:i,strokeWidth:s,fill:"none"})]}),D(gh,{transform:`translate(0, ${c})`,children:[F(G,{d:`M 0 0 L ${o} ${-o/2}`,stroke:i,strokeWidth:s,fill:"none"}),F(G,{d:`M 0 0 L ${o} ${o/2}`,stroke:i,strokeWidth:s,fill:"none"})]}),F(G,{d:`M ${l} 0 L ${l} ${u}`,stroke:i,strokeWidth:s,strokeDasharray:d,fill:"none","data-element-type":"shape"}),D(gh,{transform:`translate(${l}, 0)`,children:[F(G,{d:`M 0 0 L ${-o/2} ${o}`,stroke:i,strokeWidth:s,fill:"none"}),F(G,{d:`M 0 0 L ${o/2} ${o}`,stroke:i,strokeWidth:s,fill:"none"})]}),D(gh,{transform:`translate(${l}, ${u})`,children:[F(G,{d:`M 0 0 L ${-o/2} ${-o}`,stroke:i,strokeWidth:s,fill:"none"}),F(G,{d:`M 0 0 L ${o/2} ${-o}`,stroke:i,strokeWidth:s,fill:"none"})]})]}(p,g,s,a);return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,D(Y,{width:2*p,height:2*g,children:[v,F(fh,{children:y})]})]})},composites:["title","item"]});const Uf=Object.assign,qf={getId:t=>t.id||t.name,getPreH:t=>t.preH||0,getPreV:t=>t.preV||0,getHGap:t=>t.hgap||18,getVGap:t=>t.vgap||18,getChildren:t=>t.children,getHeight:t=>t.height||36,getWidth:t=>t.width||18*(t.label||" ").split("").length};class Yf{constructor(t,e){if(this.x=0,this.y=0,this.depth=0,this.children=[],this.hgap=0,this.vgap=0,t instanceof Yf||"x"in t&&"y"in t&&"children"in t){const e=t;return this.data=e.data,this.id=e.id,this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this.depth=e.depth,this.children=e.children,this.parent=e.parent,this.hgap=e.hgap,this.vgap=e.vgap,this.preH=e.preH,void(this.preV=e.preV)}this.data=t;const n=e.getHGap(t),r=e.getVGap(t);this.preH=e.getPreH(t),this.preV=e.getPreV(t),this.width=e.getWidth(t),this.height=e.getHeight(t),this.width+=this.preH,this.height+=this.preV,this.id=e.getId(t),this.addGap(n,r)}isRoot(){return 0===this.depth}isLeaf(){return 0===this.children.length}addGap(t,e){this.hgap+=t,this.vgap+=e,this.width+=2*t,this.height+=2*e}eachNode(t){let e,n=[this];for(;e=n.shift();)t(e),n=e.children.concat(n)}DFTraverse(t){this.eachNode(t)}BFTraverse(t){let e,n=[this];for(;e=n.shift();)t(e),n=n.concat(e.children)}getBoundingBox(){const t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(e=>{t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.width=Math.max(t.width,e.x+e.width),t.height=Math.max(t.height,e.y+e.height)}),t}translate(t=0,e=0){this.eachNode(n=>{n.x+=t,n.y+=e,n.x+=n.preH,n.y+=n.preV})}right2left(){const t=this.getBoundingBox();this.eachNode(e=>{e.x=e.x-2*(e.x-t.left)-e.width}),this.translate(t.width,0)}bottom2top(){const t=this.getBoundingBox();this.eachNode(e=>{e.y=e.y-2*(e.y-t.top)-e.height}),this.translate(0,t.height)}}function Gf(t,e={},n){e=Uf({},qf,e);const r=new Yf(t,e),i=[r];let o;if(!n&&!t.collapsed)for(;o=i.shift();)if(!o.data.collapsed){const t=e.getChildren(o.data),n=t?t.length:0;if(o.children=new Array(n),t&&n)for(let r=0;r<n;r++){const n=new Yf(t[r],e);o.children[r]=n,i.push(n),n.parent=o,n.depth=o.depth+1}}return r}class Xf{constructor(t,e={}){this.options=e,this.rootNode=Gf(t,e)}execute(){throw new Error("please override this method")}}const Zf=["LR","RL","TB","BT","H","V"],Kf=["LR","RL","H"],Qf=Zf[0];function Jf(t,e,n){const r=e.direction||Qf;if(e.isHorizontal=(t=>Kf.indexOf(t)>-1)(r),r&&-1===Zf.indexOf(r))throw new TypeError(`Invalid direction: ${r}`);if(r===Zf[0])n(t,e);else if(r===Zf[1])n(t,e),t.right2left();else if(r===Zf[2])n(t,e);else if(r===Zf[3])n(t,e),t.bottom2top();else if(r===Zf[4]||r===Zf[5]){const{left:r,right:i}=function(t,e){const n=Gf(t.data,e,!0),r=Gf(t.data,e,!0),i=t.children.length,o=Math.round(i/2),s=e.getSide||function(t,e){return e<o?"right":"left"};for(let e=0;e<i;e++){const i=t.children[e];"right"===s(i,e)?r.children.push(i):n.children.push(i)}return n.eachNode(t=>{t.isRoot()||(t.side="left")}),r.eachNode(t=>{t.isRoot()||(t.side="right")}),{left:n,right:r}}(t,e);n(r,e),n(i,e),e.isHorizontal?r.right2left():r.bottom2top(),i.translate(r.x-i.x,r.y-i.y),t.x=r.x,t.y=i.y;const o=t.getBoundingBox();e.isHorizontal?o.top<0&&t.translate(0,-o.top):o.left<0&&t.translate(-o.left,0)}let i=e.fixedRoot;return void 0===i&&(i=!0),i&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),function(t,e){if(e.radial){const[n,r]=e.isHorizontal?["x","y"]:["y","x"],i={x:1/0,y:1/0},o={x:-1/0,y:-1/0};let s=0;t.DFTraverse(t=>{s++;const{x:e,y:n}=t;i.x=Math.min(i.x,e),i.y=Math.min(i.y,n),o.x=Math.max(o.x,e),o.y=Math.max(o.y,n)});const a=o[r]-i[r];if(0===a)return;const l=2*Math.PI/s;t.DFTraverse(e=>{const o=(e[r]-i[r])/a*(2*Math.PI-l)+l,s=e[n]-t[n];e.x=Math.cos(o)*s,e.y=Math.sin(o)*s})}}(t,e),t}function tp(t,e){let n=0;return t.children.length?t.children.forEach(t=>{n+=tp(t,e)}):n=t.height,t._subTreeSep=e.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,n)+2*t._subTreeSep,t.totalHeight}function ep(t){const e=t.children,n=e.length;if(n){e.forEach(t=>{ep(t)});const r=e[0],i=e[n-1],o=i.y-r.y+i.height;let s=0;if(e.forEach(t=>{s+=t.totalHeight}),o>t.height)t.y=r.y+o/2-t.height/2;else if(1!==e.length||t.height>s){const n=t.y+(t.height-o)/2-r.y;e.forEach(t=>{t.translate(0,n)})}else t.y=(r.y+r.height/2+i.y+i.height/2)/2-t.height/2}}const np={getSubTreeSep:()=>0};function rp(t,e={}){return e=Uf({},np,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse(t=>{t.x=t.parent.x+t.parent.width}),t.parent=void 0,tp(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode(t=>{const e=t.children,n=e.length;if(n){const r=e[0];if(r.startY=t.startY+t._subTreeSep,1===n)r.y=t.y+t.height/2-r.height/2;else{r.y=r.startY+r.totalHeight/2-r.height/2;for(let t=1;t<n;t++){const n=e[t];n.startY=e[t-1].startY+e[t-1].totalHeight,n.y=n.startY+n.totalHeight/2-n.height/2}}}}),ep(t),t}class ip extends Xf{execute(){return Jf(this.rootNode,this.options,rp)}}const op={};const sp=60,ap=14,lp="center",cp="curved",hp=2,up="node",dp="solid",fp=(t,e=[],n=0)=>{var r,i;const o=[...e,n];return Object.assign(Object.assign({},t),{_indexes:o,children:null!==(i=null===(r=t.children)||void 0===r?void 0:r.map((t,e)=>fp(t,o,e)))&&void 0!==i?i:[]})},pp=(t,e,n,r)=>{var i,o;e.push(t),null!==(i=(o=t.data)._flatIndex)&&void 0!==i||(o._flatIndex=e.length-1),r&&n.push({parent:r,child:t});const s=t.children;null==s||s.forEach(r=>pp(r,e,n,t))};zf("hierarchy-mindmap",{component:t=>{var e,n;const{Title:r,Items:i,data:o,levelGap:s=sp,nodeGap:a=ap,edgeAlign:l=lp,colorMode:c=up,edgeColorMode:h=dp,edgeType:u=cp,edgeWidth:d=hp,options:f}=t,{title:p,desc:g,items:m=[]}=o,y=r?F(r,{title:p,desc:g}):null,v=Ah(f),x=Hc(F(rh,{indexes:[0]})),b=new Map;let w=0;if(!m.length||!(null==i?void 0:i.length))return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[y,F(Y,{children:F(rh,{indexes:[0],x:0,y:0})})]});const _=fp(m[0]),M=new WeakMap,k=new WeakMap,C=new WeakMap,j=(t,e)=>{var n;if("group"===c){const e=String(null!==(n=t.group)&&void 0!==n?n:"");let r=b.get(e);return null==r&&(r=w,b.set(e,r),w+=1),[r]}return Th({depth:e,originalIndexes:t._indexes,flatIndex:t._flatIndex},c)},O=(t,e)=>{const n=C.get(t);if(n)return n;const r=j(t,e),i=Sh(f,r),o=$h({colorPrimary:i},f);return C.set(t,o),k.set(t,i),o},A=t=>{const e=M.get(t);if(e)return e;const n=Math.max(t._indexes.length-1,0),r=Hc(F(Rh(i,n),{indexes:t._indexes,data:o,datum:t,positionH:"center",positionV:"middle",themeColors:O(t,n)}));return M.set(t,r),r},E=function(t,e){const n=Uf({},op,e);return new ip(t,n).execute()}(_,{direction:"H",getSide:(t,e)=>{if(!t.parent)return"right";const n=(t.parent.children||[]).indexOf(t);return(n>=0?n:e)%2==0?"left":"right"},getWidth:t=>A(t).width,getHeight:t=>A(t).height,getHGap:()=>s,getVGap:()=>a}),S=[],$=[];pp(E,S,$);const z=S.length>0?Math.min(...S.map(t=>t.x)):0,P=S.length>0?Math.min(...S.map(t=>t.y)):0,L=30-z,T=30-P,I=[],R=[],N=[],H=[],B=new WeakMap;S.forEach(t=>{var e,n;const r=t.data,s=A(r),a=t.x+L+(null!==(e=t.hgap)&&void 0!==e?e:0),l=t.y+T+(null!==(n=t.vgap)&&void 0!==n?n:0),c=Rh(i,t.depth),h=0===t.depth?"center":"left"===t.side?"flipped":"normal",u=O(r,t.depth);N.push(F(c,{indexes:r._indexes,data:o,datum:r,x:a,y:l,positionH:h,positionV:"middle",themeColors:u})),B.set(t,{x:a,y:l,width:s.width,height:s.height,centerX:a+s.width/2,centerY:l+s.height/2})}),$.forEach(t=>{var e,n,r,i;const{parent:o,child:s}=t,a=B.get(s),c=B.get(o);if(!a||!c)return;const p=s.data,{sx:g,sy:m,tx:y,ty:b}=((t,e,n,r=lp)=>{const i=(t=>"top"===t?0:"bottom"===t?1:"center"===t?.5:Math.max(0,Math.min(1,t)))(r),o=t.y+t.height*i,s=e.y+e.height*i;return"left"===n?{sx:t.x,sy:o,tx:e.x+e.width,ty:s}:{sx:t.x+t.width,sy:o,tx:e.x,ty:s}})(c,a,s.side,l),w=null!==(e=k.get(p))&&void 0!==e?e:Sh(f,j(p,s.depth)),_=null!==(n=k.get(o.data))&&void 0!==n?n:Sh(f,j(o.data,o.depth)),M="straight"===u?((t,e,n,r)=>`M ${t} ${e} L ${n} ${r}`)(g,m,y,b):((t,e,n,r)=>{const i=Math.abs(n-t)/2;return`M ${t} ${e} C ${n>t?t+i:t-i} ${e} ${n>t?n-i:n+i} ${r} ${n} ${r}`})(g,m,y,b),C=`edge-gradient-${p._indexes.join("-")}`;R.push(F(G,{d:M,stroke:"gradient"===h?`url(#${C})`:null!=w?w:v,strokeWidth:d,fill:"none"})),"gradient"===h&&I.push(D("linearGradient",{id:C,gradientUnits:"userSpaceOnUse",x1:g,y1:m,x2:y,y2:b,children:[F("stop",{offset:"0%",stopColor:null!=_?_:v}),F("stop",{offset:"100%",stopColor:null!=w?w:v})]}));const O=null!==(i=null===(r=p.children)||void 0===r?void 0:r.length)&&void 0!==i?i:0,A=[...p._indexes,O],E=a.x+(a.width-x.width)/2,S=a.y+a.height+8,$=S+x.height+6;s.depth>0&&H.push(F(ih,{indexes:p._indexes,x:E,y:S})),H.push(F(rh,{indexes:A,x:E,y:$}))});const W=B.get(E);if(W){const t=E.data,r=null!==(n=null===(e=t.children)||void 0===e?void 0:e.length)&&void 0!==n?n:0,i=[...t._indexes,r];H.push(F(rh,{indexes:i,x:W.x+(W.width-x.width)/2,y:W.y+W.height+8+x.height+6}))}return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[y,D(Y,{children:[I.length>0?F(U,{children:I}):null,F(Y,{children:R}),F(fh,{children:N}),F(oh,{children:H})]})]})},composites:["title","item"]});const gp=(t,e)=>{if(!t||"#"!==t[0]||7!==t.length)return t;const n=Math.max(0,Math.min(1,e));return`${t}${Math.round(255*n).toString(16).padStart(2,"0")}`},mp=t=>null==t?"":String(t),yp=(t,e,n)=>Hc(F(Pc,{fontSize:e,fontWeight:n,children:t})),vp=(t,e,n,r)=>{const i=((t,e,n,r=" ")=>{const i=yp(r,e,n);let o=i.width,s=i.height;return t.forEach(t=>{const r=yp(t||" ",e,n);o=Math.max(o,r.width),s=Math.max(s,r.height)}),{width:o,height:s}})(t,e,"normal","Item");return{pillWidth:i.width+2*n,pillHeight:i.height+2*r}};zf("hierarchy-structure",{component:t=>{const{Title:e,data:n,options:r,rowGap:i=20,labelGap:o=20,groupGap:s=20,pillGap:a=14,pillColumns:l=2,ungroupedColumns:c=6,layerLabelPosition:h="left",rowPadding:u=20,groupPadding:d=16,labelPaddingX:f=28,labelPaddingY:p=16,pillPaddingX:g=18,pillPaddingY:m=10,labelFontSize:y=20,groupTitleFontSize:v=18,pillFontSize:x=16,groupTitleGap:b=10,rowRadius:w=12,groupRadius:_=10,pillRadius:M=12}=t,{title:k,desc:C,items:j=[]}=n,O=e?F(e,{title:k,desc:C}):null;if(0===j.length)return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[O,F(Y,{children:F(fh,{})})]});const A=$h(r.themeConfig),E=[],S=[],$="right"===h,z=j.map(t=>{const e=mp(t.label),n=yp(e||" ",y,"bold"),r=n.width+2*f,i=n.height+2*p,o=t.children||[];if(o.some(t=>{var e;return((null===(e=t.children)||void 0===e?void 0:e.length)||0)>0})){const t=[];o.forEach(e=>{(e.children||[]).forEach(e=>{t.push(mp(e.label))})});const{pillWidth:n,pillHeight:c}=vp(t,x,g,m),h=o.map(t=>{const e=mp(t.label),r=yp(e||" ",v,"bold"),i=t.children||[],o=i.length>0?Math.min(l,i.length):0,s=o>0?Math.ceil(i.length/o):0,h=o>0?o*n+(o-1)*a:0,u=s>0?s*c+(s-1)*a:0;return{label:e,children:i,width:Math.max(r.width,h)+2*d,height:2*d+r.height+(s>0?b+u:0),titleHeight:r.height,columns:o,contentWidth:h,pillWidth:n,pillHeight:c}}),u=h.reduce((t,e)=>t+e.width,0)+(h.length>1?(h.length-1)*s:0),f=h.reduce((t,e)=>Math.max(t,e.height),0);return{label:e,labelWidth:r,labelHeight:i,hasGroups:!0,children:o,groupMetrics:h,contentInnerWidth:u,contentInnerHeight:f}}const h=o.map(t=>mp(t.label)),{pillWidth:u,pillHeight:w}=vp(h,x,g,m),_=o.length>0?Math.min(c,o.length):0,M=_>0?Math.ceil(o.length/_):0;return{label:e,labelWidth:r,labelHeight:i,hasGroups:!1,children:o,pillWidth:u,pillHeight:w,columns:_,contentInnerWidth:_>0?_*u+(_-1)*a:0,contentInnerHeight:M>0?M*w+(M-1)*a:0}}),P=z.reduce((t,e)=>Math.max(t,e.labelWidth),0),L=z.reduce((t,e)=>Math.max(t,e.contentInnerWidth),0),T=(t,e,n,r,i,o,s,a,l,c,h,u,d,f)=>{E.push(F(Z,{x:n,y:s,width:i,height:a,fill:d,stroke:f,rx:w,ry:w,"data-element-type":"shape"})),E.push(F(Z,{x:l,y:c,width:h,height:u,fill:d,stroke:f,rx:w,ry:w,"data-element-type":"shape"})),S.push(F(Pc,{x:n,y:r,width:i,height:o,fontSize:y,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:A.colorText,"data-element-type":"item-label","data-indexes":e,children:t}))};let I=0,R=0;z.forEach((t,e)=>{const n=(t=>{const e=Sh(r,[t])||A.colorPrimary||"#6c7dff";return{rowFill:gp(e,.12),rowStroke:gp(e,.55),groupFill:gp(e,.08),groupStroke:gp(e,.4),pillFill:gp(e,.06),pillStroke:gp(e,.35)}})(e),{rowWidth:l,rowHeight:c}=t.hasGroups?((t,e,n,r)=>{const i=t.groupMetrics||[],l=t.label,c=[e],h=P,f=t.labelHeight,p=t.contentInnerHeight,g=Math.max(0,L-t.contentInnerWidth),m=i.length>0?g/i.length:0,y=t.contentInnerWidth+(i.length>0?g:0)+2*u,w=p+2*u,k=Math.max(f,w),C=$?0:h+o,j=$?C+y+o:0,O=n+(k-w)/2;T(l,c,j,n+(k-f)/2,h,f,n,k,C,O,y,w,r.rowFill,r.rowStroke);let z=C+u;return i.forEach((t,e)=>{const n=[...c,e],i=t.width+m,o=O+u+(p-t.height)/2;E.push(F(Z,{x:z,y:o,width:i,height:t.height,fill:r.groupFill,stroke:r.groupStroke,rx:_,ry:_,"data-element-type":"shape"}));const l=t.children.length>0;if(S.push(F(Pc,{x:z+d,y:l?o+d:o,width:i-2*d,height:l?t.titleHeight:t.height,fontSize:v,fontWeight:"bold",alignHorizontal:"center",alignVertical:l?"top":"middle",fill:A.colorText,"data-element-type":"item-label","data-indexes":n,children:t.label})),t.columns>0){const e=i-2*d,s=e-t.contentWidth,l=t.pillWidth+(s>0?s/t.columns:0),c=z+d+Math.max(0,(e-(t.columns*l+(t.columns-1)*a))/2),h=o+d+t.titleHeight+b;t.children.forEach((e,i)=>{const o=[...n,i],s=Math.floor(i/t.columns),u=c+i%t.columns*(l+a),d=h+s*(t.pillHeight+a),f=Math.min(M,t.pillHeight/2);E.push(F(Z,{x:u,y:d,width:l,height:t.pillHeight,fill:r.pillFill,stroke:r.pillStroke,rx:f,ry:f,"data-element-type":"shape"})),S.push(F(Pc,{x:u,y:d,width:l,height:t.pillHeight,fontSize:x,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:A.colorText,"data-element-type":"item-label","data-indexes":o,children:mp(e.label)}))})}z+=i+s}),{rowWidth:$?j+h:C+y,rowHeight:k}})(t,e,I,n):((t,e,n,r)=>{const i=t.label,s=[e],l=P,c=t.labelHeight,h=t.contentInnerHeight,d=Math.max(0,L-t.contentInnerWidth),f=t.columns||0,p=t.pillHeight||0,g=(t.pillWidth||0)+(f>0?d/f:0),m=(f>0?f*g+(f-1)*a:0)+2*u,y=h+2*u,v=Math.max(c,y),b=$?0:l+o,w=$?b+m+o:0,_=n+(v-y)/2;if(T(i,s,w,n+(v-c)/2,l,c,n,v,b,_,m,y,r.rowFill,r.rowStroke),f>0){const e=b+u,n=_+u;(t.children||[]).forEach((t,i)=>{const o=[...s,i],l=Math.floor(i/f),c=e+i%f*(g+a),h=n+l*(p+a),u=Math.min(M,p/2);E.push(F(Z,{x:c,y:h,width:g,height:p,fill:r.pillFill,stroke:r.pillStroke,rx:u,ry:u,"data-element-type":"shape"})),S.push(F(Pc,{x:c,y:h,width:g,height:p,fontSize:x,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:A.colorText,"data-element-type":"item-label","data-indexes":o,children:mp(t.label)}))})}return{rowWidth:$?w+l:b+m,rowHeight:v}})(t,e,I,n);R=Math.max(R,l),I+=c+i});const N=Math.max(I-i,0);return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[O,D(Y,{width:R,height:N,children:[F(Y,{children:E}),F(fh,{children:S})]})]})},composites:["title"]});const xp=(t,e)=>{const n=Math.max(0,e/2-1);return Math.min(t,n)};zf("hierarchy-tree",{component:t=>{const{Title:e,Items:n,data:r,levelGap:i=80,nodeGap:o=60,edgeType:s="straight",edgeColorMode:a="gradient",edgeWidth:l=3,edgeStyle:c="solid",edgeDashPattern:h="5,5",edgeCornerRadius:u=0,edgeOffset:d=0,edgeOrigin:f="center",edgeOriginPadding:p=20,edgeMarker:g="none",markerSize:m=12,colorMode:y="branch",orientation:v="top-bottom",options:x}=t,b="left-right"===v||"right-left"===v,w="bottom-top"===v||"right-left"===v?-1:1,{title:_,desc:M}=r,k=Ah(x),C=new Map;let j=0;const O=t=>{const{x:e,y:n}=t;return b?{x:n*w,y:e}:{x:e,y:n*w}},A=(t,e,n)=>{const{x:r,y:i}=O(t),o=r+n.x,s=i+n.y;return{centerX:o,centerY:s+e.height/2,left:o-e.width/2,right:o+e.width/2,top:s,bottom:s+e.height}},E=(t,e)=>{var n;if("group"===y){const e=String(null!==(n=null==t?void 0:t.group)&&void 0!==n?n:"");let r=C.get(e);return null==r&&(r=j,C.set(e,r),j+=1),[r]}return Th({depth:e,originalIndexes:t._originalIndex,flatIndex:t._flatIndex},y)},S=(t=>{var e;const n=[...t];return(null===(e=n[0])||void 0===e?void 0:e.children)||(n[0]=Object.assign(Object.assign({},n[0]),{children:n.slice(1)}),n.splice(1)),n})(r.items),$=e?F(e,{title:_,desc:M}):null,z=Hc(F(rh,{indexes:[0]}));if(!S.length)return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[$,F(Y,{children:F(oh,{children:F(rh,{indexes:[0],x:-z.width/2,y:-z.height/2})})})]});const P=(t=>{var e;if(!t.length)return null;const n=t[0],r=(t,e=[],n=0)=>{var i,o;const s=[...e,n];return Object.assign(Object.assign({},t),{_originalIndex:s,_depth:s.length-1,children:null!==(o=null===(i=t.children)||void 0===i?void 0:i.map((t,e)=>r(t,s,e)))&&void 0!==o?o:[]})};return(null===(e=n.children)||void 0===e?void 0:e.length)?r(n):Object.assign(Object.assign({},n),{_originalIndex:[0],_depth:0,children:t.slice(1).map((t,e)=>Object.assign(Object.assign({},t),{_originalIndex:[e+1],_depth:1}))})})(S),L=tf.Ay(P),{levelBounds:T,maxWidth:I,maxHeight:R}=(t=>{var e,i;let o=0,s=0;const a=new Map,l=new Map;t.each(t=>{l.has(t.depth)||l.set(t.depth,t.data)});for(let c=0;c<t.height+1;c++){const t=Rh(n,c),h=null!==(e=l.get(c))&&void 0!==e?e:{},u=Hc(F(t,{indexes:null!==(i=h._originalIndex)&&void 0!==i?i:Array(c+1).fill(0),data:r,datum:h,positionH:"center"}));a.set(c,u),o=Math.max(o,u.width),s=Math.max(s,u.height)}return{levelBounds:a,maxWidth:o,maxHeight:s}})(L),N=ef.A().nodeSize(b?[R+o,I+i]:[I+o,R+i]).separation(()=>1)(L).descendants(),H=N.map(t=>O(t)),B=Math.min(...H.map(t=>t.x)),W=Math.min(...H.map(t=>t.y)),V={x:Math.max(0,I/2-B),y:Math.max(0,-W+z.height+10)},Z=[],K=[],Q=[],J=[];return N.forEach((t,e)=>{t.data._flatIndex=e;const{x:n,y:r}=O(t);t.__layout={x:n,y:r}}),N.forEach(t=>{const{items:e,btns:i,deco:o}=((t,e,i,o,y,v)=>{const{depth:_,data:M,parent:C}=t,j=M._originalIndex,O=Rh(n,_),S=e.get(_),$=A(t,S,o),z=$.left,P=$.top,L={items:[],btns:[],deco:[]},T=E(M,_),I=$h({colorPrimary:Sh(x,T)},x);if(L.items.push(F(O,{indexes:j,datum:M,data:r,x:z,y:P,positionH:"center",themeColors:I})),L.btns.push(F(ih,{indexes:j,x:z+(S.width-i.width)/2,y:P+S.height+5}),F(rh,{indexes:[...j,0],x:z+(S.width-i.width)/2,y:P+S.height+i.height+10})),C){const n=e.get(C.depth),r=A(C,n,o),i=v.filter(t=>t.parent===C),O=i.findIndex(e=>e===t),S=i.length;let z,P;if("distributed"===f&&S>1)if(b){const t=xp(p,n.height),e=r.top+t,i=(r.bottom-t-e)/S;P=e+i*O+i/2,z=(w>0?r.right:r.left)+d*w}else{const t=xp(p,n.width),e=r.left+t,i=(r.right-t-e)/S;z=e+i*O+i/2,P=(w>0?r.bottom:r.top)+d*w}else z=b?(w>0?r.right:r.left)+d*w:r.centerX,P=b?r.centerY:(w>0?r.bottom:r.top)+d*w;const I=b?(w>0?$.left:$.right)-d*w:$.centerX,R=b?$.centerY:(w>0?$.top:$.bottom)-d*w;let N,H=I,B=R;if("arrow"===g&&(b?H-=m*w:B-=m*w),"curved"===s)if(b){const t=z+(H-z)/2;N=`M ${z} ${P} C ${t} ${P}, ${t} ${B}, ${H} ${B}`}else{const t=P+(B-P)/2;N=`M ${z} ${P} C ${z} ${t}, ${H} ${t}, ${H} ${B}`}else if(u>0)N=((t,e,n,r,i,o="vertical")=>{const s="vertical"===o,a=s?r-e:n-t,l=s?n-t:r-e,c=0===a?1:Math.sign(a),h=0===l?1:Math.sign(l),u=s?e+a/2:t+a/2,d=Math.min(i,Math.abs(a)/2,Math.abs(l)/2);return 0===d?s?`M ${t} ${e} L ${t} ${u} L ${n} ${u} L ${n} ${r}`:`M ${t} ${e} L ${u} ${e} L ${u} ${r} L ${n} ${r}`:s?`M ${t} ${e}\n L ${t} ${u-c*d}\n Q ${t} ${u} ${t+h*d} ${u}\n L ${n-h*d} ${u}\n Q ${n} ${u} ${n} ${u+c*d}\n L ${n} ${r}`:`M ${t} ${e}\n L ${u-c*d} ${e}\n Q ${u} ${e} ${u} ${e+h*d}\n L ${u} ${r-h*d}\n Q ${u} ${r} ${u+c*d} ${r}\n L ${n} ${r}`})(z,P,H,B,u,b?"horizontal":"vertical");else if(b){const t=z+(H-z)/2;N=`M ${z} ${P} L ${t} ${P} L ${t} ${B} L ${H} ${B}`}else{const t=P+(B-P)/2;N=`M ${z} ${P} L ${z} ${t} L ${H} ${t} L ${H} ${B}`}let W=k;if("gradient"===a){const t=E(C.data,C.depth),e=E(M,_),n=Sh(x,t),r=Sh(x,e),i=`gradient-${C.data._originalIndex.join("-")}-${j.join("-")}`;y.push(D("linearGradient",{id:i,x1:z,y1:P,x2:H,y2:B,gradientUnits:"userSpaceOnUse",children:[F("stop",{offset:"0%",stopColor:n}),F("stop",{offset:"100%",stopColor:r})]})),W=`url(#${i})`}if(L.deco.push(F(G,{d:N,stroke:W,strokeWidth:l,strokeDasharray:"dashed"===c?h:"",fill:"none"})),"arrow"===g){const t="gradient"===a?Sh(x,T):Ah(x);L.deco.push(F(X,{points:b?[{x:I,y:R},{x:I-m*w,y:R-m/2},{x:I-m*w,y:R+m/2}]:[{x:I,y:R},{x:I-m/2,y:R-m*w},{x:I+m/2,y:R-m*w}],fill:t,width:m,height:m}))}if("dot"===g){const t=E(C.data,C.depth),e="gradient"===a?Sh(x,t):Ah(x);L.deco.push(F(q,{x:(b?w>0?r.right+d:r.left-d:z)-m,y:(b?P:w>0?r.bottom+d:r.top-d)-m,width:2*m,height:2*m,fill:e}));const n="gradient"===a?Sh(x,T):Ah(x);L.deco.push(F(q,{x:I-m,y:R-m,width:2*m,height:2*m,fill:n}))}}return L})(t,T,z,V,J,N);Z.push(...e),K.push(...i),Q.push(...o)}),K.push(...((t,e,n)=>{const r=new Map;t.forEach(t=>{var e;const n=t.parent?t.parent.data._originalIndex.join("-"):"root";(null!==(e=r.get(n))&&void 0!==e?e:r.set(n,[]).get(n)).push(t)});const i=[];return r.forEach(t=>{if(t.length<=1)return;const r=t.slice().sort((t,e)=>b?O(t).y-O(e).y:O(t).x-O(e).x);if(0!==r.length)for(let t=0;t<r.length-1;t++){const o=O(r[t]),s=O(r[t+1]),a=r[t].data._originalIndex.slice(0,-1),l=r[t].data._originalIndex.at(-1)+1;if(b){const t=o.x+n.x+(w>0?-e.width-5:e.width+5),r=(o.y+s.y)/2+n.y-e.height/2;i.push(F(rh,{indexes:[...a,l],x:t,y:r}))}else{const t=o.y+n.y-e.height-5,r=(o.x+s.x)/2+n.x-e.width/2;i.push(F(rh,{indexes:[...a,l],x:r,y:t}))}}}),i})(N,z,V)),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[$,D(Y,{children:[J.length>0&&F(U,{children:J}),F(gh,{children:Q}),F(fh,{children:Z}),F(oh,{children:K})]})]})},composites:["title","item"]}),zf("list-column",{component:t=>{const{Title:e,Item:n,data:r,gap:i=20,width:o,zigzag:s}=t,{title:a,desc:l,items:c=[]}=r,h=Hc(F(rh,{indexes:[0]})),u=Hc(F(n,{indexes:[0],data:r,datum:c[0]})),d=o||u.width,f=e?F(e,{title:a,desc:l}):null,p=[],g=[],m=(d-h.width)/2;return c.forEach((t,e)=>{const o=(u.height+i)*e,a=[e];g.push(F(n,{indexes:a,datum:t,data:r,y:o,width:d,positionV:"middle",positionH:s?e%2==0?"normal":"flipped":"normal"})),p.push(F(ih,{indexes:a,x:-h.width-10,y:o+(u.height-h.height)/2})),p.push(F(rh,{indexes:a,x:m,y:0===e?-h.height:o-i/2-h.height/2}))}),c.length>0&&p.push(F(rh,{indexes:[c.length],x:m,y:(u.height+i)*(c.length-1)+u.height})),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,D(Y,{children:[F(fh,{children:g}),F(oh,{children:p})]})]})},composites:["title","item"]}),zf("list-grid",{component:t=>{const{Title:e,Item:n,data:r,columns:i=3,gap:o=24,zigzag:s}=t,{title:a,desc:l,items:c=[]}=r,h=e?F(e,{title:a,desc:l}):null,u=Hc(F(rh,{indexes:[0]})),d=Hc(F(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),f=[],p=[],g=d.height+o,m=d.width+o,y=new Set;return c.forEach((t,e)=>{const a=Math.floor(e/i),l=e%i,h=l*m,v=a*g,x=[e];p.push(F(n,{indexes:x,datum:t,data:r,x:h,y:v,positionH:"center",positionV:s&&e%2==0?"normal":"flipped"})),f.push(F(ih,{indexes:x,x:h+(d.width-u.width)/2,y:v+d.height})),l<i-1&&f.push(F(rh,{indexes:[e+1],x:h+d.width+(o-u.width)/2,y:v+(d.height-u.height)/2})),0!==l||y.has(a)||(f.push(F(rh,{indexes:[e],x:h-o/2-u.width/2,y:v+(d.height-u.height)/2})),y.add(a)),(l===i-1||e===c.length-1)&&f.push(F(rh,{indexes:[e+1],x:h+d.width+o/2-u.width/2,y:v+(d.height-u.height)/2}))}),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,D(Y,{children:[F(fh,{children:p}),F(oh,{children:f})]})]})},composites:["title","item"]}),zf("list-pyramid",{component:t=>{const{Title:e,Item:n,data:r,gap:i=20,levelGap:o=20}=t,{title:s,desc:a,items:l=[]}=r,c=e?F(e,{title:s,desc:a}):null,h=Hc(F(rh,{indexes:[0]})),u=Hc(F(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),d=[],f=[],p=Math.ceil(Math.sqrt(l.length)),g=[];let m=l.length;for(let t=0;t<p;t++){const e=Math.min(t+1,m);if(g.push(e),m-=e,m<=0)break}let y=0;const v=Math.max(...g),x=(v*u.width+(v-1)*i)/2;return g.forEach((t,e)=>{const s=e*(u.height+o),a=x-(t*u.width+(t-1)*i)/2;for(let e=0;e<t&&y<l.length;e++){const o=a+e*(u.width+i),c=[y];f.push(F(n,{indexes:c,datum:l[y],data:r,x:o,y:s,positionH:"center"})),d.push(F(ih,{indexes:c,x:o+(u.width-h.width)/2,y:s+u.height})),e<t-1&&d.push(F(rh,{indexes:[y+1],x:o+u.width+(i-h.width)/2,y:s+(u.height-h.height)/2})),0===e&&d.push(F(rh,{indexes:[y],x:o-i/2-h.width/2,y:s+(u.height-h.height)/2})),e===t-1&&d.push(F(rh,{indexes:[y+1],x:o+u.width+i/2-h.width/2,y:s+(u.height-h.height)/2})),y++}}),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,D(Y,{children:[F(fh,{children:f}),F(oh,{children:d})]})]})},composites:["title","item"]}),zf("list-row",{component:t=>{const{Title:e,Item:n,data:r,gap:i=20,zigzag:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?F(e,{title:s,desc:a}):null,h=Hc(F(rh,{indexes:[0]})),u=Hc(F(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),d=[],f=[],p=(u.height-h.height)/2,g=u.height;return l.forEach((t,e)=>{const s=(u.width+i)*e,a=[e];f.push(F(n,{indexes:a,datum:t,data:r,x:s,positionH:"center",positionV:o&&e%2==0?"normal":"flipped"})),d.push(F(ih,{indexes:a,x:s+(u.width-h.width)/2,y:g})),d.push(F(rh,{indexes:a,x:0===e?-(i+h.width)/2:s-(i+h.width)/2,y:p}))}),l.length>0&&d.push(F(rh,{indexes:[l.length],x:(u.width+i)*(l.length-1)+u.width+(i-h.width)/2,y:p})),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,D(Y,{children:[F(fh,{children:f}),F(oh,{children:d})]})]})},composites:["title","item"]}),zf("list-sector",{component:t=>{const{Item:e,data:n,outerRadius:r=250,innerRadius:i=120,startAngle:o=-90,endAngle:s=270,gapAngle:a=1,options:l}=t,{title:c,items:h=[]}=n,u=$h(l.themeConfig),d=Hc(F(rh,{indexes:[0]})),f=[],p=[],g=[],m=r+100,y=r+100,v=s-o,x=Math.abs(v-360)<.01,b=h.length>0?(v-(h.length>0?a*(x?h.length:h.length-1):0))/h.length:0;if(h.forEach((t,s)=>{var c;const u=[s],v=o+(b+a)*s,w=v+b,_=a*Math.PI*r/180/i*(180/Math.PI),M=(v+a/2)*Math.PI/180,k=(w-a/2)*Math.PI/180,C=(v+_/2)*Math.PI/180,j=(w-_/2)*Math.PI/180,O=m+r*Math.cos(M),A=y+r*Math.sin(M),E=m+r*Math.cos(k),S=y+r*Math.sin(k),$=m+i*Math.cos(C),z=y+i*Math.sin(C),P=m+i*Math.cos(j),L=y+i*Math.sin(j),T=b>180?1:0,I=`\n M ${O} ${A}\n A ${r} ${r} 0 ${T} 1 ${E} ${S}\n L ${P} ${L}\n A ${i} ${i} 0 ${T} 0 ${$} ${z}\n Z\n `.trim(),R=Sh(l,u);g.push(F(G,{id:"shape-sector",d:I,fill:R,width:2*r+200,height:2*r+200,"data-element-type":"shape"}));const N=(v+b/2)*Math.PI/180,H=(r+i)/2,B=r-i,W=H*(b*Math.PI/180),D=Math.min(.8*W,.9*B),V=Math.min(.9*B,.8*W),U=Hc(F(e,{indexes:[0],data:n,datum:h[0],positionH:"center",width:D,height:V})),q=m+H*Math.cos(N)-U.width/2,Y=y+H*Math.sin(N)-U.height/2;p.push(F(e,{indexes:u,datum:t,data:n,x:q,y:Y,positionH:"center",width:D,height:V,themeColors:Object.assign({},$h({colorBg:Sh(l,u),colorPrimary:(null===(c=l.themeConfig)||void 0===c?void 0:c.colorBg)||"white"}))}));const X=r+10,Z=m+X*Math.cos(N)-d.width/2,K=y+X*Math.sin(N)-d.height/2;if(f.push(F(ih,{indexes:u,x:Z,y:K})),x||s<h.length-1){const t=(w+a/2)*Math.PI/180,e=H,n=m+e*Math.cos(t)-d.width/2,r=y+e*Math.sin(t)-d.height/2;f.push(F(rh,{indexes:[s+1],x:n,y:r}))}}),h.length>0){const t=(o-a/2)*Math.PI/180,e=(r+i)/2,n=m+e*Math.cos(t)-d.width/2,s=y+e*Math.sin(t)-d.height/2;f.push(F(rh,{indexes:[0],x:n,y:s}))}const w=.9*i;let _=m,M=y,k=1.4*w,C=1.4*w;if(!x){const t=(o+s)/2*Math.PI/180,e=.5*w;_=m+e*Math.cos(t),M=y+e*Math.sin(t);const n=v*Math.PI*e/180;k=Math.min(.8*n,1.4*w),C=Math.min(1.5*e,1.4*w)}let j="";if(x)j="";else{const t=o*Math.PI/180,e=s*Math.PI/180,n=m+w*Math.cos(t),r=y+w*Math.sin(t),i=m+w*Math.cos(e),a=y+w*Math.sin(e);j=`\n M ${m} ${y}\n L ${n} ${r}\n A ${w} ${w} 0 ${v>180?1:0} 1 ${i} ${a}\n Z\n `.trim()}return D(Y,{id:"infographic-container",children:[F(Y,{children:g}),x?F(q,{id:"shape-center-circle",x:m-w,y:y-w,width:2*w,height:2*w,fill:u.colorPrimaryBg,fillOpacity:.5,"data-element-type":"shape"}):F(G,{id:"shape-center-sector",d:j,fill:u.colorPrimaryBg,fillOpacity:.5,width:2*r+200,height:2*r+200,"data-element-type":"shape"}),F(Pc,{x:_-k/2,y:M-C/2,width:k,height:C,alignHorizontal:"center",alignVertical:"middle",fontSize:24,fontWeight:"bold",fill:u.colorText,"data-element-type":"title",children:c}),F(fh,{children:p}),F(oh,{children:f})]})},composites:["title","item"]}),zf("list-waterfall",{component:t=>{const{Title:e,Item:n,data:r,columns:i=4,gap:o=20,stepOffset:s=40}=t,{title:a,desc:l,items:c=[]}=r,h=e?F(e,{title:a,desc:l}):null,u=Hc(F(rh,{indexes:[0]})),d=Hc(F(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),f=[],p=[],g=d.width+o;return c.forEach((t,e)=>{const a=e%i,l=Math.floor(e/i),c=a*g,h=l*(d.height+o)+a*s,m=[e];p.push(F(n,{indexes:m,datum:t,data:r,x:c,y:h,positionH:"center"})),f.push(F(ih,{indexes:m,x:c+(d.width-u.width)/2,y:h+d.height+5}))}),c.forEach((t,e)=>{const n=e%i,r=Math.floor(e/i),a=n*g,l=r*(d.height+o)+n*s;0===e&&f.push(F(rh,{indexes:[0],x:a-o/2-u.width/2,y:l+(d.height-u.height)/2})),n<i-1&&e<c.length-1&&r===Math.floor((e+1)/i)&&f.push(F(rh,{indexes:[e+1],x:a+d.width+(o-u.width)/2,y:l+(d.height-u.height)/2})),n!==i-1&&e!==c.length-1||f.push(F(rh,{indexes:[e+1],x:a+d.width+(o-u.width)/2,y:l+(d.height-u.height)/2}))}),0===c.length&&f.push(F(rh,{indexes:[0],x:(i-1)*g/2+(d.width-u.width)/2,y:0})),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,D(Y,{children:[F(fh,{children:p}),F(oh,{children:f})]})]})},composites:["title","item"]});const bp=(t,e,n)=>{const r=e[t];return r?r.map(t=>({x:700*t.x,y:t.y*n,anchor:t.anchor})):null},wp=(t,e)=>{const n=e.x-t.x,r=e.y-t.y,i=Math.hypot(n,r)||1;return{x:n/i,y:r/i}},_p=t=>{const{presetRatios:e,arrowHeight:n,Arrow:r}=t;return t=>{var i;const{Title:o,Item:s,data:a,options:l,itemGap:c=24}=t,{title:h,desc:u,items:d=[]}=a,f=Math.min(d.length,6),p=d.slice(0,f),g=o?F(o,{title:h,desc:u}):null,m=Ah(l),y=$h({colorPrimary:m},l).colorTextSecondary||"#737373",v=Hc(F(rh,{indexes:[0]}));if(0===d.length){const t=null===(i=bp(1,e,n))||void 0===i?void 0:i[0];if(!t)return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,F(Y,{children:F(r,{colorPrimary:m,colorShadow:y})})]});const o=t.x-v.width/2,s=t.y-v.height/2;return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,D(Y,{children:[F(r,{colorPrimary:m,colorShadow:y}),F(fh,{}),F(oh,{children:F(rh,{indexes:[0],x:o,y:s})})]})]})}const x=Hc(F(s,{indexes:[0],data:a,datum:d[0],positionH:"center"})),b=[],w=[],_=bp(f,e,n);if(!_)return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,D(Y,{children:[F(r,{colorPrimary:m,colorShadow:y}),F(fh,{})]})]});const M=_,k=M.length>1?wp(M[0],M[M.length-1]):{x:1,y:0},C=M.length>1?wp(M[0],M[1]):k,j=M.length>1?wp(M[M.length-2],M[M.length-1]):k,O=.45*Math.max(x.width,x.height)+c;if(M.forEach((t,e)=>{const r=(t=>{const{x:e,y:n,centerY:r}=((t,e)=>{let n=t.x-e.width/2,r=t.y-e.height/2,i=t.y;switch(t.anchor||"center"){case"top":n=t.x-e.width/2,r=t.y,i=t.y+e.height/2;break;case"bottom":n=t.x-e.width/2,r=t.y-e.height,i=t.y-e.height/2;break;case"top-left":n=t.x,r=t.y,i=t.y+e.height/2;break;case"top-right":n=t.x-e.width,r=t.y,i=t.y+e.height/2;break;case"bottom-left":n=t.x,r=t.y-e.height,i=t.y-e.height/2;break;case"bottom-right":n=t.x-e.width,r=t.y-e.height,i=t.y-e.height/2}return{x:n,y:r,centerY:i}})(t,x);return{x:e,y:n,centerY:r}})(t),i=r.centerY<n/2,o=[e],l=p[e];l&&(w.push(F(s,{indexes:o,datum:l,data:a,x:r.x,y:r.y,positionH:"center"})),b.push(F(ih,{indexes:o,x:r.x+x.width-v.width/2,y:i?r.y-v.height/2:r.y+x.height-v.height/2})))}),M.length>0){const t=M[0];b.push(F(rh,{indexes:[0],x:t.x-C.x*O-v.width/2,y:t.y-C.y*O-v.height/2}));for(let t=0;t<M.length-1;t++){const e=M[t],n=M[t+1];b.push(F(rh,{indexes:[t+1],x:(e.x+n.x)/2-v.width/2,y:(e.y+n.y)/2-v.height/2}))}const e=M[M.length-1];b.push(F(rh,{indexes:[f],x:e.x+j.x*O-v.width/2,y:e.y+j.y*O-v.height/2}))}return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,D(Y,{children:[F(r,{colorPrimary:m,colorShadow:y}),F(fh,{children:w}),F(oh,{children:b})]})]})}},Mp=_p({arrowHeight:330,presetRatios:{1:[{x:.5,y:.6,anchor:"top-right"}],2:[{x:.42,y:.5,anchor:"top-right"},{x:.72,y:.4,anchor:"bottom"}],3:[{x:.3,y:.5,anchor:"top-right"},{x:.48,y:.3,anchor:"bottom-left"},{x:.8,y:.75,anchor:"top-right"}],4:[{x:.3,y:.5,anchor:"top-right"},{x:.35,y:.2,anchor:"bottom-left"},{x:.65,y:.73,anchor:"top-right"},{x:.8,y:.52,anchor:"bottom-left"}],5:[{x:.19,y:.4,anchor:"top-right"},{x:.38,y:.2,anchor:"bottom"},{x:.52,y:.62,anchor:"top-right"},{x:.7,y:.43,anchor:"bottom"},{x:.82,y:.8,anchor:"top-right"}],6:[{x:.16,y:.35,anchor:"top-right"},{x:.38,y:.2,anchor:"bottom"},{x:.48,y:.54,anchor:"top-right"},{x:.55,y:.43,anchor:"bottom-left"},{x:.8,y:.75,anchor:"top-right"},{x:.86,y:.65,anchor:"bottom-left"}]},Arrow:({colorPrimary:t="#17CA2C",colorShadow:e="#737373"})=>{const n=(0,ea.A)(t).darken(20).toHexString();return D(Y,{width:700,height:330,children:[F("path",{d:"M228.864 159.446C230.266 159.446 231.623 158.768 232.689 157.535L274.263 110.162L265.717 102.923L227.311 148.082C225.977 149.623 224.281 150.47 222.529 150.47H175.404L182.03 158.367C182.795 159.445 182.795 159.446 183.734 159.446H228.864Z",fill:e}),F("path",{d:"M462.869 234.92C464.271 234.92 465.628 234.242 466.695 233.01L508.268 185.636L499.722 178.397L461.316 223.557C459.983 225.098 458.287 225.945 456.534 225.945H409.409L416.035 233.841C416.8 234.92 416.8 234.92 417.74 234.92H462.869Z",fill:e}),F("path",{d:"M697.005 330C698.783 330 700 328.82 700 327.001V256.638C700 254.857 697.848 253.965 696.591 255.225L693.409 258.411V320.402C693.409 322.058 692.069 323.401 690.414 323.401H630.718L627.536 326.587C626.278 327.847 627.169 330 628.947 330H697.005Z",fill:e}),F("path",{d:"M689.642 321.89C690.744 321.89 691.638 320.995 691.638 319.891V250.743C691.638 248.962 689.488 248.07 688.23 249.329L662.647 274.947L520.987 153.863C519.541 152.627 517.703 151.948 515.802 151.948H469.518C470.236 151.949 470.956 152.206 471.53 152.729L498.163 176.978L498.13 177.018L639.84 297.784L619.174 318.477C617.916 319.737 618.807 321.89 620.586 321.89H689.642Z",fill:t}),F("path",{d:"M429.279 198.995L467.208 153.03C468.3 151.716 470.268 151.579 471.531 152.729L498.163 176.978L460.69 221.107C459.173 222.894 456.946 223.924 454.6 223.924H408.473C409.366 223.924 410.252 223.527 410.845 222.764L429.279 198.995Z",fill:n}),F("path",{d:"M408.473 223.924H408.314L408.318 223.92C408.369 223.922 408.421 223.924 408.473 223.924Z",fill:n}),F("path",{d:"M406.524 223.203C407.826 224.318 409.796 224.116 410.845 222.761L429.279 198.932L287.411 77.8866C285.964 76.6523 284.125 75.9742 282.223 75.9742H234.606L234.625 75.9907C235.429 75.9118 236.263 76.1557 236.915 76.7378L263.662 100.621L263.546 100.758L406.524 223.203Z",fill:t}),F("path",{d:"M236.914 76.7386C235.651 75.6097 233.707 75.7513 232.621 77.0513L194.557 123.104L175.644 146.821C175.076 147.535 174.25 147.917 173.409 147.947L173.407 147.95H219.923C222.271 147.95 224.499 146.915 226.017 145.122L263.645 100.649L236.914 76.7386Z",fill:n}),F("path",{d:"M175.648 146.816C174.589 148.145 172.637 148.329 171.348 147.221L4.09334 3.51697C2.68586 2.30767 3.54106 0 5.39671 0H47.5805C49.4864 0 51.3297 0.680433 52.7785 1.91877L194.557 123.104L175.648 146.816Z",fill:t})]})}}),kp=_p({arrowHeight:333,presetRatios:{1:[{x:.5,y:.4,anchor:"bottom-right"}],2:[{x:.42,y:.5,anchor:"bottom-right"},{x:.72,y:.6,anchor:"top"}],3:[{x:.3,y:.5,anchor:"bottom-right"},{x:.48,y:.7,anchor:"top-left"},{x:.8,y:.25,anchor:"bottom-right"}],4:[{x:.3,y:.5,anchor:"bottom-right"},{x:.35,y:.8,anchor:"top-left"},{x:.65,y:.27,anchor:"bottom-right"},{x:.8,y:.48,anchor:"top-left"}],5:[{x:.19,y:.6,anchor:"bottom-right"},{x:.38,y:.8,anchor:"top"},{x:.52,y:.38,anchor:"bottom-right"},{x:.7,y:.57,anchor:"top"},{x:.82,y:.2,anchor:"bottom-right"}],6:[{x:.16,y:.65,anchor:"bottom-right"},{x:.38,y:.8,anchor:"top"},{x:.48,y:.46,anchor:"bottom-right"},{x:.55,y:.57,anchor:"top-left"},{x:.8,y:.25,anchor:"bottom-right"},{x:.86,y:.35,anchor:"top-left"}]},Arrow:({colorPrimary:t="#17CA2C",colorShadow:e="#737373"})=>{const n=(0,ea.A)(t).darken(20).toHexString();return D(Y,{width:700,height:333,children:[F("path",{d:"M19.0526 324L12.6762 329.482C11.2703 330.691 12.1234 333 13.976 333H56.1578C58.058 333 59.896 332.321 61.3413 331.085L201.854 210.901L194.249 201.693L54.0527 321.606C52.246 323.151 49.9486 324 47.5732 324H19.0526Z",fill:e}),F("path",{d:"M234.587 248L241.131 255.922C241.656 256.552 242.382 256.909 243.134 256.983L243.115 257H290.716C292.618 257 294.457 256.322 295.903 255.087L437.091 134.536L429.305 125.5L288.613 245.609C286.805 247.153 284.507 248 282.132 248H234.587Z",fill:e}),F("path",{d:"M461.123 162.429L475.642 179.918C476.237 180.635 477.092 181.001 477.951 181H524.22C526.121 181 527.959 180.321 529.404 179.085L670.786 58.1578L662.326 49.6809L522.115 169.606C520.309 171.151 518.011 172 515.636 172H469.369L461.123 162.429Z",fill:e}),F("path",{d:"M687.912 74.8875C690.374 75.9052 693.412 74.1668 693.412 71.1716V11H698.004C699.106 11 700 11.8954 700 13V82.1716C700 83.9534 697.85 84.8457 696.593 83.5858L687.912 74.8875Z",fill:e}),F("path",{d:"M689.419 0C690.522 0 691.415 0.895432 691.415 2V71.1716C691.415 72.9534 689.265 73.8457 688.008 72.5858L662.433 46.9598L520.819 168.085C519.374 169.321 517.536 170 515.636 170H469.367C470.084 169.999 470.804 169.742 471.379 169.219L498.003 144.961L497.969 144.922L639.634 24.115L618.975 3.41421C617.717 2.15428 618.608 0 620.386 0H689.419Z",fill:t}),F("path",{d:"M429.141 122.937L467.058 168.918C468.149 170.232 470.116 170.369 471.378 169.219L498.003 144.961L460.542 100.818C459.025 99.0305 456.798 98 454.453 98H408.341C409.234 98.0001 410.12 98.3968 410.712 99.1606L429.141 122.937Z",fill:n}),F("path",{d:"M408.341 98H408.183L408.186 98.004C408.237 98.0013 408.289 98 408.341 98Z",fill:n}),F("path",{d:"M406.393 98.721C407.695 97.606 409.664 97.8077 410.712 99.1633L429.141 123L287.318 244.087C285.872 245.322 284.033 246 282.132 246H234.53L234.55 245.983C235.353 246.062 236.187 245.818 236.839 245.236L263.577 221.345L263.461 221.208L406.393 98.721Z",fill:t}),F("path",{d:"M236.837 245.235C235.575 246.365 233.631 246.223 232.546 244.922L194.494 198.854L175.588 175.129C175.019 174.415 174.194 174.032 173.353 174.002L173.351 174H219.852C222.199 174 224.427 175.035 225.944 176.829L263.56 221.317L236.837 245.235Z",fill:n}),F("path",{d:"M175.593 175.135C174.533 173.805 172.581 173.622 171.291 174.73L4.09013 318.484C2.68329 319.693 3.53868 322 5.394 322H47.5627C49.4695 322 51.3136 321.319 52.7627 320.08L194.494 198.854L175.593 175.135Z",fill:t})]})}});function Cp(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})}zf("list-zigzag-down",{component:Mp,composites:["title","item"]}),zf("list-zigzag-up",{component:kp,composites:["title","item"]}),zf("relation-circle",{component:t=>{const{Title:e,Item:n,data:r,radius:i=150,startMode:o="top"}=t,{title:s,desc:a,items:l=[]}=r,c=e?F(e,{title:s,desc:a}):null,h=Hc(F(rh,{indexes:[0]})),u=Hc(F(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),d=[],f=[];if(0===l.length)return d.push(F(rh,{indexes:[0],x:-h.width/2,y:-h.height/2})),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,F(Y,{children:F(oh,{children:d})})]});const p=Math.max(u.width,u.height),g=Math.max(i,p),m=g+p/2,y=l.map(()=>(u.width+u.height)/2),v=y.reduce((t,e)=>t+e,0);let x;x="equal"===o?-Math.PI/2:-Math.PI/2+2*Math.PI/l.length/2;let b=x;l.forEach((t,e)=>{const i=y[e]/v*2*Math.PI,o=b+i/2;b+=i;const s=m+g*Math.cos(o)-u.width/2,a=m+g*Math.sin(o)-u.height/2;f.push(F(n,{indexes:[e],datum:t,data:r,x:s,y:a}));const l=g-Math.max(u.width,u.height)/2-20,c=m+l*Math.cos(o)-h.width/2,p=m+l*Math.sin(o)-h.height/2;d.push(F(ih,{indexes:[e],x:c,y:p}))});const w=g-Math.max(u.width,u.height)/2-20;if(l.length>0)for(let t=0;t<l.length;t++){const e=2*t*Math.PI/l.length-Math.PI/2,n=(t+1)%l.length*2*Math.PI/l.length-Math.PI/2;let r;r=t===l.length-1?e+(n+2*Math.PI-e)/2:(e+n)/2;const i=m+w*Math.cos(r)-h.width/2,o=m+w*Math.sin(r)-h.height/2;d.push(F(rh,{indexes:[t+1],x:i,y:o}))}return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,D(Y,{children:[F(fh,{children:f}),F(oh,{children:d})]})]})},composites:["title","item"]}),"function"==typeof SuppressedError&&SuppressedError;var jp,Op,Ap,Ep,Sp,$p,zp,Pp,Lp,Tp,Ip,Rp,Np,Hp,Bp,Wp,Fp,Dp,Vp,Up,qp,Yp,Gp,Xp,Zp,Kp,Qp,Jp,tg,eg,ng,rg,ig,og,sg,ag,lg,cg,hg,ug,dg,fg,pg,gg,mg,yg,vg,xg,bg,wg,_g,Mg,kg,Cg,jg,Og,Ag,Eg,Sg,$g,zg,Pg,Lg,Tg,Ig,Rg,Ng,Hg,Bg,Wg,Fg,Dg,Vg,Ug,qg,Yg,Gg,Xg,Zg,Kg,Qg,Jg,tm,em,nm,rm,im,om,sm,am,lm,cm,hm,um,dm,fm,pm,gm,mm,ym,vm,xm,bm,wm,_m,Mm,km,Cm,jm="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function Om(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Am(){return Ep||(Ep=1,Ap=function(t,e){return t===e||t!=t&&e!=e}),Ap}function Em(){if($p)return Sp;$p=1;var t=Am();return Sp=function(e,n){for(var r=e.length;r--;)if(t(e[r][0],n))return r;return-1}}function Sm(){if(Wp)return Bp;Wp=1;var t=Op?jp:(Op=1,jp=function(){this.__data__=[],this.size=0}),e=function(){if(Pp)return zp;Pp=1;var t=Em(),e=Array.prototype.splice;return zp=function(n){var r=this.__data__,i=t(r,n);return!(i<0||(i==r.length-1?r.pop():e.call(r,i,1),--this.size,0))}}(),n=function(){if(Tp)return Lp;Tp=1;var t=Em();return Lp=function(e){var n=this.__data__,r=t(n,e);return r<0?void 0:n[r][1]}}(),r=function(){if(Rp)return Ip;Rp=1;var t=Em();return Ip=function(e){return t(this.__data__,e)>-1}}(),i=function(){if(Hp)return Np;Hp=1;var t=Em();return Np=function(e,n){var r=this.__data__,i=t(r,e);return i<0?(++this.size,r.push([e,n])):r[i][1]=n,this},Np}();function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Bp=o}function $m(){return Kp?Zp:(Kp=1,Zp="object"==typeof jm&&jm&&jm.Object===Object&&jm)}function zm(){if(Jp)return Qp;Jp=1;var t=$m(),e="object"==typeof self&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return Qp=n}function Pm(){if(eg)return tg;eg=1;var t=zm();return tg=t.Symbol}function Lm(){if(ag)return sg;ag=1;var t=Pm(),e=function(){if(rg)return ng;rg=1;var t=Pm(),e=Object.prototype,n=e.hasOwnProperty,r=e.toString,i=t?t.toStringTag:void 0;return ng=function(t){var e=n.call(t,i),o=t[i];try{t[i]=void 0;var s=!0}catch(t){}var a=r.call(t);return s&&(e?t[i]=o:delete t[i]),a},ng}(),n=function(){if(og)return ig;og=1;var t=Object.prototype.toString;return ig=function(e){return t.call(e)},ig}(),r=t?t.toStringTag:void 0;return sg=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":r&&r in Object(t)?e(t):n(t)},sg}function Tm(){return cg||(cg=1,lg=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}),lg}function Im(){if(ug)return hg;ug=1;var t=Lm(),e=Tm();return hg=function(n){if(!e(n))return!1;var r=t(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},hg}function Rm(){if(yg)return mg;yg=1;var t=Function.prototype.toString;return mg=function(e){if(null!=e){try{return t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}}function Nm(){if(Mg)return _g;Mg=1;var t=function(){if(xg)return vg;xg=1;var t=Im(),e=function(){if(gg)return pg;gg=1;var t=function(){if(fg)return dg;fg=1;var t=zm();return dg=t["__core-js_shared__"]}(),e=function(){var e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();return pg=function(t){return!!e&&e in t}}(),n=Tm(),r=Rm(),i=/^\[object .+?Constructor\]$/,o=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return vg=function(s){return!(!n(s)||e(s))&&(t(s)?o:i).test(r(s))},vg}(),e=(wg||(wg=1,bg=function(t,e){return null==t?void 0:t[e]}),bg);return _g=function(n,r){var i=e(n,r);return t(i)?i:void 0},_g}function Hm(){if(Cg)return kg;Cg=1;var t=Nm()(zm(),"Map");return kg=t}function Bm(){if(Og)return jg;Og=1;var t=Nm()(Object,"create");return jg=t}function Wm(){if(Ug)return Vg;Ug=1;var t=(Dg||(Dg=1,Fg=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}),Fg);return Vg=function(e,n){var r=e.__data__;return t(n)?r["string"==typeof n?"string":"hash"]:r.map}}function Fm(){if(em)return tm;em=1;var t=function(){if(Wg)return Bg;Wg=1;var t=function(){if(Hg)return Ng;Hg=1;var t=function(){if(Eg)return Ag;Eg=1;var t=Bm();return Ag=function(){this.__data__=t?t(null):{},this.size=0}}(),e=$g?Sg:($g=1,Sg=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),n=function(){if(Pg)return zg;Pg=1;var t=Bm(),e=Object.prototype.hasOwnProperty;return zg=function(n){var r=this.__data__;if(t){var i=r[n];return"__lodash_hash_undefined__"===i?void 0:i}return e.call(r,n)?r[n]:void 0},zg}(),r=function(){if(Tg)return Lg;Tg=1;var t=Bm(),e=Object.prototype.hasOwnProperty;return Lg=function(n){var r=this.__data__;return t?void 0!==r[n]:e.call(r,n)}}(),i=function(){if(Rg)return Ig;Rg=1;var t=Bm();return Ig=function(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=t&&void 0===n?"__lodash_hash_undefined__":n,this},Ig}();function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Ng=o}(),e=Sm(),n=Hm();return Bg=function(){this.size=0,this.__data__={hash:new t,map:new(n||e),string:new t}}}(),e=function(){if(Yg)return qg;Yg=1;var t=Wm();return qg=function(e){var n=t(this,e).delete(e);return this.size-=n?1:0,n}}(),n=function(){if(Xg)return Gg;Xg=1;var t=Wm();return Gg=function(e){return t(this,e).get(e)}}(),r=function(){if(Kg)return Zg;Kg=1;var t=Wm();return Zg=function(e){return t(this,e).has(e)}}(),i=function(){if(Jg)return Qg;Jg=1;var t=Wm();return Qg=function(e,n){var r=t(this,e),i=r.size;return r.set(e,n),this.size+=r.size==i?0:1,this},Qg}();function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,tm=o}function Dm(){if(om)return im;om=1;var t=Sm(),e=function(){if(Dp)return Fp;Dp=1;var t=Sm();return Fp=function(){this.__data__=new t,this.size=0}}(),n=(Up||(Up=1,Vp=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}),Vp),r=Yp?qp:(Yp=1,qp=function(t){return this.__data__.get(t)}),i=Xp?Gp:(Xp=1,Gp=function(t){return this.__data__.has(t)}),o=function(){if(rm)return nm;rm=1;var t=Sm(),e=Hm(),n=Fm();return nm=function(r,i){var o=this.__data__;if(o instanceof t){var s=o.__data__;if(!e||s.length<199)return s.push([r,i]),this.size=++o.size,this;o=this.__data__=new n(s)}return o.set(r,i),this.size=o.size,this},nm}();function s(e){var n=this.__data__=new t(e);this.size=n.size}return s.prototype.clear=e,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=i,s.prototype.set=o,im=s}function Vm(){return am||(am=1,sm=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}),sm}function Um(){if(cm)return lm;cm=1;var t=Nm(),e=function(){try{var e=t(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();return lm=e}function qm(){if(um)return hm;um=1;var t=Um();return hm=function(e,n,r){"__proto__"==n&&t?t(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r},hm}function Ym(){if(fm)return dm;fm=1;var t=qm(),e=Am(),n=Object.prototype.hasOwnProperty;return dm=function(r,i,o){var s=r[i];n.call(r,i)&&e(s,o)&&(void 0!==o||i in r)||t(r,i,o)},dm}function Gm(){if(gm)return pm;gm=1;var t=Ym(),e=qm();return pm=function(n,r,i,o){var s=!i;i||(i={});for(var a=-1,l=r.length;++a<l;){var c=r[a],h=o?o(i[c],n[c],c,i,n):void 0;void 0===h&&(h=n[c]),s?e(i,c,h):t(i,c,h)}return i},pm}function Xm(){return xm||(xm=1,vm=function(t){return null!=t&&"object"==typeof t}),vm}function Zm(){if(Mm)return _m;Mm=1;var t=function(){if(wm)return bm;wm=1;var t=Lm(),e=Xm();return bm=function(n){return e(n)&&"[object Arguments]"==t(n)},bm}(),e=Xm(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=t(function(){return arguments}())?t:function(t){return e(t)&&r.call(t,"callee")&&!i.call(t,"callee")};return _m=o}function Km(){return Cm?km:(Cm=1,km=Array.isArray)}var Qm,Jm,ty,ey,ny,ry,iy,oy,sy,ay,ly,cy={exports:{}};function hy(){return ty||(ty=1,function(t,e){var n=zm(),r=Jm?Qm:(Jm=1,Qm=function(){return!1}),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i?n.Buffer:void 0;t.exports=(s?s.isBuffer:void 0)||r}(cy,cy.exports)),cy.exports}function uy(){if(ny)return ey;ny=1;var t=/^(?:0|[1-9]\d*)$/;return ey=function(e,n){var r=typeof e;return!!(n=n??9007199254740991)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n},ey}function dy(){return iy||(iy=1,ry=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}),ry}function fy(){return ly||(ly=1,ay=function(t){return function(e){return t(e)}}),ay}var py,gy,my,yy,vy,xy,by,wy,_y,My,ky,Cy,jy,Oy,Ay,Ey,Sy,$y,zy,Py,Ly,Ty,Iy,Ry,Ny,Hy,By,Wy={exports:{}};function Fy(){return py||(py=1,function(t,e){var n=$m(),r=e&&!e.nodeType&&e,i=r&&t&&!t.nodeType&&t,o=i&&i.exports===r&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=s}(Wy,Wy.exports)),Wy.exports}function Dy(){if(my)return gy;my=1;var t=function(){if(sy)return oy;sy=1;var t=Lm(),e=dy(),n=Xm(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,oy=function(i){return n(i)&&e(i.length)&&!!r[t(i)]},oy}(),e=fy(),n=Fy(),r=n&&n.isTypedArray,i=r?e(r):t;return gy=i}function Vy(){if(vy)return yy;vy=1;var t=(ym||(ym=1,mm=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}),mm),e=Zm(),n=Km(),r=hy(),i=uy(),o=Dy(),s=Object.prototype.hasOwnProperty;return yy=function(a,l){var c=n(a),h=!c&&e(a),u=!c&&!h&&r(a),d=!c&&!h&&!u&&o(a),f=c||h||u||d,p=f?t(a.length,String):[],g=p.length;for(var m in a)!l&&!s.call(a,m)||f&&("length"==m||u&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||i(m,g))||p.push(m);return p},yy}function Uy(){if(by)return xy;by=1;var t=Object.prototype;return xy=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)},xy}function qy(){return _y||(_y=1,wy=function(t,e){return function(n){return t(e(n))}}),wy}function Yy(){if(jy)return Cy;jy=1;var t=Uy(),e=function(){if(ky)return My;ky=1;var t=qy()(Object.keys,Object);return My=t}(),n=Object.prototype.hasOwnProperty;return Cy=function(r){if(!t(r))return e(r);var i=[];for(var o in Object(r))n.call(r,o)&&"constructor"!=o&&i.push(o);return i},Cy}function Gy(){if(Ay)return Oy;Ay=1;var t=Im(),e=dy();return Oy=function(n){return null!=n&&e(n.length)&&!t(n)},Oy}function Xy(){if(Sy)return Ey;Sy=1;var t=Vy(),e=Yy(),n=Gy();return Ey=function(r){return n(r)?t(r):e(r)},Ey}function Zy(){if(Ny)return Ry;Ny=1;var t=Vy(),e=function(){if(Iy)return Ty;Iy=1;var t=Tm(),e=Uy(),n=(Ly||(Ly=1,Py=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}),Py),r=Object.prototype.hasOwnProperty;return Ty=function(i){if(!t(i))return n(i);var o=e(i),s=[];for(var a in i)("constructor"!=a||!o&&r.call(i,a))&&s.push(a);return s},Ty}(),n=Gy();return Ry=function(r){return n(r)?t(r,!0):e(r)},Ry}var Ky,Qy,Jy,tv,ev,nv,rv,iv,ov,sv,av,lv,cv,hv,uv,dv,fv,pv,gv,mv,yv,vv,xv,bv,wv,_v,Mv,kv,Cv,jv,Ov,Av,Ev,Sv,$v,zv,Pv,Lv,Tv,Iv,Rv,Nv,Hv,Bv,Wv,Fv,Dv,Vv,Uv,qv,Yv,Gv,Xv,Zv,Kv,Qv,Jv,tx,ex,nx,rx,ix,ox,sx,ax,lx,cx,hx,ux,dx,fx,px,gx,mx,yx,vx,xx,bx,wx,_x,Mx,kx,Cx,jx,Ox,Ax,Ex,Sx,$x,zx,Px,Lx,Tx,Ix,Rx,Nx,Hx,Bx,Wx,Fx,Dx,Vx,Ux,qx,Yx,Gx,Xx,Zx,Kx,Qx,Jx,tb,eb,nb,rb,ib,ob,sb,ab,lb,cb,hb,ub,db,fb,pb,gb,mb,yb,vb,xb,bb,wb,_b,Mb,kb,Cb,jb,Ob,Ab,Eb,Sb,$b,zb,Pb,Lb,Tb,Ib,Rb,Nb,Hb,Bb,Wb,Fb,Db,Vb,Ub,qb,Yb,Gb,Xb,Zb,Kb,Qb,Jb,tw,ew,nw,rw,iw,ow,sw,aw,lw,cw,hw,uw,dw,fw,pw,gw,mw,yw,vw,xw,bw,ww,_w,Mw,kw,Cw,jw,Ow,Aw,Ew,Sw,$w,zw,Pw,Lw,Tw,Iw,Rw,Nw,Hw,Bw,Ww,Fw,Dw,Vw,Uw,qw,Yw,Gw,Xw,Zw,Kw,Qw,Jw,t_,e_,n_,r_,i_,o_,s_,a_,l_,c_,h_,u_,d_,f_,p_,g_,m_,y_,v_,x_,b_,w_,__,M_,k_,C_,j_,O_,A_,E_,S_,$_,z_,P_,L_,T_,I_,R_,N_,H_,B_,W_,F_,D_,V_,U_,q_,Y_,G_,X_,Z_,K_,Q_,J_,tM,eM,nM,rM,iM,oM,sM,aM,lM,cM,hM,uM,dM,fM,pM,gM,mM,yM,vM,xM,bM,wM,_M,MM,kM,CM,jM,OM,AM,EM,SM,$M,zM,PM,LM,TM,IM,RM,NM,HM,BM,WM,FM,DM,VM,UM,qM,YM,GM,XM,ZM,KM,QM,JM,tk,ek,nk,rk,ik,ok,sk,ak,lk,ck,hk,uk,dk,fk,pk,gk,mk,yk,vk,xk,bk,wk,_k,Mk,kk,Ck,jk,Ok,Ak,Ek,Sk,$k,zk,Pk,Lk,Tk,Ik,Rk,Nk,Hk,Bk,Wk,Fk,Dk,Vk,Uk,qk,Yk,Gk,Xk,Zk,Kk,Qk,Jk,tC,eC,nC,rC,iC,oC,sC,aC,lC,cC,hC,uC,dC,fC,pC,gC,mC,yC,vC,xC,bC,wC,_C,MC,kC,CC,jC,OC,AC,EC,SC,$C,zC,PC,LC,TC,IC,RC,NC,HC,BC,WC,FC,DC,VC,UC,qC,YC,GC,XC,ZC={exports:{}};function KC(){return Ky||(Ky=1,function(t,e){var n=zm(),r=e&&!e.nodeType&&e,i=r&&t&&!t.nodeType&&t,o=i&&i.exports===r?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}}(ZC,ZC.exports)),ZC.exports}function QC(){return Jy||(Jy=1,Qy=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}),Qy}function JC(){return ev||(ev=1,tv=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}),tv}function tj(){return rv?nv:(rv=1,nv=function(){return[]})}function ej(){if(ov)return iv;ov=1;var t=JC(),e=tj(),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,i=r?function(e){return null==e?[]:(e=Object(e),t(r(e),function(t){return n.call(e,t)}))}:e;return iv=i}function nj(){return cv||(cv=1,lv=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}),lv}function rj(){if(uv)return hv;uv=1;var t=qy()(Object.getPrototypeOf,Object);return hv=t}function ij(){if(fv)return dv;fv=1;var t=nj(),e=rj(),n=ej(),r=tj(),i=Object.getOwnPropertySymbols?function(r){for(var i=[];r;)t(i,n(r)),r=e(r);return i}:r;return dv=i}function oj(){if(yv)return mv;yv=1;var t=nj(),e=Km();return mv=function(n,r,i){var o=r(n);return e(n)?o:t(o,i(n))},mv}function sj(){if(xv)return vv;xv=1;var t=oj(),e=ej(),n=Xy();return vv=function(r){return t(r,n,e)},vv}function aj(){if(Ov)return jv;Ov=1;var t=Nm()(zm(),"Set");return jv=t}function lj(){if($v)return Sv;$v=1;var t=function(){if(Mv)return _v;Mv=1;var t=Nm()(zm(),"DataView");return _v=t}(),e=Hm(),n=function(){if(Cv)return kv;Cv=1;var t=Nm()(zm(),"Promise");return kv=t}(),r=aj(),i=function(){if(Ev)return Av;Ev=1;var t=Nm()(zm(),"WeakMap");return Av=t}(),o=Lm(),s=Rm(),a="[object Map]",l="[object Promise]",c="[object Set]",h="[object WeakMap]",u="[object DataView]",d=s(t),f=s(e),p=s(n),g=s(r),m=s(i),y=o;return(t&&y(new t(new ArrayBuffer(1)))!=u||e&&y(new e)!=a||n&&y(n.resolve())!=l||r&&y(new r)!=c||i&&y(new i)!=h)&&(y=function(t){var e=o(t),n="[object Object]"==e?t.constructor:void 0,r=n?s(n):"";if(r)switch(r){case d:return u;case f:return a;case p:return l;case g:return c;case m:return h}return e}),Sv=y}function cj(){if(Tv)return Lv;Tv=1;var t=zm();return Lv=t.Uint8Array}function hj(){if(Rv)return Iv;Rv=1;var t=cj();return Iv=function(e){var n=new e.constructor(e.byteLength);return new t(n).set(new t(e)),n}}function uj(){if(Uv)return Vv;Uv=1;var t=hj();return Vv=function(e,n){var r=n?t(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}}function dj(){if(Xv)return Gv;Xv=1;var t=Tm(),e=Object.create,n=function(){function n(){}return function(r){if(!t(r))return{};if(e)return e(r);n.prototype=r;var i=new n;return n.prototype=void 0,i}}();return Gv=n}function fj(){if(Kv)return Zv;Kv=1;var t=dj(),e=rj(),n=Uy();return Zv=function(r){return"function"!=typeof r.constructor||n(r)?{}:t(e(r))},Zv}function pj(){if(ax)return sx;ax=1;var t=Dm(),e=Vm(),n=Ym(),r=function(){if(zy)return $y;zy=1;var t=Gm(),e=Xy();return $y=function(n,r){return n&&t(r,e(r),n)},$y}(),i=function(){if(By)return Hy;By=1;var t=Gm(),e=Zy();return Hy=function(n,r){return n&&t(r,e(r),n)},Hy}(),o=KC(),s=QC(),a=function(){if(av)return sv;av=1;var t=Gm(),e=ej();return sv=function(n,r){return t(n,e(n),r)},sv}(),l=function(){if(gv)return pv;gv=1;var t=Gm(),e=ij();return pv=function(n,r){return t(n,e(n),r)},pv}(),c=sj(),h=function(){if(wv)return bv;wv=1;var t=oj(),e=ij(),n=Zy();return bv=function(r){return t(r,n,e)},bv}(),u=lj(),d=function(){if(Pv)return zv;Pv=1;var t=Object.prototype.hasOwnProperty;return zv=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r},zv}(),f=function(){if(Yv)return qv;Yv=1;var t=hj(),e=function(){if(Hv)return Nv;Hv=1;var t=hj();return Nv=function(e,n){var r=n?t(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}}(),n=function(){if(Wv)return Bv;Wv=1;var t=/\w*$/;return Bv=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}}(),r=function(){if(Dv)return Fv;Dv=1;var t=Pm(),e=t?t.prototype:void 0,n=e?e.valueOf:void 0;return Fv=function(t){return n?Object(n.call(t)):{}}}(),i=uj();return qv=function(o,s,a){var l=o.constructor;switch(s){case"[object ArrayBuffer]":return t(o);case"[object Boolean]":case"[object Date]":return new l(+o);case"[object DataView]":return e(o,a);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return i(o,a);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(o);case"[object RegExp]":return n(o);case"[object Symbol]":return r(o)}},qv}(),p=fj(),g=Km(),m=hy(),y=function(){if(ex)return tx;ex=1;var t=function(){if(Jv)return Qv;Jv=1;var t=lj(),e=Xm();return Qv=function(n){return e(n)&&"[object Map]"==t(n)},Qv}(),e=fy(),n=Fy(),r=n&&n.isMap,i=r?e(r):t;return tx=i}(),v=Tm(),x=function(){if(ox)return ix;ox=1;var t=function(){if(rx)return nx;rx=1;var t=lj(),e=Xm();return nx=function(n){return e(n)&&"[object Set]"==t(n)},nx}(),e=fy(),n=Fy(),r=n&&n.isSet,i=r?e(r):t;return ix=i}(),b=Xy(),w=Zy(),_="[object Arguments]",M="[object Function]",k="[object Object]",C={};return C[_]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C[k]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C[M]=C["[object WeakMap]"]=!1,sx=function j(O,A,E,S,$,z){var P,L=1&A,T=2&A,I=4&A;if(E&&(P=$?E(O,S,$,z):E(O)),void 0!==P)return P;if(!v(O))return O;var R=g(O);if(R){if(P=d(O),!L)return s(O,P)}else{var N=u(O),H=N==M||"[object GeneratorFunction]"==N;if(m(O))return o(O,L);if(N==k||N==_||H&&!$){if(P=T||H?{}:p(O),!L)return T?l(O,i(P,O)):a(O,r(P,O))}else{if(!C[N])return $?O:{};P=f(O,N,L)}}z||(z=new t);var B=z.get(O);if(B)return B;z.set(O,P),x(O)?O.forEach(function(t){P.add(j(t,A,E,t,O,z))}):y(O)&&O.forEach(function(t,e){P.set(e,j(t,A,E,e,O,z))});var W=R?void 0:(I?T?h:c:T?w:b)(O);return e(W||O,function(t,e){W&&(t=O[e=t]),n(P,e,j(t,A,E,e,O,z))}),P},sx}function gj(){if(cx)return lx;cx=1;var t=pj();return lx=function(e){return t(e,4)},lx}function mj(){return ux||(ux=1,hx=function(t){return function(){return t}}),hx}function yj(){if(gx)return px;gx=1;var t=(fx||(fx=1,dx=function(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var l=s[t?a:++i];if(!1===n(o[l],l,o))break}return e}}),dx),e=t();return px=e}function vj(){if(yx)return mx;yx=1;var t=yj(),e=Xy();return mx=function(n,r){return n&&t(n,r,e)},mx}function xj(){if(wx)return bx;wx=1;var t=vj(),e=function(){if(xx)return vx;xx=1;var t=Gy();return vx=function(e,n){return function(r,i){if(null==r)return r;if(!t(r))return e(r,i);for(var o=r.length,s=n?o:-1,a=Object(r);(n?s--:++s<o)&&!1!==i(a[s],s,a););return r}}}()(t);return bx=e}function bj(){return Mx||(Mx=1,_x=function(t){return t}),_x}function wj(){if(Cx)return kx;Cx=1;var t=bj();return kx=function(e){return"function"==typeof e?e:t},kx}function _j(){if(Ox)return jx;Ox=1;var t=Vm(),e=xj(),n=wj(),r=Km();return jx=function(i,o){return(r(i)?t:e)(i,n(o))}}function Mj(){return Ex?Ax:(Ex=1,Ax=_j())}function kj(){if(Rx)return Ix;Rx=1;var t=Fm(),e=(Px||(Px=1,zx=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}),zx),n=(Tx||(Tx=1,Lx=function(t){return this.__data__.has(t)}),Lx);function r(e){var n=-1,r=null==e?0:e.length;for(this.__data__=new t;++n<r;)this.add(e[n])}return r.prototype.add=r.prototype.push=e,r.prototype.has=n,Ix=r}function Cj(){return Wx?Bx:(Wx=1,Bx=function(t,e){return t.has(e)})}function jj(){if(Dx)return Fx;Dx=1;var t=kj(),e=(Hx||(Hx=1,Nx=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}),Nx),n=Cj();return Fx=function(r,i,o,s,a,l){var c=1&o,h=r.length,u=i.length;if(h!=u&&!(c&&u>h))return!1;var d=l.get(r),f=l.get(i);if(d&&f)return d==i&&f==r;var p=-1,g=!0,m=2&o?new t:void 0;for(l.set(r,i),l.set(i,r);++p<h;){var y=r[p],v=i[p];if(s)var x=c?s(v,y,p,i,r,l):s(y,v,p,r,i,l);if(void 0!==x){if(x)continue;g=!1;break}if(m){if(!e(i,function(t,e){if(!n(m,e)&&(y===t||a(y,t,o,s,l)))return m.push(e)})){g=!1;break}}else if(y!==v&&!a(y,v,o,s,l)){g=!1;break}}return l.delete(r),l.delete(i),g},Fx}function Oj(){return Yx||(Yx=1,qx=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}),qx}function Aj(){if(Jx)return Qx;Jx=1;var t=Dm(),e=jj(),n=function(){if(Xx)return Gx;Xx=1;var t=Pm(),e=cj(),n=Am(),r=jj(),i=(Ux||(Ux=1,Vx=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}),Vx),o=Oj(),s=t?t.prototype:void 0,a=s?s.valueOf:void 0;return Gx=function(t,s,l,c,h,u,d){switch(l){case"[object DataView]":if(t.byteLength!=s.byteLength||t.byteOffset!=s.byteOffset)return!1;t=t.buffer,s=s.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=s.byteLength||!u(new e(t),new e(s)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+t,+s);case"[object Error]":return t.name==s.name&&t.message==s.message;case"[object RegExp]":case"[object String]":return t==s+"";case"[object Map]":var f=i;case"[object Set]":if(f||(f=o),t.size!=s.size&&!(1&c))return!1;var p=d.get(t);if(p)return p==s;c|=2,d.set(t,s);var g=r(f(t),f(s),c,h,u,d);return d.delete(t),g;case"[object Symbol]":if(a)return a.call(t)==a.call(s)}return!1},Gx}(),r=function(){if(Kx)return Zx;Kx=1;var t=sj(),e=Object.prototype.hasOwnProperty;return Zx=function(n,r,i,o,s,a){var l=1&i,c=t(n),h=c.length;if(h!=t(r).length&&!l)return!1;for(var u=h;u--;){var d=c[u];if(!(l?d in r:e.call(r,d)))return!1}var f=a.get(n),p=a.get(r);if(f&&p)return f==r&&p==n;var g=!0;a.set(n,r),a.set(r,n);for(var m=l;++u<h;){var y=n[d=c[u]],v=r[d];if(o)var x=l?o(v,y,d,r,n,a):o(y,v,d,n,r,a);if(!(void 0===x?y===v||s(y,v,i,o,a):x)){g=!1;break}m||(m="constructor"==d)}if(g&&!m){var b=n.constructor,w=r.constructor;b==w||!("constructor"in n)||!("constructor"in r)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(g=!1)}return a.delete(n),a.delete(r),g},Zx}(),i=lj(),o=Km(),s=hy(),a=Dy(),l="[object Arguments]",c="[object Array]",h="[object Object]",u=Object.prototype.hasOwnProperty;return Qx=function(d,f,p,g,m,y){var v=o(d),x=o(f),b=v?c:i(d),w=x?c:i(f),_=(b=b==l?h:b)==h,M=(w=w==l?h:w)==h,k=b==w;if(k&&s(d)){if(!s(f))return!1;v=!0,_=!1}if(k&&!_)return y||(y=new t),v||a(d)?e(d,f,p,g,m,y):n(d,f,b,p,g,m,y);if(!(1&p)){var C=_&&u.call(d,"__wrapped__"),j=M&&u.call(f,"__wrapped__");if(C||j){var O=C?d.value():d,A=j?f.value():f;return y||(y=new t),m(O,A,p,g,y)}}return!!k&&(y||(y=new t),r(d,f,p,g,m,y))},Qx}function Ej(){if(eb)return tb;eb=1;var t=Aj(),e=Xm();return tb=function n(r,i,o,s,a){return r===i||(null==r||null==i||!e(r)&&!e(i)?r!=r&&i!=i:t(r,i,o,s,n,a))},tb}function Sj(){if(ob)return ib;ob=1;var t=Tm();return ib=function(e){return e==e&&!t(e)},ib}function $j(){return cb||(cb=1,lb=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}),lb}function zj(){if(fb)return db;fb=1;var t=Lm(),e=Xm();return db=function(n){return"symbol"==typeof n||e(n)&&"[object Symbol]"==t(n)},db}function Pj(){if(gb)return pb;gb=1;var t=Km(),e=zj(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return pb=function(i,o){if(t(i))return!1;var s=typeof i;return!("number"!=s&&"symbol"!=s&&"boolean"!=s&&null!=i&&!e(i))||r.test(i)||!n.test(i)||null!=o&&i in Object(o)},pb}function Lj(){return Mb||(Mb=1,_b=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}),_b}function Tj(){if(Ob)return jb;Ob=1;var t=function(){if(Cb)return kb;Cb=1;var t=Pm(),e=Lj(),n=Km(),r=zj(),i=t?t.prototype:void 0,o=i?i.toString:void 0;return kb=function t(i){if("string"==typeof i)return i;if(n(i))return e(i,t)+"";if(r(i))return o?o.call(i):"";var s=i+"";return"0"==s&&1/i==-1/0?"-0":s},kb}();return jb=function(e){return null==e?"":t(e)},jb}function Ij(){if(Eb)return Ab;Eb=1;var t=Km(),e=Pj(),n=function(){if(wb)return bb;wb=1;var t=function(){if(xb)return vb;xb=1;var t=function(){if(yb)return mb;yb=1;var t=Fm();function e(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var i=function(){var t=arguments,e=r?r.apply(this,t):t[0],o=i.cache;if(o.has(e))return o.get(e);var s=n.apply(this,t);return i.cache=o.set(e,s)||o,s};return i.cache=new(e.Cache||t),i}return e.Cache=t,mb=e}();return vb=function(e){var n=t(e,function(t){return 500===r.size&&r.clear(),t}),r=n.cache;return n}}(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=t(function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(e,function(t,e,i,o){r.push(i?o.replace(n,"$1"):e||t)}),r});return bb=r}(),r=Tj();return Ab=function(i,o){return t(i)?i:e(i,o)?[i]:n(r(i))},Ab}function Rj(){if($b)return Sb;$b=1;var t=zj();return Sb=function(e){if("string"==typeof e||t(e))return e;var n=e+"";return"0"==n&&1/e==-1/0?"-0":n},Sb}function Nj(){if(Pb)return zb;Pb=1;var t=Ij(),e=Rj();return zb=function(n,r){for(var i=0,o=(r=t(r,n)).length;null!=n&&i<o;)n=n[e(r[i++])];return i&&i==o?n:void 0},zb}function Hj(){if(Hb)return Nb;Hb=1;var t=Ij(),e=Zm(),n=Km(),r=uy(),i=dy(),o=Rj();return Nb=function(s,a,l){for(var c=-1,h=(a=t(a,s)).length,u=!1;++c<h;){var d=o(a[c]);if(!(u=null!=s&&l(s,d)))break;s=s[d]}return u||++c!=h?u:!!(h=null==s?0:s.length)&&i(h)&&r(d,h)&&(n(s)||e(s))},Nb}function Bj(){if(Wb)return Bb;Wb=1;var t=(Rb||(Rb=1,Ib=function(t,e){return null!=t&&e in Object(t)}),Ib),e=Hj();return Bb=function(n,r){return null!=n&&e(n,r,t)},Bb}function Wj(){return Ub||(Ub=1,Vb=function(t){return function(e){return null==e?void 0:e[t]}}),Vb}function Fj(){if(Kb)return Zb;Kb=1;var t=function(){if(ub)return hb;ub=1;var t=function(){if(rb)return nb;rb=1;var t=Dm(),e=Ej();return nb=function(n,r,i,o){var s=i.length,a=s,l=!o;if(null==n)return!a;for(n=Object(n);s--;){var c=i[s];if(l&&c[2]?c[1]!==n[c[0]]:!(c[0]in n))return!1}for(;++s<a;){var h=(c=i[s])[0],u=n[h],d=c[1];if(l&&c[2]){if(void 0===u&&!(h in n))return!1}else{var f=new t;if(o)var p=o(u,d,h,n,r,f);if(!(void 0===p?e(d,u,3,o,f):p))return!1}}return!0},nb}(),e=function(){if(ab)return sb;ab=1;var t=Sj(),e=Xy();return sb=function(n){for(var r=e(n),i=r.length;i--;){var o=r[i],s=n[o];r[i]=[o,s,t(s)]}return r},sb}(),n=$j();return hb=function(r){var i=e(r);return 1==i.length&&i[0][2]?n(i[0][0],i[0][1]):function(e){return e===r||t(e,r,i)}},hb}(),e=function(){if(Db)return Fb;Db=1;var t=Ej(),e=function(){if(Tb)return Lb;Tb=1;var t=Nj();return Lb=function(e,n,r){var i=null==e?void 0:t(e,n);return void 0===i?r:i},Lb}(),n=Bj(),r=Pj(),i=Sj(),o=$j(),s=Rj();return Fb=function(a,l){return r(a)&&i(l)?o(s(a),l):function(r){var i=e(r,a);return void 0===i&&i===l?n(r,a):t(l,i,3)}},Fb}(),n=bj(),r=Km(),i=function(){if(Xb)return Gb;Xb=1;var t=Wj(),e=function(){if(Yb)return qb;Yb=1;var t=Nj();return qb=function(e){return function(n){return t(n,e)}},qb}(),n=Pj(),r=Rj();return Gb=function(i){return n(i)?t(r(i)):e(i)}}();return Zb=function(o){return"function"==typeof o?o:null==o?n:"object"==typeof o?r(o)?e(o[0],o[1]):t(o):i(o)},Zb}function Dj(){if(Jb)return Qb;Jb=1;var t=JC(),e=function(){if($x)return Sx;$x=1;var t=xj();return Sx=function(e,n){var r=[];return t(e,function(t,e,i){n(t,e,i)&&r.push(t)}),r},Sx}(),n=Fj(),r=Km();return Qb=function(i,o){return(r(i)?t:e)(i,n(o,3))}}function Vj(){if(rw)return nw;rw=1;var t=function(){if(ew)return tw;ew=1;var t=Object.prototype.hasOwnProperty;return tw=function(e,n){return null!=e&&t.call(e,n)},tw}(),e=Hj();return nw=function(n,r){return null!=n&&e(n,r,t)},nw}function Uj(){if(ow)return iw;ow=1;var t=Yy(),e=lj(),n=Zm(),r=Km(),i=Gy(),o=hy(),s=Uy(),a=Dy(),l=Object.prototype.hasOwnProperty;return iw=function(c){if(null==c)return!0;if(i(c)&&(r(c)||"string"==typeof c||"function"==typeof c.splice||o(c)||a(c)||n(c)))return!c.length;var h=e(c);if("[object Map]"==h||"[object Set]"==h)return!c.size;if(s(c))return!t(c).length;for(var u in c)if(l.call(c,u))return!1;return!0},iw}function qj(){return aw||(aw=1,sw=function(t){return void 0===t}),sw}function Yj(){if(cw)return lw;cw=1;var t=xj(),e=Gy();return lw=function(n,r){var i=-1,o=e(n)?Array(n.length):[];return t(n,function(t,e,n){o[++i]=r(t,e,n)}),o},lw}function Gj(){if(uw)return hw;uw=1;var t=Lj(),e=Fj(),n=Yj(),r=Km();return hw=function(i,o){return(r(i)?t:n)(i,e(o,3))}}function Xj(){if(yw)return mw;yw=1;var t=(fw||(fw=1,dw=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}),dw),e=xj(),n=Fj(),r=(gw||(gw=1,pw=function(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}),pw),i=Km();return mw=function(o,s,a){var l=i(o)?t:r,c=arguments.length<3;return l(o,n(s,4),a,c,e)},mw}function Zj(){if(Ew)return Aw;Ew=1;var t=Yy(),e=lj(),n=Gy(),r=function(){if(xw)return vw;xw=1;var t=Lm(),e=Km(),n=Xm();return vw=function(r){return"string"==typeof r||!e(r)&&n(r)&&"[object String]"==t(r)},vw}(),i=function(){if(Ow)return jw;Ow=1;var t=function(){if(ww)return bw;ww=1;var t=Wj()("length");return bw=t}(),e=function(){if(Mw)return _w;Mw=1;var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return _w=function(e){return t.test(e)},_w}(),n=function(){if(Cw)return kw;Cw=1;var t="\\ud800-\\udfff",e="["+t+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+n+"|"+r+")?",l="[\\ufe0e\\ufe0f]?",c=l+a+"(?:\\u200d(?:"+[i,o,s].join("|")+")"+l+a+")*",h="(?:"+[i+n+"?",n,o,s,e].join("|")+")",u=RegExp(r+"(?="+r+")|"+h+c,"g");return kw=function(t){for(var e=u.lastIndex=0;u.test(t);)++e;return e},kw}();return jw=function(r){return e(r)?n(r):t(r)},jw}();return Aw=function(o){if(null==o)return 0;if(n(o))return r(o)?i(o):o.length;var s=e(o);return"[object Map]"==s||"[object Set]"==s?o.size:t(o).length}}function Kj(){if($w)return Sw;$w=1;var t=Vm(),e=dj(),n=vj(),r=Fj(),i=rj(),o=Km(),s=hy(),a=Im(),l=Tm(),c=Dy();return Sw=function(h,u,d){var f=o(h),p=f||s(h)||c(h);if(u=r(u,4),null==d){var g=h&&h.constructor;d=p?f?new g:[]:l(h)&&a(g)?e(i(h)):{}}return(p?t:n)(h,function(t,e,n){return u(d,t,e,n)}),d},Sw}function Qj(){if(Tw)return Lw;Tw=1;var t=nj(),e=function(){if(Pw)return zw;Pw=1;var t=Pm(),e=Zm(),n=Km(),r=t?t.isConcatSpreadable:void 0;return zw=function(t){return n(t)||e(t)||!!(r&&t&&t[r])},zw}();return Lw=function n(r,i,o,s,a){var l=-1,c=r.length;for(o||(o=e),a||(a=[]);++l<c;){var h=r[l];i>0&&o(h)?i>1?n(h,i-1,o,s,a):t(a,h):s||(a[a.length]=h)}return a},Lw}function Jj(){if(Hw)return Nw;Hw=1;var t=Rw?Iw:(Rw=1,Iw=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}),e=Math.max;return Nw=function(n,r,i){return r=e(void 0===r?n.length-1:r,0),function(){for(var o=arguments,s=-1,a=e(o.length-r,0),l=Array(a);++s<a;)l[s]=o[r+s];s=-1;for(var c=Array(r+1);++s<r;)c[s]=o[s];return c[r]=i(l),t(n,this,c)}},Nw}function tO(){if(Uw)return Vw;Uw=1;var t=function(){if(Ww)return Bw;Ww=1;var t=mj(),e=Um(),n=bj(),r=e?function(n,r){return e(n,"toString",{configurable:!0,enumerable:!1,value:t(r),writable:!0})}:n;return Bw=r}(),e=function(){if(Dw)return Fw;Dw=1;var t=Date.now;return Fw=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}},Fw}(),n=e(t);return Vw=n}function eO(){if(Yw)return qw;Yw=1;var t=bj(),e=Jj(),n=tO();return qw=function(r,i){return n(e(r,i,t),r+"")}}function nO(){return Xw||(Xw=1,Gw=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}),Gw}function rO(){if(u_)return h_;u_=1;var t=kj(),e=function(){if(r_)return n_;r_=1;var t=function(){if(e_)return t_;e_=1;var t=nO(),e=(Kw||(Kw=1,Zw=function(t){return t!=t}),Zw),n=(Jw||(Jw=1,Qw=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}),Qw);return t_=function(r,i,o){return i==i?n(r,i,o):t(r,e,o)},t_}();return n_=function(e,n){return!(null==e||!e.length)&&t(e,n,0)>-1},n_}(),n=(o_||(o_=1,i_=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}),i_),r=Cj(),i=function(){if(c_)return l_;c_=1;var t=aj(),e=a_?s_:(a_=1,s_=function(){}),n=Oj(),r=t&&1/n(new t([,-0]))[1]==1/0?function(e){return new t(e)}:e;return l_=r}(),o=Oj();return h_=function(s,a,l){var c=-1,h=e,u=s.length,d=!0,f=[],p=f;if(l)d=!1,h=n;else if(u>=200){var g=a?null:i(s);if(g)return o(g);d=!1,h=r,p=new t}else p=a?[]:f;t:for(;++c<u;){var m=s[c],y=a?a(m):m;if(m=l||0!==m?m:0,d&&y==y){for(var v=p.length;v--;)if(p[v]===y)continue t;a&&p.push(y),f.push(m)}else h(p,y,l)||(p!==f&&p.push(y),f.push(m))}return f},h_}function iO(){if(f_)return d_;f_=1;var t=Gy(),e=Xm();return d_=function(n){return e(n)&&t(n)},d_}function oO(){if(g_)return p_;g_=1;var t=Qj(),e=eO(),n=rO(),r=iO(),i=e(function(e){return n(t(e,1,r,!0))});return p_=i}function sO(){if(x_)return v_;x_=1;var t=function(){if(y_)return m_;y_=1;var t=Lj();return m_=function(e,n){return t(n,function(t){return e[t]})},m_}(),e=Xy();return v_=function(n){return null==n?[]:t(n,e(n))},v_}function aO(){if(w_)return b_;var t;w_=1;try{t={clone:gj(),constant:mj(),each:Mj(),filter:Dj(),has:Vj(),isArray:Km(),isEmpty:Uj(),isFunction:Im(),isUndefined:qj(),keys:Xy(),map:Gj(),reduce:Xj(),size:Zj(),transform:Kj(),union:oO(),values:sO()}}catch(t){}return t||(t=window._),b_=t}function lO(){if(M_)return __;M_=1;var t=aO();__=n;var e="\0";function n(n){this._isDirected=!t.has(n,"directed")||n.directed,this._isMultigraph=!!t.has(n,"multigraph")&&n.multigraph,this._isCompound=!!t.has(n,"compound")&&n.compound,this._label=void 0,this._defaultNodeLabelFn=t.constant(void 0),this._defaultEdgeLabelFn=t.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[e]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function r(t,e){t[e]?t[e]++:t[e]=1}function i(t,e){--t[e]||delete t[e]}function o(e,n,r,i){var o=""+n,s=""+r;if(!e&&o>s){var a=o;o=s,s=a}return o+""+s+""+(t.isUndefined(i)?"\0":i)}function s(t,e){return o(t,e.v,e.w,e.name)}return n.prototype._nodeCount=0,n.prototype._edgeCount=0,n.prototype.isDirected=function(){return this._isDirected},n.prototype.isMultigraph=function(){return this._isMultigraph},n.prototype.isCompound=function(){return this._isCompound},n.prototype.setGraph=function(t){return this._label=t,this},n.prototype.graph=function(){return this._label},n.prototype.setDefaultNodeLabel=function(e){return t.isFunction(e)||(e=t.constant(e)),this._defaultNodeLabelFn=e,this},n.prototype.nodeCount=function(){return this._nodeCount},n.prototype.nodes=function(){return t.keys(this._nodes)},n.prototype.sources=function(){var e=this;return t.filter(this.nodes(),function(n){return t.isEmpty(e._in[n])})},n.prototype.sinks=function(){var e=this;return t.filter(this.nodes(),function(n){return t.isEmpty(e._out[n])})},n.prototype.setNodes=function(e,n){var r=arguments,i=this;return t.each(e,function(t){r.length>1?i.setNode(t,n):i.setNode(t)}),this},n.prototype.setNode=function(n,r){return t.has(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=r),this):(this._nodes[n]=arguments.length>1?r:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=e,this._children[n]={},this._children[e][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)},n.prototype.node=function(t){return this._nodes[t]},n.prototype.hasNode=function(e){return t.has(this._nodes,e)},n.prototype.removeNode=function(e){var n=this;if(t.has(this._nodes,e)){var r=function(t){n.removeEdge(n._edgeObjs[t])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],t.each(this.children(e),function(t){n.setParent(t)}),delete this._children[e]),t.each(t.keys(this._in[e]),r),delete this._in[e],delete this._preds[e],t.each(t.keys(this._out[e]),r),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},n.prototype.setParent=function(n,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(t.isUndefined(r))r=e;else{for(var i=r+="";!t.isUndefined(i);i=this.parent(i))if(i===n)throw new Error("Setting "+r+" as parent of "+n+" would create a cycle");this.setNode(r)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=r,this._children[r][n]=!0,this},n.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},n.prototype.parent=function(t){if(this._isCompound){var n=this._parent[t];if(n!==e)return n}},n.prototype.children=function(n){if(t.isUndefined(n)&&(n=e),this._isCompound){var r=this._children[n];if(r)return t.keys(r)}else{if(n===e)return this.nodes();if(this.hasNode(n))return[]}},n.prototype.predecessors=function(e){var n=this._preds[e];if(n)return t.keys(n)},n.prototype.successors=function(e){var n=this._sucs[e];if(n)return t.keys(n)},n.prototype.neighbors=function(e){var n=this.predecessors(e);if(n)return t.union(n,this.successors(e))},n.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},n.prototype.filterNodes=function(e){var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph());var r=this;t.each(this._nodes,function(t,r){e(r)&&n.setNode(r,t)}),t.each(this._edgeObjs,function(t){n.hasNode(t.v)&&n.hasNode(t.w)&&n.setEdge(t,r.edge(t))});var i={};function o(t){var e=r.parent(t);return void 0===e||n.hasNode(e)?(i[t]=e,e):e in i?i[e]:o(e)}return this._isCompound&&t.each(n.nodes(),function(t){n.setParent(t,o(t))}),n},n.prototype.setDefaultEdgeLabel=function(e){return t.isFunction(e)||(e=t.constant(e)),this._defaultEdgeLabelFn=e,this},n.prototype.edgeCount=function(){return this._edgeCount},n.prototype.edges=function(){return t.values(this._edgeObjs)},n.prototype.setPath=function(e,n){var r=this,i=arguments;return t.reduce(e,function(t,e){return i.length>1?r.setEdge(t,e,n):r.setEdge(t,e),e}),this},n.prototype.setEdge=function(){var e,n,i,s,a=!1,l=arguments[0];"object"==typeof l&&null!==l&&"v"in l?(e=l.v,n=l.w,i=l.name,2===arguments.length&&(s=arguments[1],a=!0)):(e=l,n=arguments[1],i=arguments[3],arguments.length>2&&(s=arguments[2],a=!0)),e=""+e,n=""+n,t.isUndefined(i)||(i=""+i);var c=o(this._isDirected,e,n,i);if(t.has(this._edgeLabels,c))return a&&(this._edgeLabels[c]=s),this;if(!t.isUndefined(i)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(n),this._edgeLabels[c]=a?s:this._defaultEdgeLabelFn(e,n,i);var h=function(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var s=i;i=o,o=s}var a={v:i,w:o};return r&&(a.name=r),a}(this._isDirected,e,n,i);return e=h.v,n=h.w,Object.freeze(h),this._edgeObjs[c]=h,r(this._preds[n],e),r(this._sucs[e],n),this._in[n][c]=h,this._out[e][c]=h,this._edgeCount++,this},n.prototype.edge=function(t,e,n){var r=1===arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,t,e,n);return this._edgeLabels[r]},n.prototype.hasEdge=function(e,n,r){var i=1===arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,e,n,r);return t.has(this._edgeLabels,i)},n.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,t,e,n),a=this._edgeObjs[r];return a&&(t=a.v,e=a.w,delete this._edgeLabels[r],delete this._edgeObjs[r],i(this._preds[e],t),i(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},n.prototype.inEdges=function(e,n){var r=this._in[e];if(r){var i=t.values(r);return n?t.filter(i,function(t){return t.v===n}):i}},n.prototype.outEdges=function(e,n){var r=this._out[e];if(r){var i=t.values(r);return n?t.filter(i,function(t){return t.w===n}):i}},n.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))},__}function cO(){return O_?j_:(O_=1,j_={Graph:lO(),version:C_?k_:(C_=1,k_="2.1.8")})}function hO(){if(E_)return A_;E_=1;var t=aO(),e=lO();function n(e){return t.map(e.nodes(),function(n){var r=e.node(n),i=e.parent(n),o={v:n};return t.isUndefined(r)||(o.value=r),t.isUndefined(i)||(o.parent=i),o})}function r(e){return t.map(e.edges(),function(n){var r=e.edge(n),i={v:n.v,w:n.w};return t.isUndefined(n.name)||(i.name=n.name),t.isUndefined(r)||(i.value=r),i})}return A_={write:function(e){var i={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:n(e),edges:r(e)};return t.isUndefined(e.graph())||(i.value=t.clone(e.graph())),i},read:function(n){var r=new e(n.options).setGraph(n.value);return t.each(n.nodes,function(t){r.setNode(t.v,t.value),t.parent&&r.setParent(t.v,t.parent)}),t.each(n.edges,function(t){r.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),r}}}function uO(){if($_)return S_;$_=1;var t=aO();return S_=function(e){var n,r={},i=[];function o(i){t.has(r,i)||(r[i]=!0,n.push(i),t.each(e.successors(i),o),t.each(e.predecessors(i),o))}return t.each(e.nodes(),function(t){n=[],o(t),n.length&&i.push(n)}),i},S_}function dO(){if(P_)return z_;P_=1;var t=aO();function e(){this._arr=[],this._keyIndices={}}return z_=e,e.prototype.size=function(){return this._arr.length},e.prototype.keys=function(){return this._arr.map(function(t){return t.key})},e.prototype.has=function(e){return t.has(this._keyIndices,e)},e.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},e.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},e.prototype.add=function(e,n){var r=this._keyIndices;if(e=String(e),!t.has(r,e)){var i=this._arr,o=i.length;return r[e]=o,i.push({key:e,priority:n}),this._decrease(o),!0}return!1},e.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},e.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},e.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n<e.length&&(i=e[n].priority<e[i].priority?n:i,r<e.length&&(i=e[r].priority<e[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},e.prototype._decrease=function(t){for(var e,n=this._arr,r=n[t].priority;0!==t&&!(n[e=t>>1].priority<r);)this._swap(t,e),t=e},e.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,i=n[t],o=n[e];n[t]=o,n[e]=i,r[o.key]=t,r[i.key]=e},z_}function fO(){if(T_)return L_;T_=1;var t=aO(),e=dO();L_=function(t,r,i,o){return function(t,n,r,i){var o,s,a={},l=new e,c=function(t){var e=t.v!==o?t.v:t.w,n=a[e],i=r(t),c=s.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);c<n.distance&&(n.distance=c,n.predecessor=o,l.decrease(e,c))};for(t.nodes().forEach(function(t){var e=t===n?0:Number.POSITIVE_INFINITY;a[t]={distance:e},l.add(t,e)});l.size()>0&&(o=l.removeMin(),(s=a[o]).distance!==Number.POSITIVE_INFINITY);)i(o).forEach(c);return a}(t,String(r),i||n,o||function(e){return t.outEdges(e)})};var n=t.constant(1);return L_}function pO(){if(R_)return I_;R_=1;var t=fO(),e=aO();return I_=function(n,r,i){return e.transform(n.nodes(),function(e,o){e[o]=t(n,o,r,i)},{})},I_}function gO(){if(H_)return N_;H_=1;var t=aO();return N_=function(e){var n=0,r=[],i={},o=[];function s(a){var l=i[a]={onStack:!0,lowlink:n,index:n++};if(r.push(a),e.successors(a).forEach(function(e){t.has(i,e)?i[e].onStack&&(l.lowlink=Math.min(l.lowlink,i[e].index)):(s(e),l.lowlink=Math.min(l.lowlink,i[e].lowlink))}),l.lowlink===l.index){var c,h=[];do{c=r.pop(),i[c].onStack=!1,h.push(c)}while(a!==c);o.push(h)}}return e.nodes().forEach(function(e){t.has(i,e)||s(e)}),o},N_}function mO(){if(W_)return B_;W_=1;var t=aO(),e=gO();return B_=function(n){return t.filter(e(n),function(t){return t.length>1||1===t.length&&n.hasEdge(t[0],t[0])})}}function yO(){if(D_)return F_;D_=1;var t=aO();F_=function(t,n,r){return function(t,e,n){var r={},i=t.nodes();return i.forEach(function(t){r[t]={},r[t][t]={distance:0},i.forEach(function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})}),n(t).forEach(function(n){var i=n.v===t?n.w:n.v,o=e(n);r[t][i]={distance:o,predecessor:t}})}),i.forEach(function(t){var e=r[t];i.forEach(function(n){var o=r[n];i.forEach(function(n){var r=e[n],i=o[n],s=o[t].distance+r.distance;s<i.distance&&(i.distance=s,i.predecessor=r.predecessor)})})}),r}(t,n||e,r||function(e){return t.outEdges(e)})};var e=t.constant(1);return F_}function vO(){if(U_)return V_;U_=1;var t=aO();function e(e){var r={},i={},o=[];if(t.each(e.sinks(),function s(a){if(t.has(i,a))throw new n;t.has(r,a)||(i[a]=!0,r[a]=!0,t.each(e.predecessors(a),s),delete i[a],o.push(a))}),t.size(r)!==e.nodeCount())throw new n;return o}function n(){}return V_=e,e.CycleException=n,n.prototype=new Error,V_}function xO(){if(Y_)return q_;Y_=1;var t=vO();return q_=function(e){try{t(e)}catch(e){if(e instanceof t.CycleException)return!1;throw e}return!0},q_}function bO(){if(X_)return G_;X_=1;var t=aO();function e(n,r,i,o,s,a){t.has(o,r)||(o[r]=!0,i||a.push(r),t.each(s(r),function(t){e(n,t,i,o,s,a)}),i&&a.push(r))}return G_=function(n,r,i){t.isArray(r)||(r=[r]);var o=(n.isDirected()?n.successors:n.neighbors).bind(n),s=[],a={};return t.each(r,function(t){if(!n.hasNode(t))throw new Error("Graph does not have node: "+t);e(n,t,"post"===i,a,o,s)}),s},G_}function wO(){if(K_)return Z_;K_=1;var t=bO();return Z_=function(e,n){return t(e,n,"post")}}function _O(){if(J_)return Q_;J_=1;var t=bO();return Q_=function(e,n){return t(e,n,"pre")}}function MO(){if(eM)return tM;eM=1;var t=aO(),e=lO(),n=dO();return tM=function(r,i){var o,s=new e,a={},l=new n;function c(t){var e=t.v===o?t.w:t.v,n=l.priority(e);if(void 0!==n){var r=i(t);r<n&&(a[e]=o,l.decrease(e,r))}}if(0===r.nodeCount())return s;t.each(r.nodes(),function(t){l.add(t,Number.POSITIVE_INFINITY),s.setNode(t)}),l.decrease(r.nodes()[0],0);for(var h=!1;l.size()>0;){if(o=l.removeMin(),t.has(a,o))s.setEdge(o,a[o]);else{if(h)throw new Error("Input graph is not connected: "+r);h=!0}r.nodeEdges(o).forEach(c)}return s},tM}function kO(){if(oM)return iM;oM=1;var t=cO();return iM={Graph:t.Graph,json:hO(),alg:rM?nM:(rM=1,nM={components:uO(),dijkstra:fO(),dijkstraAll:pO(),findCycles:mO(),floydWarshall:yO(),isAcyclic:xO(),postorder:wO(),preorder:_O(),prim:MO(),tarjan:gO(),topsort:vO()}),version:t.version}}function CO(){if(aM)return sM;var t;aM=1;try{t=kO()}catch(t){}return t||(t=window.graphlib),sM=t}function jO(){if(cM)return lM;cM=1;var t=pj();return lM=function(e){return t(e,5)},lM}function OO(){if(uM)return hM;uM=1;var t=Am(),e=Gy(),n=uy(),r=Tm();return hM=function(i,o,s){if(!r(s))return!1;var a=typeof o;return!!("number"==a?e(s)&&n(o,s.length):"string"==a&&o in s)&&t(s[o],i)},hM}function AO(){if(fM)return dM;fM=1;var t=eO(),e=Am(),n=OO(),r=Zy(),i=Object.prototype,o=i.hasOwnProperty,s=t(function(t,s){t=Object(t);var a=-1,l=s.length,c=l>2?s[2]:void 0;for(c&&n(s[0],s[1],c)&&(l=1);++a<l;)for(var h=s[a],u=r(h),d=-1,f=u.length;++d<f;){var p=u[d],g=t[p];(void 0===g||e(g,i[p])&&!o.call(t,p))&&(t[p]=h[p])}return t});return dM=s}function EO(){if(MM)return _M;MM=1;var t=function(){if(wM)return bM;wM=1;var t=function(){if(xM)return vM;xM=1;var t=function(){if(yM)return mM;yM=1;var t=/\s/;return mM=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n},mM}(),e=/^\s+/;return vM=function(n){return n?n.slice(0,t(n)+1).replace(e,""):n},vM}(),e=Tm(),n=zj(),r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;return bM=function(a){if("number"==typeof a)return a;if(n(a))return NaN;if(e(a)){var l="function"==typeof a.valueOf?a.valueOf():a;a=e(l)?l+"":l}if("string"!=typeof a)return 0===a?a:+a;a=t(a);var c=i.test(a);return c||o.test(a)?s(a.slice(2),c?2:8):r.test(a)?NaN:+a},bM}(),e=1/0;return _M=function(n){return n?(n=t(n))===e||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0},_M}function SO(){if(EM)return AM;EM=1;var t=function(){if(gM)return pM;gM=1;var t=Fj(),e=Gy(),n=Xy();return pM=function(r){return function(i,o,s){var a=Object(i);if(!e(i)){var l=t(o,3);i=n(i),o=function(t){return l(a[t],t,a)}}var c=r(i,o,s);return c>-1?a[l?i[c]:c]:void 0}}}()(function(){if(OM)return jM;OM=1;var t=nO(),e=Fj(),n=function(){if(CM)return kM;CM=1;var t=EO();return kM=function(e){var n=t(e),r=n%1;return n==n?r?n-r:n:0},kM}(),r=Math.max;return jM=function(i,o,s){var a=null==i?0:i.length;if(!a)return-1;var l=null==s?0:n(s);return l<0&&(l=r(a+l,0)),t(i,e(o,3),l)}}());return AM=t}function $O(){if($M)return SM;$M=1;var t=Qj();return SM=function(e){return null!=e&&e.length?t(e,1):[]}}function zO(){if(PM)return zM;PM=1;var t=yj(),e=wj(),n=Zy();return zM=function(r,i){return null==r?r:t(r,e(i),n)},zM}function PO(){if(RM)return IM;RM=1;var t=qm(),e=vj(),n=Fj();return IM=function(r,i){var o={};return i=n(i,3),e(r,function(e,n,r){t(o,n,i(e,n,r))}),o},IM}function LO(){if(HM)return NM;HM=1;var t=zj();return NM=function(e,n,r){for(var i=-1,o=e.length;++i<o;){var s=e[i],a=n(s);if(null!=a&&(void 0===l?a==a&&!t(a):r(a,l)))var l=a,c=s}return c},NM}function TO(){if(DM)return FM;DM=1;var t=LO(),e=(WM||(WM=1,BM=function(t,e){return t>e}),BM),n=bj();return FM=function(r){return r&&r.length?t(r,n,e):void 0}}function IO(){if(UM)return VM;UM=1;var t=qm(),e=Am();return VM=function(n,r,i){(void 0!==i&&!e(n[r],i)||void 0===i&&!(r in n))&&t(n,r,i)},VM}function RO(){return XM||(XM=1,GM=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}),GM}function NO(){if(ok)return ik;ok=1;var t=function(){if(ek)return tk;ek=1;var t=Dm(),e=IO(),n=yj(),r=function(){if(JM)return QM;JM=1;var t=IO(),e=KC(),n=uj(),r=QC(),i=fj(),o=Zm(),s=Km(),a=iO(),l=hy(),c=Im(),h=Tm(),u=function(){if(YM)return qM;YM=1;var t=Lm(),e=rj(),n=Xm(),r=Function.prototype.toString,i=Object.prototype.hasOwnProperty,o=r.call(Object);return qM=function(s){if(!n(s)||"[object Object]"!=t(s))return!1;var a=e(s);if(null===a)return!0;var l=i.call(a,"constructor")&&a.constructor;return"function"==typeof l&&l instanceof l&&r.call(l)==o},qM}(),d=Dy(),f=RO(),p=function(){if(KM)return ZM;KM=1;var t=Gm(),e=Zy();return ZM=function(n){return t(n,e(n))},ZM}();return QM=function(g,m,y,v,x,b,w){var _=f(g,y),M=f(m,y),k=w.get(M);if(k)t(g,y,k);else{var C=b?b(_,M,y+"",g,m,w):void 0,j=void 0===C;if(j){var O=s(M),A=!O&&l(M),E=!O&&!A&&d(M);C=M,O||A||E?s(_)?C=_:a(_)?C=r(_):A?(j=!1,C=e(M,!0)):E?(j=!1,C=n(M,!0)):C=[]:u(M)||o(M)?(C=_,o(_)?C=p(_):h(_)&&!c(_)||(C=i(M))):j=!1}j&&(w.set(M,C),x(C,M,v,b,w),w.delete(M)),t(g,y,C)}},QM}(),i=Tm(),o=Zy(),s=RO();return tk=function a(l,c,h,u,d){l!==c&&n(c,function(n,o){if(d||(d=new t),i(n))r(l,c,o,h,a,u,d);else{var f=u?u(s(l,o),n,o+"",l,c,d):void 0;void 0===f&&(f=n),e(l,o,f)}},o)},tk}(),e=function(){if(rk)return nk;rk=1;var t=eO(),e=OO();return nk=function(n){return t(function(t,r){var i=-1,o=r.length,s=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=n.length>3&&"function"==typeof s?(o--,s):void 0,a&&e(r[0],r[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++i<o;){var l=r[i];l&&n(t,l,i,s)}return t})},nk}(),n=e(function(e,n,r){t(e,n,r)});return ik=n}function HO(){return ak||(ak=1,sk=function(t,e){return t<e}),sk}function BO(){if(ck)return lk;ck=1;var t=LO(),e=HO(),n=bj();return lk=function(r){return r&&r.length?t(r,n,e):void 0}}function WO(){if(uk)return hk;uk=1;var t=LO(),e=Fj(),n=HO();return hk=function(r,i){return r&&r.length?t(r,e(i,2),n):void 0}}function FO(){if(fk)return dk;fk=1;var t=zm();return dk=function(){return t.Date.now()}}function DO(){if(Mk)return _k;Mk=1;var t=function(){if(xk)return vk;xk=1;var t=function(){if(yk)return mk;yk=1;var t=Nj(),e=function(){if(gk)return pk;gk=1;var t=Ym(),e=Ij(),n=uy(),r=Tm(),i=Rj();return pk=function(o,s,a,l){if(!r(o))return o;for(var c=-1,h=(s=e(s,o)).length,u=h-1,d=o;null!=d&&++c<h;){var f=i(s[c]),p=a;if("__proto__"===f||"constructor"===f||"prototype"===f)return o;if(c!=u){var g=d[f];void 0===(p=l?l(g,f,d):void 0)&&(p=r(g)?g:n(s[c+1])?[]:{})}t(d,f,p),d=d[f]}return o},pk}(),n=Ij();return mk=function(r,i,o){for(var s=-1,a=i.length,l={};++s<a;){var c=i[s],h=t(r,c);o(h,c)&&e(l,n(c,r),h)}return l},mk}(),e=Bj();return vk=function(n,r){return t(n,r,function(t,r){return e(n,r)})},vk}(),e=function(){if(wk)return bk;wk=1;var t=$O(),e=Jj(),n=tO();return bk=function(r){return n(e(r,void 0,t),r+"")}}()(function(e,n){return null==e?{}:t(e,n)});return _k=e}function VO(){if(Ek)return Ak;Ek=1;var t=function(){if(Ok)return jk;Ok=1;var t=function(){if(Ck)return kk;Ck=1;var t=Math.ceil,e=Math.max;return kk=function(n,r,i,o){for(var s=-1,a=e(t((r-n)/(i||1)),0),l=Array(a);a--;)l[o?a:++s]=n,n+=i;return l},kk}(),e=OO(),n=EO();return jk=function(r){return function(i,o,s){return s&&"number"!=typeof s&&e(i,o,s)&&(o=s=void 0),i=n(i),void 0===o?(o=i,i=0):o=n(o),s=void 0===s?i<o?1:-1:n(s),t(i,o,s,r)}}}()();return Ak=t}function UO(){if(Rk)return Ik;Rk=1;var t=Lj(),e=Nj(),n=Fj(),r=Yj(),i=($k||($k=1,Sk=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}),Sk),o=fy(),s=function(){if(Tk)return Lk;Tk=1;var t=function(){if(Pk)return zk;Pk=1;var t=zj();return zk=function(e,n){if(e!==n){var r=void 0!==e,i=null===e,o=e==e,s=t(e),a=void 0!==n,l=null===n,c=n==n,h=t(n);if(!l&&!h&&!s&&e>n||s&&a&&c&&!l&&!h||i&&a&&c||!r&&c||!o)return 1;if(!i&&!s&&!h&&e<n||h&&r&&o&&!i&&!s||l&&r&&o||!a&&o||!c)return-1}return 0},zk}();return Lk=function(e,n,r){for(var i=-1,o=e.criteria,s=n.criteria,a=o.length,l=r.length;++i<a;){var c=t(o[i],s[i]);if(c)return i>=l?c:c*("desc"==r[i]?-1:1)}return e.index-n.index},Lk}(),a=bj(),l=Km();return Ik=function(c,h,u){h=h.length?t(h,function(t){return l(t)?function(n){return e(n,1===t.length?t[0]:t)}:t}):[a];var d=-1;h=t(h,o(n));var f=r(c,function(e,n,r){return{criteria:t(h,function(t){return t(e)}),index:++d,value:e}});return i(f,function(t,e){return s(t,e,u)})},Ik}function qO(){if(Hk)return Nk;Hk=1;var t=Qj(),e=UO(),n=eO(),r=OO(),i=n(function(n,i){if(null==n)return[];var o=i.length;return o>1&&r(n,i[0],i[1])?i=[]:o>2&&r(i[0],i[1],i[2])&&(i=[i[0]]),e(n,t(i,1),[])});return Nk=i}function YO(){if(Wk)return Bk;Wk=1;var t=Tj(),e=0;return Bk=function(n){var r=++e;return t(n)+r},Bk}function GO(){if(Uk)return Vk;Uk=1;var t=Ym(),e=Dk?Fk:(Dk=1,Fk=function(t,e,n){for(var r=-1,i=t.length,o=e.length,s={};++r<i;)n(s,t[r],r<o?e[r]:void 0);return s});return Vk=function(n,r){return e(n||[],r||[],t)}}function XO(){if(Yk)return qk;var t;Yk=1;try{t={cloneDeep:jO(),constant:mj(),defaults:AO(),each:Mj(),filter:Dj(),find:SO(),flatten:$O(),forEach:_j(),forIn:zO(),has:Vj(),isUndefined:qj(),last:(TM||(TM=1,LM=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}),LM),map:Gj(),mapValues:PO(),max:TO(),merge:NO(),min:BO(),minBy:WO(),now:FO(),pick:DO(),range:VO(),reduce:Xj(),sortBy:qO(),uniqueId:YO(),values:sO(),zipObject:GO()}}catch(t){}return t||(t=window._),qk=t}function ZO(){if(Jk)return Qk;Jk=1;var t=XO(),e=function(){if(Kk)return Zk;Kk=1;var t=XO(),e=CO().Graph,n=function(){if(Xk)return Gk;function t(){var t={};t._next=t._prev=t,this._sentinel=t}function e(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function n(t,e){if("_next"!==t&&"_prev"!==t)return e}return Xk=1,Gk=t,t.prototype.dequeue=function(){var t=this._sentinel,n=t._prev;if(n!==t)return e(n),n},t.prototype.enqueue=function(t){var n=this._sentinel;t._prev&&t._next&&e(t),t._next=n._next,n._next._prev=t,n._next=t,t._prev=n},t.prototype.toString=function(){for(var t=[],e=this._sentinel,r=e._prev;r!==e;)t.push(JSON.stringify(r,n)),r=r._prev;return"["+t.join(", ")+"]"},Gk}();Zk=function(s,a){if(s.nodeCount()<=1)return[];var l=function(r,i){var s=new e,a=0,l=0;t.forEach(r.nodes(),function(t){s.setNode(t,{v:t,in:0,out:0})}),t.forEach(r.edges(),function(t){var e=s.edge(t.v,t.w)||0,n=i(t);s.setEdge(t.v,t.w,e+n),l=Math.max(l,s.node(t.v).out+=n),a=Math.max(a,s.node(t.w).in+=n)});var c=t.range(l+a+3).map(function(){return new n}),h=a+1;return t.forEach(s.nodes(),function(t){o(c,h,s.node(t))}),{graph:s,buckets:c,zeroIdx:h}}(s,a||r),c=function(t,e,n){for(var r,o=[],s=e[e.length-1],a=e[0];t.nodeCount();){for(;r=a.dequeue();)i(t,e,n,r);for(;r=s.dequeue();)i(t,e,n,r);if(t.nodeCount())for(var l=e.length-2;l>0;--l)if(r=e[l].dequeue()){o=o.concat(i(t,e,n,r,!0));break}}return o}(l.graph,l.buckets,l.zeroIdx);return t.flatten(t.map(c,function(t){return s.outEdges(t.v,t.w)}),!0)};var r=t.constant(1);function i(e,n,r,i,s){var a=s?[]:void 0;return t.forEach(e.inEdges(i.v),function(t){var i=e.edge(t),l=e.node(t.v);s&&a.push({v:t.v,w:t.w}),l.out-=i,o(n,r,l)}),t.forEach(e.outEdges(i.v),function(t){var i=e.edge(t),s=e.node(t.w);s.in-=i,o(n,r,s)}),e.removeNode(i.v),a}function o(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}return Zk}();return Qk={run:function(n){var r="greedy"===n.graph().acyclicer?e(n,function(t){return function(e){return t.edge(e).weight}}(n)):function(e){var n=[],r={},i={};return t.forEach(e.nodes(),function o(s){t.has(i,s)||(i[s]=!0,r[s]=!0,t.forEach(e.outEdges(s),function(e){t.has(r,e.w)?n.push(e):o(e.w)}),delete r[s])}),n}(n);t.forEach(r,function(e){var r=n.edge(e);n.removeEdge(e),r.forwardName=e.name,r.reversed=!0,n.setEdge(e.w,e.v,r,t.uniqueId("rev"))})},undo:function(e){t.forEach(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}},Qk}function KO(){if(eC)return tC;eC=1;var t=XO(),e=CO().Graph;function n(e,n,r,i){var o;do{o=t.uniqueId(i)}while(e.hasNode(o));return r.dummy=n,e.setNode(o,r),o}function r(e){return t.max(t.map(e.nodes(),function(n){var r=e.node(n).rank;if(!t.isUndefined(r))return r}))}return tC={addDummyNode:n,simplify:function(n){var r=(new e).setGraph(n.graph());return t.forEach(n.nodes(),function(t){r.setNode(t,n.node(t))}),t.forEach(n.edges(),function(t){var e=r.edge(t.v,t.w)||{weight:0,minlen:1},i=n.edge(t);r.setEdge(t.v,t.w,{weight:e.weight+i.weight,minlen:Math.max(e.minlen,i.minlen)})}),r},asNonCompoundGraph:function(n){var r=new e({multigraph:n.isMultigraph()}).setGraph(n.graph());return t.forEach(n.nodes(),function(t){n.children(t).length||r.setNode(t,n.node(t))}),t.forEach(n.edges(),function(t){r.setEdge(t,n.edge(t))}),r},successorWeights:function(e){var n=t.map(e.nodes(),function(n){var r={};return t.forEach(e.outEdges(n),function(t){r[t.w]=(r[t.w]||0)+e.edge(t).weight}),r});return t.zipObject(e.nodes(),n)},predecessorWeights:function(e){var n=t.map(e.nodes(),function(n){var r={};return t.forEach(e.inEdges(n),function(t){r[t.v]=(r[t.v]||0)+e.edge(t).weight}),r});return t.zipObject(e.nodes(),n)},intersectRect:function(t,e){var n,r,i=t.x,o=t.y,s=e.x-i,a=e.y-o,l=t.width/2,c=t.height/2;if(!s&&!a)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(a)*l>Math.abs(s)*c?(a<0&&(c=-c),n=c*s/a,r=c):(s<0&&(l=-l),n=l,r=l*a/s),{x:i+n,y:o+r}},buildLayerMatrix:function(e){var n=t.map(t.range(r(e)+1),function(){return[]});return t.forEach(e.nodes(),function(r){var i=e.node(r),o=i.rank;t.isUndefined(o)||(n[o][i.order]=r)}),n},normalizeRanks:function(e){var n=t.min(t.map(e.nodes(),function(t){return e.node(t).rank}));t.forEach(e.nodes(),function(r){var i=e.node(r);t.has(i,"rank")&&(i.rank-=n)})},removeEmptyRanks:function(e){var n=t.min(t.map(e.nodes(),function(t){return e.node(t).rank})),r=[];t.forEach(e.nodes(),function(t){var i=e.node(t).rank-n;r[i]||(r[i]=[]),r[i].push(t)});var i=0,o=e.graph().nodeRankFactor;t.forEach(r,function(n,r){t.isUndefined(n)&&r%o!==0?--i:i&&t.forEach(n,function(t){e.node(t).rank+=i})})},addBorderNode:function(t,e,r,i){var o={width:0,height:0};return arguments.length>=4&&(o.rank=r,o.order=i),n(t,"border",o,e)},maxRank:r,partition:function(e,n){var r={lhs:[],rhs:[]};return t.forEach(e,function(t){n(t)?r.lhs.push(t):r.rhs.push(t)}),r},time:function(e,n){var r=t.now();try{return n()}finally{console.log(e+" time: "+(t.now()-r)+"ms")}},notime:function(t,e){return e()}},tC}function QO(){if(oC)return iC;oC=1;var t=XO();return iC={longestPath:function(e){var n={};t.forEach(e.sources(),function r(i){var o=e.node(i);if(t.has(n,i))return o.rank;n[i]=!0;var s=t.min(t.map(e.outEdges(i),function(t){return r(t.w)-e.edge(t).minlen}));return s!==Number.POSITIVE_INFINITY&&null!=s||(s=0),o.rank=s})},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}},iC}function JO(){if(aC)return sC;aC=1;var t=XO(),e=CO().Graph,n=QO().slack;function r(e,r){return t.forEach(e.nodes(),function i(o){t.forEach(r.nodeEdges(o),function(t){var s=t.v,a=o===s?t.w:s;e.hasNode(a)||n(r,t)||(e.setNode(a,{}),e.setEdge(o,a,{}),i(a))})}),e.nodeCount()}function i(e,r){return t.minBy(r.edges(),function(t){if(e.hasNode(t.v)!==e.hasNode(t.w))return n(r,t)})}function o(e,n,r){t.forEach(e.nodes(),function(t){n.node(t).rank+=r})}return sC=function(t){var s,a,l=new e({directed:!1}),c=t.nodes()[0],h=t.nodeCount();for(l.setNode(c,{});r(l,t)<h;)s=i(l,t),a=l.hasNode(s.v)?n(t,s):-n(t,s),o(l,t,a);return l},sC}function tA(){if(cC)return lC;cC=1;var t=XO(),e=JO(),n=QO().slack,r=QO().longestPath,i=CO().alg.preorder,o=CO().alg.postorder,s=KO().simplify;function a(t){t=s(t),r(t);var n,i=e(t);for(h(i),l(i,t);n=d(i);)p(i,t,n,f(i,t,n))}function l(e,n){var r=o(e,e.nodes());r=r.slice(0,r.length-1),t.forEach(r,function(t){!function(t,e,n){var r=t.node(n);t.edge(n,r.parent).cutvalue=c(t,e,n)}(e,n,t)})}function c(e,n,r){var i=e.node(r).parent,o=!0,s=n.edge(r,i),a=0;return s||(o=!1,s=n.edge(i,r)),a=s.weight,t.forEach(n.nodeEdges(r),function(t){var s=t.v===r,l=s?t.w:t.v;if(l!==i){var c=s===o,h=n.edge(t).weight;if(a+=c?h:-h,function(t,e,n){return t.hasEdge(e,n)}(e,r,l)){var u=e.edge(r,l).cutvalue;a+=c?-u:u}}}),a}function h(t,e){arguments.length<2&&(e=t.nodes()[0]),u(t,{},1,e)}function u(e,n,r,i,o){var s=r,a=e.node(i);return n[i]=!0,t.forEach(e.neighbors(i),function(o){t.has(n,o)||(r=u(e,n,r,o,i))}),a.low=s,a.lim=r++,o?a.parent=o:delete a.parent,r}function d(e){return t.find(e.edges(),function(t){return e.edge(t).cutvalue<0})}function f(e,r,i){var o=i.v,s=i.w;r.hasEdge(o,s)||(o=i.w,s=i.v);var a=e.node(o),l=e.node(s),c=a,h=!1;a.lim>l.lim&&(c=l,h=!0);var u=t.filter(r.edges(),function(t){return h===g(0,e.node(t.v),c)&&h!==g(0,e.node(t.w),c)});return t.minBy(u,function(t){return n(r,t)})}function p(e,n,r,o){e.removeEdge(r.v,r.w),e.setEdge(o.v,o.w,{}),h(e),l(e,n),function(e,n){var r=t.find(e.nodes(),function(t){return!n.node(t).parent}),o=i(e,r);o=o.slice(1),t.forEach(o,function(t){var r=e.node(t).parent,i=n.edge(t,r),o=!1;i||(i=n.edge(r,t),o=!0),n.node(t).rank=n.node(r).rank+(o?i.minlen:-i.minlen)})}(e,n)}function g(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}return lC=a,a.initLowLimValues=h,a.initCutValues=l,a.calcCutValue=c,a.leaveEdge=d,a.enterEdge=f,a.exchangeEdges=p,lC}function eA(){if(uC)return hC;uC=1;var t=QO().longestPath,e=JO(),n=tA();hC=function(i){switch(i.graph().ranker){case"network-simplex":default:!function(t){n(t)}(i);break;case"tight-tree":!function(n){t(n),e(n)}(i);break;case"longest-path":r(i)}};var r=t;return hC}function nA(){if(gC)return pC;gC=1;var t=XO(),e=KO();function n(r,i,o,s,a,l,c){var h=r.children(c);if(h.length){var u=e.addBorderNode(r,"_bt"),d=e.addBorderNode(r,"_bb"),f=r.node(c);r.setParent(u,c),f.borderTop=u,r.setParent(d,c),f.borderBottom=d,t.forEach(h,function(t){n(r,i,o,s,a,l,t);var e=r.node(t),h=e.borderTop?e.borderTop:t,f=e.borderBottom?e.borderBottom:t,p=e.borderTop?s:2*s,g=h!==f?1:a-l[c]+1;r.setEdge(u,h,{weight:p,minlen:g,nestingEdge:!0}),r.setEdge(f,d,{weight:p,minlen:g,nestingEdge:!0})}),r.parent(c)||r.setEdge(i,u,{weight:0,minlen:a+l[c]})}else c!==i&&r.setEdge(i,c,{weight:0,minlen:o})}return pC={run:function(r){var i=e.addDummyNode(r,"root",{},"_root"),o=function(e){var n={};function r(i,o){var s=e.children(i);s&&s.length&&t.forEach(s,function(t){r(t,o+1)}),n[i]=o}return t.forEach(e.children(),function(t){r(t,1)}),n}(r),s=t.max(t.values(o))-1,a=2*s+1;r.graph().nestingRoot=i,t.forEach(r.edges(),function(t){r.edge(t).minlen*=a});var l=function(e){return t.reduce(e.edges(),function(t,n){return t+e.edge(n).weight},0)}(r)+1;t.forEach(r.children(),function(t){n(r,i,a,l,s,o,t)}),r.graph().nodeRankFactor=a},cleanup:function(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,t.forEach(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}},pC}function rA(){if(xC)return vC;xC=1;var t=XO();function e(e){t.forEach(e.nodes(),function(t){n(e.node(t))}),t.forEach(e.edges(),function(t){n(e.edge(t))})}function n(t){var e=t.width;t.width=t.height,t.height=e}function r(t){t.y=-t.y}function i(t){var e=t.x;t.x=t.y,t.y=e}return vC={adjust:function(t){var n=t.graph().rankdir.toLowerCase();"lr"!==n&&"rl"!==n||e(t)},undo:function(n){var o=n.graph().rankdir.toLowerCase();"bt"!==o&&"rl"!==o||function(e){t.forEach(e.nodes(),function(t){r(e.node(t))}),t.forEach(e.edges(),function(n){var i=e.edge(n);t.forEach(i.points,r),t.has(i,"y")&&r(i)})}(n),"lr"!==o&&"rl"!==o||(function(e){t.forEach(e.nodes(),function(t){i(e.node(t))}),t.forEach(e.edges(),function(n){var r=e.edge(n);t.forEach(r.points,i),t.has(r,"x")&&i(r)})}(n),e(n))}},vC}function iA(){if($C)return SC;$C=1;var t=XO(),e=function(){if(CC)return kC;CC=1;var t=XO();return kC=function(e,n){return t.map(n,function(n){var r=e.inEdges(n);if(r.length){var i=t.reduce(r,function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:n,barycenter:i.sum/i.weight,weight:i.weight}}return{v:n}})},kC}(),n=function(){if(OC)return jC;OC=1;var t=XO();return jC=function(e,n){var r={};return t.forEach(e,function(e,n){var i=r[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:n};t.isUndefined(e.barycenter)||(i.barycenter=e.barycenter,i.weight=e.weight)}),t.forEach(n.edges(),function(e){var n=r[e.v],i=r[e.w];t.isUndefined(n)||t.isUndefined(i)||(i.indegree++,n.out.push(r[e.w]))}),function(e){var n=[];function r(e){return function(n){var r,i,o,s;n.merged||(t.isUndefined(n.barycenter)||t.isUndefined(e.barycenter)||n.barycenter>=e.barycenter)&&(o=0,s=0,(r=e).weight&&(o+=r.barycenter*r.weight,s+=r.weight),(i=n).weight&&(o+=i.barycenter*i.weight,s+=i.weight),r.vs=i.vs.concat(r.vs),r.barycenter=o/s,r.weight=s,r.i=Math.min(i.i,r.i),i.merged=!0)}}function i(t){return function(n){n.in.push(t),0===--n.indegree&&e.push(n)}}for(;e.length;){var o=e.pop();n.push(o),t.forEach(o.in.reverse(),r(o)),t.forEach(o.out,i(o))}return t.map(t.filter(n,function(t){return!t.merged}),function(e){return t.pick(e,["vs","i","barycenter","weight"])})}(t.filter(r,function(t){return!t.indegree}))},jC}(),r=function(){if(EC)return AC;EC=1;var t=XO(),e=KO();function n(e,n,r){for(var i;n.length&&(i=t.last(n)).i<=r;)n.pop(),e.push(i.vs),r++;return r}return AC=function(r,i){var o=e.partition(r,function(e){return t.has(e,"barycenter")}),s=o.lhs,a=t.sortBy(o.rhs,function(t){return-t.i}),l=[],c=0,h=0,u=0;s.sort(function(t){return function(e,n){return e.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:t?n.i-e.i:e.i-n.i}}(!!i)),u=n(l,a,u),t.forEach(s,function(t){u+=t.vs.length,l.push(t.vs),c+=t.barycenter*t.weight,h+=t.weight,u=n(l,a,u)});var d={vs:t.flatten(l,!0)};return h&&(d.barycenter=c/h,d.weight=h),d},AC}();return SC=function i(o,s,a,l){var c=o.children(s),h=o.node(s),u=h?h.borderLeft:void 0,d=h?h.borderRight:void 0,f={};u&&(c=t.filter(c,function(t){return t!==u&&t!==d}));var p=e(o,c);t.forEach(p,function(e){if(o.children(e.v).length){var n=i(o,e.v,a,l);f[e.v]=n,t.has(n,"barycenter")&&(s=n,t.isUndefined((r=e).barycenter)?(r.barycenter=s.barycenter,r.weight=s.weight):(r.barycenter=(r.barycenter*r.weight+s.barycenter*s.weight)/(r.weight+s.weight),r.weight+=s.weight))}var r,s});var g=n(p,a);!function(e,n){t.forEach(e,function(e){e.vs=t.flatten(e.vs.map(function(t){return n[t]?n[t].vs:t}),!0)})}(g,f);var m=r(g,l);if(u&&(m.vs=t.flatten([u,m.vs,d],!0),o.predecessors(u).length)){var y=o.node(o.predecessors(u)[0]),v=o.node(o.predecessors(d)[0]);t.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+y.order+v.order)/(m.weight+2),m.weight+=2}return m},SC}function oA(){if(RC)return IC;RC=1;var t=XO(),e=function(){if(wC)return bC;wC=1;var t=XO();return bC=function(e){var n={},r=t.filter(e.nodes(),function(t){return!e.children(t).length}),i=t.max(t.map(r,function(t){return e.node(t).rank})),o=t.map(t.range(i+1),function(){return[]});var s=t.sortBy(r,function(t){return e.node(t).rank});return t.forEach(s,function r(i){if(!t.has(n,i)){n[i]=!0;var s=e.node(i);o[s.rank].push(i),t.forEach(e.successors(i),r)}}),o},bC}(),n=function(){if(MC)return _C;MC=1;var t=XO();function e(e,n,r){for(var i=t.zipObject(r,t.map(r,function(t,e){return e})),o=t.flatten(t.map(n,function(n){return t.sortBy(t.map(e.outEdges(n),function(t){return{pos:i[t.w],weight:e.edge(t).weight}}),"pos")}),!0),s=1;s<r.length;)s<<=1;var a=2*s-1;s-=1;var l=t.map(new Array(a),function(){return 0}),c=0;return t.forEach(o.forEach(function(t){var e=t.pos+s;l[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=l[e+1]),l[e=e-1>>1]+=t.weight;c+=t.weight*n})),c}return _C=function(t,n){for(var r=0,i=1;i<n.length;++i)r+=e(t,n[i-1],n[i]);return r},_C}(),r=iA(),i=function(){if(PC)return zC;PC=1;var t=XO(),e=CO().Graph;return zC=function(n,r,i){var o=function(e){for(var n;e.hasNode(n=t.uniqueId("_root")););return n}(n),s=new e({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(t){return n.node(t)});return t.forEach(n.nodes(),function(e){var a=n.node(e),l=n.parent(e);(a.rank===r||a.minRank<=r&&r<=a.maxRank)&&(s.setNode(e),s.setParent(e,l||o),t.forEach(n[i](e),function(r){var i=r.v===e?r.w:r.v,o=s.edge(i,e),a=t.isUndefined(o)?0:o.weight;s.setEdge(i,e,{weight:n.edge(r).weight+a})}),t.has(a,"minRank")&&s.setNode(e,{borderLeft:a.borderLeft[r],borderRight:a.borderRight[r]}))}),s},zC}(),o=function(){if(TC)return LC;TC=1;var t=XO();return LC=function(e,n,r){var i,o={};t.forEach(r,function(t){for(var r,s,a=e.parent(t);a;){if((r=e.parent(a))?(s=o[r],o[r]=a):(s=i,i=a),s&&s!==a)return void n.setEdge(s,a);a=r}})},LC}(),s=CO().Graph,a=KO();function l(e,n,r){return t.map(n,function(t){return i(e,t,r)})}function c(e,n){var i=new s;t.forEach(e,function(e){var s=e.graph().root,a=r(e,s,i,n);t.forEach(a.vs,function(t,n){e.node(t).order=n}),o(e,i,a.vs)})}function h(e,n){t.forEach(n,function(n){t.forEach(n,function(t,n){e.node(t).order=n})})}return IC=function(r){var i=a.maxRank(r),o=l(r,t.range(1,i+1),"inEdges"),s=l(r,t.range(i-1,-1,-1),"outEdges"),u=e(r);h(r,u);for(var d,f=Number.POSITIVE_INFINITY,p=0,g=0;g<4;++p,++g){c(p%2?o:s,p%4>=2),u=a.buildLayerMatrix(r);var m=n(r,u);m<f&&(g=0,d=t.cloneDeep(u),f=m)}h(r,d)},IC}function sA(){if(WC)return BC;WC=1;var t=XO(),e=KO(),n=function(){if(HC)return NC;HC=1;var t=XO(),e=CO().Graph,n=KO();function r(e,n){var r={};return t.reduce(n,function(n,i){var s=0,a=0,l=n.length,c=t.last(i);return t.forEach(i,function(n,h){var u=function(e,n){if(e.node(n).dummy)return t.find(e.predecessors(n),function(t){return e.node(t).dummy})}(e,n),d=u?e.node(u).order:l;(u||n===c)&&(t.forEach(i.slice(a,h+1),function(n){t.forEach(e.predecessors(n),function(t){var i=e.node(t),a=i.order;!(a<s||d<a)||i.dummy&&e.node(n).dummy||o(r,t,n)})}),a=h+1,s=d)}),i}),r}function i(e,n){var r={};function i(n,i,s,a,l){var c;t.forEach(t.range(i,s),function(i){e.node(c=n[i]).dummy&&t.forEach(e.predecessors(c),function(t){var n=e.node(t);n.dummy&&(n.order<a||n.order>l)&&o(r,t,c)})})}return t.reduce(n,function(n,r){var o,s=-1,a=0;return t.forEach(r,function(t,l){if("border"===e.node(t).dummy){var c=e.predecessors(t);c.length&&(o=e.node(c[0]).order,i(r,a,l,s,o),a=l,s=o)}i(r,a,r.length,o,n.length)}),r}),r}function o(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function s(e,n,r){if(n>r){var i=n;n=r,r=i}return t.has(e[n],r)}function a(e,n,r,i){var o={},a={},l={};return t.forEach(n,function(e){t.forEach(e,function(t,e){o[t]=t,a[t]=t,l[t]=e})}),t.forEach(n,function(e){var n=-1;t.forEach(e,function(e){var c=i(e);if(c.length){c=t.sortBy(c,function(t){return l[t]});for(var h=(c.length-1)/2,u=Math.floor(h),d=Math.ceil(h);u<=d;++u){var f=c[u];a[e]===e&&n<l[f]&&!s(r,e,f)&&(a[f]=e,a[e]=o[e]=o[f],n=l[f])}}})}),{root:o,align:a}}function l(n,r,i,o,s){var a={},l=function(n,r,i,o){var s=new e,a=n.graph(),l=function(e,n,r){return function(i,o,s){var a,l=i.node(o),c=i.node(s),h=0;if(h+=l.width/2,t.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":a=-l.width/2;break;case"r":a=l.width/2}if(a&&(h+=r?a:-a),a=0,h+=(l.dummy?n:e)/2,h+=(c.dummy?n:e)/2,h+=c.width/2,t.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":a=c.width/2;break;case"r":a=-c.width/2}return a&&(h+=r?a:-a),a=0,h}}(a.nodesep,a.edgesep,o);return t.forEach(r,function(e){var r;t.forEach(e,function(t){var e=i[t];if(s.setNode(e),r){var o=i[r],a=s.edge(o,e);s.setEdge(o,e,Math.max(l(n,t,r),a||0))}r=t})}),s}(n,r,i,s),c=s?"borderLeft":"borderRight";function h(t,e){for(var n=l.nodes(),r=n.pop(),i={};r;)i[r]?t(r):(i[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop()}return h(function(t){a[t]=l.inEdges(t).reduce(function(t,e){return Math.max(t,a[e.v]+l.edge(e))},0)},l.predecessors.bind(l)),h(function(t){var e=l.outEdges(t).reduce(function(t,e){return Math.min(t,a[e.w]-l.edge(e))},Number.POSITIVE_INFINITY),r=n.node(t);e!==Number.POSITIVE_INFINITY&&r.borderType!==c&&(a[t]=Math.max(a[t],e))},l.successors.bind(l)),t.forEach(o,function(t){a[t]=a[i[t]]}),a}function c(e,n){return t.minBy(t.values(n),function(n){var r=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return t.forIn(n,function(t,n){var o=function(t,e){return t.node(e).width}(e,n)/2;r=Math.max(t+o,r),i=Math.min(t-o,i)}),r-i})}function h(e,n){var r=t.values(n),i=t.min(r),o=t.max(r);t.forEach(["u","d"],function(r){t.forEach(["l","r"],function(s){var a,l=r+s,c=e[l];if(c!==n){var h=t.values(c);(a="l"===s?i-t.min(h):o-t.max(h))&&(e[l]=t.mapValues(c,function(t){return t+a}))}})})}function u(e,n){return t.mapValues(e.ul,function(r,i){if(n)return e[n.toLowerCase()][i];var o=t.sortBy(t.map(e,i));return(o[1]+o[2])/2})}return NC={positionX:function(e){var o,s=n.buildLayerMatrix(e),d=t.merge(r(e,s),i(e,s)),f={};t.forEach(["u","d"],function(n){o="u"===n?s:t.values(s).reverse(),t.forEach(["l","r"],function(r){"r"===r&&(o=t.map(o,function(e){return t.values(e).reverse()}));var i=("u"===n?e.predecessors:e.successors).bind(e),s=a(0,o,d,i),c=l(e,o,s.root,s.align,"r"===r);"r"===r&&(c=t.mapValues(c,function(t){return-t})),f[n+r]=c})});var p=c(e,f);return h(f,p),u(f,e.graph().align)},findType1Conflicts:r,findType2Conflicts:i,addConflict:o,hasConflict:s,verticalAlignment:a,horizontalCompaction:l,alignCoordinates:h,findSmallestWidthAlignment:c,balance:u},NC}().positionX;return BC=function(r){(function(n){var r=e.buildLayerMatrix(n),i=n.graph().ranksep,o=0;t.forEach(r,function(e){var r=t.max(t.map(e,function(t){return n.node(t).height}));t.forEach(e,function(t){n.node(t).y=o+r/2}),o+=r+i})})(r=e.asNonCompoundGraph(r)),t.forEach(n(r),function(t,e){r.node(e).x=t})},BC}var aA=XC?GC:(XC=1,GC={graphlib:CO(),layout:function(){if(DC)return FC;DC=1;var t=XO(),e=ZO(),n=function(){if(rC)return nC;rC=1;var t=XO(),e=KO();return nC={run:function(n){n.graph().dummyChains=[],t.forEach(n.edges(),function(t){!function(t,n){var r,i,o,s=n.v,a=t.node(s).rank,l=n.w,c=t.node(l).rank,h=n.name,u=t.edge(n),d=u.labelRank;if(c!==a+1){for(t.removeEdge(n),o=0,++a;a<c;++o,++a)u.points=[],r=e.addDummyNode(t,"edge",i={width:0,height:0,edgeLabel:u,edgeObj:n,rank:a},"_d"),a===d&&(i.width=u.width,i.height=u.height,i.dummy="edge-label",i.labelpos=u.labelpos),t.setEdge(s,r,{weight:u.weight},h),0===o&&t.graph().dummyChains.push(r),s=r;t.setEdge(s,l,{weight:u.weight},h)}}(n,t)})},undo:function(e){t.forEach(e.graph().dummyChains,function(t){var n,r=e.node(t),i=r.edgeLabel;for(e.setEdge(r.edgeObj,i);r.dummy;)n=e.successors(t)[0],e.removeNode(t),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),r=e.node(t=n)})}},nC}(),r=eA(),i=KO().normalizeRanks,o=function(){if(fC)return dC;fC=1;var t=XO();return dC=function(e){var n=function(e){var n={},r=0;return t.forEach(e.children(),function i(o){var s=r;t.forEach(e.children(o),i),n[o]={low:s,lim:r++}}),n}(e);t.forEach(e.graph().dummyChains,function(t){for(var r=e.node(t),i=r.edgeObj,o=function(t,e,n,r){var i,o,s=[],a=[],l=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),s.push(i)}while(i&&(e[i].low>l||c>e[i].lim));for(o=i,i=r;(i=t.parent(i))!==o;)a.push(i);return{path:s.concat(a.reverse()),lca:o}}(e,n,i.v,i.w),s=o.path,a=o.lca,l=0,c=s[l],h=!0;t!==i.w;){if(r=e.node(t),h){for(;(c=s[l])!==a&&e.node(c).maxRank<r.rank;)l++;c===a&&(h=!1)}if(!h){for(;l<s.length-1&&e.node(c=s[l+1]).minRank<=r.rank;)l++;c=s[l]}e.setParent(t,c),t=e.successors(t)[0]}})},dC}(),s=KO().removeEmptyRanks,a=nA(),l=function(){if(yC)return mC;yC=1;var t=XO(),e=KO();function n(t,n,r,i,o,s){var a=o[n][s-1],l=e.addDummyNode(t,"border",{width:0,height:0,rank:s,borderType:n},r);o[n][s]=l,t.setParent(l,i),a&&t.setEdge(a,l,{weight:1})}return mC=function(e){t.forEach(e.children(),function r(i){var o=e.children(i),s=e.node(i);if(o.length&&t.forEach(o,r),t.has(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(var a=s.minRank,l=s.maxRank+1;a<l;++a)n(e,"borderLeft","_bl",i,s,a),n(e,"borderRight","_br",i,s,a)}})},mC}(),c=rA(),h=oA(),u=sA(),d=KO(),f=CO().Graph;FC=function(k,C){var j=C&&C.debugTiming?d.time:d.notime;j("layout",function(){var C=j(" buildLayoutGraph",function(){return function(e){var n=new f({multigraph:!0,compound:!0}),r=M(e.graph());return n.setGraph(t.merge({},g,_(r,p),t.pick(r,m))),t.forEach(e.nodes(),function(r){var i=M(e.node(r));n.setNode(r,t.defaults(_(i,y),v)),n.setParent(r,e.parent(r))}),t.forEach(e.edges(),function(r){var i=M(e.edge(r));n.setEdge(r,t.merge({},b,_(i,x),t.pick(i,w)))}),n}(k)});j(" runLayout",function(){!function(f,p){p(" makeSpaceForEdgeLabels",function(){!function(e){var n=e.graph();n.ranksep/=2,t.forEach(e.edges(),function(t){var r=e.edge(t);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===n.rankdir||"BT"===n.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}(f)}),p(" removeSelfEdges",function(){!function(e){t.forEach(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}(f)}),p(" acyclic",function(){e.run(f)}),p(" nestingGraph.run",function(){a.run(f)}),p(" rank",function(){r(d.asNonCompoundGraph(f))}),p(" injectEdgeLabelProxies",function(){!function(e){t.forEach(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),i=e.node(t.w);d.addDummyNode(e,"edge-proxy",{rank:(i.rank-r.rank)/2+r.rank,e:t},"_ep")}})}(f)}),p(" removeEmptyRanks",function(){s(f)}),p(" nestingGraph.cleanup",function(){a.cleanup(f)}),p(" normalizeRanks",function(){i(f)}),p(" assignRankMinMax",function(){!function(e){var n=0;t.forEach(e.nodes(),function(r){var i=e.node(r);i.borderTop&&(i.minRank=e.node(i.borderTop).rank,i.maxRank=e.node(i.borderBottom).rank,n=t.max(n,i.maxRank))}),e.graph().maxRank=n}(f)}),p(" removeEdgeLabelProxies",function(){!function(e){t.forEach(e.nodes(),function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}(f)}),p(" normalize.run",function(){n.run(f)}),p(" parentDummyChains",function(){o(f)}),p(" addBorderSegments",function(){l(f)}),p(" order",function(){h(f)}),p(" insertSelfEdges",function(){!function(e){var n=d.buildLayerMatrix(e);t.forEach(n,function(n){var r=0;t.forEach(n,function(n,i){var o=e.node(n);o.order=i+r,t.forEach(o.selfEdges,function(t){d.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:o.rank,order:i+ ++r,e:t.e,label:t.label},"_se")}),delete o.selfEdges})})}(f)}),p(" adjustCoordinateSystem",function(){c.adjust(f)}),p(" position",function(){u(f)}),p(" positionSelfEdges",function(){!function(e){t.forEach(e.nodes(),function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),i=r.x+r.width/2,o=r.y,s=n.x-i,a=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*s/3,y:o-a},{x:i+5*s/6,y:o-a},{x:i+s,y:o},{x:i+5*s/6,y:o+a},{x:i+2*s/3,y:o+a}],n.label.x=n.x,n.label.y=n.y}})}(f)}),p(" removeBorderNodes",function(){!function(e){t.forEach(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),i=e.node(r.borderTop),o=e.node(r.borderBottom),s=e.node(t.last(r.borderLeft)),a=e.node(t.last(r.borderRight));r.width=Math.abs(a.x-s.x),r.height=Math.abs(o.y-i.y),r.x=s.x+r.width/2,r.y=i.y+r.height/2}}),t.forEach(e.nodes(),function(t){"border"===e.node(t).dummy&&e.removeNode(t)})}(f)}),p(" normalize.undo",function(){n.undo(f)}),p(" fixupEdgeLabelCoords",function(){!function(e){t.forEach(e.edges(),function(n){var r=e.edge(n);if(t.has(r,"x"))switch("l"!==r.labelpos&&"r"!==r.labelpos||(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset}})}(f)}),p(" undoCoordinateSystem",function(){c.undo(f)}),p(" translateGraph",function(){!function(e){var n=Number.POSITIVE_INFINITY,r=0,i=Number.POSITIVE_INFINITY,o=0,s=e.graph(),a=s.marginx||0,l=s.marginy||0;function c(t){var e=t.x,s=t.y,a=t.width,l=t.height;n=Math.min(n,e-a/2),r=Math.max(r,e+a/2),i=Math.min(i,s-l/2),o=Math.max(o,s+l/2)}t.forEach(e.nodes(),function(t){c(e.node(t))}),t.forEach(e.edges(),function(n){var r=e.edge(n);t.has(r,"x")&&c(r)}),n-=a,i-=l,t.forEach(e.nodes(),function(t){var r=e.node(t);r.x-=n,r.y-=i}),t.forEach(e.edges(),function(r){var o=e.edge(r);t.forEach(o.points,function(t){t.x-=n,t.y-=i}),t.has(o,"x")&&(o.x-=n),t.has(o,"y")&&(o.y-=i)}),s.width=r-n+a,s.height=o-i+l}(f)}),p(" assignNodeIntersects",function(){!function(e){t.forEach(e.edges(),function(t){var n,r,i=e.edge(t),o=e.node(t.v),s=e.node(t.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=s,r=o),i.points.unshift(d.intersectRect(o,n)),i.points.push(d.intersectRect(s,r))})}(f)}),p(" reversePoints",function(){!function(e){t.forEach(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}(f)}),p(" acyclic.undo",function(){e.undo(f)})}(C,j)}),j(" updateInputGraph",function(){!function(e,n){t.forEach(e.nodes(),function(t){var r=e.node(t),i=n.node(t);r&&(r.x=i.x,r.y=i.y,n.children(t).length&&(r.width=i.width,r.height=i.height))}),t.forEach(e.edges(),function(r){var i=e.edge(r),o=n.edge(r);i.points=o.points,t.has(o,"x")&&(i.x=o.x,i.y=o.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}(k,C)})})};var p=["nodesep","edgesep","ranksep","marginx","marginy"],g={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},m=["acyclicer","ranker","rankdir","align"],y=["width","height"],v={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],b={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},w=["labelpos"];function _(e,n){return t.mapValues(t.pick(e,n),Number)}function M(e){var n={};return t.forEach(e,function(t,e){n[e.toLowerCase()]=t}),n}return FC}(),debug:function(){if(UC)return VC;UC=1;var t=XO(),e=KO(),n=CO().Graph;return VC={debugOrdering:function(r){var i=e.buildLayerMatrix(r),o=new n({compound:!0,multigraph:!0}).setGraph({});return t.forEach(r.nodes(),function(t){o.setNode(t,{label:t}),o.setParent(t,"layer"+r.node(t).rank)}),t.forEach(r.edges(),function(t){o.setEdge(t.v,t.w,{},t.name)}),t.forEach(i,function(e,n){o.setNode("layer"+n,{rank:"same"}),t.reduce(e,function(t,e){return o.setEdge(t,e,{style:"invis"}),e})}),o}},VC}(),util:{time:KO().time,notime:KO().notime},version:YC?qC:(YC=1,qC="0.8.5")}),lA=Om(aA);const cA={abs:Math.abs,ceil:Math.ceil,floor:Math.floor,max:Math.max,min:Math.min,round:Math.round,sqrt:Math.sqrt,pow:Math.pow};class hA extends Error{constructor(t,e,n){super(t),this.position=e,this.token=n,this.name="ExpressionError"}}var uA;!function(t){t[t.STRING=0]="STRING",t[t.NUMBER=1]="NUMBER",t[t.BOOLEAN=2]="BOOLEAN",t[t.NULL=3]="NULL",t[t.IDENTIFIER=4]="IDENTIFIER",t[t.OPERATOR=5]="OPERATOR",t[t.FUNCTION=6]="FUNCTION",t[t.DOT=7]="DOT",t[t.BRACKET_LEFT=8]="BRACKET_LEFT",t[t.BRACKET_RIGHT=9]="BRACKET_RIGHT",t[t.PAREN_LEFT=10]="PAREN_LEFT",t[t.PAREN_RIGHT=11]="PAREN_RIGHT",t[t.COMMA=12]="COMMA",t[t.QUESTION=13]="QUESTION",t[t.COLON=14]="COLON",t[t.DOLLAR=15]="DOLLAR"}(uA||(uA={}));const dA=new Set([32,9,10,13]),fA=new Set([43,45,42,47,37,33,38,124,61,60,62]),pA=new Map([["true",uA.BOOLEAN],["false",uA.BOOLEAN],["null",uA.NULL]]),gA=new Map([["===",!0],["!==",!0],["<=",!0],[">=",!0],["&&",!0],["||",!0],["+",!0],["-",!0],["*",!0],["/",!0],["%",!0],["!",!0],["<",!0],[">",!0]]),mA=new Map([[46,uA.DOT],[91,uA.BRACKET_LEFT],[93,uA.BRACKET_RIGHT],[40,uA.PAREN_LEFT],[41,uA.PAREN_RIGHT],[44,uA.COMMA],[63,uA.QUESTION],[58,uA.COLON],[36,uA.DOLLAR]]),yA=new Map;for(const[t,e]of mA.entries())yA.set(t,{type:e,value:String.fromCharCode(t)});function vA(t){return t>=48&&t<=57}function xA(t){return t>=97&&t<=122||t>=65&&t<=90||95===t}function bA(t){return xA(t)||vA(t)}function wA(t){return fA.has(t)}var _A;!function(t){t[t.Program=0]="Program",t[t.Literal=1]="Literal",t[t.Identifier=2]="Identifier",t[t.MemberExpression=3]="MemberExpression",t[t.CallExpression=4]="CallExpression",t[t.BinaryExpression=5]="BinaryExpression",t[t.UnaryExpression=6]="UnaryExpression",t[t.ConditionalExpression=7]="ConditionalExpression"}(_A||(_A={}));const MA=new Map([["||",2],["&&",3],["===",4],["!==",4],[">",5],[">=",5],["<",5],["<=",5],["+",6],["-",6],["*",7],["/",7],["%",7],["!",8]]),kA={type:_A.Literal,value:null},CA={type:_A.Literal,value:!0},jA={type:_A.Literal,value:!1};function OA(t){const e=(t=>{const e=t,n=e.length,r=new Array(Math.ceil(n/3));let i=0,o=0;function s(t){const r=o+1;o++;let i="",s=!1;for(;o<n;){const n=e.charCodeAt(o);if(n===t)return s||(i=e.substring(r,o)),o++,{type:uA.STRING,value:i};92===n?(s||(i=e.substring(r,o),s=!0),o++,i+=e[o]):s&&(i+=e[o]),o++}throw new hA(`Unterminated string starting with ${String.fromCharCode(t)}`,o,e.substring(Math.max(0,o-10),o))}function a(){const t=o;for(45===e.charCodeAt(o)&&o++;o<n&&vA(e.charCodeAt(o));)o++;if(o<n&&46===e.charCodeAt(o))for(o++;o<n&&vA(e.charCodeAt(o));)o++;const r=e.slice(t,o);return{type:uA.NUMBER,value:r}}function l(){o++;const t=o;if(o<n&&xA(e.charCodeAt(o)))for(o++;o<n&&bA(e.charCodeAt(o));)o++;const r=e.slice(t,o);return{type:uA.FUNCTION,value:r}}function c(){const t=o++;for(;o<n&&bA(e.charCodeAt(o));)o++;const r=e.slice(t,o),i=pA.get(r);return i?{type:i,value:r}:{type:uA.IDENTIFIER,value:r}}function h(){if(o+2<n){const t=e.substring(o,o+3);if(gA.has(t))return o+=3,{type:uA.OPERATOR,value:t}}if(o+1<n){const t=e.substring(o,o+2);if(gA.has(t))return o+=2,{type:uA.OPERATOR,value:t}}const t=e[o];if(gA.has(t))return o++,{type:uA.OPERATOR,value:t};throw new hA(`Unknown operator at position ${o}: ${e.substring(o,o+1)}`,o,e.substring(Math.max(0,o-10),o))}for(;o<n;){const t=e.charCodeAt(o);if(dA.has(t)){o++;continue}const u=yA.get(t);if(u)r[i++]=u,o++;else if(34!==t&&39!==t)if(vA(t)||45===t&&o+1<n&&vA(e.charCodeAt(o+1)))r[i++]=a();else if(64!==t)if(xA(t))r[i++]=c();else{if(!wA(t))throw new hA(`Unexpected character: ${e[o]}`,o,e.substring(Math.max(0,o-10),o));r[i++]=h()}else r[i++]=l();else r[i++]=s(t)}return i===r.length?r:r.slice(0,i)})(t),n=(t=>{let e=0;const n=t.length,r=()=>e>=n?null:t[e],i=()=>t[e++],o=t=>{const e=r();return null!==e&&e.type===t},s=t=>t.type===uA.OPERATOR?MA.get(t.value)||-1:t.type===uA.DOT||t.type===uA.BRACKET_LEFT?9:t.type===uA.QUESTION?1:-1,a=t=>{let n,s;if(i().type===uA.DOT){if(!o(uA.IDENTIFIER)){const t=r();throw new hA("Expected property name",e,t?t.value:"<end of input>")}const t=i();n={type:_A.Identifier,name:t.value},s=!1}else{if(n=c(0),!o(uA.BRACKET_RIGHT)){const t=r();throw new hA("Expected closing bracket",e,t?t.value:"<end of input>")}i(),s=!0}return{type:_A.MemberExpression,object:t,property:n,computed:s}},l=()=>{const t=r();if(!t)throw new hA("Unexpected end of input",e,"<end of input>");if(t.type===uA.OPERATOR&&("!"===t.value||"-"===t.value)){i();const e=l();return{type:_A.UnaryExpression,operator:t.value,argument:e,prefix:!0}}switch(t.type){case uA.NUMBER:return i(),{type:_A.Literal,value:Number(t.value)};case uA.STRING:return i(),{type:_A.Literal,value:t.value};case uA.BOOLEAN:return i(),"true"===t.value?CA:jA;case uA.NULL:return i(),kA;case uA.IDENTIFIER:return i(),{type:_A.Identifier,name:t.value};case uA.FUNCTION:return(()=>{const t=i(),n=[];if(!o(uA.PAREN_LEFT)){const t=r();throw new hA("Expected opening parenthesis after function name",e,t?t.value:"<end of input>")}for(i();;){if(o(uA.PAREN_RIGHT)){i();break}if(!r()){const t=r();throw new hA("Expected closing parenthesis",e,t?t.value:"<end of input>")}if(n.length>0){if(!o(uA.COMMA)){const t=r();throw new hA("Expected comma between function arguments",e,t?t.value:"<end of input>")}i()}const t=c(0);n.push(t)}return{type:_A.CallExpression,callee:{type:_A.Identifier,name:t.value},arguments:n}})();case uA.PAREN_LEFT:{i();const t=c(0);if(!o(uA.PAREN_RIGHT)){const t=r();throw new hA("Expected closing parenthesis",e,t?t.value:"<end of input>")}return i(),t}default:throw new hA(`Unexpected token: ${t.type}`,e,t.value)}},c=(h=0)=>{let u=l();for(;e<n;){const n=t[e],l=s(n);if(l<=h)break;if(n.type!==uA.QUESTION)if(n.type!==uA.OPERATOR){if(n.type!==uA.DOT&&n.type!==uA.BRACKET_LEFT)break;u=a(u)}else{i();const t=c(l);u={type:_A.BinaryExpression,operator:n.value,left:u,right:t}}else{i();const t=c(0);if(!o(uA.COLON)){const t=r();throw new hA("Expected : in conditional expression",e,t?t.value:"<end of input>")}i();const n=c(0);u={type:_A.ConditionalExpression,test:u,consequent:t,alternate:n}}}return u},h=c();return{type:_A.Program,body:h}})(e),r=((t={},e={})=>({context:t,functions:e}))({},cA);return(t={})=>((t,e,n)=>{let r=e;n&&(r={...e,context:{...e.context,...n}});const i=t=>{switch(t.type){case _A.Literal:return(t=>t.value)(t);case _A.Identifier:return(t=>{if(!(t.name in r.context))throw new hA(`Undefined variable: ${t.name}`);return r.context[t.name]})(t);case _A.MemberExpression:return(t=>{const e=i(t.object);if(null==e)throw new hA("Cannot access property of null or undefined");return e[t.computed?i(t.property):t.property.name]})(t);case _A.CallExpression:return(t=>{const e=r.functions[t.callee.name];if(!e)throw new hA(`Undefined function: ${t.callee.name}`);return e(...t.arguments.map(t=>i(t)))})(t);case _A.BinaryExpression:return(t=>{if("&&"===t.operator){const e=i(t.left);return e?i(t.right):e}if("||"===t.operator)return i(t.left)||i(t.right);const e=i(t.left),n=i(t.right);switch(t.operator){case"+":return e+n;case"-":return e-n;case"*":return e*n;case"/":return e/n;case"%":return e%n;case"===":return e===n;case"!==":return e!==n;case">":return e>n;case">=":return e>=n;case"<":return e<n;case"<=":return e<=n;default:throw new hA(`Unknown operator: ${t.operator}`)}})(t);case _A.UnaryExpression:return(t=>{const e=i(t.argument);if(t.prefix)switch(t.operator){case"!":return!e;case"-":if("number"!=typeof e)throw new hA(`Cannot apply unary - to non-number: ${e}`);return-e;default:throw new hA(`Unknown operator: ${t.operator}`)}throw new hA(`Postfix operators are not supported: ${t.operator}`)})(t);case _A.ConditionalExpression:return(t=>{const e=i(t.test);return i(e?t.consequent:t.alternate)})(t);default:throw new hA(`Evaluation error: Unsupported node type: ${t.type}`)}};return i(t.body)})(n,r,t)}function AA(t){return"number"==typeof t}function EA(t){if(!t)return[0,0,0];if(AA(t))return[t,t,t];if(Array.isArray(t)&&0===t.length)return[0,0,0];const[e,n=e,r=e]=t;return[e,n,r]}function SA(t){return null==t}function $A(t){return"string"==typeof t}function zA(t){return"function"==typeof t}function PA(t,e){if("function"==typeof t)return t;if("string"==typeof t){const n=t;return(...t)=>{const r={};for(let n=0;n<e.length;n++)r[e[n]]=t[n];return function(t,e){if("string"!=typeof t)return;const n=t.trim();if(n)try{return OA(n),function(t,e={}){return OA(t)(e)}(n,e)}catch(t){return}}(n,r)}}return()=>t}function LA(t,e,n="node"){if(SA(t))return()=>e;if($A(t)){const r=PA(t,[n]);return t=>{const n=r(t);return AA(n)?n:e}}return zA(t)?t:AA(t)?()=>t:()=>e}function TA(t,e=10,n="node"){if(SA(t))return()=>e;if($A(t)){const r=PA(t,[n]);return t=>{const n=r(t);return function(t){return!!AA(t)||!!Array.isArray(t)&&t.every(t=>AA(t))}(n)?n:e}}return zA(t)?t:AA(t)||Array.isArray(t)?()=>t:()=>e}function IA(t){var e;return[t.x,t.y,null!==(e=t.z)&&void 0!==e?e:0]}class RA{constructor(t,e={}){this.edgeIdCounter=new Map,this.nodeMap=function(t,e){if(!t)throw new Error("Data.nodes is required");const n=new Map;for(const r of t){const t={_original:r};for(const e of NA){const n=r[e];SA(n)||(t[e]=n)}if(e){const n=e(r);for(const e in n){const r=n[e];SA(r)||(t[e]=r)}}if(SA(t.id))throw new Error("Node is missing id field");n.set(t.id,t)}return n}(t.nodes,e.node),this.edgeMap=function(t,e,n){const r=new Map;for(const i of t){const t={_original:i};for(const e of HA){const n=i[e];SA(n)||(t[e]=n)}if(e){const n=e(i);for(const e in n){const r=n[e];SA(r)||(t[e]=r)}}if(SA(t.source)||SA(t.target))throw new Error("Edge is missing source or target field");SA(t.id)&&(t.id=null==n?void 0:n(i)),r.set(t.id,t)}return r}(t.edges||[],e.edge,this.getEdgeId.bind(this))}data(){return{nodes:this.nodeMap,edges:this.edgeMap}}replace(t){this.nodeMap=t.nodes,this.edgeMap=t.edges,this.clearCache()}nodes(){return Array.from(this.nodeMap.values())}node(t){return this.nodeMap.get(t)}nodeAt(t){this.indexNodeCache||this.buildNodeIndexCache();const e=this.indexNodeCache.get(t);return e?this.nodeMap.get(e):void 0}nodeIndexOf(t){var e;return this.nodeIndexCache||this.buildNodeIndexCache(),null!==(e=this.nodeIndexCache.get(t))&&void 0!==e?e:-1}firstNode(){return this.nodeMap.values().next().value}forEachNode(t){let e=0;this.nodeMap.forEach(n=>t(n,e++))}originalNode(t){const e=this.nodeMap.get(t);return null==e?void 0:e._original}nodeCount(){return this.nodeMap.size}edges(){return Array.from(this.edgeMap.values())}edge(t){return this.edgeMap.get(t)}firstEdge(){return this.edgeMap.values().next().value}forEachEdge(t){let e=0;this.edgeMap.forEach(n=>t(n,e++))}originalEdge(t){const e=this.edgeMap.get(t);return null==e?void 0:e._original}edgeCount(){return this.edgeMap.size}getEdgeId(t){if(t.id)return t.id;const e=`${t.source}-${t.target}`,n=this.edgeIdCounter.get(e)||0,r=0===n?e:`${e}-${n}`;return this.edgeIdCounter.set(e,n+1),r}degree(t,e="both"){this.degreeCache||this.buildDegreeCache();const n=this.degreeCache.get(t);return n?n[e]:0}neighbors(t,e="both"){if(this.outAdjacencyCache&&this.inAdjacencyCache||this.buildAdjacencyCache(),"out"===e)return Array.from(this.outAdjacencyCache.get(t)||[]);if("in"===e)return Array.from(this.inAdjacencyCache.get(t)||[]);if(this.bothAdjacencyCache)return Array.from(this.bothAdjacencyCache.get(t)||[]);const n=this.inAdjacencyCache.get(t),r=this.outAdjacencyCache.get(t);if(!n&&!r)return[];if(!n)return Array.from(r);if(!r)return Array.from(n);const i=new Set;return n.forEach(t=>i.add(t)),r.forEach(t=>i.add(t)),Array.from(i)}successors(t){return this.neighbors(t,"out")}predecessors(t){return this.neighbors(t,"in")}setNodeOrder(t){const e=new Map;for(const n of t)e.set(n.id,n);this.nodeMap=e,this.nodeIndexCache=void 0,this.indexNodeCache=void 0}clearCache(){this.degreeCache=void 0,this.inAdjacencyCache=void 0,this.outAdjacencyCache=void 0,this.bothAdjacencyCache=void 0,this.nodeIndexCache=void 0,this.indexNodeCache=void 0}buildDegreeCache(){this.degreeCache=new Map;for(const t of this.edges()){const{source:e,target:n}=t;if(t.source===t.target)continue;this.degreeCache.has(e)||this.degreeCache.set(e,{in:0,out:0,both:0});const r=this.degreeCache.get(t.source);r&&(r.out++,r.both++),this.degreeCache.has(n)||this.degreeCache.set(n,{in:0,out:0,both:0});const i=this.degreeCache.get(t.target);i&&(i.in++,i.both++)}}buildAdjacencyCache(){this.inAdjacencyCache=new Map,this.outAdjacencyCache=new Map;for(const t of this.edges())this.nodeMap.has(t.source)&&this.nodeMap.has(t.target)&&(this.outAdjacencyCache.has(t.source)||this.outAdjacencyCache.set(t.source,new Set),this.outAdjacencyCache.get(t.source).add(t.target),this.inAdjacencyCache.has(t.target)||this.inAdjacencyCache.set(t.target,new Set),this.inAdjacencyCache.get(t.target).add(t.source))}buildNodeIndexCache(){this.nodeIndexCache=new Map,this.indexNodeCache=new Map;let t=0;this.nodeMap.forEach((e,n)=>{this.nodeIndexCache.set(n,t),this.indexNodeCache.set(t,n),t++})}destroy(){this.clearCache(),this.nodeMap.clear(),this.edgeMap.clear(),this.edgeIdCounter.clear()}}const NA=["id","x","y","z","vx","vy","vz","fx","fy","fz","parentId"],HA=["id","source","target","points"];class BA{constructor(t,e={}){this.graph=new RA(t,e)}export(){return this.graph.data()}replace(t){this.graph.replace(t)}forEachNode(t){this.graph.forEachNode(t)}forEachEdge(t){this.graph.forEachEdge((e,n)=>{e.sourceNode=this.graph.node(e.source),e.targetNode=this.graph.node(e.target),t(e,n)})}destroy(){this.graph.destroy()}}const WA=Symbol("Comlink.proxy"),FA=Symbol("Comlink.endpoint"),DA=Symbol("Comlink.releaseProxy"),VA=Symbol("Comlink.finalizer"),UA=Symbol("Comlink.thrown"),qA=t=>"object"==typeof t&&null!==t||"function"==typeof t,YA={canHandle:t=>qA(t)&&t[WA],serialize(t){const{port1:e,port2:n}=new MessageChannel;return ZA(t,e),[n,[n]]},deserialize:t=>(t.start(),QA(t))},GA={canHandle:t=>qA(t)&&UA in t,serialize({value:t}){let e;return e=t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[e,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}},XA=new Map([["proxy",YA],["throw",GA]]);function ZA(t,e=globalThis,n=["*"]){e.addEventListener("message",function r(i){if(!i||!i.data)return;if(!function(t,e){for(const n of t){if(e===n||"*"===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}return!1}(n,i.origin))return void console.warn(`Invalid origin '${i.origin}' for comlink proxy`);const{id:o,type:s,path:a}=Object.assign({path:[]},i.data),l=(i.data.argumentList||[]).map(aE);let c;try{const e=a.slice(0,-1).reduce((t,e)=>t[e],t),n=a.reduce((t,e)=>t[e],t);switch(s){case"GET":c=n;break;case"SET":e[a.slice(-1)[0]]=aE(i.data.value),c=!0;break;case"APPLY":c=n.apply(e,l);break;case"CONSTRUCT":c=function(t){return Object.assign(t,{[WA]:!0})}(new n(...l));break;case"ENDPOINT":{const{port1:e,port2:n}=new MessageChannel;ZA(t,n),c=function(t,e){return oE.set(t,e),t}(e,[e])}break;case"RELEASE":c=void 0;break;default:return}}catch(t){c={value:t,[UA]:0}}Promise.resolve(c).catch(t=>({value:t,[UA]:0})).then(n=>{const[i,a]=sE(n);e.postMessage(Object.assign(Object.assign({},i),{id:o}),a),"RELEASE"===s&&(e.removeEventListener("message",r),KA(e),VA in t&&"function"==typeof t[VA]&&t[VA]())}).catch(t=>{const[n,r]=sE({value:new TypeError("Unserializable return value"),[UA]:0});e.postMessage(Object.assign(Object.assign({},n),{id:o}),r)})}),e.start&&e.start()}function KA(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function QA(t,e){const n=new Map;return t.addEventListener("message",function(t){const{data:e}=t;if(!e||!e.id)return;const r=n.get(e.id);if(r)try{r(e)}finally{n.delete(e.id)}}),rE(t,n,[],e)}function JA(t){if(t)throw new Error("Proxy has been released and is not useable")}function tE(t){return lE(t,new Map,{type:"RELEASE"}).then(()=>{KA(t)})}const eE=new WeakMap,nE="FinalizationRegistry"in globalThis&&new FinalizationRegistry(t=>{const e=(eE.get(t)||0)-1;eE.set(t,e),0===e&&tE(t)});function rE(t,e,n=[],r=function(){}){let i=!1;const o=new Proxy(r,{get(r,s){if(JA(i),s===DA)return()=>{!function(t){nE&&nE.unregister(t)}(o),tE(t),e.clear(),i=!0};if("then"===s){if(0===n.length)return{then:()=>o};const r=lE(t,e,{type:"GET",path:n.map(t=>t.toString())}).then(aE);return r.then.bind(r)}return rE(t,e,[...n,s])},set(r,o,s){JA(i);const[a,l]=sE(s);return lE(t,e,{type:"SET",path:[...n,o].map(t=>t.toString()),value:a},l).then(aE)},apply(r,o,s){JA(i);const a=n[n.length-1];if(a===FA)return lE(t,e,{type:"ENDPOINT"}).then(aE);if("bind"===a)return rE(t,e,n.slice(0,-1));const[l,c]=iE(s);return lE(t,e,{type:"APPLY",path:n.map(t=>t.toString()),argumentList:l},c).then(aE)},construct(r,o){JA(i);const[s,a]=iE(o);return lE(t,e,{type:"CONSTRUCT",path:n.map(t=>t.toString()),argumentList:s},a).then(aE)}});return function(t,e){const n=(eE.get(e)||0)+1;eE.set(e,n),nE&&nE.register(t,e,t)}(o,t),o}function iE(t){const e=t.map(sE);return[e.map(t=>t[0]),(n=e.map(t=>t[1]),Array.prototype.concat.apply([],n))];var n}const oE=new WeakMap;function sE(t){for(const[e,n]of XA)if(n.canHandle(t)){const[r,i]=n.serialize(t);return[{type:"HANDLER",name:e,value:r},i]}return[{type:"RAW",value:t},oE.get(t)||[]]}function aE(t){switch(t.type){case"HANDLER":return XA.get(t.name).deserialize(t.value);case"RAW":return t.value}}function lE(t,e,n,r){return new Promise(i=>{const o=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");e.set(o,i),t.start&&t.start(),t.postMessage(Object.assign({id:o},n),r)})}class cE{constructor(){this.worker=null,this.workerApi=null}execute(t,e,n){return Cp(this,void 0,void 0,function*(){if(this.worker||(yield this.initWorker()),!this.workerApi)throw new Error("Worker API not initialized");return yield this.workerApi.execute(t,e,n)})}destroy(){this.workerApi&&this.workerApi.destroy(),this.worker&&(this.worker.terminate(),this.worker=null,this.workerApi=null)}initWorker(){return Cp(this,void 0,void 0,function*(){const t=this.resolveWorkerPath(),e=t.includes("/lib/")||t.endsWith(".mjs");this.worker=new Worker(t,{type:e?"module":"classic"}),this.workerApi=QA(this.worker)})}resolveWorkerPath(){const t=(()=>{if("undefined"==typeof document)return null;const t=document.currentScript;if(null==t?void 0:t.src)return t.src;const e=document.getElementsByTagName("script");for(let t=e.length-1;t>=0;t--){const n=e[t].src;if(n&&(n.includes("index.js")||n.includes("index.min.js")))return n}return null})();if(t){if(t.includes("index.js")||t.includes("index.min.js")){const e=t.replace(/index(\.min)?\.(m?js)(\?.*)?$/,"worker.js");if(e!==t)return e}const e=t.replace(/\/runtime\/[^/]+\.(m?js)(\?.*)?$/,"/worker.js");if(e!==t)return e;const n=t.replace(/\/[^/]+\.(m?js)(\?.*)?$/,"/worker.js");if(n!==t)return n}return"./worker.js"}}class hE{constructor(t){this.supervisor=null,this.initialOptions=this.mergeOptions(this.getDefaultOptions(),t)}get options(){return this.runtimeOptions||this.initialOptions}mergeOptions(t,e){return Object.assign({},t,e||{})}execute(t,e){return Cp(this,void 0,void 0,function*(){this.runtimeOptions=this.mergeOptions(this.initialOptions,e);const{node:n,edge:r,enableWorker:i}=this.runtimeOptions;this.context=new BA(t,{node:n,edge:r}),this.model=this.context.graph,i&&"undefined"!=typeof Worker?yield this.layoutInWorker(t,this.runtimeOptions):yield this.layout(this.runtimeOptions)})}layoutInWorker(t,e){var n;return Cp(this,void 0,void 0,function*(){try{this.supervisor||(this.supervisor=new cE);const r=yield this.supervisor.execute(this.id,t,e);null===(n=this.context)||void 0===n||n.replace(r)}catch(t){console.error("Layout in worker failed, fallback to main thread layout.",t),yield this.layout(e)}})}forEachNode(t){this.context.forEachNode(t)}forEachEdge(t){this.context.forEachEdge(t)}destroy(){var t;null===(t=this.context)||void 0===t||t.destroy(),this.model=null,this.context=null,this.supervisor&&(this.supervisor.destroy(),this.supervisor=null)}}var uE={}.toString,dE=function(t,e){return uE.call(t)==="[object "+e+"]"};var fE=Object.prototype.hasOwnProperty,pE=function(t,e){if(null===t||!function(t){if(!function(t){return"object"==typeof t&&null!==t}(t)||!dE(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))return{};var n={};return function(t,e){if(t)if(function(t){return Array.isArray(t)}(t))for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);else if(function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}(t))for(var i in t)if(t.hasOwnProperty(i)&&!1===e(t[i],i))break}(e,function(e){fE.call(t,e)&&(n[e]=t[e])}),n};class gE extends hE{constructor(){super(...arguments),this.id="dagre",this.isCompoundGraph=null,this.config={graphAttributes:["rankdir","align","nodesep","edgesep","ranksep","marginx","marginy","acyclicer","ranker"],nodeAttributes:["width","height"],edgeAttributes:["minlen","weight","width","height","labelpos","labeloffset"]}}getDefaultOptions(){return{directed:!0,multigraph:!0,rankdir:"TB",align:void 0,nodesep:50,edgesep:10,ranksep:50,marginx:0,marginy:0,acyclicer:void 0,ranker:"network-simplex",nodeSize:[0,0],edgeMinLen:1,edgeWeight:1,edgeLabelSize:[0,0],edgeLabelPos:"r",edgeLabelOffset:10}}layout(){return Cp(this,void 0,void 0,function*(){const t=new aA.graphlib.Graph({directed:!!this.options.directed,multigraph:!!this.options.multigraph,compound:this.isCompound()});t.setGraph(pE(this.options,this.config.graphAttributes)),t.setDefaultEdgeLabel(()=>({}));const e=TA(this.options.nodeSize,0);this.model.forEachNode(n=>{const r=n._original,[i,o]=EA(e(r)),s={width:i,height:o};if(t.setNode(String(n.id),s),this.isCompound()){if(SA(n.parentId))return;t.setParent(String(n.id),String(n.parentId))}});const{edgeLabelSize:n,edgeLabelOffset:r,edgeLabelPos:i,edgeMinLen:o,edgeWeight:s}=this.options,a=TA(n,0,"edge"),l=LA(r,10,"edge"),c="string"==typeof i?()=>i:PA(i,["edge"]),h=LA(o,1,"edge"),u=LA(s,1,"edge");this.model.forEachEdge(e=>{const n=e._original,[r,i]=EA(a(n)),o={width:r,height:i,labelpos:c(n),labeloffset:l(n),minlen:h(n),weight:u(n)};t.setEdge(String(e.source),String(e.target),o,String(e.id))}),lA.layout(t),this.model.forEachNode(e=>{const n=t.node(String(e.id));n&&(e.x=n.x,e.y=n.y,e.size=[n.width,n.height])}),this.model.forEachEdge(e=>{const n=t.edge(String(e.source),String(e.target),String(e.id));if(!n)return;const{width:r,height:i,weight:o,minlen:s,labelpos:a,labeloffset:l,points:c}=n;e.labelSize=[r,i],e.weight=o,e.minLen=s,e.labelPos=a,e.labelOffset=l,e.points=c.map(IA)})})}isCompound(){return null!==this.isCompoundGraph?this.isCompoundGraph:function(t){return dE(t,"Boolean")}(this.options.compound)?this.isCompoundGraph=this.options.compound:(this.isCompoundGraph=this.model.nodes().some(t=>!SA(t.parentId)),this.isCompoundGraph)}}const mE=50,yE=70,vE=10,xE=2,bE=30;zf("relation-dagre-flow",{component:t=>{var e,n;const{Title:r,Item:i,data:o,rankdir:s="TB",nodesep:a=mE,ranksep:l=yE,edgesep:c=vE,edgeWidth:h=xE,showConnections:u=!0,edgeColorMode:d="gradient",edgeStyle:f="solid",edgeDashPattern:p="5,5",edgeCornerRadius:g=12,edgeRouting:m="orth",showArrow:y=!0,arrowType:v="triangle",padding:x=bE,edgeAnimation:b="none",edgeAnimationSpeed:w=1,options:_}=t,{title:M,desc:k,items:C=[],relations:j=[]}=o,O=r?F(r,{title:M,desc:k}):null;if(!i||0===C.length)return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[O,F(Y,{children:F(rh,{indexes:[0],x:0,y:0})})]});const A=new Map,E=new Map,S=new Map,$=new Map,z=new Set,P=new Map;let L=0;const T=C.map((t,e)=>{var n,r;const s=t,a=String(null!==(n=s.id)&&void 0!==n?n:e),l=[e];let c;const h=String(null!==(r=s.group)&&void 0!==r?r:"");if(h){let t=P.get(h);null==t&&(t=L,P.set(h,t),L+=1),c=Sh(_,[t])}else c=Sh(_,l);const u=c?$h({colorPrimary:c},_):void 0;c&&S.set(a,c);const d=Hc(F(i,{indexes:l,data:o,datum:s,positionH:"center",positionV:"middle",themeColors:u}));return E.set(a,d),A.set(a,{id:a,indexes:l,datum:s,themeColors:u}),$.set(e,a),z.add(a),{id:a,parentId:s.parentId}}),I=t=>{if(null==t)return null;const e=String(t);if(z.has(e))return e;const n=Number(t);if(!Number.isNaN(n)){const t=$.get(n);if(t)return t}return null},R=j.map((t,e)=>{const n=I(t.from),r=I(t.to);return n&&r?{id:t.id?String(t.id):`edge-${e}`,source:n,target:r,relation:t}:null}).filter(Boolean),N=((t,e)=>{var n,r;const i=new Map;t.forEach(t=>i.set(t,[]));for(const t of e){if(t.source===t.target)return!0;null===(n=i.get(t.source))||void 0===n||n.push({target:t.target,edgeId:t.id}),null===(r=i.get(t.target))||void 0===r||r.push({target:t.source,edgeId:t.id})}const o=new Set,s=(t,e)=>{o.add(t);const n=i.get(t)||[];for(const{target:t,edgeId:r}of n)if(r!==e){if(o.has(t))return!0;if(s(t,r))return!0}return!1};for(const e of t)if(!o.has(e)&&s(e,null))return!0;return!1})(Array.from(z),R),H=N?"dagre":m,B=new gE({rankdir:s,nodesep:a,ranksep:l,edgesep:c,controlPoints:!0,nodeSize:t=>{var e;const n=String(null!==(e=t.id)&&void 0!==e?e:""),r=E.get(n);return r?[r.width,r.height]:[0,0]}});B.execute({nodes:T,edges:R});const W=[];if(B.forEachNode(t=>{var e,n,r,i;const o=String(t.id),s=A.get(o);if(!s)return;const a=E.get(o),l=null!==(e=null==a?void 0:a.width)&&void 0!==e?e:0,c=null!==(n=null==a?void 0:a.height)&&void 0!==n?n:0,h=(null!==(r=t.x)&&void 0!==r?r:0)-l/2,u=(null!==(i=t.y)&&void 0!==i?i:0)-c/2;W.push(Object.assign(Object.assign({},s),{x:h,y:u,width:l,height:c,centerX:h+l/2,centerY:u+c/2}))}),0===W.length)return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[O,F(Y,{children:F(rh,{indexes:[0],x:0,y:0})})]});const V=Math.min(...W.map(t=>t.x)),q=Math.min(...W.map(t=>t.y)),X=x-V,Z=x-q,K=new Map,Q=[];W.forEach(t=>{const e=t.x+X,n=t.y+Z;Q.push(F(i,{indexes:t.indexes,datum:t.datum,data:o,x:e,y:n,positionH:"LR"===s?"normal":"RL"===s?"flipped":"center",positionV:"TB"===s?"normal":"BT"===s?"flipped":"middle",themeColors:t.themeColors})),K.set(t.id,Object.assign(Object.assign({},t),{x:e,y:n,centerX:e+t.width/2,centerY:n+t.height/2}))});const J=[],tt=[];if(u){const t=Ah(_),r=$h(_.themeConfig,_),i=null!==(e=null==r?void 0:r.colorBg)&&void 0!==e?e:"#ffffff",o=null!==(n=null==r?void 0:r.colorText)&&void 0!==n?n:t,a=Math.max(10,4*h),l="TB"===s||"BT"===s,c="ant-line"===b,u=c?p:"",m=c?u:c||"dashed"!==f?"":p,x=c?u.split(",").reduce((t,e)=>t+parseFloat(e.trim()||"0"),0):0,M=c&&x>0?x/(10*w)+"s":"1s",k=g,C=(t,e)=>{const n=K.get(t),r=K.get(e);return n&&r?"TB"===s?{start:[n.centerX,n.y+n.height],end:[r.centerX,r.y]}:"BT"===s?{start:[n.centerX,n.y],end:[r.centerX,r.y+r.height]}:"LR"===s?{start:[n.x+n.width,n.centerY],end:[r.x,r.centerY]}:{start:[n.x,n.centerY],end:[r.x+r.width,r.centerY]}:null},j=(t,e)=>{const n=C(t,e);if(!n)return null;const{start:r,end:i}=n;if(l){const t=r[1]+(i[1]-r[1])/2;return{start:r,end:i,points:[r,[r[0],t],[i[0],t],i]}}const o=r[0]+(i[0]-r[0])/2;return{start:r,end:i,points:[r,[o,r[1]],[o,i[1]],i]}};B.forEachEdge(e=>{var n,r,s,l,u,f,p,g,b;const w="orth"===H,_=w?j(String(e.source),String(e.target)):null,C=w?[]:(O=e.points,Array.isArray(O)?O.map(t=>t&&Array.isArray(t)&&t.length>=2?[Number(t[0]),Number(t[1])]:null).filter(t=>!!t&&Number.isFinite(t[0])&&Number.isFinite(t[1])):[]);var O;const A=w?null!==(n=null==_?void 0:_.points)&&void 0!==n?n:[]:C.length?C:(()=>{const t=K.get(String(e.source)),n=K.get(String(e.target));return t&&n?[[t.centerX-X,t.centerY-Z],[n.centerX-X,n.centerY-Z]]:[]})();if(!A.length)return;const E=w?0:X,$=w?0:Z,z=w&&null!==(r=null==_?void 0:_.start)&&void 0!==r?r:A[0],P=w&&null!==(s=null==_?void 0:_.end)&&void 0!==s?s:A[A.length-1],L=null===(l=e._original)||void 0===l?void 0:l.relation,T=null!==(u=S.get(String(e.source)))&&void 0!==u?u:t,I=null!==(f=S.get(String(e.target)))&&void 0!==f?f:t,R=`edge-gradient-${String(T)}-${String(I)}`.replace(/[^a-zA-Z0-9_-]/g,""),N="gradient"===d?`url(#${R})`:t;let B="";if(B=k>0?((t,e,n,r)=>{if(t.length<2)return"";const i=(t,e,n)=>Math.min(n,Math.max(e,t)),o=([t,e])=>({x:t+n,y:e+r}),s=[],a=o(t[0]);if(s.push(`M ${a.x} ${a.y}`),2===t.length){const e=o(t[1]);return s.push(`L ${e.x} ${e.y}`),s.join(" ")}for(let n=1;n<t.length-1;n+=1){const r=t[n-1],a=t[n],l=t[n+1],c=a[0]-r[0],h=a[1]-r[1],u=l[0]-a[0],d=l[1]-a[1],f=Math.hypot(c,h),p=Math.hypot(u,d);if(0===f||0===p){const t=o(a);s.push(`L ${t.x} ${t.y}`);continue}const g=i(e,0,Math.min(f,p)/2);if(0===g){const t=o(a);s.push(`L ${t.x} ${t.y}`);continue}const m=u/p,y=d/p,v=o([a[0]-c/f*g,a[1]-h/f*g]),x=o([a[0]+m*g,a[1]+y*g]);s.push(`L ${v.x} ${v.y}`);const b=o(a);s.push(`Q ${b.x} ${b.y} ${x.x} ${x.y}`)}const l=o(t[t.length-1]);return s.push(`L ${l.x} ${l.y}`),s.join(" ")})(A,k,E,$):((t,e,n)=>t.map(([t,r],i)=>`${0===i?"M":"L"} ${t+e} ${r+n}`).join(" "))(A,E,$),!B)return;const W=F(G,{d:B,stroke:N,strokeWidth:h,strokeDasharray:m,fill:"none","data-element-type":"shape",children:c&&F("animate",{attributeName:"stroke-dashoffset",from:String(x),to:"0",dur:M,repeatCount:"indefinite"})});if(tt.push(W),"gradient"===d&&J.push(D("linearGradient",{id:R,gradientUnits:"userSpaceOnUse",x1:z[0]+E,y1:z[1]+$,x2:P[0]+E,y2:P[1]+$,children:[F("stop",{offset:"0%",stopColor:T}),F("stop",{offset:"100%",stopColor:I})]})),null==L?void 0:L.label){let t=null;const e=(t=>{if(0===t.length)return null;if(1===t.length)return t[0];let e=0;const n=[];for(let r=0;r<t.length-1;r+=1){const i=t[r],o=t[r+1],s=Math.hypot(o[0]-i[0],o[1]-i[1]);n.push({length:s,start:i,end:o}),e+=s}if(0===e)return t[0];let r=e/2;for(let t=0;t<n.length;t+=1){const e=n[t];if(r<=e.length||t===n.length-1){const t=0===e.length?0:Math.max(0,Math.min(1,r/e.length));return[e.start[0]+(e.end[0]-e.start[0])*t,e.start[1]+(e.end[1]-e.start[1])*t]}r-=e.length}return t[Math.floor(t.length/2)]})(A);if(e&&(t=[e[0]+E,e[1]+$]),t){const e=String(L.label),n=Hc(F(Pc,{fontSize:14,fontWeight:"normal",children:e}));tt.push(F(Pc,{x:t[0]-n.width/2,y:t[1]-n.height/2,width:n.width,height:n.height,fontSize:14,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:o,backgroundColor:i,children:e}))}}const V=null!==(p=null==L?void 0:L.showArrow)&&void 0!==p?p:y,U=null!==(g=null==L?void 0:L.direction)&&void 0!==g?g:"forward",q=null!==(b=null==L?void 0:L.arrowType)&&void 0!==b?b:v,Y=A.length-1;if(V&&A.length>1){if("forward"===U||"both"===U){const e=A[Y],n=A[Y-1],r=Math.atan2(e[1]-n[1],e[0]-n[0]),i=zh(e[0]+E,e[1]+$,r,q,"gradient"===d?I:t,h,a);tt.push(...i)}if("both"===U){const e=A[0],n=A[1],r=Math.atan2(e[1]-n[1],e[0]-n[0]),i=zh(e[0]+E,e[1]+$,r,q,"gradient"===d?T:t,h,a);tt.push(...i)}}})}return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[O,D(Y,{children:[F(U,{children:J}),F(Y,{width:0,height:0,children:tt}),F(fh,{children:Q}),F(oh,{})]})]})},composites:["title","item"]}),zf("relation-network",{component:t=>{const{Title:e,Item:n,data:r,spacing:i=120,showConnections:o=!0,options:s}=t,{title:a,desc:l,items:c=[]}=r,h=e?F(e,{title:a,desc:l}):null;if(0===c.length)return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,F(Y,{children:F(fh,{})})]});const u=Hc(F(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),{nodes:d,links:f}=function(){const t=c.map((t,e)=>({id:e,data:t,isCenter:0===e,_originalIndex:[e]})),e=c.slice(1).map((t,e)=>({source:0,target:e+1})),n=Jd.A(t).force("link",Kd.A(e).id(t=>t.id).distance(i)).force("charge",Qd.A().strength(-50)).force("center",Xd.A(0,0)).force("collision",Zd.A().radius(Math.max(u.width,u.height)/2+10));for(let t=0;t<300;++t)n.tick();return{nodes:t,links:e}}(),p=Math.min(...d.map(t=>{var e;return null!==(e=t.x)&&void 0!==e?e:0})),g=Math.min(...d.map(t=>{var e;return null!==(e=t.y)&&void 0!==e?e:0})),m=Math.max(0,u.width/2-p),y=Math.max(0,u.height/2-g),v=d.map(t=>{if(null==t.x||null==t.y)return null;const e=t.x+m-u.width/2,i=t.y+y-u.height/2,{positionH:o,positionV:s}=((t,e)=>({positionH:t<-50?"flipped":t>50?"normal":"center",positionV:e<-50?"flipped":e>50?"normal":"middle"}))(t.x,t.y);return F(n,{indexes:t._originalIndex,datum:t.data,data:r,x:e,y:i,positionH:o,positionV:s})}).filter(Boolean),x=new Map(d.map(t=>[t.id,t])),b=o?f.map(t=>{const e="object"==typeof t.source?t.source:x.get(t.source),n="object"==typeof t.target?t.target:x.get(t.target);return e&&n&&null!=e.x&&null!=e.y&&null!=n.x&&null!=n.y?F(G,{d:`M ${e.x+m} ${e.y+y} L ${n.x+m} ${n.y+y}`,stroke:Ah(s),strokeWidth:2,strokeOpacity:.6}):null}).filter(Boolean):[];return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,D(Y,{children:[F(Y,{children:b}),F(fh,{children:v})]})]})},composites:["title","item"]});const wE=t=>{var{width:e=25,height:n=25,colorPrimary:r="#6699FF",rotation:i=0}=t,o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["width","height","colorPrimary","rotation"]);const s=`gradient-arrow-stroke-${r.replace("#","")}`,a=`gradient-arrow-fill-${r.replace("#","")}`,l=Math.round(.515*e),c=Math.round(.275*n),h=Math.round(.875*n);return D(W,{children:[F(X,Object.assign({},o,{width:e,height:n,points:[{x:0,y:c},{x:l,y:c},{x:l,y:.075*n},{x:e,y:.575*n},{x:l,y:1.075*n},{x:l,y:h},{x:0,y:h}],fill:`url(#${a})`,stroke:`url(#${s})`,transform:`rotate(${i} ${e/2} ${n/2})`,"data-element-type":"shape"})),D(U,{children:[D("linearGradient",{id:a,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[F("stop",{offset:"0%","stop-color":r,"stop-opacity":"0.36"}),F("stop",{offset:"100%","stop-color":r,"stop-opacity":"0"})]}),D("linearGradient",{id:s,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[F("stop",{offset:"0%","stop-color":r}),F("stop",{offset:"58%","stop-color":r,"stop-opacity":"0"})]})]})]})},_E=({text:t,x:e=0,y:n=0,fontSize:r=56,fontWeight:i="bold",fill:o="#FFFFFF",textAnchor:s="middle",dominantBaseline:a="middle",shadowOffsetX:l=2,shadowOffsetY:c=4,midShadowOffsetX:h=1,midShadowOffsetY:u=2,deepShadowOpacity:d=.3,midShadowOpacity:f=.5})=>D(Y,{children:[F("text",{x:e,y:n,fontSize:r,fontWeight:i,fill:o,fillOpacity:d,textAnchor:s,dominantBaseline:a,transform:`translate(${l}, ${c})`,children:t}),F("text",{x:e,y:n,fontSize:r,fontWeight:i,fill:o,fillOpacity:f,textAnchor:s,dominantBaseline:a,transform:`translate(${h}, ${u})`,children:t}),F("text",{x:e,y:n,fontSize:r,fontWeight:i,fill:o,textAnchor:s,dominantBaseline:a,children:t})]});const ME=t=>{var{width:e=25,height:n=25,colorPrimary:r="#6699FF",rotation:i=0,strokeWidth:o=4}=t,s=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["width","height","colorPrimary","rotation","strokeWidth"]);return F(X,Object.assign({},s,{width:e,height:n,points:[{x:e/2,y:0},{x:e,y:n},{x:0,y:n}],fill:r,stroke:r,strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",transform:`rotate(${i} ${e/2} ${n/2})`}))},kE=240,CE=D("filter",{id:"sequence-ascending-stairs-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[F("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),F("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),F("feOffset",{dx:"0",dy:"4"}),F("feGaussianBlur",{stdDeviation:"6"}),F("feComposite",{in2:"hardAlpha",operator:"out"}),F("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),F("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),F("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]});zf("sequence-ascending-stairs-3d",{component:t=>{const{Title:e,Item:n,data:r,options:i,cubeWidth:o=kE}=t,{title:s,desc:a,items:l=[]}=r,c=e?F(e,{title:s,desc:a}):null;if(0===l.length){const t=F(rh,{indexes:[0],x:0,y:0});return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[F(U,{children:CE}),c,F(Y,{children:F(oh,{children:t})})]})}const h=Hc(F(rh,{indexes:[0]})),u=[],d=[],f=[],p=o/kE,g=180*p;return l.forEach((t,e)=>{const s=[e],a=Sh(i,s),c=e*(o+-118),m=118*(l.length-1-e),y=`cube-gradient-bottom-${e}`,v=`cube-gradient-top-${e}`,x=`cube-gradient-stroke-${e}`;f.push(D(Y,{x:c,y:m,id:`cube-${e}`,width:o,height:g,filter:"url(#sequence-ascending-stairs-3d-shadow-filter)",children:[D(U,{children:[D("linearGradient",{id:y,x1:"0",y1:"124.5",x2:"238.9",y2:"124.5",gradientUnits:"userSpaceOnUse",children:[F("stop",{offset:"0",stopColor:a,stopOpacity:"0.8"}),F("stop",{offset:"1",stopColor:a,stopOpacity:"0.4"})]}),D("linearGradient",{id:v,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[F("stop",{offset:"0",stopColor:a,stopOpacity:"0.9"}),F("stop",{offset:"1",stopColor:a,stopOpacity:"0.5"})]}),D("linearGradient",{id:x,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[F("stop",{offset:"0",stopColor:a}),F("stop",{offset:"1",stopColor:a,stopOpacity:"0.7"})]})]}),D(gh,{transform:`scale(${p})`,children:[F(G,{d:"M238.9 69.7a6 6 0 0 1-.1 1v.2l-.2.3v.3l-.1.3a6.2 6.2 0 0 1-.3.6l-.1.3-.2.3-.2.4-.3.5-.1.1a10.9 10.9 0 0 1-.8 1v.1l-.5.5h-.1l-.4.4-.3.3-.3.2-.3.3-.4.2a13 13 0 0 1-.7.5l-.4.3-.5.3-97.5 56.7-.7.4h-.2l-.6.4h-.1l-.8.4h-.2l-.6.4h-.2l-.8.3h-.2l-.5.3-.5.1-.5.1-.5.2h-.5a33.7 33.7 0 0 1-3.2.7h-.2l-1 .2h-1.6l-.7.1h-4.7l-.8-.1h-.2a38.2 38.2 0 0 1-2-.4h-.4l-.7-.2h-.4l-.7-.2-.4-.1a27.3 27.3 0 0 1-2.2-.7h-.2a44.2 44.2 0 0 1-.9-.3l-.5-.3-.4-.1-.5-.2-.3-.2-.5-.2-.3-.2-.8-.4L6.5 78C2.2 75.6 0 72.4 0 69v41.7c0 3.2 2.1 6.5 6.4 9l98.1 56.6a23.2 23.2 0 0 0 1 .6l.6.3.3.1.5.2.4.2.3.1h.2l.2.2a21.4 21.4 0 0 0 1.9.6l.3.1h.2l.7.2a77.6 77.6 0 0 1 1.1.3h.3l.7.2h.4a42.5 42.5 0 0 0 1 .2l1 .2h1.1l.4.1h2.1l.7.1h1.5a22 22 0 0 0 1.8-.2h.4l1.1-.1h.2l1.2-.2h.1l.3-.1.6-.1a12.5 12.5 0 0 0 1-.3h.5l.5-.2a29 29 0 0 0 1-.3h.2l.3-.2h.2a27 27 0 0 0 1.6-.7h.2l.8-.4a19.4 19.4 0 0 0 1.6-.9l97.5-56.7.3-.1.2-.2.4-.2.4-.3.3-.2.3-.3.4-.2.3-.3.3-.3h.1l.3-.3.5-.6h.1l.3-.5h.1v-.1l.4-.4v-.1l.4-.5v-.1l.1-.2.1-.2.2-.3.1-.3.1-.3.1-.1a6.9 6.9 0 0 0 .2-.8l.1-.3v-.4l.1-.3v-1l.2-41.4v.4Z",fill:`url(#${y})`}),F(G,{d:"M232.5 60.4c8.5 4.9 8.5 12.8.1 17.7l-97.5 56.7c-8.4 4.9-22 4.9-30.5 0L6.5 78C-2 73-2 65.3 6.4 60.4l97.5-56.7c8.4-5 22-5 30.5 0l98.1 56.7Z",fill:`url(#${v})`}),F(G,{d:"M119.1 0A31 31 0 0 0 104 3.7L6.4 60.4C-2 65.3-2 73.2 6.4 78l98.2 56.7c4.2 2.4 9.8 3.7 15.3 3.7a31 31 0 0 0 15.2-3.7L232.6 78c8.4-5 8.4-12.8 0-17.7L134.3 3.7A31.2 31.2 0 0 0 119.1 0Zm0 2.5c5.4 0 10.3 1.2 14 3.3l98.2 56.7c3.3 2 5.1 4.3 5.1 6.8 0 2.4-1.8 4.7-5 6.6l-97.5 56.7a28.3 28.3 0 0 1-14 3.4c-5.3 0-10.3-1.2-14-3.4L7.7 76c-3.3-1.9-5-4.3-5-6.7 0-2.4 1.7-4.8 5-6.7L105 5.8a29 29 0 0 1 14-3.3Z",fill:`url(#${x})`})]}),F(_E,{text:e+1,x:115,y:65,fontSize:56})]})),d.push(F(n,{indexes:s,datum:t,data:r,x:c+o+40,y:m+g/2,positionH:"normal"})),u.push(F(ih,{indexes:s,x:c+o-h.width/2,y:m-h.height/2})),0===e&&u.push(F(rh,{indexes:[0],x:c-30-h.width/2,y:m+g/2-h.height/2})),u.push(F(rh,e<l.length-1?{indexes:[e+1],x:c+o-h.width/2,y:(m+g/2+118*(l.length-1-(e+1))+g/2)/2-h.height/2}:{indexes:[l.length],x:c+o+30-h.width/2,y:m+g/2-h.height/2}))}),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[F(U,{children:CE}),c,D(Y,{x:0,y:0,children:[F(Y,{children:f}),F(fh,{children:d}),F(oh,{children:u})]})]})},composites:["title","item"]}),zf("sequence-ascending-steps",{component:t=>{const{Title:e,Item:n,data:r,hGap:i=0,vGap:o=0}=t,{title:s,desc:a,items:l=[]}=r,c=e?F(e,{title:s,desc:a}):null,h=Hc(F(n,{indexes:[0],data:r,datum:l[0]})),u=[],d=[],f=h.width+i,p=h.height/2+o,g=h.width/2,m=0+(l.length-1)*p;return l.forEach((t,e)=>{const o=g+e*f,s=m-e*p,a=[e];u.push(F(n,{indexes:a,datum:t,data:r,x:o,y:s})),d.push(F(ih,{indexes:a,x:o+h.width-30,y:s+h.height/2+10})),d.push(F(rh,{indexes:a,x:o+h.width+i/2,y:s-30}))}),D(yh,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,D(Y,{children:[F(fh,{children:u}),F(oh,{children:d})]})]})},composites:["title","item"]}),zf("sequence-circle-arrows",{component:t=>{const{Title:e,Item:n,data:r,options:i,radius:o=150,arrowSize:s=4,strokeWidth:a=10}=t,{title:l,desc:c,items:h=[]}=r,u=Hc(F(rh,{indexes:[0]})),d=Ah(i);if(!n){const t=e?F(e,{title:l,desc:c}):null;return D(yh,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[t,F(Y,{children:F(oh,{children:F(rh,{indexes:[0],x:0,y:0})})})]})}const f=h.length;if(0===f){const t=e?F(e,{title:l,desc:c}):null;return D(yh,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[t,F(Y,{children:F(oh,{children:F(rh,{indexes:[0],x:0,y:0})})})]})}const p=Hc(F(n,{indexes:[0],data:r,datum:h[0]})),g=2*Math.PI/f,m=[];let y=1/0,v=1/0,x=-1/0,b=-1/0;for(let t=0;t<f;t++){const e=t*g-Math.PI/2,n=0+o*Math.cos(e),r=0+o*Math.sin(e);m.push({x:n,y:r}),y=Math.min(y,n),v=Math.min(v,r),x=Math.max(x,n),b=Math.max(b,r)}const w=[];for(let t=0;t<f;t++){const e=m[t],n=m[(t+1)%f],r=Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2)),i=Math.min(.5*r,100),o=(e.x+n.x)/2,s=(e.y+n.y)/2;y=Math.min(y,o-i/2),v=Math.min(v,s-i/2),x=Math.max(x,o+i/2),b=Math.max(b,s+i/2);const a=Math.atan2(s-0,o-0);let l,c;const h=180*(a<0?a+2*Math.PI:a)/Math.PI,d=i/2+20,g=o+Math.cos(a)*d,_=s+Math.sin(a)*d;h>=337.5||h<22.5?(l=g,c=_-p.height/2):h>=22.5&&h<67.5?(l=g,c=_):h>=67.5&&h<112.5?(l=g-p.width/2,c=_):h>=112.5&&h<157.5?(l=g-p.width,c=_):h>=157.5&&h<202.5?(l=g-p.width,c=_-p.height/2):h>=202.5&&h<247.5?(l=g-p.width,c=_-p.height):h>=247.5&&h<292.5?(l=g-p.width/2,c=_-p.height):(l=g,c=_-p.height),w.push({lineLength:r,circleBigW:i,midX:o,midY:s,itemX:l,itemY:c}),y=Math.min(y,l),v=Math.min(v,c),x=Math.max(x,l+p.width+u.width+5),b=Math.max(b,c+p.height)}const _=Math.max(0,-y),M=Math.max(0,-v),k=e?F(e,{title:l,desc:c}):null,C=[],j=[],O=[],A=[],E=m.map(t=>({x:t.x+_,y:t.y+M}));for(let t=0;t<f;t++){const e=E[t],n=E[(t+1)%f],r=(t+1)%f,o=[t],{lineLength:l,circleBigW:c,midX:h,midY:p}=w[t],g=Math.max(c-20,20),m=Math.max(.4*g,16),y=Sh(i,o)||d,v=(n.x-e.x)/l,x=(n.y-e.y)/l,b=Math.min(5,(l-(10+s))/2),k=Math.max(0,e.x+v*b),j=Math.max(0,e.y+x*b),S=Math.max(0,n.x-v*b),$=Math.max(0,n.y-x*b),z=xf.A().x(t=>Math.max(0,t.x)).y(t=>Math.max(0,t.y)).curve(Cf.A)([{x:k,y:j},{x:S,y:$}])||"",P=`fork-arrow-${y.replace(/[^a-zA-Z0-9]/g,"")}-${t}`;A.push(F("marker",{id:P,viewBox:`${-s} ${.6*-s} ${1.2*s} ${1.2*s}`,refX:.08*-s,refY:0,markerWidth:s,markerHeight:s,orient:"auto",markerUnits:"strokeWidth",children:F("path",{d:`\n M ${.6*-s} ${.4*-s}\n L 0 0\n L ${.6*-s} ${.4*s}\n `,fill:"none",stroke:y,strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"})})),O.push(F(G,{d:z,stroke:y,strokeWidth:a,fill:"none",markerEnd:`url(#${P})`,strokeLinecap:"round","data-element-type":"shape"}));const L=h+_,T=p+M,I=$h({colorPrimary:y||d},i);O.push(F(q,{x:Math.max(0,L-c/2),y:Math.max(0,T-c/2),width:c,height:c,fill:I.colorPrimaryBg,"data-element-type":"shape"})),O.push(F(q,{x:Math.max(0,L-g/2),y:Math.max(0,T-g/2),width:g,height:g,fill:"#ffffff"})),O.push(F(hh,{x:Math.max(0,L-m/2),y:Math.max(0,T-m/2),size:m,indexes:o,fill:y}));const R=Math.max(0,L-u.width/2),N=Math.max(0,T-u.height/2);C.push(F(rh,{indexes:[r],x:R,y:N}))}for(let t=0;t<f;t++){const e=[t],i=h[t],{itemX:o,itemY:s}=w[t],a=Math.max(0,o+_),l=Math.max(0,s+M);j.push(F(n,{indexes:e,datum:i,data:r,x:a,y:l}));const c=Math.max(0,a+p.width+5),d=Math.max(0,l+p.height/2-u.height/2);C.push(F(ih,{indexes:e,x:c,y:d}))}return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[k,D(Y,{x:0,y:0,children:[F(U,{children:A}),F(Y,{children:O}),F(fh,{children:j}),F(oh,{children:C})]})]})},composites:["title","item"]}),zf("sequence-circular",{component:t=>{const{Title:e,Item:n,data:r,options:i,outerRadius:o=180,innerRadius:s=120,itemDistance:a=310,gapAngle:l=5,iconRadius:c=34,iconBgRadius:h=38,iconSize:u=36}=t,{title:d,desc:f,items:p=[]}=r,g=e?F(e,{title:d,desc:f}):null,m=Math.max(a+100,o+50),y=Math.min(a,o),v=Hc(F(rh,{indexes:[0]}));if(0===p.length)return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,F(Y,{children:F(oh,{children:F(rh,{indexes:[0],x:m-20,y:y-20})})})]});const x=[],b=[],w=[],_=[],M=Hc(F(n,{indexes:[0],data:r,datum:p[0]})),k=(360-p.length*l)/p.length,C=(t,e,n,r,i,o)=>{const s=i*Math.PI/180,a=o*Math.PI/180,l=t+n*Math.cos(s),c=e+n*Math.sin(s),h=o-i<=180?"0":"1";return[`M ${l} ${c}`,`L ${t+r*Math.cos(s)} ${e+r*Math.sin(s)}`,`A ${r} ${r} 0 ${h} 1 ${t+r*Math.cos(a)} ${e+r*Math.sin(a)}`,`L ${t+n*Math.cos(a)} ${e+n*Math.sin(a)}`,`A ${n} ${n} 0 ${h} 0 ${l} ${c}`,"Z"].join(" ")},j=({centerX:t,outerRadius:e,angleRad:n,btnBounds:r})=>({x:t+(e+20)*Math.cos(n)-r.width/2,y:y+(e+20)*Math.sin(n)-r.height/2}),O=6/((s+o)/2)*(180/Math.PI);p.forEach((t,e)=>{const d=[e],f=e*(k+l)+270,p=f+k,g=(f+p)/2,A=g*Math.PI/180,E=Sh(i,d),S=E+"40",$=C(m,y,s,o,f,p);w.push(F(G,{d:$,fill:S,width:2*o,height:2*o,"data-element-type":"shape"}));const z=C(m,y,s+6,o-6,f+O,p-O);w.push(F(G,{d:z,fill:E,width:2*o,height:2*o,"data-element-type":"shape"}));const P=(s+o)/2,L=m+P*Math.cos(A),T=y+P*Math.sin(A);_.push(F(q,{x:L-h,y:T-h,width:2*h,height:2*h,fill:"#ffffff","data-element-type":"shape"})),_.push(F(q,{x:L-c,y:T-c,width:2*c,height:2*c,fill:E,"data-element-type":"shape"})),t.icon&&_.push(F(hh,{x:L-u/2,y:T-u/2,indexes:d,size:u,fill:"#fff"}));const I=(g%360+360)%360,R=I>=75&&I<=105;let N,H="normal",B="normal";R?(N=I,B="normal",H="center"):I>=270||I<=90?(N=I>=270?(I-270)/90*60-60:I/90*60,H="normal"):(N=120+(I-90)/180*120,H="flipped");const W=N*Math.PI/180,D=m+a*Math.cos(W)-M.width/2;let V=y+a*Math.sin(W)-M.height/2;R&&(V=y+o+M.height/2),b.push(F(n,{indexes:d,datum:t,data:r,x:D,y:V,positionH:H,positionV:B}));const U=a+40,Y=m+U*Math.cos(W)-v.width/2,X=y+U*Math.sin(W)-v.height/2;x.push(F(ih,{indexes:d,x:Y,y:X}));const Z=(f+k+l/2)*Math.PI/180,{x:K,y:Q}=j({centerX:m,outerRadius:o,angleRad:Z,btnBounds:v});x.push(F(rh,{indexes:[e+1],x:K,y:Q}))});const A=(270-l/2)*Math.PI/180,{x:E,y:S}=j({centerX:m,outerRadius:o,angleRad:A,btnBounds:v});return x.unshift(F(rh,{indexes:[0],x:E,y:S})),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:70,children:[g,D(Y,{children:[F(Y,{children:w}),F(Y,{children:_}),F(fh,{children:b}),F(oh,{children:x})]})]})},composites:["title","item"]}),zf("sequence-color-snake-steps",{component:t=>{const{Title:e,Item:n,data:r,gap:i=0,rowGap:o=0,itemsPerRow:s=3,circleStrokeWidth:a=18,options:l}=t,{title:c,desc:h,items:u=[]}=r,d=e?F(e,{title:c,desc:h}):null,f=Ah(l),p=Hc(F(rh,{indexes:[0]})),g=Hc(F(n,{indexes:[0],data:r,datum:u[0],positionH:"center"})),m=[],y=[],v=[],x=(o+g.height)/2,b=x;if(u.forEach((t,e)=>{const c=Math.floor(e/s),h=e%s,d=c%2==1,w=(d?s-1-h:h)*(g.width+i)+b,_=c*(g.height+o),M=[e];if(y.push(F(n,{indexes:M,datum:t,data:r,x:w,y:_,positionH:"center",positionV:e%2==1?"flipped":"normal"})),m.push(F(ih,{indexes:M,x:w+(g.width-p.width)/2,y:_+g.height+10})),0===e&&m.push(F(rh,{indexes:M,x:w+(g.width-p.width)/2,y:_-p.height-10})),e<u.length-1)if(c===Math.floor((e+1)/s))m.push(F(rh,{indexes:[e+1],x:w+(g.width-p.width)/2,y:_-p.height-10}));else{const t=_+g.height/2,n=_+g.height+o+g.height/2;let r,i,s;d?(r=w,s=0,i=`M ${r} ${t} A ${x} ${x} 0 0 ${s} ${r} ${n}`):(r=w+g.width,s=1,i=`M ${r} ${t} A ${x} ${x} 0 0 ${s} ${r} ${n}`);const c=n-t,h=Sh(l,M),u=Sh(l,[e+1]),y=`gradient-arc-${e}`;v.push(D(W,{children:[F(U,{children:D("linearGradient",{id:y,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[F("stop",{offset:"0%",stopColor:h||f}),F("stop",{offset:"100%",stopColor:u||f})]})}),F(G,{d:i,stroke:`url(#${y})`,strokeWidth:a,fill:"none",width:b,height:c,"data-element-type":"shape"})]})),m.push(F(rh,{indexes:[e+1],x:d?r-x-p.width/2:r+x-p.width/2,y:_+g.height+o/2-p.height/2}))}}),u.length>0){const t=u.length-1,e=Math.floor(t/s),n=t%s;m.push(F(rh,{indexes:[u.length],x:(e%2==1?s-1-n:n)*(g.width+i)+(g.width-p.width)/2,y:e*(g.height+o)+g.height+p.height+20}))}if(u.length/s>2){const t=(o+g.height)/2,e=Sh(l,[0]);v.push(F(Z,{x:0,y:g.height/2-a/2,width:t,height:a,fill:e||f,"data-element-type":"shape"}))}return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,D(Y,{width:s*g.width+(s-1)*i+2*x,height:Math.ceil(u.length/s)*(g.height+o),children:[F(Y,{children:v}),F(fh,{children:y}),F(oh,{children:m})]})]})},composites:["title","item"]});const jE=(t,e)=>0===t?0:1===t?e/2:e/2+e/2*3*(t-1),OE=(t,e,n)=>t?0:2*n+(0===e?2:n);zf("sequence-cylinders-3d",{component:t=>{const{Title:e,Item:n,data:r,options:i,cylinderRx:o=28,cylinderRy:s=18,baseHeight:a=120,heightIncrement:l=40,depthSpacing:c=60,itemVerticalAlign:h="top",itemVerticalOffset:u=-12,firstDecorationWidth:d=90}=t,{title:f,desc:p,items:g=[]}=r,m=e?F(e,{title:f,desc:p}):null,y=Hc(F(n,{indexes:[0],data:r,datum:g[0],positionH:"center"})),v=Hc(F(rh,{indexes:[0]})),x=Ah(i),b=Math.max(6,.15*c),w=((t,e,n,r,i,o,s)=>{const a=r+(t-1)*i+t*Math.max(6,.15*o)+100+50,l=a-100;let c=0,h=0,u=0,d=0;if(t>0){const r=0;let i=1/0,o=-1/0;for(let e=0;e<t;e++){const t=e%2==0,s=Math.floor(e/2),a=jE(s,n),l=r+OE(t,s,n)+a;i=Math.min(i,l-n),o=Math.max(o,l+n)}c=0,d=c+e.width+10+s+n,u=d-r+(i+o)/2,h=u+(u-(c+e.width/2))-e.width/2}return{canvasHeight:a,startY:l,leftItemAlignedX:c,rightItemAlignedX:h,cylinderAreaStartX:d}})(g.length,y,o,a,l,c,d),{startY:_,leftItemAlignedX:M,rightItemAlignedX:k,cylinderAreaStartX:C}=w,j=[],O=[];g.forEach((t,e)=>{const c=Sh(i,[e])||x;j.push(...((t,e)=>{const n=(0,ea.A)(e),r=[];return r.push(D("linearGradient",{id:`cylinderGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[F("stop",{offset:"0%",stopColor:n.toRgbString(),stopOpacity:.7}),F("stop",{offset:"40%",stopColor:n.clone().lighten(5).toRgbString(),stopOpacity:.65}),F("stop",{offset:"70%",stopColor:n.clone().lighten(15).toRgbString(),stopOpacity:.6}),F("stop",{offset:"100%",stopColor:n.clone().lighten(20).toRgbString(),stopOpacity:.55})]})),r.push(D("linearGradient",{id:`topGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[F("stop",{offset:"0%",stopColor:n.clone().lighten(15).toRgbString(),stopOpacity:1}),F("stop",{offset:"100%",stopColor:"#fafafa",stopOpacity:1})]})),r.push(D("linearGradient",{id:`bottomGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[F("stop",{offset:"0%",stopColor:n.clone().darken(8).toRgbString(),stopOpacity:.75}),F("stop",{offset:"50%",stopColor:n.clone().darken(5).toRgbString(),stopOpacity:.7}),F("stop",{offset:"100%",stopColor:n.clone().darken(12).toRgbString(),stopOpacity:.65})]})),r.push(D("linearGradient",{id:`numberGradient${t}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[F("stop",{offset:"0%",stopColor:n.clone().darken(0).toRgbString(),stopOpacity:.9}),F("stop",{offset:"50%",stopColor:n.clone().lighten(5).toRgbString(),stopOpacity:.85}),F("stop",{offset:"100%",stopColor:n.clone().lighten(10).toRgbString(),stopOpacity:.8})]})),r.push(D("linearGradient",{id:`glowGradient${t}`,x1:"0%",y1:"100%",x2:"0%",y2:"0%",children:[F("stop",{offset:"0%",stopColor:"#FFFFFF",stopOpacity:.2}),F("stop",{offset:"90%",stopColor:"#FFFFFF",stopOpacity:0})]})),r})(e,c));const d=((t,e,n,r,i,o,s)=>{const a=t%2==0,l=Math.floor(t/2),c=jE(l,e),h=o-t*i,u=n+t*r,d=h-u;return{x:s+OE(a,l,e)+c,y:d,height:u,bottomY:h,topY:d}})(e,o,a,l,b,_,C),f=((t,e,n,r)=>{const{x:i,topY:o,bottomY:s}=e,a=[];return a.push(F("ellipse",{id:`cylinder-bottom-${t}`,cx:i,cy:s,rx:n,ry:r,fill:`url(#bottomGradient${t})`,opacity:.7})),a.push(F(G,{id:`cylinder-body-${t}`,d:`\n M ${i-n} ${o}\n A ${n} ${r} 0 0 0 ${i} ${o+r}\n A ${n} ${r} 0 0 0 ${i+n} ${o}\n L ${i+n} ${s}\n A ${n} ${r} 0 0 1 ${i} ${s+r}\n A ${n} ${r} 0 0 1 ${i-n} ${s}\n Z\n `,fill:`url(#cylinderGradient${t})`,stroke:"none"})),a.push(F(Z,{id:`cylinder-glow-${t}`,x:i-n,y:o-3*r,width:2*n,height:3*r,fill:`url(#glowGradient${t})`})),a.push(F("ellipse",{id:`cylinder-top-${t}`,cx:i,cy:o,rx:n,ry:r,fill:`url(#topGradient${t})`})),a.push(F(Pc,{id:`cylinder-number-${t}`,width:50,height:50,fontFamily:"Arial Black, sans-serif",fontSize:32,fontWeight:900,fill:`url(#numberGradient${t})`,alignHorizontal:"center",alignVertical:"middle",transform:`translate(${i-10}, ${o-15}) matrix(1, 0, -0.6, 0.6, 0, 0)`,children:t+1})),a})(e,d,o,s),{itemPos:p,lineStartX:g,lineEndX:m,lineY:w}=((t,e,n,r,i,o,s,a)=>{const l=t%2==0,c=e.topY+.05*e.height;let h,u,d;l?(h=i,u=h+n.width+10):(h=o,u=h-10),d="top"===s?c:"bottom"===s?c-n.height:c-n.height/2,d+=a;const f=l?e.x-r:e.x+r;return{itemPos:{x:h,y:d},lineStartX:l?f-10:f+10,lineEndX:u,lineY:c}})(e,d,y,o,M,k,h,u),A=((t,e,n,r,i)=>{const o=[];return o.push(F("circle",{id:`decoration-dot-start-${t}`,cx:e,cy:r,r:2,fill:i})),o.push(F("line",{id:`decoration-line-${t}`,x1:e,y1:r,x2:n,y2:r,stroke:i,strokeWidth:1,opacity:.8})),o.push(F("circle",{id:`decoration-dot-end-${t}`,cx:n,cy:r,r:2,fill:i,opacity:.9})),o})(e,g,m,w,c);f.push(...A);const E=F(n,{indexes:[e],datum:t,data:r,x:p.x,y:p.y,positionH:e%2==0?"flipped":"normal"}),S=[F(ih,{indexes:[e],x:p.x+y.width/2-v.width/2,y:p.y+y.height+10}),F(rh,{indexes:[e],x:p.x+y.width/2-v.width/2,y:p.y-v.height-10})];O[e]={cylinderNodes:f,itemNode:E,btnNodes:S,itemX:p.x,itemY:p.y}});let A=1/0,E=1/0,S=-1/0,$=-1/0;O.forEach(t=>{const{itemX:e,itemY:n}=t;A=Math.min(A,e),E=Math.min(E,n),S=Math.max(S,e+y.width),$=Math.max($,n+y.height)});const z=S-A,P=$-E,L=[F(U,{children:j})],T=[],I=((t,e,n,r,i)=>{if(0===t)return null;const o=[];for(let s=0;s<t;s++){const t=s%2==0,a=Math.floor(s/2),l=jE(a,e),c=OE(t,a,e);o.push({x:n+c+l,y:r-s*i})}const s=o[0],a=o[o.length-1],l=t>5?16*t:100,c=s.x-e-l,h=s.x+e+l,u=s.y+6+l/6,d=a.x+e+l,f=a.y+6-l/6,p=`\n M ${c} ${u}\n L ${h} ${u}\n L ${d} ${f}\n L ${a.x-e-l} ${f}\n Z\n `,g=`\n M ${h} ${u}\n L ${h} ${u+6}\n L ${d} ${f+6}\n L ${d} ${f}\n Z\n `,m=`\n M ${c} ${u}\n L ${h} ${u}\n L ${h} ${u+6}\n L ${c} ${u+6}\n Z\n `,y=D(W,{children:[D("linearGradient",{id:"basePlateTopGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[F("stop",{offset:"0%",stopColor:"#fafafa",stopOpacity:1}),F("stop",{offset:"50%",stopColor:"#ffffff",stopOpacity:.98}),F("stop",{offset:"100%",stopColor:"#ececec",stopOpacity:.95})]}),D("linearGradient",{id:"basePlateFrontGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[F("stop",{offset:"0%",stopColor:"#e0e0e0",stopOpacity:.95}),F("stop",{offset:"50%",stopColor:"#d2d2d2",stopOpacity:.93}),F("stop",{offset:"100%",stopColor:"#c5c5c5",stopOpacity:.9})]}),D("linearGradient",{id:"basePlateSideGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[F("stop",{offset:"0%",stopColor:"#b8b8b8",stopOpacity:.92}),F("stop",{offset:"50%",stopColor:"#c0c0c0",stopOpacity:.88}),F("stop",{offset:"100%",stopColor:"#adadad",stopOpacity:.85})]})]});return D(Y,{children:[F(U,{children:y}),F(G,{id:"base-plate-front",d:m,fill:"url(#basePlateFrontGradient)",stroke:"#c5c5c5",strokeWidth:.3,opacity:.92}),F(G,{id:"base-plate-side",d:g,fill:"url(#basePlateSideGradient)",stroke:"#aaaaaa",strokeWidth:.3,opacity:.88}),F(G,{id:"base-plate-top",d:p,fill:"url(#basePlateTopGradient)",stroke:"#e5e5e5",strokeWidth:.5,opacity:.93})]})})(g.length,o,C,_,b);I&&L.push(I);for(let t=g.length-1;t>=0;t--){const e=O[t];e&&(L.push(D(Y,{children:[F(Y,{children:e.cylinderNodes}),e.itemNode]})),T.push(...e.btnNodes))}if(g.length>0){const t=g.length%2==0,e=Math.floor(g.length/2),n=jE(e,o),r=OE(t,e,o);T.push(F(rh,{indexes:[g.length],x:C+r+n,y:_-g.length*b-100}))}return D(yh,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,D(Y,{width:z,height:P,children:[F(fh,{children:L}),F(oh,{children:T})]})]})},composites:["title","item"]});const AE=160,EE=100;function SE(t,e,n){return(t+7*e+13*n)%100}function $E(t,e,n,r,i,o,s,a){return{x:Math.max(i,Math.min(t+n,o)),y:Math.max(s,Math.min(e+r,a))}}function zE({count:t,rectX:e,rectY:n,rectWidth:r,rectHeight:i,seed:o}){const s=[],{cols:a,rows:l}=function(t){const e=Math.ceil(Math.sqrt(1.5*t));return{cols:e,rows:Math.ceil(t/e)}}(t),c=(r-8)/(a+1),h=(i-8)/(l+1);let u=0;for(let d=0;d<l&&u<t;d++)for(let l=0;l<a&&u<t;l++){const t=SE(o,d,l),a=t%16-8,f=3*t%12-6,p=e+4+(l+1)*c+(d%2==1?c/2:0),g=n+4+(d+1)*h,{x:m,y}=$E(p,g,a,f,e+4,e+r-4,n+4,n+i-4);s.push({x:m,y,colorIndex:u}),u++}return s}function PE(){const t=40,e=25,n=160,r=75,i=40,o=205,s=160,a=255,l=[];for(let c=0;c<=12;c++){const h=c/12,u={x:t+(i-t)*h,y:e+(o-e)*h},d={x:n+(s-n)*h,y:r+(a-r)*h};l.push(`M${u.x} ${u.y}L${d.x} ${d.y}`);const f={x:t+(n-t)*h,y:e+(r-e)*h},p={x:i+(s-i)*h,y:o+(a-o)*h};l.push(`M${f.x} ${f.y}L${p.x} ${p.y}`)}return l.join("")}function LE(t,e){return t.map(t=>F(G,{d:"M4 0L8 4L4 8L0 4Z",fill:Sh(e,[t.colorIndex]),x:t.x,y:t.y,width:8,height:8,"data-element-type":"shape"}))}zf("sequence-filter-mesh",{component:t=>{const{Title:e,Item:n,data:r,gap:i=20,options:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?F(e,{title:s,desc:a}):null,h=Hc(F(rh,{indexes:[0]})),u=Hc(F(n,{indexes:[0],data:r,datum:l[0],width:AE,positionH:"center"})),d=[],f=[],p=[],g=260+i,m=g+u.height+10;return l.forEach((t,e)=>{const i=e*AE,s=[e],a=Sh(o,s),c=function(t,e){return e<=1?40:Math.round(40-t/(e-1)*35)}(e,l.length),u=zE({count:c,rectX:0,rectY:80,rectWidth:100,rectHeight:130,seed:100*e});d.push(function(t,e,n,r,i){return D(Y,{x:e,y:0,width:AE,height:260,children:[D(gh,{children:[F(G,{d:PE(),stroke:"#D9D9D9",strokeWidth:2}),F(G,{d:"M100 25V260",stroke:"#BFBFBF",strokeWidth:2,strokeLinecap:"round"}),F(Z,{x:0,y:80,width:100,height:130,fill:"#FFCB0E",fillOpacity:.2})]}),F(W,{children:LE(r,i)}),F(Pc,{x:75,y:0,width:50,height:20,fontSize:20,fontWeight:"bold",alignHorizontal:"center",alignVertical:"top",fill:n,children:String(t+1).padStart(2,"0")})]})}(e,i,a,u,o)),e===l.length-1&&d.push(function(t,e){const n=zE({count:Math.max(Math.round(3),3),rectX:0,rectY:14,rectWidth:57,rectHeight:120,seed:999});return D(Y,{x:t+AE,y:71,children:[F(G,{d:"M0 13.9679H57.1429V0L100 74L57.1429 148V134.032H0V13.9679Z",width:100,height:148,fill:"#FFCB0E",fillOpacity:.2,"data-element-type":"shape"}),F(W,{children:LE(n,e)})]})}(i,o)),f.push(F(n,{indexes:s,datum:t,data:r,width:AE,x:i+EE-80,y:g,positionH:"center"})),p.push(F(ih,{indexes:s,x:i+EE-h.width/2,y:m})),e<l.length-1&&p.push(F(rh,{indexes:[e+1],x:i+AE-h.width/2,y:m}))}),l.length>0&&(p.unshift(F(rh,{indexes:[0],x:-h.width/2,y:m})),p.push(F(rh,{indexes:[l.length],x:(l.length-1)*AE+AE-h.width/2,y:m}))),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,D(Y,{width:AE*l.length+100,height:260+i+u.height,children:[F(Y,{children:d}),F(fh,{children:f}),F(oh,{children:p})]})]})},composites:["title","item"]});const TE=t=>Math.round(1e10*t)/1e10,IE=(t,e)=>TE(Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))),RE=Math.PI,NE=2*RE,HE=Math.PI,BE=(t,e,n)=>t.reduce((t,r)=>{const{x:i,y:o,angle:{prev:s,next:a},arc:{x:l,y:c,radius:h}}=r,u=-1*r.angle.dir,d=s+u*HE/2,f=(u*HE+a-s)%HE,p="LENGTH"===e?Math.round(u*f*h/n):(n||1)-1,g=f/p,m=[];if(!p||!g)return t.concat({x:i,y:o});for(let t=0;t<=p;t++)m.push({x:l+Math.cos(d+g*t)*h,y:c+Math.sin(d+g*t)*h});return t.concat(m)},[]),WE=(t,e=0)=>{const n=t.length,r=[],i=[],o=[];t.forEach((s,a)=>{const l=t[(a-1+n)%n],c=t[(a+1)%n],h=IE(l,s),u=IE(l,c),d=IE(s,c),f=((t,e,n,r,i,o)=>{const s=Math.atan2(t.y-e.y,t.x-e.x),a=Math.atan2(n.y-e.y,n.x-e.x),l=Math.acos((r*r+o*o-i*i)/(2*r*o)),c=1/Math.tan(l/2),h=((t,e)=>{const n=e-t;return n>RE&&n<NE||n<0&&n>-RE?-1:1})(s,a);return{prev:s,next:a,main:l,vel:c,dir:h,bis:s+h*l/2}})(l,s,c,h,u,d);0===f.main&&(f.main=Number.EPSILON,f.vel=Number.MAX_SAFE_INTEGER),f.main===RE&&(f.vel=0);const p={x:s.x,y:s.y,angle:f,offset:0,arc:{radius:e,hit:e,lim:Math.min(d/f.vel,h/f.vel,s.r||0)},in:{length:h,rest:h},out:{length:d,rest:d},locked:!1,id:a,get prev(){return r[(a-1+n)%n]},get next(){return r[(a+1)%n]}};isNaN(f.main)&&(f.main=0,f.bis=f.prev||f.next,o.push(p)),"number"==typeof s.r&&(0===s.r?o.push(p):i.push(p)),r.push(p)}),o.forEach(t=>{t.angle.vel=0,t.arc.radius=0,VE(t)}),r.forEach(t=>{t.arc.hit=Math.min(t.out.rest/(t.angle.vel+t.next.angle.vel),t.in.rest/(t.angle.vel+t.prev.angle.vel))});let s=UE(i);for(;s;)FE(s),s=UE(i);for(s=UE(r);s;)DE(s,e),s=UE(r);const a=r.map(t=>{const e=t.arc.radius/Math.sin(t.angle.main/2);return{id:t.id,x:t.x,y:t.y,angle:{main:TE(t.angle.main),prev:t.angle.prev,next:t.angle.next,bis:t.angle.bis,dir:t.angle.dir},offset:TE(t.offset),arc:{radius:TE(t.arc.radius),x:t.x+(Math.cos(t.angle.bis)*e||0),y:t.y+(Math.sin(t.angle.bis)*e||0)},in:{length:t.in.length,x:t.x+Math.cos(t.angle.prev)*t.offset,y:t.y+Math.sin(t.angle.prev)*t.offset},out:{length:t.out.length,x:t.x+Math.cos(t.angle.next)*t.offset,y:t.y+Math.sin(t.angle.next)*t.offset},get prev(){return a[(t.id-1+n)%n]},get next(){return a[(t.id+1)%n]}}});return a},FE=t=>{const{prev:e,next:n}=t;t.arc.radius=e.locked&&!n.locked?Math.min(Math.max((t.out.length-n.arc.lim*n.angle.vel)/t.angle.vel,t.out.length/(t.angle.vel+n.angle.vel)),t.in.rest/t.angle.vel,t.arc.lim):n.locked&&!e.locked?Math.min(Math.max((t.in.length-e.arc.lim*e.angle.vel)/t.angle.vel,t.in.length/(t.angle.vel+e.angle.vel)),t.out.rest/t.angle.vel,t.arc.lim):n.locked&&e.locked?Math.min(t.in.rest/t.angle.vel,t.out.rest/t.angle.vel,t.arc.lim):Math.min(Math.max((t.in.length-e.arc.lim*e.angle.vel)/t.angle.vel,t.in.length/(t.angle.vel+e.angle.vel)),Math.max((t.out.length-n.arc.lim*n.angle.vel)/t.angle.vel,t.out.length/(t.angle.vel+n.angle.vel)),t.arc.lim),VE(t)},DE=(t,e)=>{if(e>t.arc.hit){const{prev:e,next:n}=t;t.arc.radius=e.locked&&!n.locked?Math.max(Math.min(t.in.rest/t.angle.vel,t.out.length/(t.angle.vel+n.angle.vel),t.arc.radius),0):n.locked&&!e.locked?Math.max(Math.min(t.out.rest/t.angle.vel,t.in.length/(t.angle.vel+e.angle.vel),t.arc.radius),0):n.locked&&e.locked?Math.max(Math.min(t.in.rest/t.angle.vel,t.out.rest/t.angle.vel,t.arc.radius),0):t.arc.hit}VE(t)},VE=t=>{const{prev:e,next:n}=t;t.offset=t.arc.radius*t.angle.vel,e.out.rest-=t.offset,t.in.rest-=t.offset,t.out.rest-=t.offset,n.in.rest-=t.offset,t.locked=!0,e.arc.hit=Math.min(e.in.length/(e.angle.vel+e.prev.angle.vel),e.in.rest/e.angle.vel,e.out.rest/e.angle.vel),n.arc.hit=Math.min(n.out.length/(n.angle.vel+n.next.angle.vel),n.out.rest/n.angle.vel,n.in.rest/n.angle.vel)},UE=t=>t.reduce((t,e)=>e.locked?t:t?e.arc.hit<t.arc.hit?e:t:e,null);zf("sequence-funnel",{component:t=>{const{Title:e,Item:n,data:r,gap:i=10,width:o=700,funnelWidth:s,itemHeight:a=60,minBottomRatio:l=.25,options:c}=t,{title:h,desc:u,items:d=[]}=r,f=e?F(e,{title:h,desc:u}):null;if(0===d.length)return F(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:f});const p=$h(c.themeConfig),g=null!=s?s:.55*o,m=o-g,y=1.25*a,v=d.length*y+(d.length-1)*i,x=g*l,b=d.map((t,e)=>{const o=[e],s=Sh(c,[e])||p.colorPrimary,{points:l,topWidth:h}=function(t,e,n,r,i,o){const s=t/2,a=o*(n+r),l=t-e,c=t-l*(a/i),h=t-l*((a+n)/i);return{points:[{x:s-c/2,y:0},{x:s+c/2,y:0},{x:s+h/2,y:n},{x:s-h/2,y:n}],topWidth:c,bottomWidth:h}}(g,x,y,i,v,e),u=WE(l,6),d=BE(u,"AMOUNT",10),f=g/2,b=e*(y+i),w=f+h/2,_=w-25,M=m+25-10,k=b+(y-a)/2,C=w+15,j=M-25-15,O=k,A=f-16,E=b+y/2-16,S=`${s.replace("#","")}-funnel-${e}`;return{background:F(Z,{x:_,y:k,width:M,height:a,ry:"8",fill:(0,ea.A)(s).setAlpha(.1).toRgbString(),"data-element-type":"shape"}),funnel:[F(U,{children:D("linearGradient",{id:S,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[F("stop",{offset:"0%",stopColor:(0,ea.A)(s).lighten(10).toString()}),F("stop",{offset:"100%",stopColor:s})]})}),F(X,{points:d,fill:`url(#${S})`,y:b,"data-element-type":"shape",style:{filter:"drop-shadow(0px 2px 3px rgba(0,0,0,0.15))"}})],icon:F(hh,{indexes:o,x:A,y:E,size:32,fill:"#fff"}),item:F(n,{indexes:o,datum:t,data:r,x:C,y:O,width:j,height:a,positionV:"middle"}),btnRemove:F(ih,{indexes:o,x:_+M,y:k})}}),w=F(rh,{indexes:[d.length],x:o/2,y:v+10});return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,D(Y,{width:o,height:v+40,children:[F(Y,{children:b.map(t=>t.background)}),F(Y,{children:b.flatMap(t=>t.funnel)}),F(Y,{children:b.map(t=>t.icon)}),F(fh,{children:b.map(t=>t.item)}),D(oh,{children:[b.map(t=>t.btnRemove),w]})]})]})},composites:["title","item"]}),zf("sequence-horizontal-zigzag",{component:t=>{const{Title:e,Item:n,data:r,gap:i=30,cardPadding:o=10,options:s}=t,{title:a,desc:l,items:c=[]}=r,h=e?F(e,{title:a,desc:l}):null,u=Ah(s),d=$h({colorPrimary:u},s),f=Hc(F(rh,{indexes:[0]})),p=Hc(F(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),g=[],m=[],y=[],v=p.width+2*o,x=p.height+2*o+30,b=Math.max(f.height+20,40),w=40;if(c.forEach((t,e)=>{const a=e%2==0,l=e*(v+i);let h;h=a?e%4==2?b:b+w:b+w+60;const _=[e],M=Sh(s,_)||u;if(a){const t=F(Z,{x:l,y:h,width:v,height:x,fill:M===u?d.colorPrimaryBg||"#E8F3FF":`${M}20`,rx:20,ry:20});y.push(t)}m.push(F(n,{indexes:_,datum:t,data:r,x:l+o,y:h+o,positionH:"center",positionV:"normal"}));const k=l+(v-(8*c.length+6*(c.length-1)))/2,C=h+p.height+20;for(let t=0;t<c.length;t++)y.push(F(q,{x:k+14*t,y:C,width:8,height:8,fill:t===e?M:"transparent",stroke:M,strokeWidth:2}));g.push(F(ih,{indexes:_,x:l+(v-f.width)/2,y:h+x+10})),g.push(F(rh,0===e?{indexes:_,x:l+(v-f.width)/2,y:h-f.height-10}:{indexes:_,x:l-i/2-f.width/2,y:b-f.height-10}))}),c.length>0){const t=[],e=35,n=i/2,r=6,o=0-n,a=b+w+x/2;t.push(`M ${o} ${a-r}`),c.forEach((o,s)=>{const a=s%2==0,l=s*(v+i);let c;c=a?s%4==2?b:b+w:b+w+60;const h=l-n,u=l+v+n,d=c-n,f=c+x+n,p=c+x/2;a?(t.push(`L ${h} ${d+e}`),t.push(`Q ${h} ${d} ${h+e} ${d}`),t.push(`L ${u-e} ${d}`),t.push(`Q ${u} ${d} ${u} ${d+e}`),t.push(`L ${u} ${p-r}`)):(t.push(`L ${h} ${p}`),t.push(`L ${h} ${f-e}`),t.push(`Q ${h} ${f} ${h+e} ${f}`),t.push(`L ${u-e} ${f}`),t.push(`Q ${u} ${f} ${u} ${f-e}`),t.push(`L ${u} ${p+r}`))});const l=c.length-1;let h;h=l%2==0?l%4==2?b:b+w:b+w+60;const d=l*(v+i)+v+n,f=h+x/2,p=t.join(" "),g="gradient-zigzag-path",m=Sh(s,[0])||u,_=Sh(s,[c.length-1])||u,M=c.map((t,e)=>F("stop",{offset:e/(c.length-1)*100+"%",stopColor:Sh(s,[e])||u}));y.unshift(D(W,{children:[F(U,{children:F("linearGradient",{id:g,x1:o,y1:a,x2:d,y2:f,gradientUnits:"userSpaceOnUse",children:M})}),F(G,{d:p,stroke:`url(#${g})`,strokeWidth:2,fill:"none",width:(c.length-1)*(v+i)+v+2*n,height:x+120})]})),y.unshift(F(q,{x:o-r,y:a-r,width:2*r,height:2*r,fill:"transparent",stroke:m,strokeWidth:2})),y.unshift(F(q,{x:d-r,y:f-r,width:2*r,height:2*r,fill:"transparent",stroke:_,strokeWidth:2}))}return c.length>0&&g.push(F(rh,{indexes:[c.length],x:(c.length-1)*(v+i)+v+(i-f.width)/2,y:b-f.height-10})),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,D(Y,{children:[F(gh,{children:y}),F(fh,{children:m}),F(oh,{children:g})]})]})},composites:["title","item"]});const qE=350,YE=80,GE=2,XE=2,ZE=40,KE=60;function QE(t){const{width:e,height:n,colorPrimary:r}=t,i=r,o=ea.A.mix(r,"#000",20).toHexString(),s=ea.A.mix(r,"#fff",50).toHexString(),a=ea.A.mix(s,"#000",15).toHexString(),{leftRipples:l,rightRipples:c,leftBottom:h,rightBottom:u,peak:d,centerBottom:f,leftEdge:p,centerSnow:g,rightEdge:m}=function(t,e){const n={x:0,y:e},r={x:t,y:e},i={x:t/2,y:0},o={x:t/2,y:e},s=.35*e,a=s/e,l={x:i.x*(1-a)+n.x*a,y:s},c={x:i.x,y:s},h={x:i.x*(1-a)+r.x*a,y:s},u=[{position:.25,offset:.1},{position:.45,offset:-.02},{position:.6,offset:.04},{position:.75,offset:-.1}].map(t=>({x:l.x+(h.x-l.x)*t.position,y:s+e*t.offset,position:t.position,offset:t.offset}));u.sort((t,e)=>t.position-e.position);const d=u.filter(t=>t.x<=c.x),f=u.filter(t=>t.x>c.x);return{leftBottom:n,rightBottom:r,peak:i,centerBottom:o,snowLineY:s,leftEdge:l,centerSnow:c,rightEdge:h,leftRipples:d,rightRipples:f}}(e,n),y=[d,p,...l,g],v=[d,g,...c,m],x=[p,...l,g,f,h],b=[g,...c,m,u,f],w=t=>t.map(t=>`${t.x},${t.y}`).join(" ");return D(gh,Object.assign({},t,{children:[F("polygon",{points:w(y),fill:s}),F("polygon",{points:w(v),fill:a}),F("polygon",{points:w(x),fill:i}),F("polygon",{points:w(b),fill:o})]}))}function JE(t){const e={tiny:27,small:48,medium:54,large:72}[t]||54,n=.7*e,r=e-n,i=.8*n,o=i/6,s=(i-o)/2,a=n;return D(gh,{width:i,height:e,children:[F("ellipse",{cx:i/2,cy:n/2,rx:i/2,ry:n/2,fill:"#17C76F",clipPath:"inset(0 50% 0 0)"}),F("ellipse",{cx:i/2,cy:n/2,rx:i/2,ry:n/2,fill:"#139B57",clipPath:"inset(0 0 0 50%)"}),F("rect",{x:s,y:a,width:o,height:r,fill:"#737373"})]})}function tS(t){const{width:e,height:n}=t,r=e/2,i=n/2,o=.28*Math.min(e,n),s=.14*Math.min(e,n),a=.07*Math.min(e,n),l=i-a/2,c=.4*a,h=Array.from({length:8},(t,e)=>F("rect",{x:0,y:l,width:s,height:a,rx:c,ry:c,fill:"#FFCB0E",transform:`rotate(${45*e}, ${r}, ${i})`}));return D(gh,Object.assign({},t,{children:[F("circle",{cx:r,cy:i,r:o,fill:"#FFCB0E"}),...h]}))}function eS(t){return"single"===t.type?F(gh,Object.assign({},t,{width:54,height:36,children:F("path",{d:"M10.2635 13.3806C11.0019 9.99045 12.7381 6.91002 15.2405 4.55004C17.743 2.19007 20.8929 0.662716 24.2701 0.171643C27.6473 -0.31943 31.0914 0.24912 34.143 1.80148C37.1946 3.35385 39.7087 5.81625 41.3501 8.86031C44.8835 9.0468 48.1994 10.6544 50.5684 13.3294C52.9373 16.0044 54.1653 19.5277 53.9821 23.1242C53.7989 26.7207 52.2195 30.0959 49.5914 32.5071C46.9634 34.9184 43.5019 36.1683 39.9684 35.9818H11.1517C4.93436 35.9818 0 30.9593 0 24.6309C0.0598447 21.8016 1.13799 19.093 3.02989 17.0192C4.9218 14.9454 7.49584 13.6506 10.2635 13.3806Z",fill:"#70CAF8"})})):D(gh,Object.assign({},t,{width:73,height:40,children:[F("path",{d:"M61.6461 14.9716C60.8681 11.1875 58.9581 7.73823 56.1763 5.09315C53.3944 2.44806 49.8758 0.735682 46.0992 0.189041C42.3226 -0.357601 38.4714 0.288046 35.0699 2.03812C31.6683 3.7882 28.8815 6.5577 27.0889 9.96971C23.161 10.1687 19.4719 11.9405 16.8333 14.8953C14.1947 17.8502 12.8227 21.746 13.0191 25.7258C13.2155 29.7055 14.9642 33.4433 17.8806 36.1167C20.7969 38.7901 24.642 40.1802 28.5699 39.9812H60.6588C67.5702 39.9812 73.0006 34.4791 73.0006 27.4764C73.0006 20.9739 67.8664 15.4718 61.6461 14.9716Z",fill:"#70CAF8"}),F("path",{d:"M21.9691 6.47136e-09C25.9369 6.47136e-09 29.5264 1.62125 32.0003 4.21094C30.0604 5.7917 28.4423 7.75571 27.2581 10C23.3149 10.1989 19.6111 11.9702 16.9622 14.9238C14.3136 17.8774 12.936 21.772 13.1331 25.75C13.2057 27.2131 13.4902 28.6432 13.9652 30H10.7689C7.96116 29.8907 5.29664 28.7203 3.30402 26.7217C1.31144 24.7231 0.135825 22.0419 0.0110544 19.21C-0.113702 16.378 0.821178 13.6017 2.63019 11.4326C4.43921 9.26356 6.99065 7.8602 9.77766 7.5C11.9582 3.00012 16.6168 8.76701e-05 21.9691 6.47136e-09Z",fill:"#5BA2C6"})]}))}zf("sequence-interaction",{component:t=>{var e,n,r,i,o,s,a;const l=Math.random().toString(36).slice(2,9),{Title:c,Item:h,data:u,laneGap:d=qE,nodeGap:f=YE,lifelineWidth:p=GE,arrowWidth:g=XE,showLifeline:m=!0,padding:y=ZE,arrowType:v="triangle",showLaneHeader:x=!0,laneHeaderHeight:b=KE,edgeStyle:w="solid",animated:_=!1,edgeColorMode:M="gradient",options:k}=t,C=$h(k.themeConfig,k),j=null!==(e=null==C?void 0:C.colorText)&&void 0!==e?e:"#333333",O=null!==(n=null==C?void 0:C.colorBg)&&void 0!==n?n:"#ffffff",A=null!==(r=null==C?void 0:C.colorTextSecondary)&&void 0!==r?r:"#e0e0e0",E=u,{title:S,desc:$,items:z=[],relations:P=[]}=E,L=c?F(c,{title:S,desc:$}):null;if(!z||0===z.length){const t=Hc(F(rh,{indexes:[0]}));return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[L,D(Y,{children:[F(oh,{children:F(rh,{indexes:[0],x:-t.width/2,y:-t.height/2})}),F(Pc,{x:0,y:t.height/2+10,width:200,height:40,fontSize:14,alignHorizontal:"center",alignVertical:"middle",fill:null!==(i=null==C?void 0:C.colorTextSecondary)&&void 0!==i?i:"#999",children:"暂无数据"})]})]})}const T=z;let I=0;T.forEach(t=>{var e;null===(e=t.children)||void 0===e||e.forEach((t,e)=>{var n;const r=null!==(n=t.step)&&void 0!==n?n:e;r>I&&(I=r)})});const R=Math.max(1,I+1),N=new Map,H=null===(o=k.design)||void 0===o?void 0:o.item,B=Array.isArray(H)?H[0]:H;let W=null!==(s=null==B?void 0:B.width)&&void 0!==s?s:120,V=null!==(a=null==B?void 0:B.height)&&void 0!==a?a:50;const q=[];if(T.forEach((t,e)=>{var n;null===(n=t.children)||void 0===n||n.forEach((t,n)=>{q.push({datum:t,laneIndex:e,rowIndex:n})})}),(!(null==B?void 0:B.width)||!(null==B?void 0:B.height))&&h&&q.length>0){const t=Hc(F(h,{indexes:[0],datum:q[0].datum,positionH:"center",positionV:"middle"}));t.width>0&&(W=t.width),t.height>0&&(V=t.height)}let X=0;P.forEach(t=>{if(t.label){const e=Hc(F(Pc,{fontSize:14,fontWeight:"normal",children:t.label}));X=Math.max(X,e.width)}});const K=Math.max(d,W+60,W+X+120),Q=x?b:0,J=20+R*V+Math.max(0,R-1)*f,tt=Q+J+2*y+60,et=K*T.length+2*y,nt=t=>y+K/2+t*K,rt=t=>y+Q+20+t*(V+f)+V/2,it=[],ot=[],st=[],at=[];if(x&&T.forEach((t,e)=>{const n=nt(e),r=$h({colorPrimary:Sh(k,[e])},k);h&&(ot.push(F(h,{indexes:[e],datum:{label:t.label,icon:t.icon,desc:t.desc},x:n-W/2,y,width:W,height:b-10,themeColors:r,positionH:"center"})),at.push(F(ih,{indexes:[e],x:n+W/2-10,y:y-10})))}),T.forEach((t,e)=>{var n,r,i,o;null===(n=t.children)||void 0===n||n.forEach((t,n)=>{var r,i;const o=null!==(r=t.step)&&void 0!==r?r:n,s=nt(e),a=rt(o),l=s-W/2,c=a-V/2;N.set(t.id,{x:l,y:c,width:W,height:V,centerX:s,centerY:a,laneIndex:e,rowIndex:o});const d=Sh(k,[e]),f=$h({colorPrimary:d},k),p=[e,n],g=Object.assign(Object.assign({},t),{_originalIndex:p});h?(it.push(F(h,{indexes:p,datum:g,data:u,x:l,y:c,positionH:"center",positionV:"middle",themeColors:f})),at.push(F(ih,{indexes:p,x:l+W/2-10,y:c+V+5}))):(ot.push(F(Z,{x:l,y:c,width:W,height:V,fill:null!==(i=null==f?void 0:f.colorPrimaryBg)&&void 0!==i?i:O,stroke:d,strokeWidth:2,rx:6,"data-element-type":"shape"})),t.label&&ot.push(F(Pc,{x:l,y:c,width:W,height:V,fontSize:14,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:j,children:t.label})))});const s=null!==(i=null===(r=t.children)||void 0===r?void 0:r.length)&&void 0!==i?i:0;let a=-1;null===(o=t.children)||void 0===o||o.forEach((t,e)=>{var n;const r=null!==(n=t.step)&&void 0!==n?n:e;r>a&&(a=r)});const l=a>=0?rt(a):y+Q,c=s>0?l+V/2+20:l+20+10,d=nt(e);at.push(F(rh,{indexes:[e,s],x:d-12,y:c}))}),m){const t=new Map;N.forEach(e=>{let n=t.get(e.laneIndex);n||(n=[],t.set(e.laneIndex,n)),n.push({x:e.x,y:e.y,width:e.width,height:e.height})}),T.forEach((e,n)=>{var r;const i=nt(n),o=y+Q,s=tt-y,a=null!==(r=t.get(n))&&void 0!==r?r:[];let c;if(a.length>0){const t=`lifeline-mask-${l}-${n}`;st.push(D("mask",{id:t,maskUnits:"userSpaceOnUse",x:0,y:0,width:et,height:tt,children:[F(Z,{x:0,y:0,width:et,height:tt,fill:"white"}),a.map(t=>F(Z,{x:t.x,y:t.y-2,width:t.width,height:t.height+4,fill:"black"}))]})),c=`url(#${t})`}ot.push(F(G,{d:`M ${i} ${o} L ${i} ${s}`,stroke:A,strokeWidth:p,strokeDasharray:"5,5",fill:"none","data-element-type":"shape",mask:c})),ot.push(...zh(i,s,Math.PI/2,"triangle",A,1,10))})}const lt=nt(T.length-1)+K/2;at.push(F(rh,{indexes:[T.length],x:T.length>0?lt+20:y,y:y+Q/2-12}));const ct=new Map,ht=new Map,ut=new Map;return P.forEach(t=>{var e;const n=`${t.from}-${t.to}`;ct.has(n)||ct.set(n,[]),null===(e=ct.get(n))||void 0===e||e.push(t);const r=String(t.from),i=String(t.to);r!==i&&(ut.set(r,(ut.get(r)||0)+1),ht.set(i,(ht.get(i)||0)+1))}),P.forEach((t,e)=>{var n,r;const i=String(t.from),o=String(t.to),s=N.get(i),a=N.get(o);if(!s||!a)return;const c=Sh(k,[s.laneIndex])||"#000000",h=Sh(k,[a.laneIndex])||"#000000",u=Ah(k);let d=u||"#999999",f=u||"#999999",p=u||"#999999";const m=`arrow-gradient-${l}-${e}`;"gradient"===M&&(d=`url(#${m})`,f=h,p=c);const{points:y}=((t,e,n,r,i,o,s,a,l)=>{const c=Ph(n),h=Ph(r),u=i.has(`${e}-${t}`),d=0===n.laneIndex;let f=[];if(t===e){const t=d?c.LT:c.RT,e=d?c.LB:c.RB,n=d?-40:40;f=[[t.x,t.y],[t.x+n,t.y],[e.x+n,e.y],[e.x,e.y]]}else if(n.laneIndex===r.laneIndex){const t=d?c.LB:c.RB,e=d?h.LT:h.RT,n=d?-40:40;f=[[t.x,t.y],[t.x+n,t.y],[e.x+n,e.y],[e.x,e.y]]}else{const t=r.centerX>n.centerX,e=r.centerX<n.centerX,i=Math.abs(n.centerY-r.centerY)<1,d=r.centerY>n.centerY,p=r.x>=n.x+n.width;let g,m;if(i?(g=t?c.RC:c.LC,m=t?h.LC:h.RC):u?d?(g=t?c.RB:c.LT,m=t?h.LT:h.RB):(g=t?c.RT:c.LT,m=t?h.LB:h.RB):(m=1===s&&0===l?t?h.LC:h.RC:d?p?h.LT:h.RT:p?h.LB:h.RB,g=1===o&&0===a?t?c.RC:c.LC:t?c.RB:e?c.LB:c.RB),u&&!i){const t=[g.x,g.y],e=[m.x,m.y];f=[t,[(t[0]+e[0])/2,t[1]],e]}else if(u&&i){const t=[g.x,g.y],e=[m.x,m.y],n=(t[1]+e[1])/2,r=30;f=[t,[(t[0]+e[0])/2,t[0]<e[0]?n-r:n+r],e]}else f=[[g.x,g.y],[m.x,m.y]]}return{points:f}})(i,o,s,a,ct,ut.get(i)||0,ht.get(o)||0,ht.get(i)||0,ut.get(o)||0);let x,b=null;if(t.label){const n=((t,e=10)=>{const n=t.length,r=((t,e=.5)=>{const n=t.length;if(4===n){const[n,r,i,o]=t,s=1-e;return[Math.pow(s,3)*n[0]+3*Math.pow(s,2)*e*r[0]+3*s*Math.pow(e,2)*i[0]+Math.pow(e,3)*o[0],Math.pow(s,3)*n[1]+3*Math.pow(s,2)*e*r[1]+3*s*Math.pow(e,2)*i[1]+Math.pow(e,3)*o[1]]}if(3===n){const[n,r,i]=t,o=1-e;return[Math.pow(o,2)*n[0]+2*o*e*r[0]+Math.pow(e,2)*i[0],Math.pow(o,2)*n[1]+2*o*e*r[1]+Math.pow(e,2)*i[1]]}if(2===n){const[n,r]=t;return[n[0]+(r[0]-n[0])*e,n[1]+(r[1]-n[1])*e]}return t[0]||[0,0]})(t);return 4===n&&(r[0]+=e),r})(y);if(n){const r=n[0],i=n[1]-10,o=Hc(F(dh,{indexes:[e],fontSize:14,fontWeight:"normal",children:t.label})),s=r-o.width/2,a=i-o.height/2,c=o.width,h=o.height;x=`edge-mask-${l}-${e}`,st.push(D("mask",{id:x,maskUnits:"userSpaceOnUse",x:0,y:0,width:et,height:tt,children:[F(Z,{x:0,y:0,width:et,height:tt,fill:"white"}),F(Z,{x:s,y:a,width:c,height:h,fill:"black"})]})),b=F(dh,{indexes:[e],x:r-o.width/2,y:i-o.height/2,width:o.width,height:o.height,fontSize:14,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:j,children:t.label})}}const C=(t=>{const e=t.length;if(4===e){const[e,n,r,i]=t;return`M ${e[0]} ${e[1]} C ${n[0]} ${n[1]} ${r[0]} ${r[1]} ${i[0]} ${i[1]}`}if(3===e){const[e,n,r]=t;return`M ${e[0]} ${e[1]} Q ${n[0]} ${n[1]} ${r[0]} ${r[1]}`}if(2===e){const[e,n]=t;return`M ${e[0]} ${e[1]} L ${n[0]} ${n[1]}`}return""})(y);if("gradient"===M){const t=y[0],e=y[y.length-1];st.push(D("linearGradient",{id:m,gradientUnits:"userSpaceOnUse",x1:t[0],y1:t[1],x2:e[0],y2:e[1],children:[F("stop",{offset:"0%",stopColor:c}),F("stop",{offset:"100%",stopColor:h})]}))}ot.push(F(G,{d:C,stroke:d,strokeWidth:g,fill:"none","data-element-type":"shape",mask:x?`url(#${x})`:void 0,strokeDasharray:"solid"===t.lineStyle?void 0:"dashed"===(null!==(n=t.lineStyle)&&void 0!==n?n:w)||_?"5,5":void 0,children:_&&F("animate",{attributeName:"stroke-dashoffset",from:"10",to:"0",dur:"1s",repeatCount:"indefinite"})}));const O=null!==(r=t.direction)&&void 0!==r?r:"forward";[{show:"forward"===O||"both"===O,angle:Lh(y,1),point:y[y.length-1],color:f},{show:"both"===O,angle:Lh(y,0)+Math.PI,point:y[0],color:p}].forEach(e=>{var n;e.show&&ot.push(...zh(e.point[0],e.point[1],e.angle,null!==(n=t.arrowType)&&void 0!==n?n:v,e.color,g,14))}),b&&ot.push(b)}),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c?F(c,{title:S,desc:$}):null,D(Y,{children:[F(Z,{x:0,y:0,width:et,height:tt,fill:"none"}),F(U,{children:st}),F(Y,{children:ot}),F(fh,{children:it}),F(oh,{children:at})]})]})},composites:["title","item"]}),zf("sequence-mountain",{component:t=>{const{Title:e,Item:n,data:r,gap:i=20,minHeight:o=100,maxHeight:s=200,minWidth:a=260,maxWidth:l=300,options:c}=t,{title:h,desc:u,items:d=[]}=r,f=e?F(e,{title:h,desc:u}):null,p=[],g=[],m=[],y=[],v=d.length,x=$h(c.themeConfig),b={single:{width:54,height:36},double:{width:73,height:40}},w=[],_=[];let M=0,k=0;d.forEach((t,e)=>{const n=Math.max(a,Math.min(l,1.6*(o+(s-o)*(v>1?e/(v-1):0))));w.push(n);const r=k;_.push(r),k+=n/2,e===v-1&&(M=r+n)});const C=_[0],j=_[v-1]+w[v-1],O=j-C,A=v>1?(O-i*(v-1))/v:O,E=Hc(F(n,{indexes:[0],data:r,datum:d[0],width:A})),S=s+i,$=S+32+10;d.forEach((t,e)=>{const a=[e],l=o+(s-o)*(v>1?e/(v-1):0),h=w[e],u=_[e],d=s-l,f=Sh(c,[e])||x.colorPrimary;m.push(F(QE,{colorPrimary:f,x:u,y:d,width:h,height:l}));const g=C+e*(A+i);y.push(F(Pc,{x:g,y:S,width:A,height:32,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:f,backgroundColor:f,backgroundOpacity:.5,backgroundRadius:4,children:String(e+1).padStart(2,"0")})),p.push(F(n,{indexes:a,datum:t,data:r,x:g,y:$,width:A}))});const z=Hc(F(rh,{indexes:[0]})),P=$+E.height+10;if(d.forEach((t,e)=>{const n=C+e*(A+i);g.push(F(ih,{indexes:[e],x:n+A/2-z.width/2,y:P})),e<d.length-1&&g.push(F(rh,{indexes:[e+1],x:n+A+i/2-z.width/2,y:P}))}),v>0){g.unshift(F(rh,{indexes:[0],x:C-i/2-z.width/2,y:P})),g.push(F(rh,{indexes:[v],x:C+(v-1)*(A+i)+A+i/2-z.width/2,y:P})),m.push(F(tS,{x:M-60-20,y:-35,width:60,height:60}));const t=["tiny","small","medium","large"],e={tiny:27,small:48,medium:54,large:72},n={tiny:14.85,small:26.4,medium:29.7,large:39.6},r=[],o=(t,e,n=5)=>r.some(r=>!(t+e+n<r.x||t>r.x+r.width+n));d.forEach((i,a)=>{const l=_[a],c=w[a],h=a===v-1?3:0===a?1:2;for(let i=0;i<h;i++){const h=100*a+37*i,u=t[17*h%t.length],d=e[u],f=n[u];let p=0,g=0,y=!1;for(;p<20&&!y;){const t=l+.15*c;g=t+(13*h+19*p)%100/100*(l+.85*c-f-t),o(g,f)||(y=!0),p++}y&&(r.push({x:g,width:f}),m.push(F(Y,{x:g,y:s-d,children:JE(u)})))}});const a=Math.max(1,Math.floor(v/1.5));for(let t=0;t<a;t++){const e=11*t+5*v+1,n=e%2==0?"single":"double",r=b[n];m.push(F(eS,{type:n,x:C+7*e%100/100*(j-C-r.width),y:13*e%40,width:r.width,height:r.height}))}}return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,D(Y,{children:[F(Y,{children:m}),F(Y,{children:y}),F(fh,{children:p}),F(oh,{children:g})]})]})},composites:["title","item"]}),zf("sequence-pyramid",{component:t=>{const{Title:e,Item:n,data:r,gap:i=10,width:o=700,pyramidWidth:s,itemHeight:a=60,options:l}=t,{title:c,desc:h,items:u=[]}=r,d=e?F(e,{title:c,desc:h}):null;if(0===u.length)return F(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:d});const f=$h(l.themeConfig),p=[],g=[],m=[],y=[],v=null!=s?s:.6*o,x=o-v,b=1.2*a,w=u.length*b+(u.length-1)*i;return u.forEach((t,e)=>{const o=[e],s=0===e,c=Sh(l,[e])||f.colorPrimary,{points:h,topWidth:d,bottomWidth:w}=function(t,e,n,r,i){const o=t/2,s=r*e+(r-1)*n,a=i*(e+n),l=a/s*t,c=(a+e)/s*t;let h;return h=0===i?[{x:o,y:0},{x:o+c/2,y:e},{x:o-c/2,y:e}]:[{x:o+l/2,y:0},{x:o+c/2,y:e},{x:o-c/2,y:e},{x:o-l/2,y:0}],{points:h,topWidth:l,bottomWidth:c}}(v,b,i,u.length,e),_=WE(h,5),M=BE(_,"AMOUNT",10),k=v/2,C=e*(b+i),j=C+(b-a)/2,O=k+w/2,A=k+d/2-5,E=x+5,S=k-15,$=C+b/2-15+(s?8:0),z=O,P=A+E-O,L=j;m.push(F(Z,{x:A,y:j,width:E,height:a,ry:"10",fill:f.colorPrimaryBg,"data-element-type":"shape"}));const T=`${c}-pyramid-${e}`;g.push(F(U,{children:D("linearGradient",{id:T,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[F("stop",{offset:"0","stop-color":c}),F("stop",{offset:"100%","stop-color":ea.A.mix(c,"#fff",40).toHexString()})]})}),F(X,{points:M,fill:`url(#${T})`,y:C,"data-element-type":"shape"})),y.push(F(hh,{indexes:o,x:S,y:$,size:30,fill:"#fff"})),p.push(F(n,{indexes:o,datum:t,data:r,x:z,y:L,width:P,height:a,positionV:"middle"}))}),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,D(Y,{width:o,height:w,children:[F(Y,{children:m}),F(Y,{children:g}),F(Y,{children:y}),F(fh,{children:p}),F(oh,{})]})]})},composites:["title","item"]});const nS={iconSize:50,roadWidth:24,outerRadius:60,rowWidth:400,spacing:30,colorDefault:"#666666"},rS=(t,e)=>`M ${t} ${e}`,iS=(t,e)=>`L ${t} ${e}`,oS=(t,e,n,r)=>`A ${t} ${t} 0 0 ${e} ${n} ${r}`,sS=(t,{roadWidth:e,innerRadius:n,outerRadius:r})=>{const i=(e+2*n)*t;return{y1:i,y2:i+e,y3:i+e+n,y4:i+e+2*n,y5:i+2*r}};function aS({i:t,direction:e,x:n,y:r,color:i,data:o,itemBounds:s,item:a,Item:l,flipped:c}){const{iconSize:h}=nS,u="left"===e,d=u?n.x4-h/2:n.x3-h/2,f=r.y3-h/2,p=u?n.x6+nS.spacing:n.x1-nS.spacing-s.width,g=r.y3-s.height/2,m=u?c?"flipped":"normal":c?"normal":"flipped";return{icon:F(uh,{indexes:[t],x:d,y:f,size:h,fill:i}),label:F(Pc,{width:40,x:u?d-50:d+h+10,y:f+h/2-15,fontSize:30,fill:i,alignHorizontal:u?"right":"left",children:String(t+1).padStart(2,"0")}),item:F(l,{indexes:[t],data:o,datum:a,x:p,y:g,positionH:m})}}function lS({direction:t,x:e,y:n,color:r,elements:i}){const o="left"===t;i.push(F(ME,{x:o?e.x6+10:e.x1-20,y:n.y3-5,width:10,height:8,rotation:o?90:-90,colorPrimary:r,"data-element-type":"shape"}))}zf("sequence-roadmap-vertical",{component:t=>{const{Title:e,Item:n,data:r,spacing:i=nS.spacing,options:o,flipped:s=!1}=t,{title:a,desc:l,items:c=[]}=r,h=e?F(e,{title:a,desc:l}):null,u=Hc(F(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),{roadWidth:d,outerRadius:f,rowWidth:p,colorDefault:g}=nS,m=d/2,y=f-d,v=2*(u.width+i)+p,x=u.width+i,b=x+f,w=x+p-f,_=w+y+d,M=x+p/2,k=[],C=[],j=[],O=[],A=[],E=[],S=[];for(let t=0;t<c.length;t++){const e=Sh(o,[t])||g,i=t%2==0?"right":"left",a=0===t,l=t===c.length-1,h=sS(t,{roadWidth:d,innerRadius:y,outerRadius:f});if("right"===i){const t=a?[_,h.y1]:[w,h.y1],e=[b,h.y1],n=[b,h.y5],r=a?[_,h.y2]:[w,h.y2],i=[b,h.y2];if(k.push(a?rS(_,h.y1+m):iS(w,h.y1+m),iS(b,h.y1+m),oS(f-m,0,b,h.y4+m)),C.push(a?rS(...t):iS(...t),iS(...e),oS(f,0,...n)),j.push(iS(...r),iS(...i),oS(y,1,...i)),l){const t=d/2;C.push(iS(M,h.y5),iS(M,h.y5+t),iS(M+d,h.y5-t),iS(M,h.y4-t),iS(M,h.y4),iS(b,h.y4)),k.push(iS(M,h.y4+m))}}else{const t=[b,h.y2],e=[w,h.y2],n=[w,h.y4],r=[b,h.y1],i=[w,h.y1];if(k.push(iS(w,h.y1+m),oS(f-m,1,w,h.y4+m)),C.push(iS(...t),iS(...e),oS(y,1,...n)),j.push(iS(...r),iS(...i),oS(f,0,...i)),l){const t=d/2;C.push(iS(M,h.y4),iS(M,h.y4-t),iS(M-d,h.y4+t),iS(M,h.y5+t),iS(M,h.y5),iS(w,h.y5)),k.push(iS(M,h.y4+m))}}lS({direction:i,x:{x1:x,x4:w,x6:_},y:h,color:e,elements:S});const{icon:p,label:v,item:$}=aS({i:t,direction:i,x:{x1:x,x3:b,x4:w,x6:_},y:h,color:e,data:r,itemBounds:u,item:c[t],Item:n,flipped:s});O.push(p),A.push(v),E.push($)}const $=[...C,...j.reverse(),"Z"],z=c.length*(d+2*y)+1.5*d;return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,D(Y,{width:v,height:u.height<=2*f?z:z+u.height-2*f,children:[F(G,{width:p,height:z,d:$.join(" "),fill:g,stroke:g,strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),F(G,{d:k.join(" "),stroke:"white",fill:"none",strokeWidth:"3",strokeDasharray:"8 8",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),D(W,{children:[O,A,E,S]})]})]})},composites:["title","item"]}),zf("sequence-snake-steps",{component:t=>{const{Title:e,Item:n,data:r,gap:i=40,itemsPerRow:o=3,rowGap:s=80,options:a}=t,{title:l,desc:c,items:h=[]}=r,u=e?F(e,{title:l,desc:c}):null,d=Ah(a),f=Hc(F(rh,{indexes:[0]})),p=Hc(F(n,{indexes:[0],data:r,datum:h[0],positionH:"center"})),g=[],m=[],y=[],v=25;if(h.forEach((t,e)=>{const a=Math.floor(e/o),l=e%o,c=a%2==1,u=(c?o-1-l:l)*(p.width+i),x=a*(p.height+s),b=[e];if(m.push(F(n,{indexes:b,datum:t,data:r,x:u,y:x,positionH:"center"})),g.push(F(ih,{indexes:b,x:u+(p.width-f.width)/2,y:x+p.height+10})),0===e&&g.push(F(rh,{indexes:b,x:u+(p.width-f.width)/2,y:x-f.height-10})),e<h.length-1){const t=Math.floor((e+1)/o),n=(e+1)%o;if(a===t){const r=c?(t%2==1?o-1-n:n)*(p.width+i)+p.width+(i-v)/2:u+p.width+(i-v)/2;y.push(F(wE,{x:r,y:x+p.height/2-12.5,width:v,height:25,colorPrimary:d,rotation:c?180:0})),g.push(F(rh,{indexes:[e+1],x:r+(v-f.width)/2,y:x-f.height-10}))}else{const t=u+p.width/2-12.5,n=x+p.height+(s-25)/2;y.push(F(wE,{x:t,y:n,width:v,height:25,colorPrimary:d,rotation:90})),g.push(F(rh,{indexes:[e+1],x:t+(v-f.width)/2,y:n+(25-f.height)/2}))}}}),h.length>0){const t=h.length-1,e=Math.floor(t/o),n=t%o;g.push(F(rh,{indexes:[h.length],x:(e%2==1?o-1-n:n)*(p.width+i)+(p.width-f.width)/2,y:e*(p.height+s)+p.height+f.height+20}))}return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,D(Y,{children:[F(Y,{children:y}),F(fh,{children:m}),F(oh,{children:g})]})]})},composites:["title","item"]}),zf("sequence-stairs-front",{component:t=>{const{Title:e,Item:n,data:r,options:i,gap:o=16,perspectiveFactor:s=.2,width:a=720}=t,{title:l,desc:c,items:h=[]}=r,u=e?F(e,{title:l,desc:c}):null;if(0===h.length){const t=F(rh,{indexes:[0],x:0,y:0});return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,F(Y,{children:F(oh,{children:t})})]})}const d=Ah(i),f=Hc(F(rh,{indexes:[0]})),p=Hc(F(n,{indexes:[0],data:r,datum:h[0]||{},positionH:"center"})),g=Math.min(.1*a,100),m=Math.min(.45*a,Math.max(80,a-p.width-12-g)),y=Math.max(24,m*s*.35),v=h.length>1?(56-56*.7)/(h.length-1):0,x=Math.max(f.height+y+20,y+28),b=m/2,w=m+g+12,_=h.map((t,e)=>56-v*e),M=h.map((t,e)=>Math.max(y*(1-.05*e),.7*y)),k=[],C=[],j=h.length-1;k[j]=x,C[j]=0;for(let t=j-1;t>=0;t-=1)C[t]=C[t+1]+M[t]+o,k[t]=k[t+1]+M[t]+_[t+1]+o;const O=C[0]||M[0]||y,A=m*(.55+.1*s),E=m-A,S=h.map((t,e)=>A+E*(0===O?1:C[e]/O)),$=S.map(t=>Math.max(0,w-12-(b+t/2))),z=[],P=[],L=[],T=[],I=[],R=(k[0]||x)+(_[0]||56),N=.8*(S[j]||A),H=.65*N,B=.9*(S[0]||m);I.push(F(X,{points:[{x:b,y:0},{x:b+N/2,y:35},{x:b+H/2,y:35},{x:b+B/2,y:R},{x:b-B/2,y:R},{x:b-H/2,y:35},{x:b-N/2,y:35}],fill:"rgba(0,0,0,0.12)",width:B,height:R-0,"data-element-type":"shape"}));let W=k[j]+_[j]/2;return h.forEach((t,e)=>{const o=[e],s=S[e],a=M[e],l=b-s/2,c=_[e],h=k[e],u=h-a,g=h+c/2,m=Sh(i,o)||d;z.push(F(Z,{x:l,y:h,width:s,height:c,fill:m,"data-element-type":"shape"}),F(X,{points:[{x:l,y:h},{x:l+s,y:h},{x:l+s-a/2,y:u},{x:l+a/2,y:u}],fill:m,opacity:"0.3",width:s,height:a,"data-element-type":"shape"}),F(Pc,{x:l,y:h,width:s,height:c,fontSize:c/2,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:"#ffffff",children:String(e+1).padStart(2,"0")}));const y=l+s,v=g,x=$[e],C=y+x;T.push(F(G,{d:`M ${y} ${v} L ${C} ${v}`,stroke:m,strokeWidth:2,fill:"none",width:x,height:2,"data-element-type":"shape"}),F(G,{d:`M ${C} ${v} L ${C} ${v}`,stroke:m,strokeWidth:6,strokeLinecap:"round",width:1,height:1,"data-element-type":"shape"}));const j=g-p.height/2;P.push(F(n,{indexes:o,datum:t,data:r,x:w,y:j,positionV:"middle"})),L.push(F(ih,{indexes:o,x:w+p.width+10,y:j+p.height/2-f.height/2})),L.push(F(rh,0===e?{indexes:[0],x:w+(p.width-f.width)/2,y:j-f.height-12}:{indexes:o,x:w+(p.width-f.width)/2,y:(W+g)/2-f.height/2})),W=g}),L.push(F(rh,{indexes:[h.length],x:w+(p.width-f.width)/2,y:W-p.height/2+p.height+12})),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,D(Y,{children:[F(Y,{children:I}),F(Y,{children:z}),F(Y,{children:T}),F(fh,{children:P}),F(oh,{children:L})]})]})},composites:["title","item"]}),zf("sequence-steps",{component:t=>{const{Title:e,Item:n,data:r,gap:i=40,options:o}=t,{title:s,desc:a,items:l=[]}=r,c=e?F(e,{title:s,desc:a}):null,h=Ah(o),u=Hc(F(rh,{indexes:[0]})),d=Hc(F(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),f=[],p=[],g=[],m=Math.max(u.height+20,30);return l.forEach((t,e)=>{const o=e*(d.width+i),s=[e];p.push(F(n,{indexes:s,datum:t,data:r,x:o,y:m,positionH:"center"})),f.push(F(ih,{indexes:s,x:o+(d.width-u.width)/2,y:m+d.height+10})),f.push(F(rh,0===e?{indexes:s,x:o+(d.width-u.width)/2,y:m-u.height-10}:{indexes:s,x:o-i/2-u.width/2,y:m-u.height-10})),e<l.length-1&&g.push(F(wE,{x:o+d.width+(i-25)/2,y:m+d.height/2-12.5,width:25,height:25,colorPrimary:h}))}),l.length>0&&f.push(F(rh,{indexes:[l.length],x:(l.length-1)*(d.width+i)+d.width+(i-u.width)/2,y:m-u.height-10})),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,D(Y,{children:[F(Y,{children:g}),F(fh,{children:p}),F(oh,{children:f})]})]})},composites:["title","item"]}),zf("sequence-timeline",{component:t=>{const{Title:e,Item:n,data:r,gap:i=10,showStepLabels:o=!0,options:s}=t,{title:a,desc:l,items:c=[]}=r,h=e?F(e,{title:a,desc:l}):null,u=Ah(s),d=Eh(s),f=Hc(F(rh,{indexes:[0]})),p=Hc(F(n,{indexes:[0],data:r,datum:c[0],positionH:"normal"})),g=[],m=[],y=[],v=120;if(c.length>1){const t=p.height/2+6,e=(c.length-1)*(p.height+i)+p.height/2-6,n=`M 90 ${t} L 90 ${e}`,r="gradient-timeline-line",o=e-t,a=c.map((e,n)=>F("stop",{offset:(n*(p.height+i)+p.height/2-t)/o*100+"%",stopColor:Sh(s,[n])||u}));y.push(D(W,{children:[F(U,{children:F("linearGradient",{id:r,x1:90,y1:t,x2:90,y2:e,gradientUnits:"userSpaceOnUse",children:a})}),F(G,{d:n,stroke:`url(#${r})`,strokeWidth:2,width:1,height:e-t})]}))}return c.forEach((t,e)=>{const s=e*(p.height+i),a=s+p.height/2,l=[e];o&&y.push(F(Pc,{x:10,y:a,width:70,fontSize:18,fontWeight:"bold",alignHorizontal:"left",alignVertical:"middle",fill:d[e%d.length],children:`STEP ${e+1}`})),m.push(F(n,{indexes:l,datum:t,data:r,x:v,y:s,positionH:"normal"})),y.push(F(q,{x:84,y:a-6,width:12,height:12,fill:d[e%d.length]})),g.push(F(ih,{indexes:l,x:v-f.width-10,y:s+(p.height-f.height)/2})),g.push(F(rh,0===e?{indexes:l,x:v+(p.width-f.width)/2,y:s-f.height-10}:{indexes:l,x:v+(p.width-f.width)/2,y:s-i/2-f.height/2}))}),c.length>0&&g.push(F(rh,{indexes:[c.length],x:v+(p.width-f.width)/2,y:(c.length-1)*(p.height+i)+p.height+10})),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,D(Y,{children:[F(gh,{children:y}),F(fh,{children:m}),F(oh,{children:g})]})]})},composites:["title","item"]});const cS=D("filter",{id:"sequence-zigzag-pucks-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[F("feOffset",{dx:"-7",dy:"7",in:"SourceAlpha",result:"offset"}),F("feGaussianBlur",{stdDeviation:"7.5",in:"offset",result:"blurred"}),F("feColorMatrix",{in:"blurred",type:"matrix",values:"0 0 0 0 0 \n 0 0 0 0 0 \n 0 0 0 0 0 \n 0 0 0 0.3 0",result:"shadow"}),F("feBlend",{mode:"normal",in:"SourceGraphic",in2:"shadow"})]});zf("sequence-zigzag-pucks-3d",{component:t=>{const{Title:e,Item:n,data:r,options:i,gap:o=80}=t,s=120,{title:a,desc:l,items:c=[]}=r,h=e?F(e,{title:a,desc:l}):null,u=Ah(i);if(0===c.length){const t=F(rh,{indexes:[0],x:0,y:0});return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[F(U,{children:cS}),h,F(Y,{children:F(oh,{children:t})})]})}const d=Hc(F(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),f=Hc(F(rh,{indexes:[0]})),p=[],g=[],m=[];let y=1/0,v=-1/0;const x=d.height+30+108;return c.forEach((t,e)=>{const a=[e],l=Sh(i,a),h=e%2==0,b=e*(s+o),w=h?0:d.height+30;y=Math.min(y,w);const _=`puck-gradient-middle-${e}`,M=`puck-gradient-bottom-${e}`;m.push(D(Y,{x:b,y:w,id:`puck-${e}`,width:s,height:108,filter:"url(#sequence-zigzag-pucks-3d-shadow-filter)",children:[D(U,{children:[D("linearGradient",{id:_,x1:"115",y1:"55.9991",x2:"15.0002",y2:"55.9991",gradientUnits:"userSpaceOnUse",children:[F("stop",{offset:"0",stopColor:l||u}),F("stop",{offset:"1",stopColor:l||u,stopOpacity:"0.6"})]}),D("linearGradient",{id:M,x1:"115",y1:"72.1803",x2:"15.0002",y2:"72.1803",gradientUnits:"userSpaceOnUse",children:[F("stop",{offset:"0",stopColor:"#F4F4FB"}),F("stop",{offset:"1",stopColor:"#8E8C90"})]})]}),D(gh,{width:120,height:108,children:[F(G,{d:"M4.49144e-05 34.4898C4.49144e-05 37.8786 0.848973 41.152 2.43571 44.2444C4.23516 47.7642 6.98514 51.0472 10.517 54.0009C21.331 63.047 39.4615 68.9814 59.9991 68.9814C80.5385 68.9814 98.6672 63.047 109.483 54.0009C113.013 51.0472 115.765 47.7642 117.564 44.2444C119.149 41.152 120 37.8786 120 34.4898C120 15.4407 93.1364 0 59.9991 0C26.8635 0 4.49144e-05 15.4407 4.49144e-05 34.4898Z",fill:l||u}),F(G,{d:"M4.49145e-05 34.4898V53.9991C4.49145e-05 57.3879 0.848973 60.6613 2.43571 63.7556C9.75425 78.0545 32.7562 88.4907 59.999 88.4907C87.2438 88.4907 110.246 78.0545 117.564 63.7556C119.149 60.6613 120 57.3879 120 53.9991V34.4898C120 37.8786 119.149 41.152 117.564 44.2444C115.765 47.7642 113.013 51.0472 109.483 54.0009C98.6672 63.047 80.5385 68.9814 59.999 68.9814C39.4615 68.9814 21.3309 63.047 10.5169 54.0009C6.98509 51.0472 4.23516 47.7642 2.43567 44.2444C0.848928 41.152 4.49145e-05 37.8786 4.49145e-05 34.4898Z",fill:`url(#${_})`}),F(G,{d:"M0 53.9991V73.5102C0 92.5593 26.8634 108 59.999 108C93.1363 108 120 92.5593 120 73.5102V53.9991C120 57.3879 119.149 60.6613 117.564 63.7556C110.246 78.0545 87.2438 88.4907 59.999 88.4907C32.7562 88.4907 9.75425 78.0545 2.43571 63.7556C0.848973 60.6613 0 57.3879 0 53.9991Z",fill:`url(#${M})`}),F("rect",{fill:"transparent",y:108,width:120,height:20})]}),F("text",{x:65,y:40,width:50,height:50,fontSize:40,fontWeight:"bold",fill:"#FFFFFF",textAnchor:"middle",dominantBaseline:"middle",transform:"rotate(-15 65 40) scale(1, 0.8)",children:e+1})]}));const k=b+(s-d.width)/2,C=h?w+108+30:w-30-d.height;v=Math.max(v,C+d.height),g.push(F(n,{indexes:a,datum:t,data:r,x:k,y:C,positionH:"center"})),p.push(F(ih,{indexes:a,x:k+d.width-f.width/2,y:C+d.height-f.height/2})),0===e&&p.push(F(rh,{indexes:[0],x:b+60-f.width/2-(o+s)/2,y:w+54-f.height/2})),p.push(F(rh,e<c.length-1?{indexes:[e+1],x:b+s+o/2-f.width/2,y:(w+54+((e+1)%2==0?0:x)+54)/2-f.height/2}:{indexes:[c.length],x:b+s+o/2-f.width/2,y:w+54-f.height/2}))}),D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[F(U,{children:cS}),h,D(Y,{x:0,y:0,children:[F(Y,{children:m}),F(fh,{children:g}),F(oh,{children:p})]})]})},composites:["title","item"]});const hS=240,uS=130,dS="M132.707 30.4224C142.386 36.0119 142.437 45.0704 132.821 50.6599L87.6795 76.8925C78.0629 82.4807 62.4238 82.4807 52.7445 76.8925L7.30825 50.6599C-2.37126 45.0717 -2.42225 36.0132 7.19414 30.4237L52.335 4.19115C61.9517 -1.39705 77.5908 -1.39705 87.2713 4.19115L132.707 30.4224Z",fS=F("filter",{id:"sequence-zigzag-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:F("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"15",result:"blur"})});zf("sequence-zigzag-steps",{component:t=>{var e;const{Title:n,Item:r,data:i,options:o,dx:s=hS,dy:a=uS,iconSize:l=30}=t,{title:c,desc:h,items:u=[]}=i,d=n?F(n,{title:c,desc:h}):null,f=Ah(o);if(0===u.length){const t=F(rh,{indexes:[0],x:0,y:0});return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[F(U,{children:fS}),d,F(Y,{children:F(oh,{children:t})})]})}const p=Hc(F(r,{indexes:[0],data:i,datum:u[0]})),g=Hc(F(rh,{indexes:[0]})),m=[],y=[],v=[],x=[],b=[];let w=0,_=0,M="",k=1/0,C=-1/0,j=1/0,O=1/0;const A=[];u.forEach((t,e)=>{const n=w,r=_;A.push({x:n,y:r}),k=Math.min(k,r);const i=r-46;j=Math.min(j,n-76),O=Math.min(O,i),e<u.length-1&&(w+=s,_=e%2==0?_+a:_-a)});const E=Math.max(0,-j),S=Math.max(0,-O);if(w=0,_=0,u.forEach((t,e)=>{const n=[e],a=A[e],c=a.x+E,h=a.y+S,d=Sh(o,n),v=Math.max(0,c-76),w=Math.max(0,h-46),{colorPrimaryBg:_}=$h({colorPrimary:d});if(x.push(D(gh,{x:v,y:w,width:140,height:110,children:[F(q,{x:10,y:60,width:120,height:50,fill:d||f,filter:"url(#sequence-zigzag-glow-filter)",opacity:.6}),F(G,{d:"M132.821 50.6599L87.6795 76.8925C78.0629 82.4807 62.4238 82.4807 52.7445 76.8925L7.30824 50.6599C2.43719 47.8482 0.00459679 44.1562 0.0152907 40.472L3.17695e-05 45.6925C-0.0101404 49.378 2.42245 53.0686 7.29298 55.8803L52.7289 82.1129C62.4094 87.7011 78.0485 87.7011 87.6652 82.1129L132.806 55.8803C137.583 53.1038 139.975 49.4705 139.986 45.832L140 40.6116C139.989 44.2501 137.598 47.8834 132.821 50.6599Z",fill:d||f}),F(G,{d:dS,fill:"#fff"}),F(G,{d:dS,fill:_||_})]})),t.icon){const t=Math.max(0,c-l/2-6),e=Math.max(0,h-l/2-6);b.push(F(hh,{x:t,y:e,size:l,indexes:n,fill:d}))}const k=c-p.width/2-6,j=Math.max(0,h+105-6);if(C=Math.max(C,j+p.height),0===e?M=`M ${c} ${h}`:M+=` L ${c} ${h}`,y.push(F(r,{indexes:n,datum:t,data:i,x:k,y:j})),m.push(F(ih,{indexes:n,x:Math.max(0,k+p.width-g.width/2),y:Math.max(0,j+p.height-g.height/2)})),e<u.length-1){const t=A[e+1],n=t.y+S,r=Math.max(0,c+(t.x+E-c)/2-g.width/2),i=Math.max(0,h+(n-h)/2-g.height/2);m.push(F(rh,{indexes:[e+1],x:r,y:i}))}else m.push(F(rh,{indexes:[u.length],x:Math.max(0,k+p.width+s/4),y:Math.max(0,j+p.height/2-g.height/2)}))}),M){const t=((null===(e=A[A.length-1])||void 0===e?void 0:e.x)||0)+E;v.push(F(G,{d:M,stroke:"#f3f2f1",strokeWidth:12,fill:"none",width:t,height:C-Math.min(k+S,0)}))}return D(yh,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[F(U,{children:fS}),d,D(Y,{x:0,y:0,children:[F(Y,{children:[...v,...x,...b]}),F(fh,{children:y}),F(oh,{children:m})]})]})},composites:["title","item"]});var pS=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})};class gS{constructor(t){this.commands=t}apply(t){return pS(this,void 0,void 0,function*(){for(const e of this.commands)yield e.apply(t)})}undo(t){return pS(this,void 0,void 0,function*(){for(let e=this.commands.length-1;e>=0;e--)yield this.commands[e].undo(t)})}serialize(){return{type:"batch",commands:this.commands.map(t=>t.serialize())}}}var mS=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})};class yS{constructor(t,e,n){this.element=t,this.modified=e;const r=function(t,e){const n=Object.keys(e.attributes||{}),r=Sl(t,n,!1),i=t=>{t&&n.forEach(e=>{e in t&&(r[e]=t[e])})},o=Object.assign(Object.assign({},e),{attributes:r});if(rc(t)){const{attributes:e}=Rl(t);i(e)}else if(sc(t)){if(!bc(t))return;i(wc(t))}return o}(t,e);this.original=function(t,e){if(!t)return e;if(!e)return t;const n=Object.assign(Object.assign({},t.attributes||{}),e.attributes||{});return Object.assign(Object.assign(Object.assign({},t),e),{attributes:Object.keys(n).length?n:void 0})}(r,n)}apply(t){return mS(this,void 0,void 0,function*(){vS(this.element,this.modified),t.updateElement(this.element,this.modified)})}undo(t){return mS(this,void 0,void 0,function*(){this.original&&(vS(this.element,this.original),t.updateElement(this.element,this.original))})}serialize(){return{type:"update-element",elementId:this.element.id,modified:this.modified,original:this.original}}}function vS(t,e){rc(t)?Ll(t,e):sc(t)?function(t,e,n){const r=bc(t);r&&(n&&El(r,n),xc(r))}(t,0,e.attributes):e.attributes&&El(t,e.attributes)}var xS=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})};class bS{constructor(t,e){this.options=t,this.original=e}apply(t){return xS(this,void 0,void 0,function*(){if(!this.original){const e=t.getOptions();this.original={},Object.keys(this.options).forEach(t=>{this.original[t]=e[t]})}t.updateOptions(this.options)})}undo(t){return xS(this,void 0,void 0,function*(){this.original&&t.updateOptions(this.original)})}serialize(){return{type:"update-options",options:this.options,original:this.original}}}class wS{constructor(t,e={}){var n;this.clickTimer=null,this.singleClickCallback=null,this.doubleClickCallback=null,this.pointerId=null,this.startX=0,this.startY=0,this.skipClick=!1,this.dragged=!1,this.handlePointerDown=t=>{this.pointerId=t.pointerId,this.startX=t.clientX,this.startY=t.clientY,this.dragged=!1,this.skipClick=!1,window.addEventListener("pointermove",this.handlePointerMove,{passive:!0}),window.addEventListener("pointerup",this.handlePointerUp,{passive:!0}),window.addEventListener("pointercancel",this.handlePointerUp,{passive:!0})},this.handlePointerMove=t=>{null!==this.pointerId&&t.pointerId===this.pointerId&&Math.hypot(t.clientX-this.startX,t.clientY-this.startY)>this.dragThreshold&&(this.skipClick=!0,this.dragged=!0)},this.handlePointerUp=t=>{null!==this.pointerId&&t.pointerId===this.pointerId&&(this.pointerId=null,window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp),this.dragged||(this.skipClick=!1),this.dragged=!1)},this.element=t,this.delay=e.delay||300,this.dragThreshold=null!==(n=e.dragThreshold)&&void 0!==n?n:4,this.init()}init(){this.element.addEventListener("click",this.handleClick.bind(this)),this.element.addEventListener("dblclick",this.handleDoubleClick.bind(this)),this.element.addEventListener("pointerdown",this.handlePointerDown)}handleClick(t){this.skipClick?this.skipClick=!1:(this.clickTimer&&clearTimeout(this.clickTimer),this.clickTimer=window.setTimeout(()=>{var e;null===(e=this.singleClickCallback)||void 0===e||e.call(this,t)},this.delay))}handleDoubleClick(t){var e;this.skipClick?this.skipClick=!1:(this.clickTimer&&clearTimeout(this.clickTimer),null===(e=this.doubleClickCallback)||void 0===e||e.call(this,t))}onClick(t){return this.singleClickCallback=t,this}onDoubleClick(t){return this.doubleClickCallback=t,this}destroy(){this.clickTimer&&clearTimeout(this.clickTimer),this.element.removeEventListener("click",this.handleClick),this.element.removeEventListener("dblclick",this.handleDoubleClick),this.element.removeEventListener("pointerdown",this.handlePointerDown),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}}function _S(t,e,n){return new DOMPoint(e,n).matrixTransform(function(t){var e;return(null===(e=t.getScreenCTM())||void 0===e?void 0:e.inverse())||new DOMMatrix}(t))}function MS(t,e){const n=e.getBoundingClientRect(),r=[{x:n.x,y:n.y},{x:n.x+n.width,y:n.y},{x:n.x,y:n.y+n.height},{x:n.x+n.width,y:n.y+n.height}].map(e=>_S(t,e.x,e.y)),i=Math.min(...r.map(t=>t.x)),o=Math.max(...r.map(t=>t.x)),s=Math.min(...r.map(t=>t.y)),a=Math.max(...r.map(t=>t.y));return new DOMRect(i,s,o-i,a-s)}function kS(t,e){if(0===e.length)return t.items;const n=to(t,e);return null==n?[]:(n.children||(n.children=[]),n.children)}function CS(t,e="data.items"){return t.reduce((t,e,n)=>0===n?`${t}[${e}]`:`${t}.children[${e}]`,e)}function jS(t){var e,n;return(null===(n=null===(e=function(t){return sc(t)?bc(t):t}(t))||void 0===e?void 0:e.dataset.indexes)||void 0===n?void 0:n.split(",").map(Number))||[]}function OS(t){if(!t)return null;const e=[ES];let n=t;for(const t of e){const e=t(n);if(e){n=e;break}}return AS(n)}function AS(t){if(!t)return null;const e=[SS,$S];for(const n of e){const e=n(t);if(e)return e}return(t=>Nl(t,"edit-area"))(t)||rc(t)||sc(t)?t:null}const ES=t=>{var e;const n=t=>!!t&&(tc(t)||ec(t));return n(t)?t.parentElement:n(t.parentElement)?null===(e=t.parentElement)||void 0===e?void 0:e.parentElement:null},SS=t=>function(t){return Hl(t,"SPAN")}(t)&&nc(t.parentElement)?t.parentElement:null,$S=t=>{const e=t.parentElement;return Gl(e)?e:Yl(t)?t:null};function zS(t){if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName.toLowerCase();return"input"===e||"textarea"===e}class PS{constructor(){this.extensions=new Map}register(t,e,n){if(!(null==n?void 0:n.override)&&this.extensions.has(t))throw new Error(`Extension "${t}" already registered`);this.extensions.set(t,e)}get(t){return this.extensions.get(t)}has(t){return this.extensions.has(t)}getAll(){return this.extensions}forEach(t){this.extensions.forEach((e,n)=>{t(e,n)})}[Symbol.iterator](){return this.extensions.entries()}unregister(t){return this.extensions.delete(t)}destroy(){this.extensions.forEach(t=>{t&&"function"==typeof t.dispose&&t.dispose()}),this.extensions.clear()}}const LS=(t,e)=>{var n;if(t.key.toLowerCase()!==e.key)return!1;const r=null!==(n=e.mod)&&void 0!==n&&n,i=t.metaKey,o=t.ctrlKey,s=(t,e)=>void 0===t?!e:t===e;return!(r&&!i&&!o||(r?!s(e.shift,t.shiftKey)||!s(e.alt,t.altKey)||void 0!==e.meta&&!s(e.meta,i)||void 0!==e.ctrl&&!s(e.ctrl,o):!(s(e.meta,i)&&s(e.ctrl,o)&&s(e.shift,t.shiftKey)&&s(e.alt,t.altKey))))};class TS{constructor(t={}){this.bindings=[],this.handleKeydown=t=>{if(t instanceof KeyboardEvent&&!t.defaultPrevented&&!(t=>{if(!t)return!1;if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName.toLowerCase();return"input"===e||"textarea"===e||"select"===e})(t.target)&&(!this.filter||this.filter(t)))for(const e of this.bindings)if(e.combos.some(e=>LS(t,e))){e.handler(t);break}};const{target:e=document,filter:n}=t;this.target=e,this.filter=n,this.target.addEventListener("keydown",this.handleKeydown)}bind(t,e){const n={combos:(Array.isArray(t)?t:[t]).map(t=>(t=>{const e=t.toLowerCase().split("+").map(t=>t.trim()).filter(Boolean),n={key:""};if(e.forEach(t=>{"shift"===t?n.shift=!0:"alt"===t||"option"===t?n.alt=!0:"ctrl"===t||"control"===t?n.ctrl=!0:"meta"===t||"cmd"===t||"command"===t?n.meta=!0:"mod"===t?n.mod=!0:n.key=t}),!n.key)throw new Error(`Invalid hotkey combo: "${t}"`);return n})(t)),handler:e};return this.bindings.push(n),()=>this.unbind(n)}destroy(){this.target.removeEventListener("keydown",this.handleKeydown),this.bindings=[]}unbind(t){this.bindings=this.bindings.filter(e=>e!==t)}}function IS(t){var e=this.__data__=new Ti(t);this.size=e.size}IS.prototype.clear=function(){this.__data__=new Ti,this.size=0},IS.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},IS.prototype.get=function(t){return this.__data__.get(t)},IS.prototype.has=function(t){return this.__data__.has(t)},IS.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Ti){var r=n.__data__;if(!Ii||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Hi(r)}return n.set(t,e),this.size=n.size,this};const RS=IS,NS=function(){try{var t=Ci(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),HS=function(t,e,n){"__proto__"==e&&NS?NS(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var BS=Object.prototype.hasOwnProperty;const WS=function(t,e,n){var r=t[e];BS.call(t,e)&&$i(r,n)&&(void 0!==n||e in t)||HS(t,e,n)},FS=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var a=e[o],l=r?r(n[a],t[a],a,n,t):void 0;void 0===l&&(l=t[a]),i?HS(n,a,l):WS(n,a,l)}return n},DS=function(t){return ui(t)&&"[object Arguments]"==hi(t)};var VS=Object.prototype,US=VS.hasOwnProperty,qS=VS.propertyIsEnumerable,YS=DS(function(){return arguments}())?DS:function(t){return ui(t)&&US.call(t,"callee")&&!qS.call(t,"callee")};const GS=YS;var XS="object"==typeof exports&&exports&&!exports.nodeType&&exports,ZS=XS&&"object"==typeof module&&module&&!module.nodeType&&module,KS=ZS&&ZS.exports===XS?ni.Buffer:void 0;const QS=(KS?KS.isBuffer:void 0)||function(){return!1};var JS=/^(?:0|[1-9]\d*)$/;const t$=function(t,e){var n=typeof t;return!!(e=e??9007199254740991)&&("number"==n||"symbol"!=n&&JS.test(t))&&t>-1&&t%1==0&&t<e},e$=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var n$={};n$["[object Float32Array]"]=n$["[object Float64Array]"]=n$["[object Int8Array]"]=n$["[object Int16Array]"]=n$["[object Int32Array]"]=n$["[object Uint8Array]"]=n$["[object Uint8ClampedArray]"]=n$["[object Uint16Array]"]=n$["[object Uint32Array]"]=!0,n$["[object Arguments]"]=n$["[object Array]"]=n$["[object ArrayBuffer]"]=n$["[object Boolean]"]=n$["[object DataView]"]=n$["[object Date]"]=n$["[object Error]"]=n$["[object Function]"]=n$["[object Map]"]=n$["[object Number]"]=n$["[object Object]"]=n$["[object RegExp]"]=n$["[object Set]"]=n$["[object String]"]=n$["[object WeakMap]"]=!1;const r$=function(t){return function(e){return t(e)}};var i$="object"==typeof exports&&exports&&!exports.nodeType&&exports,o$=i$&&"object"==typeof module&&module&&!module.nodeType&&module,s$=o$&&o$.exports===i$&&ti.process;const a$=function(){try{return o$&&o$.require&&o$.require("util").types||s$&&s$.binding&&s$.binding("util")}catch(t){}}();var l$=a$&&a$.isTypedArray;const c$=l$?r$(l$):function(t){return ui(t)&&e$(t.length)&&!!n$[hi(t)]};var h$=Object.prototype.hasOwnProperty;const u$=function(t,e){var n=Jr(t),r=!n&&GS(t),i=!n&&!r&&QS(t),o=!n&&!r&&!i&&c$(t),s=n||r||i||o,a=s?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],l=a.length;for(var c in t)!e&&!h$.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||t$(c,l))||a.push(c);return a};var d$=Object.prototype;const f$=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||d$)},p$=function(t,e){return function(n){return t(e(n))}},g$=p$(Object.keys,Object);var m$=Object.prototype.hasOwnProperty;const y$=function(t){return null!=t&&e$(t.length)&&!mi(t)},v$=function(t){return y$(t)?u$(t):function(t){if(!f$(t))return g$(t);var e=[];for(var n in Object(t))m$.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)};var x$=Object.prototype.hasOwnProperty;const b$=function(t){if(!gi(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=f$(t),n=[];for(var r in t)("constructor"!=r||!e&&x$.call(t,r))&&n.push(r);return n},w$=function(t){return y$(t)?u$(t,!0):b$(t)};var _$="object"==typeof exports&&exports&&!exports.nodeType&&exports,M$=_$&&"object"==typeof module&&module&&!module.nodeType&&module,k$=M$&&M$.exports===_$?ni.Buffer:void 0,C$=k$?k$.allocUnsafe:void 0;const j$=function(t,e){if(e)return t.slice();var n=t.length,r=C$?C$(n):new t.constructor(n);return t.copy(r),r},O$=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e},A$=function(){return[]};var E$=Object.prototype.propertyIsEnumerable,S$=Object.getOwnPropertySymbols,$$=S$?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}(S$(t),function(e){return E$.call(t,e)}))}:A$;const z$=$$,P$=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t},L$=p$(Object.getPrototypeOf,Object);var T$=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)P$(e,z$(t)),t=L$(t);return e}:A$;const I$=T$,R$=function(t,e,n){var r=e(t);return Jr(t)?r:P$(r,n(t))},N$=function(t){return R$(t,v$,z$)},H$=function(t){return R$(t,w$,I$)},B$=Ci(ni,"DataView"),W$=Ci(ni,"Promise"),F$=Ci(ni,"Set"),D$=Ci(ni,"WeakMap");var V$="[object Map]",U$="[object Promise]",q$="[object Set]",Y$="[object WeakMap]",G$="[object DataView]",X$=wi(B$),Z$=wi(Ii),K$=wi(W$),Q$=wi(F$),J$=wi(D$),tz=hi;(B$&&tz(new B$(new ArrayBuffer(1)))!=G$||Ii&&tz(new Ii)!=V$||W$&&tz(W$.resolve())!=U$||F$&&tz(new F$)!=q$||D$&&tz(new D$)!=Y$)&&(tz=function(t){var e=hi(t),n="[object Object]"==e?t.constructor:void 0,r=n?wi(n):"";if(r)switch(r){case X$:return G$;case Z$:return V$;case K$:return U$;case Q$:return q$;case J$:return Y$}return e});const ez=tz;var nz=Object.prototype.hasOwnProperty;const rz=ni.Uint8Array,iz=function(t){var e=new t.constructor(t.byteLength);return new rz(e).set(new rz(t)),e};var oz=/\w*$/;var sz=ri?ri.prototype:void 0,az=sz?sz.valueOf:void 0;const lz=function(t,e){var n=e?iz(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)},cz=function(t,e,n){var r,i=t.constructor;switch(e){case"[object ArrayBuffer]":return iz(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return function(t,e){var n=e?iz(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return lz(t,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,oz.exec(t));return e.lastIndex=t.lastIndex,e}(t);case"[object Symbol]":return r=t,az?Object(az.call(r)):{}}};var hz=Object.create,uz=function(){function t(){}return function(e){if(!gi(e))return{};if(hz)return hz(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const dz=uz,fz=function(t){return"function"!=typeof t.constructor||f$(t)?{}:dz(L$(t))};var pz=a$&&a$.isMap;const gz=pz?r$(pz):function(t){return ui(t)&&"[object Map]"==ez(t)};var mz=a$&&a$.isSet;const yz=mz?r$(mz):function(t){return ui(t)&&"[object Set]"==ez(t)};var vz="[object Arguments]",xz="[object Function]",bz="[object Object]",wz={};wz[vz]=wz["[object Array]"]=wz["[object ArrayBuffer]"]=wz["[object DataView]"]=wz["[object Boolean]"]=wz["[object Date]"]=wz["[object Float32Array]"]=wz["[object Float64Array]"]=wz["[object Int8Array]"]=wz["[object Int16Array]"]=wz["[object Int32Array]"]=wz["[object Map]"]=wz["[object Number]"]=wz[bz]=wz["[object RegExp]"]=wz["[object Set]"]=wz["[object String]"]=wz["[object Symbol]"]=wz["[object Uint8Array]"]=wz["[object Uint8ClampedArray]"]=wz["[object Uint16Array]"]=wz["[object Uint32Array]"]=!0,wz["[object Error]"]=wz[xz]=wz["[object WeakMap]"]=!1;const _z=function t(e,n,r,i,o,s){var a,l=1&n,c=2&n,h=4&n;if(r&&(a=o?r(e,i,o,s):r(e)),void 0!==a)return a;if(!gi(e))return e;var u=Jr(e);if(u){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&nz.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(e),!l)return O$(e,a)}else{var d=ez(e),f=d==xz||"[object GeneratorFunction]"==d;if(QS(e))return j$(e,l);if(d==bz||d==vz||f&&!o){if(a=c||f?{}:fz(e),!l)return c?function(t,e){return FS(t,I$(t),e)}(e,function(t,e){return t&&FS(e,w$(e),t)}(a,e)):function(t,e){return FS(t,z$(t),e)}(e,function(t,e){return t&&FS(e,v$(e),t)}(a,e))}else{if(!wz[d])return o?e:{};a=cz(e,d,l)}}s||(s=new RS);var p=s.get(e);if(p)return p;s.set(e,a),yz(e)?e.forEach(function(i){a.add(t(i,n,r,i,e,s))}):gz(e)&&e.forEach(function(i,o){a.set(o,t(i,n,r,o,e,s))});var g=u?void 0:(h?c?H$:N$:c?w$:v$)(e);return function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););}(g||e,function(i,o){g&&(i=e[o=i]),WS(a,o,t(i,n,r,o,e,s))}),a},Mz=function(t){return _z(t,5)};var kz=Function.prototype.toString,Cz=Object.prototype.hasOwnProperty,jz=kz.call(Object);const Oz=function(t){if(!ui(t)||"[object Object]"!=hi(t))return!1;var e=L$(t);if(null===e)return!0;var n=Cz.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&kz.call(n)==jz};function Az(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Hi;++e<n;)this.add(t[e])}Az.prototype.add=Az.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Az.prototype.has=function(t){return this.__data__.has(t)};const Ez=Az,Sz=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1},$z=function(t,e){return t.has(e)},zz=function(t,e,n,r,i,o){var s=1&n,a=t.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(t),h=o.get(e);if(c&&h)return c==e&&h==t;var u=-1,d=!0,f=2&n?new Ez:void 0;for(o.set(t,e),o.set(e,t);++u<a;){var p=t[u],g=e[u];if(r)var m=s?r(g,p,u,e,t,o):r(p,g,u,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!Sz(e,function(t,e){if(!$z(f,e)&&(p===t||i(p,t,n,r,o)))return f.push(e)})){d=!1;break}}else if(p!==g&&!i(p,g,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d},Pz=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n},Lz=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n};var Tz=ri?ri.prototype:void 0,Iz=Tz?Tz.valueOf:void 0;var Rz=Object.prototype.hasOwnProperty;var Nz="[object Arguments]",Hz="[object Array]",Bz="[object Object]",Wz=Object.prototype.hasOwnProperty;const Fz=function(t,e,n,r,i,o){var s=Jr(t),a=Jr(e),l=s?Hz:ez(t),c=a?Hz:ez(e),h=(l=l==Nz?Bz:l)==Bz,u=(c=c==Nz?Bz:c)==Bz,d=l==c;if(d&&QS(t)){if(!QS(e))return!1;s=!0,h=!1}if(d&&!h)return o||(o=new RS),s||c$(t)?zz(t,e,n,r,i,o):function(t,e,n,r,i,o,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new rz(t),new rz(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return $i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=Pz;case"[object Set]":if(a||(a=Lz),t.size!=e.size&&!(1&r))return!1;var l=s.get(t);if(l)return l==e;r|=2,s.set(t,e);var c=zz(a(t),a(e),r,i,o,s);return s.delete(t),c;case"[object Symbol]":if(Iz)return Iz.call(t)==Iz.call(e)}return!1}(t,e,l,n,r,i,o);if(!(1&n)){var f=h&&Wz.call(t,"__wrapped__"),p=u&&Wz.call(e,"__wrapped__");if(f||p){var g=f?t.value():t,m=p?e.value():e;return o||(o=new RS),i(g,m,n,r,o)}}return!!d&&(o||(o=new RS),function(t,e,n,r,i,o){var s=1&n,a=N$(t),l=a.length;if(l!=N$(e).length&&!s)return!1;for(var c=l;c--;){var h=a[c];if(!(s?h in e:Rz.call(e,h)))return!1}var u=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var f=!0;o.set(t,e),o.set(e,t);for(var p=s;++c<l;){var g=t[h=a[c]],m=e[h];if(r)var y=s?r(m,g,h,e,t,o):r(g,m,h,t,e,o);if(!(void 0===y?g===m||i(g,m,n,r,o):y)){f=!1;break}p||(p="constructor"==h)}if(f&&!p){var v=t.constructor,x=e.constructor;v==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof x&&x instanceof x||(f=!1)}return o.delete(t),o.delete(e),f}(t,e,n,r,i,o))},Dz=function t(e,n,r,i,o){return e===n||(null==e||null==n||!ui(e)&&!ui(n)?e!=e&&n!=n:Fz(e,n,r,i,t,o))},Vz=function(t,e){return Dz(t,e)};function Uz(t,e,n="",r){const{bubbleUp:i=!1,collector:o}=null!=r?r:{},s=qz(t,e,n,o,i);""===n&&s&&i&&o&&o("",Mz(t),void 0)}function qz(t,e,n,r,i){let o=!1;return Object.keys(e).forEach(s=>{if("__proto__"===s||"constructor"===s||"prototype"===s)return;const a=n?`${n}.${s}`:s,l=e[s],c=t[s];let h=!1;if(void 0===l)s in t&&(delete t[s],null==r||r(a,void 0,c),h=!0);else if(Oz(l)){const e=Oz(t[s]);e||(t[s]={});const n=qz(t[s],l,a,r,i);e?h=n:(h=!0,n||null==r||r(a,t[s],c))}else t[s]=l,Vz(l,c)||(null==r||r(a,l,c),h=!0);h&&(o=!0)}),o&&i&&""!==n&&(null==r||r(n,Mz(t),void 0)),o}function Yz(t){const e=function(t){if(!(null==t?void 0:t.isConnected))return document;const e=t.getRootNode();return e instanceof ShadowRoot?e:document}(t);return e instanceof ShadowRoot?e:document.body}function Gz(t,e){const n="function"==typeof t.composedPath?t.composedPath():[];if(n.length>0)return n.some(t=>t===e||t instanceof Node&&e.contains(t));const r=t.target;return r instanceof Node&&(r===e||e.contains(r))}var Xz=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})};class Zz{constructor(t,e,n){this.element=t,this.originalText=null!=n?n:Tl(t),this.modifiedText=e}apply(t){return Xz(this,void 0,void 0,function*(){this.originalText!==this.modifiedText&&(Il(this.element,this.modifiedText),Kz(t,this.element,this.modifiedText))})}undo(t){return Xz(this,void 0,void 0,function*(){this.originalText!==this.modifiedText&&(Il(this.element,this.originalText),Kz(t,this.element,this.originalText))})}serialize(){return{type:"update-text",elementId:this.element.id,original:this.originalText,modified:this.modifiedText}}}function Kz(t,e,n){const r=cc(e);if(r.startsWith("item-")){const i=r.replace("item-",""),o=jS(e);t.updateItemDatum(o,{[i]:n})}else t.updateData(r,n)}class Qz{init(t){Object.assign(this,t)}}class Jz extends Qz{constructor(){super(...arguments),this.name="brush-select",this.shiftKey=!1,this.dragging=!1,this.dragThreshold=4,this.handleStart=t=>{this.interaction.isActive()&&0===t.button&&(zS(t.target)||this.hasElementAtStart(t.target)||this.interaction.executeExclusiveInteraction(this,()=>function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})}(this,void 0,void 0,function*(){return new Promise(e=>{this.completeInteraction=e;const n=this.editor.getDocument();this.startPoint=_S(n,t.clientX,t.clientY),this.pointerId=t.pointerId,this.shiftKey=t.shiftKey,this.dragging=!1,window.addEventListener("pointermove",this.handleMove),window.addEventListener("pointerup",this.handleEnd)})})))},this.handleMove=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;const e=_S(this.editor.getDocument(),t.clientX,t.clientY);if(!this.dragging){if(Math.hypot(e.x-this.startPoint.x,e.y-this.startPoint.y)<this.dragThreshold)return;this.dragging=!0,this.ensureBrush(),this.updateBrush(this.startPoint,e)}t.preventDefault(),t.stopPropagation(),this.updateBrush(this.startPoint,e)},this.handleEnd=t=>{var e,n;if(t.pointerId!==this.pointerId||!this.startPoint)return;window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd);let r=null;if(this.dragging){t.preventDefault(),t.stopPropagation();const e=_S(this.editor.getDocument(),t.clientX,t.clientY);r=this.updateBrush(this.startPoint,e),this.clearBrush()}this.pointerId=void 0,this.startPoint=void 0,this.dragging=!1;const i=this.shiftKey;if(this.shiftKey=!1,!r)return null===(e=this.completeInteraction)||void 0===e||e.call(this),void(this.completeInteraction=void 0);const o=this.collectSelection(r);null===(n=this.completeInteraction)||void 0===n||n.call(this),this.completeInteraction=void 0,0!==o.length?this.interaction.select(o,i?"add":"replace"):i||this.interaction.clearSelection()}}init(t){super.init(t),this.editor.getDocument().addEventListener("pointerdown",this.handleStart)}destroy(){this.clearBrush(),this.editor.getDocument().removeEventListener("pointerdown",this.handleStart),window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd)}ensureBrush(){return this.brush||(this.brush=this.interaction.appendTransientElement(Ol("rect",{fill:"rgba(51, 132, 245, 0.08)",stroke:"#3384F5","stroke-dasharray":"4 2","stroke-width":1,"pointer-events":"none"}))),this.brush}updateBrush(t,e){if(!this.brush)return null;const n=Math.min(t.x,e.x),r=Math.min(t.y,e.y),i=Math.abs(t.x-e.x),o=Math.abs(t.y-e.y);return El(this.brush,{x:n,y:r,width:i,height:o}),{x:n,y:r,width:i,height:o}}clearBrush(){var t;null===(t=this.brush)||void 0===t||t.remove(),this.brush=void 0}collectSelection(t){const e=this.editor.getDocument(),n=Array.from(e.querySelectorAll("[data-element-type]")),r=new Set;return n.reduce((n,i)=>{const o=AS(i);if(!o||r.has(o))return n;const s=MS(e,o);return((t,e)=>!(t.x+t.width<e.x||e.x+e.width<t.x||t.y+t.height<e.y||e.y+e.height<t.y))(t,{x:s.x,y:s.y,width:s.width,height:s.height})&&(n.push(o),r.add(o)),n},[])}hasElementAtStart(t){var e;return t instanceof Element&&(!!OS(t)||Boolean(null===(e=t.closest)||void 0===e?void 0:e.call(t,"[data-element-type]")))}}class tP extends Qz{constructor(){super(...arguments),this.name="click-select",this.shiftKey=!1,this.onShiftKeyDown=t=>{"Shift"===t.key&&(this.shiftKey=!0)},this.onShiftKeyUp=t=>{"Shift"===t.key&&(this.shiftKey=!1)},this.onEscKeyDown=t=>{"Escape"===t.key&&this.interaction.clearSelection()}}init(t){super.init(t);const{editor:e,interaction:n}=this;this.clickHandler=new wS(e.getDocument(),{delay:0}),this.clickHandler.onClick(t=>{n.isActive()&&n.executeExclusiveInteraction(this,()=>function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})}(this,void 0,void 0,function*(){const e=OS(t.target);ic(e)||(this.shiftKey?e&&(n.isSelected(e)?n.select([e],"remove"):n.select([e],"add")):e?n.select([e],"replace"):n.clearSelection())}))}),document.addEventListener("keydown",this.onShiftKeyDown),document.addEventListener("keyup",this.onShiftKeyUp),document.addEventListener("keydown",this.onEscKeyDown)}destroy(){var t;null===(t=this.clickHandler)||void 0===t||t.destroy(),document.removeEventListener("keydown",this.onShiftKeyDown),document.removeEventListener("keyup",this.onShiftKeyUp),document.removeEventListener("keydown",this.onEscKeyDown)}}class eP extends Qz{constructor(){super(...arguments),this.name="dblclick-edit-text"}init(t){super.init(t);const{editor:e,commander:n,interaction:r}=t;this.clickHandler=new wS(e.getDocument()).onDoubleClick(t=>{r.isActive()&&r.executeExclusiveInteraction(this,()=>function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})}(this,void 0,void 0,function*(){const e=OS(t.target);if(e&&rc(e)){r.select([e],"replace");const i=Tl(e),o=yield new Promise(n=>{const r=this.listenSelectionChange(e);!function(t,e){const n=Pl(t);n&&(function(t){zc(nP,`\n.${rP} {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n background-color: transparent;\n outline: none;\n cursor: text;\n}\n.${rP}::selection {\n background-color: #b3d4fc;\n}\n`,t)}(n),new iP(n,e).start())}(e,{cursorPosition:{clientX:t.clientX,clientY:t.clientY},onBlur:n,onCancel:n}),this.detachSelectionListener=r});n.execute(new Zz(e,o,i))}}))})}destroy(){var t,e;null===(t=this.clickHandler)||void 0===t||t.destroy(),null===(e=this.detachSelectionListener)||void 0===e||e.call(this)}listenSelectionChange(t){const e=({next:e})=>{var n;if(!e.includes(t)){null===(n=this.detachSelectionListener)||void 0===n||n.call(this),this.detachSelectionListener=void 0;const e=Pl(t);e&&e.blur()}};return this.emitter.on("selection:change",e),()=>this.emitter.off("selection:change",e)}}const nP="infographic-inline-text-editor-style",rP="infographic-inline-text-editor";class iP{constructor(t,e){this.entity=t,this.options=e,this.handlePaste=t=>{t.clipboardData&&(t.preventDefault(),this.insertPlainText(t.clipboardData.getData("text/plain")))},this.handleKeydown=t=>{"Enter"!==t.key||t.shiftKey||(t.preventDefault(),this.insertPlainText("\n"))},this.handleInput=()=>{var t,e;this.normalizeSpanContent(),null===(e=null===(t=this.options)||void 0===t?void 0:t.onInput)||void 0===e||e.call(t,this.getText())},this.handleBlur=()=>{var t,e;this.entity.removeAttribute("contenteditable"),this.entity.classList.remove(rP),this.normalizeSpanContent(),null===(e=null===(t=this.options)||void 0===t?void 0:t.onBlur)||void 0===e||e.call(t,this.getText()),this.detachListeners()}}start(){this.entity.setAttribute("contenteditable","true"),this.entity.classList.add(rP),this.entity.focus(),this.placeCaretAtClickPosition(),this.attachListeners()}attachListeners(){this.entity.addEventListener("paste",this.handlePaste),this.entity.addEventListener("keydown",this.handleKeydown),this.entity.addEventListener("input",this.handleInput),this.entity.addEventListener("blur",this.handleBlur,{once:!0})}detachListeners(){this.entity.removeEventListener("paste",this.handlePaste),this.entity.removeEventListener("keydown",this.handleKeydown),this.entity.removeEventListener("input",this.handleInput)}insertPlainText(t){var e,n;const r=window.getSelection();if(!r)return;r.rangeCount||this.placeCaretAtEnd();const i=r.rangeCount?r.getRangeAt(0):document.createRange();i.deleteContents();const o=document.createTextNode(t);i.insertNode(o),i.setStartAfter(o),i.setEndAfter(o),r.removeAllRanges(),r.addRange(i),this.normalizeSpanContent(),null===(n=null===(e=this.options)||void 0===e?void 0:e.onInput)||void 0===n||n.call(e,this.getText())}normalizeSpanContent(){var t;if(1===this.entity.childNodes.length&&(null===(t=this.entity.firstChild)||void 0===t?void 0:t.nodeType)===Node.TEXT_NODE)return;const e=this.getText();this.entity.textContent=e}placeCaretAtClickPosition(){const t=window.getSelection();if(!t)return;const e=this.getRangeFromPoint();if(e)return t.removeAllRanges(),void t.addRange(e);this.placeCaretAtEnd()}getRangeFromPoint(){var t,e;const{cursorPosition:n}=this.options||{};if(!n)return null;const{clientX:r,clientY:i}=n,o=document,s=null!==(e=null===(t=o.caretRangeFromPoint)||void 0===t?void 0:t.call(o,r,i))&&void 0!==e?e:(()=>{var t;const e=null===(t=o.caretPositionFromPoint)||void 0===t?void 0:t.call(o,r,i);if(!e)return null;const n=document.createRange();return n.setStart(e.offsetNode,e.offset),n.collapse(!0),n})();return s&&this.entity.contains(s.startContainer)?s:null}placeCaretAtEnd(){const t=window.getSelection();if(!t)return;const e=document.createRange();e.selectNodeContents(this.entity),e.collapse(!1),t.removeAllRanges(),t.addRange(e)}getText(){return this.entity.textContent||""}}class oP extends Qz{constructor(t){super(),this.name="drag-canvas",this.trigger=["Space"],this.isTriggerPressed=!1,this.isHovering=!1,this.handleKeyDown=t=>{if(!this.interaction.isActive())return;if(zS(t.target))return;const e=t.target,n=e===document.body||e===document.documentElement,r=e===this.document||this.document.contains(e);(n||r)&&this.trigger.includes(t.code)&&(this.isHovering||this.isTriggerPressed)&&(t.preventDefault(),t.stopPropagation(),this.interaction.executeExclusiveInteraction(this,()=>function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})}(this,void 0,void 0,function*(){return new Promise(t=>{this.completeInteraction=t,this.isTriggerPressed=!0;const e=Cc(this.document);this.startViewBoxString=jc(e),this.setCursor("grab"),this.document.addEventListener("pointerdown",this.handlePointerDown),window.addEventListener("keyup",this.handleKeyUp)})})))},this.handlePointerDown=t=>{0===t.button&&(t.preventDefault(),t.stopPropagation(),this.startPoint=_S(this.document,t.clientX,t.clientY),this.pointerId=t.pointerId,this.setCursor("grabbing"),window.addEventListener("pointermove",this.handlePointerMove),window.addEventListener("pointerup",this.handlePointerUp),window.addEventListener("pointercancel",this.handlePointerUp))},this.handlePointerMove=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;t.preventDefault(),t.stopPropagation();const e=this.document,n=_S(e,t.clientX,t.clientY),r=n.x-this.startPoint.x,i=n.y-this.startPoint.y,o=Cc(e),{x:s,y:a,width:l,height:c}=o;this.state.updateOptions({viewBox:jc({x:s-r,y:a-i,width:l,height:c})})},this.handlePointerUp=t=>{t.pointerId===this.pointerId&&(this.startPoint=void 0,this.pointerId=void 0,this.setCursor("grab"),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp))},this.handleKeyUp=t=>{this.trigger.includes(t.code)&&this.stopDrag()},this.stopDrag=()=>{var t;if(this.startViewBoxString){const t=jc(Cc(this.document));if(this.startViewBoxString!==t){const e=new bS({viewBox:t},{viewBox:this.startViewBoxString});this.commander.execute(e)}}this.startViewBoxString=void 0,this.isTriggerPressed=!1,this.setCursor("default"),this.startPoint=void 0,this.pointerId=void 0,window.removeEventListener("keyup",this.handleKeyUp),this.document.removeEventListener("pointerdown",this.handlePointerDown),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp),null===(t=this.completeInteraction)||void 0===t||t.call(this),this.completeInteraction=void 0},this.setCursor=t=>{document.body.style.cursor=t},this.handleBlur=()=>{this.stopDrag()},this.onMouseEnter=()=>{this.isHovering=!0},this.onMouseLeave=()=>{this.isHovering=!1},(null==t?void 0:t.trigger)&&(this.trigger=t.trigger)}init(t){super.init(t),this.document=this.editor.getDocument(),this.document.addEventListener("mouseenter",this.onMouseEnter),this.document.addEventListener("mouseleave",this.onMouseLeave),window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("blur",this.handleBlur)}destroy(){window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("keyup",this.handleKeyUp),this.document.removeEventListener("pointerdown",this.handlePointerDown),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp),window.removeEventListener("blur",this.handleBlur),this.document.removeEventListener("mouseenter",this.onMouseEnter),this.document.removeEventListener("mouseleave",this.onMouseLeave)}}class sP extends Qz{constructor(){super(...arguments),this.name="drag-element",this.selectionForDrag=[],this.willReplaceSelection=!1,this.exclusiveStarted=!1,this.dragItems=[],this.dragging=!1,this.dragThreshold=4,this.handleStart=t=>{if(!this.interaction.isActive())return;if("mouse"===t.pointerType&&0!==t.button)return;const e=OS(t.target);if(!e)return;if(ic(e))return;const n=this.editor.getDocument();this.pointerId=t.pointerId,this.startPoint=_S(n,t.clientX,t.clientY),this.dragging=!1,this.startTarget=e;const r=this.interaction.isSelected(e);this.selectionForDrag=r?this.interaction.getSelection():[e],this.willReplaceSelection=!r,this.exclusiveStarted=!1,this.startBounds=this.getSelectionBounds(this.selectionForDrag),this.guideCandidates=this.collectGuideCandidates(this.selectionForDrag),window.addEventListener("pointermove",this.handleMove),window.addEventListener("pointerup",this.handleEnd),window.addEventListener("pointercancel",this.handleEnd)},this.handleMove=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;const e=_S(this.editor.getDocument(),t.clientX,t.clientY),n=e.x-this.startPoint.x,r=e.y-this.startPoint.y;if(!this.dragging){if(Math.hypot(n,r)<this.dragThreshold)return;if(!this.startDrag())return void this.reset();this.dragging=!0}const i=t.altKey?{dx:n,dy:r}:this.getSnappedDelta(n,r);t.preventDefault(),t.stopPropagation(),this.updateGuides(i),this.applyTranslation(i.dx,i.dy),this.emitGeometryChange()},this.handleEnd=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;this.detachPointerListeners();const e=_S(this.editor.getDocument(),t.clientX,t.clientY),n=e.x-this.startPoint.x,r=e.y-this.startPoint.y;if((this.dragging||Math.hypot(n,r)>=this.dragThreshold)&&this.dragItems.length&&this.exclusiveStarted){t.preventDefault(),t.stopPropagation();const e=t.altKey?{dx:n,dy:r}:this.getSnappedDelta(n,r);this.updateGuides(e),this.applyTranslation(e.dx,e.dy),this.commitTranslation(e.dx,e.dy),this.emitGeometryChange()}this.reset()}}init(t){super.init(t),this.editor.getDocument().addEventListener("pointerdown",this.handleStart)}destroy(){this.detachPointerListeners(),this.editor.getDocument().removeEventListener("pointerdown",this.handleStart)}startDrag(){if(this.exclusiveStarted)return!0;if(!this.startTarget)return!1;if(this.dragItems=this.selectionForDrag.filter(t=>rc(t)).map(t=>this.createDragItem(t)).filter(Boolean),0===this.dragItems.length)return!1;let t=!1;return this.interaction.executeExclusiveInteraction(this,()=>function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})}(this,void 0,void 0,function*(){return new Promise(e=>{this.willReplaceSelection&&this.startTarget&&this.interaction.select([this.startTarget],"replace"),this.completeInteraction=e,t=!0})})),this.exclusiveStarted=t,t}applyTranslation(t,e){this.dragItems.forEach(n=>{if("attr"===n.mode){const r=n.startX+t,i=n.startY+e,o={x:r,y:i};n.hasDataX&&(o["data-x"]=r),n.hasDataY&&(o["data-y"]=i),El(n.element,o)}else{const r=this.composeTransform(n.startX+t,n.startY+e,n.restTransform);El(n.element,{transform:r})}})}commitTranslation(t,e){if(Math.abs(t)<1e-6&&Math.abs(e)<1e-6)return;const n=this.dragItems.map(n=>{if("attr"===n.mode){const r=n.startX+t,i=n.startY+e,o={x:r,y:i},s={};return s.x=n.hasX?n.startX:null,s.y=n.hasY?n.startY:null,n.hasDataX&&(o["data-x"]=r,s["data-x"]=n.startX),n.hasDataY&&(o["data-y"]=i,s["data-y"]=n.startY),new yS(n.element,{attributes:o},{attributes:s})}const r=this.composeTransform(n.startX+t,n.startY+e,n.restTransform);return new yS(n.element,{attributes:{transform:r}},{attributes:{transform:void 0!==n.originalTransform?n.originalTransform:null}})});n.length&&this.commander.executeBatch(n)}createDragItem(t){const e=this.getTransformInfo(t);if(e)return{element:t,mode:"transform",startX:e.x,startY:e.y,hasX:!1,hasY:!1,hasDataX:!1,hasDataY:!1,restTransform:e.rest,originalTransform:e.original};const{x:n,y:r,hasX:i,hasY:o,hasDataX:s,hasDataY:a}=this.getAttrInfo(t);return{element:t,mode:"attr",startX:n,startY:r,hasX:i,hasY:o,hasDataX:s,hasDataY:a}}getAttrInfo(t){const e=this.editor.getDocument(),{x:n,y:r}=MS(e,t),i=Sl(t,["x","y","data-x","data-y"],!1),o=null!=i.x,s=null!=i.y,a=null!=i["data-x"],l=null!=i["data-y"],c=(t,e)=>{const n=null!=t?Number(t):NaN;return Number.isFinite(n)?n:e},h=c(i.x,NaN),u=c(i.y,NaN),d=c(i["data-x"],NaN),f=c(i["data-y"],NaN);return{x:Number.isFinite(h)?h:Number.isFinite(d)?d:n,y:Number.isFinite(u)?u:Number.isFinite(f)?f:r,hasX:o,hasY:s,hasDataX:a,hasDataY:l}}getTransformInfo(t){const e=t.getAttribute("transform");if(null===e)return null;const n=e.match(/translate\(\s*([-\d.]+)(?:[ ,]\s*([-\d.]+))?\s*\)/i);return n?{x:Number(n[1])||0,y:void 0!==n[2]&&Number(n[2])||0,rest:e.replace(n[0],"").trim(),original:e}:{x:0,y:0,rest:e,original:e}}composeTransform(t,e,n){const r=`translate(${t}, ${e})`;return n&&n.length?`${r} ${n}`:r}emitGeometryChange(){var t;const e=null===(t=this.dragItems[0])||void 0===t?void 0:t.element;if(!e)return;const n=MS(this.editor.getDocument(),e);this.emitter.emit("selection:geometrychange",{type:"selection:geometrychange",target:e,rect:n})}detachPointerListeners(){window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd),window.removeEventListener("pointercancel",this.handleEnd)}reset(){var t;this.detachPointerListeners(),this.clearGuides(),this.pointerId=void 0,this.startPoint=void 0,this.dragItems=[],this.startTarget=void 0,this.selectionForDrag=[],this.willReplaceSelection=!1,this.exclusiveStarted=!1,this.dragging=!1,this.startBounds=void 0,this.guideCandidates=void 0,null===(t=this.completeInteraction)||void 0===t||t.call(this),this.completeInteraction=void 0}getSelectionBounds(t){if(!t.length)return;const e=this.editor.getDocument();return Nc(t.map(t=>MS(e,t)))}collectGuideCandidates(t){const e=this.editor.getDocument(),n=new Set(t),r=Array.from(e.querySelectorAll("[data-element-type]")).filter(t=>!n.has(t)),i=[],o=[];return r.forEach(t=>{const{x:n,y:r,width:s,height:a}=MS(e,t);i.push(n,n+s/2,n+s),o.push(r,r+a/2,r+a)}),{vertical:i,horizontal:o}}getSnappedDelta(t,e){if(!this.startBounds||!this.guideCandidates)return{dx:t,dy:e};const n={x:this.startBounds.x+t,y:this.startBounds.y+e,width:this.startBounds.width,height:this.startBounds.height},r=this.getSnapOffset([n.x,n.x+n.width/2,n.x+n.width],this.guideCandidates.vertical),i=this.getSnapOffset([n.y,n.y+n.height/2,n.y+n.height],this.guideCandidates.horizontal);return{dx:t+((null==r?void 0:r.offset)||0),dy:e+((null==i?void 0:i.offset)||0),snapX:r,snapY:i}}getSnapOffset(t,e,n=5){let r=null;return t.forEach(t=>{e.forEach(e=>{const i=e-t;Math.abs(i)<=n&&(!r||Math.abs(i)<Math.abs(r.offset))&&(r={offset:i,at:e})})}),r||void 0}ensureGuideLine(t){const e="vertical"===t?this.guideVertical:this.guideHorizontal;if(e)return e;const n=this.interaction.appendTransientElement(Ol("line",{stroke:"#FF7A45","stroke-width":1,"stroke-dasharray":"4 4","pointer-events":"none",visibility:"hidden"}));return"vertical"===t?this.guideVertical=n:this.guideHorizontal=n,n}updateGuides(t){const e=this.editor.getDocument(),{width:n,height:r}=e.viewBox.baseVal;t.snapX?El(this.ensureGuideLine("vertical"),{x1:t.snapX.at,y1:0,x2:t.snapX.at,y2:r,visibility:"visible"}):this.guideVertical&&this.guideVertical.setAttribute("visibility","hidden"),t.snapY?El(this.ensureGuideLine("horizontal"),{x1:0,y1:t.snapY.at,x2:n,y2:t.snapY.at,visibility:"visible"}):this.guideHorizontal&&this.guideHorizontal.setAttribute("visibility","hidden")}clearGuides(){var t,e;null===(t=this.guideVertical)||void 0===t||t.remove(),null===(e=this.guideHorizontal)||void 0===e||e.remove(),this.guideVertical=void 0,this.guideHorizontal=void 0}}var aP=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})};class lP extends Qz{constructor(){super(...arguments),this.name="hotkey-history",this.handleUndo=t=>aP(this,void 0,void 0,function*(){t.preventDefault(),yield this.commander.undo()}),this.handleRedo=t=>aP(this,void 0,void 0,function*(){t.preventDefault(),yield this.commander.redo()})}init(t){super.init(t),this.hotkey=new TS({filter:()=>this.interaction.isActive()}),this.hotkey.bind("mod+z",this.handleUndo),this.hotkey.bind(["mod+shift+z","mod+y"],this.handleRedo)}destroy(){var t;null===(t=this.hotkey)||void 0===t||t.destroy()}}class cP extends Qz{constructor(){super(...arguments),this.name="select-highlight",this.highlightMasks=[],this.handleSelectionChanged=({next:t})=>{this.highlightSelection(t)},this.handleGeometryChanged=({target:t})=>{this.interaction.isSelected(t)&&this.highlightSelection(this.interaction.getSelection())},this.handleHistoryChanged=()=>{this.highlightSelection(this.interaction.getSelection())}}init(t){super.init(t);const{emitter:e}=t;e.on("selection:change",this.handleSelectionChanged),e.on("selection:geometrychange",this.handleGeometryChanged),e.on("history:change",this.handleHistoryChanged),this.highlightSelection(this.interaction.getSelection())}destroy(){this.clearMasks();const{emitter:t}=this;t.off("selection:change",this.handleSelectionChanged),t.off("selection:geometrychange",this.handleGeometryChanged),t.off("history:change",this.handleHistoryChanged)}highlightSelection(t){1===t.length&&rc(t[0])?this.clearMasks():(this.drawElementMasks(t),this.drawCombinedBoundsMask(t))}drawElementMasks(t){let e=0;for(;e<t.length;e++){const{x:n,y:r,width:i,height:o}=MS(this.editor.getDocument(),t[e]),s={x:n,y:r,width:i,height:o,fill:"none",stroke:"#3384F5","stroke-width":1,"pointer-events":"none"},a=this.highlightMasks[e];a?El(a,s):this.highlightMasks[e]=this.interaction.appendTransientElement(Ol("rect",s))}for(;e<this.highlightMasks.length;e++)this.highlightMasks[e].remove();this.highlightMasks=this.highlightMasks.slice(0,t.length)}drawCombinedBoundsMask(t){var e;if(t.length<2)return null===(e=this.combinedBoundsMask)||void 0===e||e.remove(),void(this.combinedBoundsMask=void 0);const n=Nc(t.map(t=>MS(this.editor.getDocument(),t))),r=Object.assign(Object.assign({},n),{fill:"none",stroke:"#3384F5","stroke-width":2,"pointer-events":"none"});this.combinedBoundsMask?El(this.combinedBoundsMask,r):this.combinedBoundsMask=this.interaction.appendTransientElement(Ol("rect",r))}clearMasks(){var t;this.highlightMasks.forEach(t=>t.remove()),this.highlightMasks=[],null===(t=this.combinedBoundsMask)||void 0===t||t.remove(),this.combinedBoundsMask=void 0}}var hP=Math.max,uP=Math.min;var dP=/\s/;var fP=/^\s+/;const pP=function(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&dP.test(t.charAt(e)););return e}(t)+1).replace(fP,""):t};var gP=/^[-+]0x[0-9a-f]+$/i,mP=/^0b[01]+$/i,yP=/^0o[0-7]+$/i,vP=parseInt;const xP=function(t){if("number"==typeof t)return t;if(di(t))return NaN;if(gi(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=gi(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=pP(t);var n=mP.test(t);return n||yP.test(t)?vP(t.slice(2),n?2:8):gP.test(t)?NaN:+t};var bP=1/0;const wP=function(t){return t?(t=xP(t))===bP||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},_P=function(t,e,n){return e=wP(e),void 0===n?(n=e,e=0):n=wP(n),function(t,e,n){return t>=uP(e,n)&&t<hP(e,n)}(t=xP(t),e,n)};class MP extends Qz{constructor(t){super(),this.name="zoom-wheel",this.minViewBoxSize=20,this.maxViewBoxSize=2e4,this.initialViewBox=null,this.handleKeyUp=t=>{if(!(t.ctrlKey||t.metaKey||t.shiftKey)&&this.initialViewBox){const t=jc(Cc(this.editor.getDocument()));if(t!==this.initialViewBox){const e=new bS({viewBox:t},{viewBox:this.initialViewBox});this.commander.execute(e)}this.initialViewBox=null,document.removeEventListener("keyup",this.handleKeyUp)}},this.wheelListener=t=>{if(!this.shouldZoom(t))return;t.preventDefault();const e=t.deltaY<0?1/1.1:1.1,n=this.editor.getDocument(),r=Cc(n),{width:i,height:o}=r,s=o*e;if(!_P(i*e,this.minViewBoxSize,this.maxViewBoxSize)||!_P(s,this.minViewBoxSize,this.maxViewBoxSize))return;null===this.initialViewBox&&(this.initialViewBox=jc(r),document.addEventListener("keyup",this.handleKeyUp));const a=function(t,e,n){return{x:n.x-(n.x-t.x)*e,y:n.y-(n.y-t.y)*e,width:t.width*e,height:t.height*e}}(r,e,!t.ctrlKey&&!t.metaKey||t.shiftKey?this.getCenterPoint(r):this.getMousePoint(n,t));this.state.updateOptions({viewBox:jc(a)})},this.getMousePoint=(t,e)=>_S(t,e.clientX,e.clientY),this.getCenterPoint=t=>({x:t.x+t.width/2,y:t.y+t.height/2}),this.shouldZoom=t=>{if(!this.interaction.isActive())return!1;if(0===t.deltaY)return!1;const e=t.ctrlKey||t.metaKey,n=t.shiftKey;return(!e||!n)&&(e||n)},void 0!==(null==t?void 0:t.minViewBoxSize)&&(this.minViewBoxSize=t.minViewBoxSize),void 0!==(null==t?void 0:t.maxViewBoxSize)&&(this.maxViewBoxSize=t.maxViewBoxSize)}init(t){super.init(t),document.addEventListener("wheel",this.wheelListener,{passive:!1})}destroy(){document.removeEventListener("wheel",this.wheelListener),document.removeEventListener("keyup",this.handleKeyUp)}}class kP{init(t){Object.assign(this,t)}}class CP extends kP{constructor(){super(...arguments),this.name="core-sync",this.unregisters=[]}init(t){super.init(t);const e=this.editor.getDocument();this.unregisters.push(this.editor.registerSync("viewBox",t=>{t?e.setAttribute("viewBox",t):e.removeAttribute("viewBox")},{immediate:!0})),this.unregisters.push(this.editor.registerSync("padding",t=>{void 0!==t&&Ac(e,Oc(t))},{immediate:!0}))}destroy(){this.unregisters.forEach(t=>t())}}const jP=({icon:t,onClick:e,activate:n=!1,root:r})=>{zc(AP,`\n.${OP} {\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n font-size: 12px;\n color: #000000d9;\n border: none;\n border-radius: 6px;\n background-color: #fff;\n cursor: pointer;\n transition: color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;\n}\n.${OP}:hover {\n background-color: #f5f5f5;\n}\n.${OP}:active {\n background-color: #d9d9d9;\n}\n.${OP}[data-activate="true"] {\n background-color: #d9d9d9;\n}\n`,r);const i=document.createElement("button");i.type="button",i.classList.add(OP),n&&i.setAttribute("data-activate","true"),e&&i.addEventListener("click",e);const o=t();return i.appendChild(o),Object.assign(i,{setActivate:(t=>{t?i.setAttribute("data-activate","true"):i.removeAttribute("data-activate")}).bind(i),activate:n})},OP="infographic-edit-bar-icon-btn",AP="infographic-edit-bar-icon-btn-style",EP="infographic-color-picker",SP=`${EP}__swatches`,$P=`${EP}__swatch`,zP=`${EP}__controls`,PP=`${EP}__input`,LP=`${EP}__format`,TP=`${EP}__format-switch`,IP=`${EP}__format-switch-knob`,RP=`${EP}__format-switch-label`,NP=["#000000","#1f1f1f","#434343","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#f0f0f0","#ffffff","#1677ff","#2f54eb","#91caff","#13c2c2","#36cfc9","#52c41a","#73d13d","#fadb14","#ffd666","#fa8c16","#fa541c","#f5222d","#ff7875","#eb2f96","#ffadd2","#722ed1","#9254de","rgba(0, 0, 0, 0.65)","rgba(255, 255, 255, 0.85)"];function HP(t){var e,n,r;if("undefined"==typeof document)throw new Error("ColorPicker can only be used in the browser.");zc("infographic-color-picker-style",`\n.${EP} {\n width: 240px;\n padding: 10px;\n box-sizing: border-box;\n}\n.${SP} {\n display: grid;\n grid-template-columns: repeat(auto-fit, 26px);\n gap: 6px;\n margin-bottom: 10px;\n}\n.${$P} {\n width: 24px;\n height: 24px;\n border-radius: 50%;\n border: 1px solid rgba(0, 0, 0, 0.06);\n background: var(--swatch-color);\n cursor: pointer;\n padding: 0;\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);\n transition: transform 0.15s ease, box-shadow 0.15s ease;\n}\n.${$P}[data-active="true"] {\n box-shadow: 0 0 0 2px #1677ff;\n transform: translateY(-1px);\n}\n.${$P}:hover {\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);\n}\n.${zP} {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n.${PP} {\n flex: 1;\n min-width: 0;\n height: 30px;\n padding: 2px 6px;\n border: 1px solid #d9d9d9;\n border-radius: 6px;\n background: #f5f5f5;\n color: #262626;\n font-size: 12px;\n font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Monaco, Consolas,\n "Liberation Mono", "Courier New", monospace;\n box-sizing: border-box;\n outline: none;\n transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;\n}\n.${PP}:focus {\n border-color: #1677ff;\n background: #ffffff;\n box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);\n}\n.${PP}[data-invalid="true"] {\n border-color: #ff4d4f;\n box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.12);\n}\n.${LP} {\n display: inline-flex;\n}\n.${TP} {\n position: relative;\n display: grid;\n grid-template-columns: 1fr 1fr;\n align-items: center;\n width: 110px;\n height: 30px;\n padding: 0;\n border: 1px solid #d9d9d9;\n border-radius: 6px;\n background: #f5f5f5;\n cursor: pointer;\n overflow: hidden;\n transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;\n}\n.${TP}:hover {\n background: #ededed;\n}\n.${TP}:focus-visible {\n outline: none;\n border-color: #1677ff;\n box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);\n}\n.${IP} {\n position: absolute;\n inset: 0;\n width: 50%;\n background: #1677ff;\n border-radius: 6px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);\n transition: transform 0.2s ease;\n}\n.${TP}[data-format="rgba"] .${IP} {\n transform: translateX(100%);\n}\n.${RP} {\n position: relative;\n z-index: 1;\n text-align: center;\n font-size: 12px;\n color: #434343;\n user-select: none;\n}\n.${TP}[data-format="hexa"] .${RP}:first-child,\n.${TP}[data-format="rgba"] .${RP}:last-child {\n color: #ffffff;\n}\n`,t.root);const i=document.createElement("div");i.classList.add(EP);const o=document.createElement("div");o.classList.add(SP),i.appendChild(o);const s=document.createElement("div");s.classList.add(zP),i.appendChild(s);const a=document.createElement("input");a.type="text",a.spellcheck=!1,a.classList.add(PP),s.appendChild(a);const l=document.createElement("div");l.classList.add(LP),s.appendChild(l);const c=document.createElement("button");c.type="button",c.classList.add(TP),c.appendChild(YP("HEXA"));const h=document.createElement("span");h.classList.add(IP),c.appendChild(h),c.appendChild(YP("RGBA")),l.appendChild(c);let u="hexa",d=null!==(n=null!==(e=BP(t.value))&&void 0!==e?e:BP("#1f1f1f"))&&void 0!==n?n:{r:31,g:31,b:31,a:1};const f=[];((null===(r=t.swatches)||void 0===r?void 0:r.length)?t.swatches:NP).forEach(t=>{const e=BP(t);if(!e)return;const n=document.createElement("button");n.type="button",n.classList.add($P),n.style.setProperty("--swatch-color",WP(e,"rgba")),n.dataset.colorKey=DP(e),n.addEventListener("click",()=>{m(e)}),o.appendChild(n),f.push(n)}),c.addEventListener("click",()=>function(e){var n;u!==e&&(u=e,y(),null===(n=t.onChange)||void 0===n||n.call(t,WP(d,u)))}("hexa"===u?"rgba":"hexa")),a.addEventListener("change",g),a.addEventListener("keydown",t=>{"Enter"===t.key&&g()}),y();const p={setValue:t=>{const e=BP(t);e?(a.removeAttribute("data-invalid"),m(e,!1)):a.setAttribute("data-invalid","true")},destroy:()=>{i.remove()}};return Object.assign(i,p);function g(){const t=BP(a.value);t?(a.removeAttribute("data-invalid"),m(t)):a.setAttribute("data-invalid","true")}function m(e,n=!0){var r;!function(t,e){return t.r===e.r&&t.g===e.g&&t.b===e.b&&t.a===e.a}(d,e)?(d=e,y(),n&&(null===(r=t.onChange)||void 0===r||r.call(t,WP(d,u)))):y()}function y(){a.value=WP(d,u),function(){const t=DP(d);f.forEach(e=>{e.dataset.colorKey===t?e.setAttribute("data-active","true"):e.removeAttribute("data-active")})}(),c.setAttribute("data-format","rgba"===u?"rgba":"hexa")}}function BP(t){var e;if(!t)return;const n=Lt(t);if(!n||"number"!=typeof n.r)return;const r=n;return{r:UP(r.r),g:UP(r.g),b:UP(r.b),a:VP(null!==(e=r.alpha)&&void 0!==e?e:1)}}function WP(t,e){return"rgba"===e?function(t){const e=function(t){const e=Math.round(100*VP(t))/100;return 1===e?"1":0===e?"0":e.toString()}(t.a);return`rgba(${t.r}, ${t.g}, ${t.b}, ${e})`}(t):FP(t)}function FP(t){return`#${qP(t.r)}${qP(t.g)}${qP(t.b)}${t.a<1?qP(Math.round(255*t.a)):""}`}function DP(t){return FP(t).toLowerCase()}function VP(t){return Number.isNaN(t)?0:Math.min(1,Math.max(0,t))}function UP(t){return Number.isNaN(t)?0:Math.round(Math.min(255,Math.max(0,t<=1?255*t:t)))}function qP(t){return t.toString(16).padStart(2,"0")}function YP(t){const e=document.createElement("span");return e.textContent=t,e.classList.add(RP),e}const GP=(t,{viewBox:e="0 0 1024 1024",size:n="1.5em"}={})=>({fill:r="currentColor"}={})=>{const i=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="${e}" width="${n}" height="${n}" fill="${r}">\n${t.trim()}\n</svg>`;return document.createRange().createContextualFragment(i).firstElementChild},XP={fontFamily:GP('<path d="M236.992 938.688H145.088L469.312 128h85.376l324.224 810.688h-91.904l-102.4-256H339.392l-102.4 256z m136.512-341.376h276.992L512 251.072l-138.496 346.24z"></path>',{size:"1.2em"}),fontSize:GP('<path d="M479.829333 640H202.837333l-85.333333 213.333333H25.6L298.666667 170.666667h85.333333l273.066667 682.666666h-91.904l-85.333334-213.333333z m-34.133333-85.333333L341.333333 293.76 236.970667 554.666667h208.725333zM896 534.826667V512h85.333333v341.333333h-85.333333v-22.826666a170.666667 170.666667 0 1 1 0-295.68zM810.666667 768a85.333333 85.333333 0 1 0 0-170.666667 85.333333 85.333333 0 0 0 0 170.666667z"></path>',{size:"1.2em"}),align:GP('<path d="M832 96c53.02 0 96 42.98 96 96v640c0 53.02-42.98 96-96 96H192c-53.02 0-96-42.98-96-96V192c0-53.02 42.98-96 96-96z m0 64H192c-17.673 0-32 14.327-32 32v640c0 17.673 14.327 32 32 32h640c17.673 0 32-14.327 32-32V192c0-17.673-14.327-32-32-32zM725.333 672c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z m0-192c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z m0-192c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z"></path>'),alignTop:GP('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-121.533c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM512.45 91.003L512 91a32.632 32.632 0 0 1 1.653 0.042l0.134 0.008c3.447 0.189 6.75 0.924 9.82 2.12l0.198 0.078a16.118 16.118 0 0 1 0.485 0.197l0.11 0.046a31.82 31.82 0 0 1 8.546 5.315l0.12 0.105a31.066 31.066 0 0 1 1.189 1.095l0.08 0.078 0.235 0.23 0.062 0.063 128 128.055c12.494 12.5 12.49 32.761-0.01 45.255-12.374 12.37-32.356 12.489-44.877 0.362l-0.377-0.372L544 200.28v413.598c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.996-31.471l-0.004-0.53V200.278l-73.368 73.4c-12.369 12.375-32.35 12.503-44.877 0.381l-0.378-0.37c-12.374-12.37-12.502-32.352-0.38-44.878l0.37-0.378 128-128.055 0.181-0.178a31.875 31.875 0 0 1 9.5-6.47l0.105-0.046c0.116-0.051 0.233-0.101 0.35-0.15 0.054-0.024 0.11-0.047 0.165-0.07a28.198 28.198 0 0 1 0.536-0.219l0.157-0.061a31.816 31.816 0 0 1 9.356-2.103l0.113-0.007c0.147-0.01 0.294-0.02 0.442-0.027l0.028-0.001 0.39-0.019 0.144-0.005a23.911 23.911 0 0 1 0.712-0.018c0.3-0.004 0.602-0.004 0.904 0z"></path>'),alignRight:GP('<path d="M896 800.339c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H298.667c-17.673 0-32-14.327-32-32 0-17.497 14.041-31.713 31.47-31.996l0.53-0.004H896z m0-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004H896z m0-213.226c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignBottom:GP('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-121.533c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM490.505 637.584l-0.127-0.117a32.174 32.174 0 0 1-0.633-0.596l-0.098-0.096-0.217-0.213-0.062-0.063-128-128.055c-12.494-12.499-12.49-32.76 0.01-45.254 12.374-12.37 32.356-12.489 44.877-0.362l0.377 0.371L480 536.598V123c0-17.673 14.327-32 32-32 17.496 0 31.713 14.042 31.996 31.47l0.004 0.53v413.597l73.368-73.398c12.494-12.5 32.755-12.503 45.255-0.01 12.374 12.37 12.502 32.352 0.38 44.878l-0.37 0.377-128 128.055c-0.121 0.12-0.238 0.236-0.356 0.35l0.355-0.35a31.922 31.922 0 0 1-9.68 6.649l-0.09 0.039a29.917 29.917 0 0 1-1.241 0.514 31.816 31.816 0 0 1-9.338 2.095l-0.113 0.008c-0.147 0.01-0.294 0.019-0.442 0.027h-0.028c-0.13 0.008-0.26 0.014-0.39 0.02l-0.144 0.005a23.92 23.92 0 0 1-0.796 0.019 33.927 33.927 0 0 1-0.37 0.002h-0.13l-0.236-0.002 0.366 0.002a32.633 32.633 0 0 1-1.153-0.02l-0.129-0.006a31.108 31.108 0 0 1-0.876-0.046l-0.105-0.008a31.811 31.811 0 0 1-8.926-1.931l-0.089-0.034a21.022 21.022 0 0 1-0.362-0.138l-0.098-0.04a22.132 22.132 0 0 1-0.746-0.304l-0.219-0.093-0.209-0.092a31.812 31.812 0 0 1-8.034-5.094l-0.12-0.105-0.173-0.153-0.151-0.136-0.105-0.093z"></path>'),alignLeft:GP('<path d="M725.333 800.339c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h597.333zM896 587.113c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768zM725.333 373.887c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h597.333zM896 160.661c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignCenter:GP('<path d="M768 800.339c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H256c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h512z m128-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768zM768 373.887c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H256c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h512z m128-213.226c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignMiddle:GP('<path d="M534.246 617.448l0.377 0.371 128 127.952c12.5 12.494 12.503 32.755 0.009 45.255-12.37 12.374-32.352 12.501-44.878 0.38l-0.377-0.372-73.38-73.352V939c0 17.673-14.326 32-32 32-17.496 0-31.712-14.042-31.995-31.47l-0.004-0.53-0.001-221.314-73.374 73.348c-12.374 12.37-32.356 12.49-44.878 0.363l-0.377-0.371c-12.37-12.375-12.49-32.356-0.362-44.878l0.37-0.377 128-127.952c12.372-12.366 32.347-12.49 44.87-0.37zM896 480.508c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM511.998 54c17.496 0 31.713 14.042 31.996 31.47l0.004 0.53-0.001 221.314 73.38-73.349c12.499-12.494 32.76-12.49 45.255 0.009 12.37 12.374 12.49 32.356 0.362 44.878l-0.37 0.377-128 127.951c-12.372 12.366-32.347 12.49-44.87 0.371l-0.377-0.37-128-127.952c-12.5-12.495-12.503-32.756-0.009-45.255 12.37-12.374 32.352-12.502 44.878-0.38l0.377 0.371 73.374 73.346V86c0-17.673 14.328-32 32-32z"></path>')},ZP=GP('<path d="M502.714987 58.258904l-126.531056-54.617723a52.797131 52.797131 0 0 0-41.873587 96.855428A447.865322 447.865322 0 0 0 392.02307 946.707184a61.535967 61.535967 0 0 0 13.83649 1.820591 52.797131 52.797131 0 0 0 13.65443-103.773672 342.453118 342.453118 0 0 1-31.678278-651.771485l-8.374718 19.480321a52.615072 52.615072 0 0 0 27.855039 69.182448 51.522718 51.522718 0 0 0 20.572675 4.369418A52.797131 52.797131 0 0 0 476.498481 254.882703L530.205907 127.441352a52.979191 52.979191 0 0 0-27.49092-69.182448zM962.960326 509.765407A448.775617 448.775617 0 0 0 643.992829 68.090094a52.797131 52.797131 0 1 0-30.403866 101.042786A342.635177 342.635177 0 0 1 674.578753 801.059925a52.615072 52.615072 0 0 0-92.30395-50.612422l-71.913335 117.246043a52.433013 52.433013 0 0 0 17.295612 72.82363l117.063985 72.823629a52.797131 52.797131 0 1 0 54.617722-89.755123l-16.021198-10.013249A448.593558 448.593558 0 0 0 962.960326 509.765407z" p-id="1630"/>'),KP={align:GP('<path d="M555.188 715.059c17.673 0 32 14.327 32 32V875c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V747.059c0-17.673 14.327-32 32-32z m-32.001 63.999H203V843h320.187v-63.942zM854 416.529c17.673 0 32 14.327 32 32v127.942c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V448.529c0-17.673 14.327-32 32-32z m-32 64H203v63.941h619v-63.941zM683.25 118c17.673 0 32 14.327 32 32v127.941c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V150c0-17.673 14.327-32 32-32z m-32 64H203v63.941h448.25V182z"></path>'),alignTop:GP('\n <path d="M661.333 272.411c17.673 0 32 14.327 32 32V902c0 17.673-14.327 32-32 32H362.667c-17.673 0-32-14.327-32-32V304.411c0-17.673 14.327-32 32-32z m-32 63.999H394.666V870h234.667V336.41zM896 101.671c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z" />'),alignRight:GP('<path d="M891.329 96c17.496 0 31.713 14.042 31.995 31.47l0.005 0.53v768c0 17.673-14.327 32-32 32-17.497 0-31.713-14.042-31.996-31.47l-0.004-0.53V128c0-17.673 14.327-32 32-32z m-170.74 234.667c17.673 0 32 14.327 32 32v298.666c0 17.673-14.327 32-32 32H123c-17.673 0-32-14.327-32-32V362.667c0-17.673 14.327-32 32-32z m-32 63.999H155v234.667h533.589V394.666z" />'),alignBottom:GP('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768zM661.333 91c17.673 0 32 14.327 32 32v597.589c0 17.673-14.327 32-32 32H362.667c-17.673 0-32-14.327-32-32V123c0-17.673 14.327-32 32-32z m-32 64H394.666v533.589h234.667V155z" />'),alignLeft:GP('<path d="M133.671 96c17.497 0 31.713 14.042 31.996 31.47l0.004 0.53v768c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.995-31.47l-0.005-0.53V128c0-17.673 14.327-32 32-32zM902 330.667c17.673 0 32 14.327 32 32v298.666c0 17.673-14.327 32-32 32H304.411c-17.673 0-32-14.327-32-32V362.667c0-17.673 14.327-32 32-32z m-32.001 63.999H336.41v234.667h533.589V394.666z" />'),alignH:GP('<path d="M512.5 96c17.496 0 31.713 14.042 31.996 31.47l0.004 0.53v202.666H875c17.496 0 31.713 14.042 31.996 31.471l0.004 0.53v298.666c0 17.673-14.327 32-32 32H544.5V896c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.996-31.47l-0.004-0.53V693.333H150c-17.496 0-31.713-14.041-31.996-31.47l-0.004-0.53V362.667c0-17.673 14.327-32 32-32l330.5-0.001V128c0-17.673 14.327-32 32-32z m-32 298.666H182v234.667h298.5V394.666z m362.5 0H544.5v234.667H843V394.666z" />'),alignV:GP('<path d="M661.333 118c17.673 0 32 14.327 32 32v330.5H896c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H693.333V875c0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H362.667c-17.673 0-32-14.327-32-32l-0.001-330.5H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h202.666V150c0-17.496 14.042-31.713 31.471-31.996l0.53-0.004z m-32.001 426.5H394.665l0.001 298.5h234.667l-0.001-298.5z m0.001-362.5H394.666l-0.001 298.5h234.667l0.001-298.5z" />'),distributeH:GP('<path d="M853.333 96c17.497 0 31.713 14.042 31.996 31.47l0.004 0.53v768c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.995-31.47l-0.005-0.53V128c0-17.673 14.327-32 32-32z m-682.666 0c17.496 0 31.713 14.042 31.995 31.47l0.005 0.53v768c0 17.673-14.327 32-32 32-17.497 0-31.713-14.042-31.996-31.47l-0.004-0.53V128c0-17.673 14.327-32 32-32zM640 181.333c17.673 0 32 14.327 32 32v597.334c0 17.673-14.327 32-32 32H384c-17.673 0-32-14.327-32-32V213.333c0-17.673 14.327-32 32-32z m-32 64H416v533.333h192V245.333z" />'),distributeV:GP('<path d="M896 821.333c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM810.667 352c17.673 0 32 14.327 32 32v256c0 17.673-14.327 32-32 32H213.333c-17.673 0-32-14.327-32-32V384c0-17.673 14.327-32 32-32z m-32 64H245.334v192h533.333V416zM896 138.667c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z" />')},QP="infographic-edit-popover",JP=`${QP}__content`,tL=`${QP}__arrow`;function eL(t){var e,n,r,i,o,s,a,l;const c=null!==(e=t.placement)&&void 0!==e?e:"top",h=null===(n=t.closeOnOutsideClick)||void 0===n||n,u=Array.isArray(t.trigger)?t.trigger:[t.trigger||"hover"],d=null!==(r=t.mouseEnterDelay)&&void 0!==r?r:50,f=null!==(i=t.mouseLeaveDelay)&&void 0!==i?i:150,p=null!==(o=t.offset)&&void 0!==o?o:8,g="number"==typeof t.padding?`${t.padding}px`:null!==(s=t.padding)&&void 0!==s?s:"4px",m=document.createElement("div");m.classList.add(QP);const y=null!==(a=t.target)&&void 0!==a?a:document.createElement("div");m.appendChild(y);const v=document.createElement("div");v.classList.add(JP),ac(v,no),v.dataset.placement=Array.isArray(c)?c[0]:c,v.setAttribute("data-open",String(Boolean(t.open))),v.style.setProperty("--popover-gap",`${p}px`),v.style.setProperty("--popover-arrow-size","8px"),v.style.setProperty("--popover-arrow-inner-size","7px");const x=(()=>{const e="function"==typeof t.getContainer?t.getContainer():t.getContainer;return null!=e?e:Yz(y)})();zc("infographic-edit-popover-style",`\n.${QP} {\n position: relative;\n display: inline-flex;\n}\n.${JP} {\n position: absolute;\n z-index: 1200;\n padding: 0;\n --popover-gap: 8px;\n --popover-arrow-size: 8px;\n --popover-arrow-inner-size: 7px;\n background: #fff;\n border-radius: 8px;\n border: 1px solid rgba(239, 240, 240, 0.9);\n box-shadow: rgba(0, 0, 0, 0.08) 0px 1px 2px -2px, rgba(0, 0, 0, 0.04) 0px 2px 6px, rgba(0, 0, 0, 0.02) 0px 4px 8px 1px;\n opacity: 0;\n visibility: hidden;\n pointer-events: none;\n transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;\n}\n.${JP}-body {\n padding: 4px;\n color: #000000d9;\n font-size: 12px;\n line-height: 1.5;\n}\n.${JP}[data-open="true"] {\n opacity: 1;\n visibility: visible;\n pointer-events: auto;\n}\n.${tL} {\n position: absolute;\n width: 0;\n height: 0;\n}\n.${tL}::after {\n content: '';\n position: absolute;\n width: 0;\n height: 0;\n}\n.${JP}[data-placement="top"] {\n left: 50%;\n bottom: calc(100% + var(--popover-gap));\n transform: translate(-50%, calc(-1 * var(--popover-gap) / 2));\n}\n.${JP}[data-placement="top"] .${tL} {\n left: 50%;\n bottom: calc(-1 * var(--popover-arrow-size));\n transform: translateX(-50%);\n border-left: var(--popover-arrow-size) solid transparent;\n border-right: var(--popover-arrow-size) solid transparent;\n border-top: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);\n}\n.${JP}[data-placement="top"] .${tL}::after {\n left: 50%;\n bottom: 1px;\n transform: translateX(-50%);\n border-left: var(--popover-arrow-inner-size) solid transparent;\n border-right: var(--popover-arrow-inner-size) solid transparent;\n border-top: var(--popover-arrow-inner-size) solid #fff;\n}\n.${JP}[data-placement="top"][data-open="true"] {\n transform: translate(-50%, 0);\n}\n.${JP}[data-placement="bottom"] {\n left: 50%;\n top: calc(100% + var(--popover-gap));\n transform: translate(-50%, calc(var(--popover-gap) / 2));\n}\n.${JP}[data-placement="bottom"] .${tL} {\n left: 50%;\n top: calc(-1 * var(--popover-arrow-size) + 2px);\n transform: translateX(-50%);\n border-left: var(--popover-arrow-size) solid transparent;\n border-right: var(--popover-arrow-size) solid transparent;\n border-bottom: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);\n}\n.${JP}[data-placement="bottom"] .${tL}::after {\n left: 50%;\n top: 1px;\n transform: translateX(-50%);\n border-left: var(--popover-arrow-inner-size) solid transparent;\n border-right: var(--popover-arrow-inner-size) solid transparent;\n border-bottom: var(--popover-arrow-inner-size) solid #fff;\n}\n.${JP}[data-placement="bottom"][data-open="true"] {\n transform: translate(-50%, 0);\n}\n.${JP}[data-placement="left"] {\n right: calc(100% + var(--popover-gap));\n top: 50%;\n transform: translate(calc(-1 * var(--popover-gap) / 2), -50%);\n}\n.${JP}[data-placement="left"] .${tL} {\n right: calc(-1 * var(--popover-arrow-size) + 1px);\n top: 50%;\n transform: translateY(-50%);\n border-top: var(--popover-arrow-size) solid transparent;\n border-bottom: var(--popover-arrow-size) solid transparent;\n border-left: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);\n border-right: 0;\n}\n.${JP}[data-placement="left"] .${tL}::after {\n right: 1px;\n top: 50%;\n transform: translateY(-50%);\n border-top: var(--popover-arrow-inner-size) solid transparent;\n border-bottom: var(--popover-arrow-inner-size) solid transparent;\n border-left: var(--popover-arrow-inner-size) solid #fff;\n border-right: 0;\n}\n.${JP}[data-placement="left"][data-open="true"] {\n transform: translate(0, -50%);\n}\n.${JP}[data-placement="right"] {\n left: calc(100% + var(--popover-gap));\n top: 50%;\n transform: translate(calc(var(--popover-gap) / 2), -50%);\n}\n.${JP}[data-placement="right"] .${tL} {\n left: calc(-1 * var(--popover-arrow-size) + 1px);\n top: 50%;\n transform: translateY(-50%);\n border-top: var(--popover-arrow-size) solid transparent;\n border-bottom: var(--popover-arrow-size) solid transparent;\n border-right: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);\n border-left: 0;\n}\n.${JP}[data-placement="right"] .${tL}::after {\n left: 1px;\n top: 50%;\n transform: translateY(-50%);\n border-top: var(--popover-arrow-inner-size) solid transparent;\n border-bottom: var(--popover-arrow-inner-size) solid transparent;\n border-right: var(--popover-arrow-inner-size) solid #fff;\n}\n.${JP}[data-placement="right"][data-open="true"] {\n transform: translate(0, -50%);\n}\n`,x);const b=x!==m,w=document.createElement("div");w.classList.add(tL),v.appendChild(w);const _=document.createElement("div");_.classList.add(`${JP}-body`),_.style.padding=g,v.appendChild(_),x.appendChild(v);let M=Boolean(t.open),k=Array.isArray(c)?c:[c],C=null!==(l=k[0])&&void 0!==l?l:"top";const j=()=>{var t;const e=y.getBoundingClientRect(),n=v.getBoundingClientRect(),r=window.scrollX||document.documentElement.scrollLeft,i=window.scrollY||document.documentElement.scrollTop,o=document.documentElement.clientWidth,s=document.documentElement.clientHeight;let a=0,l=0;const c=t=>{switch(t){case"top":return{left:r+e.left+e.width/2-n.width/2,top:i+e.top-n.height-p};case"bottom":return{left:r+e.left+e.width/2-n.width/2,top:i+e.bottom+p};case"left":return{left:r+e.left-n.width-p,top:i+e.top+e.height/2-n.height/2};default:return{left:r+e.right+p,top:i+e.top+e.height/2-n.height/2}}},h=(t,e)=>t>=r&&e>=i&&t+n.width<=r+o&&e+n.height<=i+s;let u=null!==(t=k[0])&&void 0!==t?t:"top",d=c(u);for(const t of k){const e=c(t);if(d=e,h(e.left,e.top)){u=t;break}}if(C=u,v.dataset.placement=C,!b)return;({left:a,top:l}=d);const f=v.offsetParent||(x instanceof ShadowRoot?x.host:x instanceof HTMLElement?x:document.documentElement);if(f===document.body||f===document.documentElement)v.style.left=`${a}px`,v.style.top=`${l}px`;else{const t=f.getBoundingClientRect();v.style.left=`${a-t.left+f.scrollLeft}px`,v.style.top=`${l-t.top+f.scrollTop}px`}v.style.right="auto",v.style.bottom="auto",v.style.transform="translate(0, 0)"};b&&(v.style.position="absolute",window.addEventListener("resize",j),window.addEventListener("scroll",j,!0));const O=t=>{let e=t;"function"==typeof e&&(e=e()),_.innerHTML="",e instanceof HTMLElement?_.appendChild(e):_.textContent=null!=e?e:"",j()},A=t=>{var e;k=Array.isArray(t)?t:[t],C=null!==(e=k[0])&&void 0!==e?e:"top",j()},E=t=>{M=t,v.setAttribute("data-open",String(M)),M&&j(),M&&h?document.addEventListener("click",$,!0):document.removeEventListener("click",$,!0)},S=()=>E(!M),$=t=>{const e=Gz(t,m),n=Gz(t,v);e||n||E(!1)};let z,P;const L=u.includes("hover"),T=u.includes("click"),I=()=>{void 0!==z&&(clearTimeout(z),z=void 0),void 0!==P&&(clearTimeout(P),P=void 0)},R=()=>{L&&(I(),z=window.setTimeout(()=>E(!0),d))},N=()=>{L&&(I(),P=window.setTimeout(()=>E(!1),f))};T&&y.addEventListener("click",S),L&&(m.addEventListener("mouseenter",R),m.addEventListener("mouseleave",N),v.addEventListener("mouseenter",R),v.addEventListener("mouseleave",N)),O(t.content),A(c),E(M);const H={setOpen:E,toggle:S,setContent:O,setPlacement:A,destroy:()=>{document.removeEventListener("click",$,!0),T&&y.removeEventListener("click",S),L&&(m.removeEventListener("mouseenter",R),m.removeEventListener("mouseleave",N),v.removeEventListener("mouseenter",R),v.removeEventListener("mouseleave",N),I()),b&&(window.removeEventListener("resize",j),window.removeEventListener("scroll",j,!0),v.remove()),m.remove()}};return Object.assign(m,H)}const nL="infographic-align-grid",rL=`${nL}--compact`,iL=`\n.${nL} {\n display: grid;\n grid-template-columns: repeat(4, 32px);\n grid-auto-rows: 32px;\n gap: 2px;\n}\n.${rL} {\n grid-template-columns: repeat(3, 32px);\n}\n`,oL=[{icon:KP.alignLeft,action:"LEFT"},{icon:KP.alignH,action:"H_CENTER"},{icon:KP.alignRight,action:"RIGHT"},{icon:KP.distributeH,action:"H_DISTRIBUTE"},{icon:KP.alignTop,action:"TOP"},{icon:KP.alignV,action:"V_CENTER"},{icon:KP.alignBottom,action:"BOTTOM"},{icon:KP.distributeV,action:"V_DISTRIBUTE"}],sL=(t,e,n,r)=>{var i;zc("infographic-align-grid-style",iL,null==r?void 0:r.root);const o=function(e,r,i){const o=document.createElement("div");o.classList.add(nL),r||o.classList.add(rL);return(r?oL:oL.filter(({action:t})=>"H_DISTRIBUTE"!==t&&"V_DISTRIBUTE"!==t)).forEach(({icon:e,action:r})=>{const s=jP({root:i,icon:e,onClick:()=>(e=>function(t,e,n){if(!t.length)return;const r=t[0].ownerSVGElement;if(!r)return;const i=t.map(t=>function(t,e){const n=MS(e,t),r=!sc(t),i=function(t){var e;const n=t.getAttribute("transform");if(null===n)return null;const r=n.match(/translate\(\s*([-\d.]+)(?:[ ,]\s*([-\d.]+))?\s*\)/i);if(!r)return{x:0,y:0,rest:{before:n.trim(),after:""},original:n};const i=Number(r[1])||0,o=void 0!==r[2]&&Number(r[2])||0,s=null!==(e=r.index)&&void 0!==e?e:0;return{x:i,y:o,rest:{before:n.slice(0,s).trim(),after:n.slice(s+r[0].length).trim()},original:n}}(t);if(i)return{element:t,bounds:n,mode:"transform",startX:i.x,startY:i.y,hasX:!1,hasY:!1,hasDataX:!1,hasDataY:!1,restTransform:i.rest,originalTransform:i.original,movable:r};const{x:o,y:s,hasX:a,hasY:l,hasDataX:c,hasDataY:h}=function(t,e){const n=Sl(t,["x","y","data-x","data-y"],!1),r=null!=n.x,i=null!=n.y,o=null!=n["data-x"],s=null!=n["data-y"],a=(t,e)=>{const n=null!=t?Number(t):NaN;return Number.isFinite(n)?n:e},l=a(n.x,NaN),c=a(n.y,NaN),h=a(n["data-x"],NaN),u=a(n["data-y"],NaN);return{x:Number.isFinite(l)?l:Number.isFinite(h)?h:e.x,y:Number.isFinite(c)?c:Number.isFinite(u)?u:e.y,hasX:r,hasY:i,hasDataX:o,hasDataY:s}}(t,n);return{element:t,bounds:n,mode:"attr",startX:o,startY:s,hasX:a,hasY:l,hasDataX:c,hasDataY:h,movable:r}}(t,r)).filter(Boolean);if(!i.length)return;const o=i.filter(t=>t.movable);if(!o.length)return;const s=i.filter(t=>!t.movable),a=Nc((s.length?s:i).map(t=>t.bounds)),l=[];switch(e){case"LEFT":{const t=a.x;o.forEach(e=>{lL(l,e,t-e.bounds.x,0)});break}case"H_CENTER":{const t=a.x+a.width/2;o.forEach(e=>{lL(l,e,t-(e.bounds.x+e.bounds.width/2),0)});break}case"RIGHT":{const t=a.x+a.width;o.forEach(e=>{lL(l,e,t-(e.bounds.x+e.bounds.width),0)});break}case"TOP":{const t=a.y;o.forEach(e=>{lL(l,e,0,t-e.bounds.y)});break}case"V_CENTER":{const t=a.y+a.height/2;o.forEach(e=>{lL(l,e,0,t-(e.bounds.y+e.bounds.height/2))});break}case"BOTTOM":{const t=a.y+a.height;o.forEach(e=>{lL(l,e,0,t-(e.bounds.y+e.bounds.height))});break}case"H_DISTRIBUTE":!function(t,e){if(t.length<=2)return;const n=[...t].sort((t,e)=>t.bounds.x-e.bounds.x||t.bounds.y-e.bounds.y),r=aL(n);for(let t=0;t<r.length-1;t++){const i=r[t],o=r[t+1],s=n[i],a=n[o],l=n.slice(i+1,o);if(!l.length)continue;const c=(a.bounds.x-(s.bounds.x+s.bounds.width)-l.reduce((t,e)=>t+e.bounds.width,0))/(l.length+1);let h=s.bounds.x+s.bounds.width+c;l.forEach(t=>{lL(e,t,h-t.bounds.x,0),h+=t.bounds.width+c})}}(i,l);break;case"V_DISTRIBUTE":!function(t,e){if(t.length<=2)return;const n=[...t].sort((t,e)=>t.bounds.y-e.bounds.y||t.bounds.x-e.bounds.x),r=aL(n);for(let t=0;t<r.length-1;t++){const i=r[t],o=r[t+1],s=n[i],a=n[o],l=n.slice(i+1,o);if(!l.length)continue;const c=(a.bounds.y-(s.bounds.y+s.bounds.height)-l.reduce((t,e)=>t+e.bounds.height,0))/(l.length+1);let h=s.bounds.y+s.bounds.height+c;l.forEach(t=>{lL(e,t,0,h-t.bounds.y),h+=t.bounds.height+c})}}(i,l)}l.length&&n.executeBatch(l)}(t,e,n))(r)});o.appendChild(s)}),o}(0,null===(i=null==r?void 0:r.enableDistribution)||void 0===i||i,null==r?void 0:r.root);return eL({target:jP({icon:KP.align,root:null==r?void 0:r.root}),content:o,getContainer:null==r?void 0:r.root,placement:"top",offset:12})};function aL(t){const e=new Set;return e.add(0),e.add(t.length-1),t.forEach((t,n)=>{t.movable||e.add(n)}),Array.from(e).sort((t,e)=>t-e)}function lL(t,e,n,r){const i=function(t,e,n){if(!t.movable)return null;if(Math.abs(e)<1e-6&&Math.abs(n)<1e-6)return null;if("attr"===t.mode){const r=t.startX+e,i=t.startY+n,o={x:r,y:i},s={};return s.x=t.hasX?t.startX:null,s.y=t.hasY?t.startY:null,t.hasDataX&&(o["data-x"]=r,s["data-x"]=t.startX),t.hasDataY&&(o["data-y"]=i,s["data-y"]=t.startY),new yS(t.element,{attributes:o},{attributes:s})}const r=function(t,e,n){return[null==n?void 0:n.before,`translate(${t}, ${e})`,null==n?void 0:n.after].filter(t=>t&&t.length).join(" ")}(t.startX+e,t.startY+n,t.restTransform);return new yS(t.element,{attributes:{transform:r}},{attributes:{transform:void 0!==t.originalTransform?t.originalTransform:null}})}(e,n,r);i&&t.push(i)}const cL="infographic-font-align-grid",hL=[{icon:XP.alignLeft,align:"LEFT"},{icon:XP.alignCenter,align:"CENTER"},{icon:XP.alignRight,align:"RIGHT"}],uL=[{icon:XP.alignTop,align:"TOP"},{icon:XP.alignMiddle,align:"MIDDLE"},{icon:XP.alignBottom,align:"BOTTOM"}],dL=`\n.${cL} {\n display: grid;\n grid-template-columns: repeat(3, 32px);\n grid-auto-rows: 32px;\n gap: 2px;\n}\n`,fL=(t,e,n,r)=>{const i=null==r?void 0:r.root;zc("infographic-font-align-grid-style",dL,i);const o={horizontal:e["data-horizontal-align"],vertical:e["data-vertical-align"]},s=jP({icon:XP.align,root:i}),a=function(e,r,i){const o=document.createElement("div");o.classList.add(cL);const s={},a=(r,a)=>{r.forEach(({icon:r,align:l})=>{const c=jP({root:i,icon:r,onClick:()=>{e[a]!==l&&(Object.assign(e,{[a]:l}),Object.entries(s).forEach(([t,n])=>{n.setActivate(t===e.horizontal||t===e.vertical)}),(e=>{const r={};e.horizontal&&(r["data-horizontal-align"]=e.horizontal),e.vertical&&(r["data-vertical-align"]=e.vertical),Object.keys(r).length&&n.executeBatch(t.map(t=>new yS(t,{attributes:r})))})(Object.assign({},e)))},activate:l===e[a]});s[l]=c,o.appendChild(c)})};return a(hL,"horizontal"),a(uL,"vertical"),o}(o,0,i);return eL({target:s,content:a,getContainer:i,placement:"top",offset:12})},pL="infographic-font-color-btn",gL="#1f1f1f",mL=(t,e,n,r)=>{const i=null==r?void 0:r.root;zc("infographic-font-color-style",`\n.${pL} {\n position: relative;\n width: 32px;\n height: 32px;\n padding: 0;\n border: none;\n background: #fff;\n cursor: pointer;\n transition: box-shadow 0.2s ease, border-color 0.2s ease;\n}\n.${pL}::after {\n content: '';\n position: absolute;\n inset: 6px;\n border-radius: 50%;\n background: var(--infographic-font-color, ${gL});\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);\n}\n.${pL}[data-mixed="true"]::after {\n background: repeating-linear-gradient(\n 45deg,\n #d9d9d9 0,\n #d9d9d9 6px,\n #f5f5f5 6px,\n #f5f5f5 12px\n );\n}\n`,i);const o=(l=e.fill)&&Kr(l)?l:void 0,s=void 0===e.fill&&t.length>1,a=document.createElement("button");var l;a.type="button",a.classList.add(pL),yL(a,null!=o?o:gL,s);const c=HP({root:i,value:null!=o?o:gL,onChange:e=>{yL(a,e,!1),n.executeBatch(t.map(t=>new yS(t,{attributes:{fill:e}})))}});return eL({target:a,content:c,getContainer:i,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function yL(t,e,n){t.style.setProperty("--infographic-font-color",e),n?t.setAttribute("data-mixed","true"):t.removeAttribute("data-mixed")}const vL="infographic-font-family-list",xL=`${vL}__option`,bL=(t,e,n,r)=>{const i=null==r?void 0:r.root;zc("infographic-font-family-list-style",`\n.${vL} {\n display: flex;\n flex-direction: column;\n gap: 2px;\n padding: 4px;\n min-width: 180px;\n max-height: 220px;\n overflow-y: auto;\n}\n.${xL} {\n width: 100%;\n text-align: left;\n padding: 6px 10px;\n border: none;\n border-radius: 6px;\n background: #fff;\n cursor: pointer;\n font-size: 12px;\n color: #000000d9;\n transition: background-color 0.2s ease, color 0.2s ease;\n}\n.${xL}:hover {\n background: #f5f5f5;\n}\n.${xL}[data-activate="true"] {\n background: #e6f4ff;\n color: #0958d9;\n}\n`,i);const o=ws(),s=wL(e["font-family"]),a=o.map(t=>({label:t.name||t.fontFamily,value:t.fontFamily}));a.some(t=>wL(t.value)===s)||a.unshift({label:"默认",value:s});let l=s;const c=function(t,e,n){const r=document.createElement("div");r.classList.add(vL);const i={};return t.forEach(({label:t,value:o})=>{const s=document.createElement("button");s.type="button",s.classList.add(xL),s.textContent=t,s.style.fontFamily=o,o===e&&s.setAttribute("data-activate","true"),s.addEventListener("click",()=>{var t;e!==o&&(t=e=o,Object.entries(i).forEach(([e,n])=>{e===t?n.setAttribute("data-activate","true"):n.removeAttribute("data-activate")}),n(o))}),i[o]=s,r.appendChild(s)}),r}(a,l,e=>{l!==e&&(l=e,n.executeBatch(t.map(t=>new yS(t,{attributes:{"font-family":ns(e)}}))))});return eL({target:jP({icon:XP.fontFamily,root:i}),content:c,getContainer:i,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function wL(t){return t?Array.isArray(t)?rs(t.join(", ")):rs(String(t)):""}const _L="infographic-font-size-grid",ML=[{label:"XS",value:12},{label:"S",value:14},{label:"M",value:16},{label:"L",value:20},{label:"XL",value:24}],kL=`\n.${_L} {\n display: grid;\n grid-template-columns: repeat(5, 32px);\n grid-auto-rows: 32px;\n gap: 2px;\n}\n`,CL=(t,e,n,r)=>{const i=null==r?void 0:r.root;zc("infographic-font-size-grid-style",kL,i);const o=jP({icon:XP.fontSize,root:i}),s=function(t){if("number"==typeof t)return t;if("string"==typeof t){const e=parseFloat(t);return Number.isFinite(e)?e:12}return 12}(e["font-size"]),a=function(e,r,i){const o=document.createElement("div");o.classList.add(_L);let s=e;const a={};return ML.forEach(({label:e,value:r})=>{const l=jP({root:i,icon:jL(e),onClick:()=>{var e;s!==r&&(s=r,Object.entries(a).forEach(([t,e])=>{const n=Number(t)===s;e.setActivate(n)}),e=r,n.executeBatch(t.map(t=>new yS(t,{attributes:{"font-size":e}}))))},activate:r===s});a[String(r)]=l,o.appendChild(l)}),o}(s,0,i);return eL({target:o,content:a,getContainer:i,placement:"top",offset:12})};function jL(t){return()=>{const e="1.2em",n=document.createElement("span");return n.textContent=t,n.style.display="inline-flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.width=e,n.style.height=e,n.style.fontSize="12px",n}}const OL="infographic-icon-color-btn",AL="#1f1f1f",EL=(t,e,n,r)=>{const i=null==r?void 0:r.root;zc("infographic-icon-color-style",`\n.${OL} {\n position: relative;\n width: 32px;\n height: 32px;\n padding: 0;\n border: none;\n background: #fff;\n cursor: pointer;\n transition: box-shadow 0.2s ease, border-color 0.2s ease;\n}\n.${OL}::after {\n content: '';\n position: absolute;\n inset: 6px;\n border-radius: 50%;\n background: var(--infographic-icon-color, ${AL});\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);\n}\n.${OL}[data-mixed="true"]::after {\n background: repeating-linear-gradient(\n 45deg,\n #d9d9d9 0,\n #d9d9d9 6px,\n #f5f5f5 6px,\n #f5f5f5 12px\n );\n}\n`,i);const o=(l=e.fill)&&Kr(l)?l:void 0,s=void 0===e.fill&&t.length>1,a=document.createElement("button");var l;a.type="button",a.classList.add(OL),SL(a,null!=o?o:AL,s);const c=HP({root:i,value:null!=o?o:AL,onChange:e=>{SL(a,e,!1),n.executeBatch(t.map(t=>new yS(t,{attributes:{fill:e}})))}});return eL({target:a,content:c,getContainer:i,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function SL(t,e,n){t.style.setProperty("--infographic-icon-color",e),n?t.setAttribute("data-mixed","true"):t.removeAttribute("data-mixed")}class $L extends kP{constructor(t){super(),this.options=t,this.name="edit-bar",this.selection=[],this.handleSelectionChanged=({next:t})=>{if(this.selection=t,0===t.length)return void(this.container&&PL(this.container));const e=this.getOrCreateEditBar(),n=this.getEditItems(t);0!==n.length?(function(t,e){t.innerHTML="",e.forEach(e=>{t.appendChild(e)})}(e,n),this.placeEditBar(e,t),zL(e)):PL(e)},this.handleGeometryChanged=({target:t})=>{this.selection.includes(t)&&this.container&&(this.placeEditBar(this.container,this.selection),zL(this.container))},this.handleHistoryChanged=()=>{this.container&&0!==this.selection.length&&(this.placeEditBar(this.container,this.selection),zL(this.container))}}init(t){super.init(t);const{emitter:e}=t;e.on("selection:change",this.handleSelectionChanged),e.on("selection:geometrychange",this.handleGeometryChanged),e.on("history:change",this.handleHistoryChanged)}destroy(){var t;const{emitter:e}=this;e.off("selection:change",this.handleSelectionChanged),e.off("selection:geometrychange",this.handleGeometryChanged),e.off("history:change",this.handleHistoryChanged),null===(t=this.container)||void 0===t||t.remove()}getEditItems(t){let e=!1,n=!1,r=!1;for(const i of t)if(rc(i)?e=!0:sc(i)?n=!0:oc(i)&&(r=!0),e&&n&&r)break;return!e||n||r?e||!n||r?e||n||!r?this.getElementCollectionEditItems(t):1===t.length?this.getGeometryEditItems(t):this.getGeometryCollectionEditItems(t):1===t.length?this.getIconEditItems(t):this.getIconCollectionEditItems(t):1===t.length?this.getTextEditItems(t[0]):this.getTextCollectionEditItems(t)}getOrCreateEditBar(){if(this.container)return this.container;const{style:t,className:e}=this.options||{},n=document.createElement("div");Object.assign(n.style,Object.assign({visibility:"hidden",position:"absolute",left:"0",top:"0",display:"flex",flexFlow:"row",justifyContent:"center",alignItems:"center",height:"40px",minWidth:"40px",minHeight:"40px",borderRadius:"8px",padding:"0 4px",backgroundColor:"#fff",border:"1px solid rgba(239, 240, 240, 0.9)",zIndex:"9999",boxShadow:"rgba(0, 0, 0, 0.08) 0px 1px 2px -2px, rgba(0, 0, 0, 0.04) 0px 2px 6px, rgba(0, 0, 0, 0.02) 0px 4px 8px 1px"},t)),e&&n.classList.add(e),ac(n,no),this.container=n;const r=this.resolveOverlayRoot();return null==r||r.appendChild(n),n}getTextEditItems(t){const{attributes:e={}}=Rl(t),n=this.resolveOverlayRoot();return[mL,CL,fL,bL].map(r=>r([t],e,this.commander,{root:n}))}getTextCollectionEditItems(t){const e=K(t.map(t=>Rl(t).attributes||{})),n=this.resolveOverlayRoot();return[...[mL,CL,fL,bL].map(r=>r(t,e,this.commander,{root:n})),...this.getElementCollectionEditItems(t)]}getIconEditItems(t){const e=wc(t[0]),n=this.resolveOverlayRoot();return[EL].map(r=>r(t,e,this.commander,{root:n}))}getIconCollectionEditItems(t){const e=K(t.map(t=>wc(t))),n=this.resolveOverlayRoot();return[EL].map(r=>r(t,e,this.commander,{root:n}))}getGeometryEditItems(t){return[]}getGeometryCollectionEditItems(t){return[...this.getElementCollectionEditItems(t)]}getElementCollectionEditItems(t){if(t.length<=1)return[];const e=this.resolveOverlayRoot();return[sL(t,0,this.commander,{enableDistribution:t.length>2,root:e})]}resolveOverlayRoot(){const{getContainer:t}=this.options||{},e="function"==typeof t?t():t;return null!=e?e:Yz(this.editor.getDocument())}placeEditBar(t,e){var n;if(0===e.length)return;const r=Nc(e.map(t=>t.getBoundingClientRect())),i=null!==(n=t.offsetParent)&&void 0!==n?n:document.documentElement,o=document.documentElement.clientHeight,s=document.documentElement.clientWidth,a=t.getBoundingClientRect(),l=r.x+r.width/2,c=r.y,h=r.y+r.height,u=(t,e,n)=>Math.min(Math.max(t,e),n),d=c-8,f=d>=a.height||d>=o-h-8;if(i===document.body||i===document.documentElement){const e=window.scrollX||document.documentElement.scrollLeft,n=window.scrollY||document.documentElement.scrollTop;let r=e+l-a.width/2;r=u(r,e,e+Math.max(s-a.width,0));let i=f?n+c-a.height-8:n+h+8;return i=u(i,n,n+Math.max(o-a.height,0)),t.style.left=`${r}px`,void(t.style.top=`${i}px`)}const p=i.getBoundingClientRect();let g=l-p.left-a.width/2;g=u(g,0,Math.max(p.width-a.width,0));let m=f?c-p.top-a.height-8:h-p.top+8;m=u(m,0,Math.max(p.height-a.height,0)),t.style.left=`${g}px`,t.style.top=`${m}px`}}function zL(t){t.style.visibility="visible"}function PL(t){t.style.visibility="hidden"}class LL extends kP{constructor(t){super(),this.options=t,this.name="reset-viewBox",this.viewBoxChanged=!1,this.handleResize=()=>{this.updateOriginViewBox(),this.updatePosition()},this.handleViewBoxChange=t=>{const e=this.editor.getDocument();if(this.viewBoxChanged=t!==this.originViewBox,!this.viewBoxChanged)return void(this.resetButton&&this.hideButton(this.resetButton));const n=this.getOrCreateResetButton();this.placeButton(n,e),this.showButton(n)},this.getOrCreateResetButton=()=>{if(this.resetButton)return this.resetButton;const{style:t,className:e}=this.options||{},n=this.resolveOverlayRoot();this.ensureButtonStyle(n);const r=jP({icon:ZP,onClick:this.resetViewBox,root:n});return r.classList.add(TL),e&&r.classList.add(e),t&&Object.assign(r.style,t),ac(r,no),this.resetButton=r,null==n||n.appendChild(r),r},this.getTransformScale=t=>{const e=t.getBoundingClientRect();return{scaleX:t.offsetWidth>0?e.width/t.offsetWidth:1,scaleY:t.offsetHeight>0?e.height/t.offsetHeight:1}},this.findStableContainer=t=>{let e=t.parentElement;for(;e;){if(e instanceof HTMLElement){const t=window.getComputedStyle(e);if(t.overflow&&"visible"!==t.overflow||t.overflowX&&"visible"!==t.overflowX||t.overflowY&&"visible"!==t.overflowY)return e}e=e.parentElement}return null},this.placeButton=(t,e)=>{var n;if(!e.isConnected)return;const r=e.getBoundingClientRect(),i=null!==(n=t.offsetParent)&&void 0!==n?n:document.documentElement,o=this.findStableContainer(e),s=null==o?void 0:o.getBoundingClientRect(),a=s?{right:Math.min(r.right,s.right),bottom:Math.min(r.bottom,s.bottom)}:r;if(i===document.body||i===document.documentElement){const e=window.scrollX||document.documentElement.scrollLeft,n=(window.scrollY||document.documentElement.scrollTop)+a.bottom-25-40;return t.style.left=e+a.right-25-40+"px",void(t.style.top=`${n}px`)}const l=i.getBoundingClientRect(),{scaleX:c,scaleY:h}=this.getTransformScale(i),u=(a.bottom-l.top)/h-25-40;t.style.left=(a.right-l.left)/c-25-40+"px",t.style.top=`${u}px`},this.updatePosition=()=>{this.resetButton&&this.viewBoxChanged&&this.placeButton(this.resetButton,this.editor.getDocument())},this.resetViewBox=()=>{const t=new bS({viewBox:this.originViewBox});this.commander.execute(t)},this.showButton=t=>{t.style.display="flex",t.style.visibility="visible"},this.hideButton=t=>{t.style.display="none"},this.removeButton=()=>{var t;this.viewBoxChanged=!1,null===(t=this.resetButton)||void 0===t||t.remove(),this.resetButton=void 0}}init(t){super.init(t),this.ensureButtonStyle(this.resolveOverlayRoot()),this.updateOriginViewBox(),this.unregisterSync=this.editor.registerSync("viewBox",this.handleViewBoxChange),window.addEventListener("resize",this.handleResize)}destroy(){var t;null===(t=this.unregisterSync)||void 0===t||t.call(this),window.removeEventListener("resize",this.handleResize),this.removeButton()}updateOriginViewBox(){const t=this.editor.getDocument();if(!t.getBBox)return void(this.originViewBox=jc(Cc(t)));const{padding:e}=this.state.getOptions();this.originViewBox=Sc(t,Oc(e))}resolveOverlayRoot(){const{getContainer:t}=this.options||{},e="function"==typeof t?t():t;return null!=e?e:Yz(this.editor.getDocument())}ensureButtonStyle(t){zc(IL,`\n button.${TL} {\n visibility: hidden;\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n padding: 4px;\n background-color: #fff;\n border: 1px solid #e5e7eb;\n z-index: 1000;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n cursor: pointer;\n }\n `,t)}}const TL="infographic-reset-viewbox-btn",IL="infographic-reset-viewbox-btn-style";class RL extends kP{constructor(){super(...arguments),this.name="resize-element",this.target=null,this.handles=[],this.activeHandle=null,this.activePointerId=null,this.handleSelectionChange=({next:t})=>{const e=1===t.length?t[0]:null;e&&rc(e)?(this.target=e,this.updateHandles()):(this.target=null,this.hideHandles(),this.cancelDrag())},this.handleDeactivate=()=>{this.target=null,this.hideHandles(),this.cancelDrag()},this.handleGeometryChange=({target:t})=>{if(!this.target||t!==this.target)return;const e=this.getViewportRect(this.target);this.lastViewportRect=e,this.updateHandles(e)},this.handleHistoryChange=()=>{if(!this.target)return;const t=this.getViewportRect(this.target);this.lastViewportRect=t,this.updateHandles(t)},this.handlePointerMove=t=>{if(!this.target||!this.startPointer||!this.startRect||!this.activeHandle||null!==this.activePointerId&&t.pointerId!==this.activePointerId)return;const e=this.clientToElement(this.target,t.clientX,t.clientY),n=this.clampRect(this.applyDelta(this.startRect,e.x-this.startPointer.x,e.y-this.startPointer.y,this.activeHandle),this.activeHandle);this.lastRect=n,this.applyRect(this.target,n),this.lastViewportRect=this.getViewportRect(this.target),this.updateHandles(this.lastViewportRect),this.emitSelectionGeometryChange()},this.handlePointerUp=t=>{if(null!==this.activePointerId&&t.pointerId!==this.activePointerId)return;const e=this.lastRect,n=this.startAttrs,r=e&&this.startRect&&this.hasRectChanged(this.startRect,e);if(this.cancelDrag(),r&&this.target&&e&&n)this.commander.execute(new yS(this.target,{attributes:e},{attributes:n})),this.lastViewportRect=this.getViewportRect(this.target),this.updateHandles(this.lastViewportRect),this.emitSelectionGeometryChange();else if(this.target){const t=this.lastViewportRect||this.getViewportRect(this.target);this.updateHandles(t)}}}init(t){super.init(t);const{emitter:e}=t;e.on("selection:change",this.handleSelectionChange),e.on("selection:geometrychange",this.handleGeometryChange),e.on("history:change",this.handleHistoryChange),e.on("deactivated",this.handleDeactivate)}destroy(){this.cancelDrag(),this.removeContainer();const{emitter:t}=this;t.off("selection:change",this.handleSelectionChange),t.off("selection:geometrychange",this.handleGeometryChange),t.off("history:change",this.handleHistoryChange),t.off("deactivated",this.handleDeactivate)}ensureContainer(){if(this.container)return this.container;const t=Ol("g",{"pointer-events":"none"});this.overlay=Ol("rect",{fill:"rgba(51, 132, 245, 0.06)",stroke:"none","pointer-events":"none"});const e=Ol("rect",{fill:"none",stroke:"#3384F5","stroke-width":1,"stroke-dasharray":"4 2","pointer-events":"none"});t.appendChild(this.overlay),t.appendChild(e),this.outline=e;const n={"top-left":"nwse-resize",top:"ns-resize","top-right":"nesw-resize",right:"ew-resize","bottom-right":"nwse-resize",bottom:"ns-resize","bottom-left":"nesw-resize",left:"ew-resize"};return RL.HANDLE_POSITIONS.forEach((e,r)=>{const i="top"===e||"right"===e||"bottom"===e||"left"===e?Ol("line",{stroke:"transparent","stroke-width":RL.LINE_STROKE_WIDTH}):Ol("circle",{r:RL.HANDLE_SIZE/2,fill:"#3384F5",stroke:"#fff","stroke-width":1.5});i.style.cursor=n[e],i.style.pointerEvents="all",i.addEventListener("pointerdown",t=>this.handlePointerDown(t,e)),i.addEventListener("click",t=>{t.stopPropagation(),t.preventDefault()}),t.appendChild(i),this.handles[r]=i}),this.editor.getDocument().appendChild(t),this.container=t,t}updateHandles(t){if(!this.target)return void this.hideHandles();const e=t||this.getViewportRect(this.target)||this.lastViewportRect||null;if(!e)return void this.hideHandles();this.lastViewportRect=e,this.ensureContainer().style.display="block",this.outline.style.display="block",El(this.outline,e),this.overlay&&(this.overlay.style.display="block",El(this.overlay,e));const n=this.getHandlePoints(e);this.handles.forEach((t,r)=>{const[i,o]=n[r];El(t,"circle"===t.tagName?{cx:i,cy:o}:this.getHandleLine(e,RL.HANDLE_POSITIONS[r])),t.style.display="block"})}hideHandles(){this.container&&(this.container.style.display="none"),this.outline&&(this.outline.style.display="none"),this.overlay&&(this.overlay.style.display="none"),this.handles.forEach(t=>t.style.display="none")}removeContainer(){var t;null===(t=this.container)||void 0===t||t.remove(),this.container=void 0,this.outline=void 0,this.overlay=void 0,this.handles=[]}handlePointerDown(t,e){if(!this.target)return;if(0!==t.button&&"mouse"===t.pointerType)return;t.stopPropagation(),t.preventDefault();const n=this.clientToElement(this.target,t.clientX,t.clientY);this.activeHandle=e,this.activePointerId=t.pointerId,this.startPointer=n;const r=this.getCurrentAttributes(this.target);this.startRect=r,this.startAttrs=Object.assign({},r),this.lastRect=r,this.lastViewportRect=this.getViewportRect(this.target),window.addEventListener("pointermove",this.handlePointerMove),window.addEventListener("pointerup",this.handlePointerUp),window.addEventListener("pointercancel",this.handlePointerUp)}cancelDrag(){this.activeHandle=null,this.activePointerId=null,this.startPointer=void 0,this.startRect=void 0,this.startAttrs=void 0,this.lastRect=void 0,this.lastViewportRect=void 0,window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}applyRect(t,e){El(t,{x:e.x,y:e.y,width:e.width,height:e.height})}getViewportRect(t){const{x:e,y:n,width:r,height:i}=MS(this.editor.getDocument(),t);return{x:e,y:n,width:r,height:i}}clientToElement(t,e,n){var r,i;const o=(null===(r=t.getScreenCTM())||void 0===r?void 0:r.inverse())||(null===(i=this.editor.getDocument().getScreenCTM())||void 0===i?void 0:i.inverse())||new DOMMatrix;return new DOMPoint(e,n).matrixTransform(o)}getCurrentAttributes(t){const e=Sl(t,["x","y","width","height"],!1),n=this.getViewportRect(t),r=(t,e)=>{const n=null!==t?Number(t):NaN;return Number.isFinite(n)?n:e};return{x:r(e.x,n.x),y:r(e.y,n.y),width:r(e.width,n.width),height:r(e.height,n.height)}}getHandlePoints(t){const{x:e,y:n,width:r,height:i}=t,o=e+r/2,s=n+i/2;return[[e,n],[o,n],[e+r,n],[e+r,s],[e+r,n+i],[o,n+i],[e,n+i],[e,s]]}applyDelta(t,e,n,r){let{x:i,y:o,width:s,height:a}=t;switch(r){case"top-left":i+=e,o+=n,s-=e,a-=n;break;case"top":o+=n,a-=n;break;case"top-right":o+=n,s+=e,a-=n;break;case"right":s+=e;break;case"bottom-right":s+=e,a+=n;break;case"bottom":a+=n;break;case"bottom-left":i+=e,s-=e,a+=n;break;case"left":i+=e,s-=e}return{x:i,y:o,width:s,height:a}}clampRect(t,e){let{x:n,y:r,width:i,height:o}=t;return i<RL.MIN_SIZE&&("top-left"!==e&&"bottom-left"!==e&&"left"!==e||(n-=RL.MIN_SIZE-i),i=RL.MIN_SIZE),o<RL.MIN_SIZE&&("top-left"!==e&&"top-right"!==e&&"top"!==e||(r-=RL.MIN_SIZE-o),o=RL.MIN_SIZE),{x:n,y:r,width:i,height:o}}hasRectChanged(t,e){return Math.abs(t.x-e.x)>.5||Math.abs(t.y-e.y)>.5||Math.abs(t.width-e.width)>.5||Math.abs(t.height-e.height)>.5}emitSelectionGeometryChange(){this.target&&this.lastViewportRect&&this.emitter.emit("selection:geometrychange",{type:"selection:geometrychange",target:this.target,rect:this.lastViewportRect})}getHandleLine(t,e){const{x:n,y:r,width:i,height:o}=t;switch(e){case"top":return{x1:n,y1:r,x2:n+i,y2:r};case"right":return{x1:n+i,y1:r,x2:n+i,y2:r+o};case"bottom":return{x1:n,y1:r+o,x2:n+i,y2:r+o};default:return{x1:n,y1:r,x2:n,y2:r+o}}}}RL.HANDLE_SIZE=10,RL.LINE_STROKE_WIDTH=8,RL.MIN_SIZE=1,RL.HANDLE_POSITIONS=["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"];const NL=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/postcss.js");var HL=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})};var BL=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})};const WL=.5;function FL(t){if(!t)return Number.NaN;const e=t.trim();return e&&/^[-+]?(?:\d+\.?\d*|\.\d+)(?:px)?$/.test(e)?Number.parseFloat(e):Number.NaN}function DL(t){const e=FL(t);return Number.isNaN(e)?0:e}function VL(t,e){if("function"!=typeof e.getScreenCTM)return null;const n=e.getScreenCTM();if(!n)return null;const r=n.inverse();return(e,n)=>{const i=t.createSVGPoint();return i.x=e,i.y=n,i.matrixTransform(r)}}function UL(t,e,{contentHeight:n,contentWidth:r,keepForeignObjectWidth:i}){const o=t.getBoundingClientRect(),s=e(o.left,o.top),a=e(o.right,o.bottom),l=s.x,c=s.y,h=a.x,u=a.y,d=h-l,f=u-c,p=o.width>0?d/o.width:1,g=n>0?n*(o.height>0?f/o.height:1):f,m=window.getComputedStyle(t.firstElementChild),y=m.alignItems,v=m.justifyContent,x=i?d:Math.max(d,r*p);let b,w,_,M;if("flex-end"===y||"end"===y)b=u-g,w=u;else if("center"===y){const t=g-f;b=c-t/2,w=u+t/2}else b=c,w=c+g;if("flex-end"===v||"end"===v||"right"===v)_=h-x,M=h;else if("center"===v){const t=x-d;_=l-t/2,M=h+t/2}else _=l,M=l+x;return[_,b,M,w]}function qL(t){return BL(this,arguments,void 0,function*(t,e={}){const{removeBackground:n=!1,embedResources:r=!0,removeIds:i=!1}=e,o=t.cloneNode(!0);if("undefined"!=typeof document){const e=function(t){const e=VL(t,t);return e?Array.from(t.querySelectorAll("foreignObject")).map(n=>{const r=n.firstElementChild;if(!r)return null;const i=function(t){const e=t.whiteSpace,n=t.flexWrap,r=t.wordBreak;return"wrap"===n||"wrap-reverse"===n||"pre-wrap"===e||"pre-line"===e||"normal"===e||"break-word"===t.overflowWrap||"break-word"===r||"break-all"===r}(window.getComputedStyle(r)),o=function(t,e){const n=t.style.height,r=t.style.width,i=t.style.overflow;try{t.style.height="max-content",t.style.overflow="hidden";const n=t.scrollHeight,r=t.getBoundingClientRect().height;let i=t.scrollWidth;return e&&(t.style.width="max-content",i=t.scrollWidth),{height:Math.max(n,r),width:i}}finally{t.style.height=n,t.style.width=r,t.style.overflow=i}}(r,!i),s=n.parentElement instanceof SVGGraphicsElement?n.parentElement:t,a=VL(t,s),l=VL(t,n);if(!a)return null;const c=UL(n,a,{contentHeight:o.height,contentWidth:o.width,keepForeignObjectWidth:i}),h=DL(n.getAttribute("x")),u=DL(n.getAttribute("y")),d=l?UL(n,l,{contentHeight:o.height,contentWidth:o.width,keepForeignObjectWidth:i}):null;if(n.hasAttribute("transform")&&!d)return null;const f=d?{x:h+d[0],y:u+d[1],width:d[2]-d[0],height:d[3]-d[1]}:{x:c[0],y:c[1],width:c[2]-c[0],height:c[3]-c[1]};return{rootBounds:UL(n,e,{contentHeight:o.height,contentWidth:o.width,keepForeignObjectWidth:i}),exportBounds:f}}):[]}(t);!function(t,e){const n=Array.from(t.querySelectorAll("foreignObject"));e.forEach((t,e)=>{if(!t)return;const r=n[e];r&&El(r,t.exportBounds)})}(o,e);const n=function(t,e){const n=function(t){if(t.hasAttribute("viewBox"))return Cc(t);const e=FL(t.getAttribute("width")),n=FL(t.getAttribute("height"));if(!Number.isNaN(e)&&e>0&&!Number.isNaN(n)&&n>0)return{x:0,y:0,width:e,height:n};const r=t.getBoundingClientRect();return r.width>0&&r.height>0?{x:0,y:0,width:r.width,height:r.height}:null}(t);if(!n)return null;let r=n.x,i=n.y,o=n.x+n.width,s=n.y+n.height;e.forEach(t=>{if(!t)return;const{rootBounds:e}=t,[n,a,l,c]=e;r=Math.min(r,n),i=Math.min(i,a),o=Math.max(o,l),s=Math.max(s,c)});const a=o-r,l=s-i;return a<=n.width+WL&&l<=n.height+WL&&r>=n.x-WL&&i>=n.y-WL?null:`${r} ${i} ${a} ${l}`}(t,e);n&&o.setAttribute("viewBox",n)}const{width:s,height:a}=Cc(o);return El(o,{width:s,height:a}),i?(function(t){const e=Array.from(t.querySelectorAll("use"));e.length&&e.forEach(e=>{const n=function(t){var e;return null!==(e=t.getAttribute("href"))&&void 0!==e?e:t.getAttribute("xlink:href")}(e);if(!n||!n.startsWith("#"))return;const r=function(t,e){const n=t.querySelector(e);if(n)return n;return document.querySelector(e)}(t,n);if(!r||r===e)return;const i=function(t,e){const n=e.tagName.toLowerCase();return"symbol"===n?function(t,e){const n=e.cloneNode(!0),r=Ol("svg");for(GL(r,n,new Set(["id"])),GL(r,t,new Set(["href","xlink:href"]));n.firstChild;)r.appendChild(n.firstChild);return r}(t,e):"svg"===n?function(t,e){const n=e.cloneNode(!0);return n.removeAttribute("id"),GL(n,t,new Set(["href","xlink:href"])),n}(t,e):function(t,e){const n=e.cloneNode(!0);n.removeAttribute("id");const r=Ol("g");GL(r,t,new Set(["href","xlink:href","x","y","width","height","transform"]));const i=function(t){var e;const n=t.getAttribute("x"),r=t.getAttribute("y"),i=n||r?`translate(${null!=n?n:0} ${null!=r?r:0})`:"",o=null!==(e=t.getAttribute("transform"))&&void 0!==e?e:"";return i&&o?`${i} ${o}`:i||o||null}(t);return i&&r.setAttribute("transform",i),r.appendChild(n),r}(t,e)}(e,r);i&&e.replaceWith(i)})}(o),function(t){const e=function(t){const e=new Set;return $l(t,t=>{if("defs"===t.tagName.toLowerCase())return!1;ZL(t,t=>e.add(t))}),e}(t);if(0===e.size)return void QL(t);const n=function(t,e){if(0===e.size)return null;const n=function(t,e){const n=new Map,r=Array.from(e),i=new Set(r),o=new Set,s=t=>{o.has(t)||i.has(t)||(r.push(t),i.add(t))};for(;r.length;){const e=r.shift();if(!e)continue;if(o.has(e))continue;o.add(e);const i=`#${KL(e)}`,a=t.querySelector(i);a&&(n.set(e,a),$l(a,t=>{ZL(t,s)}))}return n}(t,e);if(0===n.size)return null;const r=Ol("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),i=Ol("defs");if(n.forEach(t=>{i.appendChild(t.cloneNode(!0))}),!i.children.length)return null;r.appendChild(i);const o=(new XMLSerializer).serializeToString(r);return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o)}(t,e);n&&($l(t,t=>{if("defs"===t.tagName.toLowerCase())return!1;Array.from(t.attributes).forEach(e=>{const r=e.value;if(!r.includes("url("))return;const i=r.replace(XL,(t,e)=>{const r=encodeURIComponent(e);return`url("${n}#${r}")`});i!==r&&t.setAttribute(e.name,i)})}),QL(t))}(o)):yield function(t){return BL(this,void 0,void 0,function*(){const e=t.querySelectorAll("use"),n=function(t){const e=lc(t,YL);if(e)return e;const n=Ol("defs");return ac(n,YL),t.prepend(n),n}(t);e.forEach(e=>{const r=e.getAttribute("href");if(r&&!t.querySelector(r)){const t=document.querySelector(r);t&&n.appendChild(t.cloneNode(!0))}})})}(o),yield function(t){return HL(this,arguments,void 0,function*(t,e=!0){const n=function(t){const e=new Set,n=t=>{t&&ts(t).forEach(t=>{const n=ns(t);n&&e.add(n)})};n(t.getAttribute("font-family"));const r=t.querySelectorAll("foreignObject span");for(const t of r)n(t.style.fontFamily);return e}(t);if(0===n.size)return;const r=[];yield Promise.all(Array.from(n).map(t=>HL(this,void 0,void 0,function*(){const n=function(t){const e=[],n=ts(t).map(t=>ns(t));return document.fonts.forEach(t=>{n.includes(ns(t.family))&&"loaded"===t.status&&e.push(t)}),e}(t);if(!n.length)return;const i=yield function(t){return HL(this,void 0,void 0,function*(){const e=Ms(t),n=[];return yield Promise.allSettled(e.map(t=>HL(this,void 0,void 0,function*(){const e=yield mc(t).then(t=>t.text()).catch(()=>(console.error(`Failed to fetch font CSS: ${t}`),null));if(e)try{NL.parse(e).walkAtRules("font-face",t=>{const e={};t.walkDecls(t=>{e[t.prop]=t.value}),n.push(e)})}catch(e){console.error(`Failed to parse CSS: ${t}`,e)}}))),n})}(t);if(!i.length)return;const o=yield Promise.all(i.map(t=>HL(this,void 0,void 0,function*(){const r={"font-family":null!==(o=(i=t)["font-family"])&&void 0!==o?o:"",src:null!==(s=i.src)&&void 0!==s?s:"","font-style":null!==(a=i["font-style"])&&void 0!==a?a:"normal","font-display":null!==(l=i["font-display"])&&void 0!==l?l:"swap","font-weight":null!==(c=i["font-weight"])&&void 0!==c?c:"400","unicode-range":null!==(h=i["unicode-range"])&&void 0!==h?h:"U+0-FFFF"};var i,o,s,a,l,c,h;const u=r["unicode-range"].replace(/\s/g,"");if(!n.find(t=>t.unicodeRange&&t.unicodeRange.replace(/\s/g,"")===u))return null;const d=function(t,e){const n=ts(t);let r=null;for(const t of n)if(r=bs(t),r)break;if(!r)return null;const i=os(e),o=r.fontWeight[i];return o?kc(r.baseUrl,o.replace(/\/result.css$/,"")):null}(r["font-family"],os(r["font-weight"]));if(!d)return null;const f=r.src.match(/url\(["']?(.*?\.woff2)[^"']*["']?\)/);if(!(null==f?void 0:f[1]))return null;const p=kc(d,f[1]);if(e){const t=yield function(t){return HL(this,void 0,void 0,function*(){const e=yield mc(t);if(!e.ok)throw new Error(`Failed to load font: ${t}`);const n=yield e.blob();return yield new Promise((t,e)=>{const r=new FileReader;r.onloadend=()=>{t(r.result)},r.onerror=e,r.readAsDataURL(n)})})}(p);r.src=`url(${t}) format('woff2')`}else r.src=`url(${p}) format('woff2')`;return r})));r.push(...o.filter(Boolean)||[])}))),r.length>0&&function(t,e){const n=[],r=new Set;for(const t of e){const e=[t["font-family"],t["font-weight"],t["font-style"],t["unicode-range"],t.src].join("|");r.has(e)||(r.add(e),n.push(t))}if(0===n.length)return;const i=Ol("style",{type:"text/css"});i.innerHTML=n.map(t=>`\n@font-face {\n font-family: ${t["font-family"]};\n src: ${t.src};\n font-style: ${t["font-style"]};\n font-weight: ${t["font-weight"]};\n font-display: ${t["font-display"]};\n unicode-range: ${t["unicode-range"]};\n}\n`.trim()).join("\n");const o=t.querySelector("defs");o&&o.parentNode?o.parentNode.insertBefore(i,o.nextSibling):t.insertBefore(i,t.firstChild)}(t,r)})}(o,r),n&&function(t){t.style.removeProperty("background-color");const e=lc(t,"background");null==e||e.remove()}(o),function(t){(function(t){const e=lc(t,"btns-group");null==e||e.remove();const n=lc(t,"btn-icon-defs");null==n||n.remove()})(t),function(t){const e=t.querySelector("[data-element-type=transient-container]");null==e||e.remove()}(t),function(t){t.querySelectorAll("g").forEach(t=>{t.removeAttribute("x"),t.removeAttribute("y"),t.removeAttribute("width"),t.removeAttribute("height")})}(t),function(t){$l(t,t=>{for(const e in t.dataset)delete t.dataset[e]})}(t)}(o),o})}const YL="icon-defs";function GL(t,e,n=new Set){Array.from(e.attributes).forEach(e=>{n.has(e.name)||("style"!==e.name?"class"!==e.name?t.setAttribute(e.name,e.value):function(t,e){const n=t.getAttribute("class");t.setAttribute("class",n?`${n} ${e}`.trim():e)}(t,e.value):function(t,e){const n=t.getAttribute("style");if(!n)return void t.setAttribute("style",e);const r=n.trim().endsWith(";")?"":";";t.setAttribute("style",`${n}${r}${e}`)}(t,e.value))})}const XL=/url\(\s*['"]?#([^'")\s]+)['"]?\s*\)/g;function ZL(t,e){for(const n of Array.from(t.attributes)){const t=n.value;if(t.includes("url("))for(const n of t.matchAll(XL))n[1]&&e(n[1]);"href"!==n.name&&"xlink:href"!==n.name||"#"!==t[0]||e(t.slice(1))}}function KL(t){return globalThis.CSS&&"function"==typeof globalThis.CSS.escape?globalThis.CSS.escape(t):function(t){const e=String(t),n=e.length;let r="";if(0===n)return"";for(let t=0;t<n;t++){const i=e.charCodeAt(t);0!==i?i>=1&&i<=31||127===i||0===t&&i>=48&&i<=57||1===t&&i>=48&&i<=57&&45===e.charCodeAt(0)?r+="\\"+i.toString(16)+" ":r+=0===t&&1===n&&45===i||!(i>=128||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||45===i||95===i)?"\\"+e.charAt(t):e.charAt(t):r+="�"}return r}(t)}function QL(t){Array.from(t.querySelectorAll("defs")).forEach(t=>t.remove())}var JL=n("./node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.mjs"),tT=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})};class eT{constructor(){this.undoStack=[],this.redoStack=[]}init(t){Object.assign(this,t)}execute(t){return tT(this,void 0,void 0,function*(){yield t.apply(this.state),this.undoStack.push(t),this.redoStack=[],this.emitHistoryChange("execute")})}executeBatch(t){return tT(this,void 0,void 0,function*(){if(0===t.length)return;const e=new gS(t);yield this.execute(e)})}undo(){return tT(this,void 0,void 0,function*(){const t=this.undoStack.pop();t&&(yield t.undo(this.state),this.redoStack.push(t),this.emitHistoryChange("undo"))})}redo(){return tT(this,void 0,void 0,function*(){const t=this.redoStack.pop();t&&(yield t.apply(this.state),this.undoStack.push(t),this.emitHistoryChange("redo"))})}serialize(){return this.undoStack.map(t=>t.serialize())}clear(){this.undoStack=[],this.redoStack=[]}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}getHistorySize(){return this.undoStack.length}destroy(){this.clear()}emitHistoryChange(t){var e;null===(e=this.emitter)||void 0===e||e.emit("history:change",{type:"history:change",action:t})}}var nT=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})};class rT{constructor(){this.extensions=new PS,this.interactions=[],this.active=!1,this.running=null,this.concurrentInteractions=new Set,this.selection=new Set,this.handleClick=t=>{const e=this.editor.getDocument(),n="function"==typeof t.composedPath?t.composedPath():[],r=Gz(t,e)||n.some(t=>t instanceof HTMLElement&&function(t){let e=t;for(;e;){if(lc(e,no))return!0;e=e.parentElement}return!1}(t));t.target&&r?this.activate():this.deactivate()}}init(t){Object.assign(this,t),document.addEventListener("click",this.handleClick),this.interactions.forEach(t=>{this.extensions.register(t.name,t),t.init({emitter:this.emitter,editor:this.editor,commander:this.commander,state:this.state,interaction:this}),this.emitter.emit("interaction:registered",t)})}isActive(){return this.active}select(t,e){const n=this.getSelection(),r=[],i=[];if("replace"===e){const e=new Set(t);n.forEach(t=>{e.has(t)||i.push(t)}),t.forEach(t=>{this.selection.has(t)||r.push(t)}),this.selection=e}else"add"===e?t.forEach(t=>{this.selection.has(t)||(this.selection.add(t),r.push(t))}):"remove"===e?t.forEach(t=>{this.selection.delete(t)&&i.push(t)}):"toggle"===e&&t.forEach(t=>{this.selection.has(t)?(this.selection.delete(t),i.push(t)):(this.selection.add(t),r.push(t))});const o=this.getSelection();this.emitter.emit("selection:change",{type:"selection:change",previous:n,next:o,added:r,removed:i,mode:e})}getSelection(){return[...this.selection]}isSelected(t){return this.selection.has(t)}clearSelection(){const t=this.getSelection();this.selection.clear(),this.emitter.emit("selection:change",{type:"selection:change",previous:t,next:[],added:[],removed:t,mode:"replace"})}activate(){this.active=!0,this.emitter.emit("activated")}deactivate(){this.active=!1,this.running=null,this.clearSelection(),this.emitter.emit("deactivated")}executeExclusiveInteraction(t,e){return nT(this,void 0,void 0,function*(){if(this.active&&!this.running){this.running=t;try{this.emitter.emit("interaction:started",t),yield e(),this.emitter.emit("interaction:ended",t)}catch(e){console.error(`Error occurred during exclusive interaction "${t.name}":`,e),this.emitter.emit("interaction:error",t,e)}finally{this.running=null}}})}executeConcurrentInteraction(t,e){return nT(this,void 0,void 0,function*(){if(this.active){this.concurrentInteractions.add(t);try{this.emitter.emit("interaction:started",t),yield e(),this.emitter.emit("interaction:ended",t)}catch(e){console.error(`Error occurred during concurrent interaction "${t.name}":`,e),this.emitter.emit("interaction:error",t,e)}finally{this.concurrentInteractions.delete(t)}}})}getOrCreateTransientContainer(){const t="transient-container",e=this.editor.getDocument(),n=lc(e,t);if(n&&n.isConnected)return n;const r=Ol("g");return ac(r,t),e.appendChild(r),r}appendTransientElement(t){return this.getOrCreateTransientContainer().appendChild(t),t}destroy(){this.extensions.forEach(t=>{t.destroy(),this.emitter.emit("interaction:destroyed",t)}),this.extensions.destroy(),this.active=!1,this.running=null,this.clearSelection(),document.removeEventListener("click",this.handleClick),this.getOrCreateTransientContainer().remove()}}class iT{constructor(){this.extensions=new PS}init(t,e=[]){Object.assign(this,t),e.forEach(t=>{this.registerPlugin(t)})}getPlugin(t){return this.extensions.get(t)}getPlugins(){return this.extensions.getAll()}registerPlugin(t){this.extensions.register(t.name,t),t.init({emitter:this.emitter,editor:this.editor,commander:this.commander,plugin:this,state:this.state}),this.emitter.emit("plugin:registered",t)}unregisterPlugin(t){const e=this.extensions.get(t);e&&(e.destroy(),this.extensions.unregister(t),this.emitter.emit("plugin:unregistered",e))}destroy(){this.extensions.getAll().forEach(t=>{this.unregisterPlugin(t.name),this.emitter.emit("plugin:destroyed",t)}),this.extensions.destroy()}}class oT{init(t){Object.assign(this,t)}addItemDatum(t,e){const n=t.slice(0,-1),r=t[t.length-1],i=Array.isArray(e)?e:[e];kS(this.options.data,n).splice(r,0,...i),this.emitter.emit("options:data:item:add",{indexes:t,datum:e}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"add",path:"data.items",indexes:t,value:i}]})}updateItemDatum(t,e){const n=to(this.options.data,t);null!=n&&0!==t.length&&(Object.assign(n,e),this.emitter.emit("options:data:item:update",{indexes:t,datum:e}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:"data.items",indexes:t,value:e}]}))}removeItemDatum(t,e=1){const n=t.slice(0,-1),r=t[t.length-1],i=kS(this.options.data,n).splice(r,e);this.emitter.emit("options:data:item:remove",{indexes:t,datum:i}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"remove",path:"data.items",indexes:t,value:i}]})}updateData(t,e){this.options.data[t]=e,this.emitter.emit("options:data:update",{key:t,value:e}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:`data.${t}`,value:e}]})}updateElement(t,e){this.updateBuiltInElement(t,e)}updateOptions(t,e){const{bubbleUp:n=!1}=e||{};Uz(this.options,t,"",{bubbleUp:n,collector:(t,e,n)=>{this.editor.syncRegistry.trigger(t,e,n)}}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:"",value:t}]})}getOptions(){return this.options}updateBuiltInElement(t,e){var n,r;const{data:i}=this.options,{attributes:o={}}=e,s=cc(t),a=sc(t)||"item-label"===s||"item-desc"===s||"item-value"===s||"item-illus"===s,l=a?jS(t):void 0;if(a){const t=to(i,l);if(null==t)return;const e=s.replace("item-","");t.attributes||(t.attributes={}),(n=t.attributes)[e]||(n[e]={}),Object.assign(t.attributes[e],o)}else"title"!==s&&"desc"!==s&&"illus"!==s||(i.attributes||(i.attributes={}),(r=i.attributes)[s]||(r[s]={}),Object.assign(i.attributes[s],o));this.emitter.emit("options:element:update",{element:t,props:e}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",role:s,indexes:l,path:a?`${CS(l)}.attributes.${s.replace("item-","")}`:`data.attributes.${s}`,value:e}]})}destroy(){}}class sT{constructor(t){this.getOptions=t,this.handlers=new Map,this.isDispatching=!1,this.isDestroyed=!1}register(t,e,n){if(this.handlers.has(t)||this.handlers.set(t,new Set),this.handlers.get(t).add(e),null==n?void 0:n.immediate){const n=Ji(this.getOptions(),t);e(n,void 0)}return()=>{const n=this.handlers.get(t);n&&(n.delete(e),0===n.size&&this.handlers.delete(t))}}trigger(t,e,n){if(this.isDestroyed||this.isDispatching)return void(this.isDispatching&&console.warn(`[SyncRegistry] Recursive update detected on ${t}. Skipped to prevent loop.`));const r=this.handlers.get(t);if(r){this.isDispatching=!0;try{r.forEach(t=>t(e,n))}finally{this.isDispatching=!1}}}destroy(){this.isDestroyed=!0,this.handlers.clear()}}class aT{constructor(t,e,n){if(this.emitter=t,this.document=e,this.options=n,!e.isConnected)throw new Error("The provided document is not connected to the DOM.");e.style.userSelect="none";const r=new eT,i=new oT,o=new iT,s=new rT,a=new sT(()=>i.getOptions());this.commander=r,this.state=i,this.plugin=o,this.interaction=s,this.syncRegistry=a,r.init({state:i,emitter:t}),i.init({emitter:t,editor:this,commander:r,options:n});const l=new CP;o.init({emitter:t,editor:this,commander:r,state:i},[l,...n.plugins||[]]),s.init({emitter:t,editor:this,commander:r,state:i,interactions:n.interactions})}registerSync(t,e,n){return this.syncRegistry.register(t,e,n)}getDocument(){return this.document}destroy(){this.document.style.userSelect="",this.interaction.destroy(),this.plugin.destroy(),this.commander.destroy(),this.state.destroy(),this.syncRegistry.destroy()}}const lT=function(t,e,n){(void 0!==n&&!$i(t[e],n)||void 0===n&&!(e in t))&&HS(t,e,n)},cT=function(t,e,n){for(var r=-1,i=Object(t),o=n(t),s=o.length;s--;){var a=o[hT?s:++r];if(!1===e(i[a],a,i))break}return t};var hT;const uT=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},dT=function(t,e,n,r,i,o,s){var a=uT(t,n),l=uT(e,n),c=s.get(l);if(c)lT(t,n,c);else{var h=o?o(a,l,n+"",t,e,s):void 0,u=void 0===h;if(u){var d=Jr(l),f=!d&&QS(l),p=!d&&!f&&c$(l);h=l,d||f||p?Jr(a)?h=a:function(t){return ui(t)&&y$(t)}(a)?h=O$(a):f?(u=!1,h=j$(l,!0)):p?(u=!1,h=lz(l,!0)):h=[]:Oz(l)||GS(l)?(h=a,GS(a)?h=function(t){return FS(t,w$(t))}(a):gi(a)&&!mi(a)||(h=fz(l))):u=!1}u&&(s.set(l,h),i(h,l,r,o,s),s.delete(l)),lT(t,n,h)}},fT=function t(e,n,r,i,o){e!==n&&cT(n,function(s,a){if(o||(o=new RS),gi(s))dT(e,n,a,r,t,i,o);else{var l=i?i(uT(e,a),s,a+"",e,n,o):void 0;void 0===l&&(l=s),lT(e,a,l)}},w$)},pT=function(t){return t};var gT=Math.max;const mT=function(t){return function(){return t}};var yT=NS?function(t,e){return NS(t,"toString",{configurable:!0,enumerable:!1,value:mT(e),writable:!0})}:pT,vT=Date.now;const xT=(bT=yT,wT=0,_T=0,function(){var t=vT(),e=16-(t-_T);if(_T=t,e>0){if(++wT>=800)return arguments[0]}else wT=0;return bT.apply(void 0,arguments)});var bT,wT,_T;const MT=function(t,e){return xT(function(t,e,n){return e=gT(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=gT(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=n(s),function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}(t,this,a)}}(t,e,pT),t+"")};var kT,CT=(kT=function(t,e,n){fT(t,e,n)},MT(function(t,e){var n=-1,r=e.length,i=r>1?e[r-1]:void 0,o=r>2?e[2]:void 0;for(i=kT.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(t,e,n){if(!gi(n))return!1;var r=typeof e;return!!("number"==r?y$(n)&&t$(e,n.length):"string"==r&&e in n)&&$i(n[e],t)}(e[0],e[1],o)&&(i=r<3?void 0:i,r=1),t=Object(t);++n<r;){var s=e[n];s&&kT(t,s,n,i)}return t}));const jT=CT;var OT=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function AT(t){const{container:e="#container",padding:n=0,template:r,design:i,theme:h,themeConfig:u,data:d}=t,f=OT(t,["container","padding","template","design","theme","themeConfig","data"]),p=r?function(t){return c.has(t)?t:function(t,e){const n=o(t);if(!n)return;let r,i=Number.POSITIVE_INFINITY,c=-1;for(const t of e){const e=o(t);if(e===n)return t;const h=s(n,e),u=a(n,e);l(r,i,c,t,h,u)&&(r=t,i=h,c=u)}return r}(t,c.keys())}(r):void 0,g="string"==typeof e?document.querySelector(e)||document.createElement("div"):e,m=p?function(t){return c.get(t)}(p):void 0,y=jT({},null==m?void 0:m.themeConfig,u),v=h||u||(null==m?void 0:m.themeConfig)?function(t,e={}){var n;const r=t?vh.get(t)||{}:{},i=jT({},r,e);return i.palette=e.palette||r.palette,i.stylize=null!==(n=e.stylize)&&void 0!==n?n:r.stylize,i.colorPrimary||(i.colorPrimary="#FF356A"),i.palette||(i.palette=[i.colorPrimary]),i}(h,y):void 0,x={container:g,padding:Oc(n)};if(m){const t=OT(m,["design"]);Object.assign(x,t)}Object.assign(x,f);const b=function(t,e){if(!t)return;if(Array.isArray(t.items)&&t.items.length)return t;const{lists:n,sequences:r,compares:i,nodes:o,values:s,root:a}=t;let l=(()=>{if(!e)return null;const t={list:n,sequence:r,compare:i,relation:o,chart:s,hierarchy:a?[a]:[]}[e.split("-")[0]];return(null==t?void 0:t.length)?t:null})()||((null==n?void 0:n.length)?n:(null==r?void 0:r.length)?r:(null==i?void 0:i.length)?i:(null==o?void 0:o.length)?o:(null==s?void 0:s.length)?s:a?[a]:(null===(c=t.items)||void 0===c?void 0:c.length)?t.items:[]);var c;return l===r&&"desc"===t.order&&(l=[...l].reverse()),Object.assign(Object.assign({},t),{items:l})}(d,p);if(b&&(x.data=b),p&&(x.template=p),(null==m?void 0:m.design)||i){const e=Object.assign(Object.assign({},v?Object.assign(Object.assign({},t),{themeConfig:v}):t),{data:b||d}),n=function(t,e){const{structure:n,title:r,item:i,items:o}=t||{},s=zT(i||(null==o?void 0:o[0]),e);return{structure:ST(n),title:$T(r,e),item:s,items:o?o.map(t=>zT(t,e)):[s]}}(Object.assign(Object.assign({},null==m?void 0:m.design),i),e);eo(n)&&(x.design=n)}return h&&(x.theme=h),v&&(x.themeConfig=v),x}function ET(t){if("string"==typeof t)return{type:t};if(!("type"in t))throw new Error("Type is required");return t}function ST(t){if(!t)return null;const e=ET(t),{type:n}=e,r=OT(e,["type"]),i=function(t){return $f.get(t)}(n);if(!i)return null;const{component:o}=i;return Object.assign(Object.assign({},i),{component:t=>o(Object.assign(Object.assign({},t),r))})}function $T(t,e){if(!t)return{component:null};const n=ET(t),r=OT(n,["type"]),{themeConfig:i}=e,o=(null==i?void 0:i.colorBg)||"#fff",s=PT(o,o);return{component:t=>(t=>{const{x:e=0,y:n=0,alignHorizontal:r="center",title:i,desc:o,descLineNumber:s=2,themeColors:a}=t;return i||o?D(yh,{flexDirection:"column",justifyContent:"center",alignItems:"center",x:e,y:n,gap:8,children:[i&&F(t=>F(Pc,Object.assign({},{fontSize:24,fill:a.colorPrimaryText,lineHeight:1.4,alignHorizontal:r},t,{"data-element-type":"title",children:i})),{}),o&&F(t=>F(Pc,Object.assign({},{fontSize:16,fill:a.colorTextSecondary,alignHorizontal:r,lineHeight:1.4,height:24*s},t,{"data-element-type":"desc",children:o})),{})]}):null})(Object.assign(Object.assign(Object.assign({},t),{themeColors:s}),r))}}function zT(t,e){if(!t)return null;const n=ET(t),{type:r}=n,i=OT(n,["type"]),o=function(t){return Nh.get(t)}(r);if(!o)return null;const{component:s,options:a}=o;return Object.assign(Object.assign({},o),{component:t=>{var n;const{indexes:r}=t,{data:o,themeConfig:a}=e,l=(null==a?void 0:a.colorBg)||"#fff",{themeColors:c=PT($s(null==a?void 0:a.palette,r,null===(n=null==o?void 0:o.items)||void 0===n?void 0:n.length)||(null==a?void 0:a.colorPrimary)||"#FF356A",l)}=t,h=OT(t,["themeColors"]);return s(Object.assign(Object.assign({themeColors:c},h),i))},options:a})}function PT(t,e="#fff"){return bh({colorPrimary:t,isDarkMode:Qr(e),colorBg:e})}function LT(t){const e=t.trim();if(!e)return null;const n=e.match(/^([^:\s=]+)\s*[:=]\s*(.*)$/);if(n)return{key:n[1],value:n[2].trim()};const r=e.match(/^([^\s]+)\s+(.*)$/);return r?{key:r[1],value:r[2].trim()}:{key:e,value:void 0}}function TT(t){return"__proto__"===t||"constructor"===t||"prototype"===t}function IT(t,e){return{kind:"object",line:t,value:e,entries:{}}}function RT(t){return{kind:"array",line:t,items:[]}}function NT(t){return LT(t)}function HT(t,e){return{kind:"value",line:e,value:t}}const BT=/^(#[0-9a-f]{8}|#[0-9a-f]{6}|#[0-9a-f]{4}|#[0-9a-f]{3})/i,WT=/^((?:rgb|rgba|hsl|hsla)\([^)]*\))/i;function FT(t){const e=t.trim();return/^true$/i.test(e)?"true":/^false$/i.test(e)?"false":void 0}function DT(t){const e=t.trim(),n=FT(e);return"true"===n||"false"!==n&&(/^-?\d+(\.\d+)?$/.test(e)?parseFloat(e):e)}function VT(t){return"value"===t.kind||"object"===t.kind?t.value:void 0}function UT(t,e,n,r,i,o){t.push({path:n,line:e.line,code:r,message:i,raw:o})}function qT(t,e="any"){let n,r=t.trim();if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1).trim()),!r)return[];n=r.split("comma"===e?",":"space"===e?/\s+/:/[,\s]+/);const i=[];for(const t of n){const e=t.trim();if(e){if("#"===e||"//"===e)break;i.push(e)}}return i}function YT(t){const e=function(t){let e=t.trim();const n=e.search(/\s+#(?![0-9a-f])/i);n>=0&&(e=e.slice(0,n).trimEnd());const r=e.indexOf("//");return r>=0&&(e=e.slice(0,r).trimEnd()),e}(t);if(!e)return;const n=e.match(BT);if(n&&n[0].length===e.length)return e;const r=e.match(WT);return r&&r[1].length===e.length||(0,ea.A)(e).isValid()?e:void 0}function GT(t,e,n,r={}){const i=VT(t);if(void 0===i)return void UT(n,t,e,"schema_mismatch","Expected color value.");const o=YT(i);if(o)return o;r.soft||UT(n,t,e,"invalid_value","Invalid color value.",i)}function XT(t){if("array"===t.kind)return t.items.map(t=>XT(t));if("value"===t.kind)return DT(t.value);if(!(Object.keys(t.entries).length>0)&&void 0!==t.value)return DT(t.value);const e={};return void 0!==t.value&&(e.value=DT(t.value)),Object.entries(t.entries).forEach(([t,n])=>{e[t]=XT(n)}),e}function ZT(t,e,n,r){switch(e.kind){case"union":return function(t,e,n,r){let i,o=null;for(const r of e.variants){const e=[],s=ZT(t,r,n,e);(null===o||e.length<o.length)&&(o=e,i=s)}return o&&r.push(...o),i}(t,e,n,r);case"string":{const e=VT(t);return void 0===e?void UT(r,t,n,"schema_mismatch","Expected string value."):e}case"number":{const e=VT(t);if(void 0===e)return void UT(r,t,n,"schema_mismatch","Expected number value.");const i=e.trim().match(/^(-?\d+(\.\d+)?)(?:\s*(#|\/\/).*)?$/);return i?parseFloat(i[1]):void UT(r,t,n,"invalid_value","Invalid number value.",e)}case"boolean":{const e=VT(t);if(void 0===e)return void UT(r,t,n,"schema_mismatch","Expected boolean value.");const i=FT(e);return i?"true"===i:void UT(r,t,n,"invalid_value","Invalid boolean value.",e)}case"enum":{const i=VT(t);if(void 0===i)return void UT(r,t,n,"schema_mismatch","Expected enum value.");const o=FT(i),s=o&&e.values.includes(o)?o:i;return e.values.includes(s)?s:void UT(r,t,n,"invalid_value","Invalid enum value.",i)}case"array":{if("array"===t.kind)return t.items.map((t,i)=>ZT(t,e.item,`${n}[${i}]`,r)).filter(t=>void 0!==t);if("object"===t.kind&&Object.keys(t.entries).length>0)return void UT(r,t,n,"schema_mismatch","Expected array value.");const i=VT(t);if(void 0===i)return void UT(r,t,n,"schema_mismatch","Expected array value.");const o=i.trim();if(o.startsWith("[")&&!o.endsWith("]"))return;return qT(i,e.split).map((i,o)=>ZT(HT(i,t.line),e.item,`${n}[${o}]`,r)).filter(t=>void 0!==t)}case"palette":{if("array"===t.kind){const e=ZT(t,{kind:"array",item:{kind:"color"},split:"any"},n,r);return Array.isArray(e)&&e.length>0?e:void 0}if("object"===t.kind&&Object.keys(t.entries).length>0)return void UT(r,t,n,"schema_mismatch","Expected palette value.");const e=VT(t);if(void 0===e)return void UT(r,t,n,"schema_mismatch","Expected palette value.");const i=e.trim();if(i.startsWith("[")&&!i.endsWith("]"))return;const o=YT(i);if(o)return[o];const s=qT(e,"any");if(function(t,e){return e.length>1||!(!t.startsWith("[")||!t.endsWith("]"))||void 0!==YT(t)}(i,s)){const e=s.map((e,i)=>GT(HT(e,t.line),`${n}[${i}]`,r)).filter(t=>void 0!==t);return e.length>0?e:void 0}return e}case"color":return GT(t,n,r,{soft:e.soft});case"object":{if("array"===t.kind)return void UT(r,t,n,"schema_mismatch","Expected object value.");const i={};if("value"===t.kind){if(e.shorthandKey)return i[e.shorthandKey]=t.value,i;const o=NT(t.value);if(void 0!==(null==o?void 0:o.value)){if(e.fields[o.key]){const s=ZT(HT(o.value,t.line),e.fields[o.key],`${n}.${o.key}`,r);return void 0!==s&&(i[o.key]=s),i}return e.allowUnknown?(i[o.key]=DT(o.value),i):(UT(r,t,`${n}.${o.key}`,"unknown_key","Unknown key in object.",o.key),i)}return e.allowUnknown?(i.value=DT(t.value),i):void UT(r,t,n,"invalid_value","Expected object value.")}if(void 0!==t.value)if(e.shorthandKey&&void 0===i[e.shorthandKey])i[e.shorthandKey]=t.value;else{const o=NT(t.value);if(void 0!==(null==o?void 0:o.value))if(e.fields[o.key]){const s=ZT(HT(o.value,t.line),e.fields[o.key],`${n}.${o.key}`,r);void 0!==s&&void 0===i[o.key]&&(i[o.key]=s)}else e.allowUnknown?i[o.key]=DT(o.value):UT(r,t,`${n}.${o.key}`,"unknown_key","Unknown key in object.",o.key);else e.allowUnknown&&(i.value=DT(t.value))}return Object.entries(t.entries).forEach(([t,o])=>{const s=e.fields[t];if(!s)return e.allowUnknown?void(i[t]=XT(o)):void UT(r,o,`${n}.${t}`,"unknown_key","Unknown key in object.",t);const a=ZT(o,s,`${n}.${t}`,r);void 0!==a&&(i[t]=a)}),i}default:return}}const KT=t=>({kind:"enum",values:t}),QT=(t={})=>({kind:"color",soft:t.soft}),JT=(t,e="any")=>({kind:"array",item:t,split:e}),tI=(t,e={})=>({kind:"object",fields:t,allowUnknown:e.allowUnknown,shorthandKey:e.shorthandKey}),eI=(...t)=>({kind:"union",variants:t}),nI=()=>tI({},{allowUnknown:!0}),rI={fill:QT({soft:!0}),stroke:QT({soft:!0})},iI=tI(rI,{allowUnknown:!0}),oI=tI(rI,{allowUnknown:!0}),sI=tI({},{allowUnknown:!0});sI.fields={id:{kind:"string"},label:{kind:"string"},value:eI({kind:"number"},{kind:"string"}),desc:{kind:"string"},icon:eI({kind:"string"},nI()),illus:eI({kind:"string"},nI()),attributes:nI(),group:{kind:"string"},category:{kind:"string"},children:JT(sI)};const aI=tI({id:{kind:"string"},from:{kind:"string"},to:{kind:"string"},label:{kind:"string"},direction:KT(["forward","both","none"]),showArrow:KT(["true","false"]),arrowType:KT(["arrow","triangle","diamond"]),lineStyle:KT(["solid","dashed"])},{allowUnknown:!0}),lI=tI({type:{kind:"string"},colorBg:QT(),colorPrimary:QT(),palette:{kind:"palette"},title:iI,desc:iI,shape:oI,base:tI({global:tI({},{allowUnknown:!0}),shape:oI,text:iI}),item:tI({icon:tI({},{allowUnknown:!0}),label:iI,desc:iI,value:iI,shape:oI}),stylize:tI({type:KT(["rough","pattern"]),roughness:{kind:"number"},bowing:{kind:"number"},fillWeight:{kind:"number"},hachureGap:{kind:"number"},pattern:{kind:"string"},backgroundColor:QT(),foregroundColor:QT(),scale:{kind:"number"}},{shorthandKey:"type"}),elements:tI({},{allowUnknown:!0})},{shorthandKey:"type"}),cI=tI({},{allowUnknown:!0,shorthandKey:"type"}),hI=tI({structure:cI,item:cI,items:JT(cI),title:cI}),uI=tI({title:{kind:"string"},desc:{kind:"string"},items:JT(sI),lists:JT(sI),sequences:JT(sI),root:sI,compares:JT(sI),nodes:JT(sI),relations:JT(aI),values:JT(sI),order:KT(["asc","desc"]),illus:nI(),attributes:nI()}),dI=tI({type:{kind:"string"}},{shorthandKey:"type"}),fI=tI({template:dI,design:hI,data:uI,theme:lI,width:eI({kind:"number"},{kind:"string"}),height:eI({kind:"number"},{kind:"string"})}),pI=/(?:[<>o.x-]{2,}|[<>=]{2,})/,gI=/(?:[<>o.x-]{2,}|[<>=]{2,})/g;function mI(t){let e=t.trim();if(!e)return"";const n=e[0],r=e[e.length-1];return('"'===n&&'"'===r||"'"===n&&"'"===r)&&(e=e.slice(1,-1)),e=e.replace(/\\(["'])/g,"$1").replace(/("|&#quot;|#quot;)/g,'"').replace(/('|'|#apos;)/g,"'"),e.trim()}function yI(t,e){let n=e;for(;n<t.length&&/\s/.test(t[n]);)n+=1;return n}function vI(t,e){let n=yI(t,e);if(n>=t.length)return null;const r=n;for(;n<t.length;){const e=t[n];if(/\s/.test(e)||"["===e||"("===e||"@"===e||"|"===e||"<"===e||">"===e)break;if("-"===e&&("-"===t[n+1]||">"===t[n+1]||"<"===t[n+1]))break;n+=1}if(n===r)return null;const i=t.slice(r,n).trim();if(!i)return null;if(t.startsWith("@{",n)){const e=t.indexOf("}",n+2);-1!==e&&(n=e+1)}let o;if(n=yI(t,n),"["===t[n]){const e=t.indexOf("]",n+1);-1!==e&&(o=mI(t.slice(n+1,e)),n=e+1)}else if("("===t[n]){const e=t.indexOf(")",n+1);if(-1!==e){let r=t.slice(n+1,e).trim();r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1).trim()),o=mI(r),n=e+1}}return{node:{id:i,label:o},nextIndex:n}}function xI(t,e){gI.lastIndex=e;const n=gI.exec(t);if(!n)return null;const r=n[0],i=n.index,o=i+r.length;let s=function(t){return mI(t.trim().replace(/^[-=.ox]+/,"").trim())}(t.slice(e,i))||void 0,a=r,l=o;{const e=a.includes("<"),n=a.includes(">");if(e&&!n){const e=new RegExp(gI.source,"g");e.lastIndex=o;const n=e.exec(t);if(n&&n[0].includes(">")&&!n[0].includes("<")){const e=t.slice(o,n.index).trim();if(e)return{label:mI(e)||s,direction:"both",reverse:!1,nextIndex:n.index+n[0].length}}}}if(l=yI(t,l),"|"===t[l]){const e=t.indexOf("|",l+1);if(-1!==e){s=mI(t.slice(l+1,e))||s,l=e+1;const n=yI(t,l);gI.lastIndex=n;const r=gI.exec(t);r&&r.index===n?(a+=r[0],l=r.index+r[0].length):l=n}}const c=a.includes("<"),h=a.includes(">"),u=a.match(/[xo]/gi)||[],d=/^[xo]/i.test(a),f=/[xo]$/i.test(a);let p="none",g=!1;return c&&h||c&&f||h&&d||d&&f?p="both":(c||h||u.length>0)&&(p="forward",g=c&&!h),{label:s,direction:p,reverse:g,nextIndex:l}}var bI=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const wI=new Set(["infographic","template","design","data","theme","width","height"]);function _I(t){t.forEach(t=>{!t.id&&t.label&&(t.id=t.label)})}function MI(t){var e;const{ast:n,errors:r}=function(t){const e=[],n=IT(0),r=[{indent:-1,node:n,parent:null,key:null}];return t.split(/\r?\n/).forEach((t,n)=>{const i=n+1;if(!t.trim())return;const{indent:o,content:s}=function(t){let e=0,n=0;for(;n<t.length;){const r=t[n];if(" "!==r){if("\t"!==r)break;e+=2,n+=1}else e+=1,n+=1}return{indent:e,content:t.slice(n)}}(t);if(function(t){const e=t.trimStart();return e.startsWith("#")||e.startsWith("//")}(s)||function(t){return/^```[\w-]*\s*$/.test(t.trim())}(s))return;const a=function(t){return t.trimEnd()}(s);if(!a.trim())return;for(;r.length>1&&o<=r[r.length-1].indent;)r.pop();const l=r[r.length-1];let c=l.node;const h=a.trim();if(h.startsWith("-")&&(1===h.length||" "===(u=h[1])||"\t"===u)){if("array"!==c.kind){if("object"!==c.kind||0!==Object.keys(c.entries).length||void 0!==c.value||!l.parent||!l.key)return void e.push({path:"",line:i,code:"bad_list",message:"List item is not under an array container.",raw:h});{const t=RT(c.line);if("object"===l.parent.kind)l.parent.entries[l.key]=t;else if("array"===l.parent.kind){const e=l.parent.items.indexOf(c);e>=0&&(l.parent.items[e]=t)}l.node=t,c=t}}const t=IT(i,h.slice(1).trim()||void 0);return c.items.push(t),void r.push({indent:o,node:t,parent:c})}var u;if("relations"===l.key&&!h.startsWith("-")&&/[<>=o.x-]{2,}/.test(h)){if("array"!==c.kind){if("object"!==c.kind||0!==Object.keys(c.entries).length||void 0!==c.value||!l.parent||!l.key)return void e.push({path:"",line:i,code:"bad_list",message:"List item is not under an array container.",raw:h});{const t=RT(c.line);if("object"===l.parent.kind)l.parent.entries[l.key]=t;else if("array"===l.parent.kind){const e=l.parent.items.indexOf(c);e>=0&&(l.parent.items[e]=t)}l.node=t,c=t}}const t=IT(i,h);return c.items.push(t),void r.push({indent:o,node:t,parent:c})}const d=LT(h);if(!d)return void e.push({path:"",line:i,code:"bad_syntax",message:"Invalid syntax line.",raw:h});if("object"!==c.kind)return void e.push({path:"",line:i,code:"bad_syntax",message:"Key-value pair is not under an object container.",raw:h});const f=IT(i,d.value),p=function(t,e,n,r,i){if(!e.includes("."))return TT(e)?(i.push({path:e,line:r,code:"bad_syntax",message:`Invalid key part: ${e}`,raw:e}),null):(t.entries[e]=n,{parent:t,key:e});const o=e.split(".");if(o.some(t=>!t))return i.push({path:e,line:r,code:"bad_syntax",message:"Invalid dotted key path.",raw:e}),null;let s=t;for(let t=0;t<o.length-1;t+=1){const n=o[t];if(TT(n))return i.push({path:e,line:r,code:"bad_syntax",message:`Invalid key part in dotted path: ${n}`,raw:e}),null;const a=s.entries[n];if(!a){const t=IT(r);s.entries[n]=t,s=t;continue}if("object"!==a.kind)return i.push({path:o.slice(0,t+1).join("."),line:r,code:"bad_syntax",message:"Cannot assign dotted key under a list value.",raw:e}),null;s=a}const a=o[o.length-1];return TT(a)?(i.push({path:e,line:r,code:"bad_syntax",message:`Invalid key part in dotted path: ${a}`,raw:e}),null):(s.entries[a]=n,{parent:s,key:a})}(c,d.key,f,i,e);p&&r.push({indent:o,node:f,parent:p.parent,key:p.key})}),{ast:n,errors:e}}(t),i=[],o={},s=Object.assign({},n.entries),a=function(t,e){if("infographic"in t||"template"in t)return;const[n]=Object.entries(t);if(!n)return;const[r,i]=n;return wI.has(r)||"object"!==i.kind||void 0!==i.value||Object.keys(i.entries).length>0?void 0:(e.push({path:"template",line:i.line,code:"implicit_template",message:'Inferred template from a bare first line. Prefix it with "infographic" or "template" to make the syntax explicit.',raw:r}),{template:r,inferredKey:r})}(n.entries,i);a&&delete s[a.inferredKey];const l=n.entries.infographic;let c;l&&"object"===l.kind&&(l.value&&(c=l.value),Object.entries(l.entries).forEach(([t,e])=>{t in s||(s[t]=e)})),Object.keys(s).forEach(t=>{wI.has(t)||r.push({path:t,line:s[t].line,code:"unknown_key",message:"Unknown top-level key.",raw:t})});const h=function(t,e){if(!t)return;const n=ZT(t,dI,"template",e);return n?"string"==typeof n?n:"object"==typeof n&&"string"==typeof n.type?n.type:void 0:void 0}(s.template,r);h&&(o.template=h),!o.template&&c&&(o.template=c),!o.template&&a&&(o.template=a.template);const u=s.design;if(u){const t=ZT(u,hI,"design",r);t&&(o.design=t)}const d=s.data;if(d){let t,n=d;if("object"===d.kind){const e=d.entries,{relations:r}=e,i=bI(e,["relations"]);t=r,n=Object.assign(Object.assign({},d),{entries:i})}const i=ZT(n,uI,"data",r);if(i&&(o.data=i),t){const n=function(t,e,n){const r=[],i=[],o=new Map,s=t=>{if(!pI.test(t))return;const e=function(t){const e=[],n=[],r=new Map;let i=0;const o=vI(t,i);if(!o)return{relations:e,nodes:n};let s=o.node;for(r.has(s.id)||(r.set(s.id,s),n.push(s)),i=o.nextIndex;i<t.length;){const o=xI(t,i);if(!o)break;i=o.nextIndex;const a=vI(t,i);if(!a)break;i=a.nextIndex;let l=s.id,c=a.node.id;const h=o.direction;o.reverse&&(l=a.node.id,c=s.id);const u={from:l,to:c};o.label&&(u.label=o.label),"both"===h&&(u.direction="both"),"none"===h&&(u.direction="none"),e.push(u),r.has(s.id)||(r.set(s.id,s),n.push(s)),r.has(a.node.id)||(r.set(a.node.id,a.node),n.push(a.node)),s=a.node}return{relations:e,nodes:n}}(t);e.nodes.forEach(t=>{!function(t,e,n,r){if(!n)return;const i=t.get(n);if(i)return void(!i.label&&r&&(i.label=r));const o={id:n,label:r||n};t.set(n,o),e.push(o)}(o,i,t.id,t.label)}),r.push(...e.relations)};return"array"===t.kind?t.items.forEach((t,i)=>{if("object"===t.kind&&t.value&&0===Object.keys(t.entries).length&&pI.test(t.value))return void s(t.value);const o=function(t,e,n){const r=ZT(t,aI,e,n);return r&&"object"==typeof r?"string"!=typeof r.from||"string"!=typeof r.to?null:r:null}(t,`${n}[${i}]`,e);o&&r.push(o)}):"object"===t.kind&&t.value&&s(t.value),{relations:r,items:i}}(t,r,"data.relations");if(n.relations.length>0||n.items.length>0){const t=null!==(e=o.data)&&void 0!==e?e:{};Array.isArray(t.items)&&_I(t.items),Array.isArray(t.nodes)&&_I(t.nodes);const r=Object.keys(uI.fields).filter(t=>"items"!==t&&"relations"!==t);let i=!1;for(const e of r)if(Array.isArray(t[e])&&t[e].length>0){i=!0;break}if(!i&&Array.isArray(t.items)&&t.items.length>0&&t.items.some(t=>Array.isArray(t.children)&&t.children.length>0)&&(i=!0),!i){const e=function(t){var e;const n=new Set,r=[];for(let i=t.length-1;i>=0;i-=1){const o=t[i],s=null!==(e=o.id)&&void 0!==e?e:o.label;s?n.has(s)||(n.add(s),o.id||(o.id=s),r.push(o)):r.push(o)}return r.reverse()}(Array.isArray(t.items)?t.items:[]),r=new Map;e.forEach(t=>{t.id&&r.set(t.id,t)}),n.items.forEach(t=>{const n=r.get(t.id);n?!n.label&&t.label&&(n.label=t.label):(e.push(t),r.set(t.id,t))}),t.items=e}t.relations=n.relations,o.data=t}}}const f=s.theme;if(f){const t=ZT(f,lI,"theme",r);if(t&&"object"==typeof t){const e=t,{type:n}=e,r=bI(e,["type"]);"string"==typeof n&&n&&(o.theme=n),Object.keys(r).length>0&&(o.themeConfig=r)}}const p=s.width;if(p){const t=ZT(p,fI.fields.width,"width",r);void 0!==t&&(o.width=t)}const g=s.height;if(g){const t=ZT(g,fI.fields.height,"height",r);void 0!==t&&(o.height=t)}return{options:o,errors:r,warnings:i,ast:n}}const kI={padding:20,theme:"default",themeConfig:{palette:"antv"},get plugins(){return[new $L,new RL,new LL]},get interactions(){return[new oP,new eP,new Jz,new tP,new sP,new lP,new MP,new cP]}};function CI(t,e){const n=Object.assign(Object.assign({},t),e);return(t.design||e.design)&&(n.design=Object.assign(Object.assign({},t.design),e.design)),(t.themeConfig||e.themeConfig)&&(n.themeConfig=Object.assign(Object.assign({},t.themeConfig),e.themeConfig)),(t.svg||e.svg)&&(n.svg=Object.assign(Object.assign({},t.svg),e.svg)),n}function jI(t){const e=Object.assign({},t);return e.data&&(e.data=Mz(e.data)),e.elements&&(e.elements=Mz(e.elements)),e}function OI(t){const{design:e,data:n}=t;return!(!e||!eo(e)||!n||!Array.isArray(n.items)||n.items.length<1)}class AI{constructor(t){this.rendered=!1,this.emitter=new JL.A,this.node=null,this.initialOptions={},this.setOptions(t,"replace",!0)}getOptions(){return this.options}setOptions(t,e="replace",n=!1){const{options:r,errors:i,warnings:o}=function(t){if("string"==typeof t){const{options:e,errors:n,warnings:r}=MI(t);return{options:e,errors:n,warnings:r}}return{options:jI(t),errors:[],warnings:[]}}(t);n&&(this.initialOptions=r);const s=CI("replace"===e?jI(this.initialOptions||{}):this.options||jI(this.initialOptions||{}),r);this.options=s,this.parsedOptions=AT(CI(kI,this.options)),o.length&&this.emitter.emit("warning",o),i.length&&this.emitter.emit("error",i)}render(t){t?this.setOptions(t,"replace"):!this.options&&this.initialOptions&&this.setOptions(this.initialOptions,"replace"),this.performRender()}update(t){this.setOptions(t,"merge"),this.performRender()}performRender(){var t;const e=this.parsedOptions;if(!OI(e))return void this.emitter.emit("error",new Error("Incomplete options"));const{container:n}=this.parsedOptions,r=this.compose(e),i=new wl(e,r);this.node=i.render(),null==n||n.replaceChildren(this.node),null===(t=this.editor)||void 0===t||t.destroy(),this.editor=void 0,this.options.editable&&(this.editor=new aT(this.emitter,this.node,e)),this.rendered=!0,this.emitter.emit("rendered",{node:this.node,options:this.options});const o=this.node;return o&&function(t){return function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})}(this,void 0,void 0,function*(){for(yield Promise.resolve();;){const e=gs(t);if(!e.length)break;yield Promise.allSettled(e),yield Promise.resolve()}})}(o).then(()=>{this.node===o&&this.emitter.emit("loaded",{node:o,options:this.options})}),!0}compose(t){var e,n;const{design:r,data:i,themeConfig:o}=t,{title:s,item:a,items:l,structure:c}=r,{component:h,props:u}=c,d=s.component,f=a.component,p=l.map(t=>t.component),g=null===(n=null===(e=null==o?void 0:o.base)||void 0===e?void 0:e.text)||void 0===n?void 0:n["font-family"],m=xs;g&&_s(g);try{const e=Al(th(F(h,Object.assign({data:i,Title:d,Item:f,Items:p,options:t},u))));if(!e)throw new Error("Failed to parse SVG template");return e}finally{g&&_s(m)}}getTypes(){const t=this.parsedOptions;if(!OI(t))return void this.emitter.emit("error",new Error("Incomplete options"));const e=t.design;return function(t,e={title:"信息图标题",desc:"信息图描述",items:"信息图的内容项",label:"项目标签文本",value:"项目数值内容",icon:"项目图标",illus:"项目插图",children:"子级项目(多层结构)"}){const{structure:n,items:r}=t,i=[],o=t=>" ".repeat(t);function s(t,n,r){const i=e[t];return i?`${o(r)}/** ${i} */\n${o(r)}${t}: ${n};`:`${o(r)}${t}: ${n};`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push(s("title","string",1)),i.push(s("desc","string",1))),n.includes("item")&&r.length>0&&i.push(s("items",`Array<${function t(e,n){const i=r[e],a=[];for(const t of i)a.push(s(t,"value"===t?"number":"string",n+1));return r[e+1]&&a.push(s("children",`Array<${t(e+1,n+1)}>`,n+1)),`{\n${a.join("\n")}\n${o(n)}}`}(0,1)}>`,1)),i.push("}"),i.join("\n")}({structure:e.structure.composites||[],items:e.items.map(t=>t.composites||[])})}toDataURL(t){return function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})}(this,void 0,void 0,function*(){if(!this.node)throw new Error("Infographic is not rendered yet.");return"svg"===(null==t?void 0:t.type)?yield function(t){return BL(this,arguments,void 0,function*(t,e={}){const n=yield qL(t,e),r=(new XMLSerializer).serializeToString(n);return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(r)})}(this.node,t):yield function(t){return function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())})}(this,arguments,void 0,function*(t,e={}){var n;const{dpr:r=(null!==(n=globalThis.devicePixelRatio)&&void 0!==n?n:2),removeBackground:i=!1}=e,o=yield qL(t,{removeBackground:i}),{width:s,height:a}=Cc(o);return new Promise((t,e)=>{try{const n=document.createElement("canvas");n.width=s*r,n.height=a*r;const i=n.getContext("2d");if(!i)return void e(new Error("Failed to get canvas context"));i.scale(r,r),i.imageSmoothingEnabled=!0,i.imageSmoothingQuality="high",o.setAttribute("width",String(s)),o.setAttribute("height",String(a));const l=(new XMLSerializer).serializeToString(o),c="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(l),h=new Image;h.onload=function(){i.clearRect(0,0,s,a),i.drawImage(h,0,0,s,a);const e=n.toDataURL("image/png");t(e)},h.onerror=function(t){e(new Error("Image load failed: "+t))},h.src=c}catch(t){e(t)}})})}(this.node,t)})}on(t,e){this.emitter.on(t,e)}off(t,e){this.emitter.off(t,e)}destroy(){var t,e;null===(t=this.editor)||void 0===t||t.destroy(),null===(e=this.node)||void 0===e||e.remove(),this.node=null,this.rendered=!1,this.emitter.emit("destroyed"),this.emitter.removeAllListeners()}}var EI=n("./node_modules/.pnpm/antd@6.6.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/antd/es/theme/index.js"),SI=n("./node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isEqual.js"),$I=n.n(SI),zI=n("react"),PI=n.n(zI),LI=n("./src/utils/antd.tsx"),TI=n("./src/utils/dash3.ts"),II=n("./src/utils/theme.ts"),RI=function(){return RI=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},RI.apply(this,arguments)},NI=new Set(["container","plugins","interactions","elements"]),HI=function(t){var e=(0,zI.useRef)(t),n=(0,zI.useRef)(0);return $I()(e.current,t)||(e.current=t,n.current+=1),n.current},BI=function(t){return"string"==typeof t?t:Object.fromEntries(Object.entries(t).filter(function(t){return"container"!==t[0]}))},WI=function(t){return t instanceof Error?{name:t.name,message:t.message}:Array.isArray(t)?t.map(WI):(0,LI.xE)(t)};const FI=function(t){var e,n=EI.A.useToken().token,r=t.id,o=t.className,s=t.style,a=t.tabIndex,l=t.role,c=t.dir,h=t.lang,u=t.hidden,d=t.options,f=t.config,p=void 0===f?{}:f,g=t.n_rendered,m=void 0===g?0:g,y=t.n_loaded,v=void 0===y?0:y,x=t.n_warning,b=void 0===x?0:x,w=t.n_error,_=void 0===w?0:w,M=t.loading_state,k=t.setProps,C=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["id","className","style","tabIndex","role","dir","lang","hidden","options","config","n_rendered","n_loaded","n_warning","n_error","warningData","errorData","loading_state","setProps"]),j=(0,zI.useRef)(null),O=(0,zI.useRef)(null),A=(0,zI.useRef)(d),E=(0,zI.useRef)(k),S=(0,zI.useRef)({n_rendered:m,n_loaded:v,n_warning:b,n_error:_}),$=(0,zI.useRef)(null),z=(0,II.c)(n.colorBgBase)?"dark":"light",P=HI({config:p,defaultTheme:z}),L=HI(d);A.current=d,E.current=k,S.current.n_rendered=Math.max(S.current.n_rendered,m),S.current.n_loaded=Math.max(S.current.n_loaded,v),S.current.n_warning=Math.max(S.current.n_warning,b),S.current.n_error=Math.max(S.current.n_error,_);var T=PI().useCallback(function(t,e){var n,r,i="n_".concat(t),o=S.current[i]+1;S.current[i]=o;var s=((n={})[i]=o,n),a=WI(e);"warning"===t&&void 0!==a&&(s.warningData=a),"error"===t&&void 0!==a&&(s.errorData=a),null===(r=E.current)||void 0===r||r.call(E,s)},[]),I=(0,zI.useMemo)(function(){return Object.fromEntries(Object.entries(C).filter(function(t){var e=t[0],n=t[1];return(e.startsWith("data-")||e.startsWith("aria-"))&&null!=n}))},[C]);(0,zI.useEffect)(function(){var t=j.current;if(t){var e=new AI(RI({container:t,width:"100%",height:"100%",theme:z},function(t){return void 0===t&&(t={}),Object.fromEntries(Object.entries(t).filter(function(t){return!NI.has(t[0])}))}(p)));O.current=e;var n={rendered:function(t){return T("rendered",t)},loaded:function(t){return T("loaded",t)},warning:function(t){return T("warning",t)},error:function(t){return T("error",t)}};Object.entries(n).forEach(function(t){return e.on(t[0],t[1])});var r=BI(A.current);try{e.render(r),$.current=A.current}catch(t){T("error",t)}return function(){Object.entries(n).forEach(function(t){return e.off(t[0],t[1])}),e.destroy(),O.current===e&&(O.current=null)}}},[P,T]),(0,zI.useEffect)(function(){var t=O.current;if(t&&!$I()($.current,A.current))try{t.render(BI(A.current)),$.current=A.current}catch(t){T("error",t)}},[L,T]);var R=null!==(e=null==s?void 0:s.height)&&void 0!==e?e:450,N=RI({width:"100%",height:R},s);return(0,i.jsx)("div",RI({},I,{id:r,ref:j,className:o,style:N,tabIndex:a,role:l,dir:c,lang:h,hidden:u,"data-dash-is-loading":(0,TI.A_)(M)||void 0}))};var DI=function(){return DI=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},DI.apply(this,arguments)};const VI=function(t){return(0,i.jsx)(FI,DI({},t))}},"./src/utils/theme.ts"(t,e,n){"use strict";n.d(e,{c:()=>r});var r=function(t){var e=t.trim(),n=/^#([\da-f])([\da-f])([\da-f])$/i.exec(e),r=/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(e),i=/^rgba?\(\s*(\d+(?:\.\d+)?)\s*[, ]\s*(\d+(?:\.\d+)?)\s*[, ]\s*(\d+(?:\.\d+)?)/i.exec(e),o=n?n.slice(1).map(function(t){return parseInt(t+t,16)}):r?r.slice(1).map(function(t){return parseInt(t,16)}):i?i.slice(1).map(Number):null;return!!o&&.2126*o[0]+.7152*o[1]+.0722*o[2]<128}},"?c3ee"(){},"?b251"(){},"?9d3a"(){},"?0348"(){},"?2bf4"(){},"./node_modules/.pnpm/nanoid@3.3.16/node_modules/nanoid/non-secure/index.cjs"(t){t.exports={nanoid:(t=21)=>{let e="",n=0|t;for(;n-- >0;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:(t,e=21)=>(n=e)=>{let r="",i=0|n;for(;i-- >0;)r+=t[Math.random()*t.length|0];return r}}},"./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.js"(t,e,n){"use strict";function r(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}n.d(e,{A:()=>r})},"./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisect.js"(t,e,n){"use strict";var r=n("./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.js"),i=n("./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisector.js"),o=n("./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/number.js");const s=(0,i.A)(r.A),a=s.right,l=s.left,c=(0,i.A)(o.A).center;n.d(e,["Ay",0,a,"WD",0,c,"ah",0,l])},"./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisector.js"(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n("./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.js");function i(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function o(t){let e,n,o;function a(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<0?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=r.A,n=(e,n)=>(0,r.A)(t(e),n),o=(e,n)=>t(e)-n):(e=t===r.A||t===i?t:s,n=t,o=t),{left:a,center:function(t,e,n=0,r=t.length){const i=a(t,e,n,r-1);return i>n&&o(t[i-1],e)>-o(t[i],e)?i-1:i},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<=0?i=e+1:o=e}while(i<o)}return i}}}function s(){return 0}},"./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/number.js"(t,e,n){"use strict";function r(t){return null===t?NaN:+t}function*i(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}n.d(e,{A:()=>r,n:()=>i})},"./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ticks.js"(t,e,n){"use strict";n.d(e,{Ay:()=>a,lq:()=>l,sG:()=>c});const r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function s(t,e,n){const a=(e-t)/Math.max(0,n),l=Math.floor(Math.log10(a)),c=a/Math.pow(10,l),h=c>=r?10:c>=i?5:c>=o?2:1;let u,d,f;return l<0?(f=Math.pow(10,-l)/h,u=Math.round(t*f),d=Math.round(e*f),u/f<t&&++u,d/f>e&&--d,f=-f):(f=Math.pow(10,l)*h,u=Math.round(t/f),d=Math.round(e/f),u*f<t&&++u,d*f>e&&--d),d<u&&.5<=n&&n<2?s(t,e,2*n):[u,d,f]}function a(t,e,n){if(!((n=+n)>0))return[];if((t=+t)===(e=+e))return[t];const r=e<t,[i,o,a]=r?s(e,t,n):s(t,e,n);if(!(o>=i))return[];const l=o-i+1,c=new Array(l);if(r)if(a<0)for(let t=0;t<l;++t)c[t]=(o-t)/-a;else for(let t=0;t<l;++t)c[t]=(o-t)*a;else if(a<0)for(let t=0;t<l;++t)c[t]=(i+t)/-a;else for(let t=0;t<l;++t)c[t]=(i+t)*a;return c}function l(t,e,n){return s(t=+t,e=+e,n=+n)[2]}function c(t,e,n){n=+n;const r=(e=+e)<(t=+t),i=r?l(e,t,n):l(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}},"./node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.js"(t,e,n){"use strict";n.d(e,{Ay:()=>b,Gw:()=>C,Q1:()=>i,Qh:()=>k,Uw:()=>s,b:()=>M,ef:()=>o});var r=n("./node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/define.js");function i(){}var o=.7,s=1/o,a="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",c="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h=/^#([0-9a-f]{3,8})$/,u=new RegExp(`^rgb\\(${a},${a},${a}\\)$`),d=new RegExp(`^rgb\\(${c},${c},${c}\\)$`),f=new RegExp(`^rgba\\(${a},${a},${a},${l}\\)$`),p=new RegExp(`^rgba\\(${c},${c},${c},${l}\\)$`),g=new RegExp(`^hsl\\(${l},${c},${c}\\)$`),m=new RegExp(`^hsla\\(${l},${c},${c},${l}\\)$`),y={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 v(){return this.rgb().formatHex()}function x(){return this.rgb().formatRgb()}function b(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=h.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?w(e):3===n?new C(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?_(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?_(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=u.exec(t))?new C(e[1],e[2],e[3],1):(e=d.exec(t))?new C(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=f.exec(t))?_(e[1],e[2],e[3],e[4]):(e=p.exec(t))?_(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?$(e[1],e[2]/100,e[3]/100,1):(e=m.exec(t))?$(e[1],e[2]/100,e[3]/100,e[4]):y.hasOwnProperty(t)?w(y[t]):"transparent"===t?new C(NaN,NaN,NaN,0):null}function w(t){return new C(t>>16&255,t>>8&255,255&t,1)}function _(t,e,n,r){return r<=0&&(t=e=n=NaN),new C(t,e,n,r)}function M(t){return t instanceof i||(t=b(t)),t?new C((t=t.rgb()).r,t.g,t.b,t.opacity):new C}function k(t,e,n,r){return 1===arguments.length?M(t):new C(t,e,n,r??1)}function C(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function j(){return`#${S(this.r)}${S(this.g)}${S(this.b)}`}function O(){const t=A(this.opacity);return`${1===t?"rgb(":"rgba("}${E(this.r)}, ${E(this.g)}, ${E(this.b)}${1===t?")":`, ${t})`}`}function A(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function E(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function S(t){return((t=E(t))<16?"0":"")+t.toString(16)}function $(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new P(t,e,n,r)}function z(t){if(t instanceof P)return new P(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=b(t)),!t)return new P;if(t instanceof P)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),s=Math.max(e,n,r),a=NaN,l=s-o,c=(s+o)/2;return l?(a=e===s?(n-r)/l+6*(n<r):n===s?(r-e)/l+2:(e-n)/l+4,l/=c<.5?s+o:2-s-o,a*=60):l=c>0&&c<1?0:a,new P(a,l,c,t.opacity)}function P(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function L(t){return(t=(t||0)%360)<0?t+360:t}function T(t){return Math.max(0,Math.min(1,t||0))}function I(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}(0,r.A)(i,b,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:v,formatHex:v,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return z(this).formatHsl()},formatRgb:x,toString:x}),(0,r.A)(C,k,(0,r.X)(i,{brighter(t){return t=null==t?s:Math.pow(s,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?o:Math.pow(o,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new C(E(this.r),E(this.g),E(this.b),A(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:j,formatHex:j,formatHex8:function(){return`#${S(this.r)}${S(this.g)}${S(this.b)}${S(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:O,toString:O})),(0,r.A)(P,function(t,e,n,r){return 1===arguments.length?z(t):new P(t,e,n,r??1)},(0,r.X)(i,{brighter(t){return t=null==t?s:Math.pow(s,t),new P(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?o:Math.pow(o,t),new P(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 C(I(t>=240?t-240:t+120,i,r),I(t,i,r),I(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new P(L(this.h),T(this.s),T(this.l),A(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=A(this.opacity);return`${1===t?"hsl(":"hsla("}${L(this.h)}, ${100*T(this.s)}%, ${100*T(this.l)}%${1===t?")":`, ${t})`}`}}))},"./node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/define.js"(t,e,n){"use strict";function r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}n.d(e,{A:()=>r,X:()=>i})},"./node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js"(t,e,n){"use strict";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 s(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function a(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}})),l=-1,c=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++l<c;)if(n=(t=o[l]).type)i[n]=a(i[n],t.name,e);else if(null==e)for(n in i)i[n]=a(i[n],t.name,null);return this}for(;++l<c;)if((n=(t=o[l]).type)&&(n=s(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)}},n.d(e,["A",0,i])},"./node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.js"(t,e,n){"use strict";function r(t){return t*t*t}function i(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.d(e,{EY:()=>r,wq:()=>i})},"./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/center.js"(t,e,n){"use strict";function r(t,e){var n,r=1;function i(){var i,o,s=n.length,a=0,l=0;for(i=0;i<s;++i)a+=(o=n[i]).x,l+=o.y;for(a=(a/s-t)*r,l=(l/s-e)*r,i=0;i<s;++i)(o=n[i]).x-=a,o.y-=l}return null==t&&(t=0),null==e&&(e=0),i.initialize=function(t){n=t},i.x=function(e){return arguments.length?(t=+e,i):t},i.y=function(t){return arguments.length?(e=+t,i):e},i.strength=function(t){return arguments.length?(r=+t,i):r},i}n.d(e,{A:()=>r})},"./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/collide.js"(t,e,n){"use strict";n.d(e,{A:()=>l});var r=n("./node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/quadtree.js"),i=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/constant.js"),o=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/jiggle.js");function s(t){return t.x+t.vx}function a(t){return t.y+t.vy}function l(t){var e,n,l,c=1,h=1;function u(){for(var t,i,u,f,p,g,m,y=e.length,v=0;v<h;++v)for(i=(0,r.A)(e,s,a).visitAfter(d),t=0;t<y;++t)m=(g=n[(u=e[t]).index])*g,f=u.x+u.vx,p=u.y+u.vy,i.visit(x);function x(t,e,n,r,i){var s=t.data,a=t.r,h=g+a;if(!s)return e>f+h||r<f-h||n>p+h||i<p-h;if(s.index>u.index){var d=f-s.x-s.vx,y=p-s.y-s.vy,v=d*d+y*y;v<h*h&&(0===d&&(v+=(d=(0,o.A)(l))*d),0===y&&(v+=(y=(0,o.A)(l))*y),v=(h-(v=Math.sqrt(v)))/v*c,u.vx+=(d*=v)*(h=(a*=a)/(m+a)),u.vy+=(y*=v)*h,s.vx-=d*(h=1-h),s.vy-=y*h)}}}function d(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function f(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;r<o;++r)n[(i=e[r]).index]=+t(i,r,e)}}return"function"!=typeof t&&(t=(0,i.A)(null==t?1:+t)),u.initialize=function(t,n){e=t,l=n,f()},u.iterations=function(t){return arguments.length?(h=+t,u):h},u.strength=function(t){return arguments.length?(c=+t,u):c},u.radius=function(e){return arguments.length?(t="function"==typeof e?e:(0,i.A)(+e),f(),u):t},u}},"./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/constant.js"(t,e,n){"use strict";function r(t){return function(){return t}}n.d(e,{A:()=>r})},"./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/jiggle.js"(t,e,n){"use strict";function r(t){return 1e-6*(t()-.5)}n.d(e,{A:()=>r})},"./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/link.js"(t,e,n){"use strict";n.d(e,{A:()=>a});var r=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/constant.js"),i=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/jiggle.js");function o(t){return t.index}function s(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}function a(t){var e,n,a,l,c,h,u=o,d=function(t){return 1/Math.min(l[t.source.index],l[t.target.index])},f=(0,r.A)(30),p=1;function g(r){for(var o=0,s=t.length;o<p;++o)for(var a,l,u,d,f,g,m,y=0;y<s;++y)d=(u=(a=t[y]).target).x+u.vx-(l=a.source).x-l.vx||(0,i.A)(h),f=u.y+u.vy-l.y-l.vy||(0,i.A)(h),f*=g=((g=Math.sqrt(d*d+f*f))-n[y])/g*r*e[y],u.vx-=(d*=g)*(m=c[y]),u.vy-=f*m,l.vx+=d*(m=1-m),l.vy+=f*m}function m(){if(a){var r,i,o=a.length,h=t.length,d=new Map(a.map((t,e)=>[u(t,e,a),t]));for(r=0,l=new Array(o);r<h;++r)(i=t[r]).index=r,"object"!=typeof i.source&&(i.source=s(d,i.source)),"object"!=typeof i.target&&(i.target=s(d,i.target)),l[i.source.index]=(l[i.source.index]||0)+1,l[i.target.index]=(l[i.target.index]||0)+1;for(r=0,c=new Array(h);r<h;++r)c[r]=l[(i=t[r]).source.index]/(l[i.source.index]+l[i.target.index]);e=new Array(h),y(),n=new Array(h),v()}}function y(){if(a)for(var n=0,r=t.length;n<r;++n)e[n]=+d(t[n],n,t)}function v(){if(a)for(var e=0,r=t.length;e<r;++e)n[e]=+f(t[e],e,t)}return null==t&&(t=[]),g.initialize=function(t,e){a=t,h=e,m()},g.links=function(e){return arguments.length?(t=e,m(),g):t},g.id=function(t){return arguments.length?(u=t,g):u},g.iterations=function(t){return arguments.length?(p=+t,g):p},g.strength=function(t){return arguments.length?(d="function"==typeof t?t:(0,r.A)(+t),y(),g):d},g.distance=function(t){return arguments.length?(f="function"==typeof t?t:(0,r.A)(+t),v(),g):f},g}},"./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/manyBody.js"(t,e,n){"use strict";n.d(e,{A:()=>a});var r=n("./node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/quadtree.js"),i=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/constant.js"),o=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/jiggle.js"),s=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/simulation.js");function a(){var t,e,n,a,l,c=(0,i.A)(-30),h=1,u=1/0,d=.81;function f(n){var i,o=t.length,l=(0,r.A)(t,s.x,s.y).visitAfter(g);for(a=n,i=0;i<o;++i)e=t[i],l.visit(m)}function p(){if(t){var e,n,r=t.length;for(l=new Array(r),e=0;e<r;++e)l[(n=t[e]).index]=+c(n,e,t)}}function g(t){var e,n,r,i,o,s=0,a=0;if(t.length){for(r=i=o=0;o<4;++o)(e=t[o])&&(n=Math.abs(e.value))&&(s+=e.value,a+=n,r+=n*e.x,i+=n*e.y);t.x=r/a,t.y=i/a}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=l[e.data.index]}while(e=e.next)}t.value=s}function m(t,r,i,s){if(!t.value)return!0;var c=t.x-e.x,f=t.y-e.y,p=s-r,g=c*c+f*f;if(p*p/d<g)return g<u&&(0===c&&(g+=(c=(0,o.A)(n))*c),0===f&&(g+=(f=(0,o.A)(n))*f),g<h&&(g=Math.sqrt(h*g)),e.vx+=c*t.value*a/g,e.vy+=f*t.value*a/g),!0;if(!(t.length||g>=u)){(t.data!==e||t.next)&&(0===c&&(g+=(c=(0,o.A)(n))*c),0===f&&(g+=(f=(0,o.A)(n))*f),g<h&&(g=Math.sqrt(h*g)));do{t.data!==e&&(e.vx+=c*(p=l[t.data.index]*a/g),e.vy+=f*p)}while(t=t.next)}}return f.initialize=function(e,r){t=e,n=r,p()},f.strength=function(t){return arguments.length?(c="function"==typeof t?t:(0,i.A)(+t),p(),f):c},f.distanceMin=function(t){return arguments.length?(h=t*t,f):Math.sqrt(h)},f.distanceMax=function(t){return arguments.length?(u=t*t,f):Math.sqrt(u)},f.theta=function(t){return arguments.length?(d=t*t,f):Math.sqrt(d)},f}},"./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/simulation.js"(t,e,n){"use strict";n.d(e,{A:()=>c,x:()=>s,y:()=>a});var r=n("./node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js"),i=n("./node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js");const o=4294967296;function s(t){return t.x}function a(t){return t.y}var l=Math.PI*(3-Math.sqrt(5));function c(t){var e,n=1,s=.001,a=1-Math.pow(s,1/300),c=0,h=.6,u=new Map,d=(0,i.O1)(g),f=(0,r.A)("tick","end"),p=function(){let t=1;return()=>(t=(1664525*t+1013904223)%o)/o}();function g(){m(),f.call("tick",e),n<s&&(d.stop(),f.call("end",e))}function m(r){var i,o,s=t.length;void 0===r&&(r=1);for(var l=0;l<r;++l)for(n+=(c-n)*a,u.forEach(function(t){t(n)}),i=0;i<s;++i)null==(o=t[i]).fx?o.x+=o.vx*=h:(o.x=o.fx,o.vx=0),null==o.fy?o.y+=o.vy*=h:(o.y=o.fy,o.vy=0);return e}function y(){for(var e,n=0,r=t.length;n<r;++n){if((e=t[n]).index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(.5+n),o=n*l;e.x=i*Math.cos(o),e.y=i*Math.sin(o)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function v(e){return e.initialize&&e.initialize(t,p),e}return null==t&&(t=[]),y(),e={tick:m,restart:function(){return d.restart(g),e},stop:function(){return d.stop(),e},nodes:function(n){return arguments.length?(t=n,y(),u.forEach(v),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(s=+t,e):s},alphaDecay:function(t){return arguments.length?(a=+t,e):+a},alphaTarget:function(t){return arguments.length?(c=+t,e):c},velocityDecay:function(t){return arguments.length?(h=1-t,e):1-h},randomSource:function(t){return arguments.length?(p=t,u.forEach(v),e):p},force:function(t,n){return arguments.length>1?(null==n?u.delete(t):u.set(t,v(n)),e):u.get(t)},find:function(e,n,r){var i,o,s,a,l,c=0,h=t.length;for(null==r?r=1/0:r*=r,c=0;c<h;++c)(s=(i=e-(a=t[c]).x)*i+(o=n-a.y)*o)<r&&(l=a,r=s);return l},on:function(t,n){return arguments.length>1?(f.on(t,n),e):f.on(t)}}}},"./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/defaultLocale.js"(t,e,n){"use strict";n.d(e,{GP:()=>u,s:()=>d});var r,i=n("./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/exponent.js"),o=n("./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatSpecifier.js"),s=n("./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatDecimal.js");function a(t,e){var n=(0,s.f)(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const l={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:s.A,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>a(100*t,e),r:a,s:function(t,e){var n=(0,s.f)(t,e);if(!n)return r=void 0,t.toPrecision(e);var i=n[0],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,l=i.length;return a===l?i:a>l?i+new Array(a-l+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+(0,s.f)(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function c(t){return t}var h,u,d,f=Array.prototype.map,p=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];h=function(t){var e,n,s=void 0===t.grouping||void 0===t.thousands?c:(e=f.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],s=0,a=e[0],l=0;i>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),o.push(t.substring(i-=a,i+a)),!((l+=a+1)>r));)a=e[s=(s+1)%e.length];return o.reverse().join(n)}),a=void 0===t.currency?"":t.currency[0]+"",h=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",d=void 0===t.numerals?c:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(f.call(t.numerals,String)),g=void 0===t.percent?"%":t.percent+"",m=void 0===t.minus?"−":t.minus+"",y=void 0===t.nan?"NaN":t.nan+"";function v(t,e){var n=(t=(0,o.A)(t)).fill,i=t.align,c=t.sign,f=t.symbol,v=t.zero,x=t.width,b=t.comma,w=t.precision,_=t.trim,M=t.type;"n"===M?(b=!0,M="g"):l[M]||(void 0===w&&(w=12),_=!0,M="g"),(v||"0"===n&&"="===i)&&(v=!0,n="0",i="=");var k=(e&&void 0!==e.prefix?e.prefix:"")+("$"===f?a:"#"===f&&/[boxX]/.test(M)?"0"+M.toLowerCase():""),C=("$"===f?h:/[%p]/.test(M)?g:"")+(e&&void 0!==e.suffix?e.suffix:""),j=l[M],O=/[defgprs%]/.test(M);function A(t){var e,o,a,l=k,h=C;if("c"===M)h=j(t)+h,t="";else{var f=(t=+t)<0||1/t<0;if(t=isNaN(t)?y:j(Math.abs(t),w),_&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),f&&0===+t&&"+"!==c&&(f=!1),l=(f?"("===c?c:m:"-"===c||"("===c?"":c)+l,h=("s"!==M||isNaN(t)||void 0===r?"":p[8+r/3])+h+(f&&"("===c?")":""),O)for(e=-1,o=t.length;++e<o;)if(48>(a=t.charCodeAt(e))||a>57){h=(46===a?u+t.slice(e+1):t.slice(e))+h,t=t.slice(0,e);break}}b&&!v&&(t=s(t,1/0));var g=l.length+t.length+h.length,A=g<x?new Array(x-g+1).join(n):"";switch(b&&v&&(t=s(A+t,A.length?x-h.length:1/0),A=""),i){case"<":t=l+t+h+A;break;case"=":t=l+A+t+h;break;case"^":t=A.slice(0,g=A.length>>1)+l+t+h+A.slice(g);break;default:t=A+l+t+h}return d(t)}return w=void 0===w?6:/[gprs]/.test(M)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w)),A.toString=function(){return t+""},A}return{format:v,formatPrefix:function(t,e){var n=3*Math.max(-8,Math.min(8,Math.floor((0,i.A)(e)/3))),r=Math.pow(10,-n),s=v(((t=(0,o.A)(t)).type="f",t),{suffix:p[8+n/3]});return function(t){return s(r*t)}}}}({thousands:",",grouping:[3],currency:["$",""]}),u=h.format,d=h.formatPrefix},"./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/exponent.js"(t,e,n){"use strict";n.d(e,{A:()=>i});var r=n("./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatDecimal.js");function i(t){return(t=(0,r.f)(Math.abs(t)))?t[1]:NaN}},"./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatDecimal.js"(t,e,n){"use strict";function r(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function i(t,e){if(!isFinite(t)||0===t)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}n.d(e,{A:()=>r,f:()=>i})},"./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatSpecifier.js"(t,e,n){"use strict";n.d(e,{A:()=>i});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(e=r.exec(t)))throw new Error("invalid format: "+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},"./node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/index.js"(t,e,n){"use strict";function r(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function i(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=s)):void 0===e&&(e=o);for(var n,r,i,a,h,u=new c(t),d=[u];n=d.pop();)if((i=e(n.data))&&(h=(i=Array.from(i)).length))for(n.children=i,a=h-1;a>=0;--a)d.push(r=i[a]=new c(i[a])),r.parent=n,r.depth=n.depth+1;return u.eachBefore(l)}function o(t){return t.children}function s(t){return Array.isArray(t)?t[1]:null}function a(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function l(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function c(t){this.data=t,this.depth=this.height=0,this.parent=null}n.d(e,{bP:()=>c,lW:()=>l,Ay:()=>i}),c.prototype=i.prototype={constructor:c,count:function(){return this.eachAfter(r)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,o=this,s=[o],a=[],l=-1;o=s.pop();)if(a.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)s.push(n[r]);for(;o=a.pop();)t.call(e,o,++l,this);return this},eachBefore:function(t,e){for(var n,r,i=this,o=[i],s=-1;i=o.pop();)if(t.call(e,i,++s,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return i(this).eachBefore(a)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n])}while(o.length)}}},"./node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/tree.js"(t,e,n){"use strict";n.d(e,{A:()=>h});var r=n("./node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/index.js");function i(t,e){return t.parent===e.parent?1:2}function o(t){var e=t.children;return e?e[0]:t.t}function s(t){var e=t.children;return e?e[e.length-1]:t.t}function a(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function l(t,e,n){return t.a.parent===e.parent?t.a:n}function c(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function h(){var t=i,e=1,n=1,r=null;function h(i){var o=function(t){for(var e,n,r,i,o,s=new c(t,0),a=[s];e=a.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)a.push(n=e.children[i]=new c(r[i],i)),n.parent=e;return(s.parent=new c(null,0)).children=[s],s}(i);if(o.eachAfter(u),o.parent.m=-o.z,o.eachBefore(d),r)i.eachBefore(f);else{var s=i,a=i,l=i;i.eachBefore(function(t){t.x<s.x&&(s=t),t.x>a.x&&(a=t),t.depth>l.depth&&(l=t)});var h=s===a?1:t(s,a)/2,p=h-s.x,g=e/(a.x+h+p),m=n/(l.depth||1);i.eachBefore(function(t){t.x=(t.x+p)*g,t.y=t.depth*m})}return i}function u(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var c=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-c):e.z=c}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,c=e,h=e,u=n,d=c.parent.children[0],f=c.m,p=h.m,g=u.m,m=d.m;u=s(u),c=o(c),u&&c;)d=o(d),(h=s(h)).a=e,(i=u.z+g-c.z-f+t(u._,c._))>0&&(a(l(u,e,r),e,i),f+=i,p+=i),g+=u.m,f+=c.m,m+=d.m,p+=h.m;u&&!s(h)&&(h.t=u,h.m+=g-p),c&&!o(d)&&(d.t=c,d.m+=f-m,r=e)}return r}(e,i,e.parent.A||r[0])}function d(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function f(t){t.x*=e,t.y=t.depth*n}return h.separation=function(e){return arguments.length?(t=e,h):t},h.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],h):r?null:[e,n]},h.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],h):r?[e,n]:null},h}c.prototype=Object.create(r.bP.prototype)},"./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/array.js"(t,e,n){"use strict";n.d(e,{$:()=>s,A:()=>o});var r=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/value.js"),i=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/numberArray.js");function o(t,e){return((0,i.p)(e)?i.A:s)(t,e)}function s(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,s=new Array(o),a=new Array(i);for(n=0;n<o;++n)s[n]=(0,r.A)(t[n],e[n]);for(;n<i;++n)a[n]=e[n];return function(t){for(n=0;n<o;++n)a[n]=s[n](t);return a}}},"./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/color.js"(t,e,n){"use strict";n.d(e,{Ay:()=>a,lG:()=>o,uN:()=>s});var r=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/constant.js");function i(t,e){return function(n){return t+n*e}}function o(t,e){var n=e-t;return n?i(t,n>180||n<-180?n-360*Math.round(n/360):n):(0,r.A)(isNaN(t)?e:t)}function s(t){return 1===(t=+t)?a: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):(0,r.A)(isNaN(e)?n:e)}}function a(t,e){var n=e-t;return n?i(t,n):(0,r.A)(isNaN(t)?e:t)}},"./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/constant.js"(t,e,n){"use strict";n.d(e,["A",0,t=>()=>t])},"./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/number.js"(t,e,n){"use strict";function r(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}n.d(e,{A:()=>r})},"./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/numberArray.js"(t,e,n){"use strict";function r(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 i(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}n.d(e,{A:()=>r,p:()=>i})},"./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.js"(t,e,n){"use strict";n.d(e,{Ay:()=>s,Ik:()=>l});var r=n("./node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.js");function i(t,e,n,r,i){var o=t*t,s=o*t;return((1-3*t+3*o-s)*e+(4-6*o+3*s)*n+(1+3*t+3*o-3*s)*r+s*i)/6}var o=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/color.js");const s=function t(e){var n=(0,o.uN)(e);function i(t,e){var i=n((t=(0,r.Qh)(t)).r,(e=(0,r.Qh)(e)).r),s=n(t.g,e.g),a=n(t.b,e.b),l=(0,o.Ay)(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=s(e),t.b=a(e),t.opacity=l(e),t+""}}return i.gamma=t,i}(1);function a(t){return function(e){var n,i,o=e.length,s=new Array(o),a=new Array(o),l=new Array(o);for(n=0;n<o;++n)i=(0,r.Qh)(e[n]),s[n]=i.r||0,a[n]=i.g||0,l[n]=i.b||0;return s=t(s),a=t(a),l=t(l),i.opacity=1,function(t){return i.r=s(t),i.g=a(t),i.b=l(t),i+""}}}var l=a(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),o=t[r],s=t[r+1];return i((n-r/e)*e,r>0?t[r-1]:2*o-s,o,s,r<e-1?t[r+2]:2*s-o)}});a(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e);return i((n-r/e)*e,t[(r+e-1)%e],t[r%e],t[(r+1)%e],t[(r+2)%e])}})},"./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.js"(t,e,n){"use strict";n.d(e,{A:()=>s});var r=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/number.js"),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=new RegExp(i.source,"g");function s(t,e){var n,s,a,l=i.lastIndex=o.lastIndex=0,c=-1,h=[],u=[];for(t+="",e+="";(n=i.exec(t))&&(s=o.exec(e));)(a=s.index)>l&&(a=e.slice(l,a),h[c]?h[c]+=a:h[++c]=a),(n=n[0])===(s=s[0])?h[c]?h[c]+=s:h[++c]=s:(h[++c]=null,u.push({i:c,x:(0,r.A)(n,s)})),l=o.lastIndex;return l<e.length&&(a=e.slice(l),h[c]?h[c]+=a:h[++c]=a),h.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)h[(n=u[r]).i]=n.x(t);return h.join("")})}},"./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/value.js"(t,e,n){"use strict";n.d(e,{A:()=>d});var r=n("./node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.js"),i=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.js"),o=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/array.js");function s(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}var a=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/number.js");function l(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]=d(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var c=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.js"),h=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/constant.js"),u=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/numberArray.js");function d(t,e){var n,d=typeof e;return null==e||"boolean"===d?(0,h.A)(e):("number"===d?a.A:"string"===d?(n=(0,r.Ay)(e))?(e=n,i.Ay):c.A:e instanceof r.Ay?i.Ay:e instanceof Date?s:(0,u.p)(e)?u.A:Array.isArray(e)?o.$:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?l:a.A)(t,e)}},"./node_modules/.pnpm/d3-path@3.1.0/node_modules/d3-path/src/path.js"(t,e,n){"use strict";n.d(e,{Ae:()=>c,wA:()=>l});const r=Math.PI,i=2*r,o=1e-6,s=i-o;function a(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class l{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?a:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return a;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,i,s){if(t=+t,e=+e,n=+n,i=+i,(s=+s)<0)throw new Error(`negative radius: ${s}`);let a=this._x1,l=this._y1,c=n-t,h=i-e,u=a-t,d=l-e,f=u*u+d*d;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>o)if(Math.abs(d*c-h*u)>o&&s){let p=n-a,g=i-l,m=c*c+h*h,y=p*p+g*g,v=Math.sqrt(m),x=Math.sqrt(f),b=s*Math.tan((r-Math.acos((m+f-y)/(2*v*x)))/2),w=b/x,_=b/v;Math.abs(w-1)>o&&this._append`L${t+w*u},${e+w*d}`,this._append`A${s},${s},0,0,${+(d*p>u*g)},${this._x1=t+_*c},${this._y1=e+_*h}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,n,a,l,c){if(t=+t,e=+e,c=!!c,(n=+n)<0)throw new Error(`negative radius: ${n}`);let h=n*Math.cos(a),u=n*Math.sin(a),d=t+h,f=e+u,p=1^c,g=c?a-l:l-a;null===this._x1?this._append`M${d},${f}`:(Math.abs(this._x1-d)>o||Math.abs(this._y1-f)>o)&&this._append`L${d},${f}`,n&&(g<0&&(g=g%i+i),g>s?this._append`A${n},${n},0,1,${p},${t-h},${e-u}A${n},${n},0,1,${p},${this._x1=d},${this._y1=f}`:g>o&&this._append`A${n},${n},0,${+(g>=r)},${p},${this._x1=t+n*Math.cos(l)},${this._y1=e+n*Math.sin(l)}`)}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 c(){return new l}c.prototype=l.prototype},"./node_modules/.pnpm/d3-quadtree@3.0.1/node_modules/d3-quadtree/src/quadtree.js"(t,e,n){"use strict";function r(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o,s,a,l,c,h,u,d,f=t._root,p={data:r},g=t._x0,m=t._y0,y=t._x1,v=t._y1;if(!f)return t._root=p,t;for(;f.length;)if((c=e>=(o=(g+y)/2))?g=o:y=o,(h=n>=(s=(m+v)/2))?m=s:v=s,i=f,!(f=f[u=h<<1|c]))return i[u]=p,t;if(a=+t._x.call(null,f.data),l=+t._y.call(null,f.data),e===a&&n===l)return p.next=f,i?i[u]=p:t._root=p,t;do{i=i?i[u]=new Array(4):t._root=new Array(4),(c=e>=(o=(g+y)/2))?g=o:y=o,(h=n>=(s=(m+v)/2))?m=s:v=s}while((u=h<<1|c)==(d=(l>=s)<<1|a>=o));return i[d]=f,i[u]=p,t}function i(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function o(t){return t[0]}function s(t){return t[1]}function a(t,e,n){var r=new l(e??o,n??s,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function l(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function c(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}n.d(e,{A:()=>a});var h=a.prototype=l.prototype;h.copy=function(){var t,e,n=new l(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=c(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=c(e));return n},h.add=function(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return r(this.cover(e,n),e,n,t)},h.addAll=function(t){var e,n,i,o,s=t.length,a=new Array(s),l=new Array(s),c=1/0,h=1/0,u=-1/0,d=-1/0;for(n=0;n<s;++n)isNaN(i=+this._x.call(null,e=t[n]))||isNaN(o=+this._y.call(null,e))||(a[n]=i,l[n]=o,i<c&&(c=i),i>u&&(u=i),o<h&&(h=o),o>d&&(d=o));if(c>u||h>d)return this;for(this.cover(c,h).cover(u,d),n=0;n<s;++n)r(this,a[n],l[n],t[n]);return this},h.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{for(var s,a,l=i-n||1,c=this._root;n>t||t>=i||r>e||e>=o;)switch(a=(e<r)<<1|t<n,(s=new Array(4))[a]=c,c=s,l*=2,a){case 0:i=n+l,o=r+l;break;case 1:n=i-l,o=r+l;break;case 2:i=n+l,r=o-l;break;case 3:n=i-l,r=o-l}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},h.data=function(){var t=[];return this.visit(function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)}),t},h.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},h.find=function(t,e,n){var r,o,s,a,l,c,h,u=this._x0,d=this._y0,f=this._x1,p=this._y1,g=[],m=this._root;for(m&&g.push(new i(m,u,d,f,p)),null==n?n=1/0:(u=t-n,d=e-n,f=t+n,p=e+n,n*=n);c=g.pop();)if(!(!(m=c.node)||(o=c.x0)>f||(s=c.y0)>p||(a=c.x1)<u||(l=c.y1)<d))if(m.length){var y=(o+a)/2,v=(s+l)/2;g.push(new i(m[3],y,v,a,l),new i(m[2],o,v,y,l),new i(m[1],y,s,a,v),new i(m[0],o,s,y,v)),(h=(e>=v)<<1|t>=y)&&(c=g[g.length-1],g[g.length-1]=g[g.length-1-h],g[g.length-1-h]=c)}else{var x=t-+this._x.call(null,m.data),b=e-+this._y.call(null,m.data),w=x*x+b*b;if(w<n){var _=Math.sqrt(n=w);u=t-_,d=e-_,f=t+_,p=e+_,r=m.data}}return r},h.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(s=+this._y.call(null,t)))return this;var e,n,r,i,o,s,a,l,c,h,u,d,f=this._root,p=this._x0,g=this._y0,m=this._x1,y=this._y1;if(!f)return this;if(f.length)for(;;){if((c=o>=(a=(p+m)/2))?p=a:m=a,(h=s>=(l=(g+y)/2))?g=l:y=l,e=f,!(f=f[u=h<<1|c]))return this;if(!f.length)break;(e[u+1&3]||e[u+2&3]||e[u+3&3])&&(n=e,d=u)}for(;f.data!==t;)if(r=f,!(f=f.next))return this;return(i=f.next)&&delete f.next,r?(i?r.next=i:delete r.next,this):e?(i?e[u]=i:delete e[u],(f=e[0]||e[1]||e[2]||e[3])&&f===(e[3]||e[2]||e[1]||e[0])&&!f.length&&(n?n[d]=f:this._root=f),this):(this._root=i,this)},h.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},h.root=function(){return this._root},h.size=function(){var t=0;return this.visit(function(e){if(!e.length)do{++t}while(e=e.next)}),t},h.visit=function(t){var e,n,r,o,s,a,l=[],c=this._root;for(c&&l.push(new i(c,this._x0,this._y0,this._x1,this._y1));e=l.pop();)if(!t(c=e.node,r=e.x0,o=e.y0,s=e.x1,a=e.y1)&&c.length){var h=(r+s)/2,u=(o+a)/2;(n=c[3])&&l.push(new i(n,h,u,s,a)),(n=c[2])&&l.push(new i(n,r,u,h,a)),(n=c[1])&&l.push(new i(n,h,o,s,u)),(n=c[0])&&l.push(new i(n,r,o,h,u))}return this},h.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new i(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var o=e.node;if(o.length){var s,a=e.x0,l=e.y0,c=e.x1,h=e.y1,u=(a+c)/2,d=(l+h)/2;(s=o[0])&&n.push(new i(s,a,l,u,d)),(s=o[1])&&n.push(new i(s,u,l,c,d)),(s=o[2])&&n.push(new i(s,a,d,u,h)),(s=o[3])&&n.push(new i(s,u,d,c,h))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},h.x=function(t){return arguments.length?(this._x=t,this):this._x},h.y=function(t){return arguments.length?(this._y=t,this):this._y}},"./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/arc.js"(t,e,n){"use strict";n.d(e,{A:()=>d});var r=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.js"),i=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/math.js"),o=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/path.js");function s(t){return t.innerRadius}function a(t){return t.outerRadius}function l(t){return t.startAngle}function c(t){return t.endAngle}function h(t){return t&&t.padAngle}function u(t,e,n,r,o,s,a){var l=t-n,c=e-r,h=(a?s:-s)/(0,i.RZ)(l*l+c*c),u=h*c,d=-h*l,f=t+u,p=e+d,g=n+u,m=r+d,y=(f+g)/2,v=(p+m)/2,x=g-f,b=m-p,w=x*x+b*b,_=o-s,M=f*m-g*p,k=(b<0?-1:1)*(0,i.RZ)((0,i.T9)(0,_*_*w-M*M)),C=(M*b-x*k)/w,j=(-M*x-b*k)/w,O=(M*b+x*k)/w,A=(-M*x+b*k)/w,E=C-y,S=j-v,$=O-y,z=A-v;return E*E+S*S>$*$+z*z&&(C=O,j=A),{cx:C,cy:j,x01:-u,y01:-d,x11:C*(o/_-1),y11:j*(o/_-1)}}function d(){var t=s,e=a,n=(0,r.A)(0),d=null,f=l,p=c,g=h,m=null,y=(0,o.i)(v);function v(){var r,o,s=+t.apply(this,arguments),a=+e.apply(this,arguments),l=f.apply(this,arguments)-i.TW,c=p.apply(this,arguments)-i.TW,h=(0,i.tn)(c-l),v=c>l;if(m||(m=r=y()),a<s&&(o=a,a=s,s=o),a>1e-12)if(h>i.FA-1e-12)m.moveTo(a*(0,i.gn)(l),a*(0,i.F8)(l)),m.arc(0,0,a,l,c,!v),s>1e-12&&(m.moveTo(s*(0,i.gn)(c),s*(0,i.F8)(c)),m.arc(0,0,s,c,l,v));else{var x,b,w=l,_=c,M=l,k=c,C=h,j=h,O=g.apply(this,arguments)/2,A=O>1e-12&&(d?+d.apply(this,arguments):(0,i.RZ)(s*s+a*a)),E=(0,i.jk)((0,i.tn)(a-s)/2,+n.apply(this,arguments)),S=E,$=E;if(A>1e-12){var z=(0,i.qR)(A/s*(0,i.F8)(O)),P=(0,i.qR)(A/a*(0,i.F8)(O));(C-=2*z)>1e-12?(M+=z*=v?1:-1,k-=z):(C=0,M=k=(l+c)/2),(j-=2*P)>1e-12?(w+=P*=v?1:-1,_-=P):(j=0,w=_=(l+c)/2)}var L=a*(0,i.gn)(w),T=a*(0,i.F8)(w),I=s*(0,i.gn)(k),R=s*(0,i.F8)(k);if(E>1e-12){var N,H=a*(0,i.gn)(_),B=a*(0,i.F8)(_),W=s*(0,i.gn)(M),F=s*(0,i.F8)(M);if(h<i.pi)if(N=function(t,e,n,r,i,o,s,a){var l=n-t,c=r-e,h=s-i,u=a-o,d=u*l-h*c;if(!(d*d<1e-12))return[t+(d=(h*(e-o)-u*(t-i))/d)*l,e+d*c]}(L,T,W,F,H,B,I,R)){var D=L-N[0],V=T-N[1],U=H-N[0],q=B-N[1],Y=1/(0,i.F8)((0,i.HQ)((D*U+V*q)/((0,i.RZ)(D*D+V*V)*(0,i.RZ)(U*U+q*q)))/2),G=(0,i.RZ)(N[0]*N[0]+N[1]*N[1]);S=(0,i.jk)(E,(s-G)/(Y-1)),$=(0,i.jk)(E,(a-G)/(Y+1))}else S=$=0}j>1e-12?$>1e-12?(x=u(W,F,L,T,a,$,v),b=u(H,B,I,R,a,$,v),m.moveTo(x.cx+x.x01,x.cy+x.y01),$<E?m.arc(x.cx,x.cy,$,(0,i.FP)(x.y01,x.x01),(0,i.FP)(b.y01,b.x01),!v):(m.arc(x.cx,x.cy,$,(0,i.FP)(x.y01,x.x01),(0,i.FP)(x.y11,x.x11),!v),m.arc(0,0,a,(0,i.FP)(x.cy+x.y11,x.cx+x.x11),(0,i.FP)(b.cy+b.y11,b.cx+b.x11),!v),m.arc(b.cx,b.cy,$,(0,i.FP)(b.y11,b.x11),(0,i.FP)(b.y01,b.x01),!v))):(m.moveTo(L,T),m.arc(0,0,a,w,_,!v)):m.moveTo(L,T),s>1e-12&&C>1e-12?S>1e-12?(x=u(I,R,H,B,s,-S,v),b=u(L,T,W,F,s,-S,v),m.lineTo(x.cx+x.x01,x.cy+x.y01),S<E?m.arc(x.cx,x.cy,S,(0,i.FP)(x.y01,x.x01),(0,i.FP)(b.y01,b.x01),!v):(m.arc(x.cx,x.cy,S,(0,i.FP)(x.y01,x.x01),(0,i.FP)(x.y11,x.x11),!v),m.arc(0,0,s,(0,i.FP)(x.cy+x.y11,x.cx+x.x11),(0,i.FP)(b.cy+b.y11,b.cx+b.x11),v),m.arc(b.cx,b.cy,S,(0,i.FP)(b.y11,b.x11),(0,i.FP)(b.y01,b.x01),!v))):m.arc(0,0,s,k,M,v):m.lineTo(I,R)}else m.moveTo(0,0);if(m.closePath(),r)return m=null,r+""||null}return v.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+f.apply(this,arguments)+ +p.apply(this,arguments))/2-i.pi/2;return[(0,i.gn)(r)*n,(0,i.F8)(r)*n]},v.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:(0,r.A)(+e),v):t},v.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.A)(+t),v):e},v.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:(0,r.A)(+t),v):n},v.padRadius=function(t){return arguments.length?(d=null==t?null:"function"==typeof t?t:(0,r.A)(+t),v):d},v.startAngle=function(t){return arguments.length?(f="function"==typeof t?t:(0,r.A)(+t),v):f},v.endAngle=function(t){return arguments.length?(p="function"==typeof t?t:(0,r.A)(+t),v):p},v.padAngle=function(t){return arguments.length?(g="function"==typeof t?t:(0,r.A)(+t),v):g},v.context=function(t){return arguments.length?(m=t??null,v):m},v}},"./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/array.js"(t,e,n){"use strict";function r(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}n.d(e,{A:()=>r})},"./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.js"(t,e,n){"use strict";function r(t){return function(){return t}}n.d(e,{A:()=>r})},"./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.js"(t,e,n){"use strict";function r(t){this._context=t}function i(t){return new r(t)}n.d(e,{A:()=>i}),r.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)}}}},"./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/line.js"(t,e,n){"use strict";n.d(e,{A:()=>l});var r=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/array.js"),i=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.js"),o=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.js"),s=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/path.js"),a=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/point.js");function l(t,e){var n=(0,i.A)(!0),l=null,c=o.A,h=null,u=(0,s.i)(d);function d(i){var o,s,a,d=(i=(0,r.A)(i)).length,f=!1;for(null==l&&(h=c(a=u())),o=0;o<=d;++o)!(o<d&&n(s=i[o],o,i))===f&&((f=!f)?h.lineStart():h.lineEnd()),f&&h.point(+t(s,o,i),+e(s,o,i));if(a)return h=null,a+""||null}return t="function"==typeof t?t:void 0===t?a.x:(0,i.A)(t),e="function"==typeof e?e:void 0===e?a.y:(0,i.A)(e),d.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,i.A)(+e),d):t},d.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.A)(+t),d):e},d.defined=function(t){return arguments.length?(n="function"==typeof t?t:(0,i.A)(!!t),d):n},d.curve=function(t){return arguments.length?(c=t,null!=l&&(h=c(l)),d):c},d.context=function(t){return arguments.length?(null==t?l=h=null:h=c(l=t),d):l},d}},"./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/math.js"(t,e,n){"use strict";n.d(e,{HQ:()=>d,qR:()=>f});const r=Math.abs,i=Math.atan2,o=Math.cos,s=Math.max,a=Math.min,l=Math.sin,c=Math.sqrt,h=Math.PI,u=h/2;function d(t){return t>1?0:t<-1?h:Math.acos(t)}function f(t){return t>=1?u:t<=-1?-u:Math.asin(t)}n.d(e,["F8",0,l,"FA",0,2*h,"FP",0,i,"RZ",0,c,"T9",0,s,"TW",0,u,"gn",0,o,"jk",0,a,"pi",0,h,"tn",0,r])},"./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/path.js"(t,e,n){"use strict";n.d(e,{i:()=>i});var r=n("./node_modules/.pnpm/d3-path@3.1.0/node_modules/d3-path/src/path.js");function i(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 r.wA(e)}},"./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/point.js"(t,e,n){"use strict";function r(t){return t[0]}function i(t){return t[1]}n.d(e,{x:()=>r,y:()=>i})},"./node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js"(t,e,n){"use strict";n.d(e,{M4:()=>g,O1:()=>m,tB:()=>f});var r,i,o=0,s=0,a=0,l=0,c=0,h=0,u="object"==typeof performance&&performance.now?performance:Date,d="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function f(){return c||(d(p),c=u.now()+h)}function p(){c=0}function g(){this._call=this._time=this._next=null}function m(t,e,n){var r=new g;return r.restart(t,e,n),r}function y(){c=(l=u.now())+h,o=s=0;try{!function(){f(),++o;for(var t,e=r;e;)(t=c-e._time)>=0&&e._call.call(void 0,t),e=e._next;--o}()}finally{o=0,function(){for(var t,e,n=r,o=1/0;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,x(o)}(),c=0}}function v(){var t=u.now(),e=t-l;e>1e3&&(h-=e,l=t)}function x(t){o||(s&&(s=clearTimeout(s)),t-c>24?(t<1/0&&(s=setTimeout(y,t-u.now()-h)),a&&(a=clearInterval(a))):(a||(l=u.now(),a=setInterval(v,1e3)),o=1,d(y)))}g.prototype=m.prototype={constructor:g,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?f():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,x()},stop:function(){this._call&&(this._call=null,this._time=1/0,x())}}},"./node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.mjs"(t,e,n){"use strict";var r=n("./node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.js");n.d(e,["A",0,r])},"./node_modules/.pnpm/flru@1.0.2/node_modules/flru/dist/flru.mjs"(t,e,n){"use strict";function r(t){var e,n,r,i=t||1;function o(t,o){++e>i&&(r=n,s(1),++e),n[t]=o}function s(t){e=0,n=Object.create(null),t||(r=Object.create(null))}return s(),{clear:s,has:function(t){return void 0!==n[t]||void 0!==r[t]},get:function(t){var e=n[t];return void 0!==e?e:void 0!==(e=r[t])?(o(t,e),e):void 0},set:function(t,e){void 0!==n[t]?n[t]=e:o(t,e)}}}n.d(e,{A:()=>r})},"./node_modules/.pnpm/tinycolor2@1.6.0/node_modules/tinycolor2/esm/tinycolor.js"(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,{A:()=>s});var i=/^\s+/,o=/\s+$/;function s(t,e){if(e=e||{},(t=t||"")instanceof s)return t;if(!(this instanceof s))return new s(t,e);var n=function(t){var e,n,s={r:0,g:0,b:0},a=1,l=null,c=null,h=null,u=!1,d=!1;return"string"==typeof t&&(t=function(t){t=t.replace(i,"").replace(o,"").toLowerCase();var e,n=!1;if(M[t])t=M[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=I.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=I.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=I.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=I.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=I.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=I.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=I.hex8.exec(t))?{r:A(e[1]),g:A(e[2]),b:A(e[3]),a:z(e[4]),format:n?"name":"hex8"}:(e=I.hex6.exec(t))?{r:A(e[1]),g:A(e[2]),b:A(e[3]),format:n?"name":"hex"}:(e=I.hex4.exec(t))?{r:A(e[1]+""+e[1]),g:A(e[2]+""+e[2]),b:A(e[3]+""+e[3]),a:z(e[4]+""+e[4]),format:n?"name":"hex8"}:!!(e=I.hex3.exec(t))&&{r:A(e[1]+""+e[1]),g:A(e[2]+""+e[2]),b:A(e[3]+""+e[3]),format:n?"name":"hex"}}(t)),"object"==r(t)&&(R(t.r)&&R(t.g)&&R(t.b)?(e=t.g,n=t.b,s={r:255*j(t.r,255),g:255*j(e,255),b:255*j(n,255)},u=!0,d="%"===String(t.r).substr(-1)?"prgb":"rgb"):R(t.h)&&R(t.s)&&R(t.v)?(l=S(t.s),c=S(t.v),s=function(t,e,n){t=6*j(t,360),e=j(e,100),n=j(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),s=n*(1-i*e),a=n*(1-(1-i)*e),l=r%6;return{r:255*[n,s,o,o,a,n][l],g:255*[a,n,n,s,o,o][l],b:255*[o,o,a,n,n,s][l]}}(t.h,l,c),u=!0,d="hsv"):R(t.h)&&R(t.s)&&R(t.l)&&(l=S(t.s),h=S(t.l),s=function(t,e,n){var r,i,o;function s(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=j(t,360),e=j(e,100),n=j(n,100),0===e)r=i=o=n;else{var a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;r=s(l,a,t+1/3),i=s(l,a,t),o=s(l,a,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(t.h,l,h),u=!0,d="hsl"),t.hasOwnProperty("a")&&(a=t.a)),a=C(a),{ok:u,format:t.format||d,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function a(t,e,n){t=j(t,255),e=j(e,255),n=j(n,255);var r,i,o=Math.max(t,e,n),s=Math.min(t,e,n),a=(o+s)/2;if(o==s)r=i=0;else{var l=o-s;switch(i=a>.5?l/(2-o-s):l/(o+s),o){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:i,l:a}}function l(t,e,n){t=j(t,255),e=j(e,255),n=j(n,255);var r,i,o=Math.max(t,e,n),s=Math.min(t,e,n),a=o,l=o-s;if(i=0===o?0:l/o,o==s)r=0;else{switch(o){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:i,v:a}}function c(t,e,n,r){var i=[E(Math.round(t).toString(16)),E(Math.round(e).toString(16)),E(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function h(t,e,n,r){return[E($(r)),E(Math.round(t).toString(16)),E(Math.round(e).toString(16)),E(Math.round(n).toString(16))].join("")}function u(t,e){e=0===e?0:e||10;var n=s(t).toHsl();return n.s-=e/100,n.s=O(n.s),s(n)}function d(t,e){e=0===e?0:e||10;var n=s(t).toHsl();return n.s+=e/100,n.s=O(n.s),s(n)}function f(t){return s(t).desaturate(100)}function p(t,e){e=0===e?0:e||10;var n=s(t).toHsl();return n.l+=e/100,n.l=O(n.l),s(n)}function g(t,e){e=0===e?0:e||10;var n=s(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-e/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-e/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-e/100*255))),s(n)}function m(t,e){e=0===e?0:e||10;var n=s(t).toHsl();return n.l-=e/100,n.l=O(n.l),s(n)}function y(t,e){var n=s(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,s(n)}function v(t){var e=s(t).toHsl();return e.h=(e.h+180)%360,s(e)}function x(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=s(t).toHsl(),r=[s(t)],i=360/e,o=1;o<e;o++)r.push(s({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function b(t){var e=s(t).toHsl(),n=e.h;return[s(t),s({h:(n+72)%360,s:e.s,l:e.l}),s({h:(n+216)%360,s:e.s,l:e.l})]}function w(t,e,n){e=e||6,n=n||30;var r=s(t).toHsl(),i=360/n,o=[s(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(s(r));return o}function _(t,e){e=e||6;for(var n=s(t).toHsv(),r=n.h,i=n.s,o=n.v,a=[],l=1/e;e--;)a.push(s({h:r,s:i,v:o})),o=(o+l)%1;return a}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return e=r.g/255,n=r.b/255,.2126*((t=r.r/255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=C(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=l(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=l(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=a(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=a(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return c(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,i){var o=[E(Math.round(t).toString(16)),E(Math.round(e).toString(16)),E(Math.round(n).toString(16)),E($(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*j(this._r,255))+"%",g:Math.round(100*j(this._g,255))+"%",b:Math.round(100*j(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*j(this._r,255))+"%, "+Math.round(100*j(this._g,255))+"%, "+Math.round(100*j(this._b,255))+"%)":"rgba("+Math.round(100*j(this._r,255))+"%, "+Math.round(100*j(this._g,255))+"%, "+Math.round(100*j(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(k[c(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+h(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=s(t);n="#"+h(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1;return e||!(this._a<1&&this._a>=0)||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return s(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(p,arguments)},brighten:function(){return this._applyModification(g,arguments)},darken:function(){return this._applyModification(m,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(d,arguments)},greyscale:function(){return this._applyModification(f,arguments)},spin:function(){return this._applyModification(y,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(w,arguments)},complement:function(){return this._applyCombination(v,arguments)},monochromatic:function(){return this._applyCombination(_,arguments)},splitcomplement:function(){return this._applyCombination(b,arguments)},triad:function(){return this._applyCombination(x,[3])},tetrad:function(){return this._applyCombination(x,[4])}},s.fromRatio=function(t,e){if("object"==r(t)){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]="a"===i?t[i]:S(t[i]));t=n}return s(t,e)},s.equals=function(t,e){return!(!t||!e)&&s(t).toRgbString()==s(e).toRgbString()},s.random=function(){return s.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},s.mix=function(t,e,n){n=0===n?0:n||50;var r=s(t).toRgb(),i=s(e).toRgb(),o=n/100;return s({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},s.readability=function(t,e){var n=s(t),r=s(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},s.isReadable=function(t,e,n){var r,i,o,a,l,c=s.readability(t,e);switch(i=!1,(o=n,"AA"!==(a=((o=o||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==a&&(a="AA"),"small"!==(l=(o.size||"small").toLowerCase())&&"large"!==l&&(l="small"),r={level:a,size:l}).level+r.size){case"AAsmall":case"AAAlarge":i=c>=4.5;break;case"AAlarge":i=c>=3;break;case"AAAsmall":i=c>=7}return i},s.mostReadable=function(t,e,n){var r,i,o,a,l=null,c=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var h=0;h<e.length;h++)(r=s.readability(t,e[h]))>c&&(c=r,l=s(e[h]));return s.isReadable(t,l,{level:o,size:a})||!i?l:(n.includeFallbackColors=!1,s.mostReadable(t,["#fff","#000"],n))};var M=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},k=s.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(M);function C(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function j(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function O(t){return Math.min(1,Math.max(0,t))}function A(t){return parseInt(t,16)}function E(t){return 1==t.length?"0"+t:""+t}function S(t){return t<=1&&(t=100*t+"%"),t}function $(t){return Math.round(255*parseFloat(t)).toString(16)}function z(t){return A(t)/255}var P,L,T,I=(L="[\\s|\\(]+("+(P="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+P+")[,|\\s]+("+P+")\\s*\\)?",T="[\\s|\\(]+("+P+")[,|\\s]+("+P+")[,|\\s]+("+P+")[,|\\s]+("+P+")\\s*\\)?",{CSS_UNIT:new RegExp(P),rgb:new RegExp("rgb"+L),rgba:new RegExp("rgba"+T),hsl:new RegExp("hsl"+L),hsla:new RegExp("hsla"+T),hsv:new RegExp("hsv"+L),hsva:new RegExp("hsva"+T),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function R(t){return!!I.CSS_UNIT.exec(t)}}}]);
|
|
1
|
+
(self.webpackChunkdash_antd_components=self.webpackChunkdash_antd_components||[]).push([["async-infographic"],{"./node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.browser.js"(t){var e=String,n=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};t.exports=n(),t.exports.createColors=n},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/at-rule.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js");class r extends i{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}}t.exports=r,r.default=r,i.registerAtRule(r)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/comment.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/node.js");class r extends i{constructor(t){super(t),this.type="comment"}}t.exports=r,r.default=r},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js"(t,e,n){"use strict";let i,r,o,s,a=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/comment.js"),l=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/declaration.js"),c=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/node.js"),{isClean:h,my:u}=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/symbols.js");class d extends c{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...t){for(let e of t){let t=this.normalize(e,this.last);for(let e of t)this.proxyOf.nodes.push(e)}return this.markDirty(),this}cleanRaws(t){let e=[this];for(;e.length>0;){let n=e.pop();if(n===this||n.cleanRaws===d.prototype.cleanRaws){if(c.prototype.cleanRaws.call(n,t),n.nodes)for(let t of n.nodes)e.push(t)}else n.cleanRaws(t)}}each(t){if(!this.proxyOf.nodes)return;let e,n,i=this.getIterator();for(;this.indexes[i]<this.proxyOf.nodes.length&&(e=this.indexes[i],n=t(this.proxyOf.nodes[e],e),!1!==n);)this.indexes[i]+=1;return delete this.indexes[i],n}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?(...n)=>t[e](...n.map(t=>"function"==typeof t?(e,n)=>t(e.toProxy(),n):t)):"every"===e||"some"===e?n=>t[e]((t,...e)=>n(t.toProxy(),...e)):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map(t=>t.toProxy()):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e],set:(t,e,n)=>(t[e]===n||(t[e]=n,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0)}}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,e){let n,i=this.index(t),r=this.normalize(e,this.proxyOf.nodes[i]).reverse();i=this.index(t);for(let t of r)this.proxyOf.nodes.splice(i+1,0,t);for(let t in this.indexes)n=this.indexes[t],i<n&&(this.indexes[t]=n+r.length);return this.markDirty(),this}insertBefore(t,e){let n,i=this.index(t),r=this.normalize(e,this.proxyOf.nodes[i],0===i&&"prepend").reverse();i=this.index(t);for(let t of r)this.proxyOf.nodes.splice(i,0,t);for(let t in this.indexes)n=this.indexes[t],i<=n&&(this.indexes[t]=n+r.length);return this.markDirty(),this}normalize(t,e){if("string"==typeof t)t=function(t){let e=t.slice();for(;e.length>0;){let t=e.pop();if(delete t.source,t.nodes){t.nodes=t.nodes.slice();for(let n of t.nodes)e.push(n)}}return t.slice()}(r(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new l(t)]}else if(t.selector||t.selectors)t=[new s(t)];else if(t.name)t=[new i(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new a(t)]}return t.map(t=>(t[u]||d.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[h]&&function(t){let e=[t];for(;e.length>0;){let t=e.pop();if(t[h]=!1,t.proxyOf.nodes)for(let n of t.proxyOf.nodes)e.push(n)}}(t),t.raws||(t.raws={}),void 0===t.raws.before&&e&&void 0!==e.raws.before&&(t.raws.before=e.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...t){t=t.reverse();for(let e of t){let t=this.normalize(e,this.first,"prepend").reverse();for(let e of t)this.proxyOf.nodes.unshift(e);for(let e in this.indexes)this.indexes[e]=this.indexes[e]+t.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){let e;t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);for(let n in this.indexes)e=this.indexes[n],e>=t&&(this.indexes[n]=e-1);return this.markDirty(),this}replaceValues(t,e,n){return n||(n=e,e={}),this.walkDecls(i=>{e.props&&!e.props.includes(i.prop)||e.fast&&!i.value.includes(e.fast)||(i.value=i.value.replace(t,n))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){if(!this.proxyOf.nodes)return;let e=[{iterator:this.getIterator(),node:this.proxyOf}];for(;e.length>0;){let{iterator:n,node:i}=e[e.length-1],r=i.indexes[n];if(r>=i.proxyOf.nodes.length){delete i.indexes[n],e.pop();let t=e[e.length-1];t&&(t.node.indexes[t.iterator]+=1);continue}let o,s=i.proxyOf.nodes[r];try{o=t(s,r)}catch(t){throw s.addToError(t)}if(!1===o){for(let t of e)delete t.node.indexes[t.iterator];return!1}s.walk&&s.proxyOf.nodes?e.push({iterator:s.getIterator(),node:s}):i.indexes[n]+=1}}walkAtRules(t,e){return e?t instanceof RegExp?this.walk((n,i)=>{if("atrule"===n.type&&t.test(n.name))return e(n,i)}):this.walk((n,i)=>{if("atrule"===n.type&&n.name===t)return e(n,i)}):(e=t,this.walk((t,n)=>{if("atrule"===t.type)return e(t,n)}))}walkComments(t){return this.walk((e,n)=>{if("comment"===e.type)return t(e,n)})}walkDecls(t,e){return e?t instanceof RegExp?this.walk((n,i)=>{if("decl"===n.type&&t.test(n.prop))return e(n,i)}):this.walk((n,i)=>{if("decl"===n.type&&n.prop===t)return e(n,i)}):(e=t,this.walk((t,n)=>{if("decl"===t.type)return e(t,n)}))}walkRules(t,e){return e?t instanceof RegExp?this.walk((n,i)=>{if("rule"===n.type&&t.test(n.selector))return e(n,i)}):this.walk((n,i)=>{if("rule"===n.type&&n.selector===t)return e(n,i)}):(e=t,this.walk((t,n)=>{if("rule"===t.type)return e(t,n)}))}}d.registerParse=t=>{r=t},d.registerRule=t=>{s=t},d.registerAtRule=t=>{i=t},d.registerRoot=t=>{o=t},t.exports=d,d.default=d,d.rebuild=t=>{let e=[t];for(;e.length>0;){let t=e.pop();if("atrule"===t.type?Object.setPrototypeOf(t,i.prototype):"rule"===t.type?Object.setPrototypeOf(t,s.prototype):"decl"===t.type?Object.setPrototypeOf(t,l.prototype):"comment"===t.type?Object.setPrototypeOf(t,a.prototype):"root"===t.type&&Object.setPrototypeOf(t,o.prototype),t[u]=!0,t.nodes)for(let n of t.nodes)e.push(n)}}},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/css-syntax-error.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.browser.js"),r=n("?c3ee");class o extends Error{constructor(t,e,n,i,r,s){super(t),this.name="CssSyntaxError",this.reason=t,r&&(this.file=r),i&&(this.source=i),s&&(this.plugin=s),void 0!==e&&void 0!==n&&("number"==typeof e?(this.line=e,this.column=n):(this.line=e.line,this.column=e.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,o)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let e=this.source;null==t&&(t=i.isColorSupported);let n=t=>t,o=t=>t,s=t=>t;if(t){let{bold:t,gray:e,red:a}=i.createColors(!0);o=e=>t(a(e)),n=t=>e(t),r&&(s=t=>r(t))}let a=e.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),h=String(c).length;return a.slice(l,c).map((t,e)=>{let i=l+1+e,r=" "+(" "+i).slice(-h)+" | ";if(i===this.line){if(t.length>160){let e=20,i=Math.max(0,this.column-e),a=Math.max(this.column+e,this.endColumn+e),l=t.slice(i,a),c=n(r.replace(/\d/g," "))+t.slice(0,Math.min(this.column-1,e-1)).replace(/[^\t]/g," ");return o(">")+n(r)+s(l)+"\n "+c+o("^")}let e=n(r.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+n(r)+s(t)+"\n "+e+o("^")}return" "+n(r)+s(t)}).join("\n")}toString(){let t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}}t.exports=o,o.default=o},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/declaration.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/node.js");class r extends i{get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}}t.exports=r,r.default=r},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/document.js"(t,e,n){"use strict";let i,r,o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js");class s extends o{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new i(new r,this,t).stringify()}}s.registerLazyResult=t=>{i=t},s.registerProcessor=t=>{r=t},t.exports=s,s.default=s},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/fromJSON.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/at-rule.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/comment.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/declaration.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/input.js"),a=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/previous-map.js"),l=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js"),c=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/rule.js");function h(t,e){return t.inputs?t.inputs.map(t=>{let e={...t,__proto__:s.prototype};return e.map&&(e.map={...e.map,__proto__:a.prototype}),e}):e}function u(t,e,n){let s,a={...t};if(delete a.inputs,delete a.nodes,a.source){let{inputId:t,...n}=a.source;a.source=n,null!=t&&(a.source.input=e[t])}if("root"===a.type)s=new l(a);else if("decl"===a.type)s=new o(a);else if("rule"===a.type)s=new c(a);else if("comment"===a.type)s=new r(a);else{if("atrule"!==a.type)throw new Error("Unknown node type: "+t.type);s=new i(a)}if(n){s.nodes=n;for(let t of n)t.parent=s}return s}function d(t,e){if(Array.isArray(t))return t.map(t=>d(t));let n,i=[{childIndex:0,children:[],inputs:h(t,e),json:t}];for(;i.length>0;){let t=i[i.length-1],e=t.json.nodes;if(e&&t.childIndex<e.length){let n=e[t.childIndex];t.childIndex+=1,i.push({childIndex:0,children:[],inputs:h(n,t.inputs),json:n});continue}i.pop();let r=u(t.json,t.inputs,e?t.children:void 0);i.length>0?i[i.length-1].children.push(r):n=r}return n}t.exports=d,d.default=d},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/input.js"(t,e,n){"use strict";let{nanoid:i}=n("./node_modules/.pnpm/nanoid@3.3.16/node_modules/nanoid/non-secure/index.cjs"),{isAbsolute:r,resolve:o}=n("?9d3a"),{SourceMapConsumer:s,SourceMapGenerator:a}=n("?0348"),{fileURLToPath:l,pathToFileURL:c}=n("?2bf4"),h=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/css-syntax-error.js"),u=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/previous-map.js"),d=n("?c3ee"),f=Symbol("lineToIndexCache"),p=Boolean(s&&a),g=Boolean(o&&r);function m(t){if(t[f])return t[f];let e=t.css.split("\n"),n=new Array(e.length),i=0;for(let t=0,r=e.length;t<r;t++)n[t]=i,i+=e[t].length+1;return t[f]=n,n}class y{get from(){return this.file||this.id}constructor(t,e={}){if(null==t||"object"==typeof t&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,e.document&&(this.document=e.document.toString()),e.from&&(this.file=!g||/^\w+:\/\//.test(e.from)||r(e.from)?e.from:o(e.from)),g&&p){let t=new u(this.css,e);if(t.text){this.map=t;let e=t.consumer().file;!this.file&&e&&(this.file=this.mapResolve(e))}}this.file||(this.id="<input css "+i(6)+">"),this.map&&(this.map.file=this.from)}error(t,e,n,i={}){let r,o,s,a,l;if(e&&"object"==typeof e){let t=e,i=n;if("number"==typeof t.offset){a=t.offset;let i=this.fromOffset(a);e=i.line,n=i.col}else a=this.fromLineAndColumn(e=t.line,n=t.column);if("number"==typeof i.offset){s=i.offset;let t=this.fromOffset(s);o=t.line,r=t.col}else o=i.line,r=i.column,s=this.fromLineAndColumn(i.line,i.column)}else if(n)a=this.fromLineAndColumn(e,n);else{a=e;let t=this.fromOffset(a);e=t.line,n=t.col}let u=this.origin(e,n,o,r);return l=u?new h(t,void 0===u.endLine?u.line:{column:u.column,line:u.line},void 0===u.endLine?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,i.plugin):new h(t,void 0===o?e:{column:n,line:e},void 0===o?n:{column:r,line:o},this.css,this.file,i.plugin),l.input={column:n,endColumn:r,endLine:o,endOffset:s,line:e,offset:a,source:this.css},this.file&&(c&&(l.input.url=c(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(t,e){return m(this)[t-1]+e-1}fromOffset(t){let e=m(this),n=0;if(t>=e[e.length-1])n=e.length-1;else{let i,r=e.length-2;for(;n<r;)if(i=n+(r-n>>1),t<e[i])r=i-1;else{if(!(t>=e[i+1])){n=i;break}n=i+1}}return{col:t-e[n]+1,line:n+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:o(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,e,n,i){if(!this.map)return!1;let o,s,a=this.map.consumer(),h=a.originalPositionFor({column:e-1,line:t});if(!h.source)return!1;if("number"==typeof n){let t=a.originalPositionFor({column:i-1,line:n});t.source&&(o=t)}s=r(h.source)?c(h.source):new URL(h.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let u={column:h.column+1,endColumn:o&&o.column+1,endLine:o&&o.line,line:h.line,url:s.toString()};if("file:"===s.protocol){if(!l)throw new Error("file: protocol is not available in this PostCSS build");u.file=l(s)}let d=a.sourceContentFor(h.source);return d&&(u.source=d),u}toJSON(){let t={};for(let e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}}t.exports=y,y.default=y,d&&d.registerInput&&d.registerInput(y)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/lazy-result.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/document.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/map-generator.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parse.js"),a=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/result.js"),l=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js"),c=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringify.js"),{isClean:h,my:u}=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/symbols.js");n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warn-once.js");const d={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},p={Once:!0,postcssPlugin:!0,prepare:!0};function g(t){return"object"==typeof t&&"function"==typeof t.then}function m(t){let e=!1,n=d[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[n,n+"-"+e,0,n+"Exit",n+"Exit-"+e]:e?[n,n+"-"+e,n+"Exit",n+"Exit-"+e]:t.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function y(t){let e;return e="document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:m(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function v(t){let e=[t];for(;e.length>0;){let t=e.pop();if(t[h]=!1,t.nodes)for(let n of t.nodes)e.push(n)}return t}let x={};class b{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(t,e,n){let r;if(this.stringified=!1,this.processed=!1,"object"!=typeof e||null===e||"root"!==e.type&&"document"!==e.type)if(e instanceof b||e instanceof a)r=v(e.root),e.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=e.map);else{let t=s;n.syntax&&(t=n.syntax.parse),n.parser&&(t=n.parser),t.parse&&(t=t.parse);try{r=t(e,n)}catch(t){this.processed=!0,this.error=t}r&&!r[u]&&i.rebuild(r)}else r=v(e);this.result=new a(t,r,n),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(t=>"object"==typeof t&&t.prepare?{...t,...t.prepare(this.result)}:t)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){let n=this.result.lastPlugin;try{e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin||(t.plugin=n.postcssPlugin,t.setMessage())}catch(t){console&&console.error&&console.error(t)}return t}prepareVisitors(){this.listeners={};let t=(t,e,n)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,n])};for(let e of this.plugins)if("object"==typeof e)for(let n in e){if(!f[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[n])if("object"==typeof e[n])for(let i in e[n])t(e,"*"===i?n:n+"-"+i.toLowerCase(),e[n][i]);else"function"==typeof e[n]&&t(e,n,e[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let e=this.runOnRoot(this.plugins[t]);if(g(e))try{await e}catch(t){throw this.handleError(t)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[h];){t[h]=!0;let e=[y(t)];for(;e.length>0;){let t=this.visitTick(e);if(g(t))try{await t}catch(t){throw this.handleError(t,e[e.length-1].node)}}}if(this.listeners.OnceExit)for(let[e,n]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map(t=>n(t,this.helpers));await Promise.all(e)}else await n(t,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){let e=this.result.root.nodes.map(e=>t.Once(e,this.helpers));return g(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,e=c;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);let n=this.result.root.source;if(void 0===t.map&&!(n&&n.input&&n.input.map)){let t="";return e(this.result.root,e=>{t+=e}),this.result.css=t,this.result}let i=new o(e,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){if(g(this.runOnRoot(t)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[h];)t[h]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,e){return this.async().then(t,e)}toString(){return this.css}visitSync(t,e){for(let[n,i]of t){let t;this.result.lastPlugin=n;try{t=i(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(g(t))throw this.getAsyncError()}}visitTick(t){let e=t[t.length-1],{node:n,visitors:i}=e;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void t.pop();if(i.length>0&&e.visitorIndex<i.length){let[t,r]=i[e.visitorIndex];e.visitorIndex+=1,e.visitorIndex===i.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=t;try{return r(n.toProxy(),this.helpers)}catch(t){throw this.handleError(t,n)}}if(0!==e.iterator){let i,r=e.iterator;for(;i=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!i[h])return i[h]=!0,void t.push(y(i));e.iterator=0,delete n.indexes[r]}let r=e.events;for(;e.eventIndex<r.length;){let t=r[e.eventIndex];if(e.eventIndex+=1,0===t)return void(n.nodes&&n.nodes.length&&(n[h]=!0,e.iterator=n.getIterator()));if(this.listeners[t])return void(e.visitors=this.listeners[t])}t.pop()}walkSync(t){t[h]=!0;let e=[{eventIndex:0,events:m(t),iterator:0,node:t}];for(;e.length>0;){let t=e[e.length-1],n=t.node;if(0!==t.iterator){let i,r=t.iterator,o=!1;for(;i=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!i[h]){i[h]=!0,e.push({eventIndex:0,events:m(i),iterator:0,node:i}),o=!0;break}if(o)continue;t.iterator=0,delete n.indexes[r]}if(t.eventIndex<t.events.length){let i=t.events[t.eventIndex];if(t.eventIndex+=1,0===i)n.nodes&&n.nodes.length&&(t.iterator=n.getIterator());else{let t=this.listeners[i];t&&this.visitSync(t,n.toProxy())&&e.pop()}continue}e.pop()}}warnings(){return this.sync().warnings()}}b.registerPostcss=t=>{x=t},t.exports=b,b.default=b,l.registerLazyResult(b),r.registerLazyResult(b)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/list.js"(t){"use strict";let e={comma:t=>e.split(t,[","],!0),space:t=>e.split(t,[" ","\n","\t"]),split(t,e,n){let i=[],r="",o=!1,s=0,a=!1,l="",c=!1;for(let n of t)c?c=!1:"\\"===n?c=!0:a?n===l&&(a=!1):'"'===n||"'"===n?(a=!0,l=n):"("===n?s+=1:")"===n?s>0&&(s-=1):0===s&&e.includes(n)&&(o=!0),o?(""!==r&&i.push(r.trim()),r="",o=!1):r+=n;return(n||""!==r)&&i.push(r.trim()),i}};t.exports=e,e.default=e},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/map-generator.js"(t,e,n){"use strict";let{dirname:i,relative:r,resolve:o,sep:s}=n("?9d3a"),{SourceMapConsumer:a,SourceMapGenerator:l}=n("?0348"),{pathToFileURL:c}=n("?2bf4"),h=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/input.js"),u=Boolean(a&&l),d=Boolean(i&&o&&r&&s);t.exports=class{constructor(t,e,n,i){this.stringify=t,this.mapOpts=n.map||{},this.root=e,this.opts=n,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let e,n=this.toUrl(this.path(t.file)),r=t.root||i(t.file);!1===this.mapOpts.sourcesContent?(e=new a(t.text),e.sourcesContent&&(e.sourcesContent=null)):e=t.consumer(),this.map.applySourceMap(e,n,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let t;for(let e=this.root.nodes.length-1;e>=0;e--)t=this.root.nodes[e],"comment"===t.type&&t.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(e)}else if(this.css){let t;for(;-1!==(t=this.css.lastIndexOf("/*#"));){let e=this.css.indexOf("*/",t+3);if(-1===e)break;for(;t>0&&"\n"===this.css[t-1];)t--;this.css=this.css.slice(0,t)+this.css.slice(e+2)}}}generate(){if(this.clearAnnotation(),d&&u&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,e=>{t+=e}),[t]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=l.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0});let t,e,n=1,i=1,r="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(s,a,l)=>{if(this.css+=s,a&&"end"!==l&&(o.generated.line=n,o.generated.column=i-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1,this.map.addMapping(o)):(o.source=r,o.original.line=1,o.original.column=0,this.map.addMapping(o))),e=s.match(/\n/g),e?(n+=e.length,t=s.lastIndexOf("\n"),i=s.length-t):i+=s.length,a&&"start"!==l){let t=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===t.last&&!t.raws.semicolon||(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=n,o.generated.column=i-2,this.map.addMapping(o)):(o.source=r,o.original.line=1,o.original.column=0,o.generated.line=n,o.generated.column=i-1,this.map.addMapping(o)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(t=>t.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some(t=>t.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(t=>t.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute)return t;if(60===t.charCodeAt(0))return t;if(/^\w+:\/\//.test(t))return t;let e=this.memoizedPaths.get(t);if(e)return e;let n=this.opts.to?i(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=i(o(n,this.mapOpts.annotation)));let s=r(n,t);return this.memoizedPaths.set(t,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}});else{let t=new h(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(e=>{if(e.source){let n=e.source.input.from;if(n&&!t[n]){t[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,e.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let e=this.memoizedFileURLs.get(t);if(e)return e;if(c){let e=c(t).toString();return this.memoizedFileURLs.set(t,e),e}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let e=this.memoizedURLs.get(t);if(e)return e;"\\"===s&&(t=t.replace(/\\/g,"/"));let n=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,n),n}}},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/no-work-result.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/map-generator.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parse.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/result.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringify.js");n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warn-once.js");class a{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,e=r;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(t,e,n){e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=n,this._map=void 0;let r=s;this.result=new o(this._processor,void 0,this._opts),this.result.css=e;let a=this;Object.defineProperty(this.result,"root",{get:()=>a.root});let l=new i(r,void 0,this._opts,e);if(l.isMap()){let[t,e]=l.generate();t&&(this.result.css=t),e&&(this.result.map=e)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,e){return this.async().then(t,e)}toString(){return this._css}warnings(){return[]}}t.exports=a,a.default=a},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/node.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/css-syntax-error.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringifier.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringify.js"),{isClean:s,my:a}=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/symbols.js");function l(t,e){if(e&&void 0!==e.offset)return e.offset;let n=1,i=1,r=0;for(let o=0;o<t.length;o++){if(i===e.line&&n===e.column){r=o;break}"\n"===t[o]?(n=1,i+=1):n+=1}return r}class c{get proxyOf(){return this}constructor(t={}){this.raws={},this[s]=!1,this[a]=!0;for(let e of Object.keys(t))if("__proto__"!==e)if("nodes"===e){this.nodes=[];for(let n of t[e])this.append("function"==typeof n.clone&&n.parent?n.clone():n)}else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let e in t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let e=function(t,e){let n=new t.constructor,i=[[t,n,e]];for(;i.length>0;){let[t,e,n]=i.pop();for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;if("proxyCache"===r)continue;let o=t[r],s=typeof o;if("parent"===r&&"object"===s)n&&(e[r]=n);else if("source"===r)e[r]=o;else if(Array.isArray(o)){let t=[];e[r]=t;for(let n of o){let r=new n.constructor;t.push(r),i.push([n,r,e])}}else{if("object"===s&&null!==o){let t=new o.constructor;i.push([o,t,void 0]),o=t}e[r]=o}}}return n}(this);for(let n in t)e[n]=t[n];return e}cloneAfter(t={}){let e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(t={}){let e=this.clone(t);return this.parent.insertBefore(this,e),e}error(t,e={}){if(this.source){let{end:n,start:i}=this.rangeBy(e);return this.source.input.error(t,{column:i.column,line:i.line},{column:n.column,line:n.line},e)}return new i(t)}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e],set:(t,e,n)=>(t[e]===n||(t[e]=n,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0)}}markClean(){this[s]=!0}markDirty(){if(this[s]){this[s]=!1;let t=this;for(;t=t.parent;)t[s]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t={}){let e="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:l(e,this.source.start)};if(t.index)n=this.positionInside(t.index);else if(t.word){let i=e.slice(l(e,this.source.start),l(e,this.source.end)).indexOf(t.word);-1!==i&&(n=this.positionInside(i))}return n}positionInside(t){let e=this.source.start.column,n=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,r=l(i,this.source.start),o=r+t;for(let t=r;t<o;t++)"\n"===i[t]?(e=1,n+=1):e+=1;return{column:e,line:n,offset:o}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t={}){let e="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:l(e,this.source.start)},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:"number"==typeof this.source.end.offset?this.source.end.offset:l(e,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(t.word){let r=e.slice(l(e,this.source.start),l(e,this.source.end)).indexOf(t.word);-1!==r&&(n=this.positionInside(r),i=this.positionInside(r+t.word.length))}else t.start?n={column:t.start.column,line:t.start.line,offset:l(e,t.start)}:"number"==typeof t.index&&(n=this.positionInside(t.index)),t.end?i={column:t.end.column,line:t.end.line,offset:l(e,t.end)}:"number"==typeof t.endIndex?i=this.positionInside(t.endIndex):"number"==typeof t.index&&(i=this.positionInside(t.index+1));return(i.line<n.line||i.line===n.line&&i.column<=n.column)&&(i={column:n.column+1,line:n.line,offset:n.offset+1}),{end:i,start:n}}raw(t,e){return(new r).raw(this,t,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let e=this,n=!1;for(let i of t)i===this?n=!0:n?(this.parent.insertAfter(e,i),e=i):this.parent.insertBefore(e,i);n||this.remove()}return this}root(){let t=this;for(;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}toJSON(t,e){let n=null==e;e=e||new Map;let i=[],r=[[this,i,0]];for(let t=0;t<r.length;t++){let[n,i,o]=r[t],s={};i[o]=s;for(let t in n){if(!Object.prototype.hasOwnProperty.call(n,t))continue;if("parent"===t||"proxyCache"===t)continue;let i=n[t];if(Array.isArray(i)){let n=[];s[t]=n;for(let t=0;t<i.length;t++){let o=i[t];"object"==typeof o&&o.toJSON?o.toJSON===c.prototype.toJSON?r.push([o,n,t]):n[t]=o.toJSON(null,e):n[t]=o}}else if("object"==typeof i&&i.toJSON)i.toJSON===c.prototype.toJSON?r.push([i,s,t]):s[t]=i.toJSON(null,e);else if("source"===t){if(null==i)continue;let n=e.get(i.input);null==n&&(n=e.size,e.set(i.input,n)),s[t]={end:i.end,inputId:n,start:i.start}}else s[t]=i}}let o=i[0];return n&&(o.inputs=[...e.keys()].map(t=>t.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=o){t.stringify&&(t=t.stringify);let e="";return t(this,t=>{e+=t}),e}warn(t,e,n={}){let i={node:this};for(let t in n)i[t]=n[t];return t.warn(e,i)}}t.exports=c,c.default=c},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parse.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/input.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parser.js");function s(t,e){let n=new r(t,e),i=new o(n);try{i.parse()}catch(t){throw t}return i.root}t.exports=s,s.default=s,i.registerParse(s)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parser.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/at-rule.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/comment.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/declaration.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js"),a=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/rule.js"),l=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/tokenize.js");const c={empty:!0,space:!0};function h(t,e,n){let i="";for(let r=e;r<n;r++)i+=t[r][1];return i}t.exports=class{constructor(t){this.input=t,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let e,n,r,o=new i;o.name=t[1].slice(1),""===o.name&&this.unnamedAtrule(o,t),this.init(o,t[2]);let s=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=(t=this.tokenizer.nextToken())[0],"("===e||"["===e?c.push("("===e?")":"]"):"{"===e&&c.length>0?c.push("}"):e===c[c.length-1]&&c.pop(),0===c.length){if(";"===e){o.source.end=this.getPosition(t[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===e){a=!0;break}if("}"===e){if(l.length>0){for(r=l.length-1,n=l[r];n&&"space"===n[0];)n=l[--r];n&&(o.source.end=this.getPosition(n[3]||n[2]),o.source.end.offset++)}this.end(t);break}l.push(t)}else l.push(t);if(this.tokenizer.endOfFile()){s=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(o.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(o,"params",l),s&&(o.source.end=this.getPosition((t=l[l.length-1])[3]||t[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),a&&(o.nodes=[],this.current=o)}checkMissedSemicolon(t){let e=this.colon(t);if(!1===e)return;let n,i=0;for(let r=e-1;r>=0&&(n=t[r],"space"===n[0]||(i+=1,2!==i));r--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(t){let e,n,i,r=0;for(let[o,s]of t.entries()){if(n=s,i=n[0],"("===i&&(r+=1),")"===i&&(r-=1),0===r&&":"===i){if(e){if("word"===e[0]&&"progid"===e[1])continue;return o}this.doubleColon(n)}e=n}return!1}comment(t){let e=new r;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++;let n=t[1].slice(2,-2);if(n.trim()){let t=n.match(/^(\s*)([^]*\S)(\s*)$/);e.text=t[2],e.raws.left=t[1],e.raws.right=t[3]}else e.text="",e.raws.left=n,e.raws.right=""}createTokenizer(){this.tokenizer=l(this.input)}decl(t,e){let n=new o;this.init(n,t[0][2]);let i=t[t.length-1];";"===i[0]&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(t){for(let e=t.length-1;e>=0;e--){let n=t[e],i=n[3]||n[2];if(i)return i}}(t)),n.source.end.offset++;let r=0;for(;"word"!==t[r][0];)r===t.length-1&&this.unknownWord([t[r]]),r++;n.raws.before+=h(t,0,r),n.source.start=this.getPosition(t[r][2]);let s=r;for(;r<t.length;){let e=t[r][0];if(":"===e||"space"===e||"comment"===e)break;r++}n.prop=h(t,s,r);let a,l=r;for(;r<t.length&&(a=t[r],r++,":"!==a[0]);)"word"===a[0]&&/\w/.test(a[1])&&this.unknownWord([a]);n.raws.between=h(t,l,r),"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let c=r;for(;r<t.length;){let e=t[r][0];if("space"!==e&&"comment"!==e)break;r++}let u=t.slice(c,r);t=t.slice(r),this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(a=t[e],"!important"===a[1].toLowerCase()){n.important=!0;let i=this.stringFrom(t,e);i=this.spacesFromEnd(t)+i," !important"!==i&&(n.raws.important=i);break}if("important"===a[1].toLowerCase()){let i=t.slice(0),r="";for(let t=e;t>0;t--){let e=i[t][0];if(r.trim().startsWith("!")&&"space"!==e)break;r=i.pop()[1]+r}r.trim().startsWith("!")&&(n.important=!0,n.raws.important=r,t=i)}if("space"!==a[0]&&"comment"!==a[0])break}t.some(t=>"space"!==t[0]&&"comment"!==t[0])&&(n.raws.between+=u.map(t=>t[1]).join(""),u=[]),this.raw(n,"value",u.concat(t),e),n.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let e=new a;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="",e.source.end=this.getPosition(t[2]),e.source.end.offset+=e.raws.ownSemicolon.length)}}getPosition(t){let e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}}init(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}other(t){let e=!1,n=null,i=!1,r=null,o=[],s=t[1].startsWith("--"),a=[],l=t;for(;l;){if(n=l[0],a.push(l),"("===n||"["===n)r||(r=l),o.push("("===n?")":"]");else if(s&&i&&"{"===n)r||(r=l),o.push("}");else if(0===o.length){if(";"===n){if(i)return void this.decl(a,s);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),e=!0;break}":"===n&&(i=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(r=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),o.length>0&&this.unclosedBracket(r),e&&i){if(!s)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}precheckMissedSemicolon(){}raw(t,e,n,i){let r,o,s,a,l=n.length,h="",u=!0;for(let t=0;t<l;t+=1)r=n[t],o=r[0],"space"!==o||t!==l-1||i?"comment"===o?(a=n[t-1]?n[t-1][0]:"empty",s=n[t+1]?n[t+1][0]:"empty",c[a]||c[s]||","===h.slice(-1)?u=!1:h+=r[1]):h+=r[1]:u=!1;if(!u){let i=n.reduce((t,e)=>t+e[1],"");t.raws[e]={raw:i,value:h}}t[e]=h}rule(t){t.pop();let e=new a;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}spacesAndCommentsFromEnd(t){let e,n="";for(;t.length&&(e=t[t.length-1][0],"space"===e||"comment"===e);)n=t.pop()[1]+n;return n}spacesAndCommentsFromStart(t){let e,n="";for(;t.length&&(e=t[0][0],"space"===e||"comment"===e);)n+=t.shift()[1];return n}spacesFromEnd(t){let e,n="";for(;t.length&&(e=t[t.length-1][0],"space"===e);)n=t.pop()[1]+n;return n}stringFrom(t,e){let n="";for(let i=e;i<t.length;i++)n+=t[i][1];return t.splice(e,t.length-e),n}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word "+t[0][1],{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})}}},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/postcss.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/at-rule.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/comment.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/css-syntax-error.js"),a=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/declaration.js"),l=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/document.js"),c=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/fromJSON.js"),h=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/input.js"),u=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/lazy-result.js"),d=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/list.js"),f=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/node.js"),p=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parse.js"),g=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/processor.js"),m=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/result.js"),y=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js"),v=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/rule.js"),x=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringify.js"),b=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warning.js");function w(...t){return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new g(t)}w.plugin=function(t,e){let n,i=!1;function r(...n){console&&console.warn&&!i&&(i=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let r=e(...n);return r.postcssPlugin=t,r.postcssVersion=(new g).version,r}return Object.defineProperty(r,"postcss",{get:()=>(n||(n=r()),n)}),r.process=function(t,e,n){return w([r(n)]).process(t,e)},r},w.stringify=x,w.parse=p,w.fromJSON=c,w.list=d,w.comment=t=>new r(t),w.atRule=t=>new i(t),w.decl=t=>new a(t),w.rule=t=>new v(t),w.root=t=>new y(t),w.document=t=>new l(t),w.CssSyntaxError=s,w.Declaration=a,w.Container=o,w.Processor=g,w.Document=l,w.Comment=r,w.Warning=b,w.AtRule=i,w.Result=m,w.Input=h,w.Rule=v,w.Root=y,w.Node=f,u.registerPostcss(w),t.exports=w,w.default=w},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/previous-map.js"(t,e,n){"use strict";let{existsSync:i,readFileSync:r}=n("?b251"),{dirname:o,isAbsolute:s,join:a,relative:l,sep:c}=n("?9d3a"),{SourceMapConsumer:h,SourceMapGenerator:u}=n("?0348");class d{constructor(t,e){if(!1===e.map)return;e.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let n=this.loadMap(e.from,e.map?e.map.prev:void 0);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=o(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new h(this.json||this.text)),this.consumerCache}decodeInline(t){let e=t.match(/^data:application\/json;charset=utf-?8,/)||t.match(/^data:application\/json,/);if(e)return decodeURIComponent(t.substr(e[0].length));let n=t.match(/^data:application\/json;charset=utf-?8;base64,/)||t.match(/^data:application\/json;base64,/);if(n)return i=t.substr(n[0].length),Buffer?Buffer.from(i,"base64").toString():window.atob(i);var i;let r=t.slice(22);throw r=r.slice(0,r.indexOf(",")),new Error("Unsupported source map encoding "+r)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}loadAnnotation(t){let e=t.match(/\/\*\s*# sourceMappingURL=/g);if(!e)return;let n=t.lastIndexOf(e.pop()),i=t.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(t.substring(n,i)))}loadFile(t,e,n){if(!n&&!this.unsafeMap){if(!/\.map$/i.test(t))return;if(e){let n=l(o(e),t);if(".."===n||n.startsWith(".."+c)||s(n))return}}if(this.root=o(t),i(t))return this.mapFile=t,r(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof h)return u.fromSourceMap(e).toString();if(e instanceof u)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}{let n=e(t);if(n){let e=this.loadFile(n,t,!0);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let e=this.annotation;t&&(e=a(o(t),e));let n=this.loadFile(e,t,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return n}}}startWith(t,e){return!!t&&t.substr(0,e.length)===e}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}t.exports=d,d.default=d},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/processor.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/document.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/lazy-result.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/no-work-result.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js");class a{constructor(t=[]){this.version="8.5.19",this.plugins=this.normalize(t)}normalize(t){let e=[];for(let n of t)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))e=e.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)e.push(n);else if("function"==typeof n)e.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return e}process(t,e={}){return this.plugins.length||e.parser||e.stringifier||e.syntax?new r(this,t,e):new o(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}}t.exports=a,a.default=a,s.registerProcessor(a),i.registerProcessor(a)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/result.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warning.js");class r{get content(){return this.css}constructor(t,e,n){this.processor=t,this.messages=[],this.root=e,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(t,e={}){e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);let n=new i(t,e);return this.messages.push(n),n}warnings(){return this.messages.filter(t=>"warning"===t.type)}}t.exports=r,r.default=r},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js"(t,e,n){"use strict";let i,r,o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js");class s extends o{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,e,n){let i=new Set;for(let e of Array.isArray(t)?t:[t])e&&"object"==typeof e&&!e.parent&&e.raws&&void 0!==e.raws.before&&i.add(e.raws);let r=super.normalize(t);if(e)if("prepend"===n)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(let t of r)i.has(t.raws)||(t.raws.before=e.raws.before);return r}removeChild(t,e){let n=this.index(t);return!e&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(t)}toResult(t={}){return new i(new r,this,t).stringify()}}s.registerLazyResult=t=>{i=t},s.registerProcessor=t=>{r=t},t.exports=s,s.default=s,o.registerRoot(s)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/rule.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/list.js");class o extends i{get selectors(){return r.comma(this.selector)}set selectors(t){let e=this.selector?this.selector.match(/,\s*/):null,n=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(n)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}}t.exports=o,o.default=o,i.registerRule(o)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringifier.js"(t){"use strict";const e=/(<)(\/?style\b)/gi,n=/(<)(!--)/g;function i(t){return"string"!=typeof t?t:t.includes("<")?t.replace(e,"\\3c $2").replace(n,"\\3c $2"):t}const r={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function o(t,e){let n="@"+e.name,i=e.params?t.rawValue(e,"params"):"";return void 0!==e.raws.afterName?n+=e.raws.afterName:i&&(n+=" "),n+i}function s(t,e,n){let i=n.nodes,r=i.length-1;for(;r>0&&"comment"===i[r].type;)r-=1;let o=t.raw(n,"semicolon"),s="document"===n.type;for(let t=i.length-1;t>=0;t--)e.push({document:s,node:i[t],semicolon:r!==t||o})}function a(t,e,n,r){let o=t.raw(n,"between","beforeOpen");t.builder(i(r+o)+"{",n,"start");let a=n.nodes&&n.nodes.length,l=()=>{let e=a?t.raw(n,"after"):t.raw(n,"after","emptyBody");e&&t.builder(i(e)),t.builder("}",n,"end"),"rule"===n.type&&n.raws.ownSemicolon&&t.builder(i(n.raws.ownSemicolon),n,"end")};a?(e.push(l),s(t,e,n)):l()}class l{constructor(t){this.builder=t}atrule(t,e){let n=o(this,t);if(t.nodes)this.block(t,n);else{this.builder(i(n+((t.raws.between||"")+(e?";":""))),t)}}beforeAfter(t,e){let n;n=this.raw(t,null,"decl"===t.type?"beforeDecl":"comment"===t.type?"beforeComment":"before"===e?"beforeRule":"beforeClose");let i=t.parent,r=0;for(;i&&"root"!==i.type;)r+=1,i=i.parent;if(n.includes("\n")){let e=this.raw(t,null,"indent");if(e.length)for(let t=0;t<r;t++)n+=e}return n}block(t,e){let n,r=this.raw(t,"between","beforeOpen");this.builder(i(e+r)+"{",t,"start"),t.nodes&&t.nodes.length?(this.body(t),n=this.raw(t,"after")):n=this.raw(t,"after","emptyBody"),n&&this.builder(i(n)),this.builder("}",t,"end")}body(t){let e=l.prototype,n=["atrule","block","body","rule","stringify"].every(t=>this[t]===e[t]),r=[];for(s(this,r,t);r.length>0;){let t=r.pop();if("function"==typeof t){t();continue}let e=t.node,s=this.raw(e,"before");s&&this.builder(t.document?s:i(s)),n&&"rule"===e.type?a(this,r,e,this.rawValue(e,"selector")):n&&"atrule"===e.type&&e.nodes?a(this,r,e,o(this,e)):this.stringify(e,t.semicolon)}}comment(t){let e=this.raw(t,"left","commentLeft"),n=this.raw(t,"right","commentRight");this.builder(i("/*"+e+t.text+n+"*/"),t)}decl(t,e){let n=t.raws,r=this.raw(t,"between","colon"),o=t.prop+r+this.rawValue(t,"value");t.important&&(o+=n.important||" !important"),e&&(o+=";"),this.builder(i(o),t)}document(t){this.body(t)}raw(t,e,n){let i;if(n||(n=e),e&&(i=t.raws[e],void 0!==i))return i;let o=t.parent;if("before"===n){if(!o||"root"===o.type&&o.first===t)return"";if(o&&"document"===o.type)return""}if(!o)return r[n];let s=t.root(),a=s.rawCache||(s.rawCache={});if(void 0!==a[n])return a[n];if("before"===n||"after"===n)return this.beforeAfter(t,n);{let r="raw"+((l=n)[0].toUpperCase()+l.slice(1));this[r]?i=this[r](s,t):s.walk(t=>{if(i=t.raws[e],void 0!==i)return!1})}var l;return void 0===i&&(i=r[n]),a[n]=i,i}rawBeforeClose(t){let e;return t.walk(t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return e=t.raws.after,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawBeforeComment(t,e){let n;return t.walkComments(t=>{if(void 0!==t.raws.before)return n=t.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(e,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(t,e){let n;return t.walkDecls(t=>{if(void 0!==t.raws.before)return n=t.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(e,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(t){let e;return t.walk(t=>{if("decl"!==t.type&&(e=t.raws.between,void 0!==e))return!1}),e}rawBeforeRule(t){let e;return t.walk(n=>{if(n.nodes&&(n.parent!==t||t.first!==n)&&void 0!==n.raws.before)return e=n.raws.before,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawColon(t){let e;return t.walkDecls(t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1}),e}rawEmptyBody(t){let e;return t.walk(t=>{if(t.nodes&&0===t.nodes.length&&(e=t.raws.after,void 0!==e))return!1}),e}rawIndent(t){if(t.raws.indent)return t.raws.indent;let e;return t.walk(n=>{let i=n.parent;if(i&&i!==t&&i.parent&&i.parent===t&&void 0!==n.raws.before){let t=n.raws.before.split("\n");return e=t[t.length-1],e=e.replace(/\S/g,""),!1}}),e}rawSemicolon(t){let e;return t.walk(t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&(e=t.raws.semicolon,void 0!==e))return!1}),e}rawValue(t,e){let n=t[e],i=t.raws[e];return i&&i.value===n?i.raw:n}root(t){if(this.body(t),t.raws.after){let e=t.raws.after;this.builder(t.parent&&"document"===t.parent.type?e:i(e))}}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(i(t.raws.ownSemicolon),t,"end")}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}}t.exports=l,l.default=l},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringify.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringifier.js");function r(t,e){new i(e).stringify(t)}t.exports=r,r.default=r},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/symbols.js"(t){"use strict";t.exports.isClean=Symbol("isClean"),t.exports.my=Symbol("my")},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/tokenize.js"(t){"use strict";const e="'".charCodeAt(0),n='"'.charCodeAt(0),i="\\".charCodeAt(0),r="/".charCodeAt(0),o="\n".charCodeAt(0),s=" ".charCodeAt(0),a="\f".charCodeAt(0),l="\t".charCodeAt(0),c="\r".charCodeAt(0),h="[".charCodeAt(0),u="]".charCodeAt(0),d="(".charCodeAt(0),f=")".charCodeAt(0),p="{".charCodeAt(0),g="}".charCodeAt(0),m=";".charCodeAt(0),y="*".charCodeAt(0),v=":".charCodeAt(0),x="@".charCodeAt(0),b=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,M=/.[\r\n"'(/\\]/,k=/[\da-f]/i;t.exports=function(t,C={}){let O,j,E,_,S,$,A,z,P,L,I=t.css.valueOf(),T=C.ignoreErrors,R=I.length,B=0,W=[],H=[],N=-1;function F(e){throw t.error("Unclosed "+e,B)}return{back:function(t){H.push(t)},endOfFile:function(){return 0===H.length&&B>=R},nextToken:function(t){if(H.length)return H.pop();if(B>=R)return;let C=!!t&&t.ignoreUnclosed;switch(O=I.charCodeAt(B),O){case o:case s:case l:case c:case a:_=B;do{_+=1,O=I.charCodeAt(_)}while(O===s||O===o||O===l||O===c||O===a);$=["space",I.slice(B,_)],B=_-1;break;case h:case u:case p:case g:case v:case m:case f:{let t=String.fromCharCode(O);$=[t,t,B];break}case d:if(L=W.length?W.pop()[1]:"",P=I.charCodeAt(B+1),"url"===L&&P!==e&&P!==n&&P!==s&&P!==o&&P!==l&&P!==a&&P!==c){_=B;do{if(A=!1,_=I.indexOf(")",_+1),-1===_){if(T||C){_=B;break}F("bracket")}for(z=_;I.charCodeAt(z-1)===i;)z-=1,A=!A}while(A);$=["brackets",I.slice(B,_+1),B,_],B=_}else B<=N?$=["(","(",B]:(_=I.indexOf(")",B+1),j=I.slice(B,_+1),-1===_||M.test(j)?(N=-1===_?R:_,$=["(","(",B]):($=["brackets",j,B,_],B=_));break;case e:case n:S=O===e?"'":'"',_=B;do{if(A=!1,_=I.indexOf(S,_+1),-1===_){if(T||C){_=B+1;break}F("string")}for(z=_;I.charCodeAt(z-1)===i;)z-=1,A=!A}while(A);$=["string",I.slice(B,_+1),B,_],B=_;break;case x:b.lastIndex=B+1,b.test(I),_=0===b.lastIndex?I.length-1:b.lastIndex-2,$=["at-word",I.slice(B,_+1),B,_],B=_;break;case i:for(_=B,E=!0;I.charCodeAt(_+1)===i;)_+=1,E=!E;if(O=I.charCodeAt(_+1),E&&O!==r&&O!==s&&O!==o&&O!==l&&O!==c&&O!==a&&(_+=1,k.test(I.charAt(_)))){for(;k.test(I.charAt(_+1));)_+=1;I.charCodeAt(_+1)===s&&(_+=1)}$=["word",I.slice(B,_+1),B,_],B=_;break;default:O===r&&I.charCodeAt(B+1)===y?(_=I.indexOf("*/",B+2)+1,0===_&&(T||C?_=I.length:F("comment")),$=["comment",I.slice(B,_+1),B,_],B=_):(w.lastIndex=B+1,w.test(I),_=0===w.lastIndex?I.length-1:w.lastIndex-2,$=["word",I.slice(B,_+1),B,_],W.push($),B=_)}return B++,$},position:function(){return B}}}},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warn-once.js"(t){"use strict";let e={};t.exports=function(t){e[t]||(e[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))}},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warning.js"(t){"use strict";class e{constructor(t,e={}){if(this.type="warning",this.text=t,e.node&&e.node.source){let t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in e)this[t]=e[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}t.exports=e,e.default=e},"./src/components/fragments/async/extensions/Infographic.tsx"(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>CH});var i={};n.r(i),n.d(i,{diamond:()=>Ol,dot:()=>jl,hex:()=>El,line:()=>_l,mosaic:()=>Sl,square:()=>$l});var r=n("react"),o=n.n(r);function s(t){return t.trim().toLowerCase().replace(/[_\s]+/g,"-").replace(/-+/g,"-")}function a(t,e){if(t===e)return 0;if(!t.length)return e.length;if(!e.length)return t.length;const n=Array.from({length:e.length+1},(t,e)=>e),i=new Array(e.length+1);for(let r=1;r<=t.length;r+=1){i[0]=r;const o=t.charCodeAt(r-1);for(let t=1;t<=e.length;t+=1){const r=o===e.charCodeAt(t-1)?0:1;i[t]=Math.min(n[t]+1,i[t-1]+1,n[t-1]+r)}for(let t=0;t<i.length;t+=1)n[t]=i[t]}return n[e.length]}function l(t,e){const n=Math.min(t.length,e.length);let i=0;for(;i<n&&t.charCodeAt(i)===e.charCodeAt(i);)i+=1;return i}function c(t,e,n,i,r,o){return r<e||r===e&&o>n||r===e&&o===n&&(!t||i<t)}const h=new Map;function u(t){return h.has(t)?t:function(t,e){const n=s(t);if(!n)return;let i,r=Number.POSITIVE_INFINITY,o=-1;for(const t of e){const e=s(t);if(e===n)return t;const h=a(n,e),u=l(n,e);c(i,r,o,t,h,u)&&(i=t,r=h,o=u)}return i}(t,h.keys())}const d=new Set,f={};Object.entries({"compare-quadrant-quarter-simple-card":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"quarter-simple-card"}]}},"compare-quadrant-quarter-circular":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"quarter-circular"}]}},"compare-quadrant-simple-illus":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"simple-illus"}]}}}).forEach(([t,e])=>{f[t]=e;const n=t.replace("compare-quadrant","quadrant");f[n]=new Proxy(e,{get:(e,i,r)=>(d.has(n)||(console.warn(`[Deprecated] "${n}" 已被废弃,将在下个版本移除,请使用 "${t}"`),d.add(n)),Reflect.get(e,i,r))})});const p=f,g={edgeType:"curved",edgeColorMode:"gradient",edgeWidth:2,colorMode:"branch",levelGap:80,nodeGap:18},m={edgeType:"curved",edgeWidth:2,edgeColorMode:"gradient",colorMode:"level",levelGap:80,nodeGap:18},y={type:"lined-text",usePaletteColor:!0,showUnderline:!0,underlineThickness:2},v={type:"capsule-item"},x={type:"circular-progress"},b={type:"rounded-rect-node",positionH:"center"},w={type:"compact-card"},M=(t,e)=>Object.assign(Object.assign({type:"hierarchy-mindmap"},void 0!==e?{edgeAlign:e}:{}),t),k=(t,e,n,i)=>[t,{design:{structure:M(e,i),item:n}}],C=Object.fromEntries([k("hierarchy-mindmap-branch-gradient-lined-palette",g,y,"bottom"),k("hierarchy-mindmap-level-gradient-lined-palette",m,y,"bottom"),k("hierarchy-mindmap-branch-gradient-capsule-item",g,v),k("hierarchy-mindmap-level-gradient-capsule-item",m,v),k("hierarchy-mindmap-branch-gradient-circle-progress",g,x,.4),k("hierarchy-mindmap-level-gradient-circle-progress",m,x,.4),k("hierarchy-mindmap-branch-gradient-rounded-rect",g,b),k("hierarchy-mindmap-level-gradient-rounded-rect",m,b),k("hierarchy-mindmap-branch-gradient-compact-card",g,w),k("hierarchy-mindmap-level-gradient-compact-card",m,w)]),O={"tech-style":{edgeType:"straight",edgeStyle:"solid",edgeColorMode:"gradient",edgeMarker:"arrow",markerSize:12,edgeCornerRadius:5},"dashed-line":{edgeStyle:"dashed",edgeCornerRadius:10,edgeDashPattern:"10,5",edgeColorMode:"gradient",edgeMarker:"dot",markerSize:6,edgeOffset:6},"distributed-origin":{edgeOrigin:"distributed",edgeOriginPadding:30,edgeMarker:"arrow",edgeCornerRadius:10,markerSize:12,edgeColorMode:"gradient"},"curved-line":{edgeType:"curved",edgeColorMode:"gradient",edgeMarker:"none"},"dashed-arrow":{edgeType:"straight",edgeStyle:"dashed",edgeDashPattern:"8,4",edgeMarker:"arrow",markerSize:10,edgeCornerRadius:0}},j=["capsule-item","rounded-rect-node","compact-card","badge-card","ribbon-card"],E={},_="hierarchy-tree",S=[{key:""},{key:"bt",orientation:"bottom-top"},{key:"lr",orientation:"left-right"},{key:"rl",orientation:"right-left"}],$=(t,e,n)=>t?`${_}-${t}-${e}-${n}`:`${_}-${e}-${n}`;for(const t of j)for(const[e,n]of Object.entries(O))for(const{key:i,orientation:r}of S){E[$(i,e,t)]={design:{structure:Object.assign(Object.assign({type:"hierarchy-tree"},r?{orientation:r}:{}),n),item:{type:t}}}}const A={"simple-circle-node":{type:"simple-circle-node"},"badge-card":{type:"badge-card"},capsule:{type:"capsule-item"},"compact-card":{type:"compact-card"}},z={type:"relation-dagre-flow",edgeColorMode:"gradient",showArrow:!0,arrowType:"triangle",colorMode:"node"},P={tb:Object.assign(Object.assign({},z),{rankdir:"TB",edgeRouting:"orth"}),lr:Object.assign(Object.assign({},z),{rankdir:"LR",edgeRouting:"orth"}),"tb-animated":Object.assign(Object.assign({},z),{rankdir:"TB",edgeCornerRadius:12,edgeRouting:"orth",edgeAnimation:"ant-line",edgeDashPattern:"8,4",edgeAnimationSpeed:1}),"lr-animated":Object.assign(Object.assign({},z),{rankdir:"LR",edgeCornerRadius:12,edgeRouting:"orth",edgeAnimation:"ant-line",edgeDashPattern:"8,4",edgeAnimationSpeed:1})},L={},I=["lr-capsule","tb-capsule"];Object.entries(P).forEach(([t,e])=>{Object.entries(A).forEach(([n,i])=>{const r=`${t}-${n}`;if(I.includes(r))return;L[`relation-dagre-flow-${r}`]={design:{title:"default",structure:e,item:i}}})});const T={"badge-card":{type:"badge-card",width:160,height:60},"compact-card":{type:"compact-card",width:180,height:60},"capsule-item":{type:"capsule-item",width:150,height:60},"rounded-rect-node":{type:"rounded-rect-node",width:140,height:60}},R={type:"sequence-interaction",showLaneHeader:!0,arrowType:"triangle"},B={default:{},dashed:{edgeStyle:"dashed"},animated:{edgeStyle:"dashed",animated:!0}},W={default:Object.assign(Object.assign({},R),{showLifeline:!0,nodeGap:40}),compact:Object.assign(Object.assign({},R),{showLifeline:!0,nodeGap:20}),wide:Object.assign(Object.assign({},R),{showLifeline:!0,nodeGap:60})},H={},N=[];Object.entries(W).forEach(([t,e])=>{Object.entries(B).forEach(([n,i])=>{Object.entries(T).forEach(([r,o])=>{const s=[t];"default"!==n&&s.push(n),s.push(r);const a=s.join("-");if(N.includes(a))return;H[`sequence-interaction-${a}`]={design:{title:"default",structure:Object.assign(Object.assign({},e),i),item:o}}})})});const F=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"compare-hierarchy-left-right-circle-node-pill-badge":{design:{structure:{type:"compare-hierarchy-left-right",decoration:"split-line",surround:!1,groupGap:-20},title:"default",items:[{type:"circle-node",width:240},"pill-badge"]},themeConfig:{}},"compare-hierarchy-left-right-circle-node-plain-text":{design:{title:"default",structure:{type:"compare-hierarchy-left-right",decoration:"dot-line",flipLeaf:!0,groupGap:-10},items:[{type:"circle-node",width:180},{type:"plain-text"}]}},"list-pyramid-rounded-rect-node":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"rounded-rect-node"}]}},"list-pyramid-badge-card":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"badge-card"}]}},"list-pyramid-compact-card":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"compact-card"}]}},"list-column-done-list":{design:{title:"default",structure:{type:"list-column"},items:[{type:"done-list"}]}},"list-column-vertical-icon-arrow":{design:{title:"default",structure:{type:"list-column",gap:-5,zigzag:!0},items:[{type:"vertical-icon-arrow"}]}},"list-grid-badge-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"badge-card"}]}},"list-grid-candy-card-lite":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"candy-card-lite"}]}},"chart-column-simple":{design:{title:"default",structure:{type:"chart-column"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-grid-circular-progress":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"circular-progress"}]}},"list-grid-compact-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"compact-card"}]}},"list-grid-done-list":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"done-list"}]}},"list-grid-horizontal-icon-arrow":{design:{title:"default",structure:{type:"list-grid",gap:0,zigzag:!0},items:[{type:"horizontal-icon-arrow"}]}},"list-grid-progress-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"progress-card"}]}},"list-grid-ribbon-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"ribbon-card"}]}},"list-grid-simple":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"simple"}]}},"list-row-circular-progress":{design:{title:"default",structure:{type:"list-row"},items:[{type:"circular-progress"}]}},"list-row-horizontal-icon-arrow":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"horizontal-icon-arrow"}]}},"relation-circle-circular-progress":{design:{title:"default",structure:{type:"relation-circle"},items:[{type:"circular-progress"}]}},"relation-circle-icon-badge":{design:{title:"default",structure:{type:"relation-circle"},items:[{type:"icon-badge"}]}},"relation-network-icon-badge":{design:{title:"default",structure:{type:"relation-network"},items:[{type:"icon-badge"}]}},"relation-network-simple-circle-node":{design:{title:"default",structure:{type:"relation-network"},items:[{type:"simple-circle-node"}]}},"sequence-steps-badge-card":{design:{title:"default",structure:{type:"sequence-steps"},items:[{type:"badge-card"}]}},"sequence-steps-simple":{design:{title:"default",structure:{type:"sequence-steps",gap:10},items:[{type:"simple"}]}},"sequence-timeline-done-list":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"done-list"}]}},"sequence-timeline-plain-text":{design:{title:"default",structure:{type:"sequence-timeline",showStepLabels:!1},items:[{type:"plain-text"}]}},"sequence-timeline-rounded-rect-node":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"rounded-rect-node"}]}},"sequence-ascending-steps":{design:{title:"default",structure:{type:"sequence-ascending-steps",vGap:-46,hGap:-20},items:[{type:"l-corner-card"}]}},"sequence-timeline-simple":{design:{title:"default",structure:{type:"sequence-timeline",gap:20,showStepLabels:!1},items:[{type:"simple",positionV:"middle"}]}},"sequence-cylinders-3d-simple":{design:{title:"default",structure:{type:"sequence-cylinders-3d",gapY:20},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-column-simple-vertical-arrow":{design:{title:"default",structure:{type:"list-column",gap:0,zigzag:!0},items:[{type:"simple-vertical-arrow"}]}},"list-row-simple-horizontal-arrow":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"simple-horizontal-arrow"}]}},"compare-swot":{design:{title:"default",structure:{type:"compare-hierarchy-row",itemGap:32,itemPadding:40,showColumnBackground:!0,columnBackgroundAlpha:.08},items:[{type:"letter-card",showBottomShade:!1},{type:"plain-text",formatter:t=>`● ${t}`,usePaletteColor:!0}]}},"compare-hierarchy-row-letter-card-compact-card":{design:{title:"default",structure:{type:"compare-hierarchy-row"},items:[{type:"letter-card"},{type:"compact-card"}]}},"compare-hierarchy-row-letter-card-rounded-rect-node":{design:{title:"default",structure:{type:"compare-hierarchy-row"},items:[{type:"letter-card"},{type:"rounded-rect-node"}]}},"sequence-snake-steps-compact-card":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"compact-card"}]}},"sequence-snake-steps-pill-badge":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"pill-badge"}]}},"sequence-snake-steps-simple":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"simple"}]}},"sequence-color-snake-steps-horizontal-icon-line":{design:{title:"default",structure:{type:"sequence-color-snake-steps"},items:[{type:"horizontal-icon-line"}]}},"sequence-pyramid-simple":{design:{title:"default",structure:{type:"sequence-pyramid"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]},themeConfig:{colorPrimary:"#1677ff"}},"sequence-funnel-simple":{design:{title:"default",structure:{type:"sequence-funnel"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]},themeConfig:{palette:"#1677ff"}},"list-row-horizontal-icon-line":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"horizontal-icon-line"}]}},"list-sector-simple":{design:{title:"default",structure:{type:"list-sector"},items:[{type:"simple"}]}},"list-sector-plain-text":{design:{title:"default",structure:{type:"list-sector"},items:[{type:"plain-text"}]}},"list-sector-half-plain-text":{design:{title:"default",structure:{type:"list-sector",startAngle:-180,endAngle:0},items:[{type:"plain-text"}]}},"list-waterfall-badge-card":{design:{title:"default",structure:{type:"list-waterfall"},items:[{type:"badge-card"}]}},"list-waterfall-compact-card":{design:{title:"default",structure:{type:"list-waterfall"},items:[{type:"compact-card"}]}},"sequence-roadmap-vertical-plain-text":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"plain-text"}]}},"sequence-roadmap-vertical-simple":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"simple",showIcon:!1}]}},"sequence-roadmap-vertical-badge-card":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"badge-card"}]}},"sequence-roadmap-vertical-pill-badge":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"pill-badge"}]}},"sequence-roadmap-vertical-quarter-circular":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"quarter-circular"}]}},"sequence-roadmap-vertical-quarter-simple-card":{design:{title:"default",structure:{type:"sequence-roadmap-vertical",flipped:!0},items:[{type:"quarter-simple-card"}]}},"sequence-horizontal-zigzag-simple-illus":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple-illus"}]}},"sequence-horizontal-zigzag-horizontal-icon-line":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"horizontal-icon-line"}]}},"sequence-horizontal-zigzag-plain-text":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"plain-text"}]}},"sequence-horizontal-zigzag-simple-horizontal-arrow":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple-horizontal-arrow"}]}},"sequence-horizontal-zigzag-simple":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple"}]}},"list-row-simple-illus":{design:{title:"default",structure:{type:"list-row"},items:[{type:"simple-illus"}]}},"sequence-color-snake-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-color-snake-steps"},items:[{type:"simple-illus"}]}},"sequence-snake-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"simple-illus"}]}},"sequence-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-steps"},items:[{type:"simple-illus"}]}},"sequence-timeline-simple-illus":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"simple-illus",usePaletteColor:!0}]}},"sequence-zigzag-steps-underline-text":{design:{title:"default",structure:{type:"sequence-zigzag-steps"},items:[{type:"underline-text"}]}},"sequence-horizontal-zigzag-underline-text":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"underline-text"}]}},"sequence-roadmap-vertical-underline-text":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"underline-text"}]}},"sequence-snake-steps-underline-text":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"underline-text"}]}},"sequence-circle-arrows-indexed-card":{design:{title:"default",structure:{type:"sequence-circle-arrows"},items:[{type:"indexed-card"}]}},"sequence-zigzag-pucks-3d-simple":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-zigzag-pucks-3d-underline-text":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"underline-text"}]}},"sequence-zigzag-pucks-3d-indexed-card":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"indexed-card"}]}},"sequence-ascending-stairs-3d-simple":{design:{title:"default",structure:{type:"sequence-ascending-stairs-3d"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-ascending-stairs-3d-underline-text":{design:{title:"default",structure:{type:"sequence-ascending-stairs-3d"},items:[{type:"underline-text"}]}},"sequence-circular-underline-text":{design:{title:"default",structure:{type:"sequence-circular"},items:[{type:"underline-text"}]}},"sequence-circular-simple":{design:{title:"default",structure:{type:"sequence-circular"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-filter-mesh-underline-text":{design:{title:"default",structure:{type:"sequence-filter-mesh"},items:[{type:"underline-text"}]}},"sequence-filter-mesh-simple":{design:{title:"default",structure:{type:"sequence-filter-mesh"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-mountain-underline-text":{design:{title:"default",structure:{type:"sequence-mountain"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-simple-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"compact-card"}]}},"compare-binary-horizontal-simple-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"compact-card"}]}},"compare-binary-horizontal-simple-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"compact-card"}]}},"chart-bar-plain-text":{design:{title:"default",structure:{type:"chart-bar"},items:[{type:"plain-text",positionH:"flipped"}]}},"chart-line-plain-text":{design:{title:"default",structure:{type:"chart-line"},items:[{type:"plain-text",lineNumber:2}]}}},{"chart-pie-plain-text":{design:{title:"default",structure:{type:"chart-pie"},items:[{type:"plain-text"}]}},"chart-pie-compact-card":{design:{title:"default",structure:{type:"chart-pie",avoidLabelOverlap:!0},items:[{type:"compact-card"}]}},"chart-pie-pill-badge":{design:{title:"default",structure:{type:"chart-pie",avoidLabelOverlap:!0},items:[{type:"pill-badge"}]}},"chart-pie-donut-plain-text":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90},items:[{type:"plain-text"}]}},"chart-pie-donut-compact-card":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90,avoidLabelOverlap:!0},items:[{type:"compact-card"}]}},"chart-pie-donut-pill-badge":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90,avoidLabelOverlap:!0},items:[{type:"pill-badge"}]}}}),p),E),C),{"sequence-stairs-front-pill-badge":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"pill-badge"}]}},"sequence-stairs-front-compact-card":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"compact-card"}]}},"sequence-stairs-front-simple":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"simple",usePaletteColor:!0}]}}}),{"chart-wordcloud-rotate":{design:{structure:{type:"chart-wordcloud"},item:"simple"}},"chart-wordcloud":{design:{structure:{type:"chart-wordcloud",enableRotate:!1},item:"simple"}}}),{"list-zigzag-up-compact-card":{design:{title:"default",structure:{type:"list-zigzag-up"},items:[{type:"compact-card"}]},themeConfig:{colorPrimary:"#17CA2C"}},"list-zigzag-up-simple":{design:{title:"default",structure:{type:"list-zigzag-up"},items:[{type:"simple",usePaletteColor:!0}]},themeConfig:{colorPrimary:"#17CA2C"}},"list-zigzag-down-compact-card":{design:{title:"default",structure:{type:"list-zigzag-down"},items:[{type:"compact-card"}]},themeConfig:{colorPrimary:"#17CA2C"}},"list-zigzag-down-simple":{design:{title:"default",structure:{type:"list-zigzag-down"},items:[{type:"simple",usePaletteColor:!0}]},themeConfig:{colorPrimary:"#17CA2C"}}}),L),H),{"hierarchy-structure":{design:{title:"default",structure:{type:"hierarchy-structure"},item:"simple"}},"hierarchy-structure-mirror":{design:{title:"default",structure:{type:"hierarchy-structure",layerLabelPosition:"right"},item:"simple"}}});Object.entries(F).forEach(([t,e])=>{!function(t,e){h.set(t,e)}(t,e)});const D=Symbol.for("@antv/infographic/Fragment");function V(t,e={}){return{type:t,props:e}}const U=V,Y=Symbol.for("@antv/infographic/Defs");function q(t){return{type:Y,props:t}}function G(t){var e,n,i,r;const{x:o=0,y:s=0,width:a=0,height:l=0}=t;null!==(e=t.cx)&&void 0!==e||(t.cx=o+a/2),null!==(n=t.cy)&&void 0!==n||(t.cy=s+l/2),null!==(i=t.rx)&&void 0!==i||(t.rx=a/2),null!==(r=t.ry)&&void 0!==r||(t.ry=l/2);return{type:"ellipse",props:t}}function X(t){const{x:e=0,y:n=0}=t;(e||n)&&(t.transform||(t.transform=`translate(${e}, ${n})`));return{type:"g",props:t}}function K(t){const{x:e,y:n}=t,i=Object.assign({},t);void 0===e&&void 0===n||(i.transform=`translate(${null!=e?e:0}, ${null!=n?n:0})`);return{type:"path",props:i}}var Z=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function Q(t){var{points:e=[]}=t,n=Z(t,["points"]);const{x:i,y:r}=n,o=e.map(({x:t,y:e})=>`${t},${e}`).join(" "),s=Object.assign(Object.assign({},n),{points:o});void 0===i&&void 0===r||(s.transform=`translate(${null!=i?i:0}, ${null!=r?r:0})`+(s.transform||""));return{type:"polygon",props:s}}function J(t){return{type:"rect",props:t}}function tt(t){return Object.keys(t[0]).reduce((e,n)=>{const i=n;return t.every(e=>e[i]===t[0][i])&&(e[i]=t[0][i]),e},{})}const et=(t,e)=>{if("number"==typeof t)return 3===e?{mode:"rgb",r:(t>>8&15|t>>4&240)/255,g:(t>>4&15|240&t)/255,b:(15&t|t<<4&240)/255}:4===e?{mode:"rgb",r:(t>>12&15|t>>8&240)/255,g:(t>>8&15|t>>4&240)/255,b:(t>>4&15|240&t)/255,alpha:(15&t|t<<4&240)/255}:6===e?{mode:"rgb",r:(t>>16&255)/255,g:(t>>8&255)/255,b:(255&t)/255}:8===e?{mode:"rgb",r:(t>>24&255)/255,g:(t>>16&255)/255,b:(t>>8&255)/255,alpha:(255&t)/255}:void 0},nt={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},it=t=>et(nt[t.toLowerCase()],6),rt=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,ot=t=>{let e;return(e=t.match(rt))?et(parseInt(e[1],16),e[1].length):void 0},st="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",at=`${st}%`,lt=`(?:${st}%|${st})`,ct=`(?:${st}(deg|grad|rad|turn)|${st})`,ht="\\s*,\\s*",ut=(new RegExp("^"+`(?:${st}%|${st}|none)`+"$"),new RegExp(`^rgba?\\(\\s*${st}${ht}${st}${ht}${st}\\s*(?:,\\s*${lt}\\s*)?\\)$`)),dt=new RegExp(`^rgba?\\(\\s*${at}${ht}${at}${ht}${at}\\s*(?:,\\s*${lt}\\s*)?\\)$`),ft=t=>{let e,n={mode:"rgb"};if(e=t.match(ut))void 0!==e[1]&&(n.r=e[1]/255),void 0!==e[2]&&(n.g=e[2]/255),void 0!==e[3]&&(n.b=e[3]/255);else{if(!(e=t.match(dt)))return;void 0!==e[1]&&(n.r=e[1]/100),void 0!==e[2]&&(n.g=e[2]/100),void 0!==e[3]&&(n.b=e[3]/100)}return void 0!==e[4]?n.alpha=Math.max(0,Math.min(1,e[4]/100)):void 0!==e[5]&&(n.alpha=Math.max(0,Math.min(1,+e[5]))),n},pt=(t,e)=>void 0===t?void 0:"object"!=typeof t?Dt(t):void 0!==t.mode?t:e?{...t,mode:e}:void 0,gt=(t="rgb")=>e=>void 0!==(e=pt(e,t))?e.mode===t?e:mt[e.mode][t]?mt[e.mode][t](e):"rgb"===t?mt[e.mode].rgb(e):mt.rgb[t](mt[e.mode].rgb(e)):void 0,mt={},yt={},vt=[],xt={},bt=t=>t,wt=t=>(mt[t.mode]={...mt[t.mode],...t.toMode},Object.keys(t.fromMode||{}).forEach(e=>{mt[e]||(mt[e]={}),mt[e][t.mode]=t.fromMode[e]}),t.ranges||(t.ranges={}),t.difference||(t.difference={}),t.channels.forEach(e=>{if(void 0===t.ranges[e]&&(t.ranges[e]=[0,1]),!t.interpolate[e])throw new Error(`Missing interpolator for: ${e}`);"function"==typeof t.interpolate[e]&&(t.interpolate[e]={use:t.interpolate[e]}),t.interpolate[e].fixup||(t.interpolate[e].fixup=bt)}),yt[t.mode]=t,(t.parse||[]).forEach(e=>{Mt(e,t.mode)}),gt(t.mode)),Mt=(t,e)=>{if("string"==typeof t){if(!e)throw new Error("'mode' required when 'parser' is a string");xt[t]=e}else"function"==typeof t&&vt.indexOf(t)<0&&vt.push(t)},kt=/[^\x00-\x7F]|[a-zA-Z_]/,Ct=/[^\x00-\x7F]|[-\w]/,Ot="function",jt="ident",Et="number",_t="percentage",St=")",$t="none",At="hue",zt="alpha";let Pt=0;function Lt(t){let e=t[Pt],n=t[Pt+1];return"-"===e||"+"===e?/\d/.test(n)||"."===n&&/\d/.test(t[Pt+2]):/\d/.test("."===e?n:e)}function It(t){if(Pt>=t.length)return!1;let e=t[Pt];if(kt.test(e))return!0;if("-"===e){if(t.length-Pt<2)return!1;let e=t[Pt+1];return!("-"!==e&&!kt.test(e))}return!1}const Tt={deg:1,rad:180/Math.PI,grad:.9,turn:360};function Rt(t){let e="";if("-"!==t[Pt]&&"+"!==t[Pt]||(e+=t[Pt++]),e+=Bt(t),"."===t[Pt]&&/\d/.test(t[Pt+1])&&(e+=t[Pt++]+Bt(t)),"e"!==t[Pt]&&"E"!==t[Pt]||("-"!==t[Pt+1]&&"+"!==t[Pt+1]||!/\d/.test(t[Pt+2])?/\d/.test(t[Pt+1])&&(e+=t[Pt++]+Bt(t)):e+=t[Pt++]+t[Pt++]+Bt(t)),It(t)){let n=Wt(t);return"deg"===n||"rad"===n||"turn"===n||"grad"===n?{type:At,value:e*Tt[n]}:void 0}return"%"===t[Pt]?(Pt++,{type:_t,value:+e}):{type:Et,value:+e}}function Bt(t){let e="";for(;/\d/.test(t[Pt]);)e+=t[Pt++];return e}function Wt(t){let e="";for(;Pt<t.length&&Ct.test(t[Pt]);)e+=t[Pt++];return e}function Ht(t){let e=Wt(t);return"("===t[Pt]?(Pt++,{type:Ot,value:e}):"none"===e?{type:$t,value:void 0}:{type:jt,value:e}}function Nt(t){t._i=0;let e=t[t._i++];if(!e||e.type!==Ot||"color"!==e.value)return;if(e=t[t._i++],e.type!==jt)return;const n=xt[e.value];if(!n)return;const i={mode:n},r=Ft(t,!1);if(!r)return;const o=(t=>yt[t])(n).channels;for(let t,e,n=0;n<o.length;n++)t=r[n],e=o[n],t.type!==$t&&(i[e]=t.type===Et?t.value:t.value/100,"alpha"===e&&(i[e]=Math.max(0,Math.min(1,i[e]))));return i}function Ft(t,e){const n=[];let i;for(;t._i<t.length;)if(i=t[t._i++],i.type===$t||i.type===Et||i.type===zt||i.type===_t||e&&i.type===At)n.push(i);else{if(i.type!==St)return;if(t._i<t.length)return}if(!(n.length<3||n.length>4)){if(4===n.length){if(n[3].type!==zt)return;n[3]=n[3].value}return 3===n.length&&n.push({type:$t,value:void 0}),n.every(t=>t.type!==zt)?n:void 0}}const Dt=t=>{if("string"!=typeof t)return;const e=function(t=""){let e,n=t.trim(),i=[];for(Pt=0;Pt<n.length;)if(e=n[Pt++],"\n"!==e&&"\t"!==e&&" "!==e){if(","===e)return;if(")"!==e){if("+"===e){if(Pt--,Lt(n)){i.push(Rt(n));continue}return}if("-"===e){if(Pt--,Lt(n)){i.push(Rt(n));continue}if(It(n)){i.push({type:jt,value:Wt(n)});continue}return}if("."===e){if(Pt--,Lt(n)){i.push(Rt(n));continue}return}if("/"===e){for(;Pt<n.length&&("\n"===n[Pt]||"\t"===n[Pt]||" "===n[Pt]);)Pt++;let t;if(Lt(n)&&(t=Rt(n),t.type!==At)){i.push({type:zt,value:t});continue}if(It(n)&&"none"===Wt(n)){i.push({type:zt,value:{type:$t,value:void 0}});continue}return}if(/\d/.test(e))Pt--,i.push(Rt(n));else{if(!kt.test(e))return;Pt--,i.push(Ht(n))}}else i.push({type:St})}else for(;Pt<n.length&&("\n"===n[Pt]||"\t"===n[Pt]||" "===n[Pt]);)Pt++;return i}(t),n=e?function(t,e){t._i=0;let n=t[t._i++];if(!n||n.type!==Ot)return;let i=Ft(t,e);return i?(i.unshift(n.value),i):void 0}(e,!0):void 0;let i,r=0,o=vt.length;for(;r<o;)if(void 0!==(i=vt[r++](t,n)))return i;return e?Nt(e):void 0};const Vt=function(t,e){if(!e||"rgb"!==e[0]&&"rgba"!==e[0])return;const n={mode:"rgb"},[,i,r,o,s]=e;return i.type!==At&&r.type!==At&&o.type!==At?(i.type!==$t&&(n.r=i.type===Et?i.value/255:i.value/100),r.type!==$t&&(n.g=r.type===Et?r.value/255:r.value/100),o.type!==$t&&(n.b=o.type===Et?o.value/255:o.value/100),s.type!==$t&&(n.alpha=Math.min(1,Math.max(0,s.type===Et?s.value:s.value/100))),n):void 0},Ut=t=>"transparent"===t?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Yt=(t,e,n)=>t+n*(e-t),qt=(Gt=Yt,t=>{let e=(t=>{let e=[];for(let n=0;n<t.length-1;n++){let i=t[n],r=t[n+1];e.push(void 0===i&&void 0===r?void 0:void 0!==i&&void 0!==r?[i,r]:void 0!==i?[i,i]:[r,r])}return e})(t);return t=>{let n=t*e.length,i=t>=1?e.length-1:Math.max(Math.floor(n),0),r=e[i];return void 0===r?void 0:Gt(r[0],r[1],n-i)}});var Gt;const Xt=t=>{let e=!1,n=t.map(t=>void 0!==t?(e=!0,t):1);return e?n:t},Kt={mode:"rgb",channels:["r","g","b","alpha"],parse:[Vt,ot,ft,it,Ut,"srgb"],serialize:"srgb",interpolate:{r:qt,g:qt,b:qt,alpha:{use:qt,fixup:Xt}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Zt=(t=0)=>Math.pow(Math.abs(t),563/256)*Math.sign(t),Qt=t=>{let e=Zt(t.r),n=Zt(t.g),i=Zt(t.b),r={mode:"xyz65",x:.5766690429101305*e+.1855582379065463*n+.1882286462349947*i,y:.297344975250536*e+.6273635662554661*n+.0752914584939979*i,z:.0270313613864123*e+.0706888525358272*n+.9913375368376386*i};return void 0!==t.alpha&&(r.alpha=t.alpha),r},Jt=t=>Math.pow(Math.abs(t),256/563)*Math.sign(t),te=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r={mode:"a98",r:Jt(2.0415879038107465*t-.5650069742788597*e-.3447313507783297*n),g:Jt(-.9692436362808798*t+1.8759675015077206*e+.0415550574071756*n),b:Jt(.0134442806320312*t-.1183623922310184*e+1.0151749943912058*n)};return void 0!==i&&(r.alpha=i),r},ee=(t=0)=>{const e=Math.abs(t);return e<=.04045?t/12.92:(Math.sign(t)||1)*Math.pow((e+.055)/1.055,2.4)},ne=({r:t,g:e,b:n,alpha:i})=>{let r={mode:"lrgb",r:ee(t),g:ee(e),b:ee(n)};return void 0!==i&&(r.alpha=i),r},ie=t=>{let{r:e,g:n,b:i,alpha:r}=ne(t),o={mode:"xyz65",x:.4123907992659593*e+.357584339383878*n+.1804807884018343*i,y:.2126390058715102*e+.715168678767756*n+.0721923153607337*i,z:.0193308187155918*e+.119194779794626*n+.9505321522496607*i};return void 0!==r&&(o.alpha=r),o},re=(t=0)=>{const e=Math.abs(t);return e>.0031308?(Math.sign(t)||1)*(1.055*Math.pow(e,1/2.4)-.055):12.92*t},oe=({r:t,g:e,b:n,alpha:i},r="rgb")=>{let o={mode:r,r:re(t),g:re(e),b:re(n)};return void 0!==i&&(o.alpha=i),o},se=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=oe({r:3.2409699419045226*t-1.537383177570094*e-.4986107602930034*n,g:-.9692436362808796*t+1.8759675015077204*e+.0415550574071756*n,b:.0556300796969936*t-.2039769588889765*e+1.0569715142428784*n});return void 0!==i&&(r.alpha=i),r},ae={...Kt,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:t=>te(ie(t)),xyz65:te},toMode:{rgb:t=>se(Qt(t)),xyz65:Qt}},le=ae,ce=t=>(t%=360)<0?t+360:t,he=(t,e)=>t.map((n,i,r)=>{if(void 0===n)return n;let o=ce(n);return 0===i||void 0===t[i-1]?o:e(o-ce(r[i-1]))}).reduce((t,e)=>t.length&&void 0!==e&&void 0!==t[t.length-1]?(t.push(e+t[t.length-1]),t):(t.push(e),t),[]),ue=t=>he(t,t=>Math.abs(t)<=180?t:t-360*Math.sign(t)),de=[-.14861,1.78277,-.29227,-.90649,1.97294,0],fe=Math.PI/180,pe=180/Math.PI;let ge=de[3]*de[4],me=de[1]*de[4],ye=de[1]*de[2]-de[0]*de[3];const ve=({r:t,g:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=(ye*n+t*ge-e*me)/(ye+ge-me),o=n-r,s=(de[4]*(e-r)-de[2]*o)/de[3],a={mode:"cubehelix",l:r,s:0===r||1===r?void 0:Math.sqrt(o*o+s*s)/(de[4]*r*(1-r))};return a.s&&(a.h=Math.atan2(s,o)*pe-120),void 0!==i&&(a.alpha=i),a},xe=({h:t,s:e,l:n,alpha:i})=>{let r={mode:"rgb"};t=(void 0===t?0:t+120)*fe,void 0===n&&(n=0);let o=void 0===e?0:e*n*(1-n),s=Math.cos(t),a=Math.sin(t);return r.r=n+o*(de[0]*s+de[1]*a),r.g=n+o*(de[2]*s+de[3]*a),r.b=n+o*(de[4]*s+de[5]*a),void 0!==i&&(r.alpha=i),r};const be=(t,e)=>{if(void 0===t.h||void 0===e.h||!t.s||!e.s)return 0;let n=ce(t.h),i=ce(e.h),r=Math.sin((i-n+360)/2*Math.PI/180);return 2*Math.sqrt(t.s*e.s)*r},we=(t,e)=>{if(void 0===t.h||void 0===e.h||!t.c||!e.c)return 0;let n=ce(t.h),i=ce(e.h),r=Math.sin((i-n+360)/2*Math.PI/180);return 2*Math.sqrt(t.c*e.c)*r};const Me=t=>{let e=t.reduce((t,e)=>{if(void 0!==e){let n=e*Math.PI/180;t.sin+=Math.sin(n),t.cos+=Math.cos(n)}return t},{sin:0,cos:0}),n=180*Math.atan2(e.sin,e.cos)/Math.PI;return n<0?360+n:n};const ke={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:ve},toMode:{rgb:xe},interpolate:{h:{use:qt,fixup:ue},s:qt,l:qt,alpha:{use:qt,fixup:Xt}},difference:{h:be},average:{h:Me}},Ce=({l:t,a:e,b:n,alpha:i},r="lch")=>{void 0===e&&(e=0),void 0===n&&(n=0);let o=Math.sqrt(e*e+n*n),s={mode:r,l:t,c:o};return o&&(s.h=ce(180*Math.atan2(n,e)/Math.PI)),void 0!==i&&(s.alpha=i),s},Oe=({l:t,c:e,h:n,alpha:i},r="lab")=>{void 0===n&&(n=0);let o={mode:r,l:t,a:e?e*Math.cos(n/180*Math.PI):0,b:e?e*Math.sin(n/180*Math.PI):0};return void 0!==i&&(o.alpha=i),o},je=Math.pow(29,3)/Math.pow(3,3),Ee=Math.pow(6,3)/Math.pow(29,3),_e=.3457/.3585,Se=1,$e=.2958/.3585,Ae=.3127/.329,ze=1,Pe=.3583/.329;Math.pow(29,3),Math.pow(3,3),Math.pow(6,3),Math.pow(29,3);let Le=t=>Math.pow(t,3)>Ee?Math.pow(t,3):(116*t-16)/je;const Ie=({l:t,a:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=(t+16)/116,o=r-n/200,s={mode:"xyz65",x:Le(e/500+r)*Ae,y:Le(r)*ze,z:Le(o)*Pe};return void 0!==i&&(s.alpha=i),s},Te=t=>se(Ie(t)),Re=t=>t>Ee?Math.cbrt(t):(je*t+16)/116,Be=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=Re(t/Ae),o=Re(e/ze),s={mode:"lab65",l:116*o-16,a:500*(r-o),b:200*(o-Re(n/Pe))};return void 0!==i&&(s.alpha=i),s},We=t=>{let e=Be(ie(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},He=26/180*Math.PI,Ne=Math.cos(He),Fe=Math.sin(He),De=100/Math.log(1.39),Ve=({l:t,c:e,h:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r={mode:"lab65",l:(Math.exp(1*t/De)-1)/.0039},o=(Math.exp(.0435*e*1*1)-1)/.075,s=o*Math.cos(n/180*Math.PI-He),a=o*Math.sin(n/180*Math.PI-He);return r.a=s*Ne-a/.83*Fe,r.b=s*Fe+a/.83*Ne,void 0!==i&&(r.alpha=i),r},Ue=({l:t,a:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=e*Ne+n*Fe,o=.83*(n*Ne-e*Fe),s=Math.sqrt(r*r+o*o),a={mode:"dlch",l:De/1*Math.log(1+.0039*t),c:Math.log(1+.075*s)/.0435};return a.c&&(a.h=ce((Math.atan2(o,r)+He)/Math.PI*180)),void 0!==i&&(a.alpha=i),a},Ye=t=>Ve(Ce(t,"dlch")),qe=t=>Oe(Ue(t),"dlab"),Ge={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Ye,rgb:t=>Te(Ye(t))},fromMode:{lab65:qe,rgb:t=>qe(We(t))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:qt,a:qt,b:qt,alpha:{use:qt,fixup:Xt}}},Xe=Ge,Ke={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Ve,dlab:t=>Oe(t,"dlab"),rgb:t=>Te(Ve(t))},fromMode:{lab65:Ue,dlab:t=>Ce(t,"dlch"),rgb:t=>Ue(We(t))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:qt,c:qt,h:{use:qt,fixup:ue},alpha:{use:qt,fixup:Xt}},difference:{h:we},average:{h:Me}},Ze=Ke;const Qe={mode:"hsi",toMode:{rgb:function({h:t,s:e,i:n,alpha:i}){t=ce(void 0!==t?t:0),void 0===e&&(e=0),void 0===n&&(n=0);let r,o=Math.abs(t/60%2-1);switch(Math.floor(t/60)){case 0:r={r:n*(1+e*(3/(2-o)-1)),g:n*(1+e*(3*(1-o)/(2-o)-1)),b:n*(1-e)};break;case 1:r={r:n*(1+e*(3*(1-o)/(2-o)-1)),g:n*(1+e*(3/(2-o)-1)),b:n*(1-e)};break;case 2:r={r:n*(1-e),g:n*(1+e*(3/(2-o)-1)),b:n*(1+e*(3*(1-o)/(2-o)-1))};break;case 3:r={r:n*(1-e),g:n*(1+e*(3*(1-o)/(2-o)-1)),b:n*(1+e*(3/(2-o)-1))};break;case 4:r={r:n*(1+e*(3*(1-o)/(2-o)-1)),g:n*(1-e),b:n*(1+e*(3/(2-o)-1))};break;case 5:r={r:n*(1+e*(3/(2-o)-1)),g:n*(1-e),b:n*(1+e*(3*(1-o)/(2-o)-1))};break;default:r={r:n*(1-e),g:n*(1-e),b:n*(1-e)}}return r.mode="rgb",void 0!==i&&(r.alpha=i),r}},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:function({r:t,g:e,b:n,alpha:i}){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsi",s:t+e+n===0?0:1-3*o/(t+e+n),i:(t+e+n)/3};return r-o!==0&&(s.h=60*(r===t?(e-n)/(r-o)+6*(e<n):r===e?(n-t)/(r-o)+2:(t-e)/(r-o)+4)),void 0!==i&&(s.alpha=i),s}},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:qt,fixup:ue},s:qt,i:qt,alpha:{use:qt,fixup:Xt}},difference:{h:be},average:{h:Me}},Je=Qe;const tn=(t,e)=>{switch(e){case"deg":return+t;case"rad":return t/Math.PI*180;case"grad":return t/10*9;case"turn":return 360*t}},en=new RegExp(`^hsla?\\(\\s*${ct}${ht}${at}${ht}${at}\\s*(?:,\\s*${lt}\\s*)?\\)$`),nn=t=>{let e=t.match(en);if(!e)return;let n={mode:"hsl"};return void 0!==e[3]?n.h=+e[3]:void 0!==e[1]&&void 0!==e[2]&&(n.h=tn(e[1],e[2])),void 0!==e[4]&&(n.s=Math.min(Math.max(0,e[4]/100),1)),void 0!==e[5]&&(n.l=Math.min(Math.max(0,e[5]/100),1)),void 0!==e[6]?n.alpha=Math.max(0,Math.min(1,e[6]/100)):void 0!==e[7]&&(n.alpha=Math.max(0,Math.min(1,+e[7]))),n};const rn=function(t,e){if(!e||"hsl"!==e[0]&&"hsla"!==e[0])return;const n={mode:"hsl"},[,i,r,o,s]=e;if(i.type!==$t){if(i.type===_t)return;n.h=i.value}if(r.type!==$t){if(r.type===At)return;n.s=r.value/100}if(o.type!==$t){if(o.type===At)return;n.l=o.value/100}return s.type!==$t&&(n.alpha=Math.min(1,Math.max(0,s.type===Et?s.value:s.value/100))),n},on={mode:"hsl",toMode:{rgb:function({h:t,s:e,l:n,alpha:i}){t=ce(void 0!==t?t:0),void 0===e&&(e=0),void 0===n&&(n=0);let r,o=n+e*(n<.5?n:1-n),s=o-2*(o-n)*Math.abs(t/60%2-1);switch(Math.floor(t/60)){case 0:r={r:o,g:s,b:2*n-o};break;case 1:r={r:s,g:o,b:2*n-o};break;case 2:r={r:2*n-o,g:o,b:s};break;case 3:r={r:2*n-o,g:s,b:o};break;case 4:r={r:s,g:2*n-o,b:o};break;case 5:r={r:o,g:2*n-o,b:s};break;default:r={r:2*n-o,g:2*n-o,b:2*n-o}}return r.mode="rgb",void 0!==i&&(r.alpha=i),r}},fromMode:{rgb:function({r:t,g:e,b:n,alpha:i}){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsl",s:r===o?0:(r-o)/(1-Math.abs(r+o-1)),l:.5*(r+o)};return r-o!==0&&(s.h=60*(r===t?(e-n)/(r-o)+6*(e<n):r===e?(n-t)/(r-o)+2:(t-e)/(r-o)+4)),void 0!==i&&(s.alpha=i),s}},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[rn,nn],serialize:t=>`hsl(${void 0!==t.h?t.h:"none"} ${void 0!==t.s?100*t.s+"%":"none"} ${void 0!==t.l?100*t.l+"%":"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:qt,fixup:ue},s:qt,l:qt,alpha:{use:qt,fixup:Xt}},difference:{h:be},average:{h:Me}},sn=on;function an({h:t,s:e,v:n,alpha:i}){t=ce(void 0!==t?t:0),void 0===e&&(e=0),void 0===n&&(n=0);let r,o=Math.abs(t/60%2-1);switch(Math.floor(t/60)){case 0:r={r:n,g:n*(1-e*o),b:n*(1-e)};break;case 1:r={r:n*(1-e*o),g:n,b:n*(1-e)};break;case 2:r={r:n*(1-e),g:n,b:n*(1-e*o)};break;case 3:r={r:n*(1-e),g:n*(1-e*o),b:n};break;case 4:r={r:n*(1-e*o),g:n*(1-e),b:n};break;case 5:r={r:n,g:n*(1-e),b:n*(1-e*o)};break;default:r={r:n*(1-e),g:n*(1-e),b:n*(1-e)}}return r.mode="rgb",void 0!==i&&(r.alpha=i),r}function ln({r:t,g:e,b:n,alpha:i}){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsv",s:0===r?0:1-o/r,v:r};return r-o!==0&&(s.h=60*(r===t?(e-n)/(r-o)+6*(e<n):r===e?(n-t)/(r-o)+2:(t-e)/(r-o)+4)),void 0!==i&&(s.alpha=i),s}const cn={mode:"hsv",toMode:{rgb:an},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:ln},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:qt,fixup:ue},s:qt,v:qt,alpha:{use:qt,fixup:Xt}},difference:{h:be},average:{h:Me}};const hn=function(t,e){if(!e||"hwb"!==e[0])return;const n={mode:"hwb"},[,i,r,o,s]=e;if(i.type!==$t){if(i.type===_t)return;n.h=i.value}if(r.type!==$t){if(r.type===At)return;n.w=r.value/100}if(o.type!==$t){if(o.type===At)return;n.b=o.value/100}return s.type!==$t&&(n.alpha=Math.min(1,Math.max(0,s.type===Et?s.value:s.value/100))),n},un={mode:"hwb",toMode:{rgb:function({h:t,w:e,b:n,alpha:i}){if(void 0===e&&(e=0),void 0===n&&(n=0),e+n>1){let t=e+n;e/=t,n/=t}return an({h:t,s:1===n?1:1-e/(1-n),v:1-n,alpha:i})}},fromMode:{rgb:function(t){let e=ln(t);if(void 0===e)return;let n=void 0!==e.v?e.v:0,i={mode:"hwb",w:(1-(void 0!==e.s?e.s:0))*n,b:1-n};return void 0!==e.h&&(i.h=e.h),void 0!==e.alpha&&(i.alpha=e.alpha),i}},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[hn],serialize:t=>`hwb(${void 0!==t.h?t.h:"none"} ${void 0!==t.w?100*t.w+"%":"none"} ${void 0!==t.b?100*t.b+"%":"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:qt,fixup:ue},w:qt,b:qt,alpha:{use:qt,fixup:Xt}},difference:{h:(t,e)=>{if(void 0===t.h||void 0===e.h)return 0;let n=ce(t.h),i=ce(e.h);return Math.abs(i-n)>180?n-(i-360*Math.sign(i-n)):i-n}},average:{h:Me}},dn=un,fn=.1593017578125,pn=78.84375,gn=.8359375,mn=18.8515625,yn=18.6875;function vn(t){if(t<0)return 0;const e=Math.pow(t,1/pn);return 1e4*Math.pow(Math.max(0,e-gn)/(mn-yn*e),1/fn)}function xn(t){if(t<0)return 0;const e=Math.pow(t/1e4,fn);return Math.pow((gn+mn*e)/(1+yn*e),pn)}const bn=t=>Math.max(t/203,0),wn=({i:t,t:e,p:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);const r=vn(t+.008609037037932761*e+.11102962500302593*n),o=vn(t-.00860903703793275*e-.11102962500302599*n),s=vn(t+.5600313357106791*e-.32062717498731885*n),a={mode:"xyz65",x:bn(2.070152218389422*r-1.3263473389671556*o+.2066510476294051*s),y:bn(.3647385209748074*r+.680566024947227*o-.0453045459220346*s),z:bn(-.049747207535812*r-.0492609666966138*o+1.1880659249923042*s)};return void 0!==i&&(a.alpha=i),a},Mn=(t=0)=>Math.max(203*t,0),kn=({x:t,y:e,z:n,alpha:i})=>{const r=Mn(t),o=Mn(e),s=Mn(n),a=xn(.3592832590121217*r+.6976051147779502*o-.0358915932320289*s),l=xn(-.1920808463704995*r+1.1004767970374323*o+.0753748658519118*s),c=xn(.0070797844607477*r+.0748396662186366*o+.8433265453898765*s),h={mode:"itp",i:.5*a+.5*l,t:1.61376953125*a-3.323486328125*l+1.709716796875*c,p:4.378173828125*a-4.24560546875*l-.132568359375*c};return void 0!==i&&(h.alpha=i),h},Cn={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:wn,rgb:t=>se(wn(t))},fromMode:{xyz65:kn,rgb:t=>kn(ie(t))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:qt,t:qt,p:qt,alpha:{use:qt,fixup:Xt}}},On=Cn,jn=t=>{if(t<0)return 0;let e=Math.pow(t/1e4,fn);return Math.pow((gn+mn*e)/(1+yn*e),134.03437499999998)},En=(t=0)=>Math.max(203*t,0),_n=({x:t,y:e,z:n,alpha:i})=>{t=En(t),e=En(e);let r=1.15*t-.15*(n=En(n)),o=.66*e+.34*t,s=jn(.41478972*r+.579999*o+.014648*n),a=jn(-.20151*r+1.120649*o+.0531008*n),l=jn(-.0166008*r+.2648*o+.6684799*n),c=(s+a)/2,h={mode:"jab",j:.44*c/(1-.56*c)-16295499532821565e-27,a:3.524*s-4.066708*a+.542708*l,b:.199076*s+1.096799*a-1.295875*l};return void 0!==i&&(h.alpha=i),h},Sn=16295499532821565e-27,$n=t=>{if(t<0)return 0;let e=Math.pow(t,.007460772656268216);return 1e4*Math.pow((gn-e)/(yn*e-mn),1/fn)},An=t=>t/203,zn=({j:t,a:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=(t+Sn)/(.44+.56*(t+Sn)),o=$n(r+.13860504*e+.058047316*n),s=$n(r-.13860504*e-.058047316*n),a=$n(r-.096019242*e-.8118919*n),l={mode:"xyz65",x:An(1.661373024652174*o-.914523081304348*s+.23136208173913045*a),y:An(-.3250758611844533*o+1.571847026732543*s-.21825383453227928*a),z:An(-.090982811*o-.31272829*s+1.5227666*a)};return void 0!==i&&(l.alpha=i),l},Pn=t=>{let e=_n(ie(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},Ln=t=>se(zn(t)),In={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:Pn,xyz65:_n},toMode:{rgb:Ln,xyz65:zn},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:qt,a:qt,b:qt,alpha:{use:qt,fixup:Xt}}},Tn=({j:t,a:e,b:n,alpha:i})=>{void 0===e&&(e=0),void 0===n&&(n=0);let r=Math.sqrt(e*e+n*n),o={mode:"jch",j:t,c:r};return r&&(o.h=ce(180*Math.atan2(n,e)/Math.PI)),void 0!==i&&(o.alpha=i),o},Rn=({j:t,c:e,h:n,alpha:i})=>{void 0===n&&(n=0);let r={mode:"jab",j:t,a:e?e*Math.cos(n/180*Math.PI):0,b:e?e*Math.sin(n/180*Math.PI):0};return void 0!==i&&(r.alpha=i),r},Bn={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Rn,rgb:t=>Ln(Rn(t))},fromMode:{rgb:t=>Tn(Pn(t)),jab:Tn},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:qt,fixup:ue},c:qt,j:qt,alpha:{use:qt,fixup:Xt}},difference:{h:we},average:{h:Me}},Wn=Bn,Hn=Math.pow(29,3)/Math.pow(3,3),Nn=Math.pow(6,3)/Math.pow(29,3);let Fn=t=>Math.pow(t,3)>Nn?Math.pow(t,3):(116*t-16)/Hn;const Dn=({l:t,a:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=(t+16)/116,o=r-n/200,s={mode:"xyz50",x:Fn(e/500+r)*_e,y:Fn(r)*Se,z:Fn(o)*$e};return void 0!==i&&(s.alpha=i),s},Vn=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=oe({r:3.1341359569958707*t-1.6173863321612538*e-.4906619460083532*n,g:-.978795502912089*t+1.916254567259524*e+.03344273116131949*n,b:.07195537988411677*t-.2289768264158322*e+1.405386058324125*n});return void 0!==i&&(r.alpha=i),r},Un=t=>Vn(Dn(t)),Yn=t=>{let{r:e,g:n,b:i,alpha:r}=ne(t),o={mode:"xyz50",x:.436065742824811*e+.3851514688337912*n+.14307845442264197*i,y:.22249319175623702*e+.7168870538238823*n+.06061979053616537*i,z:.013923904500943465*e+.09708128566574634*n+.7140993584005155*i};return void 0!==r&&(o.alpha=r),o},qn=t=>t>Nn?Math.cbrt(t):(Hn*t+16)/116,Gn=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=qn(t/_e),o=qn(e/Se),s={mode:"lab",l:116*o-16,a:500*(r-o),b:200*(o-qn(n/$e))};return void 0!==i&&(s.alpha=i),s},Xn=t=>{let e=Gn(Yn(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e};const Kn=function(t,e){if(!e||"lab"!==e[0])return;const n={mode:"lab"},[,i,r,o,s]=e;return i.type!==At&&r.type!==At&&o.type!==At?(i.type!==$t&&(n.l=Math.min(Math.max(0,i.value),100)),r.type!==$t&&(n.a=r.type===Et?r.value:125*r.value/100),o.type!==$t&&(n.b=o.type===Et?o.value:125*o.value/100),s.type!==$t&&(n.alpha=Math.min(1,Math.max(0,s.type===Et?s.value:s.value/100))),n):void 0},Zn={mode:"lab",toMode:{xyz50:Dn,rgb:Un},fromMode:{xyz50:Gn,rgb:Xn},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Kn],serialize:t=>`lab(${void 0!==t.l?t.l:"none"} ${void 0!==t.a?t.a:"none"} ${void 0!==t.b?t.b:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{l:qt,a:qt,b:qt,alpha:{use:qt,fixup:Xt}}},Qn=Zn,Jn={...Qn,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Ie,rgb:Te},fromMode:{xyz65:Be,rgb:We},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}};const ti=function(t,e){if(!e||"lch"!==e[0])return;const n={mode:"lch"},[,i,r,o,s]=e;if(i.type!==$t){if(i.type===At)return;n.l=Math.min(Math.max(0,i.value),100)}if(r.type!==$t&&(n.c=Math.max(0,r.type===Et?r.value:150*r.value/100)),o.type!==$t){if(o.type===_t)return;n.h=o.value}return s.type!==$t&&(n.alpha=Math.min(1,Math.max(0,s.type===Et?s.value:s.value/100))),n},ei={mode:"lch",toMode:{lab:Oe,rgb:t=>Un(Oe(t))},fromMode:{rgb:t=>Ce(Xn(t)),lab:Ce},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[ti],serialize:t=>`lch(${void 0!==t.l?t.l:"none"} ${void 0!==t.c?t.c:"none"} ${void 0!==t.h?t.h:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:qt,fixup:ue},c:qt,l:qt,alpha:{use:qt,fixup:Xt}},difference:{h:we},average:{h:Me}},ni=ei,ii={...ni,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:t=>Oe(t,"lab65"),rgb:t=>Te(Oe(t,"lab65"))},fromMode:{rgb:t=>Ce(We(t),"lch65"),lab65:t=>Ce(t,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},ri=ii,oi=({l:t,u:e,v:n,alpha:i})=>{void 0===e&&(e=0),void 0===n&&(n=0);let r=Math.sqrt(e*e+n*n),o={mode:"lchuv",l:t,c:r};return r&&(o.h=ce(180*Math.atan2(n,e)/Math.PI)),void 0!==i&&(o.alpha=i),o},si=({l:t,c:e,h:n,alpha:i})=>{void 0===n&&(n=0);let r={mode:"luv",l:t,u:e?e*Math.cos(n/180*Math.PI):0,v:e?e*Math.sin(n/180*Math.PI):0};return void 0!==i&&(r.alpha=i),r},ai=(t,e,n)=>4*t/(t+15*e+3*n),li=(t,e,n)=>9*e/(t+15*e+3*n),ci=ai(_e,Se,$e),hi=li(_e,Se,$e),ui=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=(t=>t<=Nn?Hn*t:116*Math.cbrt(t)-16)(e/Se),o=ai(t,e,n),s=li(t,e,n);isFinite(o)&&isFinite(s)?(o=13*r*(o-ci),s=13*r*(s-hi)):r=o=s=0;let a={mode:"luv",l:r,u:o,v:s};return void 0!==i&&(a.alpha=i),a},di=((t,e,n)=>4*t/(t+15*e+3*n))(_e,Se,$e),fi=((t,e,n)=>9*e/(t+15*e+3*n))(_e,Se,$e),pi=({l:t,u:e,v:n,alpha:i})=>{if(void 0===t&&(t=0),0===t)return{mode:"xyz50",x:0,y:0,z:0};void 0===e&&(e=0),void 0===n&&(n=0);let r=e/(13*t)+di,o=n/(13*t)+fi,s=Se*(t<=8?t/Hn:Math.pow((t+16)/116,3)),a={mode:"xyz50",x:s*(9*r)/(4*o),y:s,z:s*(12-3*r-20*o)/(4*o)};return void 0!==i&&(a.alpha=i),a},gi={mode:"lchuv",toMode:{luv:si,rgb:t=>Vn(pi(si(t)))},fromMode:{rgb:t=>oi(ui(Yn(t))),luv:oi},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:qt,fixup:ue},c:qt,l:qt,alpha:{use:qt,fixup:Xt}},difference:{h:we},average:{h:Me}},mi=gi,yi={...Kt,mode:"lrgb",toMode:{rgb:oe},fromMode:{rgb:ne},parse:["srgb-linear"],serialize:"srgb-linear"},vi={mode:"luv",toMode:{xyz50:pi,rgb:t=>Vn(pi(t))},fromMode:{xyz50:ui,rgb:t=>ui(Yn(t))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:qt,u:qt,v:qt,alpha:{use:qt,fixup:Xt}}},xi=vi,bi=({r:t,g:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=Math.cbrt(.412221469470763*t+.5363325372617348*e+.0514459932675022*n),o=Math.cbrt(.2119034958178252*t+.6806995506452344*e+.1073969535369406*n),s=Math.cbrt(.0883024591900564*t+.2817188391361215*e+.6299787016738222*n),a={mode:"oklab",l:.210454268309314*r+.7936177747023054*o-.0040720430116193*s,a:1.9779985324311684*r-2.42859224204858*o+.450593709617411*s,b:.0259040424655478*r+.7827717124575296*o-.8086757549230774*s};return void 0!==i&&(a.alpha=i),a},wi=t=>{let e=bi(ne(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},Mi=({l:t,a:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=Math.pow(t+.3963377773761749*e+.2158037573099136*n,3),o=Math.pow(t-.1055613458156586*e-.0638541728258133*n,3),s=Math.pow(t-.0894841775298119*e-1.2914855480194092*n,3),a={mode:"lrgb",r:4.076741636075957*r-3.3077115392580616*o+.2309699031821044*s,g:-1.2684379732850317*r+2.6097573492876887*o-.3413193760026573*s,b:-.0041960761386756*r-.7034186179359362*o+1.7076146940746117*s};return void 0!==i&&(a.alpha=i),a},ki=t=>oe(Mi(t));function Ci(t){const e=.206,n=1.206/1.03;return.5*(n*t-e+Math.sqrt((n*t-e)*(n*t-e)+.12*n*t))}function Oi(t){return(t*t+.206*t)/(1.206/1.03*(t+.03))}function ji(t,e){let n=function(t,e){let n,i,r,o,s,a,l,c;-1.88170328*t-.80936493*e>1?(n=1.19086277,i=1.76576728,r=.59662641,o=.75515197,s=.56771245,a=4.0767416621,l=-3.3077115913,c=.2309699292):1.81444104*t-1.19445276*e>1?(n=.73956515,i=-.45954404,r=.08285427,o=.1254107,s=.14503204,a=-1.2684380046,l=2.6097574011,c=-.3413193965):(n=1.35733652,i=-.00915799,r=-1.1513021,o=-.50559606,s=.00692167,a=-.0041960863,l=-.7034186147,c=1.707614701);let h=n+i*t+r*e+o*t*t+s*t*e,u=.3963377774*t+.2158037573*e,d=-.1055613458*t-.0638541728*e,f=-.0894841775*t-1.291485548*e;{let t=1+h*u,e=1+h*d,n=1+h*f,i=a*(t*t*t)+l*(e*e*e)+c*(n*n*n),r=a*(3*u*t*t)+l*(3*d*e*e)+c*(3*f*n*n);h-=i*r/(r*r-.5*i*(a*(6*u*u*t)+l*(6*d*d*e)+c*(6*f*f*n)))}return h}(t,e),i=Mi({l:1,a:n*t,b:n*e}),r=Math.cbrt(1/Math.max(i.r,i.g,i.b));return[r,r*n]}function Ei(t,e,n=null){n||(n=ji(t,e));let i=n[0],r=n[1];return[r/i,r/(1-i)]}function _i(t,e,n){let i=ji(e,n),r=function(t,e,n,i,r,o=null){let s;if(o||(o=ji(t,e)),(n-r)*o[1]-(o[0]-r)*i<=0)s=o[1]*r/(i*o[0]+o[1]*(r-n));else{s=o[1]*(r-1)/(i*(o[0]-1)+o[1]*(r-n));{let o=n-r,a=.3963377774*t+.2158037573*e,l=-.1055613458*t-.0638541728*e,c=-.0894841775*t-1.291485548*e,h=o+i*a,u=o+i*l,d=o+i*c;{let t=r*(1-s)+s*n,e=s*i,o=t+e*a,f=t+e*l,p=t+e*c,g=o*o*o,m=f*f*f,y=p*p*p,v=3*h*o*o,x=3*u*f*f,b=3*d*p*p,w=6*h*h*o,M=6*u*u*f,k=6*d*d*p,C=4.0767416621*g-3.3077115913*m+.2309699292*y-1,O=4.0767416621*v-3.3077115913*x+.2309699292*b,j=O/(O*O-.5*C*(4.0767416621*w-3.3077115913*M+.2309699292*k)),E=-C*j,_=-1.2684380046*g+2.6097574011*m-.3413193965*y-1,S=-1.2684380046*v+2.6097574011*x-.3413193965*b,$=S/(S*S-.5*_*(-1.2684380046*w+2.6097574011*M-.3413193965*k)),A=-_*$,z=-.0041960863*g-.7034186147*m+1.707614701*y-1,P=-.0041960863*v-.7034186147*x+1.707614701*b,L=P/(P*P-.5*z*(-.0041960863*w-.7034186147*M+1.707614701*k)),I=-z*L;E=j>=0?E:1e6,A=$>=0?A:1e6,I=L>=0?I:1e6,s+=Math.min(E,Math.min(A,I))}}}return s}(e,n,t,1,t,i),o=Ei(e,n,i),s=t*(.11516993+1/(7.4477897+4.1590124*n+e*(1.75198401*n-2.19557347+e*(-2.13704948-10.02301043*n+e*(5.38770819*n-4.24894561+4.69891013*e))))),a=(1-t)*(.11239642+1/(1.6132032-.68124379*n+e*(.40370612+.90148123*n+e*(.6122399*n-.27087943+e*(.00299215-.45399568*n-.14661872*e))))),l=.9*(r/Math.min(t*o[0],(1-t)*o[1]))*Math.sqrt(Math.sqrt(1/(1/(s*s*s*s)+1/(a*a*a*a))));return s=.4*t,a=.8*(1-t),[Math.sqrt(1/(1/(s*s)+1/(a*a))),l,r]}function Si(t){const e=void 0!==t.l?t.l:0,n=void 0!==t.a?t.a:0,i=void 0!==t.b?t.b:0,r={mode:"okhsl",l:Ci(e)};void 0!==t.alpha&&(r.alpha=t.alpha);let o=Math.sqrt(n*n+i*i);if(!o)return r.s=0,r;let s,[a,l,c]=_i(e,n/o,i/o);if(o<l){let t=0,e=.8*a;s=.8*((o-t)/(e+(1-e/l)*(o-t)))}else{let t=.2*l*l*1.25*1.25/a;s=.8+.2*((o-l)/(t+(1-t/(c-l))*(o-l)))}return s&&(r.s=s,r.h=ce(180*Math.atan2(i,n)/Math.PI)),r}function $i(t){let e=void 0!==t.h?t.h:0,n=void 0!==t.s?t.s:0,i=void 0!==t.l?t.l:0;const r={mode:"oklab",l:Oi(i)};if(void 0!==t.alpha&&(r.alpha=t.alpha),!n||1===i)return r.a=r.b=0,r;let o,s,a,l,c=Math.cos(e/180*Math.PI),h=Math.sin(e/180*Math.PI),[u,d,f]=_i(r.l,c,h);n<.8?(o=1.25*n,s=0,a=.8*u,l=1-a/d):(o=5*(n-.8),s=d,a=.2*d*d*1.25*1.25/u,l=1-a/(f-d));let p=s+o*a/(1-l*o);return r.a=p*c,r.b=p*h,r}const Ai={...sn,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:Si,rgb:t=>Si(wi(t))},toMode:{oklab:$i,rgb:t=>ki($i(t))}},zi=Ai;function Pi(t){let e=void 0!==t.l?t.l:0,n=void 0!==t.a?t.a:0,i=void 0!==t.b?t.b:0,r=Math.sqrt(n*n+i*i),o=r?n/r:1,s=r?i/r:1,[a,l]=Ei(o,s),c=1-.5/a,h=l/(r+e*l),u=h*e,d=h*r,f=Oi(u),p=d*f/u,g=Mi({l:f,a:o*p,b:s*p}),m=Math.cbrt(1/Math.max(g.r,g.g,g.b,0));e/=m,r=r/m*Ci(e)/e,e=Ci(e);const y={mode:"okhsv",s:r?(.5+l)*d/(.5*l+l*c*d):0,v:e?e/u:0};return y.s&&(y.h=ce(180*Math.atan2(i,n)/Math.PI)),void 0!==t.alpha&&(y.alpha=t.alpha),y}function Li(t){const e={mode:"oklab"};void 0!==t.alpha&&(e.alpha=t.alpha);const n=void 0!==t.h?t.h:0,i=void 0!==t.s?t.s:0,r=void 0!==t.v?t.v:0,o=Math.cos(n/180*Math.PI),s=Math.sin(n/180*Math.PI),[a,l]=Ei(o,s),c=.5,h=1-c/a,u=1-i*c/(c+l-l*h*i),d=i*l*c/(c+l-l*h*i),f=Oi(u),p=d*f/u,g=Mi({l:f,a:o*p,b:s*p}),m=Math.cbrt(1/Math.max(g.r,g.g,g.b,0)),y=Oi(r*u),v=d*y/u;return e.l=y*m,e.a=v*o*m,e.b=v*s*m,e}const Ii={...cn,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:Pi,rgb:t=>Pi(wi(t))},toMode:{oklab:Li,rgb:t=>ki(Li(t))}},Ti=Ii;const Ri=function(t,e){if(!e||"oklab"!==e[0])return;const n={mode:"oklab"},[,i,r,o,s]=e;return i.type!==At&&r.type!==At&&o.type!==At?(i.type!==$t&&(n.l=Math.min(Math.max(0,i.type===Et?i.value:i.value/100),1)),r.type!==$t&&(n.a=r.type===Et?r.value:.4*r.value/100),o.type!==$t&&(n.b=o.type===Et?o.value:.4*o.value/100),s.type!==$t&&(n.alpha=Math.min(1,Math.max(0,s.type===Et?s.value:s.value/100))),n):void 0},Bi={...Qn,mode:"oklab",toMode:{lrgb:Mi,rgb:ki},fromMode:{lrgb:bi,rgb:wi},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Ri],serialize:t=>`oklab(${void 0!==t.l?t.l:"none"} ${void 0!==t.a?t.a:"none"} ${void 0!==t.b?t.b:"none"}${t.alpha<1?` / ${t.alpha}`:""})`},Wi=Bi;const Hi=function(t,e){if(!e||"oklch"!==e[0])return;const n={mode:"oklch"},[,i,r,o,s]=e;if(i.type!==$t){if(i.type===At)return;n.l=Math.min(Math.max(0,i.type===Et?i.value:i.value/100),1)}if(r.type!==$t&&(n.c=Math.max(0,r.type===Et?r.value:.4*r.value/100)),o.type!==$t){if(o.type===_t)return;n.h=o.value}return s.type!==$t&&(n.alpha=Math.min(1,Math.max(0,s.type===Et?s.value:s.value/100))),n},Ni={...ni,mode:"oklch",toMode:{oklab:t=>Oe(t,"oklab"),rgb:t=>ki(Oe(t,"oklab"))},fromMode:{rgb:t=>Ce(wi(t),"oklch"),oklab:t=>Ce(t,"oklch")},parse:[Hi],serialize:t=>`oklch(${void 0!==t.l?t.l:"none"} ${void 0!==t.c?t.c:"none"} ${void 0!==t.h?t.h:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},Fi=Ni,Di=t=>{let{r:e,g:n,b:i,alpha:r}=ne(t),o={mode:"xyz65",x:.486570948648216*e+.265667693169093*n+.1982172852343625*i,y:.2289745640697487*e+.6917385218365062*n+.079286914093745*i,z:0*e+.0451133818589026*n+1.043944368900976*i};return void 0!==r&&(o.alpha=r),o},Vi=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=oe({r:2.4934969119414263*t-.9313836179191242*e-.402710784450717*n,g:-.8294889695615749*t+1.7626640603183465*e+.0236246858419436*n,b:.0358458302437845*t-.0761723892680418*e+.9568845240076871*n},"p3");return void 0!==i&&(r.alpha=i),r},Ui={...Kt,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:t=>Vi(ie(t)),xyz65:Vi},toMode:{rgb:t=>se(Di(t)),xyz65:Di}},Yi=Ui,qi=t=>{let e=Math.abs(t);return e>=1/512?Math.sign(t)*Math.pow(e,1/1.8):16*t},Gi=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r={mode:"prophoto",r:qi(1.3457868816471585*t-.2555720873797946*e-.0511018649755453*n),g:qi(-.5446307051249019*t+1.5082477428451466*e+.0205274474364214*n),b:qi(0*t+0*e+1.2119675456389452*n)};return void 0!==i&&(r.alpha=i),r},Xi=(t=0)=>{let e=Math.abs(t);return e>=16/512?Math.sign(t)*Math.pow(e,1.8):t/16},Ki=t=>{let e=Xi(t.r),n=Xi(t.g),i=Xi(t.b),r={mode:"xyz50",x:.7977666449006423*e+.1351812974005331*n+.0313477341283922*i,y:.2880748288194013*e+.7118352342418731*n+899369387256e-16*i,z:0*e+0*n+.8251046025104602*i};return void 0!==t.alpha&&(r.alpha=t.alpha),r},Zi={...Kt,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:Gi,rgb:t=>Gi(Yn(t))},toMode:{xyz50:Ki,rgb:t=>Vn(Ki(t))}},Qi=Zi,Ji=1.09929682680944,tr=t=>{const e=Math.abs(t);return e>.018053968510807?(Math.sign(t)||1)*(Ji*Math.pow(e,.45)-(Ji-1)):4.5*t},er=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r={mode:"rec2020",r:tr(1.7166511879712683*t-.3556707837763925*e-.2533662813736599*n),g:tr(-.6666843518324893*t+1.6164812366349395*e+.0157685458139111*n),b:tr(.0176398574453108*t-.0427706132578085*e+.9421031212354739*n)};return void 0!==i&&(r.alpha=i),r},nr=1.09929682680944,ir=(t=0)=>{let e=Math.abs(t);return e<.08124285829863151?t/4.5:(Math.sign(t)||1)*Math.pow((e+nr-1)/nr,1/.45)},rr=t=>{let e=ir(t.r),n=ir(t.g),i=ir(t.b),r={mode:"xyz65",x:.6369580483012911*e+.1446169035862083*n+.1688809751641721*i,y:.262700212011267*e+.6779980715188708*n+.059301716469862*i,z:0*e+.0280726930490874*n+1.0609850577107909*i};return void 0!==t.alpha&&(r.alpha=t.alpha),r},or={...Kt,mode:"rec2020",fromMode:{xyz65:er,rgb:t=>er(ie(t))},toMode:{xyz65:rr,rgb:t=>se(rr(t))},parse:["rec2020"],serialize:"rec2020"},sr=or,ar=.0037930732552754493,lr=Math.cbrt(ar),cr=t=>Math.cbrt(t)-lr,hr=t=>{const{r:e,g:n,b:i,alpha:r}=ne(t),o=cr(.3*e+.622*n+.078*i+ar),s=cr(.23*e+.692*n+.078*i+ar),a={mode:"xyb",x:(o-s)/2,y:(o+s)/2,b:cr(.2434226892454782*e+.2047674442449682*n+.5518098665095535*i+ar)-(o+s)/2};return void 0!==r&&(a.alpha=r),a},ur=t=>Math.pow(t+lr,3),dr=({x:t,y:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);const r=ur(t+e)-ar,o=ur(e-t)-ar,s=ur(n+e)-ar,a=oe({r:11.031566904639861*r-9.866943908131562*o-.16462299650829934*s,g:-3.2541473810744237*r+4.418770377582723*o-.16462299650829934*s,b:-3.6588512867136815*r+2.7129230459360922*o+1.9459282407775895*s});return void 0!==i&&(a.alpha=i),a},fr={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:dr},fromMode:{rgb:hr},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:qt,y:qt,b:qt,alpha:{use:qt,fixup:Xt}}},pr={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Vn,lab:Gn},fromMode:{rgb:Yn,lab:Dn},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:qt,y:qt,z:qt,alpha:{use:qt,fixup:Xt}}},gr=t=>{let{x:e,y:n,z:i,alpha:r}=t;void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0);let o={mode:"xyz50",x:1.0479298208405488*e+.0229467933410191*n-.0501922295431356*i,y:.0296278156881593*e+.990434484573249*n-.0170738250293851*i,z:-.0092430581525912*e+.0150551448965779*n+.7518742899580008*i};return void 0!==r&&(o.alpha=r),o},mr=t=>{let{x:e,y:n,z:i,alpha:r}=t;void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0);let o={mode:"xyz65",x:.9554734527042182*e-.0230985368742614*n+.0632593086610217*i,y:-.0283697069632081*e+1.0099954580058226*n+.021041398966943*i,z:.0123140016883199*e-.0205076964334779*n+1.3303659366080753*i};return void 0!==r&&(o.alpha=r),o},yr={mode:"xyz65",toMode:{rgb:se,xyz50:gr},fromMode:{rgb:ie,xyz50:mr},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:qt,y:qt,z:qt,alpha:{use:qt,fixup:Xt}}},vr=({r:t,g:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);const r={mode:"yiq",y:.29889531*t+.58662247*e+.11448223*n,i:.59597799*t-.2741761*e-.32180189*n,q:.21147017*t-.52261711*e+.31114694*n};return void 0!==i&&(r.alpha=i),r},xr=({y:t,i:e,q:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);const r={mode:"rgb",r:t+.95608445*e+.6208885*n,g:t-.27137664*e-.6486059*n,b:t-1.10561724*e+1.70250126*n};return void 0!==i&&(r.alpha=i),r},br={mode:"yiq",toMode:{rgb:xr},fromMode:{rgb:vr},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:qt,i:qt,q:qt,alpha:{use:qt,fixup:Xt}}},wr=(t=4)=>e=>"number"==typeof e?((t,e)=>Math.round(t*(e=Math.pow(10,e)))/e)(e,t):e;wr(2);const Mr=t=>Math.max(0,Math.min(1,t||0)),kr=t=>Math.round(255*Mr(t)),Cr=gt("rgb"),Or=(gt("hsl"),t=>{if(void 0===t)return;return"#"+(1<<24|kr(t.r)<<16|kr(t.g)<<8|kr(t.b)).toString(16).slice(1)}),jr=t=>Or(Cr(t)),Er=t=>(t=>{if(void 0===t)return;let e=kr(void 0!==t.alpha?t.alpha:1);return Or(t)+(256|e).toString(16).slice(1)})(Cr(t));function _r(t){let e=gt("lrgb")(t);return.2126*e.r+.7152*e.g+.0722*e.b}function Sr(t,e){let n=_r(t),i=_r(e);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}wt(le),wt(ke),wt(Xe),wt(Ze),wt(Je),wt(sn),wt(cn),wt(dn),wt(On),wt(In),wt(Wn),wt(Qn),wt(Jn),wt(ni),wt(ri),wt(mi),wt(yi),wt(xi),wt(zi),wt(Ti),wt(Wi);const $r=wt(Fi);wt(Yi),wt(Qi),wt(sr),wt(Kt),wt(fr),wt(pr),wt(yr),wt(br);function Ar(t){if(!t)return!1;const e=t.trim().toLowerCase();return"none"!==e&&"transparent"!==e&&""!==e}function zr(t){const e=Dt(t);if(!e)return!1;return _r(e)<.5}const Pr=Array.isArray;const Lr="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;var Ir="object"==typeof self&&self&&self.Object===Object&&self;const Tr=Lr||Ir||Function("return this")();const Rr=Tr.Symbol;var Br=Object.prototype,Wr=Br.hasOwnProperty,Hr=Br.toString,Nr=Rr?Rr.toStringTag:void 0;const Fr=function(t){var e=Wr.call(t,Nr),n=t[Nr];try{t[Nr]=void 0;var i=!0}catch(t){}var r=Hr.call(t);return i&&(e?t[Nr]=n:delete t[Nr]),r};var Dr=Object.prototype.toString;const Vr=function(t){return Dr.call(t)};var Ur=Rr?Rr.toStringTag:void 0;const Yr=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Ur&&Ur in Object(t)?Fr(t):Vr(t)};const qr=function(t){return null!=t&&"object"==typeof t};const Gr=function(t){return"symbol"==typeof t||qr(t)&&"[object Symbol]"==Yr(t)};var Xr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Kr=/^\w*$/;const Zr=function(t,e){if(Pr(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Gr(t))||(Kr.test(t)||!Xr.test(t)||null!=e&&t in Object(e))};const Qr=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const Jr=function(t){if(!Qr(t))return!1;var e=Yr(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};var to=Tr["__core-js_shared__"];var eo,no=(eo=/[^.]+$/.exec(to&&to.keys&&to.keys.IE_PROTO||""))?"Symbol(src)_1."+eo:"";const io=function(t){return!!no&&no in t};var ro=Function.prototype.toString;const oo=function(t){if(null!=t){try{return ro.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var so=/^\[object .+?Constructor\]$/,ao=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const lo=function(t){return!(!Qr(t)||io(t))&&(Jr(t)?ao:so).test(oo(t))};const co=function(t,e){return null==t?void 0:t[e]};const ho=function(t,e){var n=co(t,e);return lo(n)?n:void 0};const uo=ho(Object,"create");const fo=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var po=Object.prototype.hasOwnProperty;const go=function(t){var e=this.__data__;if(uo){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return po.call(e,t)?e[t]:void 0};var mo=Object.prototype.hasOwnProperty;const yo=function(t){var e=this.__data__;return uo?void 0!==e[t]:mo.call(e,t)};const vo=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=uo&&void 0===e?"__lodash_hash_undefined__":e,this};function xo(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}xo.prototype.clear=function(){this.__data__=uo?uo(null):{},this.size=0},xo.prototype.delete=fo,xo.prototype.get=go,xo.prototype.has=yo,xo.prototype.set=vo;const bo=xo;const wo=function(t,e){return t===e||t!=t&&e!=e};const Mo=function(t,e){for(var n=t.length;n--;)if(wo(t[n][0],e))return n;return-1};var ko=Array.prototype.splice;const Co=function(t){var e=this.__data__,n=Mo(e,t);return!(n<0)&&(n==e.length-1?e.pop():ko.call(e,n,1),--this.size,!0)};const Oo=function(t){var e=this.__data__,n=Mo(e,t);return n<0?void 0:e[n][1]};const jo=function(t){return Mo(this.__data__,t)>-1};const Eo=function(t,e){var n=this.__data__,i=Mo(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};function _o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}_o.prototype.clear=function(){this.__data__=[],this.size=0},_o.prototype.delete=Co,_o.prototype.get=Oo,_o.prototype.has=jo,_o.prototype.set=Eo;const So=_o;const $o=ho(Tr,"Map");const Ao=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zo=function(t,e){var n=t.__data__;return Ao(e)?n["string"==typeof e?"string":"hash"]:n.map};const Po=function(t){var e=zo(this,t).delete(t);return this.size-=e?1:0,e};const Lo=function(t){return zo(this,t).get(t)};const Io=function(t){return zo(this,t).has(t)};const To=function(t,e){var n=zo(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this};function Ro(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Ro.prototype.clear=function(){this.size=0,this.__data__={hash:new bo,map:new($o||So),string:new bo}},Ro.prototype.delete=Po,Ro.prototype.get=Lo,Ro.prototype.has=Io,Ro.prototype.set=To;const Bo=Ro;function Wo(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=t.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(Wo.Cache||Bo),n}Wo.Cache=Bo;const Ho=Wo;var No=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fo=/\\(\\)?/g,Do=function(t){var e=Ho(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(No,function(t,n,i,r){e.push(i?r.replace(Fo,"$1"):n||t)}),e});const Vo=Do;const Uo=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r};var Yo=Rr?Rr.prototype:void 0,qo=Yo?Yo.toString:void 0;const Go=function t(e){if("string"==typeof e)return e;if(Pr(e))return Uo(e,t)+"";if(Gr(e))return qo?qo.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n};const Xo=function(t){return null==t?"":Go(t)};const Ko=function(t,e){return Pr(t)?t:Zr(t,e)?[t]:Vo(Xo(t))};const Zo=function(t){if("string"==typeof t||Gr(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e};const Qo=function(t,e){for(var n=0,i=(e=Ko(e,t)).length;null!=t&&n<i;)t=t[Zo(e[n++])];return n&&n==i?t:void 0};const Jo=function(t,e,n){var i=null==t?void 0:Qo(t,e);return void 0===i?n:i};function ts(t,e){if(0===e.length)return{};const n=Array.isArray(t)?t[e[0]]:t.items[e[0]];if(1===e.length)return n;const i=e.slice(1).map(t=>`children[${t}]`).join(".");return Jo(n,i)}function es(t){const{structure:e,item:n,items:i}=t;return!!e&&(!!n&&!i.some(t=>!t))}const ns="infographic-component";const is=function(t,e,n){var i=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(r);++i<r;)o[i]=t[i+e];return o};const rs=function(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:is(t,e,n)};var os=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const ss=function(t){return os.test(t)};const as=function(t){return t.split("")};var ls="\\ud800-\\udfff",cs="["+ls+"]",hs="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",us="\\ud83c[\\udffb-\\udfff]",ds="[^"+ls+"]",fs="(?:\\ud83c[\\udde6-\\uddff]){2}",ps="[\\ud800-\\udbff][\\udc00-\\udfff]",gs="(?:"+hs+"|"+us+")"+"?",ms="[\\ufe0e\\ufe0f]?",ys=ms+gs+("(?:\\u200d(?:"+[ds,fs,ps].join("|")+")"+ms+gs+")*"),vs="(?:"+[ds+hs+"?",hs,fs,ps,cs].join("|")+")",xs=RegExp(us+"(?="+us+")|"+vs+ys,"g");const bs=function(t){return t.match(xs)||[]};const ws=function(t){return ss(t)?bs(t):as(t)};const Ms=function(t){return function(e){e=Xo(e);var n=ss(e)?ws(e):void 0,i=n?n[0]:e.charAt(0),r=n?rs(n,1).join(""):e.slice(1);return i[t]()+r}};const ks=Ms("toUpperCase");const Cs=function(t){return ks(Xo(t).toLowerCase())};const Os=function(t,e,n,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n};const js=function(t){return function(e){return null==t?void 0:t[e]}};const Es=js({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});var _s=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ss=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");const $s=function(t){return(t=Xo(t))&&t.replace(_s,Es).replace(Ss,"")};var As=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;const zs=function(t){return t.match(As)||[]};var Ps=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;const Ls=function(t){return Ps.test(t)};var Is="\\ud800-\\udfff",Ts="\\u2700-\\u27bf",Rs="a-z\\xdf-\\xf6\\xf8-\\xff",Bs="A-Z\\xc0-\\xd6\\xd8-\\xde",Ws="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Hs="["+Ws+"]",Ns="\\d+",Fs="["+Ts+"]",Ds="["+Rs+"]",Vs="[^"+Is+Ws+Ns+Ts+Rs+Bs+"]",Us="(?:\\ud83c[\\udde6-\\uddff]){2}",Ys="[\\ud800-\\udbff][\\udc00-\\udfff]",qs="["+Bs+"]",Gs="(?:"+Ds+"|"+Vs+")",Xs="(?:"+qs+"|"+Vs+")",Ks="(?:['’](?:d|ll|m|re|s|t|ve))?",Zs="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qs="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Js="[\\ufe0e\\ufe0f]?",ta=Js+Qs+("(?:\\u200d(?:"+["[^"+Is+"]",Us,Ys].join("|")+")"+Js+Qs+")*"),ea="(?:"+[Fs,Us,Ys].join("|")+")"+ta,na=RegExp([qs+"?"+Ds+"+"+Ks+"(?="+[Hs,qs,"$"].join("|")+")",Xs+"+"+Zs+"(?="+[Hs,qs+Gs,"$"].join("|")+")",qs+"?"+Gs+"+"+Ks,qs+"+"+Zs,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ns,ea].join("|"),"g");const ia=function(t){return t.match(na)||[]};const ra=function(t,e,n){return t=Xo(t),void 0===(e=n?void 0:e)?Ls(t)?ia(t):zs(t):t.match(e)||[]};var oa=RegExp("['’]","g");const sa=function(t){return function(e){return Os(ra($s(e).replace(oa,"")),t,"")}};const aa=sa(function(t,e,n){return e=e.toLowerCase(),t+(n?Cs(e):e)}),la=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","-apple-system","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong"]);function ca(t){const e=[];let n="",i=null;const r=()=>{const t=n.trim();t&&e.push(t),n=""};for(let e=0;e<t.length;e+=1){const o=t[e];i?(n+=o,o===i&&(i=null)):'"'!==o&&"'"!==o?","!==o?n+=o:r():(i=o,n+=o)}return r(),e}function ha(t){const e=t.trim();return e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'")?e.slice(1,-1):e}function ua(t){const e=ca(t);return e.length?1===e.length?ha(e[0]):e.map(t=>ha(t)).join(", "):""}function da(t){const e=ca(t);return e.length?e.map(t=>function(t){const e=t.trim();if(!e)return e;if(function(t){const e=t.trim();return e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'")}(e))return e;if(la.has(e.toLowerCase()))return e;if(!function(t){return/^\d/.test(t)||/\s/.test(t)}(e))return e;const n=e.includes('"')&&!e.includes("'")?"'":'"';return`${n}${e}${n}`}(t)).join(", "):t.trim()}const fa={100:"thin",hairline:"thin",thin:"thin",200:"extralight",ultralight:"extralight",extralight:"extralight",300:"light",light:"light",400:"regular",normal:"regular",regular:"regular",500:"medium",medium:"medium",600:"semibold",demibold:"semibold",semibold:"semibold",700:"bold",bold:"bold",800:"extrabold",ultrabold:"extrabold",extrabold:"extrabold",900:"black",heavy:"black",black:"black",950:"extrablack",ultrablack:"extrablack",extrablack:"extrablack"};function pa(t){const e=String(t).toLowerCase();return fa[e]||"regular"}const ga=new Map,ma=new Map;let ya="sans-serif";const va={fontFamily:"sans-serif",fontWeight:400,fontStyle:"normal",unitsPerEm:2048,metrics:{ascender:2189,descender:-555,lineGap:0},glyphs:{'"':727,"%":1821,"'":391,"(":682,")":682,"*":797,"+":1196,"-":682,"<":1196,"=":1196,">":1196,"@":2079,C:1479,D:1479,F:1251,G:1593,H:1479,J:1024,M:1706,N:1479,O:1593,Q:1593,R:1479,T:1251,U:1479,W:1933,Z:1251,"^":961,_:1024,"`":682,c:1024,i:455,j:455,k:1024,l:455,m:1706,r:682,s:1024,v:1024,w:1479,x:1024,y:1024,z:1024,"{":684,"|":532,"}":684,"~":1196},glyphsByWidth:{569:" !,./:;I[\\]ft",1139:"#$0123456789?Labdeghnopqu",1366:"&ABEKPSVXY"},defaultWidth:1139};function xa(t){if(void 0===t||"normal"===t)return"400";if("bold"===t)return"700";if("string"==typeof t){return{thin:"100",hairline:"100","extra-light":"200","ultra-light":"200",light:"300",regular:"400",normal:"400",medium:"500","semi-bold":"600",semibold:"600","demi-bold":"600",demibold:"600","extra-bold":"800",extrabold:"800","ultra-bold":"800",ultrabold:"800",black:"900",heavy:"900","extra-black":"950",extrablack:"950","ultra-black":"950",ultrablack:"950",bolder:"900",lighter:"300"}[t.toLowerCase()]||t}return String(t)}function ba(t){return t||"normal"}function wa(t){const e=t.fontFamily,n=xa(t.fontWeight),i=ba(t.fontStyle);if(t.aliases)for(const n of t.aliases)ma.has(n)||ma.set(n,e);if(t.glyphsByWidth){const e={...t.glyphs||{}};for(const[n,i]of Object.entries(t.glyphsByWidth))if("string"==typeof i){const t=Number(n);for(const n of i)e[n]=t}else e[n]=i;t={...t,glyphs:e,glyphsByWidth:void 0}}ga.has(e)||ga.set(e,new Map);const r=ga.get(e);r.has(n)||r.set(n,new Map);r.get(n).set(i,t)}function Ma(t,e,n){const i=function(t){return t?ga.has(t)?t:ma.get(t)||t:t}(t||ya),r=xa(e),o=ba(n),s=ga.get(i);if(!s)return console.warn(`Font family "${i}" not registered, using fallback font data`),va;let a=s.get(r);if(a){let t=a.get(o);if(t)return t;if("normal"!==o&&(t=a.get("normal"),t))return t;const e=a.values().next().value;if(e)return e}if(a=s.get("400"),a){let t=a.get(o);if(t)return t;if("normal"!==o&&(t=a.get("normal"),t))return t;const e=a.values().next().value;if(e)return e}const l=s.values().next().value;if(l){const t=l.values().next().value;if(t)return t}throw new Error(`No font data found for family "${i}" with weight "${r}" and style "${o}"`)}function ka(t){if(void 0===t)return 14;if("number"==typeof t)return t;const e=parseFloat(t);return isNaN(e)?16:e}function Ca(t,e={}){const n=function(t,e){if(!e||"none"===e)return t;switch(e){case"uppercase":return t.toUpperCase();case"lowercase":return t.toLowerCase();case"capitalize":return t.split(" ").map(t=>0===t.length?t:t[0].toUpperCase()+t.slice(1).toLowerCase()).join(" ");default:return t}}(t,e.textTransform),i=Ma(e.fontFamily,e.fontWeight,e.fontStyle),r=ka(e.fontSize),o=e.letterSpacing||0,s=e.wordSpacing||0;let a=0;const l=Array.from(n);for(let t=0;t<l.length;t++){const e=l[t],n=t<l.length-1?l[t+1]:void 0;let c=i.glyphs?.[e];void 0===c&&(c=i.defaultWidth||i.unitsPerEm/2);if(a+=c/i.unitsPerEm*r,n&&i.kerning){const t=i.kerning[e+n];void 0!==t&&(a+=t/i.unitsPerEm*r)}t<l.length-1&&(a+=o)," "===e&&(a+=s)}const c=function(t,e){const n=ka(t.fontSize),i=t.lineHeight;if(void 0===i){const{ascender:t,descender:i,lineGap:r=0}=e.metrics;return(t-i+r)/e.unitsPerEm*n}return"number"==typeof i?i*n:"pixel"===i.type?i.value:"percent"===i.type?i.value/100*n:n}(e,i),{ascender:h}=i.metrics;return{width:a,height:c,baseline:h/i.unitsPerEm*r}}var Oa=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};const ja=new WeakMap;function Ea(t){const e=ja.get(t);return e?Array.from(e.values()):[]}function _a(t,e){var n;return null===(n=ja.get(t))||void 0===n?void 0:n.get(e)}function Sa(t,e,n){let i=ja.get(t);return i||(i=new Map,ja.set(t,i)),i.set(e,n),n.finally(()=>{const i=ja.get(t);i&&(i.get(e)===n&&i.delete(e),0===i.size&&ja.delete(t))}),n}const $a=new Map;let Aa="Alibaba PuHuiTi";function za(t){const e=ca(t);for(const t of e){const e=$a.get(ua(t));if(e)return e}return null}function Pa(){return Array.from($a.values())}function La(t){Aa=da(t)}function Ia(t){const e=ca(t).flatMap(t=>{const e=za(t);if(!e)return[];const{baseUrl:n,fontWeight:i}=e;return Object.values(i).filter(t=>!!t).map(t=>Kh(n,t))});return Array.from(new Set(e))}const Ta=new WeakMap,Ra=new WeakMap;function Ba(t,e,n){let i=Ra.get(t);return i||(i=new Map,Ra.set(t,i)),i.set(e,n),n.finally(()=>{const i=Ra.get(t);i&&(i.get(e)===n&&i.delete(e),0===i.size&&Ra.delete(t))}),n}function Wa(t,e){const n=t.ownerDocument,i=(null==n?void 0:n.head)||document.head;if(!i)return;Ta.has(i)||Ta.set(i,new Map);const r=Ta.get(i),o=Ia(e);if(!o.length)return;const s=[];o.forEach(o=>{const a=`${e}-${o}`,l=`font:${a}`;if(_a(t,l))return;let c=r.get(a);c||(c=n.createElement("link"),c.id=a,c.rel="stylesheet",c.href=o,s.push(c),r.set(a,c));const h=function(t,e,n){var i;const r=null===(i=Ra.get(t))||void 0===i?void 0:i.get(e);return r||(!n||function(t){if("true"===t.getAttribute("data-infographic-font-loaded"))return!0;try{return!!t.sheet}catch(t){return!1}}(n)?Ba(t,e,Promise.resolve()):Ba(t,e,new Promise(t=>{const e=()=>{n.setAttribute("data-infographic-font-loaded","true"),t()};n.addEventListener("load",e,{once:!0}),n.addEventListener("error",e,{once:!0})})))}(i,a,c);Sa(t,l,h)}),s.length&&"HEAD"===i.tagName&&s.forEach(t=>i.appendChild(t))}const Ha="https://assets.antv.antgroup.com",Na=t=>`${t}/result.css`;[{fontFamily:"Alibaba PuHuiTi",name:"阿里巴巴普惠体",baseUrl:Ha,fontWeight:{regular:Na("AlibabaPuHuiTi-Regular"),bold:Na("AlibabaPuHuiTi-Bold")}},{fontFamily:"Source Han Sans",name:"黑体",baseUrl:Ha,fontWeight:{regular:Na("SourceHanSansCN-Regular")}},{fontFamily:"Source Han Serif",name:"宋体",baseUrl:Ha,fontWeight:{regular:Na("SourceHanSerifCN-Regular")}},{fontFamily:"LXGW WenKai",name:"楷体",baseUrl:Ha,fontWeight:{regular:Na("LXGWWenKai-Regular")}},{fontFamily:"851tegakizatsu",name:"手写体",baseUrl:Ha,fontWeight:{regular:Na("851tegakizatsu-Regular")}}].forEach(function(t){const e=Object.assign({},t);return $a.set(e.fontFamily,e),e.fontFamily=da(e.fontFamily),e});const Fa=new Map;function Da(t,e){Fa.set(t,e)}Da("antv",["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#70CAF8"]);Da("spectral",(t,e,n)=>{const i=Math.min(Math.max(n,3),11);return[["#fc8d59","#ffffbf","#99d594"],["#d7191c","#fdae61","#abdda4","#2b83ba"],["#d7191c","#fdae61","#ffffbf","#abdda4","#2b83ba"],["#d53e4f","#fc8d59","#fee08b","#e6f598","#99d594","#3288bd"],["#d53e4f","#fc8d59","#fee08b","#ffffbf","#e6f598","#99d594","#3288bd"],["#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd"],["#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd"],["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]][i-3][e%i]});const Va=(t=[],e,n)=>{var i;const r="string"==typeof t?function(t){return Fa.get(t)}(t)||[]:t,o=null!==(i=e[0])&&void 0!==i?i:0;if("function"==typeof r){return r(n?o/n:0,o,null!=n?n:0)}if(Array.isArray(r)){if(0===r.length)return;return r[o%r.length]}};function Ua(t,e){const n=Object.entries(e).reduce((e,[n,i])=>{if("function"==typeof i){const r=i(t.getAttribute(n),t);null!=r&&(e[n]=r)}else Object.assign(e,{[n]:i});return e},{});return n}const Ya="btn-add-icon",qa="btn-remove-icon";function Ga(t,e){Jc(e,{display:"none"});const n=e.querySelectorAll('[id^="btn-add-"]'),i=e.querySelectorAll('[id^="btn-remove-"]');!function(t){const e=Zc("defs");zh(e,Xa);const n=Qc('<symbol class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200">\n <path\n d="M512 1024C229.216 1024 0 794.784 0 512S229.216 0 512 0s512 229.216 512 512-229.216 512-512 512z m0-960C264.576 64 64 264.576 64 512s200.576 448 448 448 448-200.576 448-448S759.424 64 512 64z m192 480h-160v160a32 32 0 0 1-64 0v-160h-160a32 32 0 0 1 0-64h160v-160a32 32 0 0 1 64 0v160h160a32 32 0 0 1 0 64z"\n fill="#339900"></path>\n</symbol>');n&&(n.setAttribute("id",Ya),e.appendChild(n));const i=Qc('<symbol viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200">\n <path d="M874.971429 149.942857C776.228571 54.857143 648.228571 0 512.914286 0S245.942857 54.857143 150.857143 149.942857c-201.142857 201.142857-201.142857 522.971429 0 724.114286C245.942857 969.142857 377.6 1024 512.914286 1024s266.971429-54.857143 362.057143-149.942857c201.142857-201.142857 201.142857-522.971429 0-724.114286m-51.2 672.914286C739.657143 906.971429 629.942857 950.857143 512.914286 950.857143s-226.742857-43.885714-310.857143-128c-171.885714-171.885714-171.885714-449.828571 0-621.714286C286.171429 117.028571 395.885714 73.142857 512.914286 73.142857s226.742857 43.885714 310.857143 128c171.885714 171.885714 171.885714 449.828571 0 621.714286" fill="#E63C33"></path>\n <path d="M772.571429 475.428571H253.257143c-21.942857 0-36.571429 14.628571-36.571429 36.571429 0 10.971429 3.657143 18.285714 10.971429 25.6s14.628571 10.971429 25.6 10.971429H768.914286c21.942857 0 36.571429-14.628571 36.571428-36.571429s-14.628571-36.571429-32.914285-36.571429" fill="#E63C33"></path>\n</symbol>');i&&(i.setAttribute("id",qa),e.appendChild(i));t.prepend(e)}(t),n.forEach(Za),i.forEach(Qa)}const Xa="btn-icon-defs";function Ka(t,e){const{id:n,x:i=0,y:r=0,width:o=0,height:s=0}=th(t,["id","x","y","width","height"]),a=Zc("g",{id:n,class:"btn-group",transform:`translate(${i}, ${r})`}),l=t.getAttribute("data-items");l&&a.setAttribute("data-items",l);const c=Math.max(+o,+s)/2,h=Zc("circle",{cx:c,cy:c,r:c,fill:"#fff",stroke:"transparent"});a.appendChild(h);const u=Zc("use",{href:`#${e}`,width:o,height:s});a.appendChild(u),a.style.cursor="pointer",t.replaceWith(a)}function Za(t){Ka(t,Ya)}function Qa(t){Ka(t,qa)}var Ja=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};function tl(t){return Ja(this,void 0,void 0,function*(){var e;if(!t||!t.startsWith("data:"))return null;const n=null===(e=t.match(/^data:([^;]+)/))||void 0===e?void 0:e[1];if(!n)return null;const{width:i,height:r,hasAlpha:o}=yield new Promise((e,i)=>{const r=new Image;r.onload=()=>{const t=r.naturalWidth,i=r.naturalHeight,o=document.createElement("canvas"),s=o.getContext("2d");if(!s)return e({width:t,height:i,hasAlpha:!1});if(["image/jpeg","image/jpg","image/webp","image/gif"].includes(n))return e({width:t,height:i,hasAlpha:!1});o.width=t,o.height=i,s.drawImage(r,0,0);let a=!1;for(let e=0;e<t&&!a;e+=10)for(let t=0;t<i;t+=10)if(s.getImageData(e,t,1,1).data[3]<255){a=!0;break}e({width:t,height:i,hasAlpha:a})},r.onerror=()=>i(new Error("Failed to analysis image")),r.src=t}),s=(()=>{if(o)return"xMidYMid meet";if((null==n?void 0:n.includes("image/gif"))||(null==n?void 0:n.includes("image/svg")))return"xMidYMid meet";if(Math.min(i,r)<=200)return"xMidYMid meet";const t=i/r;return t>=.6&&t<=1.67||t<.3||t>3.33?"xMidYMid meet":"xMidYMid slice"})();return Qc(`\n<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${i} ${r}" preserveAspectRatio="${s}">\n <image href="${t}" width="${i}" height="${r}" />\n</symbol>`)})}function el(t){if(!t||!function(t){const e=t.trim();return/^(?:<\?xml[^>]*>\s*)?<svg[\s>]/i.test(e)||e.startsWith("<symbol")}(t))return null;return Qc(t.replace(/<svg(?=[\s/>])/i,"<symbol").replace(/<\/svg>/i,"</symbol>"))}var nl=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};function il(t,e){return nl(this,void 0,void 0,function*(){if(!t||!function(t){try{return Boolean(new URL(t))}catch(t){return!1}}(t))return null;const n=yield Fh(t);if(!n.ok)throw new Error("Failed to load resource");if(function(t,e){return!!t.toLowerCase().includes("image/svg")||!t&&"svg"===e}(n.headers.get("Content-Type")||"",e)){return el(yield n.text())}const i=yield n.blob(),r=yield function(t){return new Promise((e,n)=>{const i=new FileReader;i.onloadend=()=>{e(i.result)},i.onerror=n,i.readAsDataURL(t)})}(i);return tl(r)})}var rl=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};function ol(t,e){return rl(this,void 0,void 0,function*(){var n;if(!t)return null;const i=yield(t=>rl(void 0,void 0,void 0,function*(){try{const e=`https://www.weavefox.cn/api/v1/infographic/icon?${new URLSearchParams({text:t,topK:"1"}).toString()}`,n=yield Fh(e);if(!n.ok)return null;const i=yield n.json();return(null==i?void 0:i.success)&&Array.isArray(i.data)&&i.data[0]||null}catch(e){return console.error(`Failed to query icon for "${t}":`,e),null}}))(t);if(!i)return null;if(function(t){const e=t.trim();return e.startsWith("<svg")||e.startsWith("<symbol")}(i))return el(i);if(i.startsWith("data:")){const t=(null===(n=i.match(/^data:([^;]+)/))||void 0===n?void 0:n[1])||"",e=i.includes(";base64,");if("image/svg+xml"===t&&!e){const t=i.indexOf(",");return el(t>=0?i.slice(t+1):i)}return tl(i)}return il(i,e)})}let sl=null;const al=new Set(["svg","png","jpg","jpeg","webp","gif"]);function ll(t){const e=t.toLowerCase();return e.endsWith(".svg")||e.includes(".svg?")?"svg":e.endsWith(".png")||e.endsWith(".jpg")||e.endsWith(".jpeg")||e.endsWith(".webp")||e.endsWith(".gif")?"image":void 0}function cl(t){if(!t)return null;if("string"!=typeof t){if(t.source)return t;return"image"===t.type?{source:"inline",format:"image",data:t.data}:"svg"===t.type?{source:"inline",format:"svg",encoding:"raw",data:t.data}:"remote"===t.type?{source:"remote",format:t.format,data:t.data}:"search"===t.type?{source:"search",format:t.format||"svg",data:t.data}:"custom"===t.type?{source:"custom",data:t.data}:null}const e=function(t){if(!t.startsWith("data:"))return null;const e=t.indexOf(",");if(-1===e)return null;const n=t.slice(5,e),i=t.slice(e+1),r=n.split(";"),o=r[0],s=r.includes("base64");if("image/svg+xml"===o&&!s)return{source:"inline",format:"svg",encoding:"raw",data:i.startsWith("%3C")?decodeURIComponent(i):i};if(o.startsWith("image/"))return{source:"inline",format:"image/svg+xml"===o?"svg":"image",encoding:s?"base64":"data-uri",data:t};return null}(t);if(e)return e;const n=function(t){var e;if(!t.startsWith("ref:"))return null;const n=t.slice(4),[i,...r]=n.split(":");if(!i||0===r.length)return null;let o;r.length>1&&al.has(r[0].toLowerCase())&&(o=null===(e=r.shift())||void 0===e?void 0:e.toLowerCase());const s=r.join(":");if(!s)return null;const a="url"===i?"remote":i;return"remote"===a?{source:"remote",format:o||ll(s)||void 0,data:s}:"search"===a?{source:"search",format:o||"svg",data:s}:"svg"===a?{source:"inline",format:"svg",data:s,encoding:"raw"}:{source:"custom",data:t,format:o}}(t);return n||(function(t){const e=t.trim();return e.startsWith("<svg")||e.startsWith("<symbol")}(t)?{source:"inline",format:"svg",encoding:"raw",data:t}:{source:"custom",data:t})}function hl(t){const e="string"==typeof t?cl(t):t;return e?"rsc-"+Dh(JSON.stringify(e)):null}function ul(t){const e=hl(t);return e?`#${e}`:null}var dl=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};function fl(t,e,n){return dl(this,void 0,void 0,function*(){const i=cl(e);if(!i)return null;i.scene||(i.scene=t);const{source:r,data:o,format:s,encoding:a}=i;let l=null;try{if("inline"===r){const t=o.startsWith("data:");l="svg"===s&&"raw"===a?el(o):"svg"===s&&t||t||"image"===s?yield tl(o):el(o)}else if("remote"===r)l=yield il(o,s);else if("search"===r)l=yield ol(o,s);else{const t=sl;t&&(l=yield t(i))}}catch(t){l=null}return l||(yield ol(function(t,e,n){const i="illus"===e?"illustration":"icon",r=yl(t.data)||yl(null==n?void 0:n.label)||yl(null==n?void 0:n.desc);if(r)return r;const o=yl(t.data);return o?"inline"===t.source||o.startsWith("data:")||o.startsWith("<svg")||o.startsWith("<symbol")?i:o:i}(i,t,n),s))})}const pl=new Map,gl=new WeakMap;function ml(t,e,n,i){return dl(this,void 0,void 0,function*(){if(!t)return null;const r=cl(n);if(!r)return null;const o=hl(r),s=`resource:${o}`,a=gl.get(t);if(null==a?void 0:a.has(o))return o;const l=_a(t,s);if(l)return yield l;const c=(()=>dl(this,void 0,void 0,function*(){const n=pl.has(o)?pl.get(o)||null:yield fl(e,r,i);if(!n)return null;gl.has(t)||gl.set(t,new Map);const s=gl.get(t);if(s.has(o))return o;const a=nh(t);return n.id=o,a.appendChild(n),s.set(o,n),o}))();return Sa(t,s,c),yield c})}function yl(t){if("string"!=typeof t)return null;const e=t.trim();return e||null}function vl(t,e,n,i){var r,o;const s=n.icon;if(!s)return null;const{themeConfig:a}=i,l=null===(r=n.attributes)||void 0===r?void 0:r.icon;return function(t,e,n,i,r){return ml(t,"icon",n,r),function(t,e={}){const n=Zc("use",Object.assign(Object.assign({},e),{href:ul(t)}));return Uh(n),Vh.set(n,t),n}(n,Object.assign(Object.assign({},th(e,["id","x","y","width","height","fill","stroke","data-element-type","data-indexes"])),i))}(t,e,s,Ua(e,Object.assign(Object.assign({},null===(o=a.item)||void 0===o?void 0:o.icon),l)),n)}var xl=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function bl(t,e,n,i,r={}){if(!n)return null;const o=cl(n);if(!o)return null;const s=hl(o);r&&Object.keys(r).length>0&&Jc(e,r);const a=function(t,e,n){const i=`clip-${n}-${function(){if(crypto&&crypto.randomUUID)return crypto.randomUUID();return"xxxx-xxxx-4xxx-yxxx".replace(/[xy]/g,function(t){const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}()}`;if(t.querySelector(`#${i}`))return i;const r=nh(t),o=Zc("clipPath",{id:i}),s=e.cloneNode();return function(t,e){e.forEach(e=>{t.removeAttribute(e)})}(s,["id","data-illus-bounds","data-element-type"]),o.appendChild(s),r.appendChild(o),i}(t,e,s);ml(t,"illus",o,i);const{data:l,color:c}=o;return function(t,e,n){const{"clip-path":i}=e,r=xl(e,["clip-path"]),{x:o="0",y:s="0",width:a="0",height:l="0"}=r,c=Zc("rect",{id:`${t}-volume`,"data-element-type":"illus-volume",x:o,y:s,width:a,height:l,fill:"transparent"}),h=Zc("g",{"data-element-type":"illus-group","clip-path":i,id:`${t}-group`});h.appendChild(c);const u=Zc("use",Object.assign(Object.assign({id:t,fill:"lightgray"},r),{href:ul(n),"data-element-type":"illus"}));return h.appendChild(u),h}(s,Object.assign(Object.assign(Object.assign(Object.assign({},function(t){const e=t.getAttribute("data-illus-bounds");if(!e)return Object.assign({x:"0",y:"0",width:"0",height:"0"},th(t,["x","y","width","height"]));const[n,i,r,o]=e.split(" ");return{x:n,y:i,width:r,height:o}}(e)),c?{color:c}:{}),r),{"clip-path":`url(#${a})`}),l)}var wl=n("./node_modules/.pnpm/tinycolor2@1.6.0/node_modules/tinycolor2/esm/tinycolor.js");function Ml(t){return t.replace(/#|%|\.| |\/|\(|\)/g,"").replace(/,/g,"-")}function kl(t,e,n,i){const r=function(t,e){var n;if((null===(n=e.colors)||void 0===n?void 0:n.length)||!t)return e;const i=(0,wl.A)(t),r=Object.assign({},e);r.colors=i.isDark()?[t,i.lighten(20).toHexString()]:[i.darken(20).toHexString(),t],"angle"in e||"linear-gradient"!==r.type||(r.angle=225);return r}(t.getAttribute(i),n),{type:o,colors:s=[]}=r,a=s.length-1,l=s.map((t,e)=>Zc("stop","string"==typeof t?{offset:""+e/a,"stop-color":t}:{offset:`${t.offset}`,"stop-color":t.color})),c=function(t){const{type:e,colors:n=[]}=t,i=Ml(n.map(t=>"string"==typeof t?t:`${t.color}_${t.offset}`).join("-"));if("linear-gradient"===e){const{angle:n=0}=t;return`${e}-${i}-${n}`}return`${e}-${i}`}(r);if("linear-gradient"===o){const{angle:t=0}=r,[[n,i],[o,s]]=function(t){const e=Math.PI/180*t,n=Math.cos(e),i=Math.sin(e);return[[.5-n/2,.5-i/2],[.5+n/2,.5+i/2]]}(t),a=Zc("linearGradient",{id:c,x1:n,y1:i,x2:o,y2:s});l.forEach(t=>a.appendChild(t)),Cl(e,c,a)}else if("radial-gradient"===o){const t=Zc("radialGradient",{id:c});l.forEach(e=>t.appendChild(e)),Cl(e,c,t)}const h=t.getAttribute("fill"),u=t.getAttribute("stroke");Ar(h)&&t.setAttribute("fill",`url(#${c})`),Ar(u)&&t.setAttribute("stroke",`url(#${c})`)}function Cl(t,e,n){const i=nh(t);n.setAttribute("id",e);const r=i.querySelector(`#${e}`);r?r.replaceWith(n):i.appendChild(n)}const Ol=({scale:t=.5,backgroundColor:e,foregroundColor:n})=>{const i=Zc("pattern",{id:"pattern-diamond",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),r=Zc("rect",{width:"100%",height:"100%",fill:e}),o=Zc("path",{d:"M0,0 L20,20 M20,0 L0,20",stroke:n,"stroke-width":"1"});return i.appendChild(r),i.appendChild(o),i},jl=({scale:t=1,backgroundColor:e,foregroundColor:n})=>{const i=Zc("pattern",{id:"pattern-dot",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),r=Zc("rect",{width:"100%",height:"100%",fill:e}),o=Zc("circle",{cx:"5",cy:"5",r:"3",fill:n}),s=Zc("circle",{cx:"15",cy:"15",r:"3",fill:n});return i.appendChild(r),i.appendChild(o),i.appendChild(s),i},El=({scale:t=.3,backgroundColor:e,foregroundColor:n})=>{const i=Zc("pattern",{id:"pattern-hex",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),r=Zc("rect",{width:"100%",height:"100%",fill:e}),o=Zc("path",{d:"M10,0 L20,5 L20,15 L10,20 L0,15 L0,5 Z",fill:n});return i.appendChild(r),i.appendChild(o),i},_l=({scale:t=1,backgroundColor:e,foregroundColor:n})=>{const i=Zc("pattern",{id:"pattern-line",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),r=Zc("rect",{width:"100%",height:"100%",fill:e}),o=Zc("line",{x1:"7",y1:"-3",x2:"23",y2:"13",stroke:n,"stroke-width":6,"stroke-opacity":"0.5"}),s=Zc("line",{x1:"-3",y1:"7",x2:"13",y2:"23",stroke:n,"stroke-width":6,"stroke-opacity":"0.5"});return i.appendChild(r),i.appendChild(o),i.appendChild(s),i},Sl=({scale:t=1,backgroundColor:e="#ffffff",foregroundColor:n="#000000"})=>{const i=Zc("pattern",{id:"pattern-mosaic",width:20,height:20,patternUnits:"userSpaceOnUse",patternTransform:`scale(${t})`}),r=Zc("rect",{width:"100%",height:"100%",fill:e});i.appendChild(r);for(let t=0;t<4;t++)for(let e=0;e<4;e++)if((e+t)%2==0){const r=Zc("rect",{x:5*e,y:5*t,width:5,height:5,fill:n});i.appendChild(r)}return i},$l=({scale:t=.3,backgroundColor:e,foregroundColor:n})=>{const i=Zc("pattern",{id:"pattern-square",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),r=Zc("rect",{width:"100%",height:"100%",fill:e}),o=Zc("path",{d:"M0,0 L20,0 L20,20 L0,20 Z",fill:n});return i.appendChild(r),i.appendChild(o),i};var Al=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const zl=new Map;function Pl(t,e){zl.has(t)&&console.warn(`Pattern ${t} will be overwritten`),zl.set(t,e)}for(const[t,e]of Object.entries(i))Pl(t,e);function Ll(t,e,n){const i=n.themeConfig.stylize;if(!i||"pattern"!==i.type)return;const{pattern:r}=i,o=Al(i,["pattern"]),s=zl.get(r);if(!s)return console.warn(`Pattern ${r} not found`);const{fill:a}=th(t,["fill","stroke"]),l=a,c=Object.assign({backgroundColor:l?(0,wl.A)(l).setAlpha(.5).toRgbString():l,foregroundColor:l},o),h=function(t){const{pattern:e,foregroundColor:n="unset",backgroundColor:i="unset",scale:r="unset"}=t;return Ml(`pattern-${e}-${n}-${i}-${r}`)}(Object.assign(Object.assign({},i),c));!function(t,e,n){const i=nh(t);n.setAttribute("id",e);const r=i.querySelector(`pattern#${e}`);r?r.replaceWith(n):i.appendChild(n)}(e,h,s(c)),Ar(a)&&(t.setAttribute("fill",`url(#${h})`),!t.getAttribute("stroke")&&a&&t.setAttribute("stroke",a))}function Il(t,e,n){if(t&&t.length){const[i,r]=e,o=Math.PI/180*n,s=Math.cos(o),a=Math.sin(o);for(const e of t){const[t,n]=e;e[0]=(t-i)*s-(n-r)*a+i,e[1]=(t-i)*a+(n-r)*s+r}}}function Tl(t,e){return t[0]===e[0]&&t[1]===e[1]}function Rl(t,e,n,i=1){const r=n,o=Math.max(e,.1),s=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,a=[0,0];if(r)for(const t of s)Il(t,a,r);const l=function(t,e,n){const i=[];for(const e of t){const t=[...e];Tl(t[0],t[t.length-1])||t.push([t[0][0],t[0][1]]),t.length>2&&i.push(t)}const r=[];e=Math.max(e,.1);const o=[];for(const t of i)for(let e=0;e<t.length-1;e++){const n=t[e],i=t[e+1];if(n[1]!==i[1]){const t=Math.min(n[1],i[1]);o.push({ymin:t,ymax:Math.max(n[1],i[1]),x:t===n[1]?n[0]:i[0],islope:(i[0]-n[0])/(i[1]-n[1])})}}if(o.sort((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax)),!o.length)return r;let s=[],a=o[0].ymin,l=0;for(;s.length||o.length;){if(o.length){let t=-1;for(let e=0;e<o.length&&!(o[e].ymin>a);e++)t=e;o.splice(0,t+1).forEach(t=>{s.push({s:a,edge:t})})}if(s=s.filter(t=>!(t.edge.ymax<=a)),s.sort((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x)),(1!==n||l%e==0)&&s.length>1)for(let t=0;t<s.length;t+=2){const e=t+1;if(e>=s.length)break;const n=s[e].edge;r.push([[Math.round(s[t].edge.x),a],[Math.round(n.x),a]])}a+=n,s.forEach(t=>{t.edge.x=t.edge.x+n*t.edge.islope}),l++}return r}(s,o,i);if(r){for(const t of s)Il(t,a,-r);!function(t,e,n){const i=[];t.forEach(t=>i.push(...t)),Il(i,e,n)}(l,a,-r)}return l}function Bl(t,e){var n;const i=e.hachureAngle+90;let r=e.hachureGap;r<0&&(r=4*e.strokeWidth),r=Math.round(Math.max(r,.1));let o=1;return e.roughness>=1&&((null===(n=e.randomizer)||void 0===n?void 0:n.next())||Math.random())>.7&&(o=r),Rl(t,r,i,o||1)}class Wl{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){const n=Bl(t,e);return{type:"fillSketch",ops:this.renderLines(n,e)}}renderLines(t,e){const n=[];for(const i of t)n.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],e));return n}}function Hl(t){const e=t[0],n=t[1];return Math.sqrt(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))}class Nl extends Wl{fillPolygons(t,e){let n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.max(n,.1);const i=Bl(t,Object.assign({},e,{hachureGap:n})),r=Math.PI/180*e.hachureAngle,o=[],s=.5*n*Math.cos(r),a=.5*n*Math.sin(r);for(const[t,e]of i)Hl([t,e])&&o.push([[t[0]-s,t[1]+a],[...e]],[[t[0]+s,t[1]-a],[...e]]);return{type:"fillSketch",ops:this.renderLines(o,e)}}}class Fl extends Wl{fillPolygons(t,e){const n=this._fillPolygons(t,e),i=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),r=this._fillPolygons(t,i);return n.ops=n.ops.concat(r.ops),n}}class Dl{constructor(t){this.helper=t}fillPolygons(t,e){const n=Bl(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(n,e)}dotsOnLines(t,e){const n=[];let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.max(i,.1);let r=e.fillWeight;r<0&&(r=e.strokeWidth/2);const o=i/4;for(const s of t){const t=Hl(s),a=Math.ceil(t/i)-1,l=t-a*i,c=(s[0][0]+s[1][0])/2-i/4,h=Math.min(s[0][1],s[1][1]);for(let t=0;t<a;t++){const s=h+l+t*i,a=c-o+2*Math.random()*o,u=s-o+2*Math.random()*o,d=this.helper.ellipse(a,u,r,r,e);n.push(...d.ops)}}return{type:"fillSketch",ops:n}}}class Vl{constructor(t){this.helper=t}fillPolygons(t,e){const n=Bl(t,e);return{type:"fillSketch",ops:this.dashedLine(n,e)}}dashedLine(t,e){const n=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,i=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,r=[];return t.forEach(t=>{const o=Hl(t),s=Math.floor(o/(n+i)),a=(o+i-s*(n+i))/2;let l=t[0],c=t[1];l[0]>c[0]&&(l=t[1],c=t[0]);const h=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let t=0;t<s;t++){const o=t*(n+i),s=o+n,c=[l[0]+o*Math.cos(h)+a*Math.cos(h),l[1]+o*Math.sin(h)+a*Math.sin(h)],u=[l[0]+s*Math.cos(h)+a*Math.cos(h),l[1]+s*Math.sin(h)+a*Math.sin(h)];r.push(...this.helper.doubleLineOps(c[0],c[1],u[0],u[1],e))}}),r}}class Ul{constructor(t){this.helper=t}fillPolygons(t,e){const n=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,i=e.zigzagOffset<0?n:e.zigzagOffset,r=Bl(t,e=Object.assign({},e,{hachureGap:n+i}));return{type:"fillSketch",ops:this.zigzagLines(r,i,e)}}zigzagLines(t,e,n){const i=[];return t.forEach(t=>{const r=Hl(t),o=Math.round(r/(2*e));let s=t[0],a=t[1];s[0]>a[0]&&(s=t[1],a=t[0]);const l=Math.atan((a[1]-s[1])/(a[0]-s[0]));for(let t=0;t<o;t++){const r=2*t*e,o=2*(t+1)*e,a=Math.sqrt(2*Math.pow(e,2)),c=[s[0]+r*Math.cos(l),s[1]+r*Math.sin(l)],h=[s[0]+o*Math.cos(l),s[1]+o*Math.sin(l)],u=[c[0]+a*Math.cos(l+Math.PI/4),c[1]+a*Math.sin(l+Math.PI/4)];i.push(...this.helper.doubleLineOps(c[0],c[1],u[0],u[1],n),...this.helper.doubleLineOps(u[0],u[1],h[0],h[1],n))}}),i}}const Yl={};class ql{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const Gl={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Xl(t,e){return t.type===e}function Kl(t){const e=[],n=function(t){const e=new Array;for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t);let i="BOD",r=0,o=n[r];for(;!Xl(o,2);){let s=0;const a=[];if("BOD"===i){if("M"!==o.text&&"m"!==o.text)return Kl("M0,0"+t);r++,s=Gl[o.text],i=o.text}else Xl(o,1)?s=Gl[i]:(r++,s=Gl[o.text],i=o.text);if(!(r+s<n.length))throw new Error("Path data ended short");for(let t=r;t<r+s;t++){const e=n[t];if(!Xl(e,1))throw new Error("Param not a number: "+i+","+e.text);a[a.length]=+e.text}if("number"!=typeof Gl[i])throw new Error("Bad segment: "+i);e.push({key:i,data:a}),r+=s,o=n[r],"M"===i&&(i="L"),"m"===i&&(i="l")}return e}function Zl(t){let e=0,n=0,i=0,r=0;const o=[];for(const{key:s,data:a}of t)switch(s){case"M":o.push({key:"M",data:[...a]}),[e,n]=a,[i,r]=a;break;case"m":e+=a[0],n+=a[1],o.push({key:"M",data:[e,n]}),i=e,r=n;break;case"L":o.push({key:"L",data:[...a]}),[e,n]=a;break;case"l":e+=a[0],n+=a[1],o.push({key:"L",data:[e,n]});break;case"C":o.push({key:"C",data:[...a]}),e=a[4],n=a[5];break;case"c":{const t=a.map((t,i)=>i%2?t+n:t+e);o.push({key:"C",data:t}),e=t[4],n=t[5];break}case"Q":o.push({key:"Q",data:[...a]}),e=a[2],n=a[3];break;case"q":{const t=a.map((t,i)=>i%2?t+n:t+e);o.push({key:"Q",data:t}),e=t[2],n=t[3];break}case"A":o.push({key:"A",data:[...a]}),e=a[5],n=a[6];break;case"a":e+=a[5],n+=a[6],o.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],e,n]});break;case"H":o.push({key:"H",data:[...a]}),e=a[0];break;case"h":e+=a[0],o.push({key:"H",data:[e]});break;case"V":o.push({key:"V",data:[...a]}),n=a[0];break;case"v":n+=a[0],o.push({key:"V",data:[n]});break;case"S":o.push({key:"S",data:[...a]}),e=a[2],n=a[3];break;case"s":{const t=a.map((t,i)=>i%2?t+n:t+e);o.push({key:"S",data:t}),e=t[2],n=t[3];break}case"T":o.push({key:"T",data:[...a]}),e=a[0],n=a[1];break;case"t":e+=a[0],n+=a[1],o.push({key:"T",data:[e,n]});break;case"Z":case"z":o.push({key:"Z",data:[]}),e=i,n=r}return o}function Ql(t){const e=[];let n="",i=0,r=0,o=0,s=0,a=0,l=0;for(const{key:c,data:h}of t){switch(c){case"M":e.push({key:"M",data:[...h]}),[i,r]=h,[o,s]=h;break;case"C":e.push({key:"C",data:[...h]}),i=h[4],r=h[5],a=h[2],l=h[3];break;case"L":e.push({key:"L",data:[...h]}),[i,r]=h;break;case"H":i=h[0],e.push({key:"L",data:[i,r]});break;case"V":r=h[0],e.push({key:"L",data:[i,r]});break;case"S":{let t=0,o=0;"C"===n||"S"===n?(t=i+(i-a),o=r+(r-l)):(t=i,o=r),e.push({key:"C",data:[t,o,...h]}),a=h[0],l=h[1],i=h[2],r=h[3];break}case"T":{const[t,o]=h;let s=0,c=0;"Q"===n||"T"===n?(s=i+(i-a),c=r+(r-l)):(s=i,c=r);e.push({key:"C",data:[i+2*(s-i)/3,r+2*(c-r)/3,t+2*(s-t)/3,o+2*(c-o)/3,t,o]}),a=s,l=c,i=t,r=o;break}case"Q":{const[t,n,o,s]=h;e.push({key:"C",data:[i+2*(t-i)/3,r+2*(n-r)/3,o+2*(t-o)/3,s+2*(n-s)/3,o,s]}),a=t,l=n,i=o,r=s;break}case"A":{const t=Math.abs(h[0]),n=Math.abs(h[1]),o=h[2],s=h[3],a=h[4],l=h[5],c=h[6];0===t||0===n?(e.push({key:"C",data:[i,r,l,c,l,c]}),i=l,r=c):i===l&&r===c||(tc(i,r,l,c,t,n,o,s,a).forEach(function(t){e.push({key:"C",data:t})}),i=l,r=c);break}case"Z":e.push({key:"Z",data:[]}),i=o,r=s}n=c}return e}function Jl(t,e,n){return[t*Math.cos(n)-e*Math.sin(n),t*Math.sin(n)+e*Math.cos(n)]}function tc(t,e,n,i,r,o,s,a,l,c){const h=Math.PI*s/180;let u=[],d=0,f=0,p=0,g=0;if(c)[d,f,p,g]=c;else{[t,e]=Jl(t,e,-h),[n,i]=Jl(n,i,-h);const s=(t-n)/2,c=(e-i)/2;let u=s*s/(r*r)+c*c/(o*o);u>1&&(u=Math.sqrt(u),r*=u,o*=u);const m=r*r,y=o*o,v=(a===l?-1:1)*Math.sqrt(Math.abs((m*y-m*c*c-y*s*s)/(m*c*c+y*s*s)));p=v*r*c/o+(t+n)/2,g=v*-o*s/r+(e+i)/2,d=Math.asin(parseFloat(((e-g)/o).toFixed(9))),f=Math.asin(parseFloat(((i-g)/o).toFixed(9))),t<p&&(d=Math.PI-d),n<p&&(f=Math.PI-f),d<0&&(d=2*Math.PI+d),f<0&&(f=2*Math.PI+f),l&&d>f&&(d-=2*Math.PI),!l&&f>d&&(f-=2*Math.PI)}let m=f-d;if(Math.abs(m)>120*Math.PI/180){const t=f,e=n,a=i;f=l&&f>d?d+120*Math.PI/180*1:d+120*Math.PI/180*-1,u=tc(n=p+r*Math.cos(f),i=g+o*Math.sin(f),e,a,r,o,s,0,l,[f,t,p,g])}m=f-d;const y=Math.cos(d),v=Math.sin(d),x=Math.cos(f),b=Math.sin(f),w=Math.tan(m/4),M=4/3*r*w,k=4/3*o*w,C=[t,e],O=[t+M*v,e-k*y],j=[n+M*b,i-k*x],E=[n,i];if(O[0]=2*C[0]-O[0],O[1]=2*C[1]-O[1],c)return[O,j,E].concat(u);{u=[O,j,E].concat(u);const t=[];for(let e=0;e<u.length;e+=3){const n=Jl(u[e][0],u[e][1],h),i=Jl(u[e+1][0],u[e+1][1],h),r=Jl(u[e+2][0],u[e+2][1],h);t.push([n[0],n[1],i[0],i[1],r[0],r[1]])}return t}}const ec={randOffset:function(t,e){return pc(t,e)},randOffsetWithRange:function(t,e,n){return fc(t,e,n)},ellipse:function(t,e,n,i,r){return sc(t,e,r,oc(n,i,r)).opset},doubleLineOps:function(t,e,n,i,r){return gc(t,e,n,i,r,!0)}};function nc(t,e,n,i,r){return{type:"path",ops:gc(t,e,n,i,r)}}function ic(t,e,n){const i=(t||[]).length;if(i>2){const r=[];for(let e=0;e<i-1;e++)r.push(...gc(t[e][0],t[e][1],t[e+1][0],t[e+1][1],n));return e&&r.push(...gc(t[i-1][0],t[i-1][1],t[0][0],t[0][1],n)),{type:"path",ops:r}}return 2===i?nc(t[0][0],t[0][1],t[1][0],t[1][1],n):{type:"path",ops:[]}}function rc(t,e){if(t.length){const n="number"==typeof t[0][0]?[t]:t,i=yc(n[0],1*(1+.2*e.roughness),e),r=e.disableMultiStroke?[]:yc(n[0],1.5*(1+.22*e.roughness),uc(e));for(let t=1;t<n.length;t++){const o=n[t];if(o.length){const t=yc(o,1*(1+.2*e.roughness),e),n=e.disableMultiStroke?[]:yc(o,1.5*(1+.22*e.roughness),uc(e));for(const e of t)"move"!==e.op&&i.push(e);for(const t of n)"move"!==t.op&&r.push(t)}}return{type:"path",ops:i.concat(r)}}return{type:"path",ops:[]}}function oc(t,e,n){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),r=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*i)),o=2*Math.PI/r;let s=Math.abs(t/2),a=Math.abs(e/2);const l=1-n.curveFitting;return s+=pc(s*l,n),a+=pc(a*l,n),{increment:o,rx:s,ry:a}}function sc(t,e,n,i){const[r,o]=xc(i.increment,t,e,i.rx,i.ry,1,i.increment*fc(.1,fc(.4,1,n),n),n);let s=vc(r,null,n);if(!n.disableMultiStroke&&0!==n.roughness){const[r]=xc(i.increment,t,e,i.rx,i.ry,1.5,0,n),o=vc(r,null,n);s=s.concat(o)}return{estimatedPoints:o,opset:{type:"path",ops:s}}}function ac(t,e,n,i,r,o,s,a,l){const c=t,h=e;let u=Math.abs(n/2),d=Math.abs(i/2);u+=pc(.01*u,l),d+=pc(.01*d,l);let f=r,p=o;for(;f<0;)f+=2*Math.PI,p+=2*Math.PI;p-f>2*Math.PI&&(f=0,p=2*Math.PI);const g=2*Math.PI/l.curveStepCount,m=Math.min(g/2,(p-f)/2),y=bc(m,c,h,u,d,f,p,1,l);if(!l.disableMultiStroke){const t=bc(m,c,h,u,d,f,p,1.5,l);y.push(...t)}return s&&(a?y.push(...gc(c,h,c+u*Math.cos(f),h+d*Math.sin(f),l),...gc(c,h,c+u*Math.cos(p),h+d*Math.sin(p),l)):y.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+u*Math.cos(f),h+d*Math.sin(f)]})),{type:"path",ops:y}}function lc(t,e){const n=Ql(Zl(Kl(t))),i=[];let r=[0,0],o=[0,0];for(const{key:t,data:s}of n)switch(t){case"M":o=[s[0],s[1]],r=[s[0],s[1]];break;case"L":i.push(...gc(o[0],o[1],s[0],s[1],e)),o=[s[0],s[1]];break;case"C":{const[t,n,r,a,l,c]=s;i.push(...wc(t,n,r,a,l,c,o,e)),o=[l,c];break}case"Z":i.push(...gc(o[0],o[1],r[0],r[1],e)),o=[r[0],r[1]]}return{type:"path",ops:i}}function cc(t,e){const n=[];for(const i of t)if(i.length){const t=e.maxRandomnessOffset||0,r=i.length;if(r>2){n.push({op:"move",data:[i[0][0]+pc(t,e),i[0][1]+pc(t,e)]});for(let o=1;o<r;o++)n.push({op:"lineTo",data:[i[o][0]+pc(t,e),i[o][1]+pc(t,e)]})}}return{type:"fillPath",ops:n}}function hc(t,e){return function(t,e){let n=t.fillStyle||"hachure";if(!Yl[n])switch(n){case"zigzag":Yl[n]||(Yl[n]=new Nl(e));break;case"cross-hatch":Yl[n]||(Yl[n]=new Fl(e));break;case"dots":Yl[n]||(Yl[n]=new Dl(e));break;case"dashed":Yl[n]||(Yl[n]=new Vl(e));break;case"zigzag-line":Yl[n]||(Yl[n]=new Ul(e));break;default:n="hachure",Yl[n]||(Yl[n]=new Wl(e))}return Yl[n]}(e,ec).fillPolygons(t,e)}function uc(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function dc(t){return t.randomizer||(t.randomizer=new ql(t.seed||0)),t.randomizer.next()}function fc(t,e,n,i=1){return n.roughness*i*(dc(n)*(e-t)+t)}function pc(t,e,n=1){return fc(-t,t,e,n)}function gc(t,e,n,i,r,o=!1){const s=o?r.disableMultiStrokeFill:r.disableMultiStroke,a=mc(t,e,n,i,r,!0,!1);if(s)return a;const l=mc(t,e,n,i,r,!0,!0);return a.concat(l)}function mc(t,e,n,i,r,o,s){const a=Math.pow(t-n,2)+Math.pow(e-i,2),l=Math.sqrt(a);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let h=r.maxRandomnessOffset||0;h*h*100>a&&(h=l/10);const u=h/2,d=.2+.2*dc(r);let f=r.bowing*r.maxRandomnessOffset*(i-e)/200,p=r.bowing*r.maxRandomnessOffset*(t-n)/200;f=pc(f,r,c),p=pc(p,r,c);const g=[],m=()=>pc(u,r,c),y=()=>pc(h,r,c),v=r.preserveVertices;return o&&g.push(s?{op:"move",data:[t+(v?0:m()),e+(v?0:m())]}:{op:"move",data:[t+(v?0:pc(h,r,c)),e+(v?0:pc(h,r,c))]}),g.push(s?{op:"bcurveTo",data:[f+t+(n-t)*d+m(),p+e+(i-e)*d+m(),f+t+2*(n-t)*d+m(),p+e+2*(i-e)*d+m(),n+(v?0:m()),i+(v?0:m())]}:{op:"bcurveTo",data:[f+t+(n-t)*d+y(),p+e+(i-e)*d+y(),f+t+2*(n-t)*d+y(),p+e+2*(i-e)*d+y(),n+(v?0:y()),i+(v?0:y())]}),g}function yc(t,e,n){if(!t.length)return[];const i=[];i.push([t[0][0]+pc(e,n),t[0][1]+pc(e,n)]),i.push([t[0][0]+pc(e,n),t[0][1]+pc(e,n)]);for(let r=1;r<t.length;r++)i.push([t[r][0]+pc(e,n),t[r][1]+pc(e,n)]),r===t.length-1&&i.push([t[r][0]+pc(e,n),t[r][1]+pc(e,n)]);return vc(i,null,n)}function vc(t,e,n){const i=t.length,r=[];if(i>3){const o=[],s=1-n.curveTightness;r.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<i;e++){const n=t[e];o[0]=[n[0],n[1]],o[1]=[n[0]+(s*t[e+1][0]-s*t[e-1][0])/6,n[1]+(s*t[e+1][1]-s*t[e-1][1])/6],o[2]=[t[e+1][0]+(s*t[e][0]-s*t[e+2][0])/6,t[e+1][1]+(s*t[e][1]-s*t[e+2][1])/6],o[3]=[t[e+1][0],t[e+1][1]],r.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}if(e&&2===e.length){const t=n.maxRandomnessOffset;r.push({op:"lineTo",data:[e[0]+pc(t,n),e[1]+pc(t,n)]})}}else 3===i?(r.push({op:"move",data:[t[1][0],t[1][1]]}),r.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===i&&r.push(...mc(t[0][0],t[0][1],t[1][0],t[1][1],n,!0,!0));return r}function xc(t,e,n,i,r,o,s,a){const l=[],c=[];if(0===a.roughness){t/=4,c.push([e+i*Math.cos(-t),n+r*Math.sin(-t)]);for(let o=0;o<=2*Math.PI;o+=t){const t=[e+i*Math.cos(o),n+r*Math.sin(o)];l.push(t),c.push(t)}c.push([e+i*Math.cos(0),n+r*Math.sin(0)]),c.push([e+i*Math.cos(t),n+r*Math.sin(t)])}else{const h=pc(.5,a)-Math.PI/2;c.push([pc(o,a)+e+.9*i*Math.cos(h-t),pc(o,a)+n+.9*r*Math.sin(h-t)]);const u=2*Math.PI+h-.01;for(let s=h;s<u;s+=t){const t=[pc(o,a)+e+i*Math.cos(s),pc(o,a)+n+r*Math.sin(s)];l.push(t),c.push(t)}c.push([pc(o,a)+e+i*Math.cos(h+2*Math.PI+.5*s),pc(o,a)+n+r*Math.sin(h+2*Math.PI+.5*s)]),c.push([pc(o,a)+e+.98*i*Math.cos(h+s),pc(o,a)+n+.98*r*Math.sin(h+s)]),c.push([pc(o,a)+e+.9*i*Math.cos(h+.5*s),pc(o,a)+n+.9*r*Math.sin(h+.5*s)])}return[c,l]}function bc(t,e,n,i,r,o,s,a,l){const c=o+pc(.1,l),h=[];h.push([pc(a,l)+e+.9*i*Math.cos(c-t),pc(a,l)+n+.9*r*Math.sin(c-t)]);for(let o=c;o<=s;o+=t)h.push([pc(a,l)+e+i*Math.cos(o),pc(a,l)+n+r*Math.sin(o)]);return h.push([e+i*Math.cos(s),n+r*Math.sin(s)]),h.push([e+i*Math.cos(s),n+r*Math.sin(s)]),vc(h,null,l)}function wc(t,e,n,i,r,o,s,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let h=[0,0];const u=a.disableMultiStroke?1:2,d=a.preserveVertices;for(let f=0;f<u;f++)l.push(0===f?{op:"move",data:[s[0],s[1]]}:{op:"move",data:[s[0]+(d?0:pc(c[0],a)),s[1]+(d?0:pc(c[0],a))]}),h=d?[r,o]:[r+pc(c[f],a),o+pc(c[f],a)],l.push({op:"bcurveTo",data:[t+pc(c[f],a),e+pc(c[f],a),n+pc(c[f],a),i+pc(c[f],a),h[0],h[1]]});return l}function Mc(t){return[...t]}function kc(t,e=0){const n=t.length;if(n<3)throw new Error("A curve must have at least three points.");const i=[];if(3===n)i.push(Mc(t[0]),Mc(t[1]),Mc(t[2]),Mc(t[2]));else{const n=[];n.push(t[0],t[0]);for(let e=1;e<t.length;e++)n.push(t[e]),e===t.length-1&&n.push(t[e]);const r=[],o=1-e;i.push(Mc(n[0]));for(let t=1;t+2<n.length;t++){const e=n[t];r[0]=[e[0],e[1]],r[1]=[e[0]+(o*n[t+1][0]-o*n[t-1][0])/6,e[1]+(o*n[t+1][1]-o*n[t-1][1])/6],r[2]=[n[t+1][0]+(o*n[t][0]-o*n[t+2][0])/6,n[t+1][1]+(o*n[t][1]-o*n[t+2][1])/6],r[3]=[n[t+1][0],n[t+1][1]],i.push(r[1],r[2],r[3])}}return i}function Cc(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function Oc(t,e,n){const i=Cc(e,n);if(0===i)return Cc(t,e);let r=((t[0]-e[0])*(n[0]-e[0])+(t[1]-e[1])*(n[1]-e[1]))/i;return r=Math.max(0,Math.min(1,r)),Cc(t,jc(e,n,r))}function jc(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function Ec(t,e,n,i){const r=i||[];if(function(t,e){const n=t[e+0],i=t[e+1],r=t[e+2],o=t[e+3];let s=3*i[0]-2*n[0]-o[0];s*=s;let a=3*i[1]-2*n[1]-o[1];a*=a;let l=3*r[0]-2*o[0]-n[0];l*=l;let c=3*r[1]-2*o[1]-n[1];return c*=c,s<l&&(s=l),a<c&&(a=c),s+a}(t,e)<n){const n=t[e+0];r.length?Math.sqrt(Cc(r[r.length-1],n))>1&&r.push(n):r.push(n),r.push(t[e+3])}else{const i=.5,o=t[e+0],s=t[e+1],a=t[e+2],l=t[e+3],c=jc(o,s,i),h=jc(s,a,i),u=jc(a,l,i),d=jc(c,h,i),f=jc(h,u,i),p=jc(d,f,i);Ec([o,c,d,p],0,n,r),Ec([p,f,u,l],0,n,r)}return r}function _c(t,e){return Sc(t,0,t.length,e)}function Sc(t,e,n,i,r){const o=r||[],s=t[e],a=t[n-1];let l=0,c=1;for(let i=e+1;i<n-1;++i){const e=Oc(t[i],s,a);e>l&&(l=e,c=i)}return Math.sqrt(l)>i?(Sc(t,e,c+1,i,o),Sc(t,c,n,i,o)):(o.length||o.push(s),o.push(a)),o}function $c(t,e=.15,n){const i=[],r=(t.length-1)/3;for(let n=0;n<r;n++)Ec(t,3*n,e,i);return n&&n>0?Sc(i,0,i.length,n):i}const Ac="none";class zc{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,n){return{shape:t,sets:e||[],options:n||this.defaultOptions}}line(t,e,n,i,r){const o=this._o(r);return this._d("line",[nc(t,e,n,i,o)],o)}rectangle(t,e,n,i,r){const o=this._o(r),s=[],a=function(t,e,n,i,r){return function(t,e){return ic(t,!0,e)}([[t,e],[t+n,e],[t+n,e+i],[t,e+i]],r)}(t,e,n,i,o);if(o.fill){const r=[[t,e],[t+n,e],[t+n,e+i],[t,e+i]];s.push("solid"===o.fillStyle?cc([r],o):hc([r],o))}return o.stroke!==Ac&&s.push(a),this._d("rectangle",s,o)}ellipse(t,e,n,i,r){const o=this._o(r),s=[],a=oc(n,i,o),l=sc(t,e,o,a);if(o.fill)if("solid"===o.fillStyle){const n=sc(t,e,o,a).opset;n.type="fillPath",s.push(n)}else s.push(hc([l.estimatedPoints],o));return o.stroke!==Ac&&s.push(l.opset),this._d("ellipse",s,o)}circle(t,e,n,i){const r=this.ellipse(t,e,n,n,i);return r.shape="circle",r}linearPath(t,e){const n=this._o(e);return this._d("linearPath",[ic(t,!1,n)],n)}arc(t,e,n,i,r,o,s=!1,a){const l=this._o(a),c=[],h=ac(t,e,n,i,r,o,s,!0,l);if(s&&l.fill)if("solid"===l.fillStyle){const s=Object.assign({},l);s.disableMultiStroke=!0;const a=ac(t,e,n,i,r,o,!0,!1,s);a.type="fillPath",c.push(a)}else c.push(function(t,e,n,i,r,o,s){const a=t,l=e;let c=Math.abs(n/2),h=Math.abs(i/2);c+=pc(.01*c,s),h+=pc(.01*h,s);let u=r,d=o;for(;u<0;)u+=2*Math.PI,d+=2*Math.PI;d-u>2*Math.PI&&(u=0,d=2*Math.PI);const f=(d-u)/s.curveStepCount,p=[];for(let t=u;t<=d;t+=f)p.push([a+c*Math.cos(t),l+h*Math.sin(t)]);return p.push([a+c*Math.cos(d),l+h*Math.sin(d)]),p.push([a,l]),hc([p],s)}(t,e,n,i,r,o,l));return l.stroke!==Ac&&c.push(h),this._d("arc",c,l)}curve(t,e){const n=this._o(e),i=[],r=rc(t,n);if(n.fill&&n.fill!==Ac)if("solid"===n.fillStyle){const e=rc(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{const e=[],r=t;if(r.length){const t="number"==typeof r[0][0]?[r]:r;for(const i of t)i.length<3?e.push(...i):3===i.length?e.push(...$c(kc([i[0],i[0],i[1],i[2]]),10,(1+n.roughness)/2)):e.push(...$c(kc(i),10,(1+n.roughness)/2))}e.length&&i.push(hc([e],n))}return n.stroke!==Ac&&i.push(r),this._d("curve",i,n)}polygon(t,e){const n=this._o(e),i=[],r=ic(t,!0,n);return n.fill&&i.push("solid"===n.fillStyle?cc([t],n):hc([t],n)),n.stroke!==Ac&&i.push(r),this._d("polygon",i,n)}path(t,e){const n=this._o(e),i=[];if(!t)return this._d("path",i,n);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const r=n.fill&&"transparent"!==n.fill&&n.fill!==Ac,o=n.stroke!==Ac,s=!!(n.simplification&&n.simplification<1),a=function(t,e,n){const i=Ql(Zl(Kl(t))),r=[];let o=[],s=[0,0],a=[];const l=()=>{a.length>=4&&o.push(...$c(a,1)),a=[]},c=()=>{l(),o.length&&(r.push(o),o=[])};for(const{key:t,data:e}of i)switch(t){case"M":c(),s=[e[0],e[1]],o.push(s);break;case"L":l(),o.push([e[0],e[1]]);break;case"C":if(!a.length){const t=o.length?o[o.length-1]:s;a.push([t[0],t[1]])}a.push([e[0],e[1]]),a.push([e[2],e[3]]),a.push([e[4],e[5]]);break;case"Z":l(),o.push([s[0],s[1]])}if(c(),!n)return r;const h=[];for(const t of r){const e=_c(t,n);e.length&&h.push(e)}return h}(t,0,s?4-4*(n.simplification||1):(1+n.roughness)/2),l=lc(t,n);if(r)if("solid"===n.fillStyle)if(1===a.length){const e=lc(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else i.push(cc(a,n));else i.push(hc(a,n));return o&&(s?a.forEach(t=>{i.push(ic(t,!1,n))}):i.push(l)),this._d("path",i,n)}opsToPath(t,e){let n="";for(const i of t.ops){const t="number"==typeof e&&e>=0?i.data.map(t=>+t.toFixed(e)):i.data;switch(i.op){case"move":n+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":n+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":n+=`L${t[0]} ${t[1]} `}}return n.trim()}toPaths(t){const e=t.sets||[],n=t.options||this.defaultOptions,i=[];for(const t of e){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:Ac};break;case"fillPath":e={d:this.opsToPath(t),stroke:Ac,strokeWidth:0,fill:n.fill||Ac};break;case"fillSketch":e=this.fillSketch(t,n)}e&&i.push(e)}return i}fillSketch(t,e){let n=e.fillWeight;return n<0&&(n=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||Ac,strokeWidth:n,fill:Ac}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}const Pc="http://www.w3.org/2000/svg";class Lc{constructor(t,e){this.svg=t,this.gen=new zc(e)}draw(t){const e=t.sets||[],n=t.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,r=i.createElementNS(Pc,"g"),o=t.options.fixedDecimalPlaceDigits;for(const s of e){let e=null;switch(s.type){case"path":e=i.createElementNS(Pc,"path"),e.setAttribute("d",this.opsToPath(s,o)),e.setAttribute("stroke",n.stroke),e.setAttribute("stroke-width",n.strokeWidth+""),e.setAttribute("fill","none"),n.strokeLineDash&&e.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":e=i.createElementNS(Pc,"path"),e.setAttribute("d",this.opsToPath(s,o)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",n.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(i,s,n)}e&&r.appendChild(e)}return r}fillSketch(t,e,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2);const r=t.createElementNS(Pc,"path");return r.setAttribute("d",this.opsToPath(e,n.fixedDecimalPlaceDigits)),r.setAttribute("stroke",n.fill||""),r.setAttribute("stroke-width",i+""),r.setAttribute("fill","none"),n.fillLineDash&&r.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&r.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),r}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,n,i,r){const o=this.gen.line(t,e,n,i,r);return this.draw(o)}rectangle(t,e,n,i,r){const o=this.gen.rectangle(t,e,n,i,r);return this.draw(o)}ellipse(t,e,n,i,r){const o=this.gen.ellipse(t,e,n,i,r);return this.draw(o)}circle(t,e,n,i){const r=this.gen.circle(t,e,n,i);return this.draw(r)}linearPath(t,e){const n=this.gen.linearPath(t,e);return this.draw(n)}polygon(t,e){const n=this.gen.polygon(t,e);return this.draw(n)}arc(t,e,n,i,r,o,s=!1,a){const l=this.gen.arc(t,e,n,i,r,o,s,a);return this.draw(l)}curve(t,e){const n=this.gen.curve(t,e);return this.draw(n)}path(t,e){const n=this.gen.path(t,e);return this.draw(n)}}var Ic=(t,e)=>new Lc(t,e);function Tc(t,e,n){if(!t||!e)return void console.warn("Invalid node or svg element");const i=Ic(e,{options:{seed:1e3}}),r=Zc("g");t.hasAttribute("transform")&&r.setAttribute("transform",t.getAttribute("transform")||"");const o=t.cloneNode();Jc(o,{opacity:.5}),o.hasAttribute("transform")&&o.removeAttribute("transform"),o.dataset.elementType="rough-volume",r.appendChild(o);const s=function(t,e,n){const i=e.nodeName.toLowerCase(),r=(t,e)=>{const i=th(t,[...e,"fill","fill-opacity","stroke","stroke-opacity","stroke-width","stroke-dasharray","stroke-linecap","stroke-linejoin","opacity","filter","clip-path","mask"],!0),r={},o=Object.assign({},n),s={};e.forEach(t=>{void 0!==i[t]&&(r[t]=i[t])});const{fill:a,"fill-opacity":l,stroke:c,"stroke-opacity":h,"stroke-width":u,"stroke-dasharray":d,"stroke-linecap":f,"stroke-linejoin":p,opacity:g,filter:m,"clip-path":y,mask:v}=i;if(o.fill=a||"none",o.stroke=c||(a&&"none"!==a?a:"currentColor"),u&&(o.strokeWidth=parseFloat(u)),d&&"none"!==d){const t=d.split(/[\s,]+/).map(t=>parseFloat(t)).filter(t=>!isNaN(t));t.length>0&&(o.strokeLineDash=t)}return l&&(s.fillOpacity=parseFloat(l)),h&&(s.strokeOpacity=parseFloat(h)),g&&(s.opacity=parseFloat(g)),f&&(s.strokeLinecap=f),p&&(s.strokeLinejoin=p),d&&"none"!==d&&(s.strokeDasharray=d),m&&(s.filter=m),y&&(s.clipPath=y),v&&(s.mask=v),[r,o,s]};try{let n=null,o={};switch(i){case"circle":{const[i,s,a]=r(e,["cx","cy","r"]),l=parseFloat(i.cx)||0,c=parseFloat(i.cy)||0,h=parseFloat(i.r)||0;n=t.circle(l,c,2*h,s),o=a;break}case"ellipse":{const[i,s,a]=r(e,["cx","cy","rx","ry"]),l=parseFloat(i.cx)||0,c=parseFloat(i.cy)||0,h=parseFloat(i.rx)||0,u=parseFloat(i.ry)||0;n=t.ellipse(l,c,2*h,2*u,s),o=a;break}case"line":{const[i,s,a]=r(e,["x1","y1","x2","y2"]),l=parseFloat(i.x1)||0,c=parseFloat(i.y1)||0,h=parseFloat(i.x2)||0,u=parseFloat(i.y2)||0;n=t.line(l,c,h,u,s),o=a;break}case"rect":{const[i,s,a]=r(e,["x","y","width","height","rx","ry"]),l=parseFloat(i.x)||0,c=parseFloat(i.y)||0,h=parseFloat(i.width)||0,u=parseFloat(i.height)||0,d=parseFloat(i.rx)||0,f=parseFloat(i.ry)||0;if(d>0||f>0){const e=function(t,e,n,i,r,o){return r=Math.min(r,n/2),o=Math.min(o,i/2),`\n M ${t+r} ${e}\n L ${t+n-r} ${e}\n A ${r} ${o} 0 0 1 ${t+n} ${e+o}\n L ${t+n} ${e+i-o}\n A ${r} ${o} 0 0 1 ${t+n-r} ${e+i}\n L ${t+r} ${e+i}\n A ${r} ${o} 0 0 1 ${t} ${e+i-o}\n L ${t} ${e+o}\n A ${r} ${o} 0 0 1 ${t+r} ${e}\n Z\n `.replace(/\s+/g," ").trim()}(l,c,h,u,d||f,f||d);n=t.path(e,s)}else n=t.rectangle(l,c,h,u,s);o=a;break}case"path":{const[i,s,a]=r(e,["d"]),l=i.d||"";if(!l)return console.warn("Path element has no d attribute"),null;n=t.path(l,s),o=a;break}case"polygon":{const[i,s,a]=r(e,["points"]),l=Rc(i.points||"");if(l.length<3)return console.warn("Polygon needs at least 3 points"),null;n=t.polygon(l,s),o=a;break}case"polyline":{const[i,s,a]=r(e,["points"]),l=Rc(i.points||"");if(l.length<2)return console.warn("Polyline needs at least 2 points"),null;n=t.linearPath(l,s),o=a;break}default:return console.warn(`Unsupported shape type: ${i}`),null}return n?{element:n,svgAttributes:o}:null}catch(t){return console.error(`Error creating rough shape for ${i}:`,t),null}}(i,t,n);if(s){const{element:t,svgAttributes:e}=s;t.dataset.elementType="rough-element",t.style.pointerEvents="none",function(t,e){void 0!==e.opacity&&t.setAttribute("opacity",String(e.opacity));void 0!==e.fillOpacity&&t.setAttribute("fill-opacity",String(e.fillOpacity));void 0!==e.strokeOpacity&&t.setAttribute("stroke-opacity",String(e.strokeOpacity));e.strokeLinecap&&t.setAttribute("stroke-linecap",e.strokeLinecap);e.strokeLinejoin&&t.setAttribute("stroke-linejoin",e.strokeLinejoin);e.strokeDasharray&&t.setAttribute("stroke-dasharray",e.strokeDasharray);e.filter&&t.setAttribute("filter",e.filter);e.clipPath&&t.setAttribute("clip-path",e.clipPath);e.mask&&t.setAttribute("mask",e.mask)}(t,e),r.appendChild(t)}t.id&&(r.id=t.id);Array.from(t.classList).forEach(t=>{r.classList.contains(t)||r.classList.add(t)}),Array.from(t.attributes).forEach(t=>{t.name.startsWith("data-")&&r.setAttribute(t.name,t.value)}),r.childElementCount>0?t.replaceWith(r):t.remove()}function Rc(t){if(!t||"string"!=typeof t)return[];try{const e=t.trim().replace(/,/g," ").replace(/\s+/g," ").split(" ").filter(Boolean),n=[];for(let t=0;t<e.length-1;t+=2){const i=parseFloat(e[t]),r=parseFloat(e[t+1]);isNaN(i)||isNaN(r)?console.warn(`Invalid coordinate pair at index ${t}: "${e[t]}", "${e[t+1]}"`):n.push([i,r])}return e.length%2!=0&&console.warn(`Odd number of coordinates in points attribute, last value ignored: "${e[e.length-1]}"`),n}catch(e){return console.error("Failed to parse polygon points:",t,e),[]}}function Bc(t,e,n){var i;const{themeConfig:r}=n;return Jc(e,Ua(e,Object.assign({},null===(i=r.base)||void 0===i?void 0:i.shape,r.shape))),function(t,e,n){const i=n.themeConfig.stylize;if(!i)return t;const{type:r}=i;if(!r)return t;if("rough"===r)return Tc(t,e,i);if("pattern"===r)return Ll(t,e,n);if("linear-gradient"===r||"radial-gradient"===r){const{fill:n,stroke:r}=th(t,["fill","stroke"]);Ar(n)&&kl(t,e,i,"fill"),Ar(r)&&kl(t,e,i,"stroke")}}(e,t,n),e}const Wc=sa(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()});function Hc(t,e,n={}){if(!e)return null;const i=t;Jc(i,Ua(i,n));const r=function(t,e){const n=Nc(e.dataset.x,0),i=Nc(e.dataset.y,0),r=Nc(e.getAttribute("width")),o=Nc(e.getAttribute("height")),s=function(t){const e=th(t,["font-family","font-size","font-weight","font-style","font-variant","letter-spacing","line-height","fill","stroke","stroke-width"]);return e}(e);Object.assign(s,{x:n,y:i,width:r,height:o,"data-horizontal-align":e.dataset.horizontalAlign||"LEFT","data-vertical-align":e.dataset.verticalAlign||"TOP"});return function(t,e){const n=document.createElement("span");n.setAttribute("xmlns","http://www.w3.org/1999/xhtml");const i=Zc("foreignObject",{overflow:"visible"});return i.appendChild(n),oh(i,{textContent:t,attributes:e}),i}(t,s)}(e,i);for(const t in i.dataset)r.setAttribute(`data-${Wc(t)}`,i.dataset[t]);return r}const Nc=(t,e)=>t?parseFloat(t):e;const Fc=(t,e)=>{t!==e&&(e?t.replaceWith(e):t.remove())};class Dc{constructor(t,e){this.options=t,this.template=e,this.rendered=!1}getOptions(){return this.options}getSVG(){return this.template}render(){const t=this.getSVG();if(this.rendered)return t;!function(t,e){(function(t,e){var n;const{themeConfig:i,data:r}=e;!function(t,e){e&&Object.keys(e).length>0&&eh(t,t=>{Jc(t,Ua(t,e))})}(t,null===(n=i.base)||void 0===n?void 0:n.global);const o=t.querySelectorAll("[data-element-type]");o.forEach(n=>{var o,s,a,l,c,h,u;const d=n.id||"";if(uh(n)){const t=Hc(n,r.title||"",Object.assign({},null===(o=i.base)||void 0===o?void 0:o.text,i.title,null===(s=r.attributes)||void 0===s?void 0:s.title));return Fc(n,t)}if(dh(n)){const t=Hc(n,r.desc||"",Object.assign({},null===(a=i.base)||void 0===a?void 0:a.text,i.desc,null===(l=r.attributes)||void 0===l?void 0:l.desc));return Fc(n,t)}if(gh(n)){const e=bl(t,n,null===(c=r.illus)||void 0===c?void 0:c[d],void 0,null===(h=r.attributes)||void 0===h?void 0:h.illus);return Fc(n,e)}if(ph(n))return Array.from(n.children).forEach(n=>{Bc(t,n,e)});if(fh(n)){const i=Bc(t,n,e);return Fc(n,i)}if(Ch(n))return Ga(t,n);if(null===(u=n.dataset.elementType)||void 0===u?void 0:u.startsWith("item-")){const i=Xh(n.dataset.indexes||"0"),o=n.dataset.elementType.replace("item-",""),s=ts(r,i);if(bh(n)||wh(n)||Mh(n)){const t=function(t,e,n){var i,r,o;const s="text"===e.nodeName?e:null;if(!s)return null;const{data:a,themeConfig:l}=n,c=ts(a,Xh(e.dataset.indexes||"0")),h=String(Jo(c,t,"")),u=null===(i=null==c?void 0:c.attributes)||void 0===i?void 0:i[t],d=Ua(s,Object.assign({},null===(r=l.base)||void 0===r?void 0:r.text,null===(o=l.item)||void 0===o?void 0:o[t],u));return Hc(e,e.textContent||h,d)}(o,n,e);return Fc(n,t)}if(!s)return;if(kh(n)){const e=function(t,e,n){var i;return bl(t,e,n.illus,n,null===(i=n.attributes)||void 0===i?void 0:i.illus)}(t,n,s);return Fc(n,e)}if(vh(n)){const i=vl(t,n,s,e);return Fc(n,i)}}return mh(n)?function(t,e){var n;const i=(null===(n=e.themeConfig.base)||void 0===n?void 0:n.text)||{};Jc(t,i),i["font-family"]&&t.setAttribute("font-family",da(i["font-family"])),t.style.userSelect="none",t.style.pointerEvents="none"}(n,e):yh(n)?void 0:function(t,e){var n;Jc(t,(null===(n=e.themeConfig.base)||void 0===n?void 0:n.shape)||{})}(n,e)}),function(t,e){var n;const{themeConfig:i}=e,{"font-family":r=Aa}=(null===(n=i.base)||void 0===n?void 0:n.text)||{};t.setAttribute("font-family",r)}(t,e)})(t,e),function(t,e){const{width:n,height:i}=e,{style:r={},attributes:o={},id:s,className:a}=e.svg||{};s&&(t.id=s);a&&t.classList.add(a);void 0!==n&&t.setAttribute("width","number"==typeof n?`${n}px`:n);void 0!==i&&t.setAttribute("height","number"==typeof i?`${i}px`:i);Object.assign(t.style,r),Jc(t,o)}(t,e),function(t,e){var n,i;if(!1===(null===(n=e.svg)||void 0===n?void 0:n.background))return;const{themeConfig:{colorBg:r}}=e;if(!r)return;const o=t.parentElement;o&&(o.style.backgroundColor=r||"none");const s=Ph(t,"background");if(t.style.backgroundColor=r,s)s.setAttribute("fill",r);else if(null===(i=t.viewBox)||void 0===i?void 0:i.baseVal){const{x:e,y:n,width:i,height:o}=t.viewBox.baseVal,s=Zc("rect",{x:e,y:n,width:i,height:o,fill:r,"data-element-type":"background"});t.prepend(s)}}(t,e)}(t,this.options),t.style.visibility="hidden";const e=()=>{!function(t,e){const{padding:n=0,viewBox:i}=e;i?t.setAttribute("viewBox",i):void 0!==n&&tu(t,Jh(n))}(this.template,this.options),function(t){if(Gh)return;Pa().forEach(e=>Wa(t,e.fontFamily))}(this.template),t.style.removeProperty("visibility")};if(Gh)e();else{const n=new MutationObserver(i=>{i.forEach(i=>{i.addedNodes.forEach(i=>{(i===t||i.contains(t))&&(e(),n.disconnect())})})});try{n.observe(this.options.container,{childList:!0,subtree:!0})}catch(t){e(),console.error(t)}}return this.rendered=!0,t}}let Vc=1.015;wa({fontFamily:"Alibaba PuHuiTi",aliases:["AlibabaPuHuiTi","AlibabaPuHuiTi-Regular"],fontWeight:400,fontStyle:"normal",unitsPerEm:1e3,metrics:{ascender:1060,descender:-340,lineGap:0},glyphs:{" ":257,"!":361,'"':405,"#":600,"%":821,"&":640,"'":253,"(":359,")":359,"*":430,",":302,"-":440,".":302,"/":500,":":378,";":378,"?":431,"@":860,B:620,C:599,D:699,F:527,G:685,H:708,J:271,K:614,L:507,M:830,N:737,P:597,R:614,S:566,T:528,V:617,W:898,X:624,Y:594,Z:626,"[":294,"\\":510,"]":294,_:500,"`":346,b:635,c:497,d:635,f:349,g:636,k:518,l:286,m:921,p:635,q:636,r:379,s:479,t:337,v:526,w:828,x:516,y:527,z:506,"{":299,"|":183,"}":299," ":257,"¡":357,"¦":183,"§":479,"¨":346,"©":806,ª:483,"«":511,"":440,"®":404,"¯":346,"°":363,"´":346,"¶":593,"·":357,"¸":346,º:445,"»":511,"¼":902,"½":914,"¾":902,"¿":431,Æ:889,Ç:599,Ð:719,Ñ:737,Ý:594,Þ:597,ß:610,æ:926,ç:497,ý:527,þ:635,ÿ:527,Ć:599,ć:497,Ĉ:599,ĉ:497,Ċ:599,ċ:497,Č:599,č:497,Ď:699,ď:640,Đ:719,đ:635,Ĝ:685,ĝ:636,Ğ:685,ğ:636,Ġ:685,ġ:636,Ģ:685,ģ:636,Ĥ:708,Ħ:708,IJ:545,ij:536,Ĵ:271,Ķ:614,ķ:518,ĸ:518,Ĺ:507,ĺ:286,Ļ:507,ļ:286,Ľ:507,ľ:290,Ŀ:507,ŀ:291,Ł:507,ł:286,Ń:737,Ņ:737,Ň:737,ʼn:669,Ŋ:737,Œ:987,œ:917,Ŕ:614,ŕ:379,Ŗ:614,ŗ:379,Ř:614,ř:379,Ś:566,ś:479,Ŝ:566,ŝ:479,Ş:566,ş:479,Š:566,š:479,Ţ:528,ţ:337,Ť:528,ť:340,Ŧ:528,ŧ:337,Ŵ:898,ŵ:828,Ŷ:594,ŷ:527,Ÿ:594,Ź:626,ź:506,Ż:626,ż:506,Ž:626,ž:506,ſ:310,Ə:719,ǎ:608,ǐ:265,ǒ:614,ǔ:609,ǖ:609,ǘ:609,ǚ:609,ǜ:609,Ǽ:889,ǽ:926,Ș:566,ș:479,Ț:528,ț:337,ʹ:255,"͵":255,";":378,"΄":346,"΅":346,Ά:670,"·":357,Έ:628,Ή:779,Ί:346,Ό:765,Ύ:726,Ώ:765,ΐ:312,Β:620,Γ:507,Ζ:626,Η:708,Κ:614,Λ:617,Μ:830,Ν:737,Π:708,Ρ:597,Σ:596,Τ:528,Υ:594,Φ:831,Χ:624,Ψ:804,Ϋ:594,έ:509,ή:643,ί:312,ΰ:593,β:610,γ:526,ε:509,ζ:465,η:643,θ:638,ι:312,κ:518,λ:514,ν:526,ξ:465,π:616,ρ:619,ς:497,σ:639,τ:437,υ:593,φ:774,χ:509,ψ:745,ω:782,ϊ:312,ϋ:593,ύ:593,ώ:782,"‐":440,"‑":440,"–":495,"—":684,"―":684,"‗":500,"‘":270,"’":270,"‚":270,"‛":270,"“":784,"”":784,"„":468,"†":500,"‡":500,"•":308,"…":1085,"‰":1174,"′":256,"″":472,"‴":689,"‵":256,"‶":472,"‷":689,"‹":312,"›":312,"‼":589,"‽":433,"‾":500,"⁄":120,"⁺":407,"⁻":407,"⁼":407,"⁽":225,"⁾":225,ⁿ:486,"₊":407,"₋":407,"₌":407,"₍":225,"₎":225,ₙ:486,"₡":599,"₣":527,"₤":600,"₥":921,"₦":625,"₨":1093,"₩":769,"₪":754,"₫":635,"₭":614,"₮":528,"₯":1288,"₰":950,"₲":685,"₴":576,"₵":599,"₶":576,"₷":700,"₸":528,"₻":750,"₼":683,"₾":577,"₿":620,"℃":915,"℅":825,"℉":868,ℓ:385,"№":1176,"℗":806,"℡":1022,"™":903,℮:903,"⅛":930,"⅜":931,"⅝":931,"⅞":871,Ⅶ:1166,"∂":587,"∈":663,"∏":708,"∑":596,"√":604,"∞":679,"∧":617,"∫":531,"∮":654,"≈":600,"≒":662,"◊":600," ":0,"〞":472},glyphsByWidth:{268:"ijìíîïĩīĭįıĵȷ",274:"IÌÍÎÏĨĪĬĮİΙΪ",406:"²³¹⁰⁴⁵⁶⁷⁸⁹₀₁₂₃₄₅₆₇₈₉",552:"+<=>^~¬±×÷−∕∙≠≤≥≦≧≮≯",556:"EÈÉÊËĒĔĖĘĚΕΞ",575:"$0123456789¢£¤¥ƒ₢₧€₱₹₺₽",578:"eèéêëēĕėęě",612:"aàáâãäåāăąǻ",613:"uµùúûüũūŭůűųάαμ∨",618:"hnoðñòóôõöøĥħńņňŋōŏőǿδοό",667:"AÀÁÂÃÄÅĀĂĄǺΑΔ₳∆",701:"UÙÚÛÜŨŪŬŮŰŲ",743:"OQÒÓÔÕÖØŌŎŐǾΘΟΩΩ",1e3:"─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▓▔▕■□▲△▼▽◆◇○◎●◢◣◤◥★☆☉♀♂〾"},defaultWidth:984,kerning:{'""':-56,"\"'":-57,'",':-179,'".':-179,"'\"":-56,"''":-57,"',":-179,"'.":-179,"(j":60,',"':-160,",'":-160,",1":-140,",7":-41,",9":-39,'."':-160,".'":-160,".1":-140,".7":-41,".9":-39,"//":-120,"1,":-99,"1.":-99,"1:":-99,"1;":-99,"7,":-160,"7.":-160,"7:":-99,"7;":-99,":1":-79,":7":-59,";1":-79,";7":-59,'A"':-100,"A'":-100,AC:-20,AG:-20,AO:-20,AQ:-20,AT:-80,AU:-10,AV:-70,AW:-39,AY:-81,Af:-20,Al:-10,At:-20,Av:-20,Ay:-20,BC:-10,BG:-10,BO:-10,BQ:-10,BT:-40,BV:-20,BX:-20,BY:-21,"D,":-59,"D.":-59,DA:-20,DT:-36,DV:-30,DW:-19,DX:-20,DY:-40,DZ:-20,Da:-39,Ej:19,"F,":-159,"F.":-159,FA:-40,Fa:-59,Fh:1,Fk:1,GV:-11,GY:-21,JJ:7,KA:-19,KC:-20,KG:-20,KO:-20,KQ:-20,KT:-19,KU:-39,KV:-39,KW:-39,KY:-40,Kc:-39,Kd:-39,Ke:-39,Kg:-39,Kl:-39,Ko:-39,Kq:-39,Ks:-19,Kt:-10,Ku:-40,Kv:-60,Kw:-40,Ky:-60,'L"':-99,"L'":-99,LA:20,LC:-59,LG:-59,LO:-59,LQ:-59,LT:-79,LU:-19,LV:-79,LW:-39,LY:-100,Lv:-41,Lw:-21,Ly:-41,"O,":-59,"O.":-59,OA:-20,OT:-36,OV:-30,OW:-19,OX:-20,OY:-40,OZ:-20,Oa:-39,"P,":-199,"P.":-199,PA:-60,PT:-29,PV:-10,PW:-10,PX:-50,PY:-20,PZ:-39,Pa:-60,"Q,":-59,"Q.":-59,QA:-20,QJ:7,QT:-36,QV:-30,QW:-19,QX:-20,QY:-40,QZ:-20,Qa:-39,RC:-15,RG:-15,RO:-15,RQ:-15,RT:-40,RU:-10,RV:-21,RW:-10,RX:-29,RY:-41,Rc:-20,Rd:-20,Re:-20,Rg:-20,Ro:-20,Rq:-20,Rt:-20,Ru:-10,Rv:-10,Rx:20,Ry:-10,"S,":-20,"S.":-20,SS:-1,ST:-1,SV:-21,SW:-10,SY:-21,St:-1,Sv:-20,Sw:-10,Sx:-1,Sy:-20,'T"':2,"T'":2,"T,":-154,"T.":-154,TA:-80,TC:-20,TG:-20,TO:-20,TQ:-20,TS:-1,Ta:-80,Tc:-59,Td:-59,Te:-59,Tg:-59,Ti:-20,Tj:-19,Tm:-59,Tn:-59,To:-59,Tp:-58,Tq:-59,Tr:-59,Ts:-60,Tt:20,Tu:-79,Tv:-39,Tw:-19,Tx:-39,Ty:-39,Tz:-59,UA:-10,UX:-19,Ux:-1,"V,":-140,"V.":-140,"V:":-41,"V;":-41,VA:-70,VC:-30,VG:-30,VO:-30,VQ:-30,VS:-10,Va:-41,Vc:-21,Vd:-21,Ve:-21,Vg:-21,Vh:1,Vk:1,Vo:-21,Vq:-21,Vs:-21,Vv:-1,Vy:-1,"W,":-79,"W.":-79,"W:":-39,"W;":-39,WA:-40,WC:-19,WG:-19,WO:-19,WQ:-19,Wa:-40,Wc:-20,Wd:-20,We:-20,Wg:-20,Wo:-20,Wq:-20,Ws:-20,XA:-19,XC:-20,XG:-20,XO:-20,XQ:-20,XT:-19,XU:-39,XV:-39,XW:-39,XY:-40,Xc:-39,Xd:-39,Xe:-39,Xg:-39,Xl:-39,Xo:-39,Xq:-39,Xs:-19,Xt:-10,Xu:-40,Xv:-60,Xw:-40,Xy:-60,'Y"':1,"Y'":1,"Y,":-141,"Y.":-141,"Y:":-60,"Y;":-60,YA:-81,YC:-40,YG:-40,YO:-40,YQ:-40,YS:-1,Ya:-101,Yc:-60,Yd:-60,Ye:-60,Yf:-1,Yg:-60,Yh:1,Yi:-19,Yk:1,Ym:-41,Yn:-41,Yo:-60,Yp:-40,Yq:-60,Yr:-41,Ys:-61,Yt:-1,Yu:-40,Yv:-40,Yx:-41,Yy:-40,Yz:-41,ZC:-20,ZG:-20,ZO:-20,ZQ:-20,"[j":80,aT:-60,aV:-21,aY:-61,av:-10,aw:-10,ay:-10,"b,":-40,"b.":-40,bT:-59,bV:-21,bW:-20,bX:-39,bY:-60,bv:-10,bx:-20,by:-10,"e,":-20,"e.":-20,eT:-59,eY:-40,ej:20,'f"':3,"f'":3,"f)":1,"f*":61,"f,":-1,"f.":-1,"f?":40,fT:40,fV:21,fW:21,fX:21,fY:1,"f]":21,fa:-29,fc:-19,fd:-19,fe:-19,ff:1,fg:-39,fh:-19,fi:-19,fj:-19,fk:-19,fl:-19,fo:-19,fq:-19,fs:-19,ft:1,"f}":3,hT:-58,hY:-39,hv:-10,hy:-10,'i"':2,"i'":2,"i)":2,"i?":3,iT:-20,"i]":41,"i}":22,jT:-20,kT:-39,kU:-1,kW:-20,ka:-20,kc:-20,kd:-20,ke:-20,kg:-20,kl:-20,ko:-20,kq:-20,ku:-10,lf:-20,lv:-19,lw:-10,ly:-19,mT:-58,mY:-39,mv:-10,my:-10,nT:-58,nY:-39,nv:-10,ny:-10,"o,":-40,"o.":-40,oT:-59,oV:-21,oW:-20,oX:-39,oY:-60,ov:-10,ox:-20,oy:-10,"p,":-40,"p.":-40,pT:-59,pV:-21,pW:-20,pX:-39,pY:-60,pv:-10,px:-20,py:-10,qT:-19,qY:-19,qj:20,'r"':2,"r'":2,"r,":-90,"r.":-90,ra:-49,rc:-19,rd:-19,re:-19,rf:1,ro:-19,rq:-19,rt:20,sT:-59,sV:-21,sW:-20,sX:-19,sY:-60,sv:-19,sx:-10,sy:-19,tf:1,uT:-40,uY:-19,"v,":-90,"v.":-90,vT:-39,vX:-39,va:-35,vc:-10,vd:-10,ve:-10,vo:-10,vq:-10,"w,":-50,"w.":-50,wT:-19,wX:-39,wa:-30,xT:-39,xU:-1,xW:-20,xa:-20,xc:-20,xd:-20,xe:-20,xg:-20,xl:-20,xo:-20,xq:-20,xu:-10,"y,":-90,"y.":-90,yT:-39,yX:-39,ya:-35,yc:-10,yd:-10,ye:-10,yo:-10,yq:-10,zT:-59,"{h":2,"{j":79,"{k":2}});const Uc={"851tegakizatsu":{fontFamily:"851tegakizatsu",fontWeight:400,fontStyle:"normal",unitsPerEm:1024,metrics:{ascender:880,descender:-144,lineGap:0},glyphs:{" ":341," ":256," ":171," ":10,"":0,"‿":0,"⁀":0,"⁄":0,"\t":512,"\n":512,"\r":512},glyphsByWidth:{512:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ ¡¢£¤¥¦©ª®°²³¹º¼½¾¿ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåçèéêëìíîïðñòóôõöøùúûüýþÿĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıĴĵĶķĸĹĺĻļĽľĿŀŁłŃńŅņŇňʼnŊŋŌōŎŏŐőŔŕŖŗŘřŚśŜŝŞşŠšŢţŤťŦŧŨũŪūŬŭŮůŰűŲųŴŵŶŷŸŹźŻżŽžſƀƁƂƃƄƅƆƇƈƉƊƋƌƍƎƏƐƑƒƓƔƕƖƗƘƙƚƛƜƝƞƟƠơƢƣƤƥƦƧƨƩƪƫƬƭƮƯưƱƲƳƴƵƶƷƸƹƺƻƼƽƾƿǀǁǂǃǍǎǏǐǑǒǓǔǕǖǗǘǙǚǛǜǝǞǟǠǡǤǥǦǧǨǩǪǫǬǭǮǯǰǴǵǶǷǸǹǺǻǾǿȀȁȂȃȄȅȆȇȈȉȊȋȌȍȎȏȐȑȒȓȔȕȖȗȘșȚțȜȝȞȟȠȡȢȣȤȥȦȧȨȩȪȫȬȭȮȯȰȱȲȳȴȵȶȷȸȹȺȻȼȽȾȿɀɁɂɃɄɅɆɇɈɉɊɋɌɍɎɏͰͱͲͳʹ͵Ͷͷͺͻͼͽ;Ϳ΄΅Ά·ΈΉΊΌΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώϏϐϑϒϓϔϕϖϗϘϙϚϛϜϝϞϟϠϡϢϣϤϥϦϧϨϩϪϫϬϭϮϯϰϱϲϳϴϵ϶ϷϸϹϺϻϼϽϾϿ –‗•\u2029‵‹›‽‾⁅⁆⁰ⁱ⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾ⁿ₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎ₐₑₒₓₔₕₖₗₘₙₚₛₜ₠₡₢₣₤₥₦₧₨₩₪₫€₭₮₰₱₲₳₴₵₶₷₸₹₺₼₽₾₿⃀ℏ℩KÅℵℶℷℸ⅐⅑⅒⅓⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞⅟↉↊↋↔↕↚↛↜↝↞↟↠↡↢↣↤↥↦↧↨↩↪↫↬↭↮↯↰↱↲↳↴↵↶↷↸↹↺↻↼↽↾↿⇀⇁⇂⇃⇄⇅⇆⇇⇈⇉⇊⇋⇌⇜⇝⇞⇟⇠⇡⇢⇣⇤⇥⇪⇫⇬⇭⇮⇯⇰⇱⇲⇳⇴⇵⇶⇷⇸⇹⇺⇻⇼⇽⇾⇿∁∅∎−∓∔∕∖∗∘∙√∛∜∣∤∦∱∲∳∶∷∸∹∺∻∼∿≀≁≂≃≄≅≆≇≈≉≊≋≌≍≎≏≐≑≓≔≕≖≗≘≙≚≛≜≝≞≟≢≣≤≥≨≩≬≭≮≯≰≱≲≳≴≵≶≷≸≹≺≻≼≽≾≿⊀⊁⊄⊅⊈⊉⊊⊋⊌⊍⊎⊏⊐⊑⊒⊓⊔⊦⊧⊨⊩⊪⊫⊬⊭⊮⊯⊲⊳⊴⊵⊹⊺⊻⊼⊽⊾⋀⋁⋂⋃⋄⋅⋆⋇⋈⋉⋊⋋⋌⋍⋎⋏⋐⋑⋒⋓⋔⋕⋖⋗⋚⋛⋜⋝⋞⋟⋠⋡⋢⋣⋤⋥⋦⋧⋨⋩⋪⋫⋬⋭⋮⌀⌁⌂⌃⌄⌅⌆⌈⌉⌊⌋⌌⌍⌎⌏⌜⌝⌞⌟⌠⌡⌢⌣⌯⌰⍳⍴⍵⍶⍷⍸⍹⍺⎛⎜⎝⎞⎟⎠⎡⎢⎣⎤⎥⎦⎧⎨⎩⎪⎫⎬⎭⎮⎰⎱⎷⎸⎹⎺⎻⎼⎽⏎⏐⏑⏒⏓⏨⏻⏼⏽⏾⏿╌╍╎╏═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╱╲╳╴╵╶╷╸╹╺╻╼╽╾╿♩♪♭♮♯ㆻㆼㆽㆾㆿ。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ᅠᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ│←↑→↓■○"},defaultWidth:1024},Arial:{fontFamily:"Arial",fontWeight:400,fontStyle:"normal",unitsPerEm:2048,metrics:{ascender:2189,descender:-555,lineGap:0},glyphs:{'"':727,"%":1821,"'":391,"*":797,"@":2079,M:1706,W:1933,"^":961,m:1706,"{":684,"|":532,"}":684,"¦":532,"©":1509,ª:758,"®":1509,"°":819,"¶":1100,º:748,æ:1821,ď:1284,IJ:1538,ij:909,ĸ:895,ŀ:651,ʼn:1282,Ŋ:1481,œ:1933,ť:831,Ŵ:1933,Ɓ:1516,Ƃ:1341,Ƈ:1569,ƈ:1186,Ɗ:1616,Ƌ:1341,ƍ:1141,Ə:1493,Ɛ:1237,Ɠ:1620,Ɣ:1329,ƕ:1651,Ɩ:502,Ɨ:659,ƚ:659,Ɯ:1706,Ơ:1589,Ƣ:2087,ƣ:1602,Ƥ:1505,Ʃ:1233,ƪ:750,Ƭ:1169,Ư:1589,ư:1270,Ʊ:1532,Ƴ:1540,ƴ:1260,Ʒ:1286,Ƹ:1286,ƹ:1077,ƺ:983,ƽ:1077,ǁ:950,ǂ:971,DŽ:2730,Dž:2503,dž:2163,LJ:2109,lj:909,NJ:2503,Nj:1933,ǣ:1821,Ǯ:1094,ǯ:1094,DZ:2730,Dz:2503,dz:2163,ǽ:1821,ʹ:631,"͵":631,Έ:1442,Ή:1554,Ί:645,Ύ:1528,Ώ:1552,Γ:1126,Δ:1397,Μ:1706,Ξ:1331,Σ:1233,Φ:1655,Ψ:1647,Ω:1552,ά:1180,έ:889,ΰ:1128,α:1180,β:1153,δ:1141,ε:889,ζ:901,κ:1020,μ:1133,ξ:885,ρ:1169,ς:967,σ:1268,τ:782,υ:1128,φ:1329,χ:1069,ψ:1493,ω:1569,ϋ:1128,ύ:1128,ώ:1569,ϐ:1153,ϑ:1262,ϒ:1292,ϓ:1487,ϔ:1292,ϕ:1319,ϖ:1599,Ϝ:1184,Ϟ:1167,Ϡ:1417,Ϣ:1802,ϣ:1706,Ϥ:1401,ϥ:1143,Ϧ:1393,ϧ:1083,Ϩ:1141,ϩ:1034,Ϫ:1276,ϫ:1235,Ϭ:1249,Ϯ:1163,ϯ:889,ϱ:1169," ":512," ":342," ":205," ":102,"":0,"":0,"":0,"―":1155,"‖":877,"•":717,"‣":717,"\u2028":0,"\u2029":0,"‱":2724,"″":762,"‴":1069,"‵":422,"‶":729,"‷":1036,"‸":639,"‼":965,"‿":1935,"⁀":1935,"⁁":639,"⁂":1679,"⁄":342,"⁽":430,"⁾":430,"₍":430,"₎":430,"₥":1706,"₨":2097,"₩":1925,"₪":1606,"℀":1821,"℁":1821,"℃":2093,"℅":1821,"℆":1821,ℇ:1026,"℉":1886,ℊ:1044,ℋ:1855,ℌ:2023,ℐ:1409,ℑ:1133,ℒ:1450,ℓ:596,"№":2198,"℗":1509,℘:1516,ℛ:1898,ℜ:1628,"℡":2404,"℥":1110,Ω:1573,"℧":1573,ℨ:1430,"℩":657,ℬ:1898,ℭ:1323,ℯ:788,ℰ:1260,ℱ:1409,ℳ:2284,ℴ:831,ℵ:1409,ℶ:1409,ℷ:705,ℸ:1409,Ⅱ:1137,Ⅲ:1704,Ⅳ:1911,Ⅵ:1913,Ⅶ:2111,Ⅷ:2597,Ⅸ:1933,Ⅺ:1933,Ⅻ:2120,Ⅿ:1706,ⅱ:909,ⅲ:1364,ⅳ:1434,ⅵ:1434,ⅶ:1888,ⅷ:2343,ⅸ:1458,ⅺ:1458,ⅻ:1913,ⅿ:1706,ↀ:2013,ↂ:2013,"↭":1665,"↮":1665,"⇎":1946,"⇔":1767,"⇜":1665,"⇝":1665,"∂":1012,"∆":1253,"∇":1253,"∏":1686,"∐":1686,"∕":342,"∗":797,"∘":819,"∙":819,"∣":532,"∤":909,"∥":856,"∦":1233,"∫":1036,"∬":1651,"∭":2265,"∮":1036,"∯":1651,"∰":2265,"∱":1036,"∲":1036,"∳":1036,"∶":864,"≀":864,"≔":1509,"≕":1509,"≪":1985,"≫":1985,"⊑":1378,"⊒":1378,"⊦":817,"⊧":817,"⊫":1376,"⊯":1376,"⋅":512,"⋇":1329,"⋈":1290,"⋉":1290,"⋊":1290,"⋋":1290,"⋌":1290,"⋐":1368,"⋑":1368,"⋒":1368,"⋓":1368,"⋕":1233,"⋘":2773,"⋙":2773,"⋢":1378,"⋣":1378,"⋤":1378,"⋥":1378,"⌈":920,"⌉":920,"⌊":920,"⌋":920,"⌗":1331,"⌘":1597,"⌠":1036,"⌡":1036,"〈":674,"〉":674,"★":1671,"☆":1686,"☎":1473,"☏":1473,"☐":1503,"☑":1503,"☒":1503,"☓":1561,"☚":1966,"☛":1966,"☜":1923,"☝":1923,"☞":1923,"☟":1923,"☤":1188,"☥":942,"☦":909,"☧":1331,"☨":909,"☩":1573,"☫":1741,"☬":1382,"☰":1843,"☱":1843,"☲":1843,"☳":1843,"☴":1843,"☵":1843,"☶":1843,"☷":1843,"☿":1516,"♀":1516,"♁":1516,"♂":1516,"♃":1337,"♄":1004,"♅":1294,"♆":1597,"♇":1147,"♈":1716,"♉":1597,"♊":1503,"♋":1817,"♌":1597,"♍":2212,"♎":1835,"♏":2212,"♐":1647,"♑":1778,"♒":1888,"♓":1425,"♡":1503,"♢":1380,"♣":1647,"♥":1503,"♦":1380,"♧":1647,"♨":1761,"♩":866,"♪":1212,"♭":899,"♮":899,"♯":899,"✁":1995,"✂":1968,"✃":1995,"✄":2007,"✆":1616,"✇":1618,"✈":1620,"✉":1413,"✍":1751,"✎":1866,"✏":1911,"✐":1866,"✑":1935,"✒":1995,"✓":1546,"✔":1733,"✕":1561,"✖":1559,"✗":1169,"✘":1386,"✙":1563,"✚":1556,"✛":1554,"✜":1544,"✝":1012,"✞":1130,"✟":1100,"✠":1182,"✡":1417,"✢":1610,"✥":1618,"✦":1624,"✧":1626,"✩":1686,"✪":1616,"✫":1722,"✬":1686,"✭":1706,"✮":1671,"✯":1702,"✰":1890,"✱":1524,"✲":1481,"✳":1534,"✴":1618,"✵":1622,"✶":1423,"✷":1589,"✸":1573,"✹":1622,"✺":1554,"✻":1448,"✼":1450,"✽":1397,"✾":1436,"✿":1692,"❀":1669,"❁":1616,"❂":1616,"❃":1448,"❄":1407,"❅":1425,"❆":1411,"❇":1610,"❈":1612,"❊":1620,"❋":1608,"❍":1788,"❏":1561,"❐":1561,"❑":1554,"❒":1554,"❖":1606,"❘":283,"❙":567,"❚":850,"❛":803,"❜":803,"❝":1368,"❞":1368,"❡":1499,"❢":1114,"❣":1114,"❤":1864,"❦":1556,"❧":1556,"➔":1831,"➘":1532,"➙":1892,"➚":1532,"➛":1880,"➜":1898,"➝":1901,"➞":1901,"➠":1788,"➡":1696,"➢":1892,"➣":1892,"➤":1878,"➥":1905,"➦":1907,"➧":948,"➨":1808,"➩":1712,"➪":1712,"➫":1776,"➬":1776,"➭":1425,"➮":1425,"➯":1790,"➱":1790,"➲":1556,"➳":1937,"➴":1579,"➵":1772,"➶":1579,"➷":1819,"➸":1980,"➹":1819,"➺":1702,"➻":1788,"➼":1898,"➽":1987,"➾":1880,匭:2036,憁:2050,鐧:2044},glyphsByWidth:{455:"ijlĩīĭįĵĺļľłſǰΐίιϊϳ‘’‚‛′ⅰⅼ",569:" \t\n\r!,./:;I[\\]ft ·ÌÍÎÏìíîïĨĪĬĮİıţŧƒƫƭǀǃǏǐȈȉȊȋͺ;΄΅·ΙΪ ․‧⁅⁆Ⅰ∖⋮",682:"()-`r¡¨²³´¸¹ŕŗřȑȓ ‐‑“”„‟‹›⁃⁰⁴⁵⁶⁷⁸⁹⁺⁻⁼ⁿ₀₁₂₃₄₅₆₇₈₉₊₋₌",1024:"J_cksvxyz¯çýÿćĉċčĴķśŝşšŷźżžƙƛƨƶǩγλνϲ –‗‾ℎℏⅴⅹⅽ☇☈。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ᅠᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ│←↑→↓■○",1124:"∈∉∊∋∌∍∎∝∞⊢⊣⊤⊥⊨⊩⊪⊬⊭⊮⊰⊱⊲⊳⊴⊵⊹⊺⋄⋆⌀⌂⌃⌄⌅⌆⌇⌌⌍⌎⌏⌐⌑⌔⌕⌖⌙⌚⌛⌜⌝⌞⌟⌬⌭⌮⌯⌰⌱⌲⌳⌴⌵✌",1139:"#$0123456789?Labdeghnopqu¢£¤¥§«µ»àáâãäåèéêëðñòóôõöùúûüþāăąđēĕėęěĝğġģĥħĹĻĽĿŁńņňŋōŏőũūŭůűųƀƃƄƅƌƞơƥƻƼƾƿǎǒǔǖǘǚǜǝǟǡǥǧǫǭǵǻȁȃȅȇȍȏȕȗήηθοό ‒†‡‥‽₠₡₢₣₤₦₧₫€ℙ℮Ⅼⅾ",1149:"∧∨∩∪∴∵∷⊌⊍⊎⊓⊔⋀⋁⋂⋃⋎⋏⋔",1196:"+<=>~¬±×÷−∓∔∟∠∡∢∸∹∺∻∼∽∾∿≁≂≃≄≅≆≇≈≉≊≋≌≍≎≏≐≑≒≓≖≗≘≙≚≛≜≝≞≟≠≡≢≣≤≥≦≧≨≩≬≭≮≯≰≱≲≳≴≵≶≷≸≹≺≻≼≽≾≿⊀⊁⊻⊼⊽⊾⊿⋍⋖⋗⋚⋛⋜⋝⋞⋟⋠⋡⋦⋧⋨⋩⋪⋫⋬⋭",1229:"ϰ∀∁∃∄√∛∜⌶⌷⌸⌹⌺⌻⌼⌽⌾⌿⍀⍁⍂⍃⍄⍅⍆⍇⍈⍉⍊⍋⍌⍍⍎⍏⍐⍑⍒⍓⍔⍕⍖⍗⍘⍙⍚⍛⍜⍝⍞⍟⍠⍡⍢⍣⍤⍥⍦⍧⍨⍩⍪⍫⍬⍭⍮⍯⍰⍱⍲⍳⍴⍵⍶⍷⍸⍹⍺⎕─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋╌╍╎╏═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳╴╵╶╷╸╹╺╻╼╽╾╿▀▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▐░▒▓▔▕■□▢▣▤▥▦▧▨▩▪▫▬▭▮▯▰▱▲△▴▵▶▷▸▹►▻▼▽▾▿◀◁◂◃◄◅◆◇◈◉◊○◌◍◎●◐◑◒◓◔◕◖◗◘◙◚◛◜◝◞◟◠◡◢◣◤◥◦◧◨◩◪◫◬◭◮◯☡",1251:"FTZ¿ßøŢŤŦŹŻŽƑƮƵǿΖΤϭ℄ℤℲ",1366:"&ABEKPSVXYÀÁÂÃÄÅÈÉÊËÝÞĀĂĄĒĔĖĘĚĶŚŜŞŠŶŸƎƘƧƲǍǞǠǨǺȀȂȄȆΆΑΒΕΚΛΡΥΧΫℂ℈ℝ℞℟KÅⅤⅩ❥",1389:"π⊂⊃⊄⊅⊆⊇⊈⊉⊊⊋⊏⊐",1460:"←↑→↓↔↕↖↗↘↙↚↛↜↝↞↟↠↡↢↣↤↥↦↧↨↩↪↫↬↯↰↱↲↳↴↵↶↷↸↹↼↽↾↿⇀⇁⇂⇃⇄⇅⇆⇇⇈⇉⇊⇋⇌⇍⇏⇐⇑⇒⇓⇕⇖⇗⇘⇙⇚⇛⇞⇟⇠⇡⇢⇣⇤⇥⇦⇧⇨⇩⇪∑⊶⊷⊸⌢⌣❉",1479:"CDHNRUwÇÐÑÙÚÛÜĆĈĊČĎĐĤĦŃŅŇŔŖŘŨŪŬŮŰŲŵƆƉƝƦǓǕǗǙǛȐȒȔȖΗΝΠϚℍℕℚ℣ⅭⅮↁ♠♤",1536:"☀☂☃☠☢☣☮☯☸☹☺☻☼☽☾♫♬",1593:"GOQÒÓÔÕÖØĜĞĠĢŌŎŐƟLjnjǑǤǦǪǬǴǾȌȎΌΘΟ℔",1614:"✣✤❶❷❸❹❺❻❼❽❾❿➀➁➂➃➄➅➆➇➈➉➊➋➌➍➎➏➐➑➒➓",1638:"↺↻∅⊕⊖⊗⊘⊙⊚⊛⊜⊝⊞⊟⊠⊡⌒⌓☉☊☋☌☍☪☭",1708:"¼½¾⅓⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞⅟➟"},defaultWidth:2048},"LXGW WenKai":{fontFamily:"LXGW WenKai",fontWeight:400,fontStyle:"normal",unitsPerEm:1e3,metrics:{ascender:928,descender:-256,lineGap:0},glyphs:{"%":800,"&":700,"@":784,B:650,D:728,F:582,H:700,J:492,K:630,L:547,M:855,P:618,R:635,S:617,V:620,W:880,b:573,f:370,j:301,m:816,p:572,q:576,r:430,t:360,v:490,w:730,z:490,"¢":556,"£":713,"§":675,"©":780,ª:320,"®":780,"°":320,º:320,Æ:900,Ð:728,Þ:618,ß:610,æ:900,ð:622,þ:572,Ď:728,Đ:728,đ:583,Ĥ:700,Ħ:700,IJ:492,Ĵ:492,ĵ:301,Ķ:630,ĸ:445,Ĺ:547,Ļ:547,Ľ:547,ľ:302,Ŀ:547,ŀ:300,Ł:547,Œ:945,œ:948,Ŕ:635,ŕ:430,Ŗ:635,ŗ:430,Ř:635,ř:430,Ś:617,Ŝ:617,Ş:617,Š:617,ţ:360,ť:360,ŧ:360,Ŵ:880,ŵ:730,ź:490,ż:490,ž:490,ſ:370,ƀ:573,Ɓ:677,Ƃ:629,ƃ:573,Ƅ:604,ƅ:523,Ɔ:725,Ɖ:728,Ɗ:766,Ƌ:629,ƍ:556,Ɛ:627,Ƒ:582,Ɣ:620,ƕ:883,Ɩ:314,Ƙ:669,ƛ:534,Ɯ:816,Ƣ:869,ƣ:683,ƥ:572,Ʀ:635,Ƨ:617,Ʃ:557,ƪ:430,ƫ:360,ƭ:360,Ʊ:762,ƶ:490,Ʒ:552,Ƹ:552,ƹ:540,ƺ:491,ƽ:512,ƾ:540,ƿ:572,ǀ:351,ǁ:351,DŽ:1310,Dž:1200,dž:1037,LJ:983,Lj:776,lj:541,NJ:1203,Nj:1004,nj:855,Ǣ:900,ǣ:900,Ǩ:630,ǩ:542,Ǯ:552,ǯ:540,ǰ:301,DZ:1310,Dz:1200,dz:1037,Ƕ:1004,Ƿ:556,Ǽ:900,ǽ:900,Ȑ:635,ȑ:430,Ȓ:635,ȓ:430,Ș:617,ț:360,ȝ:456,Ȟ:700,Ƞ:675,ȡ:625,Ȣ:627,ȣ:586,ȥ:490,ȴ:318,ȵ:637,ȶ:360,ȷ:301,ȸ:880,ȹ:880,Ƚ:547,ɀ:490,Ɂ:570,ɂ:511,Ƀ:650,Ʌ:620,Ɉ:492,ɉ:301,Ɋ:788,ɋ:576,Ɍ:635,ɍ:430,Ͱ:568,ͱ:464,Ͳ:617,ʹ:200,"͵":200,ͷ:583,Ϳ:492,"΄":286,"΅":424,Έ:727,Ή:790,Ί:383,Ό:811,Ύ:759,Ώ:821,ΐ:294,Β:636,Γ:573,Δ:650,Η:701,Κ:630,Μ:855,Ξ:599,Π:627,Ρ:618,Σ:557,Φ:737,Ψ:754,Ω:755,ί:294,ΰ:558,β:565,γ:480,δ:556,ζ:514,θ:570,ι:294,κ:501,λ:534,ν:515,ξ:528,ο:568,ρ:578,ς:516,σ:572,τ:446,υ:558,φ:621,χ:486,ψ:611,ω:687,ϊ:294,ϋ:558,ό:568,ύ:558,ώ:687,Ϗ:630,ϒ:644,ϓ:759,ϔ:644,ϕ:574,ϖ:668,ϗ:586,ϛ:516,Ϝ:573,ϝ:476,Ϟ:585,ϟ:560,Ϡ:625,ϡ:675,ϰ:586,ϱ:578,ϳ:301,ϵ:522,"϶":522,Ϸ:618,ϸ:572,Ϻ:817,ϻ:639,ϼ:578,Ͻ:725,Ͽ:725," ":333," ":250," ":167," ":200," ":100,"":0,"•":392,"′":286,"″":388,"‴":520,"‶":388,"‷":520,"⁂":900,"⁄":330,"⁒":330,ⁱ:180,ⁿ:340,ₐ:320,ₑ:320,ₒ:320,ₓ:300,ₔ:330,ₕ:320,ₖ:305,ₗ:180,ₘ:457,ₙ:340,ₚ:320,ₛ:300,ₜ:300,"₠":700,"₣":582,"₤":713,"₨":1099,"₩":880,"₪":802,"€":750,"₭":630,"₯":1069,"₱":618,"₴":617,"₶":595,"₷":637,"₹":554,"₺":649,"₻":781,"₼":754,"₽":618,"₿":650,ℏ:618,ℓ:557,"℞":633,"℠":810,"™":790,"℩":294,Ⅎ:596,"⅂":547,"⅃":596,ⅎ:476,"∂":630,"∏":627,"∑":557,"√":640,"∛":640,"∜":640,"⍳":294,"⍴":578,"⍵":687,"⍸":294,"⍹":687,"⏨":635,"❛":371,"❜":371,"❝":648,"❞":648,"❟":371,"❠":648,"〪":0,"〫":0,"〬":0,"〭":0,"゙":0,"゚":0},glyphsByWidth:{263:"ilìíîïĩīĭįıĺļƚǐȉȋ",304:"IÌÍÎÏĨĪĬĮİłƗǏȈȊΙΪ",350:" !\"'(),-./:;[\\]{|} ¡¦·ijǃͺ;· ‘’‚‛“”„‟−∕∖⋅\t\n\r",380:"²³¹⁰⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎",500:"*_`xy¨¯´¸ýÿŷƒƴȳɏ ‒‵‾⁑∁∊∍⌃❲❳〿。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ᅠᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ│←↑→↓■○",510:"ksķśŝşšƙƨșȿέε",530:"c¤«»çćĉċčƈȼͻͼͽϐϑϲ‹›⃀⍷",543:"eèéêëēĕėęěǝȅȇȩɇήη",562:"oòóôõöøōŏőơǒǫǭǿȍȏȫȭȯȱμϙ",575:"adàáâãäåāăąďƌǎǟǡǻȁȃȧ₫",577:"TŢŤŦƬƮȚȾͳΤπ₮₸",580:"gĝğġģǥǧǵάαℊ⍶⍺",588:"hnñĥħńņňʼnŋƞǹȟℎ",590:"u¬µùúûüũūŭůűųưǔǖǘǚǜȕȗ",600:"#$+0123456789<=>?XYZ^~¥±¿×Ý÷ŶŸŹŻŽƳƵƻƼǂȜȤȲɎΖΥΧΫ ‽₰⅄↊↋ㆴㆵㆶㆷㆻ",638:"E¶ÈÉÊËĒĔĖĘĚƎƤȄȆȨɆΕ",690:"AÀÁÂÃÄÅĀĂĄǍǞǠǺȀȂȦȺΆΑΛ₳",703:"CÇĆĈĊČƇƏȻϚϹϾ₡₢₵₾",710:"UÙÚÛÜŨŪŬŮŰŲƯƲǓǕǗǙǛȔȖɄ",738:"NÑŃŅŇŊƝǸͶΝ₦",745:"OQÒÓÔÕÖØŌŎŐƟƠǑǪǬǾȌȎȪȬȮȰΘΟϘϴΩ℧",752:"GĜĞĠĢƓǤǦǴ₲⅁"},defaultWidth:1e3},"Source Han Sans":{fontFamily:"Source Han Sans",fontWeight:400,fontStyle:"normal",unitsPerEm:1e3,metrics:{ascender:880,descender:-120,lineGap:500},glyphs:{" ":224,"\t":224,"\n":224,"\r":224,"!":323,'"':475,"%":921,"&":680,"'":278,"(":338,")":338,"*":467,",":278,"-":347,".":278,"/":392,":":278,";":278,"?":474,"@":946,B:657,C:638,D:687,E:588,F:552,G:689,H:728,I:293,J:536,K:646,L:542,M:812,N:722,P:632,R:635,S:597,T:599,V:575,W:878,X:573,Y:531,Z:603,"[":338,"\\":392,"]":338,_:559,b:618,c:509,d:620,e:554,f:325,g:563,i:275,j:275,k:552,l:285,m:926,n:611,p:620,q:620,r:388,s:468,t:377,v:521,w:802,x:498,y:521,z:474,"{":338,"|":269,"}":338,"¡":323,"¦":269,"©":832,ª:385,"«":479,"®":473,"°":370,"²":410,"³":410,µ:628,"·":561,"¹":410,º:407,"»":479,"¼":872,"½":903,"¾":889,"¿":474,Æ:918,Ç:638,È:588,É:588,Ê:588,Ë:588,Ì:293,Í:293,Î:293,Ï:293,Ð:712,Ñ:722,Ý:531,Þ:651,ß:642,æ:877,ç:509,è:554,é:554,ê:554,ë:554,ì:275,í:275,î:275,ï:275,ð:608,ñ:611,ý:521,þ:620,ÿ:521,Đ:712,đ:620,Ē:588,ē:554,Ě:588,ě:554,Ĩ:293,ĩ:275,Ī:293,ī:275,Ń:722,ń:611,Ň:722,ň:611,Œ:947,œ:937,Ư:736,Ǐ:293,ǐ:275,Ǹ:722,ǹ:611,Β:657,Γ:557,Δ:657,Ε:588,Ζ:603,Η:728,Ι:293,Κ:646,Λ:575,Μ:812,Ν:722,Ξ:595,Π:720,Ρ:632,Σ:601,Τ:599,Υ:531,Φ:803,Χ:573,Ψ:780,Ω:758,α:625,β:631,γ:540,δ:594,ε:501,ζ:473,η:604,θ:583,ι:292,κ:551,λ:552,μ:628,ν:528,ξ:481,ο:597,π:654,ρ:613,σ:610,τ:513,υ:569,φ:759,χ:537,ψ:769,ω:782,"‒":536,"—":894,"‚":278,"„":475,"•":339,"′":278,"″":475,"‹":302,"›":302,"‼":613,"⁇":910,"⁈":758,"⁉":758,ℓ:457,"№":997,"™":711,℮:894,"✓":683,"〪":0,"〫":0,"〬":0,"〭":0,"〮":250,"〯":250},glyphsByWidth:{500:" 。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ│←↑→↓■○",555:"#$+0123456789<=>^~¢£¤¥¬ƒ₩€",564:"aàáâãäåāăǎ",606:"`o¨¯´¸òóôõöøōŏơǒ",607:"AhuÀÁÂÃÄÅùúûüĀĂũūŭưǍǔǖǘǚǜΑ",721:"UÙÚÛÜŨŪŬǓǕǗǙǛ",742:"OQÒÓÔÕÖØŌŎƠǑΘΟ",920:"ㄱㄲㄳㄴㄵㄶㄷㄸㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅃㅄㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣㅥㅦㅧㅨㅩㅪㅫㅬㅭㅮㅯㅰㅱㅲㅳㅴㅵㅶㅷㅸㅹㅺㅻㅼㅽㅾㅿㆀㆁㆂㆃㆄㆅㆆㆇㆈㆉㆊㆋㆌㆍㆎ"},defaultWidth:1e3,kerning:{'",':-128,'".':-128,'"A':-61,'"J':-106,'"S':-11,'"X':-11,'"c':-33,'"d':-33,'"e':-33,'"o':-33,'"q':-33,'"s':-22,"',":-128,"'.":-128,"'A":-61,"'J":-106,"'S":-11,"'X":-11,"'c":-33,"'d":-33,"'e":-33,"'o":-33,"'q":-33,"'s":-22,"(J":-22,"(j":89,',"':-107,",'":-107,",*":-154,",T":-110,",U":-22,",V":-73,",W":-38,",Y":-103,",c":-13,",d":-13,",e":-13,",j":29,",o":-13,",q":-13,",t":-51,",v":-38,",w":-25,",y":-22,"-J":-22,"-S":-19,"-T":-53,"-V":-21,"-W":-11,"-X":-30,"-Y":-74,"-Z":-22,"-t":-29,"-v":-8,"-x":-15,'."':-107,".'":-107,".*":-154,".T":-110,".U":-22,".V":-73,".W":-38,".Y":-103,".c":-13,".d":-13,".e":-13,".j":29,".o":-13,".q":-13,".t":-51,".v":-38,".w":-25,".y":-22,"/A":-45,"/C":-11,"/G":-11,"/J":-89,"/O":-11,"/Q":-11,"/a":-27,"/c":-35,"/d":-35,"/e":-35,"/g":-11,"/i":29,"/j":29,"/o":-35,"/q":-35,"/t":10,"/u":-22,":*":-55,":Y":-29,":j":4,";*":-55,";Y":-29,";j":4,'A"':-61,"A'":-61,"A*":-105,"A?":-29,AA:-7,AC:-11,AG:-11,AO:-11,AQ:-11,AT:-61,AU:-17,AV:-15,AX:4,AY:-15,AZ:-8,"A\\":-45,Aa:26,Af:-11,As:26,At:-15,Au:-7,Av:-8,Aw:-4,Ax:-4,Ay:-8,"B*":-34,BJ:-18,BS:-15,BT:-27,BV:-6,BW:-4,BX:-4,BY:-15,BZ:-4,Bt:-11,Bv:-15,Bw:-11,Bx:-11,By:-15,"C-":-29,CC:-32,CG:-32,CJ:-11,CO:-32,CQ:-32,CS:-27,CT:-20,CU:-15,CV:-4,CW:-4,CX:-4,CY:-8,CZ:-11,Cg:-22,Ct:-30,Cu:-11,Cv:-15,Cw:-11,Cy:-15,"D*":-38,"D/":-20,DA:-11,DJ:-44,DT:-27,DV:-11,DW:-7,DX:-19,DY:-22,DZ:-22,Dx:-15,Dz:-8,Ec:-11,Ed:-11,Ee:-11,Eo:-11,Eq:-11,Et:-27,Ev:-11,Ex:-34,Ey:-11,"F,":-81,"F.":-81,"F/":-78,FA:-42,FC:-11,FG:-11,FJ:-155,FO:-11,FQ:-11,FS:-22,FV:4,FW:4,FX:-27,FZ:-34,Fa:-38,Fc:-15,Fd:-15,Fe:-15,Fg:-27,Fm:-22,Fn:-22,Fo:-15,Fp:-22,Fq:-15,Fr:-22,Fs:-22,Ft:-11,Fu:-18,Fv:-22,Fw:-18,Fx:-29,Fy:-18,Fz:-33,"G*":-31,GA:-4,GT:-22,GV:-15,GW:-4,"J,":-27,"J.":-27,JJ:-45,'K"':-23,"K'":-23,"K*":-45,"K-":-33,"K?":-8,KA:-11,KC:-22,KG:-22,KO:-22,KQ:-22,KS:-10,KT:-19,KU:-15,KV:-14,KW:-11,KY:-18,Kc:-8,Kd:-8,Ke:-8,Kj:-11,Ko:-8,Kq:-8,Kt:-37,Ku:-16,Kv:-22,Kw:-18,Kx:-18,Ky:-22,Kz:-15,'L"':-99,"L'":-99,"L*":-170,"L-":-60,"L?":-36,LA:3,LC:-29,LG:-29,LO:-29,LQ:-29,LS:-25,LT:-134,LU:-32,LV:-85,LW:-63,LY:-85,"L\\":-89,Lc:-13,Ld:-13,Le:-13,Lf:-15,Lg:-4,Lo:-13,Lq:-13,Lt:-22,Lu:-11,Lv:-40,Lw:-38,Ly:-40,"O*":-38,"O/":-20,OA:-11,OJ:-44,OT:-27,OV:-11,OW:-7,OX:-19,OY:-22,OZ:-22,Ox:-15,Oz:-8,"P,":-125,"P-":-37,"P.":-125,"P/":-85,PA:-56,PJ:-164,PS:-11,PT:-27,PX:-27,PY:-11,PZ:-87,Pa:-48,Pc:-27,Pd:-27,Pe:-27,Pg:-34,Po:-27,Pq:-27,Ps:-11,Px:-15,Pz:-22,"Q*":-38,"Q/":-20,QA:-11,QJ:-44,QT:-27,QV:-11,QW:-7,QX:-19,QY:-22,QZ:-22,Qx:-15,Qz:-8,"R*":-11,"R-":-35,RA:-4,RJ:-20,RS:-15,RT:-15,RV:6,RW:7,RX:-4,RZ:-11,Ra:-4,Rc:-11,Rd:-11,Re:-11,Rg:-4,Ro:-11,Rq:-11,Rx:-8,Rz:-8,"S*":-18,"S-":15,SJ:-15,SS:-15,ST:-22,SY:-15,St:-27,"T,":-119,"T-":-81,"T.":-119,"T/":-100,"T:":-22,"T;":-22,TA:-45,TC:-27,TG:-27,TJ:-141,TO:-27,TQ:-27,TS:-44,TX:-22,TY:-15,TZ:-60,Ta:-81,Tc:-74,Td:-74,Te:-74,Tf:-20,Tg:-81,Tm:-52,Tn:-52,To:-74,Tp:-52,Tq:-74,Tr:-52,Ts:-66,Tt:-20,Tu:-52,Tv:-37,Tw:-38,Tx:-44,Ty:-37,Tz:-84,"U,":-18,"U.":-18,"U/":-35,UA:-18,UJ:-53,US:-11,UV:-4,UX:-11,UY:-15,Ua:-4,Ug:-11,Us:-4,Ux:-8,"V,":-73,"V-":-21,"V.":-73,"V/":-52,VA:-15,VC:-11,VG:-11,VJ:-81,VO:-11,VQ:-11,VS:-11,VU:-11,VV:11,VZ:-21,Va:-25,Vc:-17,Vd:-17,Ve:-17,Vg:-24,Vm:-22,Vn:-22,Vo:-17,Vp:-22,Vq:-17,Vr:-22,Vs:-14,Vu:-34,Vv:-10,Vw:-10,Vx:-17,Vy:-10,Vz:-28,"W,":-38,"W-":-11,"W.":-38,"W/":-33,WC:-7,WG:-7,WJ:-73,WO:-7,WQ:-7,WS:-7,WZ:-7,Wa:-18,Wg:-14,Wz:-11,'X"':-11,"X'":-11,"X*":-11,"X-":-30,XA:3,XC:-19,XG:-19,XO:-19,XQ:-19,XS:-15,XT:-22,XU:-11,Xa:-11,Xc:-8,Xd:-8,Xe:-8,Xf:-18,Xo:-8,Xq:-8,Xt:-18,Xu:-11,Xv:-18,Xw:-15,Xx:-11,Xy:-18,Xz:-15,"Y,":-101,"Y-":-74,"Y.":-101,"Y/":-75,"Y:":-28,"Y;":-28,"Y?":-8,YA:-15,YC:-15,YG:-15,YJ:-112,YO:-15,YQ:-15,YS:-18,YT:-15,YU:-11,YZ:-29,Ya:-75,Yc:-46,Yd:-46,Ye:-46,Yg:-67,Ym:-45,Yn:-45,Yo:-46,Yp:-45,Yq:-46,Yr:-45,Ys:-46,Yt:-31,Yu:-38,Yv:-15,Yw:-27,Yx:-38,Yy:-15,Yz:-53,"Z-":-38,ZA:-7,ZC:-22,ZG:-22,ZJ:-37,ZO:-22,ZQ:-22,ZS:-34,ZU:-11,ZV:-7,ZW:-7,ZY:-15,ZZ:-18,Za:-18,Zc:-24,Zd:-24,Ze:-24,Zf:-22,Zg:-16,Zo:-24,Zq:-24,Zt:-15,Zu:-26,Zv:-18,Zw:-18,Zx:-27,Zy:-18,"[J":-22,"[j":89,"\\T":-96,"\\U":-33,"\\V":-59,"\\W":-33,"\\Y":-81,"\\g":37,"\\j":81,"\\v":-22,"\\w":-11,"\\y":14,"a*":-60,"a?":-14,aT:-27,aV:-18,aW:-4,aY:-27,at:-15,'b"':-33,"b'":-33,"b*":-29,"b,":-11,"b-":7,"b.":-11,"b?":-14,bT:-64,bV:-21,bX:-4,bY:-52,"b\\":-29,ba:-16,bt:-19,bv:-4,bw:-4,bx:-19,by:-4,bz:-6,"c-":-22,cT:-22,cV:-15,cY:-27,ca:-11,cc:-24,cd:-24,ce:-24,cg:-11,co:-24,cq:-24,ct:-11,cv:7,cw:7,cx:9,cy:7,"e*":-38,"e-":11,"e?":-8,eJ:-22,eS:-22,eT:-27,eV:-18,eW:-11,eY:-29,"e\\":-22,ea:-16,eg:-11,et:-11,ev:5,ew:5,ex:-8,ey:5,"f!":16,'f"':45,"f'":45,"f)":55,"f,":-56,"f-":-15,"f.":-56,"f/":-16,"f?":29,fT:52,fV:74,fW:52,fX:37,fY:66,"f\\":70,"f]":55,fa:-22,fc:-11,fd:-11,fe:-11,fg:-16,fj:-11,fo:-11,fq:-11,fs:-4,fv:14,fx:-4,fz:-15,"f}":55,"g)":16,"g*":-37,"g/":53,"g?":-40,gT:-29,gY:-15,"g]":16,ga:-18,gc:-15,gd:-15,ge:-15,gj:41,go:-15,gq:-15,gv:-4,gw:-4,gy:17,gz:-15,"g}":16,"h*":-38,"h?":-8,hT:-27,hV:-11,hY:-18,"k*":-24,"k,":14,"k-":-49,"k.":14,"k:":14,"k;":14,"k?":-14,kT:-39,kY:-13,ka:-11,kc:-20,kd:-20,ke:-20,kg:-11,kj:-11,ko:-20,kq:-20,kt:-23,ku:-15,kx:-8,kz:-8,lj:9,"m*":-38,"m?":-8,mT:-27,mV:-11,mY:-18,"n*":-38,"n?":-8,nT:-27,nV:-11,nY:-18,'o"':-33,"o'":-33,"o*":-29,"o,":-11,"o-":7,"o.":-11,"o?":-14,oT:-64,oV:-21,oX:-4,oY:-52,"o\\":-29,oa:-16,ot:-19,ov:-4,ow:-4,ox:-19,oy:-4,oz:-6,'p"':-33,"p'":-33,"p*":-29,"p,":-11,"p-":7,"p.":-11,"p?":-14,pT:-64,pV:-21,pX:-4,pY:-52,"p\\":-29,pa:-16,pt:-19,pv:-4,pw:-4,px:-19,py:-4,pz:-6,"q*":-27,qT:-22,qV:-15,qY:-34,"r,":-63,"r-":-27,"r.":-63,"r/":-38,"r:":29,"r;":29,rA:-15,rJ:-61,rZ:-11,"r\\":14,ra:-27,rc:-11,rd:-11,re:-11,rg:-11,ro:-11,rq:-11,rs:-4,rv:29,rw:21,ry:29,rz:-4,"s*":-55,"s-":11,"s?":-12,sT:-27,sV:-11,sY:-22,st:-22,"t,":7,"t-":-29,"t.":7,"t/":11,"t:":16,"t;":16,"t?":-29,tT:-15,tY:-4,ta:-24,tc:-15,td:-15,te:-15,tg:-11,to:-15,tq:-15,ts:-11,tt:-22,tx:-18,"u*":-27,uT:-22,uV:-15,uY:-34,"v*":-13,"v,":-38,"v-":-8,"v.":-38,"v/":-22,vA:-13,vJ:-45,vT:-22,vV:-10,vY:-15,vZ:-11,va:-22,vc:-4,vd:-4,ve:-4,vj:-11,vo:-4,vq:-4,vz:-27,"w*":-13,"w,":-45,"w.":-45,"w/":-8,wA:-4,wJ:-34,wT:-27,wV:-10,wX:-15,wY:-27,wa:-11,wc:-4,wd:-4,we:-4,wj:-11,wo:-4,wq:-4,wz:-19,"x!":-15,"x*":-25,"x,":8,"x-":-15,"x.":-8,"x;":8,xC:-11,xG:-11,xO:-11,xQ:-11,xS:-4,xT:-37,xV:-17,xX:-11,xY:-38,xa:-11,xc:-19,xd:-19,xe:-19,xo:-19,xq:-19,xt:-27,"y,":-38,"y.":-38,"y/":-16,yJ:-45,yT:-22,yV:-4,yX:-4,yY:-8,ya:-22,yc:-4,yd:-4,ye:-4,yj:-11,yo:-4,yq:-4,yx:-15,yz:-27,"z-":-18,zT:-29,zY:-33,za:-26,zc:-11,zd:-11,ze:-11,zg:-7,zo:-11,zq:-11,zu:-11,zv:-4,zy:-4,"{J":-22,"{j":89}},"Source Han Serif":{fontFamily:"Source Han Serif",fontWeight:400,fontStyle:"normal",unitsPerEm:1e3,metrics:{ascender:1151,descender:-286,lineGap:0},glyphs:{" ":258,"\t":258,"\n":258,"\r":258,"!":303,'"':367,"#":567,"%":935,"&":780,"'":189,"(":361,")":361,"*":479,"+":576,",":326,"-":338,".":326,"/":348,":":326,";":326,"<":576,"=":576,">":576,"?":438,"@":901,B:675,C:690,D:772,E:655,F:629,G:742,H:859,I:401,J:402,K:723,L:640,M:979,N:798,P:637,R:707,S:557,T:653,V:726,W:1047,X:702,Y:688,Z:599,"[":341,"\\":348,"]":341,"^":576,_:555,"`":435,b:627,c:529,d:617,e:549,f:385,g:560,h:655,i:325,j:301,k:592,l:324,m:976,n:658,p:630,q:602,r:454,s:470,t:354,v:546,w:829,x:564,y:551,z:496,"{":375,"|":270,"}":375,"~":576,"¡":303,"¤":542,"¦":270,"¨":435,"©":822,ª:376,"«":524,"¬":576,"®":498,"¯":435,"°":350,"²":395,"³":395,"´":435,µ:619,"·":326,"¸":435,"¹":395,º:404,"»":524,"¼":935,"½":935,"¾":935,"¿":438,Æ:997,Ç:690,È:655,É:655,Ê:655,Ë:655,Ì:401,Í:401,Î:401,Ï:401,Ð:772,Ñ:798,Ý:688,Þ:659,ß:636,æ:852,ç:529,è:549,é:549,ê:549,ë:549,ì:325,í:325,î:325,ï:325,ð:591,ñ:658,ý:551,þ:608,ÿ:551,Đ:772,đ:617,Ē:655,ē:549,Ě:655,ě:549,Ĩ:401,ĩ:325,Ī:401,ī:325,Ń:798,ń:658,Ň:798,ň:658,Œ:1012,œ:949,Ǐ:401,ǐ:325,Ǹ:798,ǹ:658,Β:675,Γ:608,Δ:688,Ε:655,Ζ:599,Η:859,Ι:401,Κ:723,Λ:716,Μ:979,Ν:798,Ξ:636,Π:844,Ρ:637,Σ:591,Τ:653,Υ:688,Φ:770,Χ:702,Ψ:822,Ω:797,α:604,β:616,γ:529,δ:565,ε:455,ζ:450,ι:303,κ:571,λ:570,μ:619,ν:529,ξ:471,ο:563,π:645,ρ:591,ς:495,σ:636,τ:522,υ:586,φ:754,χ:527,ψ:776,ω:788,"‒":555,"—":882,"‚":229,"„":436,"′":265,"″":449,"‹":309,"›":309,"‼":584,"⁇":832,"⁉":713,ℓ:495,"№":1089,"™":780,℮:870,"−":576,"✓":646,"〪":0,"〫":0,"〬":0,"〭":0,"〮":250,"〯":250,"゙":0,"゚":0},glyphsByWidth:{500:" 。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ│←↑→↓■○",539:"$0123456789¢£¥ƒ₩₫€",552:"aàáâãäåāăǎθ",594:"oòóôõöøōŏơǒη",639:"uùúûüũūŭưǔǖǘǚǜ",719:"AÀÁÂÃÄÅĀĂǍΑ⁈",769:"OQÒÓÔÕÖØŌŎƠǑΘΟ",792:"UÙÚÛÜŨŪŬƯǓǕǗǙǛ",966:"ㄱㄲㄳㄴㄵㄶㄷㄸㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅃㅄㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣㅥㅦㅧㅨㅩㅪㅫㅬㅭㅮㅯㅰㅱㅲㅳㅴㅵㅶㅷㅸㅹㅺㅻㅼㅽㅾㅿㆀㆁㆂㆃㆄㆅㆆㆇㆈㆉㆊㆋㆌㆍㆎ"},defaultWidth:1e3,kerning:{'",':-114,'".':-114,'"/':-86,'"A':-133,'"C':-27,'"G':-27,'"J':-10,'"O':-27,'"Q':-27,'"S':-10,'"T':32,'"U':-4,'"a':-32,'"c':-43,'"d':-43,'"e':-43,'"f':-5,'"g':-56,'"m':-8,'"n':-8,'"o':-43,'"p':-19,'"q':-43,'"r':-8,'"s':-32,'"z':-10,"#/":-32,"#A":-41,"#C":14,"#G":14,"#O":14,"#Q":14,"#V":-21,"#W":-21,"#Y":-5,"#f":-5,"#g":-7,"#t":10,"#v":5,"#w":5,"#y":5,"&)":-21,"&,":-7,"&-":-25,"&.":-7,"&J":-8,"&T":-59,"&U":-30,"&V":-68,"&W":-63,"&Y":-63,"&]":-21,"&c":-10,"&d":-10,"&e":-10,"&o":-10,"&q":-10,"&}":-21,"',":-114,"'.":-114,"'/":-86,"'A":-133,"'C":-27,"'G":-27,"'J":-10,"'O":-27,"'Q":-27,"'S":-10,"'T":32,"'U":-4,"'a":-32,"'c":-43,"'d":-43,"'e":-43,"'f":-5,"'g":-56,"'m":-8,"'n":-8,"'o":-43,"'p":-19,"'q":-43,"'r":-8,"'s":-32,"'z":-10,"(#":-21,"(&":-21,"((":-54,"()":13,"(-":-43,"(:":-43,"(;":-43,"(A":-32,"(C":-21,"(G":-21,"(J":36,"(O":-21,"(Q":-21,"(S":-10,"(U":-10,"([":-54,"(]":13,"(c":-30,"(d":-30,"(e":-30,"(f":-5,"(j":106,"(m":-16,"(n":-16,"(o":-30,"(q":-30,"(r":-16,"(s":-21,"(t":-10,"(u":-23,"(v":-21,"(w":-21,"(x":-10,"(y":16,"(z":-10,"({":-54,"(}":13,"))":-54,"),":-43,").":-43,")A":-31,")T":-21,")U":-21,")V":-53,")W":-43,")X":-21,")Y":-43,")]":-54,")}":-54,"*,":-108,"*.":-108,"*A":-122,"*C":-10,"*G":-10,"*J":-21,"*O":-10,"*Q":-10,"*T":23,"*X":-7,"*a":-41,"*c":-27,"*d":-27,"*e":-27,"*f":-8,"*g":-46,"*m":-7,"*n":-7,"*o":-27,"*p":-10,"*q":-27,"*r":-7,"*s":-25,"*z":-14,',"':-86,",'":-86,",(":-54,",)":-48,",*":-141,",-":-43,",C":-59,",G":-59,",O":-59,",Q":-59,",T":-86,",U":-65,",V":-144,",W":-128,",Y":-127,",[":-54,",\\":-141,",]":-48,",a":-21,",c":-32,",d":-32,",e":-32,",g":-21,",j":8,",o":-32,",p":-32,",q":-32,",s":-16,",t":-43,",u":-45,",v":-97,",w":-97,",y":-43,",z":-21,",{":-54,",}":-48,"-)":-43,"-,":-53,"-.":-53,"-/":-32,"-A":-32,"-C":10,"-G":10,"-J":-21,"-M":-10,"-N":-10,"-O":10,"-Q":10,"-T":-44,"-U":-10,"-V":-85,"-W":-75,"-X":-43,"-Y":-76,"-Z":-10,"-\\":-43,"-]":-43,"-b":-3,"-c":10,"-d":10,"-e":10,"-f":-7,"-g":5,"-h":-3,"-k":-3,"-l":-3,"-o":10,"-q":10,"-v":-7,"-w":-7,"-x":-21,"-y":-8,"-}":-43,'."':-86,".'":-86,".(":-54,".)":-48,".*":-141,".-":-43,".C":-59,".G":-59,".O":-59,".Q":-59,".T":-86,".U":-65,".V":-144,".W":-128,".Y":-127,".[":-54,".\\":-141,".]":-48,".a":-21,".c":-32,".d":-32,".e":-32,".g":-21,".j":8,".o":-32,".p":-32,".q":-32,".s":-16,".t":-43,".u":-45,".v":-97,".w":-97,".y":-43,".z":-21,".{":-54,".}":-48,"/#":-21,"/,":-148,"/-":-65,"/.":-148,"//":-82,"/A":-76,"/T":5,"/V":13,"/W":13,"/a":-35,"/c":-32,"/d":-32,"/e":-32,"/g":-35,"/m":-19,"/n":-19,"/o":-32,"/p":-19,"/q":-32,"/r":-19,"/s":-21,"/u":-14,"/x":-10,"/z":-21,":T":-5,":U":-10,":V":-32,":W":-32,":X":-7,":Y":-54,":c":-3,":d":-3,":e":-3,":o":-3,":q":-3,";T":-5,";U":-10,";V":-32,";W":-32,";X":-7,";Y":-54,";c":-3,";d":-3,";e":-3,";o":-3,";q":-3,"?)":-33,"?,":-121,"?.":-121,"?/":-76,"?]":-33,"?}":-33,"@,":-16,"@.":-16,"@A":-6,"@C":5,"@G":5,"@O":5,"@Q":5,"@V":-3,"@W":-3,"@X":-3,"@Y":-5,"@_":-86,"@b":-13,"@f":-5,"@g":-10,"@h":-13,"@k":-13,"@l":-13,"@p":-8,"@y":5,'A"':-122,"A'":-122,"A(":-20,"A)":-32,"A*":-117,"A-":-34,AA:10,AB:-10,AC:-38,AD:-10,AE:-10,AF:-10,AG:-38,AH:-10,AI:-10,AJ:-13,AK:-10,AL:-10,AM:-7,AN:-7,AO:-38,AP:-10,AQ:-38,AR:-10,AT:-63,AU:-72,AV:-132,AW:-108,AY:-97,"A[":-20,"A\\":-65,"A]":-32,Aa:-4,Ac:-19,Ad:-19,Ae:-19,Ag:-3,Aj:-8,Ao:-19,Ap:-30,Aq:-19,At:-21,Au:-21,Av:-57,Aw:-57,Ay:-48,"A{":-20,"A}":-32,'B"':-21,"B'":-21,"B)":-16,"B*":-10,"B,":-29,"B.":-29,"B/":-19,BA:-32,BB:-27,BC:-7,BD:-27,BE:-27,BF:-27,BG:-7,BH:-27,BI:-27,BJ:-11,BK:-27,BL:-27,BM:-16,BN:-16,BO:-7,BP:-27,BQ:-7,BR:-27,BT:-21,BU:-32,BV:-54,BW:-40,BX:-32,BY:-54,BZ:-7,"B\\":-16,"B]":-16,B_:-27,Bb:-10,Bf:-16,Bh:-10,Bk:-10,Bl:-10,Bp:-10,Bu:-16,Bv:-18,Bw:-18,Bx:-10,By:-8,"B}":-16,'C"':21,"C'":21,"C)":3,"C*":3,"C@":5,CU:-10,CV:-10,CW:-10,CY:-21,"C]":3,C_:-7,Cp:-10,Cu:-10,"C}":3,'D"':-3,"D'":-3,"D)":-21,"D,":-45,"D-":3,"D.":-45,"D/":-30,"D@":16,DA:-57,DB:-28,DC:10,DD:-28,DE:-28,DF:-28,DG:10,DH:-28,DI:-28,DJ:-10,DK:-28,DL:-28,DM:-21,DN:-21,DO:10,DP:-28,DQ:10,DR:-28,DT:-19,DU:-21,DV:-48,DW:-51,DX:-43,DY:-65,DZ:-8,"D\\":-16,"D]":-21,D_:-76,Db:-10,Dg:-10,Dh:-10,Dk:-10,Dl:-10,Dp:-10,Ds:-10,Dx:-10,"D}":-21,EU:-15,EV:-15,EW:-15,EY:-15,Eg:-7,Ep:-19,Eu:-10,Ev:-19,Ew:-19,Ey:-21,'F"':13,"F&":-8,"F'":13,"F(":-10,"F*":10,"F,":-103,"F-":-21,"F.":-103,"F/":-65,"F:":-5,"F;":-5,"F@":-22,FA:-77,FB:-10,FC:-9,FD:-10,FE:-10,FF:-10,FG:-9,FH:-10,FI:-10,FK:-10,FL:-10,FO:-9,FP:-10,FQ:-9,FR:-10,FT:10,"F[":-10,"F\\":14,F_:-130,Fa:-43,Fb:-3,Fc:-46,Fd:-46,Fe:-46,Ff:-30,Fg:-67,Fh:-3,Fi:-8,Fk:-3,Fl:-3,Fm:-21,Fn:-21,Fo:-46,Fp:-43,Fq:-46,Fr:-21,Fs:-47,Fu:-21,Fv:-21,Fw:-21,Fx:-32,Fy:-21,Fz:-32,"F{":-10,"G(":10,"G)":-5,"G,":-8,"G-":23,"G.":-8,"G/":-16,"G@":13,GA:-10,GB:-8,GC:10,GD:-8,GE:-8,GF:-8,GG:10,GH:-8,GI:-8,GK:-8,GL:-8,GO:10,GP:-8,GQ:10,GR:-8,GT:-8,GU:-15,GV:-38,GW:-38,GX:-19,GY:-48,GZ:-8,"G[":10,"G]":-5,G_:-41,Gp:-10,"G{":10,"G}":-5,HC:-23,HG:-23,HO:-23,HQ:-23,Ha:-21,Hc:-25,Hd:-25,He:-25,Hf:-18,Hg:-18,Ho:-25,Hp:-34,Hq:-25,Hs:-21,Ht:-10,Hu:-25,Hv:-40,Hw:-40,Hy:-30,IC:-23,IG:-23,IO:-23,IQ:-23,Ia:-21,Ic:-25,Id:-25,Ie:-25,If:-18,Ig:-18,Io:-25,Ip:-34,Iq:-25,Is:-21,It:-10,Iu:-25,Iv:-40,Iw:-40,Iy:-30,"J,":-57,"J-":-10,"J.":-57,"J/":-30,"J:":-23,"J;":-23,"J@":-14,JA:-41,JC:-10,JG:-10,JO:-10,JQ:-10,JS:-8,J_:-79,Ja:-26,Jc:-25,Jd:-25,Je:-25,Jf:-40,Jg:-32,Ji:-8,Jj:-8,Jm:-27,Jn:-27,Jo:-25,Jp:-41,Jq:-25,Jr:-27,Js:-30,Jt:-19,Ju:-32,Jv:-32,Jw:-32,Jx:-21,Jy:-30,Jz:-21,"K-":-32,KA:10,KC:-30,KG:-30,KJ:-16,KO:-30,KQ:-30,KU:-10,KV:-8,KW:-8,KY:-10,KZ:8,Ka:-8,Kc:-21,Kd:-21,Ke:-21,Kg:-10,Ko:-21,Kp:-30,Kq:-21,Kt:-21,Ku:-21,Kv:-59,Kw:-59,Ky:-52,'L"':-141,"L'":-141,"L)":-27,"L*":-108,LB:-18,LC:-16,LD:-18,LE:-18,LF:-18,LG:-16,LH:-18,LI:-18,LJ:-18,LK:-18,LL:-18,LM:-7,LN:-7,LO:-16,LP:-18,LQ:-16,LR:-18,LS:-16,LT:-77,LU:-48,LV:-117,LW:-101,LX:-16,LY:-108,LZ:-16,"L\\":-59,"L]":-27,Lf:-7,Lp:-18,Lt:-8,Lu:-22,Lv:-41,Lw:-41,Ly:-32,"L}":-27,MC:-23,MG:-23,MO:-23,MQ:-23,Ma:-21,Mc:-25,Md:-25,Me:-25,Mf:-18,Mg:-18,Mo:-25,Mp:-34,Mq:-25,Ms:-21,Mt:-10,Mu:-25,Mv:-40,Mw:-40,My:-30,"N,":-32,"N-":-3,"N.":-32,"N/":-33,"N:":-14,"N;":-14,NA:-39,NB:-8,NC:-17,ND:-8,NE:-8,NF:-8,NG:-17,NH:-8,NI:-8,NK:-8,NL:-8,NO:-17,NP:-8,NQ:-17,NR:-8,NS:-8,NU:-10,NX:-10,NZ:-3,N_:-59,Na:-14,Nc:-11,Nd:-11,Ne:-11,Nf:-21,Ng:-21,Nm:-10,Nn:-10,No:-11,Np:-22,Nq:-11,Nr:-10,Ns:-11,Nt:-10,Nu:-21,Nv:-21,Nw:-21,Nx:-19,Ny:-21,Nz:-21,'O"':-27,"O'":-27,"O)":-21,"O*":-10,"O,":-43,"O-":10,"O.":-43,"O/":-21,"O@":21,OA:-38,OB:-23,OC:10,OD:-23,OE:-23,OF:-23,OG:10,OH:-23,OI:-23,OJ:-8,OK:-23,OL:-23,OM:-16,ON:-16,OO:10,OP:-23,OQ:10,OR:-23,OT:-8,OU:-19,OV:-38,OW:-29,OX:-32,OY:-43,"O\\":-7,"O]":-21,O_:-59,"O}":-21,'P"':10,"P&":-6,"P'":10,"P)":-9,"P*":23,"P,":-111,"P-":-5,"P.":-111,"P/":-54,"P:":8,"P;":8,PA:-66,PB:-10,PD:-10,PE:-10,PF:-10,PH:-10,PI:-10,PJ:-10,PK:-10,PL:-10,PP:-10,PR:-10,PS:7,PT:10,PU:-21,PV:-10,PW:-10,PX:-21,PY:-23,PZ:10,"P\\":10,"P]":-9,P_:-155,Pa:-5,Pb:-3,Pc:-21,Pd:-21,Pe:-21,Pg:-21,Ph:-3,Pk:-3,Pl:-3,Pm:-7,Pn:-7,Po:-21,Pq:-21,Pr:-7,Ps:-3,Pt:16,Pv:8,Pw:8,Py:16,"P}":-9,'Q"':-27,"Q'":-27,"Q)":-21,"Q*":-10,"Q,":-43,"Q-":10,"Q.":-43,"Q/":-21,"Q@":21,QA:-38,QB:-23,QC:10,QD:-23,QE:-23,QF:-23,QG:10,QH:-23,QI:-23,QJ:-8,QK:-23,QL:-23,QM:-16,QN:-16,QO:10,QP:-23,QQ:10,QR:-23,QT:-8,QU:-19,QV:-38,QW:-29,QX:-32,QY:-43,"Q\\":-7,"Q]":-21,Q_:-59,"Q}":-21,'R"':-43,"R'":-43,"R*":-14,"R-":-16,RA:10,RC:-20,RG:-20,RJ:-10,RO:-20,RQ:-20,RT:-32,RU:-35,RV:-59,RW:-52,RX:7,RY:-52,RZ:7,"R\\":-21,R_:18,Rc:-10,Rd:-10,Re:-10,Ro:-10,Rp:-14,Rq:-10,Rt:-10,Ru:-14,Rv:-21,Rw:-21,Ry:-21,"S)":-10,"S,":-21,"S.":-21,"S/":-16,"S@":5,SA:-19,SB:-7,SD:-7,SE:-7,SF:-7,SH:-7,SI:-7,SJ:-8,SK:-7,SL:-7,SM:-7,SN:-7,SP:-7,SR:-7,SS:-8,ST:-10,SU:-27,SV:-29,SW:-27,SX:-10,SY:-32,"S]":-10,S_:-43,Sb:-7,Sf:-16,Sg:-7,Sh:-7,Sk:-7,Sl:-7,Sp:-10,St:-10,Su:-10,Sv:-19,Sw:-19,Sx:-8,Sy:-19,"S}":-10,'T"':32,"T'":32,"T(":-21,"T*":23,"T,":-86,"T-":-44,"T.":-86,"T/":-50,"T:":-5,"T;":-5,"T@":-21,TA:-70,TC:-8,TG:-8,TO:-8,TQ:-8,TT:10,TU:-10,TX:-3,TZ:7,"T[":-21,"T\\":27,T_:-88,Ta:-43,Tc:-73,Td:-73,Te:-73,Tf:-10,Tg:-43,Tm:-32,Tn:-32,To:-73,Tp:-72,Tq:-73,Tr:-32,Ts:-54,Tu:-30,Tv:-43,Tw:-43,Tx:-38,Ty:-43,Tz:-65,"T{":-21,"U&":-14,"U(":-21,"U)":-10,"U,":-86,"U-":-14,"U.":-86,"U/":-60,"U:":-14,"U;":-14,UA:-79,UB:-21,UC:-28,UD:-21,UE:-21,UF:-21,UG:-28,UH:-21,UI:-21,UJ:-15,UK:-21,UL:-21,UM:-10,UN:-10,UO:-28,UP:-21,UQ:-28,UR:-21,US:-19,UT:-10,UU:-21,UV:-18,UW:-7,UX:-10,UZ:-9,"U[":-21,"U]":-10,U_:-90,Ua:-43,Ub:-7,Uc:-32,Ud:-32,Ue:-32,Uf:-21,Ug:-43,Uh:-7,Ui:-19,Uj:-8,Uk:-7,Ul:-7,Um:-27,Un:-27,Uo:-32,Up:-46,Uq:-32,Ur:-27,Us:-43,Ut:-21,Uu:-32,Uv:-25,Uw:-25,Ux:-35,Uy:-32,Uz:-38,"U{":-21,"U}":-10,"V&":-42,"V(":-54,"V,":-166,"V-":-80,"V.":-166,"V/":-95,"V:":-43,"V;":-43,"V@":-52,VA:-122,VC:-48,VG:-48,VO:-48,VQ:-48,VS:-21,VU:-10,VZ:-10,"V[":-54,"V\\":13,V_:-171,Va:-86,Vb:-5,Vc:-79,Vd:-79,Ve:-79,Vf:-54,Vg:-90,Vh:-5,Vi:-30,Vj:-21,Vk:-5,Vl:-5,Vm:-63,Vn:-63,Vo:-79,Vp:-78,Vq:-79,Vr:-63,Vs:-92,Vt:-32,Vu:-65,Vv:-43,Vw:-43,Vx:-76,Vy:-65,Vz:-68,"V{":-54,"W&":-33,"W(":-43,"W,":-133,"W-":-70,"W.":-133,"W/":-97,"W:":-43,"W;":-43,"W@":-52,WA:-114,WC:-41,WG:-41,WM:-7,WN:-7,WO:-41,WQ:-41,WS:-21,WU:-10,WZ:-10,"W[":-43,"W\\":13,W_:-142,Wa:-79,Wb:-5,Wc:-81,Wd:-81,We:-81,Wf:-43,Wg:-90,Wh:-5,Wi:-21,Wj:-21,Wk:-5,Wl:-5,Wm:-54,Wn:-54,Wo:-81,Wp:-76,Wq:-81,Wr:-54,Ws:-78,Wt:-28,Wu:-59,Wv:-46,Ww:-46,Wx:-59,Wy:-46,Wz:-68,"W{":-43,"X(":-21,"X*":-7,"X-":-46,"X:":-7,"X;":-7,XC:-32,XG:-32,XO:-32,XQ:-32,XT:-10,XU:-10,XZ:7,"X[":-21,Xa:-3,Xc:-33,Xd:-33,Xe:-33,Xj:-16,Xo:-33,Xp:-34,Xq:-33,Xs:-10,Xt:-32,Xu:-43,Xv:-70,Xw:-70,Xy:-52,"X{":-21,"Y&":-41,"Y(":-54,"Y,":-113,"Y-":-86,"Y.":-113,"Y/":-97,"Y:":-65,"Y;":-65,"Y@":-52,YA:-96,YC:-54,YG:-54,YO:-54,YQ:-54,YS:-43,"Y[":-54,"Y\\":14,Y_:-119,Ya:-84,Yb:-5,Yc:-100,Yd:-100,Ye:-100,Yf:-65,Yg:-104,Yh:-5,Yi:-43,Yj:-27,Yk:-5,Yl:-5,Ym:-72,Yn:-72,Yo:-100,Yp:-97,Yq:-100,Yr:-72,Ys:-89,Yt:-65,Yu:-89,Yv:-76,Yw:-76,Yx:-68,Yy:-76,Yz:-92,"Y{":-54,"Z@":5,ZC:-7,ZG:-7,ZO:-7,ZQ:-7,ZT:-10,ZU:-20,ZV:-10,ZW:-10,ZY:-10,Zp:-10,Zu:-14,Zv:-27,Zw:-27,Zy:-27,"[#":-21,"[&":-21,"[(":-54,"[)":13,"[-":-43,"[:":-43,"[;":-43,"[A":-32,"[C":-21,"[G":-21,"[J":36,"[O":-21,"[Q":-21,"[S":-10,"[U":-10,"[[":-54,"[]":13,"[c":-30,"[d":-30,"[e":-30,"[f":-5,"[j":106,"[m":-16,"[n":-16,"[o":-30,"[q":-30,"[r":-16,"[s":-21,"[t":-10,"[u":-23,"[v":-21,"[w":-21,"[x":-10,"[y":16,"[z":-10,"[{":-54,"[}":13,'\\"':-86,"\\'":-86,"\\,":16,"\\-":-21,"\\.":16,"\\C":-32,"\\G":-32,"\\J":76,"\\O":-32,"\\Q":-32,"\\T":-65,"\\U":-57,"\\V":-103,"\\W":-90,"\\Y":-86,"\\\\":-82,"\\g":5,"\\j":93,"\\t":-10,"\\u":-5,"\\v":-21,"\\w":-21,"\\y":32,"])":-54,"],":-43,"].":-43,"]A":-31,"]T":-21,"]U":-21,"]V":-53,"]W":-43,"]X":-21,"]Y":-43,"]]":-54,"]}":-54,_C:-59,_G:-59,_J:35,_O:-59,_Q:-59,_S:-21,_T:-88,_U:-108,_V:-163,_W:-152,_Y:-119,_a:-16,_c:-54,_d:-54,_e:-54,_o:-54,_p:-23,_q:-54,_s:-19,_t:-54,_u:-51,_v:-79,_w:-79,_y:-64,'a"':-67,"a'":-67,"a*":-48,"a-":-10,"a?":-3,aA:7,aB:-7,aC:-14,aD:-7,aE:-7,aF:-7,aG:-14,aH:-7,aI:-7,aJ:-19,aK:-7,aL:-7,aO:-14,aP:-7,aQ:-14,aR:-7,aT:-59,aU:-55,aV:-105,aW:-97,aY:-86,"a\\":-46,ag:-8,am:-4,an:-4,ap:-19,ar:-4,av:-19,aw:-19,ay:-10,'b"':-43,"b'":-43,"b)":-14,"b*":-27,"b,":-27,"b-":10,"b.":-27,"b/":-19,"b:":-3,"b;":-3,"b?":-3,bA:-43,bB:-23,bD:-23,bE:-23,bF:-23,bH:-23,bI:-23,bJ:-25,bK:-23,bL:-23,bM:-8,bN:-8,bP:-23,bR:-23,bS:-7,bT:-65,bU:-41,bV:-81,bW:-70,bX:-21,bY:-81,"b\\":-21,"b]":-14,b_:-54,bb:-7,bh:-7,bk:-7,bl:-7,bp:-8,bt:-7,bu:-7,bx:-19,by:-10,"b}":-14,'c"':-5,"c'":-5,"c*":-3,"c,":-3,"c.":-3,cA:-10,cB:-14,cD:-14,cE:-14,cF:-14,cH:-14,cI:-14,cJ:-21,cK:-14,cL:-14,cP:-14,cR:-14,cT:-43,cU:-32,cV:-73,cW:-65,cX:-21,cY:-65,"c\\":-5,c_:-27,cb:-10,ch:-10,ck:-10,cl:-10,cp:-10,'d"':-23,"d&":-13,"d'":-23,"d)":-3,"d*":-21,"d-":-5,"d?":-5,dJ:-3,dT:-23,dU:-26,dV:-43,dW:-38,dY:-45,"d\\":-5,"d]":-3,da:-8,dg:-8,dp:-18,du:-10,dv:-10,dw:-10,dy:-10,"d}":-3,'e"':-21,"e'":-21,"e)":-16,"e*":-21,"e,":-29,"e.":-29,"e/":-8,"e?":-3,eA:-19,eB:-10,eD:-10,eE:-10,eF:-10,eH:-10,eI:-10,eJ:-21,eK:-10,eL:-10,eP:-10,eR:-10,eT:-52,eU:-32,eV:-71,eW:-63,eX:-21,eY:-77,"e\\":-21,"e]":-16,e_:-43,ea:-7,eb:-10,ef:-7,eh:-10,ek:-10,el:-10,ep:-8,ev:-7,ew:-7,ey:-7,"e}":-16,"f!":41,'f"':84,"f'":84,"f)":97,"f*":57,"f,":-38,"f-":-13,"f.":-38,"f/":-18,"f?":39,fA:-7,fB:18,fD:18,fE:18,fF:18,fH:18,fI:18,fJ:26,fK:18,fL:18,fM:42,fN:42,fP:18,fR:18,fS:25,fT:58,fU:42,fV:58,fW:58,fX:51,fY:58,fZ:42,"f\\":104,"f]":97,f_:-23,fb:-10,fc:-17,fd:-17,fe:-17,fg:-5,fh:-10,fi:25,fj:25,fk:-10,fl:-10,fo:-17,fq:-17,fu:-10,fv:10,fw:10,fy:10,"f}":97,"g&":-21,"g-":-3,"g/":14,"g?":-5,gB:-7,gD:-7,gE:-7,gF:-7,gH:-7,gI:-7,gJ:52,gK:-7,gL:-7,gM:-5,gN:-5,gP:-7,gR:-7,gT:-27,gU:-34,gV:-43,gW:-43,gY:-72,"g\\":-16,ga:-19,gb:-13,gc:-8,gd:-8,ge:-8,gg:-8,gh:-13,gj:20,gk:-13,gl:-13,go:-8,gq:-8,gv:4,gw:4,gy:9,'h"':-59,"h'":-59,"h)":-14,"h*":-72,"h?":-7,hB:-5,hC:-3,hD:-5,hE:-5,hF:-5,hG:-3,hH:-5,hI:-5,hJ:-21,hK:-5,hL:-5,hO:-3,hP:-5,hQ:-3,hR:-5,hT:-63,hU:-35,hV:-92,hW:-84,hY:-76,"h\\":-54,"h]":-14,hp:-15,ht:-4,hu:-4,hv:-27,hw:-27,hy:-27,"h}":-14,"i!":-5,'i"':-7,"i&":-5,"i'":-7,"i*":-5,"i?":-7,iB:-5,iD:-5,iE:-5,iF:-5,iH:-5,iI:-5,iK:-5,iL:-5,iP:-5,iR:-5,iT:-21,iU:-21,iV:-21,iW:-21,iY:-21,ip:-11,iv:-15,iw:-15,iy:-15,'j"':-5,"j&":-5,"j'":-5,"j*":-5,"j,":-16,"j.":-16,"j/":-13,"j:":-14,"j;":-14,"j?":-3,jA:-14,jB:-7,jC:-3,jD:-7,jE:-7,jF:-7,jG:-3,jH:-7,jI:-7,jK:-7,jL:-7,jO:-3,jP:-7,jQ:-3,jR:-7,jU:-26,jV:-18,jW:-18,jX:-10,jY:-21,j_:-35,jb:-3,jg:-10,jh:-3,jk:-3,jl:-3,jp:-3,"k)":-10,"k*":-3,"k-":-21,"k:":-3,"k;":-3,"k?":-5,kA:16,kB:-5,kC:-4,kD:-5,kE:-5,kF:-5,kG:-4,kH:-5,kI:-5,kJ:-21,kK:-5,kL:-5,kO:-4,kP:-5,kQ:-4,kR:-5,kT:-43,kU:-43,kV:-72,kW:-59,kX:5,kY:-76,kZ:8,"k\\":-3,"k]":-10,kc:-19,kd:-19,ke:-19,ko:-19,kp:-10,kq:-19,ks:-7,"k}":-10,'l"':-23,"l&":-13,"l'":-23,"l)":-3,"l*":-21,"l-":-5,"l?":-5,lJ:-3,lT:-23,lU:-26,lV:-43,lW:-38,lY:-45,"l\\":-5,"l]":-3,la:-8,lg:-8,lp:-18,lu:-10,lv:-10,lw:-10,ly:-10,"l}":-3,'m"':-59,"m'":-59,"m)":-14,"m*":-72,"m?":-7,mB:-5,mC:-3,mD:-5,mE:-5,mF:-5,mG:-3,mH:-5,mI:-5,mJ:-21,mK:-5,mL:-5,mO:-3,mP:-5,mQ:-3,mR:-5,mT:-63,mU:-35,mV:-92,mW:-84,mY:-76,"m\\":-54,"m]":-14,mp:-15,mt:-4,mu:-4,mv:-27,mw:-27,my:-27,"m}":-14,'n"':-59,"n'":-59,"n)":-14,"n*":-72,"n?":-7,nB:-5,nC:-3,nD:-5,nE:-5,nF:-5,nG:-3,nH:-5,nI:-5,nJ:-21,nK:-5,nL:-5,nO:-3,nP:-5,nQ:-3,nR:-5,nT:-63,nU:-35,nV:-92,nW:-84,nY:-76,"n\\":-54,"n]":-14,np:-15,nt:-4,nu:-4,nv:-27,nw:-27,ny:-27,"n}":-14,'o"':-43,"o'":-43,"o)":-14,"o*":-27,"o,":-27,"o-":10,"o.":-27,"o/":-19,"o:":-3,"o;":-3,"o?":-3,oA:-43,oB:-23,oD:-23,oE:-23,oF:-23,oH:-23,oI:-23,oJ:-25,oK:-23,oL:-23,oM:-8,oN:-8,oP:-23,oR:-23,oS:-7,oT:-65,oU:-41,oV:-81,oW:-70,oX:-21,oY:-81,"o\\":-21,"o]":-14,o_:-54,ob:-7,oh:-7,ok:-7,ol:-7,op:-8,ot:-7,ou:-7,ox:-19,oy:-10,"o}":-14,'p"':-43,"p'":-43,"p)":-14,"p*":-27,"p,":-27,"p-":10,"p.":-27,"p/":-19,"p:":-3,"p;":-3,"p?":-3,pA:-43,pB:-23,pD:-23,pE:-23,pF:-23,pH:-23,pI:-23,pJ:-25,pK:-23,pL:-23,pM:-8,pN:-8,pP:-23,pR:-23,pS:-7,pT:-65,pU:-41,pV:-81,pW:-70,pX:-21,pY:-81,"p\\":-21,"p]":-14,p_:-54,pb:-7,ph:-7,pk:-7,pl:-7,pp:-8,pt:-7,pu:-7,px:-19,py:-10,"p}":-14,'q"':-25,"q&":-3,"q'":-25,"q)":10,"q*":-23,"q,":32,"q.":13,"q/":10,"q;":33,"q?":-3,qA:-14,qB:-23,qD:-23,qE:-23,qF:-23,qH:-23,qI:-23,qJ:33,qK:-23,qL:-23,qM:-16,qN:-16,qP:-23,qR:-23,qT:-54,qU:-45,qV:-86,qW:-72,qX:-5,qY:-86,"q\\":-14,"q]":10,q_:-3,qa:-8,qb:-7,qh:-7,qj:39,qk:-7,ql:-7,qy:19,"q}":10,'r"':5,"r&":-11,"r'":5,"r)":-25,"r*":16,"r,":-93,"r-":-32,"r.":-93,"r/":-52,"r:":-8,"r;":-8,"r?":-5,"r@":-13,rA:-60,rB:-25,rD:-25,rE:-25,rF:-25,rH:-25,rI:-25,rJ:-30,rK:-25,rL:-25,rM:-16,rN:-16,rP:-25,rR:-25,rT:-5,rU:-30,rV:-51,rW:-43,rX:-59,rY:-52,"r]":-25,r_:-71,ra:-10,rb:-10,rc:-14,rd:-14,re:-14,rg:-14,rh:-10,rk:-10,rl:-10,ro:-14,rq:-14,rs:-8,rt:18,rv:10,rw:10,ry:10,"r}":-25,'s"':-21,"s'":-21,"s)":-14,"s*":-14,"s,":-23,"s.":-23,sA:-10,sB:-21,sD:-21,sE:-21,sF:-21,sH:-21,sI:-21,sJ:-27,sK:-21,sL:-21,sM:-10,sN:-10,sP:-21,sR:-21,sT:-35,sU:-25,sV:-76,sW:-65,sY:-94,"s\\":-25,"s]":-14,s_:-41,sb:-10,sf:-4,sh:-10,sk:-10,sl:-10,sp:-9,"s}":-14,'t"':5,"t'":5,"t-":-10,tA:16,tJ:-10,tU:-13,tV:-43,tW:-32,tY:-48,tZ:7,t_:13,tt:7,tv:8,tw:8,'u"':-40,"u'":-40,"u)":-23,"u*":-38,"u:":-10,"u;":-10,uC:-13,uG:-13,uJ:-29,uO:-13,uQ:-13,uT:-41,uU:-40,uV:-83,uW:-76,uY:-78,"u\\":-21,"u]":-23,uc:-7,ud:-7,ue:-7,ug:-10,uj:-7,uo:-7,up:-11,uq:-7,uv:-21,uw:-21,uy:-21,"u}":-23,'v"':-3,"v&":-17,"v'":-3,"v)":-36,"v*":-3,"v,":-101,"v-":-14,"v.":-101,"v/":-43,"v:":-3,"v;":-3,"v?":-5,"v@":-8,vA:-71,vB:-27,vD:-27,vE:-27,vF:-27,vH:-27,vI:-27,vJ:-41,vK:-27,vL:-27,vM:-21,vN:-21,vP:-27,vR:-27,vT:-14,vU:-25,vV:-54,vW:-45,vX:-54,vY:-59,vZ:-6,"v]":-36,v_:-84,va:-15,vb:-23,vc:-19,vd:-19,ve:-19,vg:-19,vh:-23,vk:-23,vl:-23,vo:-19,vq:-19,vs:-9,vt:7,vv:11,vw:11,vy:11,"v}":-36,'w"':-3,"w&":-17,"w'":-3,"w)":-36,"w*":-3,"w,":-101,"w-":-14,"w.":-101,"w/":-43,"w:":-3,"w;":-3,"w?":-5,"w@":-8,wA:-71,wB:-27,wD:-27,wE:-27,wF:-27,wH:-27,wI:-27,wJ:-41,wK:-27,wL:-27,wM:-21,wN:-21,wP:-27,wR:-27,wT:-14,wU:-25,wV:-54,wW:-45,wX:-54,wY:-59,wZ:-6,"w]":-36,w_:-84,wa:-15,wb:-23,wc:-19,wd:-19,we:-19,wg:-19,wh:-23,wk:-23,wl:-23,wo:-19,wq:-19,ws:-9,wt:7,wv:11,ww:11,wy:11,"w}":-36,"x)":-14,"x-":-25,xA:7,xC:-8,xG:-8,xJ:-19,xO:-8,xQ:-8,xT:-30,xU:-32,xV:-76,xW:-54,xY:-68,"x]":-14,xa:-11,xc:-19,xd:-19,xe:-19,xg:-8,xo:-19,xp:-19,xq:-19,xx:5,"x}":-14,'y"':-3,"y&":-17,"y'":-3,"y)":-36,"y*":-3,"y,":-101,"y-":-14,"y.":-101,"y/":-43,"y:":-3,"y;":-3,"y?":-5,"y@":-8,yA:-71,yB:-27,yD:-27,yE:-27,yF:-27,yH:-27,yI:-27,yJ:-41,yK:-27,yL:-27,yM:-21,yN:-21,yP:-27,yR:-27,yT:-14,yU:-25,yV:-54,yW:-45,yX:-54,yY:-59,yZ:-6,"y]":-36,y_:-84,ya:-15,yb:-23,yc:-19,yd:-19,ye:-19,yg:-19,yh:-23,yk:-23,yl:-23,yo:-19,yq:-19,ys:-9,yt:7,yv:11,yw:11,yy:11,"y}":-36,"z)":-10,"z*":-5,zT:-16,zU:-27,zV:-65,zW:-56,zY:-61,"z]":-10,zp:-8,"z}":-10,"{#":-21,"{&":-21,"{(":-54,"{)":13,"{-":-43,"{:":-43,"{;":-43,"{A":-32,"{C":-21,"{G":-21,"{J":36,"{O":-21,"{Q":-21,"{S":-10,"{U":-10,"{[":-54,"{]":13,"{c":-30,"{d":-30,"{e":-30,"{f":-5,"{j":106,"{m":-16,"{n":-16,"{o":-30,"{q":-30,"{r":-16,"{s":-21,"{t":-10,"{u":-23,"{v":-21,"{w":-21,"{x":-10,"{y":16,"{z":-10,"{{":-54,"{}":13,"})":-54,"},":-43,"}.":-43,"}A":-31,"}T":-21,"}U":-21,"}V":-53,"}W":-43,"}X":-21,"}Y":-43,"}]":-54,"}}":-54}}},Yc=new Set;let qc,Gc=null;function Xc(t,{fontFamily:e,fontSize:n,fontWeight:i,lineHeight:r}){const o=t.split(/\r?\n/),s=da(e),a=i||"normal",l=function(t,e){if(null==e)return 1.4*t;if("string"==typeof e){const n=e.trim();if(n.endsWith("px")){const e=Number.parseFloat(n);return Number.isFinite(e)?e:1.4*t}e=Number(n)}return"number"==typeof e&&Number.isFinite(e)?e>4?e:e*t:1.4*t}(n,r),c=function(){if("undefined"==typeof document)return null;if(void 0!==qc)return qc;const t=document.createElement("canvas");return qc=t.getContext("2d"),qc}();if(c){c.font=`${a} ${n}px ${s}`;const t=o.reduce((t,e)=>{const n=c.measureText(e);return Math.max(t,n.width)},0);return{width:t,height:l*Math.max(o.length,1)}}const h="undefined"==typeof document?null:document.body?Gc||(Gc=document.createElement("span"),Gc.style.position="absolute",Gc.style.top="-10000px",Gc.style.left="-10000px",Gc.style.visibility="hidden",Gc.style.pointerEvents="none",Gc.style.whiteSpace="pre",Gc.style.display="inline-block",Gc.style.padding="0",Gc.style.margin="0",document.body.appendChild(Gc),Gc):null;if(!h)return null;h.style.fontFamily=s,h.style.fontSize=`${n}px`,h.style.fontWeight=String(a),h.style.lineHeight=`${l}px`,h.textContent=t;const u=h.getBoundingClientRect();return t&&u.width<=0&&u.height<=0?null:{width:u.width,height:u.height}}function Kc(t="",e){var n;if(e.width&&e.height)return{width:e.width,height:e.height};if("string"!=typeof t&&"number"!=typeof t)return{width:0,height:0};const{fontFamily:i=Aa,fontSize:r=14,fontWeight:o="normal",lineHeight:s=1.4}=e,a=t.toString();!function(t){var e,n;const i=null===(n=null===(e=ua(t))||void 0===e?void 0:e.split(",")[0])||void 0===n?void 0:n.trim();if(!i||Yc.has(i))return;const r=Uc[i];r&&(wa(r),Yc.add(i))}(i);const l={fontFamily:i,fontSize:parseFloat(r.toString()),fontWeight:o,lineHeight:s},c=null!==(n=Xc(a,l))&&void 0!==n?n:Ca(a,Object.assign(Object.assign({},l),{fontFamily:ua(i)}));return{width:Math.ceil(c.width*Vc),height:Math.ceil(c.height*Vc)}}function Zc(t,e={}){const n=document.createElementNS("http://www.w3.org/2000/svg",t);return Jc(n,e),n}function Qc(t){const e=(new DOMParser).parseFromString(t,"image/svg+xml");if(e.querySelector("parsererror"))throw new Error("Invalid SVG string");return e.documentElement}function Jc(t,e){Object.entries(e).forEach(([e,n])=>{null==n?t.removeAttribute(e):t.setAttribute(e,n)})}function th(t,e,n=!0){return e.reduce((e,i)=>{const r=t.getAttribute(i);return(!n||null!==r&&""!==r&&void 0!==r)&&(e[i]=r),e},{})}function eh(t,e){if(!1===e(t))return;Array.from(t.children).forEach(t=>{eh(t,e)})}function nh(t,e="infographic-defs"){const n=t.querySelector(e?`defs#${e}`:"defs");if(n)return n;const i=Zc("defs");return e&&(i.id=e),t.prepend(i),i}var ih=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function rh(t){return Eh(t)?t.querySelector("span"):null}function oh(t,e){const{textContent:n,attributes:i}=e;if(void 0!==n&&ah(t,n),!i)return;const r=rh(t);let{width:o,height:s}=i;const a={};if(r){if(Object.assign(r.style,function(t){const{"font-size":e,"letter-spacing":n,"line-height":i,fill:r,"stroke-width":o,"font-family":s}=t,a=ih(t,["x","y","width","height","data-horizontal-align","data-vertical-align","font-size","letter-spacing","line-height","fill","stroke-width","text-anchor","dominant-baseline","font-family"]),l={overflow:"visible"};r&&(l.color=r);Object.entries(a).forEach(([t,e])=>{l[aa(t)]=e}),e&&(l.fontSize=`${e}px`);i&&(l.lineHeight="string"==typeof i&&i.endsWith("px")?i:+i);n&&(l.letterSpacing=`${n}px`);o&&(l.strokeWidth=`${o}px`);s&&(l.fontFamily=da(s));return l}(i)),!o||!s){const e=null!=n?n:sh(t),{fontFamily:i,fontSize:a,fontWeight:l,lineHeight:c}=r.style,h=a?parseFloat(String(a)):12,u=Kc(e,{fontFamily:i,fontSize:h,fontWeight:l,lineHeight:c.endsWith("px")?parseFloat(c):(parseFloat(c)||1.4)*h});o||t.hasAttribute("width")||(o=String(u.width)),s||t.hasAttribute("height")||(s=String(u.height))}const{"data-horizontal-align":e,"data-vertical-align":a}=i;Object.assign(r.style,function(t,e){const n={width:"100%",height:"100%",display:"flex",flexWrap:"wrap",wordBreak:"break-word",whiteSpace:"pre-wrap"};switch(t){case"LEFT":n.textAlign="left",n.justifyContent="flex-start";break;case"CENTER":n.textAlign="center",n.justifyContent="center";break;case"RIGHT":n.textAlign="right",n.justifyContent="flex-end"}switch(e){case"TOP":n.alignContent="flex-start",n.alignItems="flex-start";break;case"MIDDLE":n.alignContent="center",n.alignItems="center";break;case"BOTTOM":n.alignContent="flex-end",n.alignItems="flex-end"}return n}(e,a))}const{id:l,x:c,y:h}=i;l&&(a.id=l),void 0!==c&&(a.x=String(c)),void 0!==h&&(a.y=String(h)),void 0!==o&&(a.width=String(o)),void 0!==s&&(a.height=String(s)),Jc(t,a)}function sh(t){const e=rh(t);return e&&(e.innerText||e.textContent)||""}function ah(t,e){const n=rh(t);if(n)try{n.innerText=e}catch(t){n.textContent=e}}function lh(t){const e=rh(t);if(!e)return{};const{color:n,fontSize:i,fontFamily:r,justifyContent:o,alignContent:s,fontWeight:a}=e.style,[l,c]=function(t,e){let n="LEFT",i="TOP";switch(t){case"flex-start":n="LEFT";break;case"center":n="CENTER";break;case"flex-end":n="RIGHT"}switch(e){case"flex-start":i="TOP";break;case"center":i="MIDDLE";break;case"flex-end":i="BOTTOM"}return[n,i]}(o,s),h={"data-horizontal-align":l,"data-vertical-align":c};return r&&(h["font-family"]=ua(r)),a&&(h["font-weight"]=a),i&&(h["font-size"]=String(parseInt(i))),n&&(h.fill=n),{attributes:h,textContent:sh(t)}}const ch=(t,e)=>{var n;return(null===(n=null==t?void 0:t.dataset)||void 0===n?void 0:n.elementType)===e},hh=(t,e)=>t.tagName.toLowerCase()===e.toLowerCase(),uh=t=>ch(t,"title"),dh=t=>ch(t,"desc"),fh=t=>ch(t,"shape"),ph=t=>ch(t,"shapes-group"),gh=t=>ch(t,"illus"),mh=t=>t instanceof SVGElement&&hh(t,"text"),yh=t=>t instanceof SVGElement&&hh(t,"g"),vh=t=>ch(t,"item-icon"),xh=t=>ch(t,"item-icon-group"),bh=t=>ch(t,"item-label"),wh=t=>ch(t,"item-desc"),Mh=t=>ch(t,"item-value"),kh=t=>ch(t,"item-illus"),Ch=t=>ch(t,"btns-group"),Oh=t=>ch(t,"rough-element"),jh=t=>ch(t,"rough-volume");function Eh(t){return hh(t,"foreignObject")}function _h(t){const e=Lh(t);return["title","desc","item-label","item-desc"].includes(e)}function Sh(t){if(!t)return!1;if(!_h(t))return!1;const e=rh(t);return!!e&&e.hasAttribute("contenteditable")}function $h(t){const e=t.tagName.toLowerCase();return["rect","circle","ellipse","line","polygon","polyline","path"].includes(e)}function Ah(t){return vh(t)||xh(t)}function zh(t,e){t.setAttribute("data-element-type",e)}function Ph(t,e){return t.querySelector(`[data-element-type="${e}"]`)}function Lh(t){return Ah(t)?"item-icon":t.getAttribute("data-element-type")||"unknown"}var Ih=n("./node_modules/.pnpm/flru@1.0.2/node_modules/flru/dist/flru.mjs"),Th=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};const Rh=globalThis.fetch,Bh=(0,Ih.A)(1024),Wh=new Map;function Hh(t){const e=function(t){const e=Array.from(t.headers.entries());return 0===e.length?"":(e.sort(([t],[e])=>t.toLowerCase().localeCompare(e.toLowerCase())),e.map(([t,e])=>`${t.toLowerCase()}:${e}`).join("|"))}(t);return e?`${t.method}:${t.url}:${e}`:`${t.method}:${t.url}`}function Nh(t){return new Response(t.body.slice(0),t.init)}function Fh(t,e){return Th(this,void 0,void 0,function*(){const n=new Request(t,e);if("GET"!==n.method)return Rh(n);const i=Hh(n);if(Bh.has(i))return Nh(Bh.get(i));let r=Wh.get(i);r||(r=function(t,e){return Th(this,void 0,void 0,function*(){try{const n=yield Rh(t),i={body:yield n.arrayBuffer(),init:{status:n.status,statusText:n.statusText,headers:Array.from(n.headers.entries())}};return n.ok&&Bh.set(e,i),i}finally{Wh.delete(e)}})}(n,i),Wh.set(i,r));return Nh(yield r)})}function Dh(t){let e=0;if(0===t.length)return e.toString();for(let n=0;n<t.length;n++){e=(e<<5)-e+t.charCodeAt(n),e&=e}return Math.abs(e).toString()}const Vh=new WeakMap;function Uh(t){const{stroke:e,fill:n}=th(t,["fill","stroke"]);t.style.color=n||e||"currentColor"}function Yh(t){return"use"===t.tagName?t:t.querySelector("use")}function qh(t){const e=Yh(t);if(!e)return{};return th(e,["width","height","x","y","width","height","fill","fill-opacity","stroke","opacity"])}const Gh=!("undefined"==typeof process||!process.versions||!process.versions.node),Xh=t=>((t,e=",")=>t.split(e).map(t=>parseInt(t,10)))(t);function Kh(...t){return t.map(t=>t.replace(/^\/+|\/+$/g,"")).filter(t=>t.trim().length>0).join("/")}function Zh(t){const e=t.getAttribute("viewBox");if(e){const[t,n,i,r]=e.split(" ").map(Number);return{x:t,y:n,width:i,height:r}}const n=t.getAttribute("width"),i=t.getAttribute("height");return{x:0,y:0,width:Number(n)||0,height:Number(i)||0}}function Qh(t){return`${t.x} ${t.y} ${t.width} ${t.height}`}function Jh(t){return t?"number"==typeof t?[t,t,t,t]:1===t.length?[t[0],t[0],t[0],t[0]]:2===t.length?[t[0],t[1],t[0],t[1]]:3===t.length?[t[0],t[1],t[2],t[1]]:4===t.length?[t[0],t[1],t[2],t[3]]:[0,0,0,0]:[0,0,0,0]}function tu(t,e){if(Gh)eu(t,e);else if(t.isConnected)iu(t,e);else try{const n=new MutationObserver(i=>{i.forEach(i=>{i.addedNodes.forEach(i=>{var r,o;(i===t||i.contains(t))&&(r=t,o=()=>{iu(t,e)},requestAnimationFrame(()=>{const t=()=>{const e=r.getBoundingClientRect();e.width>0&&e.height>0?o():requestAnimationFrame(t)};t()}),n.disconnect())})})});n.observe(document,{childList:!0,subtree:!0})}catch(n){eu(t,e)}}function eu(t,e){const n=Zh(t),[i,r,o,s]=e;Jc(t,{viewBox:`${n.x-s} ${n.y-i} ${n.width+s+r} ${n.height+i+o}`})}function nu(t,e){const n=t.getBBox(),i=t.getBoundingClientRect(),r=i.width>0?n.width/i.width:1,o=i.height>0?n.height/i.height:1,[s,a,l,c]=e,h=s*o,u=c*r;return`${n.x-u} ${n.y-h} ${n.width+u+a*r} ${n.height+h+l*o}`}function iu(t,e){Jc(t,{viewBox:nu(t,e)})}function ru(t,e,n){var i;const r=function(t){if(!t)return document;if(t instanceof Document||t instanceof ShadowRoot)return t;if(!t.isConnected)return document;const e=t.getRootNode();return e instanceof ShadowRoot?e:document}(n);if(function(t,e){return t instanceof Document?Boolean(t.getElementById(e)):Boolean(t.querySelector(`#${e}`))}(r,t))return;const o=(r instanceof Document?r:null!==(i=r.ownerDocument)&&void 0!==i?i:document).createElement("style");o.id=t,o.textContent=e,r instanceof Document?r.head.appendChild(o):r.appendChild(o)}var ou=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function su(t){const{id:e,x:n=0,y:i=0,width:r,height:o,alignHorizontal:s="left",alignVertical:a="top",children:l,fontSize:c=14,fontFamily:h,fontStyle:u,fontWeight:d,textDecoration:f,letterSpacing:p,wordSpacing:g,opacity:m,fill:y="black",lineHeight:v,wordWrap:x,backgroundColor:b="none",backgroundOpacity:w=1,backgroundRadius:M=0}=t,k=ou(t,["id","x","y","width","height","alignHorizontal","alignVertical","children","fontSize","fontFamily","fontStyle","fontWeight","textDecoration","letterSpacing","wordSpacing","opacity","fill","lineHeight","wordWrap","backgroundColor","backgroundOpacity","backgroundRadius"]);let C=r,O=o,j=0,E=0;if(!C||!O){const e=Kc(l,t);C||(C=e.width),O||(O=e.height)}r&&(j="center"===s?C/2:"right"===s?C:0),o&&(E="middle"===a?O/2:"bottom"===a?O:0);const _=Object.entries(Object.assign(Object.assign({width:C,height:O},void 0!==v&&{"line-height":v}),void 0!==x&&{"data-word-wrap":x})).reduce((t,[e,n])=>Object.assign(Object.assign({},t),{[e]:n}),{}),S=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"data-element-type":"text",width:C,height:O,x:j,y:E,"data-x":0,"data-y":0,fill:y,fontSize:c,textAnchor:"center"===s?"middle":"right"===s?"end":"start",dominantBaseline:"middle"===a?"central":"bottom"===a?"baseline":"hanging","data-horizontal-align":s.toUpperCase(),"data-vertical-align":a.toUpperCase(),children:l},_),k),h&&{fontFamily:h}),u&&{fontStyle:u}),d&&{fontWeight:d}),f&&"none"!==f&&{textDecoration:f}),p&&{letterSpacing:p}),g&&{wordSpacing:g}),void 0!==m&&1!==m&&{opacity:m}),$=Object.assign(Object.assign(Object.assign({},0!==n||0!==i?{x:n,y:i,transform:`translate(${n}, ${i})`}:{}),{width:C,height:O}),e&&{id:e}),A=b&&"none"!==b?{"data-element-type":"shape",x:0,y:0,width:C,height:O,fill:b,fillOpacity:w,rx:M,ry:M}:void 0;return{type:"g",props:Object.assign(Object.assign({},$),{children:[...A?[{type:"rect",props:A}]:[],{type:"text",props:S}]})}}function au(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)&&"type"in t}function lu(t){return cu(t).filter(au)}function cu(t,e=[]){var n;if(!t||"boolean"==typeof t)return e;if(Array.isArray(t))t.forEach(t=>cu(t,e));else if(function(t){return!(!t||"object"!=typeof t||Array.isArray(t))&&t.type===D}(t)){const i=null===(n=t.props)||void 0===n?void 0:n.children;(Array.isArray(i)?i:[i]).filter(Boolean).forEach(t=>{cu(t,e)})}else e.push(t);return e}function hu(t){return"number"==typeof t&&!Number.isNaN(t)&&Number.isFinite(t)}function uu(t){if(!t||0===t.length)return{x:0,y:0,width:0,height:0};let e=1/0,n=1/0,i=-1/0,r=-1/0;for(const o of t){const{x:t,y:s,width:a,height:l}=o,c=t+a,h=s+l;t<e&&(e=t),s<n&&(n=s),c>i&&(i=c),h>r&&(r=h)}return e===1/0||n===1/0||i===-1/0||r===-1/0?{x:0,y:0,width:0,height:0}:{x:e,y:n,width:Math.max(0,i-e),height:Math.max(0,r-n)}}function du(t){var e,n,i,r;if(!t)return{x:0,y:0,width:0,height:0};if(Array.isArray(t)){return fu(lu(t))}if("object"!=typeof t)return{x:0,y:0,width:0,height:0};const{type:o,props:s={}}=t;if(ku(t)){return du(Cu(t))}if("function"==typeof o){const t=null!==(e=s.x)&&void 0!==e?e:0,i=null!==(n=s.y)&&void 0!==n?n:0,r=s.width,a=s.height;if(hu(r)&&hu(a))return{x:t,y:i,width:r,height:a};const l=o(s);if(!l)return{x:t,y:i,width:null!=r?r:0,height:null!=a?a:0};if(Array.isArray(l)){const e=fu(lu(l));if(hu(r)&&hu(a))return{x:t,y:i,width:r,height:a};return{x:t+e.x,y:i+e.y,width:0!==e.width?e.width:null!=r?r:0,height:0!==e.height?e.height:null!=a?a:0}}if(au(l)){const e=l,n=du(e);if(function(t,e){if(!(null==t?void 0:t.props)||!e)return!1;const n=t.props;if(hu(n.x)&&hu(n.y)&&hu(e.x)&&hu(e.y)&&n.x===e.x&&n.y===e.y){const t=hu(n.width)&&hu(n.height),i=hu(e.width)&&hu(e.height);if(!t&&!i)return!0}if(hu(n.x)&&hu(n.y)&&hu(n.width)&&hu(n.height)&&hu(e.x)&&hu(e.y)&&hu(e.width)&&hu(e.height))return n.x===e.x&&n.y===e.y&&n.width===e.width&&n.height===e.height;return!1}(e,s))return n;const o=e.props&&hu(e.props.width)&&hu(e.props.height),c=pu(e).flatMap(t=>lu(t)).length>0,h=e.props&&e.props.x===s.x&&e.props.y===s.y;if(o)return{x:h?n.x:t+n.x,y:h?n.y:i+n.y,width:n.width,height:n.height};if(hu(r)&&hu(a))return c?{x:h?n.x:t,y:h?n.y:i,width:r,height:a}:{x:h?n.x:t+n.x,y:h?n.y:i+n.y,width:r,height:a};return{x:h?n.x:t+n.x,y:h?n.y:i+n.y,width:0!==n.width?n.width:null!=r?r:0,height:0!==n.height?n.height:null!=a?a:0}}return{x:t,y:i,width:null!=r?r:0,height:null!=a?a:0}}const a=null!==(i=s.x)&&void 0!==i?i:0,l=null!==(r=s.y)&&void 0!==r?r:0,c=hu(s.width)?s.width:void 0,h=hu(s.height)?s.height:void 0;if(hu(c)&&hu(h))return{x:a,y:l,width:c,height:h};const u=pu(t).flatMap(t=>lu(t));if(u.length>0){const t=fu(u);return{x:a+t.x,y:l+t.y,width:hu(c)?c:t.width,height:hu(h)?h:t.height}}return{x:a,y:l,width:null!=c?c:0,height:null!=h?h:0}}function fu(t){if(!t||!Array.isArray(t)||0===t.length)return{x:0,y:0,width:0,height:0};const e=[];for(const n of t){const t=lu(n);for(const n of t){const t=du(n);t&&e.push(t)}}return uu(e)}function pu(t){var e;const n=null===(e=t.props)||void 0===e?void 0:e.children;return n?Array.isArray(n)?n:[n]:[]}function gu(t){var e;return null==t||"boolean"==typeof t?[]:Array.isArray(t)?cu(t):"object"==typeof t?cu(null===(e=t.props)||void 0===e?void 0:e.children):[t]}var mu=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const yu=(t,e)=>{const{type:n,props:i}=t,r=mu(t,["type","props"]);return Object.assign({type:n,props:Object.assign(Object.assign({},i),e)},r)},vu=()=>({defs:new Map});function xu(t){const e={"&":"&","<":"<",">":">",'"':""","'":"'"};return String(t).replace(/[&<>"']/g,t=>e[t])}const bu={className:"class",viewBox:"viewBox",preserveAspectRatio:"preserveAspectRatio",gradientUnits:"gradientUnits",gradientTransform:"gradientTransform",patternUnits:"patternUnits",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",maskUnits:"maskUnits",maskContentUnits:"maskContentUnits",clipPathUnits:"clipPathUnits",primitiveUnits:"primitiveUnits",filterUnits:"filterUnits",markerUnits:"markerUnits",markerWidth:"markerWidth",markerHeight:"markerHeight",refX:"refX",refY:"refY",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink",xlinkHref:"href",xlinkTitle:"xlink:title",xlinkShow:"xlink:show",xlinkActuate:"xlink:actuate",textLength:"textLength",lengthAdjust:"lengthAdjust",attributeName:"attributeName",attributeType:"attributeType",repeatCount:"repeatCount",repeatDur:"repeatDur",calcMode:"calcMode",keyTimes:"keyTimes",keySplines:"keySplines",keyPoints:"keyPoints",stdDeviation:"stdDeviation",baseFrequency:"baseFrequency",numOctaves:"numOctaves",pathLength:"pathLength",systemLanguage:"systemLanguage",requiredFeatures:"requiredFeatures",requiredExtensions:"requiredExtensions"};const wu=new Map;function Mu(t){const e=Symbol("layout");wu.set(e,t);return t=>({type:e,props:t})}function ku(t){return null!=t&&"object"==typeof t&&!Array.isArray(t)&&"symbol"==typeof t.type&&wu.has(t.type)}function Cu(t,e=vu()){const n=wu.get(t.type);if(!n)return console.warn("Layout function not found for symbol:",t.type),t;return n(gu(t).filter(t=>"object"==typeof t),t.props,e)}var Ou=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function ju(t,e){if(null==t||"boolean"==typeof t)return null;if("string"==typeof t||"number"==typeof t)return t;if(Array.isArray(t))return t.map(t=>ju(t,e)).filter(Boolean);if(ku(t)){return ju(Cu(t,e),e)}if("function"==typeof t.type){return ju(t.type(t.props),e)}const n=gu(t).map(t=>ju(t,e)).filter(Boolean);return t.type===D?n:t.type===Y?(n.forEach(t=>{"object"==typeof t&&t.props.id&&e.defs.set(t.props.id,t)}),null):n.length?yu(t,{children:n}):t}function Eu(t,e){if(null==t)return"";if("string"==typeof t)return xu(t);if("number"==typeof t)return String(t);const{type:n,props:i}=t;if(!n)return"";const r=gu(t);if(n===D)return r.map(t=>Eu(t,e)).filter(Boolean).join("");if(n===Y)return"";if("function"==typeof n||ku(t))return console.warn("Unexpected unprocessed component in render:",t),"";const o=Su(i),s=r.map(t=>Eu(t,e)).filter(Boolean).join(""),a=String(n);return s?`<${a}${o}>${s}</${a}>`:`<${a}${o} />`}function _u(t,e={}){const n=vu(),i=ju(t,n);if(!i)return"";const r=Array.isArray(i)?i.map(t=>Eu(t,n)).join(""):Eu(i,n),{x:o,y:s,width:a,height:l,style:c}=e,h=Ou(e,["x","y","width","height","style"]),u=Object.assign(Object.assign({},h),{xmlns:"http://www.w3.org/2000/svg"});if(!u.viewBox)if(a&&l)u.viewBox=`${null!=o?o:0} ${null!=s?s:0} ${null!=a?a:0} ${null!=l?l:0}`;else{const t=du(i);if(t){const{x:e,y:n,width:i,height:r}=t;u.viewBox=`${e} ${n} ${i} ${r}`}}const d=Su(u),f=function(t){if(!t||0===Object.keys(t).length)return"";const e=Object.entries(t).map(([t,e])=>`${t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}: ${e};`).join("");return` style="${xu(e)}"`}(c);return`<svg${d}${f}>${n.defs.size?`<defs>${Array.from(n.defs.values()).map(t=>Eu(t,n)).join("")}</defs>`:""}${r}</svg>`}function Su(t){if(!t)return"";const e=Ou(t,["children"]);return Object.entries(e).filter(([,t])=>null!=t).map(([t,e])=>{var n;return` ${bu[n=t]?bu[n]:n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}="${"string"==typeof e?xu(String(e)):String(e)}"`}).join("")}var $u=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Au=t=>{const{indexes:e}=t,n=$u(t,["indexes"]);return V(J,Object.assign({},{fill:"#B9EBCA",fillOpacity:.3,width:20,height:20,"data-indexes":e,"data-element-type":"btn-add"},n))},zu=t=>{const{indexes:e}=t,n=$u(t,["indexes"]);return V(J,Object.assign({},{fill:"#F9C0C0",fillOpacity:.3,width:20,height:20,"data-indexes":e,"data-element-type":"btn-remove"},n))},Pu=t=>V(X,Object.assign({"data-element-type":"btns-group",width:0,height:0},t,{display:"none"})),Lu=()=>V(D,{});var Iu=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Tu=t=>{var{indexes:e}=t,n=Iu(t,["indexes"]);const i=Object.assign(Object.assign({},{fill:"lightgray"}),n);return e?(i["data-indexes"]=e,i["data-element-type"]="item-illus"):i["data-element-type"]="illus",V(J,Object.assign({},i))};var Ru=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Bu=t=>{var e,{indexes:n,lineNumber:i=2,children:r}=t,o=Ru(t,["indexes","lineNumber","children"]);if(!r)return null;const s=Object.assign({fontSize:14,fill:"#666",wordWrap:!0,lineHeight:1.4,children:r},o);return null!==(e=s.height)&&void 0!==e||(s.height=Math.ceil(i*+s.lineHeight*+s.fontSize)),V(su,Object.assign({},s,{"data-indexes":n,"data-element-type":"item-desc"}))};var Wu=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Hu=t=>{const{indexes:e,size:n=32}=t,i=Wu(t,["indexes","size"]),r=Object.assign({fill:"lightgray",width:n,height:n},i);return V(J,Object.assign({},r,{"data-indexes":e,"data-element-type":"item-icon"}))},Nu=t=>{const{indexes:e,size:n=50,fill:i,colorBg:r="white"}=t,o=Wu(t,["indexes","size","fill","colorBg"]),s=n/Math.SQRT2*.9,a=(n-s)/2,l=Object.assign(Object.assign({fill:r},o),{x:a,y:a,width:s,height:s});return U(X,Object.assign({},o,{width:n,height:n,"data-element-type":"item-icon-group",children:[V(G,{width:n,height:n,fill:i,"data-element-type":"shape"}),V(J,Object.assign({},l,{"data-indexes":e,"data-element-type":"item-icon"}))]}))};var Fu=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Du=t=>{var e,{indexes:n,children:i}=t,r=Fu(t,["indexes","children"]);const o=Object.assign({fontSize:18,fontWeight:"bold",fill:"#252525",lineHeight:1.4,children:i},r);return null!==(e=o.height)&&void 0!==e||(o.height=Math.ceil(+o.lineHeight*+o.fontSize)),V(su,Object.assign({},o,{"data-indexes":n,"data-element-type":"item-label"}))},Vu=t=>V(X,Object.assign({"data-element-type":"items-group"},t));var Uu=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Yu=t=>{var e,{indexes:n,value:i,formatter:r=t=>String(t)}=t,o=Uu(t,["indexes","value","formatter"]);const s=Object.assign({fontSize:14,fill:"#666",wordWrap:!0,lineHeight:1.4,children:r(i),"data-value":i},o);return null!==(e=s.height)&&void 0!==e||(s.height=Math.ceil(+s.lineHeight*+s.fontSize)),V(su,Object.assign({},s,{"data-indexes":n,"data-element-type":"item-value"}))},qu=t=>V(X,Object.assign({"data-element-type":"shapes-group"},t));var Gu=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Xu=Mu((t,e)=>{var n,i,r,o,{horizontal:s,vertical:a}=e,l=Gu(e,["horizontal","vertical"]);if(!t||0===t.length)return V(X,Object.assign({},l));const c=t.map(t=>du(t)),h=fu(t),u=null!==(n=l.x)&&void 0!==n?n:h.x,d=null!==(i=l.y)&&void 0!==i?i:h.y,f=null!==(r=l.width)&&void 0!==r?r:h.width,p=null!==(o=l.height)&&void 0!==o?o:h.height,g=t.map((t,e)=>{const n=c[e],i=Object.assign({},t.props);if(void 0!==s)switch(s){case"left":i.x=-n.x;break;case"center":i.x=(f-n.width)/2-n.x;break;case"right":i.x=f-n.width-n.x}else void 0===i.x&&(i.x=n.x-u);if(void 0!==a)switch(a){case"top":i.y=-n.y;break;case"middle":i.y=(p-n.height)/2-n.y;break;case"bottom":i.y=p-n.height-n.y}else void 0===i.y&&(i.y=n.y-d);return yu(t,i)}),m=Object.assign(Object.assign({},l),{x:u,y:d,width:f,height:p});return V(X,Object.assign({},m,{children:g}))});var Ku=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Zu=Mu((t,e)=>{var n,i,r,o,s,a,{flexDirection:l="row",justifyContent:c="flex-start",alignItems:h="flex-start",alignContent:u="flex-start",flexWrap:d="nowrap",gap:f=0}=e,p=Ku(e,["flexDirection","justifyContent","alignItems","alignContent","flexWrap","gap"]);if(!t||0===t.length)return V(X,Object.assign({},p));const g="row"===l||"row-reverse"===l,m="row-reverse"===l||"column-reverse"===l,y=t.map(t=>du(t)),v=fu(t),x=null!==(n=p.width)&&void 0!==n?n:v.width,b=null!==(i=p.height)&&void 0!==i?i:v.height,w=void 0!==p.width&&void 0!==p.height,M=[];if("wrap"===d&&w){let e=[],n=[],i=0;for(let r=0;r<t.length;r++){const o=t[r],s=y[r],a=g?s.width:s.height;0===e.length||i+f+a<=(g?x:b)?(e.push(o),n.push(s),i+=(e.length>1?f:0)+a):(M.push({children:e,bounds:n}),e=[o],n=[s],i=a)}e.length>0&&M.push({children:e,bounds:n})}else M.push({children:t,bounds:y});const k=[];let C=0;const O=[];if(M.forEach(t=>{const{children:e,bounds:n}=t,i=n.reduce((t,e,n)=>t+(g?e.width:e.height)+(n>0?f:0),0),r=Math.max(...n.map(t=>g?t.height:t.width));O.push(r);let o=0;const s=(g?x:b)-i;if(w)switch(c){case"flex-end":o=s;break;case"center":o=s/2;break;default:o=0}let a=f;w&&"space-between"===c&&e.length>1&&(a=s/(e.length-1)+f);let l=o;e.forEach((t,e)=>{const i=n[e],o=g?i.width:i.height,s=g?i.height:i.width,c=g?i.x:i.y,u=g?i.y:i.x;let d,f,p=C;if(w)switch(h){case"flex-end":p=C+r-s;break;case"center":p=C+(r-s)/2;break;default:p=C}g?(d=m?x-l-o-c:l-c,f=p-u):(d=p-u,f=m?b-l-o-c:l-c);const y=yu(t,{x:d,y:f});k.push(y),l+=o+a}),C+=r+f}),M.length>1&&w){const t=O.reduce((t,e)=>t+e,0)+(M.length-1)*f,e=(g?b:x)-t;let n=0;switch(u){case"flex-end":n=e;break;case"center":n=e/2;break;case"space-between":if(M.length>1){const t=e/(M.length-1);let n=0;M.forEach((e,i)=>{const r=M.slice(0,i).reduce((t,e)=>t+e.children.length,0),o=r+e.children.length;for(let t=r;t<o;t++){const e=k[t],i=Object.assign({},e.props);g?i.y=(i.y||0)+n:i.x=(i.x||0)+n,k[t]=yu(e,i)}n+=O[i]+f+(i<M.length-1?t:0)});break}break;default:n=0}0!==n&&"space-between"!==u&&k.forEach((t,e)=>{const i=Object.assign({},t.props);g?i.y=(i.y||0)+n:i.x=(i.x||0)+n,k[e]=yu(t,i)})}if(!w&&"center"===h)if(g){const t=Math.max(...y.map(t=>t.height));k.forEach((e,n)=>{const i=(t-y[n].height)/2,r=Object.assign({},e.props);r.y=(r.y||0)+i,k[n]=yu(e,r)})}else{const t=Math.max(...y.map(t=>t.width));k.forEach((e,n)=>{const i=(t-y[n].width)/2,r=Object.assign({},e.props);r.x=(r.x||0)+i,k[n]=yu(e,r)})}const j=fu(k),E=Object.assign(Object.assign({},p),{x:null!==(r=p.x)&&void 0!==r?r:v.x,y:null!==(o=p.y)&&void 0!==o?o:v.y,width:null!==(s=p.width)&&void 0!==s?s:j.width,height:null!==(a=p.height)&&void 0!==a?a:j.height});return V(X,Object.assign({},E,{children:k}))}),Qu=new Map;function Ju(t,e){Qu.set(t,e)}Ju("light",{colorBg:"#ffffff"}),Ju("dark",{colorBg:"#1F1F1F",base:{text:{fill:"#fff"}}}),Ju("hand-drawn",{base:{text:{"font-family":"851tegakizatsu"}},stylize:{type:"rough"}}),wt(Fi);const td=({colorPrimary:t,colorBg:e="#ffffff",isDarkMode:n=!1})=>{const i=Dt(t),r=Dt(e),o=rd({primaryColor:i,bgColor:r});return od(o,{primaryColor:i,bgColor:r,isDarkMode:n})},ed=t=>{const e=$r(Dt(t)),n=Object.assign(Object.assign({},e),{l:Math.min(1,e.l+.2)});return jr(n)},nd=(t,e)=>{const n=Dt(t),i=Dt("#262626"),r=Dt("#ffffff"),o=Sr(i,n);return Sr(r,n)>=3?jr(r):o>=4.5?jr(i):"#ffffff"},id=(t,e)=>{const n=$r(t);if(e){return sd(Object.assign(Object.assign({},n),{l:Math.min(1,n.l+.1)}),"#1f1f1f")}if(n.l>.95)return"#ffffff";return sd(Object.assign(Object.assign({},n),{l:Math.min(1,n.l+.05)}),"#ffffff")},rd=({primaryColor:t,bgColor:e})=>({colorPrimary:sd(t,"#FF356A"),colorBg:sd(e,"#ffffff"),colorWhite:"#ffffff"}),od=(t,{primaryColor:e,bgColor:n,isDarkMode:i})=>{const r=((t,e)=>{if(e)return"#ffffff";const n=Dt("#262626");return Sr(n,t)>=7?jr(n):"#000000"})(n,i),o=((t,e)=>Er(Object.assign(Object.assign({},t),{alpha:e?.2:.1}))||"#ffffff")(e,i);return Object.assign(Object.assign({},t),{isDarkMode:i,colorPrimaryBg:o,colorText:r,colorTextSecondary:ed(r),colorPrimaryText:nd(o),colorBgElevated:id(n,i)})};function sd(t,e="#000000"){var n;return null!==(n=jr(t))&&void 0!==n?n:e}const ad="#FF356A";function ld(t){var e;return(null===(e=null==t?void 0:t.themeConfig)||void 0===e?void 0:e.colorPrimary)||ad}function cd(t){var e;const{themeConfig:n={},data:i}=t,{colorPrimary:r,palette:o}=n;return o&&0!==o.length?i.items.map((t,e)=>Va(o,[e],i.items.length)||ad):Array((null===(e=null==i?void 0:i.items)||void 0===e?void 0:e.length)||1).fill(r||ad)}function hd(t,e){var n,i,r;return Va(null===(n=null==t?void 0:t.themeConfig)||void 0===n?void 0:n.palette,e,null===(r=null===(i=t.data)||void 0===i?void 0:i.items)||void 0===r?void 0:r.length)}function ud(t,e){var n;const{colorBg:i=(null===(n=null==e?void 0:e.themeConfig)||void 0===n?void 0:n.colorBg)||"white",colorPrimary:r=(e?ld(e):"black")}=t;return td({colorPrimary:r,isDarkMode:zr(i),colorBg:i})}const dd=(t,e,n,i,r,o,s)=>{const a=Math.cos(n),l=Math.sin(n),c=-l,h=a,u=s,d=.55*s;if("arrow"===i){return[V(K,{d:`M ${t-a*u+c*d} ${e-l*u+h*d} L ${t} ${e} L ${t-a*u-c*d} ${e-l*u-h*d}`,stroke:r,strokeWidth:Math.max(1.5,o),strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]}if("diamond"===i){const n=1.25*u,i=.75*d,s=t-a*n*.5,f=e-l*n*.5;return[V(Q,{points:[{x:t,y:e},{x:s+c*i,y:f+h*i},{x:t-a*n,y:e-l*n},{x:s-c*i,y:f-h*i}],fill:r,stroke:r,strokeWidth:Math.max(1,.8*o)})]}return[V(Q,{points:[{x:t,y:e},{x:t-a*u+c*d,y:e-l*u+h*d},{x:t-a*u-c*d,y:e-l*u-h*d}],fill:r,stroke:r,strokeWidth:Math.max(1,.8*o)})]},fd=t=>{const{x:e,y:n,width:i,height:r,radio:o=.25}=t,s=r*o,a=.5*r,l=r*(1-o);return{LT:{x:e,y:n+s},LC:{x:e,y:n+a},LB:{x:e,y:n+l},RT:{x:e+i,y:n+s},RC:{x:e+i,y:n+a},RB:{x:e+i,y:n+l}}},pd=(t,e)=>{const n=t.length;if(4===n){const n=t[0],i=t[1],r=t[2],o=t[3];return 0===e?Math.atan2(i[1]-n[1],i[0]-n[0]):Math.atan2(o[1]-r[1],o[0]-r[0])}if(3===n){const n=t[0],i=t[1],r=t[2];return 0===e?Math.atan2(i[1]-n[1],i[0]-n[0]):Math.atan2(r[1]-i[1],r[0]-i[0])}if(2===n){const e=t[0],n=t[1];return Math.atan2(n[1]-e[1],n[0]-e[0])}return 0},gd=(t,e=10)=>{const n=t.length,i=((t,e=.5)=>{const n=t.length;if(4===n){const[n,i,r,o]=t,s=1-e;return[Math.pow(s,3)*n[0]+3*Math.pow(s,2)*e*i[0]+3*s*Math.pow(e,2)*r[0]+Math.pow(e,3)*o[0],Math.pow(s,3)*n[1]+3*Math.pow(s,2)*e*i[1]+3*s*Math.pow(e,2)*r[1]+Math.pow(e,3)*o[1]]}if(3===n){const[n,i,r]=t,o=1-e;return[Math.pow(o,2)*n[0]+2*o*e*i[0]+Math.pow(e,2)*r[0],Math.pow(o,2)*n[1]+2*o*e*i[1]+Math.pow(e,2)*r[1]]}if(2===n){const[n,i]=t;return[n[0]+(i[0]-n[0])*e,n[1]+(i[1]-n[1])*e]}return t[0]||[0,0]})(t);return 4===n&&(i[0]+=e),i};function md(t,e){const{depth:n,originalIndexes:i,flatIndex:r}=t;switch(e){case"level":return[n];case"branch":return 0===n?[0]:[i[1]+1];case"node":return i;case"node-flat":return void 0!==r?[r]:(console.warn("node-flat mode requires flatIndex in HierarchyNode, falling back to originalIndexes"),i);default:return[0]}}function yd(t,e=[]){const n=Object.assign({},t),i={};return["indexes","data","datum","positionH","positionV","themeColors","valueFormatter",...e].forEach(t=>{t in n&&(i[t]=n[t],delete n[t])}),["x","y","width","height"].forEach(e=>{e in t&&(n[e]=t[e])}),[i,n]}function vd(t,e){var n;return 0===t.length?()=>null:void 0===e?t[0]:null!==(n=t[e])&&void 0!==n?n:t[0]}const xd=new Map;function bd(t,e){xd.set(t,e)}bd("badge-card",{component:t=>{const[{datum:e,indexes:n,width:i=200,height:r=80,iconSize:o=24,badgeSize:s=32,gap:a=8,positionH:l="normal",themeColors:c,valueFormatter:h},u]=yd(t,["width","height","iconSize","badgeSize","gap"]),d=e.value,f=void 0!==d,p=!!e.desc,g=!!e.icon,m=`${c.colorPrimary}-badge`,y="flipped"===l?i-a-s:a,v=g?"flipped"===l?a:s+2*a:a,x=i-2*a,b=g?i-s-3*a:x,w=a+14+18+8,M=w-a,k=p?a:(r-s)/2,C=f||p?a:(r-14)/2,O=g||"center"!==l?"flipped"===l?"right":"left":"center";return U(X,Object.assign({},u,{width:i,height:r,children:[V(q,{children:U("radialGradient",{id:m,cx:"50%",cy:"50%",r:"50%",children:[V("stop",{offset:"0%",stopColor:c.colorPrimary}),V("stop",{offset:"100%",stopColor:(0,wl.A)(c.colorPrimary).darken(20).toHexString()})]})}),V(J,{"data-element-type":"shape",x:0,y:0,width:i,height:r,fill:c.colorPrimaryBg,rx:8,ry:8}),g&&U(D,{children:[V(G,{x:y,y:k,width:s,height:s,fill:`url(#${m})`}),V(Hu,{indexes:n,x:y+(s-o)/2,y:k+(s-o)/2,size:o,fill:c.colorWhite})]}),U(Zu,{flexDirection:"column",x:v,y:C,width:b,height:f||p?M:void 0,alignItems:"center",justifyContent:"center",children:[V(Du,{indexes:n,width:b,alignHorizontal:O,alignVertical:"middle",fontSize:14,fill:c.colorText,children:e.label}),f&&V(Yu,{indexes:n,width:b,alignHorizontal:"flipped"===l?"right":"left",alignVertical:"middle",fontSize:18,lineHeight:1,fontWeight:"bold",fill:c.colorPrimary,value:d,formatter:h})]}),p&&V(Bu,{indexes:n,x:a,y:w,width:x,alignHorizontal:O,fontSize:11,fill:c.colorTextSecondary,lineNumber:2,lineHeight:1.2,wordWrap:!0,children:e.desc})]}))},composites:["icon","label","value","desc"]});bd("candy-card-lite",{component:t=>{const[{indexes:e,datum:n,width:i=280,height:r=140,themeColors:o},s]=yd(t,["width","height"]);return U(X,Object.assign({},s,{children:[V("rect",{x:0,y:0,width:i,height:r,rx:22,ry:22,fill:o.colorPrimaryBg,stroke:o.colorPrimary,"data-element-type":"shape"}),V(K,{x:i-85,y:.5,width:85,height:65,d:"M0 0H62.4495C74.9557 0 85.4549 10.8574 84.4557 23.1875V60.1875L77.8772 62.5839C64.3776 67.6876 48.51 64.6893 37.8662 53.7441L10.2361 25.3312C4.91402 19.8571 1.65356 13.1736 0.435652 6.21819L0 0Z",fill:o.colorBg,"data-element-type":"shape"}),V(Du,{indexes:e,x:20,y:24,width:200,alignHorizontal:"left",alignVertical:"middle",fill:o.colorText,children:n.label}),V(Bu,{indexes:e,x:20,y:58,width:220,height:70,fill:o.colorTextSecondary,alignHorizontal:"left",alignVertical:"top",children:n.desc}),V(Hu,{indexes:e,x:i-48,y:12,width:32,height:32,fill:o.colorPrimary})]}))},composites:["icon","label","desc"]});var wd=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Md=t=>{const{color:e="black",opacity:n=.8}=t,i=wd(t,["color","opacity"]);return V("filter",Object.assign({id:"drop-shadow",x:"-25%",y:"-25%",width:"200%",height:"200%"},i,{children:V("feDropShadow",{dx:"4",dy:"4",stdDeviation:"4","flood-color":e,"flood-opacity":n})}))},kd=t=>{const{id:e="linear-gradient",startColor:n="black",stopColor:i="white",direction:r="left-right"}=t;return U("linearGradient",Object.assign({id:e},{"left-right":{x1:"0%",y1:"0%",x2:"100%",y2:"0%"},"right-left":{x1:"100%",y1:"0%",x2:"0%",y2:"0%"},"top-bottom":{x1:"0%",y1:"0%",x2:"0%",y2:"100%"},"bottom-top":{x1:"0%",y1:"100%",x2:"0%",y2:"0%"}}[r],{children:[V("stop",{offset:"0%",stopColor:n}),V("stop",{offset:"100%",stopColor:i})]}))};bd("capsule-item",{component:t=>{const[{datum:e,indexes:n,width:i=300,height:r=80,gap:o=12,positionH:s="normal",iconPadding:a=r/10,themeColors:l},c]=yd(t,["width","height","gap","iconPadding"]),h=r/2,u=r-2*a,d="flipped"===s,f=!!e.icon,p=f?i-r-o:i-2*o,g=f?d?o:r:o,m=f?d?"right":"left":"center",y={indexes:n,width:p,alignHorizontal:m,alignVertical:"middle",fontSize:16,fontWeight:"600",fill:l.colorWhite},v=du(V(Du,Object.assign({},y,{children:e.label}))),x={indexes:n,width:p,alignHorizontal:m,alignVertical:"top",fontSize:12,lineNumber:1,fill:l.colorWhite},b=du(e.desc?V(Bu,Object.assign({},x,{children:e.desc})):null),w=(r-(v.height+4+b.height))/2,M=w+v.height+4,k=d?i-r+a:a,C=a;return U(X,Object.assign({},c,{children:[V(q,{children:V(Md,{})}),V(J,{x:0,y:0,width:i,height:r,fill:l.colorPrimary,rx:h,ry:h,"data-element-type":"shape"}),e.icon&&U(D,{children:[V(G,{x:k,y:C,width:u,height:u,fillOpacity:.5,fill:l.colorBg,filter:"url(#drop-shadow)"}),V(Nu,{indexes:n,x:k,y:C,size:u,fill:l.colorBg,colorBg:l.colorPrimary})]}),e.label&&V(Du,Object.assign({x:g,y:w},y,{children:e.label})),e.desc&&V(Bu,Object.assign({x:g,y:M},x,{children:e.desc}))]}))},composites:["icon","label","desc"]});function Cd(t,e,n){return wl.A.mix(t,"#ffffff",e).setAlpha(n).toRgbString()}bd("circle-node",{component:t=>{const[{indexes:e,datum:n,themeColors:i,positionH:r="normal",width:o=240,height:s=o},a]=yd(t,["width","height"]),l=Math.min(o,s),c=.7*l,h=(l-c)/2,u=c*Math.sqrt(2)/2,d=(l-u)/2,f=(0,wl.A)(i.colorPrimary),p=Cd(f,80,.2),g=Cd(f,20,.8),m=Cd(f,75,.32),y=Cd(f,45,.4),v=f.clone().darken(5).toRgbString(),x=`${i.colorPrimary}-${r}-outer`,b=`${i.colorPrimary}-${r}-inner`,w="flipped"===r?{x1:"0%",y1:"0%",x2:"100%",y2:"0%"}:{x1:"100%",y1:"0%",x2:"0%",y2:"0%"};return U(X,Object.assign({},a,{children:[U(q,{children:[U("linearGradient",Object.assign({id:x},w,{children:[V("stop",{offset:"0%",stopColor:p}),V("stop",{offset:"100%",stopColor:g})]})),U("linearGradient",Object.assign({id:b},w,{children:[V("stop",{offset:"0%",stopColor:m}),V("stop",{offset:"100%",stopColor:y})]}))]}),V(G,{width:l,height:l,fill:`url(#${x})`,"data-element-type":"shape"}),V(G,{x:h,y:h,width:c,height:c,fill:`url(#${b})`,stroke:"#FFFFFF",strokeWidth:1,"data-element-type":"shape"}),V(Du,{indexes:e,x:d,y:d,width:u,height:u,lineHeight:1.1,alignHorizontal:"center",alignVertical:"middle",fill:v,fontWeight:"500",children:n.label})]}))},composites:["label"]});function Od(t,e,n,i){const r=(i-90)*Math.PI/180;return{x:t+n*Math.cos(r),y:e+n*Math.sin(r)}}bd("circular-progress",{component:t=>{var e;const[{datum:n,indexes:i,size:r=120,strokeWidth:o=12,gap:s=8,themeColors:a,valueFormatter:l=t=>`${Math.round(t)}%`},c]=yd(t,["size","strokeWidth","gap"]),h=null!==(e=n.value)&&void 0!==e?e:0,u=Math.min(Math.max(h/100,0),1),d=r/2,f=o/2,p=r-o,g=u>=1,m=function(t,e,n,i,r){const o=Od(t,e,n,r),s=Od(t,e,n,i);return`M ${o.x} ${o.y} A ${n} ${n} 0 ${r-i<=180?"0":"1"} 0 ${s.x} ${s.y}`}(d,d,(r-o)/2,0,360*u),y={x:f,y:f,width:p,height:p};return U(X,Object.assign({},c,{width:r,height:r+s+20,children:[V(J,{width:r,height:r,fill:"none"}),V(G,Object.assign({},y,{fill:"none",stroke:"#f0f0f0",strokeWidth:o,"data-element-type":"shape"})),g?V(G,Object.assign({},y,{fill:"none",stroke:a.colorPrimary,strokeWidth:o,"data-element-type":"shape"})):V(K,{d:m,fill:"none",stroke:a.colorPrimary,strokeWidth:o,strokeLinecap:"round","data-element-type":"shape"}),V(Yu,{indexes:i,x:o,y:o,width:p-o,height:p-o,fontSize:24,fontWeight:"bold",fill:a.colorPrimary,alignHorizontal:"center",alignVertical:"middle",value:h,formatter:l}),V(Du,{indexes:i,x:0,y:r+s,width:r,alignHorizontal:"center",fontSize:12,fill:a.colorTextSecondary,children:n.label})]}))},composites:["label","value"]});bd("compact-card",{component:t=>{const[{datum:e,indexes:n,width:i=200,height:r=60,iconSize:o=20,gap:s=8,positionH:a="normal",themeColors:l,valueFormatter:c},h]=yd(t,["width","height","iconSize","gap"]),u=e.value,d=null!=u,f="compact-shadow",p="flipped"===a?i-s-o:s,g="flipped"===a?s:o+2*s,m=i-o-3*s,y=d?.8*m:m,v=d?.2*m:0;return U(X,Object.assign({},h,{children:[V(q,{children:V("filter",{id:f,children:V("feDropShadow",{dx:"0",dy:"2",stdDeviation:"2",floodOpacity:"0.15"})})}),V(J,{x:0,y:0,width:i,height:r,fill:l.colorBgElevated,stroke:l.colorBgElevated,strokeWidth:1,rx:6,ry:6,filter:`url(#${f})`,"data-element-type":"shape"}),V(J,{x:"flipped"===a?i-3:0,y:0,width:3,height:r,fill:l.colorPrimary,rx:1.5,ry:1.5,"data-element-type":"shape"}),V(Hu,{indexes:n,x:p,y:(r-o)/2,size:o,fill:l.colorPrimary}),U(Zu,{x:g,y:s,width:m,height:r-2*s,flexDirection:"column",justifyContent:"center",alignItems:"flex-start",children:[U(Zu,{width:m,flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[V(Du,{indexes:n,width:y,alignHorizontal:"left",fontSize:12,fill:l.colorText,children:e.label}),d&&V(Yu,{indexes:n,width:v,alignHorizontal:"right",fontSize:12,fontWeight:"bold",fill:l.colorPrimary,value:u,formatter:c})]}),V(Bu,{indexes:n,width:m,alignHorizontal:"left",alignVertical:"middle",fontSize:10,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:e.desc})]})]}))},composites:["icon","label","value","desc"]});bd("done-list",{component:t=>{const[{datum:e,indexes:n,width:i=300,height:r=30,iconSize:o=30,gap:s=5,positionH:a="normal",positionV:l="middle",themeColors:c},h]=yd(t,["width","height","iconSize","gap"]),u=i-o-s;return U(X,Object.assign({},h,{children:[V(K,{"data-element-type":"shape",x:"flipped"===a?u+s:0,y:"middle"===l?(r-o)/2:"flipped"===l?r-o:0,fill:c.colorPrimary,width:o,height:o,d:"M14.7273 30C6.54538 30 0 22.9077 0 14.7269C0 6.54617 6.54538 0 14.7273 0C22.9092 0 30 6.54617 30 14.7269C30 22.9077 22.9092 30 14.7273 30ZM24.5454 10.9077C22.9092 9.27307 22.9092 9.27307 22.9092 9.27307C22.3638 8.72692 22.3638 8.7269 21.8181 8.7269C21.2727 8.7269 21.2727 8.72692 20.7273 9.27307C13.0908 16.9077 13.0908 16.9077 13.0908 16.9077C8.72731 12.5461 8.72731 12.5462 8.72731 12.5462C8.18193 12.5462 8.18193 12 7.63654 12L7.09077 12.5462C4.90923 14.1808 4.90923 14.1808 4.90923 14.1808C4.90923 14.7269 4.90923 14.7269 4.90923 15.2731C4.90923 15.8192 4.90923 15.8192 4.90923 16.3654C12 23.4539 12 23.4538 12 23.4538C12.5454 23.4538 12.5454 23.4538 13.0908 23.4538C13.6365 23.4538 13.6365 23.4538 14.1819 23.4538C24.5454 12.5461 24.5454 12.5462 24.5454 12.5462L25.0908 12C25.0908 11.4538 24.5454 10.9077 24.5454 10.9077Z"}),V(Du,{indexes:n,x:"flipped"===a?0:o+s,width:u,height:r,fontWeight:"normal",alignVertical:"middle",wordWrap:!1,fill:"#666",children:e.label||e.desc})]}))},composites:["label"]});const jd=t=>{const{x:e=0,y:n=0,width:i=100,height:r=40,fill:o="#FF356A",size:s=10}=t;return V(Q,{width:i,height:r,points:[{x:e,y:n},{x:e+i-s,y:n},{x:e+i,y:n+r/2},{x:e+i-s,y:n+r},{x:e,y:n+r},{x:e+s,y:n+r/2}],fill:o,"data-element-type":"shape"})},Ed=t=>{const{x:e=0,y:n=0,width:i=10,height:r=50,fill:o,positionV:s="top"}=t,a=i/2,l=r-a,c=a;return U(qu,{x:e,y:n,width:i,height:r,children:[V(G,{width:i,height:i,fill:o,y:"top"===s?0:l-a}),V(K,{d:"top"===s?`M${c},${a} L${c},${a+l}`:`M${c},0 L${c},${l-a}`,strokeWidth:2,stroke:o})]})};bd("horizontal-icon-arrow",{component:t=>{const[{indexes:e,datum:n,width:i=140,themeColors:r,positionV:o="normal"},s]=yd(t,["width"]),a="flipped"!==o,l="normal"===o?"bottom":"top",c=V(Du,{indexes:e,width:i,fill:r.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),h=V(Bu,{indexes:e,width:i,fill:r.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),u=V(Nu,{indexes:e,fill:r.colorPrimary,colorBg:r.colorWhite}),d=V(Ed,{width:8,height:30,fill:r.colorPrimary,positionV:o}),f=du(c),p=du(h),g=du(u),m=du(d),y=f.height+p.height+5+m.height-g.height-25;return V(X,Object.assign({width:i,height:g.height+25+30+m.height+5+f.height+p.height},s,{children:U(Zu,{flexDirection:"column",alignItems:"center",children:[U(D,a?{children:[h,c,V(Lu,{height:5}),d]}:{children:[V(Lu,{height:y}),u,V(Lu,{height:25})]}),U(Xu,{horizontal:"center",vertical:"middle",width:i,height:30,children:[V(jd,{width:i,height:30,fill:r.colorPrimary}),V(su,{width:i,height:30,alignHorizontal:"center",alignVertical:"middle",fill:r.colorWhite,fontWeight:"bold",fontSize:16,children:n.time?n.time:String(e[0]+1).padStart(2,"0").slice(-2)})]}),U(D,a?{children:[V(Lu,{height:25}),u]}:{children:[d,V(Lu,{height:5}),c,h]})]})}))},composites:["icon","label","desc","time"]});bd("horizontal-icon-line",{component:t=>{const[{indexes:e,datum:n,width:i=160,themeColors:r,positionH:o="center",positionV:s="normal"},a]=yd(t,["width"]),l="normal"===o?"left":"flipped"===o?"right":"center",c=V(Du,{indexes:e,width:i,alignHorizontal:l,fill:r.colorPrimary,children:n.label}),h=du(c),u=n.desc?V(Bu,{indexes:e,width:i,fill:r.colorTextSecondary,alignHorizontal:l,alignVertical:"flipped"===s?"top":"bottom",children:n.desc}):null,d=du(u),f=n.icon?V(Nu,{size:45,indexes:e,colorBg:r.colorBg,fill:r.colorPrimary}):null,p=du(f),g=n.time?V(su,{width:i,height:30,alignHorizontal:"center",alignVertical:"middle",fill:r.colorPrimary,fontSize:18,fontWeight:"bold",children:n.time}):null,m=du(g),y=U(Xu,{horizontal:"center",vertical:"middle",width:i,height:18,children:[V(J,{width:i,height:18,fill:r.colorPrimary,"data-element-type":"shape"}),V(G,{width:24,height:24,fill:r.colorBg,fillOpacity:.5,"data-element-type":"shape"}),V(G,{width:12,height:12,fill:"white","data-element-type":"shape"})]}),v=h.height+d.height,x=p.height+m.height+5,b=Math.abs(x-v),w=x>v?b:0,M=v>x?b:0;return U(Zu,Object.assign({},a,"flipped"===s?{flexDirection:"column",alignItems:"center",children:[V(Lu,{height:M}),g,f,V(Lu,{height:5}),y,c,u,V(Lu,{height:w})]}:{flexDirection:"column",alignItems:"center",children:[V(Lu,{height:w}),c,u,y,V(Lu,{height:5}),f,g,V(Lu,{height:M})]}))},composites:["icon","label","desc"]});bd("icon-badge",{component:t=>{var e;const[{datum:n,indexes:i,size:r=80,iconSize:o=28,badgeSize:s=24,gap:a=8,themeColors:l,width:c=84,height:h=105},u]=yd(t,["size","iconSize","badgeSize","gap"]),d=null!==(e=n.value)&&void 0!==e?e:0,f=`${l.colorPrimary}-icon`,p="#ff6b6b-badge";return U(X,Object.assign({},u,{width:c,height:h,children:[U(q,{children:[U("radialGradient",{id:f,cx:"50%",cy:"30%",r:"70%",children:[V("stop",{offset:"0%",stopColor:(0,wl.A)(l.colorPrimary).lighten(30).toHexString()}),V("stop",{offset:"100%",stopColor:l.colorPrimary})]}),U("linearGradient",{id:p,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:"#ff6b6b"}),V("stop",{offset:"100%",stopColor:"#ee5a52"})]})]}),V(G,{x:0,y:0,width:r,height:r,fill:`url(#${f})`,"data-element-type":"shape"}),V(Hu,{indexes:i,x:(r-o)/2,y:(r-o)/2,size:o,fill:l.colorPrimaryText}),V(G,{x:r-s+4,width:s,height:s,fill:`url(#${p})`}),V(su,{x:r-s+4,width:s,height:s,fontSize:10,fontWeight:"bold",fill:l.colorWhite,alignHorizontal:"center",alignVertical:"middle",children:d>99?"99+":Math.round(d)}),V(Du,{indexes:i,x:0,y:r+a,width:r,alignHorizontal:"center",fontSize:12,fill:l.colorText,children:n.label})]}))},composites:["icon","label"]});bd("indexed-card",{component:t=>{const[{datum:e,indexes:n,width:i=200,borderRadius:r=12,padding:o=16,separatorHeight:s=2,indexFontSize:a=20,labelFontSize:l=16,gap:c=8,themeColors:h},u]=yd(t,["width","height","borderRadius","padding","separatorHeight","indexFontSize","labelFontSize","gap"]),d=String(n[0]+1).padStart(2,"0"),f=void 0!==e.label,p=void 0!==e.desc,g=wl.A.mix(h.colorPrimary,h.colorWhite,40).toHexString(),m=h.colorBgElevated||h.colorWhite,y=i-2*o,v=du(V(su,{fontSize:a,fontWeight:"bold",children:d})),x=y-v.width-c,b=f?du(V(Du,{indexes:n,width:x,fontSize:l,fontWeight:"bold",x:a,children:e.label})):{width:0,height:0},w=p?du(V(Bu,{indexes:n,width:y,fontSize:14,lineHeight:1.5,wordWrap:!0,children:e.desc})):{width:0,height:0},M=Math.max(v.height,b.height),k=2*o+M+(f||p?c:0)+s+(p?c:0)+w.height;return U(X,Object.assign({},u,{width:i,height:k,children:[V(J,{x:0,y:0,width:i,height:k,rx:r,ry:r,fill:m,stroke:(0,wl.A)(m).darken(5).toHexString(),strokeWidth:.5,"data-element-type":"shape"}),U(X,{x:o,y:o,children:[U(X,{x:0,y:0,children:[V(su,{x:0,y:0,fontSize:a,fontWeight:"bold",fill:h.colorPrimary,alignVertical:"top",children:d}),f&&V(Du,{indexes:n,x:a+c,y:0,width:x,fontSize:l,fontWeight:"bold",fill:h.colorTextSecondary,alignVertical:"top",children:e.label})]}),V(J,{x:0,y:M+c,width:y,height:s,fill:g,"data-element-type":"shape"}),p&&V(Bu,{indexes:n,x:0,y:M+c+s+c,width:y,fontSize:14,lineHeight:1.5,wordWrap:!0,fill:h.colorTextSecondary,children:e.desc})]})]}))},composites:["label","desc"]});bd("l-corner-card",{component:t=>{const[{indexes:e,datum:n,width:i=140,iconSize:r=24,themeColors:o},s]=yd(t,["width","iconSize"]),{label:a,desc:l}=n,c=[{x:0,y:88},{x:16,y:72},{x:16,y:88}],h=i-16-12,u=`M 28 ${76+(r+44)} L 28 76 L ${28+h} 76`;return U(X,Object.assign({},s,{children:[V(Bu,{indexes:e,x:28,width:i-28,height:60,fontSize:12,alignHorizontal:"left",alignVertical:"bottom",fill:o.colorTextSecondary,children:l}),V(Q,{points:c,fill:o.colorPrimary,opacity:.9,width:16,height:16,"data-element-type":"shape"}),V(K,{d:u,stroke:o.colorPrimary,strokeWidth:8,fill:"none","data-element-type":"shape"}),V(Hu,{indexes:e,x:32+h/2-r/2,y:88,size:r,fill:o.colorPrimary}),V(Du,{indexes:e,x:32,y:80+r+16,width:h,fontSize:14,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:o.colorText,children:a})]}))},composites:["icon","label","desc"]});bd("letter-card",{component:t=>{var e,n;const[{datum:i,indexes:r,width:o=280,height:s=160,showStripe:a=!0,showGradient:l=!0,showBottomShade:c=!0,themeColors:h},u]=yd(t,["width","height","showStripe","showGradient","showBottomShade"]),d=null===(e=i.label)||void 0===e?void 0:e[0].toUpperCase(),f=null===(n=i.label)||void 0===n?void 0:n.toUpperCase(),p=h.colorPrimary,g=(0,wl.A)(p),m=g.clone().darken(4).toHexString(),y=g.clone().lighten(12).toHexString(),v=`letter-card-${r.join("-")}`,x=`${v}-gradient`,b=`${v}-pattern`,w=`${v}-shade`,M=s/16,k=(s-(96+M+16))/2,C=k+96+M;return U(X,Object.assign({},u,{width:o,height:s,children:[U(q,{children:[l&&U("linearGradient",{id:x,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:m}),V("stop",{offset:"100%",stopColor:y})]}),a&&U("pattern",{id:b,patternUnits:"userSpaceOnUse",width:10,height:10,patternTransform:"rotate(45)",children:[V("rect",{x:"0",y:"0",width:10,height:10,fill:"rgba(255, 255, 255, 0)"}),V("rect",{x:"0",y:"0",width:4,height:10,fill:"rgba(0, 0, 0, 0.03)"})]}),c&&U("linearGradient",{id:w,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:"rgba(0,0,0,0)"}),V("stop",{offset:"100%",stopColor:"rgba(0,0,0,0.16)"})]})]}),V(J,{x:0,y:0,width:o,height:s,fill:l?`url(#${x})`:p,rx:0,ry:0,"data-element-type":"shape"}),a&&V(J,{x:0,y:0,width:o,height:s,fill:`url(#${b})`,rx:0,ry:0}),c&&V(J,{x:0,y:s-40,width:o,height:40,fill:`url(#${w})`,rx:0,ry:0}),d&&V(Du,{indexes:r,x:0,y:k,width:o,fontSize:96,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"top",lineHeight:1,children:d}),V(Du,{indexes:r,x:0,y:C,width:o,fontSize:16,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"middle",lineHeight:1,children:f})]}))},composites:["label"]});bd("lined-text",{component:t=>{var e,n,i;const[{datum:r,indexes:o,width:s,themeColors:a,positionH:l="normal",positionV:c="center",formatter:h=t=>t||"",usePaletteColor:u=!1,showUnderline:d=!1,underlineGap:f=6,underlineExtend:p=8,underlineThickness:g=2},m]=yd(t,["width","formatter","usePaletteColor","showUnderline","underlineGap","underlineExtend","underlineThickness"]),y=h(null!==(n=null!==(e=r.label)&&void 0!==e?e:r.desc)&&void 0!==n?n:""),v="flipped"===l?"right":"center"===l?"center":"left",x=du(V(Du,{indexes:o,width:s,children:y})),b=null!=s?s:x.width,w=x.height,M=d?b+2*p:0,k=w+(d?f+g:0),C=d?Math.max(b,M):b,O=null!==(i=m.height)&&void 0!==i?i:k,j="right"===v?C-M:"center"===v?(C-M)/2:0,E=O;return U(X,Object.assign({},m,{width:C,height:O,children:[V(Du,{indexes:o,x:"right"===v?C-b:"center"===v?(C-b)/2:0,y:"middle"===c?(O-k)/2:"flipped"===c?O-k:0,width:b,height:w,alignHorizontal:v,alignVertical:"flipped"===c?"bottom":"center"===c?"middle":"top",fill:u?a.colorPrimary:a.colorText,children:y}),d&&V(K,{d:`M 0 ${g/2} L ${M} ${g/2}`,x:j,y:E-g/2,width:M,height:g,stroke:a.colorPrimary,strokeWidth:g,fill:"none",strokeLinecap:"round","data-element-type":"shape"})]}))},composites:["label"]});bd("pill-badge",{component:t=>{const[{datum:e,indexes:n,width:i=300,pillWidth:r=120,pillHeight:o=36,gap:s=16,positionH:a="normal",themeColors:l},c]=yd(t,["width","pillWidth","pillHeight","gap"]),h=!!e.desc,u=h?i:r,d=h?"center"===a?(u-r)/2:"flipped"===a?u-r:0:0,f=o+s,p=u,g=`drop-shadow-${l.colorPrimary}`,m="linear-gradient-white-top-bottom";return U(X,Object.assign({},c,{children:[U(q,{children:[V(Md,{id:g,color:l.colorPrimary}),V(kd,{id:m,startColor:"#fff",stopColor:"#ffffff33",direction:"top-bottom"})]}),V(J,{x:d,y:0,width:r,height:o,fill:l.colorPrimaryBg,stroke:l.colorPrimary,rx:o/2,ry:o/2,filter:`url(#${g})`,"data-element-type":"shape"}),V(J,{x:d,y:0,width:r,height:o,fill:`url(#${m})`,opacity:l.isDarkMode?.4:.7,rx:o/2,ry:o/2}),V(Du,{indexes:n,x:d,y:0,width:r,height:o,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:l.colorText,children:e.label}),e.desc&&V(Bu,{indexes:n,x:0,y:f,width:p,alignHorizontal:"center"===a?"center":"flipped"===a?"right":"left",fontSize:12,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:e.desc})]}))},composites:["label","desc"]});function _d(){}function Sd(t){return null==t?_d:function(){return this.querySelector(t)}}function $d(){return[]}function Ad(t){return null==t?$d:function(){return this.querySelectorAll(t)}}function zd(t){return function(){return function(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}(t.apply(this,arguments))}}function Pd(t){return function(){return this.matches(t)}}function Ld(t){return function(e){return e.matches(t)}}bd("plain-text",{component:t=>{var e;const[{indexes:n,datum:i,width:r=120,themeColors:o,positionH:s="normal",positionV:a="center",formatter:l=t=>t||"",usePaletteColor:c=!1,lineNumber:h=1},u]=yd(t,["width","formatter","usePaletteColor","lineNumber"]),d=null!==(e=u.height)&&void 0!==e?e:Math.ceil(1.4*h*14);return V(Du,Object.assign({},u,{indexes:n,width:r,height:d,lineHeight:1.4,fill:c?o.colorPrimary:o.colorText,fontSize:14,fontWeight:"regular",alignHorizontal:"flipped"===s?"right":"center"===s?"center":"left",alignVertical:"flipped"===a?"bottom":"center"===a?"middle":"top",children:l(i.label||i.desc)}))},composites:["label"]});var Id=Array.prototype.find;function Td(){return this.firstElementChild}var Rd=Array.prototype.filter;function Bd(){return Array.from(this.children)}function Wd(t){return new Array(t.length)}function Hd(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Nd(t,e,n,i,r,o){for(var s,a=0,l=e.length,c=o.length;a<c;++a)(s=e[a])?(s.__data__=o[a],i[a]=s):n[a]=new Hd(t,o[a]);for(;a<l;++a)(s=e[a])&&(r[a]=s)}function Fd(t,e,n,i,r,o,s){var a,l,c,h=new Map,u=e.length,d=o.length,f=new Array(u);for(a=0;a<u;++a)(l=e[a])&&(f[a]=c=s.call(l,l.__data__,a,e)+"",h.has(c)?r[a]=l:h.set(c,l));for(a=0;a<d;++a)c=s.call(t,o[a],a,o)+"",(l=h.get(c))?(i[a]=l,l.__data__=o[a],h.delete(c)):n[a]=new Hd(t,o[a]);for(a=0;a<u;++a)(l=e[a])&&h.get(f[a])===l&&(r[a]=l)}function Dd(t){return t.__data__}function Vd(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Ud(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Hd.prototype={constructor:Hd,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 Yd="http://www.w3.org/1999/xhtml";const qd={svg:"http://www.w3.org/2000/svg",xhtml:Yd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Gd(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),qd.hasOwnProperty(e)?{space:qd[e],local:t}:t}function Xd(t){return function(){this.removeAttribute(t)}}function Kd(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Zd(t,e){return function(){this.setAttribute(t,e)}}function Qd(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Jd(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function tf(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 ef(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function nf(t){return function(){this.style.removeProperty(t)}}function rf(t,e,n){return function(){this.style.setProperty(t,e,n)}}function of(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function sf(t,e){return t.style.getPropertyValue(e)||ef(t).getComputedStyle(t,null).getPropertyValue(e)}function af(t){return function(){delete this[t]}}function lf(t,e){return function(){this[t]=e}}function cf(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function hf(t){return t.trim().split(/^|\s+/)}function uf(t){return t.classList||new df(t)}function df(t){this._node=t,this._names=hf(t.getAttribute("class")||"")}function ff(t,e){for(var n=uf(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function pf(t,e){for(var n=uf(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function gf(t){return function(){ff(this,t)}}function mf(t){return function(){pf(this,t)}}function yf(t,e){return function(){(e.apply(this,arguments)?ff:pf)(this,t)}}function vf(){this.textContent=""}function xf(t){return function(){this.textContent=t}}function bf(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function wf(){this.innerHTML=""}function Mf(t){return function(){this.innerHTML=t}}function kf(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Cf(){this.nextSibling&&this.parentNode.appendChild(this)}function Of(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function jf(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Yd&&e.documentElement.namespaceURI===Yd?e.createElement(t):e.createElementNS(n,t)}}function Ef(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function _f(t){var e=Gd(t);return(e.local?Ef:jf)(e)}function Sf(){return null}function $f(){var t=this.parentNode;t&&t.removeChild(this)}function Af(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function zf(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Pf(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,o=e.length;i<o;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++r]=n:this.removeEventListener(n.type,n.listener,n.options);++r?e.length=r:delete this.__on}}}function Lf(t,e,n){return function(){var i,r=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(r)for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),void(i.value=e);this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function If(t,e,n){var i=ef(t),r=i.CustomEvent;"function"==typeof r?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function Tf(t,e){return function(){return If(this,t,e)}}function Rf(t,e){return function(){return If(this,t,e.apply(this,arguments))}}df.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 Bf=[null];function Wf(t,e){this._groups=t,this._parents=e}function Hf(){return new Wf([[document.documentElement]],Bf)}Wf.prototype=Hf.prototype={constructor:Wf,select:function(t){"function"!=typeof t&&(t=Sd(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,s,a=e[r],l=a.length,c=i[r]=new Array(l),h=0;h<l;++h)(o=a[h])&&(s=t.call(o,o.__data__,h,a))&&("__data__"in o&&(s.__data__=o.__data__),c[h]=s);return new Wf(i,this._parents)},selectAll:function(t){t="function"==typeof t?zd(t):Ad(t);for(var e=this._groups,n=e.length,i=[],r=[],o=0;o<n;++o)for(var s,a=e[o],l=a.length,c=0;c<l;++c)(s=a[c])&&(i.push(t.call(s,s.__data__,c,a)),r.push(s));return new Wf(i,r)},selectChild:function(t){return this.select(null==t?Td:function(t){return function(){return Id.call(this.children,t)}}("function"==typeof t?t:Ld(t)))},selectChildren:function(t){return this.selectAll(null==t?Bd:function(t){return function(){return Rd.call(this.children,t)}}("function"==typeof t?t:Ld(t)))},filter:function(t){"function"!=typeof t&&(t=Pd(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,s=e[r],a=s.length,l=i[r]=[],c=0;c<a;++c)(o=s[c])&&t.call(o,o.__data__,c,s)&&l.push(o);return new Wf(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Dd);var n=e?Fd:Nd,i=this._parents,r=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var o=r.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var h=i[c],u=r[c],d=u.length,f=Vd(t.call(h,h&&h.__data__,c,i)),p=f.length,g=a[c]=new Array(p),m=s[c]=new Array(p);n(h,u,g,m,l[c]=new Array(d),f,e);for(var y,v,x=0,b=0;x<p;++x)if(y=g[x]){for(x>=b&&(b=x+1);!(v=m[b])&&++b<p;);y._next=v||null}}return(s=new Wf(s,i))._enter=a,s._exit=l,s},enter:function(){return new Wf(this._enter||this._groups.map(Wd),this._parents)},exit:function(){return new Wf(this._exit||this._groups.map(Wd),this._parents)},join:function(t,e,n){var i=this.enter(),r=this,o=this.exit();return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(r=e(r))&&(r=r.selection()),null==n?o.remove():n(o),i&&r?i.merge(r).order():r},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,o=Math.min(r,i.length),s=new Array(r),a=0;a<o;++a)for(var l,c=n[a],h=i[a],u=c.length,d=s[a]=new Array(u),f=0;f<u;++f)(l=c[f]||h[f])&&(d[f]=l);for(;a<r;++a)s[a]=n[a];return new Wf(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,r=t[e],o=r.length-1,s=r[o];--o>=0;)(i=r[o])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Ud);for(var n=this._groups,i=n.length,r=new Array(i),o=0;o<i;++o){for(var s,a=n[o],l=a.length,c=r[o]=new Array(l),h=0;h<l;++h)(s=a[h])&&(c[h]=s);c.sort(e)}return new Wf(r,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 i=t[e],r=0,o=i.length;r<o;++r){var s=i[r];if(s)return s}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,i=e.length;n<i;++n)for(var r,o=e[n],s=0,a=o.length;s<a;++s)(r=o[s])&&t.call(r,r.__data__,s,o);return this},attr:function(t,e){var n=Gd(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?Kd:Xd:"function"==typeof e?n.local?tf:Jd:n.local?Qd:Zd)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?nf:"function"==typeof e?of:rf)(t,e,n??"")):sf(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?af:"function"==typeof e?cf:lf)(t,e)):this.node()[t]},classed:function(t,e){var n=hf(t+"");if(arguments.length<2){for(var i=uf(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?yf:e?gf:mf)(n,e))},text:function(t){return arguments.length?this.each(null==t?vf:("function"==typeof t?bf:xf)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?wf:("function"==typeof t?kf:Mf)(t)):this.node().innerHTML},raise:function(){return this.each(Cf)},lower:function(){return this.each(Of)},append:function(t){var e="function"==typeof t?t:_f(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:_f(t),i=null==e?Sf:"function"==typeof e?e:Sd(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each($f)},clone:function(t){return this.select(t?zf:Af)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,r,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+""),s=o.length;if(!(arguments.length<2)){for(a=e?Lf:Pf,i=0;i<s;++i)this.each(a(o[i],e,n));return this}var a=this.node().__on;if(a)for(var l,c=0,h=a.length;c<h;++c)for(i=0,l=a[c];i<s;++i)if((r=o[i]).type===l.type&&r.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?Rf:Tf)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,r=t[e],o=0,s=r.length;o<s;++o)(i=r[o])&&(yield i)}};const Nf=Hf;var Ff=n("./node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js"),Df=n("./node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js");function Vf(t,e,n){var i=new Df.M4;return i.restart(n=>{i.stop(),t(n+e)},e=null==e?0:+e,n),i}var Uf=(0,Ff.A)("start","end","cancel","interrupt"),Yf=[];function qf(t,e,n,i,r,o){var s=t.__transition;if(s){if(n in s)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function o(t){n.state=1,n.timer.restart(s,n.delay,n.time),n.delay<=t&&s(t-n.delay)}function s(o){var c,h,u,d;if(1!==n.state)return l();for(c in r)if((d=r[c]).name===n.name){if(3===d.state)return Vf(s);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[c]):+c<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[c])}if(Vf(function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(o))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,i=new Array(u=n.tween.length),c=0,h=-1;c<u;++c)(d=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++h]=d);i.length=h+1}}function a(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(l),n.state=5,1),o=-1,s=i.length;++o<s;)i[o].call(t,r);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){for(var i in n.state=6,n.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=n,n.timer=(0,Df.O1)(o,0,n.time)}(t,n,{name:e,index:i,group:r,on:Uf,tween:Yf,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function Gf(t,e){var n=Kf(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function Xf(t,e){var n=Kf(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Kf(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var Zf,Qf=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/number.js"),Jf=180/Math.PI,tp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ep(t,e,n,i,r,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:r,translateY:o,rotate:Math.atan2(e,t)*Jf,skewX:Math.atan(l)*Jf,scaleX:s,scaleY:a}}function np(t,e,n,i){function r(t){return t.length?t.pop()+" ":""}return function(o,s){var a=[],l=[];return o=t(o),s=t(s),function(t,i,r,o,s,a){if(t!==r||i!==o){var l=s.push("translate(",null,e,null,n);a.push({i:l-4,x:(0,Qf.A)(t,r)},{i:l-2,x:(0,Qf.A)(i,o)})}else(r||o)&&s.push("translate("+r+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,a,l),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(r(n)+"rotate(",null,i)-2,x:(0,Qf.A)(t,e)})):e&&n.push(r(n)+"rotate("+e+i)}(o.rotate,s.rotate,a,l),function(t,e,n,o){t!==e?o.push({i:n.push(r(n)+"skewX(",null,i)-2,x:(0,Qf.A)(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}(o.skewX,s.skewX,a,l),function(t,e,n,i,o,s){if(t!==n||e!==i){var a=o.push(r(o)+"scale(",null,",",null,")");s.push({i:a-4,x:(0,Qf.A)(t,n)},{i:a-2,x:(0,Qf.A)(e,i)})}else 1===n&&1===i||o.push(r(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,a,l),o=s=null,function(t){for(var e,n=-1,i=l.length;++n<i;)a[(e=l[n]).i]=e.x(t);return a.join("")}}}var ip=np(function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?tp:ep(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),rp=np(function(t){return null==t?tp:(Zf||(Zf=document.createElementNS("http://www.w3.org/2000/svg","g")),Zf.setAttribute("transform",t),(t=Zf.transform.baseVal.consolidate())?ep((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tp)},", ",")",")");function op(t,e){var n,i;return function(){var r=Xf(this,t),o=r.tween;if(o!==n)for(var s=0,a=(i=n=o).length;s<a;++s)if(i[s].name===e){(i=i.slice()).splice(s,1);break}r.tween=i}}function sp(t,e,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var o=Xf(this,t),s=o.tween;if(s!==i){r=(i=s).slice();for(var a={name:e,value:n},l=0,c=r.length;l<c;++l)if(r[l].name===e){r[l]=a;break}l===c&&r.push(a)}o.tween=r}}function ap(t,e,n){var i=t._id;return t.each(function(){var t=Xf(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return Kf(t,i).value[e]}}var lp=n("./node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.js"),cp=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.js"),hp=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.js");function up(t,e){var n;return("number"==typeof e?Qf.A:e instanceof lp.Ay?cp.Ay:(n=(0,lp.Ay)(e))?(e=n,cp.Ay):hp.A)(t,e)}function dp(t){return function(){this.removeAttribute(t)}}function fp(t){return function(){this.removeAttributeNS(t.space,t.local)}}function pp(t,e,n){var i,r,o=n+"";return function(){var s=this.getAttribute(t);return s===o?null:s===i?r:r=e(i=s,n)}}function gp(t,e,n){var i,r,o=n+"";return function(){var s=this.getAttributeNS(t.space,t.local);return s===o?null:s===i?r:r=e(i=s,n)}}function mp(t,e,n){var i,r,o;return function(){var s,a,l=n(this);if(null!=l)return(s=this.getAttribute(t))===(a=l+"")?null:s===i&&a===r?o:(r=a,o=e(i=s,l));this.removeAttribute(t)}}function yp(t,e,n){var i,r,o;return function(){var s,a,l=n(this);if(null!=l)return(s=this.getAttributeNS(t.space,t.local))===(a=l+"")?null:s===i&&a===r?o:(r=a,o=e(i=s,l));this.removeAttributeNS(t.space,t.local)}}function vp(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,r)),n}return r._value=e,r}function xp(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,r)),n}return r._value=e,r}function bp(t,e){return function(){Gf(this,t).delay=+e.apply(this,arguments)}}function wp(t,e){return e=+e,function(){Gf(this,t).delay=e}}function Mp(t,e){return function(){Xf(this,t).duration=+e.apply(this,arguments)}}function kp(t,e){return e=+e,function(){Xf(this,t).duration=e}}var Cp=Nf.prototype.constructor;function Op(t){return function(){this.style.removeProperty(t)}}var jp=0;function Ep(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function _p(){return++jp}var Sp=Nf.prototype;Ep.prototype=function(t){return Nf().transition(t)}.prototype={constructor:Ep,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Sd(t));for(var i=this._groups,r=i.length,o=new Array(r),s=0;s<r;++s)for(var a,l,c=i[s],h=c.length,u=o[s]=new Array(h),d=0;d<h;++d)(a=c[d])&&(l=t.call(a,a.__data__,d,c))&&("__data__"in a&&(l.__data__=a.__data__),u[d]=l,qf(u[d],e,n,d,u,Kf(a,n)));return new Ep(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Ad(t));for(var i=this._groups,r=i.length,o=[],s=[],a=0;a<r;++a)for(var l,c=i[a],h=c.length,u=0;u<h;++u)if(l=c[u]){for(var d,f=t.call(l,l.__data__,u,c),p=Kf(l,n),g=0,m=f.length;g<m;++g)(d=f[g])&&qf(d,e,n,g,f,p);o.push(f),s.push(l)}return new Ep(o,s,e,n)},selectChild:Sp.selectChild,selectChildren:Sp.selectChildren,filter:function(t){"function"!=typeof t&&(t=Pd(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,s=e[r],a=s.length,l=i[r]=[],c=0;c<a;++c)(o=s[c])&&t.call(o,o.__data__,c,s)&&l.push(o);return new Ep(i,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,i=e.length,r=Math.min(i,n.length),o=new Array(i),s=0;s<r;++s)for(var a,l=e[s],c=n[s],h=l.length,u=o[s]=new Array(h),d=0;d<h;++d)(a=l[d]||c[d])&&(u[d]=a);for(;s<i;++s)o[s]=e[s];return new Ep(o,this._parents,this._name,this._id)},selection:function(){return new Cp(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=_p(),i=this._groups,r=i.length,o=0;o<r;++o)for(var s,a=i[o],l=a.length,c=0;c<l;++c)if(s=a[c]){var h=Kf(s,e);qf(s,t,n,c,a,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Ep(i,this._parents,t,n)},call:Sp.call,nodes:Sp.nodes,node:Sp.node,size:Sp.size,empty:Sp.empty,each:Sp.each,on:function(t,e){var n=this._id;return arguments.length<2?Kf(this.node(),n).on.on(t):this.each(function(t,e,n){var i,r,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)?Gf:Xf;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(e,n),s.on=r}}(n,t,e))},attr:function(t,e){var n=Gd(t),i="transform"===n?rp:up;return this.attrTween(t,"function"==typeof e?(n.local?yp:mp)(n,i,ap(this,"attr."+t,e)):null==e?(n.local?fp:dp)(n):(n.local?gp:pp)(n,i,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 i=Gd(t);return this.tween(n,(i.local?vp:xp)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?ip:up;return null==e?this.styleTween(t,function(t,e){var n,i,r;return function(){var o=sf(this,t),s=(this.style.removeProperty(t),sf(this,t));return o===s?null:o===n&&s===i?r:r=e(n=o,i=s)}}(t,i)).on("end.style."+t,Op(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,r,o;return function(){var s=sf(this,t),a=n(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=sf(this,t)),s===l?null:s===i&&l===r?o:(r=l,o=e(i=s,a))}}(t,i,ap(this,"style."+t,e))).each(function(t,e){var n,i,r,o,s="style."+e,a="end."+s;return function(){var l=Xf(this,t),c=l.on,h=null==l.value[s]?o||(o=Op(e)):void 0;c===n&&r===h||(i=(n=c).copy()).on(a,r=h),l.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,r,o=n+"";return function(){var s=sf(this,t);return s===o?null:s===i?r:r=e(i=s,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,function(t,e,n){var i,r;function o(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&function(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}(t,o,n)),i}return o._value=e,o}(t,e,n??""))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=e??""}}(ap(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 i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&function(t){return function(e){this.textContent=t.call(this,e)}}(i)),e}return i._value=t,i}(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 i,r=Kf(this.node(),n).tween,o=0,s=r.length;o<s;++o)if((i=r[o]).name===t)return i.value;return null}return this.each((null==e?op:sp)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?bp:wp)(e,t)):Kf(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Mp:kp)(e,t)):Kf(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(){Xf(this,t).ease=e}}(e,t)):Kf(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;Xf(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,i=n._id,r=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){0===--r&&o()}};n.each(function(){var n=Xf(this,i),r=n.on;r!==t&&((e=(t=r).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e}),0===r&&o()})},[Symbol.iterator]:Sp[Symbol.iterator]};var $p={time:null,delay:0,duration:250,ease:n("./node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.js").wq};function Ap(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}Nf.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var n,i,r,o=t.__transition,s=!0;if(o){for(r in e=null==e?null:e+"",o)(n=o[r]).name===e?(i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[r]):s=!1;s&&delete t.__transition}}(this,t)})},Nf.prototype.transition=function(t){var e,n;t instanceof Ep?(e=t._id,t=t._name):(e=_p(),(n=$p).time=(0,Df.tB)(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,o=0;o<r;++o)for(var s,a=i[o],l=a.length,c=0;c<l;++c)(s=a[c])&&qf(s,t,e,c,a,n||Ap(s,e));return new Ep(i,this._parents,t,e)};const{abs:zp,max:Pp,min:Lp}=Math;function Ip(t){return[+t[0],+t[1]]}function Tp(t){return[Ip(t[0]),Ip(t[1])]}["w","e"].map(Rp),["n","s"].map(Rp),["n","w","e","s","nw","ne","sw","se"].map(Rp);function Rp(t){return{type:t}}var Bp=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/center.js"),Wp=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/collide.js"),Hp=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/link.js"),Np=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/manyBody.js"),Fp=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/simulation.js"),Dp=n("./node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/index.js"),Vp=n("./node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/tree.js"),Up=n("./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ticks.js"),Yp=n("./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisect.js"),qp=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/value.js");function Gp(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Xp(t){return+t}var Kp=[0,1];function Zp(t){return t}function Qp(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function Jp(t,e,n){var i=t[0],r=t[1],o=e[0],s=e[1];return r<i?(i=Qp(r,i),o=n(s,o)):(i=Qp(i,r),o=n(o,s)),function(t){return o(i(t))}}function tg(t,e,n){var i=Math.min(t.length,e.length)-1,r=new Array(i),o=new Array(i),s=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)r[s]=Qp(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(e){var n=(0,Yp.Ay)(t,e,1,i)-1;return o[n](r[n](e))}}function eg(){var t,e,n,i,r,o,s=Kp,a=Kp,l=qp.A,c=Zp;function h(){var t=Math.min(s.length,a.length);return c!==Zp&&(c=function(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(s[0],s[t-1])),i=t>2?tg:Jp,r=o=null,u}function u(e){return null==e||isNaN(e=+e)?n:(r||(r=i(s.map(t),a,l)))(t(c(e)))}return u.invert=function(n){return c(e((o||(o=i(a,s.map(t),Qf.A)))(n)))},u.domain=function(t){return arguments.length?(s=Array.from(t,Xp),h()):s.slice()},u.range=function(t){return arguments.length?(a=Array.from(t),h()):a.slice()},u.rangeRound=function(t){return a=Array.from(t),l=Gp,h()},u.clamp=function(t){return arguments.length?(c=!!t||Zp,h()):c!==Zp},u.interpolate=function(t){return arguments.length?(l=t,h()):l},u.unknown=function(t){return arguments.length?(n=t,u):n},function(n,i){return t=n,e=i,h()}}function ng(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var ig=n("./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatSpecifier.js"),rg=n("./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/exponent.js");var og=n("./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/defaultLocale.js");function sg(t,e,n,i){var r,o=(0,Up.sG)(t,e,n);switch((i=(0,ig.A)(i??",f")).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(r=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,rg.A)(e)/3)))-(0,rg.A)(Math.abs(t)))}(o,s))||(i.precision=r),(0,og.s)(i,s);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(r=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,(0,rg.A)(e)-(0,rg.A)(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=r-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(r=function(t){return Math.max(0,-(0,rg.A)(Math.abs(t)))}(o))||(i.precision=r-2*("%"===i.type))}return(0,og.GP)(i)}function ag(){var t=eg()(Zp,Zp);return t.copy=function(){return e=t,ag().domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());var e},ng.apply(t,arguments),function(t){var e=t.domain;return t.ticks=function(t){var n=e();return(0,Up.Ay)(n[0],n[n.length-1],t??10)},t.tickFormat=function(t,n){var i=e();return sg(i[0],i[i.length-1],t??10,n)},t.nice=function(n){null==n&&(n=10);var i,r,o=e(),s=0,a=o.length-1,l=o[s],c=o[a],h=10;for(c<l&&(r=l,l=c,c=r,r=s,s=a,a=r);h-- >0;){if((r=(0,Up.lq)(l,c,n))===i)return o[s]=l,o[a]=c,e(o);if(r>0)l=Math.floor(l/r)*r,c=Math.ceil(c/r)*r;else{if(!(r<0))break;l=Math.ceil(l*r)/r,c=Math.floor(c*r)/r}i=r}return t},t}(t)}var lg=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/arc.js"),cg=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/line.js"),hg=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/array.js"),ug=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.js");function dg(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function fg(t){return t}var pg=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/math.js");var gg=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.js");function mg(t,e,n){this.k=t,this.x=e,this.y=n}mg.prototype={constructor:mg,scale:function(t){return 1===t?this:new mg(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new mg(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+")"}};new mg(1,0,0);bd("progress-card",{component:t=>{const[{datum:e,data:n,indexes:i,width:r=280,height:o=120,iconSize:s=32,gap:a=12,progressHeight:l=8,borderRadius:c=12,positionH:h="normal",themeColors:u,valueFormatter:d=t=>`${t}%`},f]=yd(t,["width","height","iconSize","gap","progressHeight","borderRadius"]),p=e.value,g=null!=p?p:0,m=Math.max(...n.items.map(t=>{var e;return null!==(e=t.value)&&void 0!==e?e:0}),100),y=r-2*a,v=ag().domain([0,m]).range([0,y])(g),x=`${u.colorPrimary}-progress`,b=`${u.colorPrimaryBg}-progress-bg`,w=du(V(Du,{indexes:i})),M="flipped"===h?r-a-s:a,k=a,C="flipped"===h?a:s+2*a,O=r-s-3*a,j=k,E=o-a-l,_=void 0!==p;return U(X,Object.assign({},f,{children:[U(q,{children:[U("linearGradient",{id:x,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[V("stop",{offset:"0%",stopColor:u.colorPrimary}),V("stop",{offset:"100%",stopColor:wl.A.mix(u.colorPrimary,"#fff",20).toHexString()})]}),U("linearGradient",{id:b,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[V("stop",{offset:"0%",stopColor:u.colorPrimaryBg}),V("stop",{offset:"100%",stopColor:u.colorBg})]})]}),V(J,{x:0,y:0,width:r,height:o,fill:u.colorBgElevated,stroke:u.colorPrimaryBg,strokeWidth:1,rx:c,ry:c,"data-element-type":"shape"}),V(Hu,{indexes:i,x:M,y:k,size:s,fill:u.colorPrimary}),V(Du,{indexes:i,x:C,y:j,width:O,alignHorizontal:"flipped"===h?"right":"left",alignVertical:"top",fontSize:16,fontWeight:"medium",fill:u.colorText,children:e.label}),_&&V(Yu,{indexes:i,x:C,y:j+w.height,width:O,alignHorizontal:"flipped"===h?"right":"left",alignVertical:"top",lineHeight:1,fontSize:24,fontWeight:"bold",fill:u.colorPrimary,value:g,formatter:d}),V(Bu,{indexes:i,x:C,y:j+w.height+(_?27:4),width:O,alignHorizontal:"flipped"===h?"right":"left",alignVertical:"top",fontSize:11,fill:u.colorTextSecondary,lineNumber:_?2:3,wordWrap:!0,children:e.desc}),V(J,{x:a,y:E,width:y,height:l,fill:`url(#${b})`,rx:l/2,ry:l/2,"data-element-type":"shape"}),V(J,{x:a,y:E,width:v,height:l,fill:`url(#${x})`,rx:l/2,ry:l/2,"data-element-type":"shape"})]}))},composites:["icon","label","value","desc"]});bd("quarter-circular",{component:t=>{const[{datum:e,indexes:n,width:i=280,height:r=120,iconSize:o=30,circleRadius:s=80,positionH:a="normal",positionV:l="normal",themeColors:c},h]=yd(t,["width","height","iconSize","circleRadius"]),u=4*s/(3*Math.PI),d=40,f=String(n[0]+1).padStart(2,"0"),p="flipped"===a,g="flipped"===l,m=p?{diagonalStartX:i-4,diagonalStartY:g?r-35:35,diagonalEndX:i-d,diagonalEndY:g?r-4:4,topLineStartX:i-d,topLineEndX:u,topLineY:g?r-4:4}:{diagonalStartX:4,diagonalStartY:g?r-35:35,diagonalEndX:d,diagonalEndY:g?r-4:4,topLineStartX:d,topLineEndX:i-u,topLineY:g?r-4:4},y=(()=>{if(p){const t=s+10;return{valueX:i-30,contentX:t,contentWidth:i-t-d,circleX:0,circleY:g?0:r,iconX:u-o/2}}return{valueX:0,contentX:d,contentWidth:i-d-s-10,circleX:i,circleY:g?0:r,iconX:i-u-o/2}})(),v=g?u-o/2:r-u-o/2,x=20+du(V(Du,{indexes:n,width:y.contentWidth,children:e.label})).height+8;return U(X,Object.assign({},h,{width:i,height:r,children:[U(qu,{children:[V(K,{d:`M ${m.diagonalStartX} ${m.diagonalStartY} L ${m.diagonalEndX} ${m.diagonalEndY}`,stroke:c.colorPrimary,strokeWidth:2,fill:"none"}),V(K,{d:`M ${m.topLineStartX} ${m.topLineY} L ${m.topLineEndX} ${m.topLineY}`,stroke:c.colorPrimary,strokeWidth:2,fill:"none"}),V(G,{x:m.diagonalStartX-4,y:m.diagonalStartY-4,width:8,height:8,fill:c.colorPrimary}),V(G,{x:m.topLineEndX-4,y:m.topLineY-4,width:8,height:8,fill:c.colorPrimary})]}),U(X,{children:[V(su,{x:y.valueX,y:40,fontSize:28,fontWeight:"bold",fill:c.colorPrimary,children:f}),V(K,{d:(()=>{const{circleX:t,circleY:e}=y;return p?g?`M ${t} ${e} L ${t} ${e+s} A ${s} ${s} 0 0 0 ${t+s} ${e} Z`:`M ${t} ${e} L ${t} ${e-s} A ${s} ${s} 0 0 1 ${t+s} ${e} Z`:g?`M ${t} ${e} L ${t} ${e+s} A ${s} ${s} 0 0 1 ${t-s} ${e} Z`:`M ${t} ${e} L ${t} ${e-s} A ${s} ${s} 0 0 0 ${t-s} ${e} Z`})(),fill:c.colorPrimary,"data-element-type":"shape"}),e.icon&&V(Hu,{indexes:n,x:y.iconX,y:v,size:o,fill:c.colorWhite}),e.label&&V(Du,{indexes:n,x:y.contentX,y:20,width:y.contentWidth,fontWeight:"bold",fill:c.colorText,alignHorizontal:p?"right":"left",children:e.label}),e.desc&&V(Bu,{indexes:n,x:y.contentX,y:x,width:y.contentWidth,fill:c.colorTextSecondary,alignHorizontal:p?"right":"left",children:e.desc})]})]}))},composites:["icon","label","desc"]});bd("quarter-simple-card",{component:t=>{const[{datum:e,indexes:n,width:i=150,height:r=150,iconSize:o=30,padding:s=20,borderRadius:a=16,positionH:l="center",positionV:c="middle",themeColors:h},u]=yd(t,["width","height","iconSize","padding","borderRadius"]),d=i-2*s,f="flipped"===l?i-s-o:"center"===l?(i-o)/2:s,p=s,g=p+o+8,m="flipped"===l?i-s-d:"center"===l?s:s,y=g+du(V(Du,{indexes:n,width:d,children:e.label})).height+4,v=m;let x="";return x="center"===l&&"middle"===c?`\n M ${a} 0\n L ${i-a} 0\n Q ${i} 0 ${i} ${a}\n L ${i} ${r-a}\n Q ${i} ${r} ${i-a} ${r}\n L ${a} ${r}\n Q 0 ${r} 0 ${r-a}\n L 0 ${a}\n Q 0 0 ${a} 0\n Z\n`:"flipped"===l&&"flipped"===c?`\n M ${a} 0\n L ${i-a} 0\n Q ${i} 0 ${i} ${a}\n L ${i} ${r-a}\n Q ${i} ${r} ${i-a} ${r}\n L ${a} ${r}\n Q 0 ${r} 0 ${r-a}\n L 0 0\n L ${a} 0\n Z\n`:"normal"===l&&"flipped"===c?`\n M 0 0\n L ${i} 0\n L ${i} ${r-a}\n Q ${i} ${r} ${i-a} ${r}\n L ${a} ${r}\n Q 0 ${r} 0 ${r-a}\n L 0 ${a}\n Q 0 0 ${a} 0\n Z\n`:"flipped"===l?`\n M ${a} 0\n L ${i-a} 0\n Q ${i} 0 ${i} ${a}\n L ${i} ${r-a}\n Q ${i} ${r} ${i-a} ${r}\n L 0 ${r}\n L 0 ${a}\n Q 0 0 ${a} 0\n Z\n`:`\n M ${a} 0\n L ${i-a} 0\n Q ${i} 0 ${i} ${a}\n L ${i} ${r}\n L ${a} ${r}\n Q 0 ${r} 0 ${r-a}\n L 0 ${a}\n Q 0 0 ${a} 0\n Z\n`,U(X,Object.assign({},u,{children:[V(K,{d:x,x:0,y:0,width:i,height:r,fill:h.colorPrimary,"data-element-type":"shape"}),V(Hu,{indexes:n,x:f,y:p,size:o,fill:h.colorBg}),V(Du,{indexes:n,x:m,y:g,width:d,fontSize:14,fontWeight:"bold",fill:h.colorBg,alignHorizontal:"flipped"===l?"right":"left",children:e.label}),e.desc&&V(Bu,{indexes:n,x:v,y,width:d,fontSize:11,wordWrap:!0,fill:h.colorBg,alignHorizontal:"flipped"===l?"right":"left",children:e.desc})]}))},composites:["icon","label","desc"]});bd("ribbon-card",{component:t=>{const[{datum:e,indexes:n,width:i=240,height:r=140,iconSize:o=28,gap:s=12,ribbonHeight:a=32,themeColors:l},c]=yd(t,["width","height","iconSize","gap","ribbonHeight"]),h=`${l.colorPrimary}-ribbon`;return U(X,Object.assign({},c,{children:[V(q,{children:U("linearGradient",{id:h,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[V("stop",{offset:"0%",stopColor:l.colorPrimary}),V("stop",{offset:"100%",stopColor:(0,wl.A)(l.colorPrimary).darken(15).toHexString()})]})}),U(qu,{children:[V(J,{x:0,y:0,width:i,height:r,fill:l.colorBgElevated,stroke:l.colorPrimaryBg,strokeWidth:1,rx:8,ry:8}),V(J,{x:0,y:0,width:i,height:a,fill:`url(#${h})`,rx:8,ry:8}),V(J,{x:0,y:8,width:i,height:a-8,fill:`url(#${h})`}),V(K,{x:i-20,y:a,width:20,height:8,fill:(0,wl.A)(l.colorPrimary).darken(25).toHexString(),d:"M0,0 L20,0 L15,8 L5,8 Z"})]}),V(Hu,{indexes:n,x:s,y:a+s,size:o,fill:l.colorPrimary}),V(Du,{indexes:n,x:o+2*s,y:a+s,width:i-o-3*s,height:o,alignHorizontal:"left",alignVertical:"middle",lineHeight:1,fontWeight:"bold",fill:l.colorText,children:e.label}),V(Bu,{indexes:n,x:s,y:a+o+s+5,width:i-2*s,alignHorizontal:"left",fill:l.colorTextSecondary,lineNumber:3,wordWrap:!0,children:e.desc}),V(Hu,{indexes:n,x:i-s-8,y:s/2,size:16,fill:l.colorWhite})]}))},composites:["icon","label","desc"]});bd("rounded-rect-node",{component:t=>{const[{indexes:e,datum:n,themeColors:i,width:r=300,height:o=40,padding:s=4,positionH:a="normal"},l]=yd(t,["width","height","borderRadius","padding"]),c=o/2,h=c,u=s,d=r-2*c,f=o-2*s;return U(X,Object.assign({},l,{children:[V(J,{"data-element-type":"shape",width:r,height:o,rx:c,ry:c,fill:i.colorPrimaryBg,stroke:i.colorPrimary,strokeWidth:1,opacity:.8}),V(Du,{indexes:e,x:h,y:u,width:d,height:f,alignHorizontal:"flipped"===a?"right":"center"===a?"center":"left",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:i.colorText,children:n.label})]}))},composites:["label"]});bd("simple-circle-node",{component:t=>{const[{width:e=24,height:n=e,strokeWidth:i=2,themeColors:r,datum:o},s]=yd(t,["width","height"]),a=Math.min(e,n)-i,l=i/2;return U(X,Object.assign({},s,{width:e,height:n,children:[V(J,{width:e,height:n,fill:"none",visibility:"hidden"}),V(G,{x:l,y:l,width:a,height:a,fill:r.colorPrimary,stroke:r.isDarkMode?"#FFF":"#000",strokeWidth:i,"data-element-type":"shape",children:V("title",{children:o.label||o.desc})})]}))},composites:[]});const yg=t=>{const{x:e=0,y:n=0,width:i=100,height:r=40,fill:o="#FF356A",size:s=10}=t;return V(Q,{width:i,height:r,points:[{x:e,y:n},{x:e+i-s,y:n},{x:e+i,y:n+r/2},{x:e+i-s,y:n+r},{x:e,y:n+r},{x:e+s,y:n+r/2}],fill:o,"data-element-type":"shape"})};bd("simple-horizontal-arrow",{component:t=>{const[{indexes:e,datum:n,width:i=140,themeColors:r,positionV:o="normal"},s]=yd(t,["width"]),a="flipped"!==o,l=a?"bottom":"top",c=V(Du,{indexes:e,width:i,fill:r.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),h=V(Bu,{indexes:e,width:i,fill:r.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),u=10,d=du(c),f=du(h),p=d.height+f.height;return V(X,Object.assign({width:i,height:p+u+30+u+p},s,{children:U(Zu,{flexDirection:"column",alignItems:"center",children:[a?U(D,{children:[h,c,V(Lu,{height:u})]}):V(D,{children:V(Lu,{height:p+u})}),U(Xu,{horizontal:"center",vertical:"middle",children:[V(yg,{width:i,height:30,fill:r.colorPrimary}),V(su,{width:i,height:30,alignHorizontal:"center",alignVertical:"middle",fill:r.colorWhite,fontWeight:"bold",fontSize:16,children:n.time?n.time:String(e[0]+1).padStart(2,"0").slice(-2)})]}),a?V(D,{children:V(Lu,{height:p+u})}):U(D,{children:[V(Lu,{height:u}),c,h]})]})}))},composites:["label","desc","time"]});bd("simple-illus",{component:t=>{const[{indexes:e,datum:n,width:i=180,illusSize:r=i,gap:o=8,themeColors:s,usePaletteColor:a=!1},l]=yd(t,["width","illusSize","gap","usePaletteColor"]),{label:c,desc:h}=n,u=V(Du,{indexes:e,width:i,alignHorizontal:"center",alignVertical:"middle",fill:a?s.colorPrimary:s.colorText,children:c}),d=du(u);return U(Zu,Object.assign({},l,{width:i,height:r+o+d.height+o+48,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:o,children:[V(Tu,{indexes:e,width:r,height:r}),u,V(Bu,{indexes:e,width:i,alignHorizontal:"center",alignVertical:"top",fill:s.colorTextSecondary,lineNumber:3,children:h})]}))},composites:["illus","label","desc"]});bd("simple",{component:t=>{const[{indexes:e,datum:n,width:i=200,height:r,gap:o=4,showIcon:s=!0,iconSize:a=30,iconType:l="default",positionH:c="normal",positionV:h="normal",usePaletteColor:u=!1,themeColors:d},f]=yd(t,["width","height","gap","showIcon","iconSize","iconType","usePaletteColor"]),{label:p,desc:g,icon:m}=n,y="normal"===(v=c)?"left":"flipped"===v?"right":"center";var v;const x=u?d.colorPrimary:d.colorText,b=du(V(Du,{indexes:e,width:i,alignHorizontal:"center",alignVertical:"middle",fill:x,children:p})),w=s?"circle"===l?V(Nu,{indexes:e,size:a,fill:d.colorPrimary,colorBg:d.colorBg}):V(Hu,{indexes:e,size:a,fill:d.colorTextSecondary}):null;if(!s||!m){const t=r?Math.max(0,r-b.height-o):void 0,n=t?t<=60?1:Math.floor(t/(1.4*14)):2,s=r?"middle"===h?(r-b.height-(t||0)-o)/2:"flipped"===h?r-b.height-(t||0)-o:0:0;return U(X,Object.assign({},f,{children:[V(Du,{indexes:e,width:i,y:s,alignHorizontal:y,alignVertical:"middle",fill:x,children:p}),V(Bu,{indexes:e,width:i,height:t,y:s+b.height+o,alignHorizontal:y,alignVertical:"top",lineNumber:n,fill:d.colorTextSecondary,children:g})]}))}if("center"===c){const t=s&&m?a:0,n=r?Math.max(0,r-b.height-t-2*o):void 0,l=n?n<=60?1:Math.floor(n/(1.4*14)):2,c=b.height+(n||0)+o,u=r?"middle"===h?(r-c-t-o)/2:"flipped"===h?r-c-t-o:0:0;return V(Zu,Object.assign({},f,{flexDirection:"column",gap:o,alignItems:"center",children:U(D,"flipped"===h?{children:[U(X,{children:[V(Du,{indexes:e,width:i,y:u,alignHorizontal:"center",alignVertical:"middle",fill:x,children:p}),V(Bu,{indexes:e,width:i,height:n,y:u+b.height+o,alignHorizontal:"center",alignVertical:"bottom",lineNumber:l,fill:d.colorTextSecondary,children:g})]}),w]}:{children:[w,U(X,{children:[V(Du,{indexes:e,width:i,y:u,alignHorizontal:"center",alignVertical:"middle",fill:x,children:p}),V(Bu,{indexes:e,width:i,height:n,y:u+b.height+o,alignHorizontal:"center",alignVertical:"top",lineNumber:l,fill:d.colorTextSecondary,children:g})]})]})}))}const M=du(w),k=Math.max(i-M.width-o,0),C=r?Math.max(0,r-b.height-o):void 0,O=C?C<=60?1:Math.floor(C/(1.4*14)):2,j=r?"middle"===h?(r-b.height-(C||0)-o)/2:"flipped"===h?r-b.height-(C||0)-o:0:0;return V(Zu,Object.assign({},f,{flexDirection:"row",gap:o,alignItems:function(t){return"normal"===t?"flex-start":"flipped"===t?"flex-end":"center"}(h),children:U(D,"flipped"===c?{children:[U(X,{children:[V(Du,{indexes:e,width:k,y:j,alignHorizontal:"right",alignVertical:"middle",fill:x,children:p}),V(Bu,{indexes:e,width:k,height:C,y:j+b.height+o,alignHorizontal:"right",alignVertical:"top",lineNumber:O,fill:d.colorTextSecondary,children:g})]}),w]}:{children:[w,U(X,{children:[V(Du,{indexes:e,width:k,y:j,alignHorizontal:"left",alignVertical:"middle",fill:x,children:p}),V(Bu,{indexes:e,width:k,height:C,y:j+b.height+o,alignHorizontal:"left",alignVertical:"top",lineNumber:O,fill:d.colorTextSecondary,children:g})]})]})}))},composites:["icon","label","desc"]});const vg=t=>{const{x:e=0,y:n=0,width:i=30,height:r=100,fill:o="#FF356A",size:s=10}=t;return V(Q,{width:i,height:r,points:[{x:e,y:n},{x:e+i/2,y:n+s},{x:e+i,y:n},{x:e+i,y:n+r-s},{x:e+i/2,y:n+r},{x:e,y:n+r-s}],fill:o,"data-element-type":"shape"})};bd("simple-vertical-arrow",{component:t=>{const[{indexes:e,datum:n,height:i=140,themeColors:r,positionH:o="normal"},s]=yd(t,["height"]),a="normal"===o?"right":"left",l=V(Du,{indexes:e,width:120,fill:r.colorText,alignHorizontal:a,alignVertical:"middle",fontSize:14,children:n.label}),c=V(Bu,{indexes:e,width:120,fill:r.colorTextSecondary,alignHorizontal:a,alignVertical:"top",children:n.desc}),h="flipped"!==o,u=15;return V(X,Object.assign({width:300,height:i},s,{children:U(Zu,{flexDirection:"row",alignItems:"center",children:[h?U(D,{children:[U(Zu,{flexDirection:"column",alignItems:"flex-end",children:[l,c]}),V(Lu,{width:u})]}):V(D,{children:V(Lu,{width:135})}),U(Xu,{horizontal:"center",vertical:"middle",children:[V(vg,{width:30,height:i,fill:r.colorPrimary}),V(su,{width:30,height:i,alignHorizontal:"center",alignVertical:"middle",fill:r.colorWhite,fontWeight:"bold",fontSize:16,children:String(e[0]+1).padStart(2,"0").slice(-2)})]}),h?V(D,{children:V(Lu,{width:135})}):U(D,{children:[V(Lu,{width:u}),U(Zu,{flexDirection:"column",alignItems:"flex-start",children:[l,c]})]})]})}))},composites:["label","desc"]});bd("underline-text",{component:t=>{const[{datum:e,indexes:n,width:i=200,gap:r=4,positionH:o="center",themeColors:s},a]=yd(t,["width","height","gap"]),l=du(V(Du,{indexes:n,fontSize:18,fontWeight:"bold",width:i,children:e.label})),c=e.desc?du(V(Bu,{indexes:n,width:i,wordWrap:!0,children:e.desc})):{width:0,height:0},h="center"===o?"center":"flipped"===o?"right":"left",u="center"===o?(i-80)/2:"flipped"===o?i-80:0,d=0+l.height+r,f=d+3+2*r;return U(X,Object.assign({width:i,height:l.height+r+3+(e.desc?2*r+c.height:0)},a,{children:[e.label&&V(Du,{indexes:n,x:0,y:0,width:i,alignHorizontal:h,fill:s.colorPrimary,fontSize:18,fontWeight:"bold",children:e.label}),e.label&&V(J,{x:u,y:d,width:80,height:3,fill:s.colorPrimary,"data-element-type":"shape"}),e.desc&&V(Bu,{indexes:n,width:i,x:0,y:f,alignHorizontal:h,wordWrap:!0,fill:s.colorText,children:e.desc})]}))},composites:["label","desc"]});const xg=t=>{const{x:e=0,y:n=0,width:i=30,height:r=100,fill:o="#FF356A",size:s=10}=t;return V(Q,{width:i,height:r,points:[{x:e,y:n},{x:e+i/2,y:n+s},{x:e+i,y:n},{x:e+i,y:n+r-s},{x:e+i/2,y:n+r},{x:e,y:n+r-s}],fill:o,"data-element-type":"shape"})},bg=t=>{const{x:e=0,y:n=0,width:i=50,height:r=10,fill:o,positionH:s="normal"}=t,a=r/2,l=i-a,c=a;return U(X,{x:e,y:n,width:i,height:r,children:[V(G,{width:r,height:r,fill:o,x:"normal"===s?0:l-a,"data-element-type":"shape"}),V(K,{d:"normal"===s?`M${a},${c} L${a+l},${c}`:`M0,${c} L${l-a},${c}`,strokeWidth:2,stroke:o,"data-element-type":"shape"})]})};bd("vertical-icon-arrow",{component:t=>{const[{indexes:e,datum:n,height:i=140,themeColors:r,positionH:o="normal"},s]=yd(t,["height"]),a="flipped"!==o?"right":"left",l=V(Du,{indexes:e,width:120,fill:r.colorText,alignHorizontal:a,alignVertical:"middle",fontSize:14,children:n.label}),c=V(Bu,{indexes:e,width:120,fill:r.colorTextSecondary,alignHorizontal:a,alignVertical:"top",children:n.desc}),h=V(Nu,{indexes:e,fill:r.colorPrimary,colorBg:r.colorWhite}),u=V(bg,{width:30,height:8,fill:r.colorPrimary,positionH:o}),d="flipped"!==o,f=du(l),p=du(h),g=du(u),m=f.width+5+g.width-p.width-25,y=2*Math.max(f.width+5+g.width,25+p.width)+30;return V(X,Object.assign({width:y,height:i},s,{children:U(Zu,{flexDirection:"row",alignItems:"center",children:[U(D,d?{children:[U(Zu,{flexDirection:"column",alignItems:"flex-end",children:[l,c]}),V(Lu,{width:5}),u]}:{children:[V(Lu,{width:m}),h,V(Lu,{width:25})]}),U(Xu,{horizontal:"center",vertical:"middle",children:[V(xg,{width:30,height:i,fill:r.colorPrimary}),V(su,{width:30,height:i,alignHorizontal:"center",alignVertical:"middle",fill:r.colorWhite,fontWeight:"bold",fontSize:16,children:String(e[0]+1).padStart(2,"0").slice(-2)})]}),U(D,d?{children:[V(Lu,{width:25}),h]}:{children:[u,V(Lu,{width:5}),U(Zu,{flexDirection:"column",alignItems:"flex-start",children:[l,c]})]})]})}))},composites:["icon","label","desc"]});const wg=new Map;function Mg(t,e){wg.set(t,e)}Mg("chart-bar",{component:t=>{var e,n,i;const{Title:r,Item:o,data:s,width:a,gap:l,barGap:c,barHeight:h=28,barAreaWidth:u,labelGap:d=16,padding:f=24,showValue:p=!0,options:g,valueFormatter:m=t=>t.toString()}=t,y=null!==(e=null!=u?u:a)&&void 0!==e?e:480,{title:v,desc:x,items:b=[],xTitle:w,yTitle:M}=s,k=r?V(r,{title:v,desc:x}):null;if(0===b.length)return V(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:k});const[C,O,j,E]=Jh(f),_=null!==(n=b[0])&&void 0!==n?n:{label:"",value:0},S=du(V(o,{indexes:[0],datum:_,data:s})),$=S.width||140,A=S.height||h,z=Math.max(h,A),P=Math.max(12,.35*z),L=null!==(i=null!=c?c:l)&&void 0!==i?i:P,I=b.map(t=>{var e;return null!==(e=t.value)&&void 0!==e?e:0}),T=Math.max(...I,0),R=Math.min(...I,0),B=R<0?1.1*R:0;let W=T>0?1.1*T:0;W===B&&(W=B+1);const H=ag().domain([B,W]).range([0,y]),N=Math.min(Math.max(H(0),0),y),F=Math.max(2,.02*y),D=b.length*(z+L)-L,Y=M?24:0,q=w?24:0,G=C+Y,Z=E+$+d,Q=p?80:0,tt=Math.max(8,.2*z),et=Z+y+Q+O,nt=G+D+tt+20+q+j,it=ud(g.themeConfig),rt=it.colorText||"#666",ot=ld(g),st=[],at=[],lt=[],ct=[],ht=[],ut=[],dt=[],ft=G+D+tt,pt=t=>Number.isInteger(t)?t.toString():t.toFixed(1);b.forEach((t,e)=>{var n;const i=[e],r=null!==(n=t.value)&&void 0!==n?n:0,a=G+e*(z+L),l=a+(z-h)/2,c=r>=0?Z+N:Z+H(r),u=r>=0?H(r)-N:N-H(r),d=0===u?F:u,f=hd(g,[e])||it.colorPrimary;if(st.push(V(J,{x:c,y:l,width:d,height:h,fill:f,rx:6,ry:6,"data-element-type":"shape"})),p){at.push(V(su,{x:r>=0?c+d+8:c-8,y:l+h/2,alignHorizontal:r>=0?"left":"right",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:f,children:m(r,t)}))}lt.push(V(o,{indexes:i,datum:t,data:s,x:E,y:a+(z-A)/2,width:$,height:A,positionV:"middle"}))});const gt=Math.max(3,Math.min(7,Math.floor(y/80)));return H.ticks(gt).forEach(t=>{const e=Z+H(t);ut.push(V(K,{d:`M${e} ${G} L${e} ${G+D}`,stroke:rt,strokeOpacity:.08,"data-element-type":"shape"})),ht.push(V(K,{d:`M${e-.5} ${ft} L${e-.5} ${ft+6}`,stroke:rt,"data-element-type":"shape"})),ht.push(V(su,{x:e,y:ft+14,alignHorizontal:"center",alignVertical:"middle",fontSize:12,fill:rt,children:pt(t)}))}),ct.push(V(K,{d:`M${Z} ${ft} L${Z+y} ${ft}`,stroke:rt,"data-element-type":"shape"})),B<0&&ct.push(V(J,{x:Z+N-.5,y:G,width:1,height:D,fill:ot,"data-element-type":"shape"})),M&&dt.push(V(su,{x:E+$/2,y:C+Y/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:rt,children:M})),w&&dt.push(V(su,{x:Z+y/2,y:ft+20+q/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:rt,children:w})),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[k,U(X,{width:et,height:nt,children:[V(X,{children:ut}),V(X,{children:st}),V(X,{children:at}),V(X,{children:dt}),V(X,{children:[...ct,...ht]}),V(Vu,{children:lt})]})]})},composites:["title","item","xTitle","yTitle"]});Mg("chart-column",{component:t=>{const{Title:e,Item:n,data:i,columnGap:r=60,columnWidth:o=50,padding:s=20,showValue:a=!0,options:l,valueFormatter:c=t=>t.toString()}=t,{title:h,desc:u,items:d=[]}=i,f=e?V(e,{title:h,desc:u}):null;if(0===d.length)return V(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:f});const p=ud(l.themeConfig),g=[...d.map(t=>{var e;return null!==(e=t.value)&&void 0!==e?e:0}),0].sort((t,e)=>t-e),m=g[0]<0,y=d.length*o+(d.length-1)*r,[v,x,b,w]=Jh(s),M=m&&a?(a?24:0)+10:10,k=y+w+x,C=300+v+b+M,O=ag().domain([g[0],g[g.length-1]]).range([300,0]),j=O(0),E=[],_=[],S=[],$=[];return d.forEach((t,e)=>{var s;const h=[e],u=null!==(s=t.value)&&void 0!==s?s:0,d=w+e*(o+r),f=u>=0?O(u):j,g=Math.abs(O(u)-j),m=hd(l,[e])||p.colorPrimary,y=`${m}-column-positive-${e}`,x=`${m}-column-negative-${e}`;$.push(U("linearGradient",{id:u>=0?y:x,x1:"0%",y1:u>=0?"0%":"100%",x2:"0%",y2:u>=0?"100%":"0%",children:[V("stop",{offset:"0%",stopColor:m}),V("stop",{offset:"100%",stopColor:wl.A.mix(m,"#fff",40).toHexString()})]})),E.push(V(J,{x:d,y:v+f,width:o,height:g,fill:`url(#${u>=0?y:x})`,rx:8,ry:8,"data-element-type":"shape"})),a&&_.push(V(su,{x:d+o/2,y:u>=0?v+f-10:v+f+g+20,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:u>=0?"bottom":"top",fill:m,children:c(u,t)}));const b=o+r;S.push(V(n,{indexes:h,datum:t,data:i,x:d+o/2-b/2,y:v+300+M,width:b,positionH:"center"}))}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,U(X,{width:k,height:C,children:[V(q,{children:$}),V(X,{children:E}),V(X,{children:_}),V(Vu,{children:S})]})]})},composites:["title","item"]});Mg("chart-line",{component:t=>{const{Title:e,Item:n,data:i,width:r,height:o=260,gap:s=10,padding:a=24,showValue:l=!0,options:c,valueFormatter:h=t=>t.toString()}=t,{title:u,desc:d,items:f=[],xTitle:p,yTitle:g}=i,m=e?V(e,{title:u,desc:d}):null;if(0===f.length)return V(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:m});const[y,v,x,b]=Jh(a),w={indexes:[0],datum:f[0],data:i,positionH:"center",positionV:"normal"},M=du(V(n,Object.assign({},w))),k=M.width,C=Math.max(28,M.height+14),O=g?26:0,j=p?22:0,E=k+s,_=void 0!==r?r:Math.max(200,(f.length>0?(f.length-1)*E+k:0)||320),S=f.length>1?Math.max(E,(_-k)/(f.length-1)):0,$=f.length>0?Math.max(k,(f.length-1)*S+k):0,A=b+44+O,z=y+O,P=A+$+v,L=z+o+C+j+x,I=f.map(t=>{var e;return null!==(e=t.value)&&void 0!==e?e:0}),T=Math.max(...I,0),R=Math.min(...I,0),B=.1*Math.max(Math.abs(T),Math.abs(R)),W=R<0?R-B:0;let H=T>0?T+B:1;H===W&&(H=W+1);const N=ag().domain([W,H]).nice().range([o,0]),F=Math.max(0,Math.min(o,N(0))),D=H<=0?0:W>=0?o:F,Y=ld(c),Z=ud(c.themeConfig),Q=Z.colorText||"#666",J=[],tt=[],et=[],nt=[],it=[],rt=[],ot=[],st=N.ticks(6),at=N.tickFormat(6);st.forEach(t=>{const e=z+N(t);J.push(V(K,{d:`M ${A} ${e} L ${A+$} ${e}`,width:$,height:1,stroke:Q,strokeWidth:1,"data-element-type":"shape",opacity:.08})),ot.push(V(su,{x:A-8,y:e,alignHorizontal:"right",alignVertical:"middle",fontSize:12,fill:Q,children:at(t)}))});const lt=[],ct=[],ht=[];f.forEach((t,e)=>{var i;const r=A+e*S+k/2,s=z+N(null!==(i=t.value)&&void 0!==i?i:0);ct.push({x:r,y:s,datum:t}),lt.push(V(n,Object.assign({},w,{indexes:[e],datum:t,x:r-k/2,y:z+o+4})));const a=hd(c,[e])||Z.colorPrimary;ht.push({x:r,color:a})});const ut=ht.length>0?Math.min(...ht.map(t=>t.x)):A,dt=ht.length>0?Math.max(...ht.map(t=>t.x)):A+$,ft=Math.max(1,dt-ut),pt=ht.map(t=>V("stop",{offset:(t.x-ut)/ft*100+"%",stopColor:t.color})),gt=ht.map(t=>V("stop",{offset:(t.x-ut)/ft*100+"%",stopColor:t.color,stopOpacity:"0.18"}));if(ht.length>0){const t=ht[ht.length-1].color;pt.push(V("stop",{offset:"100%",stopColor:t})),gt.push(V("stop",{offset:"100%",stopColor:t,stopOpacity:"0.04"}))}const mt=`chart-line-${Dh([$,o,Q,Y,ht.map(t=>`${t.x.toFixed(2)}-${t.color}`).join()].join(":"))}`,yt=`${mt}-stroke`,vt=`${mt}-area`,xt=(t=>{if(0===t.length)return"";if(1===t.length){const e=t[0];return`M ${e.x} ${e.y}`}const e=[];e.push(`M ${t[0].x} ${t[0].y}`);for(let n=0;n<t.length-1;n++){const i=t[n-1]||t[n],r=t[n],o=t[n+1],s=t[n+2]||o;e.push(`C ${r.x+(o.x-i.x)/6} ${r.y+(o.y-i.y)/6} ${o.x-(s.x-r.x)/6} ${o.y-(s.y-r.y)/6} ${o.x} ${o.y}`)}return e.join(" ")})(ct);et.push(V(K,{d:xt,width:$,height:o,stroke:`url(#${yt})`,strokeWidth:3,fill:"none","data-element-type":"shape"}));const bt=xt.includes("C")?xt.slice(xt.indexOf("C")):"",wt=[`M ${ct[0].x} ${z+D}`,`L ${ct[0].x} ${ct[0].y}`,bt,`L ${ct[ct.length-1].x} ${z+D}`,"Z"].join(" ");return et.push(V(K,{d:wt,width:$,height:o,fill:`url(#${vt})`,stroke:"none","data-element-type":"shape"})),ct.forEach((t,e)=>{var n;const i=hd(c,[e])||Z.colorPrimary;nt.push(V(G,{x:t.x-6,y:t.y-6,width:12,height:12,fill:i,"data-element-type":"shape"})),l&&it.push(V(su,{x:t.x,y:t.y-12,alignHorizontal:"center",alignVertical:"bottom",fontSize:12,fontWeight:"bold",fill:i,children:h(null!==(n=t.datum.value)&&void 0!==n?n:0,t.datum)}))}),tt.push(V(K,{d:`M ${A} ${z+D} L ${A+$} ${z+D}`,width:$,height:1,stroke:Q,strokeWidth:1,"data-element-type":"shape"})),tt.push(V(K,{d:`M ${A} ${z} L ${A} ${z+o}`,width:1,height:o,stroke:Q,strokeWidth:1,"data-element-type":"shape"})),p&&rt.push(V(su,{x:A+$/2,y:z+o+C+j/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:Q,children:p})),g&&rt.push(V(su,{x:b+O/2,y:z+o/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:Q,children:g})),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,U(X,{width:P,height:L,children:[U(q,{children:[V("linearGradient",{id:yt,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:pt}),V("linearGradient",{id:vt,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:gt})]}),V(X,{children:J}),V(X,{children:[...tt,...ot]}),V(X,{children:et}),V(X,{children:nt}),V(X,{children:it}),V(X,{children:rt}),V(Vu,{children:lt})]})]})},composites:["title","item","xTitle","yTitle"]});const kg=1.35;function Cg(t,e,n,i){if(t.length<=1)return t.map(t=>Object.assign({},t));const r=t.map(t=>Object.assign({},t)).sort((t,e)=>t.y-e.y),o=r.some((t,e)=>{if(0===e)return!1;const n=r[e-1];return t.y-n.y<(n.height+t.height)/2}),s=r[0],a=r[r.length-1];if(!o&&!(s.y-s.height/2<n||a.y+a.height/2>i))return r;const l=r.reduce((t,e)=>t+e.height,0),c=i-n;let h=e;if(l+e*(r.length-1)>c){h=Math.max(0,(c-l)/(r.length-1))}for(let t=1;t<r.length;t++){const e=r[t-1],n=r[t],i=e.y+(e.height+n.height)/2+h;n.y<i&&(n.y=i)}const u=r.length-1,d=r[u];if(d.y+d.height/2>i){d.y=i-d.height/2;for(let t=u-1;t>=0;t--){const e=r[t+1],n=r[t],i=e.y-(e.height+n.height)/2-h;n.y>i&&(n.y=i)}}const f=r[0];if(f.y-f.height/2<n){const t=n-(f.y-f.height/2);r.forEach(e=>e.y+=t)}return r}Mg("chart-pie",{component:t=>{var e;const{Title:n,Item:i,data:r,radius:o=140,innerRadius:s=0,padding:a=30,showPercentage:l=!0,avoidLabelOverlap:c=!1,minShowLabelPercent:h=0,options:u}=t,d=function(t){if(null==t)return 0;if("string"==typeof t){const e=t.trim(),n=e.endsWith("%")?e.slice(0,-1):e,i=parseFloat(n);return isNaN(i)?0:i}return t}(h),{title:f,desc:p,items:g=[]}=r,m=n?V(n,{title:f,desc:p}):null,y=du(V(Au,{indexes:[0]})),v=null!==(e=g[0])&&void 0!==e?e:{label:"",value:0},x=du(V(i,{indexes:[0],datum:v,data:r,positionH:"center",positionV:"middle"})),b=x.width||140,w=x.height||32,M=Math.max(o,60),k=M,C=a+(M*kg+8+b),O=a+k,j=2*C,E=2*O;if(0===g.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,V(X,{width:j,height:E,children:V(Pu,{children:V(Au,{indexes:[0],x:C-y.width/2,y:O-y.height/2})})})]});const _=g.reduce((t,e)=>{var n;return t+Math.max(null!==(n=e.value)&&void 0!==n?n:0,0)},0),S=ld(u),$=ud(u.themeConfig),A=function(){var t=fg,e=dg,n=null,i=(0,ug.A)(0),r=(0,ug.A)(pg.FA),o=(0,ug.A)(0);function s(s){var a,l,c,h,u,d=(s=(0,hg.A)(s)).length,f=0,p=new Array(d),g=new Array(d),m=+i.apply(this,arguments),y=Math.min(pg.FA,Math.max(-pg.FA,r.apply(this,arguments)-m)),v=Math.min(Math.abs(y)/d,o.apply(this,arguments)),x=v*(y<0?-1:1);for(a=0;a<d;++a)(u=g[p[a]=a]=+t(s[a],a,s))>0&&(f+=u);for(null!=e?p.sort(function(t,n){return e(g[t],g[n])}):null!=n&&p.sort(function(t,e){return n(s[t],s[e])}),a=0,c=f?(y-d*x)/f:0;a<d;++a,m=h)g[l=p[a]]={data:s[l],index:a,value:u=g[l],startAngle:m,endAngle:h=m+(u>0?u*c:0)+x,padAngle:v};return g}return s.value=function(e){return arguments.length?(t="function"==typeof e?e:(0,ug.A)(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,n=null,s):e},s.sort=function(t){return arguments.length?(n=t,e=null,s):n},s.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:(0,ug.A)(+t),s):i},s.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:(0,ug.A)(+t),s):r},s.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:(0,ug.A)(+t),s):o},s}().value(t=>{var e;return Math.max(null!==(e=t.value)&&void 0!==e?e:0,0)}).sort(null).startAngle(0).endAngle(2*Math.PI),z=A(g),P=(0,lg.A)().innerRadius(s).outerRadius(M).cornerRadius(2),L=(0,lg.A)().innerRadius(M).outerRadius(M),I=(0,lg.A)().innerRadius(1.15*M).outerRadius(1.15*M),T=s+.5*(M-s),R=(0,lg.A)().innerRadius(T).outerRadius(T),B=(0,lg.A)().innerRadius(.85*M).outerRadius(.85*M),W=[],H=[],N=[],F=[],D=[],Y=[];z.forEach(t=>{const e=t.index,n=hd(u,[e])||$.colorPrimary||S,i=P(t)||"";W.push(V(K,{d:i,fill:n,stroke:$.colorBg,strokeWidth:1,"data-element-type":"shape",width:2*M,height:2*M}));const r=t.startAngle+(t.endAngle-t.startAngle)/2,o=(r<0?r+2*Math.PI:r)<Math.PI;if((_>0?t.value/_*100:0)<d)return;const s=I.centroid(t);Y.push({arcDatum:t,originalIndex:e,x:s[0],y:s[1],height:w,isRight:o,color:n})});let q=Y;if(c){const t=-k*kg,e=k*kg,n=Y.filter(t=>!t.isRight),i=Y.filter(t=>t.isRight),r=w,o=Cg(i,r,t,e);q=[...Cg(n,r,t,e),...o]}return q.forEach(t=>{const{arcDatum:e,originalIndex:n,isRight:o,color:s,y:a}=t,c=L.centroid(e),h=I.centroid(e),d=a,f=Math.abs(d-h[1]),p=M*kg,g=p+.2*M+20,m=[Math.min(p+.3*f,g)*(o?1:-1),d],v=[g*(o?1:-1),d];N.push(V(K,{d:`M${C+c[0]} ${O+c[1]} \n L${C+h[0]} ${O+h[1]} \n L${C+m[0]} ${O+m[1]}\n L${C+v[0]} ${O+v[1]}\n `,stroke:s,strokeOpacity:.45,strokeWidth:2,fill:"none","data-element-type":"shape"}));if(F.push(V(i,{indexes:[n],datum:e.data,data:r,x:C+v[0]+(o?8:-8-b),y:O+a-w/2,width:b,height:w,positionH:o?"normal":"flipped",positionV:"middle",themeColors:ud({colorPrimary:s},u)})),l&&_>0){const t=R.centroid(e),i=Math.max(e.value,0),r=(100*i/_).toFixed(1),o=50,s=20;H.push(V(su,{x:C+t[0]-o/2,y:O+t[1]-s/2,width:o,height:s,alignHorizontal:"center",alignVertical:"middle",fontSize:12,fontWeight:"bold",fill:"#ffffff","data-value":i,"data-indexes":[n],"data-element-type":"item-value",children:`${r}%`}))}const x=B.centroid(e);D.push(V(zu,{indexes:[n],x:C+x[0]-y.width/2,y:O+x[1]-y.height/2}))}),z.forEach((t,e)=>{const n=(e+1)%z.length,i=(t.endAngle+(z[n].startAngle+(0===n?2*Math.PI:0)))/2,r=1*M,o=Math.sin(i)*r,s=-Math.cos(i)*r;D.push(V(Au,{indexes:[e+1],x:C+o-y.width/2,y:O+s-y.height/2}))}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[m,U(X,{width:j,height:E,children:[V(X,{x:C,y:O,children:W}),V(X,{children:N}),V(X,{children:H}),V(Vu,{children:F}),V(Pu,{children:D})]})]})},composites:["title","item"]});const Og=[0,30,-30,60,-60],jg=Math.PI*(3-Math.sqrt(5));function Eg(t,e,n){const i=Math.PI/180*n,r=Math.cos(i),o=Math.sin(i);return{width:Math.abs(t*r)+Math.abs(e*o),height:Math.abs(t*o)+Math.abs(e*r)}}function _g(t,e,n,i,r,o){const s=t-o,a=t+n+o,l=e-o,c=e+i+o;return r.some(t=>!(a<=t.box.x-o||s>=t.box.x+t.box.width+o||c<=t.box.y-o||l>=t.box.y+t.box.height+o))}Mg("chart-wordcloud",{component:t=>{const{data:e,options:n,minFontSize:i=16,maxFontSize:r=48,enableRotate:o=!0,padding:s=6,spiralStep:a=.45,radiusStep:l=10}=t,{items:c=[]}=e,h=c.map((t,e)=>({datum:t,index:e})).filter(({datum:t})=>t.label);if(0===h.length)return V(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:V(X,{children:V(Vu,{})})});const u=h.map(({datum:t})=>t.value).filter(t=>"number"==typeof t),d=u.length>0,f=d?Math.min(...u):0,p=d?Math.max(...u):0,g=d&&f===p,m=(i+r)/2,y=h.map(({datum:t,index:e})=>{const o=(t=>!d||g?m:null==t?i:i+(t-f)/(p-f||1)*(r-i))(t.value),s=du(V(su,{fontSize:o,fontWeight:"bold",children:t.label})),a=hd(n,[e])||ld(n)||"#333333";return{label:t.label,value:t.value,color:a,fontSize:o,width:1.05*s.width,height:s.height}}).sort((t,e)=>e.fontSize-t.fontSize),v=function(t,e,n,i,r){const o=[],s=e?Og:[0],a=Math.max(1600,28*t.length);return t.forEach((t,e)=>{const l=Math.max(t.width,t.height),c=e*jg;let h=0,u=null;for(let e=0;e<a&&!u;e++){e===Math.floor(.6*a)&&(h=l);const d=c+e*i,f=r*Math.sqrt(e+1)+h+.25*l,p=f*Math.cos(d),g=f*Math.sin(d);for(const e of s){const i=Eg(t.width,t.height,e),r=p-i.width/2,s=g-i.height/2;if(!_g(r,s,i.width,i.height,o,n)){u=Object.assign(Object.assign({},t),{angle:e,centerX:p,centerY:g,box:{x:r,y:s,width:i.width,height:i.height}});break}}}if(!u){const n=s[e%s.length],i=r*Math.sqrt(a+1)+l,o=c,h=i*Math.cos(o),d=i*Math.sin(o),f=Eg(t.width,t.height,n);u=Object.assign(Object.assign({},t),{angle:n,centerX:h,centerY:d,box:{x:h-f.width/2,y:d-f.height/2,width:f.width,height:f.height}})}o.push(u)}),o}(y,o,s,a,l),x=Math.min(...v.map(t=>t.box.x)),b=Math.min(...v.map(t=>t.box.y)),w=Math.max(...v.map(t=>t.box.x+t.box.width)),M=Math.max(...v.map(t=>t.box.y+t.box.height)),k=-x+s,C=-b+s,O=w-x+2*s,j=M-b+2*s,E=v.map((t,e)=>V(X,{transform:`translate(${t.centerX-t.width/2+k}, ${t.centerY-t.height/2+C}) rotate(${t.angle}, ${t.width/2}, ${t.height/2})`,children:V(su,{width:t.width,height:t.height,fontSize:t.fontSize,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:t.color,"data-indexes":e,"data-element-type":"item-label",children:t.label})}));return V(Vu,{id:"infographic-container",width:O,height:j,children:E})},composites:[]});const Sg=new Map,$g=(t,e)=>{Sg.set(t,e)};$g("pros-cons-arrow",t=>{const{x:e,y:n,colorPositive:i,colorNegative:r,colorBg:o}=t,s={width:90,height:40,fontSize:22,alignHorizontal:"center",alignVertical:"middle",fontWeight:"bold",fill:o};return U(X,{x:e,y:n,width:200,height:141,children:[U(qu,{children:[V("path",{d:"M137 54C137 54.2903 137 54.5806 136.706 54.7742L108.614 86.0323H64.7619C64.4071 86.0204 64.0557 86.1043 63.7453 86.2747C63.4349 86.4452 63.1773 86.6959 63 87C63.0037 86.7447 63.1092 86.5012 63.2936 86.3226L91.3862 55.0645H135.238C135.593 55.0763 135.944 54.9925 136.255 54.822C136.565 54.6516 136.823 54.4009 137 54.0968V54Z",fill:"#D9D9D9"}),V("path",{d:"M39.3272 0.484649C39.6146 0.234929 39.9662 0.0736935 40.3407 0.0198929C40.7152 -0.0339076 41.0971 0.0219605 41.4414 0.180925C41.7857 0.33989 42.0783 0.595358 42.2846 0.917314C42.491 1.23927 42.6026 1.61434 42.6063 1.99848V14.8156H136.013C136.54 14.8156 137.045 15.0282 137.418 15.4068C137.791 15.7853 138 16.2987 138 16.834V53.166C138 53.7013 137.791 54.2147 137.418 54.5932C137.045 54.9718 136.54 55.1844 136.013 55.1844H42.6063V68.0015C42.6026 68.3857 42.491 68.7607 42.2846 69.0827C42.0783 69.4046 41.7857 69.6601 41.4414 69.8191C41.0971 69.9781 40.7152 70.0339 40.3407 69.9801C39.9662 69.9263 39.6146 69.7651 39.3272 69.5154L0.672847 36.5138C0.461378 36.3244 0.292014 36.0915 0.176005 35.8305C0.0599968 35.5695 0 35.2864 0 35C0 34.7136 0.0599968 34.4306 0.176005 34.1696C0.292014 33.9085 0.461378 33.6756 0.672847 33.4862L39.4265 0.484649H39.3272Z",fill:i}),V("path",{d:"M157.394 73.0007C157.397 72.6162 157.509 72.2407 157.715 71.9183C157.922 71.596 158.214 71.3403 158.559 71.1811C158.903 71.022 159.285 70.9661 159.659 71.0199C160.034 71.0738 160.385 71.2352 160.673 71.4852L199.327 104.524C199.539 104.714 199.708 104.947 199.824 105.208C199.94 105.47 200 105.753 200 106.04C200 106.326 199.94 106.61 199.824 106.871C199.708 107.132 199.539 107.366 199.327 107.555L160.573 140.594C160.285 140.815 159.943 140.951 159.584 140.989C159.225 141.027 158.862 140.965 158.535 140.809C158.208 140.653 157.929 140.41 157.728 140.105C157.527 139.8 157.411 139.445 157.394 139.078V126.247H63.9874C63.4603 126.247 62.9548 126.034 62.5821 125.655C62.2094 125.276 62 124.762 62 124.226V87.8531C62 87.3172 62.2094 86.8032 62.5821 86.4242C62.9548 86.0453 63.4603 85.8324 63.9874 85.8324H157.394V73.0007Z",fill:r})]}),V(su,Object.assign({x:40,y:15},s,{children:"Pros"})),V(su,Object.assign({x:70,y:85},s,{children:"Cons"}))]})});$g("pros-cons-fold",t=>{const{x:e,y:n,colorPositive:i,colorNegative:r,colorBg:o}=t,s={width:85,height:30,fontSize:20,alignHorizontal:"center",alignVertical:"middle",fontWeight:"bold",fill:o};return U(X,{x:e,y:n,width:240,height:300,children:[U(qu,{children:[V("path",{d:"M136.914 38.7755C137.303 38.7733 137.683 38.6617 138.011 38.4534C138.339 38.2451 138.602 37.9485 138.77 37.5977C138.937 37.247 139.002 36.8561 138.957 36.4701C138.913 36.084 138.76 35.7183 138.517 35.415L110.741 0.982313C110.548 0.735138 110.301 0.535238 110.018 0.397762C109.736 0.260286 109.426 0.188841 109.112 0.188841C108.798 0.188841 108.488 0.260286 108.206 0.397762C107.924 0.535238 107.676 0.735138 107.483 0.982313L79.7069 35.415C79.4639 35.7183 79.3113 36.084 79.2667 36.4701C79.222 36.8561 79.2871 37.247 79.4545 37.5977C79.6219 37.9485 79.8847 38.2451 80.213 38.4534C80.5412 38.6617 80.9216 38.7733 81.3104 38.7755H92.8965C93.0517 57.1293 97.5517 64.9878 105.259 73.7252C107.017 75.7932 108.983 77.8612 111.103 80.1361C113.276 82.4626 122.121 88.9252 131.069 95.181C129.362 88.7701 128.172 81.2218 127.293 73.7252C125.224 55.9918 125.017 38.7755 125.017 38.7755H136.914Z",fill:i,fillOpacity:.4}),V("path",{d:"M237.931 109.967C238.48 109.967 239.006 109.749 239.394 109.362C239.782 108.974 240 108.448 240 107.899V75.7932C240 75.2447 239.782 74.7187 239.394 74.3309C239.006 73.9431 238.48 73.7252 237.931 73.7252H127.241C128.172 81.2218 129.362 88.7701 131.069 95.181C138.182 100.171 145.337 105.1 152.534 109.967H237.931Z",fill:i}),V("path",{d:"M152.586 109.967C152.586 109.967 141.724 102.678 131.069 95.181C124.122 90.5838 117.455 85.5772 111.103 80.1878C109.034 77.8612 107.017 75.7415 105.259 73.7252H48.6207V56.6639C48.6091 56.2797 48.4905 55.9063 48.2784 55.5857C48.0662 55.2651 47.7689 55.0099 47.4197 54.8488C47.0705 54.6878 46.6833 54.6271 46.3016 54.6738C45.9199 54.7204 45.5587 54.8725 45.2586 55.1129L1.50002 90.2694C1.26208 90.4633 1.07029 90.7078 0.938585 90.985C0.80688 91.2622 0.738558 91.5652 0.738558 91.8721C0.738558 92.179 0.80688 92.482 0.938585 92.7592C1.07029 93.0365 1.26208 93.2809 1.50002 93.4748L45.2586 128.631C45.5621 128.874 45.928 129.027 46.3142 129.071C46.7005 129.116 47.0914 129.051 47.4424 128.884C47.7933 128.716 48.09 128.454 48.2984 128.125C48.5068 127.797 48.6185 127.417 48.6207 127.029V109.967H152.586Z",fill:"#BFBFBF"}),V("path",{d:"M36.1034 88.9252H28.9655V93.785H36.1034V101.85H41.4828V93.785H48.6207V88.8735H41.4828V81.1701H36.1034V88.9252Z",fill:"#404040"}),V("path",{d:"M103.086 261.224C102.697 261.227 102.317 261.338 101.989 261.547C101.661 261.755 101.398 262.051 101.23 262.402C101.063 262.753 100.998 263.144 101.043 263.53C101.087 263.916 101.24 264.282 101.483 264.585L129.259 299.018C129.452 299.265 129.699 299.465 129.982 299.602C130.264 299.74 130.574 299.811 130.888 299.811C131.202 299.811 131.512 299.74 131.794 299.602C132.076 299.465 132.324 299.265 132.517 299.018L160.293 264.585C160.536 264.282 160.689 263.916 160.733 263.53C160.778 263.144 160.713 262.753 160.546 262.402C160.378 262.051 160.115 261.755 159.787 261.547C159.459 261.338 159.078 261.227 158.69 261.224H147.103C146.948 242.871 142.448 235.012 134.741 226.275C132.983 224.207 131.017 222.139 128.897 219.864C126.724 217.537 117.879 211.075 108.931 204.819C110.677 211.877 111.938 219.045 112.707 226.275C114.776 244.008 114.983 261.224 114.983 261.224H103.086Z",fill:r,fillOpacity:.4}),V("path",{d:"M2.06897 190.033C1.52025 190.033 0.993996 190.251 0.605989 190.638C0.217983 191.026 5.00679e-06 191.552 5.00679e-06 192.101V224.207C5.00679e-06 224.755 0.217983 225.281 0.605989 225.669C0.993996 226.057 1.52025 226.275 2.06897 226.275H112.759C111.828 218.778 110.638 211.23 108.931 204.819C99.9827 198.512 90.931 192.411 88.2414 190.55C87.7206 190.204 87.1077 190.024 86.4828 190.033H2.06897Z",fill:r}),V("path",{d:"M87.4138 190.033C87.4138 190.033 98.2759 197.322 108.931 204.819C115.878 209.416 122.545 214.423 128.897 219.812C130.966 222.139 132.983 224.258 134.741 226.275H191.379V243.336C191.391 243.72 191.51 244.094 191.722 244.414C191.934 244.735 192.231 244.99 192.58 245.151C192.929 245.312 193.317 245.373 193.698 245.326C194.08 245.28 194.441 245.128 194.741 244.887L238.5 209.731C238.738 209.537 238.93 209.292 239.061 209.015C239.193 208.738 239.261 208.435 239.261 208.128C239.261 207.821 239.193 207.518 239.061 207.241C238.93 206.964 238.738 206.719 238.5 206.525L194.741 171.369C194.438 171.126 194.072 170.973 193.686 170.929C193.3 170.884 192.909 170.949 192.558 171.116C192.207 171.284 191.91 171.546 191.702 171.875C191.493 172.203 191.382 172.583 191.379 172.971V190.033H87.4138Z",fill:"#BFBFBF"}),V("path",{d:"M192.414 205.905V210.816H212.069V205.905H192.414Z",fill:"#404040"})]}),V(su,Object.assign({x:153,y:77},s,{children:"PROS"})),V(su,Object.assign({x:2,y:193},s,{children:"CONS"}))]})});$g("vs",t=>{const{x:e,y:n,colorPrimary:i,colorBg:r}=t,o=100,s=100,a=(0,wl.A)(i).lighten(20).toString();return U(X,{x:e,y:n,width:o,height:s,children:[U(q,{children:[V("filter",{id:"vs-divider-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:V("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"8",result:"blur"})}),V(Md,{})]}),V(G,{x:0,y:0,width:o,height:s,fill:a,filter:"url(#vs-divider-glow-filter)",opacity:.6}),V(G,{x:0,y:0,width:o,height:s,fill:i,"data-element-type":"shape"}),V("text",{x:50,y:50,fontSize:Math.min(o,s)/1.5,fontWeight:"bold",fill:r,textAnchor:"middle",dominantBaseline:"central",filter:"url(#drop-shadow)",children:"VS"})]})});Mg("compare-binary-horizontal",{component:t=>{const{Title:e,Item:n,data:i,gap:r=20,groupGap:o=20,opposite:s=!0,flipped:a=!0,dividerType:l="vs",options:c}=t,{title:h,desc:u,items:d=[]}=i,f=e?V(e,{title:h,desc:u}):null;if(0===d.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,V(X,{children:V(Pu,{children:V(Au,{indexes:[0],x:0,y:0})})})]});const p=(d[0]||{children:[]}).children||[],g=(d[1]||{children:[]}).children||[],m=ud(c.themeConfig),y=du(V(n,{indexes:[0,0],data:i,datum:p[0]||{}})),v=du(V(Au,{indexes:[0]})),x=(t=>{var e;return t&&null!==(e=Sg.get(t))&&void 0!==e?e:null})(l),b=x?du(V(x,{x:0,y:0,colorPrimary:m.colorPrimary,colorBg:m.colorBg,colorPositive:m.colorPrimary,colorNegative:m.colorPrimary})):{width:0,height:0},w=[],M=[],k=[],C=Math.max(p.length,g.length),O=C>0?C*(y.height+r)-r:0,j=C>0?r/2+v.height/2:v.height/2,E=v.width+5,_=E+y.width+o,S=_+b.width+o,$=a?"flipped":"normal",A=a?"normal":s?"flipped":"normal";if(p.forEach((t,e)=>{const o=j+e*(y.height+r),s=[0,e];w.push(V(n,{indexes:s,datum:t,data:i,x:E,y:o,positionH:$,positionV:"middle"})),M.push(V(zu,{indexes:s,x:E-v.width-5,y:o+(y.height-v.height)/2})),e<p.length-1&&M.push(V(Au,{indexes:[0,e+1],x:E+(y.width-v.width)/2,y:o+y.height+r/2-v.height/2}))}),p.length>0){M.push(V(Au,{indexes:[0,0],x:E+(y.width-v.width)/2,y:j-r/2-v.height/2}));M.push(V(Au,{indexes:[0,p.length],x:E+(y.width-v.width)/2,y:j+(p.length-1)*(y.height+r)+y.height+r/2-v.height/2}))}else d.length>=1&&M.push(V(Au,{indexes:[0,0],x:E+(y.width-v.width)/2,y:j-v.height/2}));if(g.forEach((t,e)=>{const o=j+e*(y.height+r),s=[1,e];w.push(V(n,{indexes:s,datum:t,data:i,x:S,y:o,positionH:A,positionV:"middle"})),M.push(V(zu,{indexes:s,x:S+y.width+5,y:o+(y.height-v.height)/2})),e<g.length-1&&M.push(V(Au,{indexes:[1,e+1],x:S+(y.width-v.width)/2,y:o+y.height+r/2-v.height/2}))}),g.length>0){M.push(V(Au,{indexes:[1,0],x:S+(y.width-v.width)/2,y:j-r/2-v.height/2}));M.push(V(Au,{indexes:[1,g.length],x:S+(y.width-v.width)/2,y:j+(g.length-1)*(y.height+r)+y.height+r/2-v.height/2}))}else d.length>=2&&M.push(V(Au,{indexes:[1,0],x:S+(y.width-v.width)/2,y:j-v.height/2}));return d.length<2&&M.push(V(Au,{indexes:[1],x:S+(y.width-v.width)/2,y:j+(O-v.height)/2})),x&&k.push(V(x,{x:_,y:j+(O-b.height)/2,colorPrimary:m.colorPrimary,colorBg:m.colorBg,colorPositive:hd(c,[0])||m.colorPrimary,colorNegative:hd(c,[1])||m.colorPrimary})),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,U(X,{children:[V(X,{children:k}),V(Vu,{children:w}),V(Pu,{children:M})]})]})},composites:["title","item"]});const Ag={none:5,"dot-line":100,"arc-dot":20,"split-line":5},zg=t=>{const{x:e,y:n,width:i,height:r,color:o,colorBg:s,side:a}=t,l=n+r,c=`split-line-linear-gradient-${a}`;return U(D,{children:[V(q,{children:V(kd,{id:c,startColor:o,stopColor:s,direction:"left"===a?"left-right":"right-left"})}),V(J,{x:e,y:l,width:i,height:1,fill:`url(#${c})`})]})},Pg=t=>{const{x:e,y:n,side:i,width:r,height:o,color:s,colorBg:a}=t,l="left"===i?e+r+6+5:e-6-5,c=n+o/2,h=l-2,u=c-2,d="left"===i?80:-80,f=`dot-line-linear-gradient-${i}`;return U(X,{children:[V(q,{children:V(kd,{id:f,startColor:s,stopColor:a,direction:"left"===i?"left-right":"right-left"})}),U(qu,{children:[V(G,{x:l-6,y:c-6,width:12,height:12,fill:"none",strokeWidth:1,stroke:s}),V(G,{x:h,y:u,width:4,height:4,fill:s})]}),V(J,{x:"left"===i?l:l+d,y:c-.5,width:80,height:1,fill:`url(#${f})`})]})};Mg("compare-hierarchy-left-right",{component:t=>{var e,n;const{Title:i,Items:r,data:o,gap:s=20,groupGap:a=0,decoration:l="none",surround:c=!0,flipRoot:h=!1,flipLeaf:u=!1,options:d}=t,[f,p]=r,{title:g,desc:m,items:y=[]}=o,v=i?V(i,{title:g,desc:m}):null,x=V(f,{indexes:[0],data:o,datum:o.items[0],themeColors:{}}),b=V(p,{indexes:[0,0],data:o,datum:(null===(n=null===(e=y[0])||void 0===e?void 0:e.children)||void 0===n?void 0:n[0])||y[2]}),w=du(x),M=du(b),k=[],C=[],[O,j]=y,E=(null==O?void 0:O.children)||[],_=(null==j?void 0:j.children)||[],S=Math.max(w.height,E.length*(M.height+s)-s,_.length*(M.height+s)-s),$=Ag[l]||0,A=M.width+$,z=A+w.width+a,P=(S-w.height)/2;O&&k.push(V(f,{indexes:[0],x:A,y:P,data:o,datum:O,positionH:h?"normal":"flipped"})),j&&k.push(V(f,{indexes:[1],x:z,y:P,data:o,datum:j,positionH:h?"flipped":"normal"}));const L=(t,e,n)=>{if("none"===l)return;const[i,r]=e,o=hd(d,n),s={x:i,y:r,width:M.width,height:M.height,side:t,color:o||"#ccc",colorBg:d.themeConfig.colorBg||"#fff"};"split-line"===l?C.push(V(zg,Object.assign({},s))):"dot-line"===l&&C.push(V(Pg,Object.assign({},s)))};if(c){const t=(2*w.width+a+M.width)/2+$,e=A+w.width+a/2,n=P+w.height/2;E.forEach((i,r)=>{const a=(S-(E.length*(M.height+s)-s))/2+r*(M.height+s),l=a+M.height/2-n,c=Math.max(0,t*t-l*l),h=e-Math.sqrt(c)-M.width/2;k.push(V(p,{indexes:[0,r],datum:i,data:o,x:h,y:a,positionH:u?"flipped":"normal"})),L("left",[h,a],[0,r])}),_.forEach((i,r)=>{const a=(S-(_.length*(M.height+s)-s))/2+r*(M.height+s),l=a+M.height/2-n,c=Math.max(0,t*t-l*l),h=e+Math.sqrt(c)-M.width/2;k.push(V(p,{indexes:[1,r],datum:i,data:o,x:h,y:a,positionH:u?"normal":"flipped"})),L("right",[h,a],[1,r])})}else E.forEach((t,e)=>{const n=(S-(E.length*(M.height+s)-s))/2+e*(M.height+s),i=[0,e];k.push(V(p,{indexes:i,datum:t,data:o,x:0,y:n,positionH:u?"flipped":"normal"})),L("left",[0,n],i)}),_.forEach((t,e)=>{const n=(S-(_.length*(M.height+s)-s))/2+e*(M.height+s),i=[1,e],r=z+w.width+$;k.push(V(p,{indexes:i,datum:t,data:o,x:r,y:n,positionH:u?"normal":"flipped"})),L("right",[r,n],i)});return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,U(X,{children:[V(Vu,{children:k}),V(X,{width:0,height:0,children:C})]})]})},composites:["title","item"]});Mg("compare-hierarchy-row",{component:t=>{var e,n;const{Title:i,Items:r,data:o,gap:s=0,itemGap:a=20,columnWidth:l=280,itemPadding:c=5,showColumnBackground:h=!0,columnBackgroundAlpha:u=.08,options:d}=t,[f,p]=r,{title:g,desc:m,items:y=[]}=o,v=i?V(i,{title:g,desc:m}):null,x=cd(d),b=[],w=[],M=l-2*c,k=du(V(f,{indexes:[0],data:o,datum:y[0],width:l})),C=du(V(p,{indexes:[0,0],data:o,datum:(null===(n=null===(e=y[0])||void 0===e?void 0:e.children)||void 0===n?void 0:n[0])||{},width:M})),O=du(V(Au,{indexes:[0]})),j=Math.max(...y.map(t=>{var e;return(null===(e=t.children)||void 0===e?void 0:e.length)||0}),0),E=k.height+a+j*(C.height+a);if(y.forEach((t,e)=>{const{children:n=[]}=t,i=e*(l+s),r=i;if(h){const t=`${x[e%x.length]}${Math.round(255*u).toString(16).padStart(2,"0")}`;b.push(V(J,{x:i,y:0,width:l,height:E,fill:t,rx:0,ry:0,"data-element-type":"shape"}))}b.push(V(f,{indexes:[e],datum:t,data:o,x:r,y:0,width:l})),w.push(V(zu,{indexes:[e],x:r+k.width-O.width-10,y:10})),0===e&&w.push(V(Au,{indexes:[e],x:r+k.width/2-O.width/2,y:0-O.height-5}));const d=0+k.height+a;n.forEach((t,i)=>{const s=d+i*(C.height+a),l=r+c,h=[e,i];b.push(V(p,{indexes:h,datum:t,data:o,x:l,y:s,width:M})),w.push(V(zu,{indexes:h,x:l+C.width-O.width-10,y:s+(C.height-O.height)/2})),i<n.length-1&&w.push(V(Au,{indexes:[e,i+1],x:l+C.width/2-O.width/2,y:s+C.height-O.height/2}))});const g=r+c;if(n.length>0){w.push(V(Au,{indexes:[e,n.length],x:g+C.width/2-O.width/2,y:d+n.length*(C.height+a)-C.height/2-O.height/2}))}else w.push(V(Au,{indexes:[e,0],x:g+C.width/2-O.width/2,y:d-a/2-O.height/2}))}),y.length>0){w.push(V(Au,{indexes:[y.length],x:y.length*(l+s)-s/2-O.width/2,y:-O.height-5}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,U(X,{children:[V(Vu,{children:b}),V(Pu,{children:w})]})]})},composites:["title","item"]});const Lg={axisColor:"#D9D9D9",axisArrowSize:5,strokeWidth:1,dashArray:"4,2",defaultExtraSpacing:20};Mg("quadrant",{component:t=>{const{Title:e,Item:n,data:i,quadrantWidth:r,quadrantHeight:o,showAxis:s=!0,dashedAxis:a=!0}=t,{title:l,desc:c,items:h=[]}=i,u=e?V(e,{title:l,desc:c}):null,d=Array.from({length:4},(t,e)=>h[e]),f=d[0]?du(V(n,{indexes:[0],data:i,datum:d[0]})):{width:0,height:0},p=null!=r?r:f.width+Lg.defaultExtraSpacing,g=null!=o?o:f.height+Lg.defaultExtraSpacing,m=function(t,e,n){const i=t/2,r=e/2;return[{x:i-n.width/2,y:r-n.height/2},{x:t+i-n.width/2,y:r-n.height/2},{x:i-n.width/2,y:e+r-n.height/2},{x:t+i-n.width/2,y:e+r-n.height/2}]}(p,g,f),y=d.map((t,e)=>{if(!t)return null;const r=m[e];return V(n,{indexes:[e],datum:t,data:i,x:r.x,y:r.y,positionH:e%2?"flipped":"normal",positionV:e<2?"normal":"flipped"})}).filter(Boolean),v=function(t,e,n,i){if(!n)return[];const{axisColor:r,axisArrowSize:o,strokeWidth:s,dashArray:a}=Lg,l=t,c=e,h=2*t,u=2*e,d=i?a:void 0;return[V(K,{d:`M 0 ${c} L ${h} ${c}`,stroke:r,strokeWidth:s,strokeDasharray:d,fill:"none","data-element-type":"shape"}),U(qu,{transform:`translate(${h}, ${c})`,children:[V(K,{d:`M 0 0 L ${-o} ${-o/2}`,stroke:r,strokeWidth:s,fill:"none"}),V(K,{d:`M 0 0 L ${-o} ${o/2}`,stroke:r,strokeWidth:s,fill:"none"})]}),U(qu,{transform:`translate(0, ${c})`,children:[V(K,{d:`M 0 0 L ${o} ${-o/2}`,stroke:r,strokeWidth:s,fill:"none"}),V(K,{d:`M 0 0 L ${o} ${o/2}`,stroke:r,strokeWidth:s,fill:"none"})]}),V(K,{d:`M ${l} 0 L ${l} ${u}`,stroke:r,strokeWidth:s,strokeDasharray:d,fill:"none","data-element-type":"shape"}),U(qu,{transform:`translate(${l}, 0)`,children:[V(K,{d:`M 0 0 L ${-o/2} ${o}`,stroke:r,strokeWidth:s,fill:"none"}),V(K,{d:`M 0 0 L ${o/2} ${o}`,stroke:r,strokeWidth:s,fill:"none"})]}),U(qu,{transform:`translate(${l}, ${u})`,children:[V(K,{d:`M 0 0 L ${-o/2} ${-o}`,stroke:r,strokeWidth:s,fill:"none"}),V(K,{d:`M 0 0 L ${o/2} ${-o}`,stroke:r,strokeWidth:s,fill:"none"})]})]}(p,g,s,a);return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,U(X,{width:2*p,height:2*g,children:[v,V(Vu,{children:y})]})]})},composites:["title","item"]});const Ig=Object.assign,Tg={getId:t=>t.id||t.name,getPreH:t=>t.preH||0,getPreV:t=>t.preV||0,getHGap:t=>t.hgap||18,getVGap:t=>t.vgap||18,getChildren:t=>t.children,getHeight:t=>t.height||36,getWidth:t=>t.width||18*(t.label||" ").split("").length};class Rg{constructor(t,e){if(this.x=0,this.y=0,this.depth=0,this.children=[],this.hgap=0,this.vgap=0,t instanceof Rg||"x"in t&&"y"in t&&"children"in t){const e=t;return this.data=e.data,this.id=e.id,this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this.depth=e.depth,this.children=e.children,this.parent=e.parent,this.hgap=e.hgap,this.vgap=e.vgap,this.preH=e.preH,void(this.preV=e.preV)}this.data=t;const n=e.getHGap(t),i=e.getVGap(t);this.preH=e.getPreH(t),this.preV=e.getPreV(t),this.width=e.getWidth(t),this.height=e.getHeight(t),this.width+=this.preH,this.height+=this.preV,this.id=e.getId(t),this.addGap(n,i)}isRoot(){return 0===this.depth}isLeaf(){return 0===this.children.length}addGap(t,e){this.hgap+=t,this.vgap+=e,this.width+=2*t,this.height+=2*e}eachNode(t){let e,n=[this];for(;e=n.shift();)t(e),n=e.children.concat(n)}DFTraverse(t){this.eachNode(t)}BFTraverse(t){let e,n=[this];for(;e=n.shift();)t(e),n=n.concat(e.children)}getBoundingBox(){const t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(e=>{t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.width=Math.max(t.width,e.x+e.width),t.height=Math.max(t.height,e.y+e.height)}),t}translate(t=0,e=0){this.eachNode(n=>{n.x+=t,n.y+=e,n.x+=n.preH,n.y+=n.preV})}right2left(){const t=this.getBoundingBox();this.eachNode(e=>{e.x=e.x-2*(e.x-t.left)-e.width}),this.translate(t.width,0)}bottom2top(){const t=this.getBoundingBox();this.eachNode(e=>{e.y=e.y-2*(e.y-t.top)-e.height}),this.translate(0,t.height)}}function Bg(t,e={},n){e=Ig({},Tg,e);const i=new Rg(t,e),r=[i];let o;if(!n&&!t.collapsed)for(;o=r.shift();)if(!o.data.collapsed){const t=e.getChildren(o.data),n=t?t.length:0;if(o.children=new Array(n),t&&n)for(let i=0;i<n;i++){const n=new Rg(t[i],e);o.children[i]=n,r.push(n),n.parent=o,n.depth=o.depth+1}}return i}class Wg{constructor(t,e={}){this.options=e,this.rootNode=Bg(t,e)}execute(){throw new Error("please override this method")}}function Hg(t,e){const n=Bg(t.data,e,!0),i=Bg(t.data,e,!0),r=t.children.length,o=Math.round(r/2),s=e.getSide||function(t,e){return e<o?"right":"left"};for(let e=0;e<r;e++){const r=t.children[e];"right"===s(r,e)?i.children.push(r):n.children.push(r)}return n.eachNode(t=>{t.isRoot()||(t.side="left")}),i.eachNode(t=>{t.isRoot()||(t.side="right")}),{left:n,right:i}}const Ng=["LR","RL","TB","BT","H","V"],Fg=["LR","RL","H"],Dg=Ng[0];function Vg(t,e,n){const i=e.direction||Dg;if(e.isHorizontal=(t=>Fg.indexOf(t)>-1)(i),i&&-1===Ng.indexOf(i))throw new TypeError(`Invalid direction: ${i}`);if(i===Ng[0])n(t,e);else if(i===Ng[1])n(t,e),t.right2left();else if(i===Ng[2])n(t,e);else if(i===Ng[3])n(t,e),t.bottom2top();else if(i===Ng[4]||i===Ng[5]){const{left:i,right:r}=Hg(t,e);n(i,e),n(r,e),e.isHorizontal?i.right2left():i.bottom2top(),r.translate(i.x-r.x,i.y-r.y),t.x=i.x,t.y=r.y;const o=t.getBoundingBox();e.isHorizontal?o.top<0&&t.translate(0,-o.top):o.left<0&&t.translate(-o.left,0)}let r=e.fixedRoot;return void 0===r&&(r=!0),r&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),function(t,e){if(e.radial){const[n,i]=e.isHorizontal?["x","y"]:["y","x"],r={x:1/0,y:1/0},o={x:-1/0,y:-1/0};let s=0;t.DFTraverse(t=>{s++;const{x:e,y:n}=t;r.x=Math.min(r.x,e),r.y=Math.min(r.y,n),o.x=Math.max(o.x,e),o.y=Math.max(o.y,n)});const a=o[i]-r[i];if(0===a)return;const l=2*Math.PI/s;t.DFTraverse(e=>{const o=(e[i]-r[i])/a*(2*Math.PI-l)+l,s=e[n]-t[n];e.x=Math.cos(o)*s,e.y=Math.sin(o)*s})}}(t,e),t}function Ug(t,e){let n=0;return t.children.length?t.children.forEach(t=>{n+=Ug(t,e)}):n=t.height,t._subTreeSep=e.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,n)+2*t._subTreeSep,t.totalHeight}function Yg(t){const e=t.children,n=e.length;if(n){e.forEach(t=>{Yg(t)});const i=e[0],r=e[n-1],o=r.y-i.y+r.height;let s=0;if(e.forEach(t=>{s+=t.totalHeight}),o>t.height)t.y=i.y+o/2-t.height/2;else if(1!==e.length||t.height>s){const n=t.y+(t.height-o)/2-i.y;e.forEach(t=>{t.translate(0,n)})}else t.y=(i.y+i.height/2+r.y+r.height/2)/2-t.height/2}}const qg={getSubTreeSep:()=>0};function Gg(t,e={}){return e=Ig({},qg,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse(t=>{t.x=t.parent.x+t.parent.width}),t.parent=void 0,Ug(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode(t=>{const e=t.children,n=e.length;if(n){const i=e[0];if(i.startY=t.startY+t._subTreeSep,1===n)i.y=t.y+t.height/2-i.height/2;else{i.y=i.startY+i.totalHeight/2-i.height/2;for(let t=1;t<n;t++){const n=e[t];n.startY=e[t-1].startY+e[t-1].totalHeight,n.y=n.startY+n.totalHeight/2-n.height/2}}}}),Yg(t),t}class Xg extends Wg{execute(){return Vg(this.rootNode,this.options,Gg)}}const Kg={};function Zg(t,e){const n=Ig({},Kg,e);return new Xg(t,n).execute()}const Qg=60,Jg=14,tm="center",em="curved",nm=2,im="node",rm="solid",om=(t,e=[],n=0)=>{var i,r;const o=[...e,n];return Object.assign(Object.assign({},t),{_indexes:o,children:null!==(r=null===(i=t.children)||void 0===i?void 0:i.map((t,e)=>om(t,o,e)))&&void 0!==r?r:[]})},sm=(t,e,n,i)=>{var r,o;e.push(t),null!==(r=(o=t.data)._flatIndex)&&void 0!==r||(o._flatIndex=e.length-1),i&&n.push({parent:i,child:t});const s=t.children;null==s||s.forEach(i=>sm(i,e,n,t))},am=(t,e,n,i=tm)=>{const r=(t=>"top"===t?0:"bottom"===t?1:"center"===t?.5:Math.max(0,Math.min(1,t)))(i),o=t.y+t.height*r,s=e.y+e.height*r;return"left"===n?{sx:t.x,sy:o,tx:e.x+e.width,ty:s}:{sx:t.x+t.width,sy:o,tx:e.x,ty:s}};Mg("hierarchy-mindmap",{component:t=>{var e,n;const{Title:i,Items:r,data:o,levelGap:s=Qg,nodeGap:a=Jg,edgeAlign:l=tm,colorMode:c=im,edgeColorMode:h=rm,edgeType:u=em,edgeWidth:d=nm,options:f}=t,{title:p,desc:g,items:m=[]}=o,y=i?V(i,{title:p,desc:g}):null,v=ld(f),x=du(V(Au,{indexes:[0]})),b=new Map;let w=0;if(!m.length||!(null==r?void 0:r.length))return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[y,V(X,{children:V(Au,{indexes:[0],x:0,y:0})})]});const M=om(m[0]),k=new WeakMap,C=new WeakMap,O=new WeakMap,j=(t,e)=>{var n;if("group"===c){const e=String(null!==(n=t.group)&&void 0!==n?n:"");let i=b.get(e);return null==i&&(i=w,b.set(e,i),w+=1),[i]}return md({depth:e,originalIndexes:t._indexes,flatIndex:t._flatIndex},c)},E=(t,e)=>{const n=O.get(t);if(n)return n;const i=j(t,e),r=hd(f,i),o=ud({colorPrimary:r},f);return O.set(t,o),C.set(t,r),o},_=t=>{const e=k.get(t);if(e)return e;const n=Math.max(t._indexes.length-1,0),i=du(V(vd(r,n),{indexes:t._indexes,data:o,datum:t,positionH:"center",positionV:"middle",themeColors:E(t,n)}));return k.set(t,i),i},S=Zg(M,{direction:"H",getSide:(t,e)=>{if(!t.parent)return"right";const n=(t.parent.children||[]).indexOf(t);return(n>=0?n:e)%2==0?"left":"right"},getWidth:t=>_(t).width,getHeight:t=>_(t).height,getHGap:()=>s,getVGap:()=>a}),$=[],A=[];sm(S,$,A);const z=$.length>0?Math.min(...$.map(t=>t.x)):0,P=$.length>0?Math.min(...$.map(t=>t.y)):0,L=30-z,I=30-P,T=[],R=[],B=[],W=[],H=new WeakMap;$.forEach(t=>{var e,n;const i=t.data,s=_(i),a=t.x+L+(null!==(e=t.hgap)&&void 0!==e?e:0),l=t.y+I+(null!==(n=t.vgap)&&void 0!==n?n:0),c=vd(r,t.depth),h=0===t.depth?"center":"left"===t.side?"flipped":"normal",u=E(i,t.depth);B.push(V(c,{indexes:i._indexes,data:o,datum:i,x:a,y:l,positionH:h,positionV:"middle",themeColors:u})),H.set(t,{x:a,y:l,width:s.width,height:s.height,centerX:a+s.width/2,centerY:l+s.height/2})}),A.forEach(t=>{var e,n,i,r;const{parent:o,child:s}=t,a=H.get(s),c=H.get(o);if(!a||!c)return;const p=s.data,{sx:g,sy:m,tx:y,ty:b}=am(c,a,s.side,l),w=null!==(e=C.get(p))&&void 0!==e?e:hd(f,j(p,s.depth)),M=null!==(n=C.get(o.data))&&void 0!==n?n:hd(f,j(o.data,o.depth)),k="straight"===u?((t,e,n,i)=>`M ${t} ${e} L ${n} ${i}`)(g,m,y,b):((t,e,n,i)=>{const r=Math.abs(n-t)/2;return`M ${t} ${e} C ${n>t?t+r:t-r} ${e} ${n>t?n-r:n+r} ${i} ${n} ${i}`})(g,m,y,b),O=`edge-gradient-${p._indexes.join("-")}`;R.push(V(K,{d:k,stroke:"gradient"===h?`url(#${O})`:null!=w?w:v,strokeWidth:d,fill:"none"})),"gradient"===h&&T.push(U("linearGradient",{id:O,gradientUnits:"userSpaceOnUse",x1:g,y1:m,x2:y,y2:b,children:[V("stop",{offset:"0%",stopColor:null!=M?M:v}),V("stop",{offset:"100%",stopColor:null!=w?w:v})]}));const E=null!==(r=null===(i=p.children)||void 0===i?void 0:i.length)&&void 0!==r?r:0,_=[...p._indexes,E],S=a.x+(a.width-x.width)/2,$=a.y+a.height+8,A=$+x.height+6;s.depth>0&&W.push(V(zu,{indexes:p._indexes,x:S,y:$})),W.push(V(Au,{indexes:_,x:S,y:A}))});const N=H.get(S);if(N){const t=S.data,i=null!==(n=null===(e=t.children)||void 0===e?void 0:e.length)&&void 0!==n?n:0,r=[...t._indexes,i];W.push(V(Au,{indexes:r,x:N.x+(N.width-x.width)/2,y:N.y+N.height+8+x.height+6}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[y,U(X,{children:[T.length>0?V(q,{children:T}):null,V(X,{children:R}),V(Vu,{children:B}),V(Pu,{children:W})]})]})},composites:["title","item"]});const lm=(t,e)=>{if(!t||"#"!==t[0]||7!==t.length)return t;const n=Math.max(0,Math.min(1,e));return`${t}${Math.round(255*n).toString(16).padStart(2,"0")}`},cm=t=>null==t?"":String(t),hm=(t,e,n)=>du(V(su,{fontSize:e,fontWeight:n,children:t})),um=(t,e,n,i)=>{const r=((t,e,n,i=" ")=>{const r=hm(i,e,n);let o=r.width,s=r.height;return t.forEach(t=>{const i=hm(t||" ",e,n);o=Math.max(o,i.width),s=Math.max(s,i.height)}),{width:o,height:s}})(t,e,"normal","Item");return{pillWidth:r.width+2*n,pillHeight:r.height+2*i}};Mg("hierarchy-structure",{component:t=>{const{Title:e,data:n,options:i,rowGap:r=20,labelGap:o=20,groupGap:s=20,pillGap:a=14,pillColumns:l=2,ungroupedColumns:c=6,layerLabelPosition:h="left",rowPadding:u=20,groupPadding:d=16,labelPaddingX:f=28,labelPaddingY:p=16,pillPaddingX:g=18,pillPaddingY:m=10,labelFontSize:y=20,groupTitleFontSize:v=18,pillFontSize:x=16,groupTitleGap:b=10,rowRadius:w=12,groupRadius:M=10,pillRadius:k=12}=t,{title:C,desc:O,items:j=[]}=n,E=e?V(e,{title:C,desc:O}):null;if(0===j.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[E,V(X,{children:V(Vu,{})})]});const _=ud(i.themeConfig),S=[],$=[],A="right"===h,z=j.map(t=>{const e=cm(t.label),n=hm(e||" ",y,"bold"),i=n.width+2*f,r=n.height+2*p,o=t.children||[];if(o.some(t=>{var e;return((null===(e=t.children)||void 0===e?void 0:e.length)||0)>0})){const t=[];o.forEach(e=>{(e.children||[]).forEach(e=>{t.push(cm(e.label))})});const{pillWidth:n,pillHeight:c}=um(t,x,g,m),h=o.map(t=>{const e=cm(t.label),i=hm(e||" ",v,"bold"),r=t.children||[],o=r.length>0?Math.min(l,r.length):0,s=o>0?Math.ceil(r.length/o):0,h=o>0?o*n+(o-1)*a:0,u=s>0?s*c+(s-1)*a:0;return{label:e,children:r,width:Math.max(i.width,h)+2*d,height:2*d+i.height+(s>0?b+u:0),titleHeight:i.height,columns:o,contentWidth:h,pillWidth:n,pillHeight:c}}),u=h.reduce((t,e)=>t+e.width,0)+(h.length>1?(h.length-1)*s:0),f=h.reduce((t,e)=>Math.max(t,e.height),0);return{label:e,labelWidth:i,labelHeight:r,hasGroups:!0,children:o,groupMetrics:h,contentInnerWidth:u,contentInnerHeight:f}}const h=o.map(t=>cm(t.label)),{pillWidth:u,pillHeight:w}=um(h,x,g,m),M=o.length>0?Math.min(c,o.length):0,k=M>0?Math.ceil(o.length/M):0;return{label:e,labelWidth:i,labelHeight:r,hasGroups:!1,children:o,pillWidth:u,pillHeight:w,columns:M,contentInnerWidth:M>0?M*u+(M-1)*a:0,contentInnerHeight:k>0?k*w+(k-1)*a:0}}),P=z.reduce((t,e)=>Math.max(t,e.labelWidth),0),L=z.reduce((t,e)=>Math.max(t,e.contentInnerWidth),0),I=(t,e,n,i,r,o,s,a,l,c,h,u,d,f)=>{S.push(V(J,{x:n,y:s,width:r,height:a,fill:d,stroke:f,rx:w,ry:w,"data-element-type":"shape"})),S.push(V(J,{x:l,y:c,width:h,height:u,fill:d,stroke:f,rx:w,ry:w,"data-element-type":"shape"})),$.push(V(su,{x:n,y:i,width:r,height:o,fontSize:y,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:_.colorText,"data-element-type":"item-label","data-indexes":e,children:t}))};let T=0,R=0;z.forEach((t,e)=>{const n=(t=>{const e=hd(i,[t])||_.colorPrimary||"#6c7dff";return{rowFill:lm(e,.12),rowStroke:lm(e,.55),groupFill:lm(e,.08),groupStroke:lm(e,.4),pillFill:lm(e,.06),pillStroke:lm(e,.35)}})(e),{rowWidth:l,rowHeight:c}=t.hasGroups?((t,e,n,i)=>{const r=t.groupMetrics||[],l=t.label,c=[e],h=P,f=t.labelHeight,p=t.contentInnerHeight,g=Math.max(0,L-t.contentInnerWidth),m=r.length>0?g/r.length:0,y=t.contentInnerWidth+(r.length>0?g:0)+2*u,w=p+2*u,C=Math.max(f,w),O=A?0:h+o,j=A?O+y+o:0,E=n+(C-w)/2;I(l,c,j,n+(C-f)/2,h,f,n,C,O,E,y,w,i.rowFill,i.rowStroke);let z=O+u;return r.forEach((t,e)=>{const n=[...c,e],r=t.width+m,o=E+u+(p-t.height)/2;S.push(V(J,{x:z,y:o,width:r,height:t.height,fill:i.groupFill,stroke:i.groupStroke,rx:M,ry:M,"data-element-type":"shape"}));const l=t.children.length>0;if($.push(V(su,{x:z+d,y:l?o+d:o,width:r-2*d,height:l?t.titleHeight:t.height,fontSize:v,fontWeight:"bold",alignHorizontal:"center",alignVertical:l?"top":"middle",fill:_.colorText,"data-element-type":"item-label","data-indexes":n,children:t.label})),t.columns>0){const e=r-2*d,s=e-t.contentWidth,l=t.pillWidth+(s>0?s/t.columns:0),c=z+d+Math.max(0,(e-(t.columns*l+(t.columns-1)*a))/2),h=o+d+t.titleHeight+b;t.children.forEach((e,r)=>{const o=[...n,r],s=Math.floor(r/t.columns),u=c+r%t.columns*(l+a),d=h+s*(t.pillHeight+a),f=Math.min(k,t.pillHeight/2);S.push(V(J,{x:u,y:d,width:l,height:t.pillHeight,fill:i.pillFill,stroke:i.pillStroke,rx:f,ry:f,"data-element-type":"shape"})),$.push(V(su,{x:u,y:d,width:l,height:t.pillHeight,fontSize:x,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:_.colorText,"data-element-type":"item-label","data-indexes":o,children:cm(e.label)}))})}z+=r+s}),{rowWidth:A?j+h:O+y,rowHeight:C}})(t,e,T,n):((t,e,n,i)=>{const r=t.label,s=[e],l=P,c=t.labelHeight,h=t.contentInnerHeight,d=Math.max(0,L-t.contentInnerWidth),f=t.columns||0,p=t.pillHeight||0,g=(t.pillWidth||0)+(f>0?d/f:0),m=(f>0?f*g+(f-1)*a:0)+2*u,y=h+2*u,v=Math.max(c,y),b=A?0:l+o,w=A?b+m+o:0,M=n+(v-y)/2;if(I(r,s,w,n+(v-c)/2,l,c,n,v,b,M,m,y,i.rowFill,i.rowStroke),f>0){const e=b+u,n=M+u;(t.children||[]).forEach((t,r)=>{const o=[...s,r],l=Math.floor(r/f),c=e+r%f*(g+a),h=n+l*(p+a),u=Math.min(k,p/2);S.push(V(J,{x:c,y:h,width:g,height:p,fill:i.pillFill,stroke:i.pillStroke,rx:u,ry:u,"data-element-type":"shape"})),$.push(V(su,{x:c,y:h,width:g,height:p,fontSize:x,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:_.colorText,"data-element-type":"item-label","data-indexes":o,children:cm(t.label)}))})}return{rowWidth:A?w+l:b+m,rowHeight:v}})(t,e,T,n);R=Math.max(R,l),T+=c+r});const B=Math.max(T-r,0);return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[E,U(X,{width:R,height:B,children:[V(X,{children:S}),V(Vu,{children:$})]})]})},composites:["title"]});const dm=(t,e)=>{const n=Math.max(0,e/2-1);return Math.min(t,n)};Mg("hierarchy-tree",{component:t=>{const{Title:e,Items:n,data:i,levelGap:r=80,nodeGap:o=60,edgeType:s="straight",edgeColorMode:a="gradient",edgeWidth:l=3,edgeStyle:c="solid",edgeDashPattern:h="5,5",edgeCornerRadius:u=0,edgeOffset:d=0,edgeOrigin:f="center",edgeOriginPadding:p=20,edgeMarker:g="none",markerSize:m=12,colorMode:y="branch",orientation:v="top-bottom",options:x}=t,b="left-right"===v||"right-left"===v,w="bottom-top"===v||"right-left"===v?-1:1,{title:M,desc:k}=i,C=ld(x),O=new Map;let j=0;const E=t=>{const{x:e,y:n}=t;return b?{x:n*w,y:e}:{x:e,y:n*w}},_=(t,e,n)=>{const{x:i,y:r}=E(t),o=i+n.x,s=r+n.y;return{centerX:o,centerY:s+e.height/2,left:o-e.width/2,right:o+e.width/2,top:s,bottom:s+e.height}},S=(t,e)=>{var n;if("group"===y){const e=String(null!==(n=null==t?void 0:t.group)&&void 0!==n?n:"");let i=O.get(e);return null==i&&(i=j,O.set(e,i),j+=1),[i]}return md({depth:e,originalIndexes:t._originalIndex,flatIndex:t._flatIndex},y)},$=(t,e,r,o,y,v)=>{const{depth:M,data:k,parent:O}=t,j=k._originalIndex,E=vd(n,M),$=e.get(M),A=_(t,$,o),z=A.left,P=A.top,L={items:[],btns:[],deco:[]},I=S(k,M),T=ud({colorPrimary:hd(x,I)},x);if(L.items.push(V(E,{indexes:j,datum:k,data:i,x:z,y:P,positionH:"center",themeColors:T})),L.btns.push(V(zu,{indexes:j,x:z+($.width-r.width)/2,y:P+$.height+5}),V(Au,{indexes:[...j,0],x:z+($.width-r.width)/2,y:P+$.height+r.height+10})),O){const n=e.get(O.depth),i=_(O,n,o),r=v.filter(t=>t.parent===O),E=r.findIndex(e=>e===t),$=r.length;let z,P;if("distributed"===f&&$>1)if(b){const t=dm(p,n.height),e=i.top+t,r=(i.bottom-t-e)/$;P=e+r*E+r/2,z=(w>0?i.right:i.left)+d*w}else{const t=dm(p,n.width),e=i.left+t,r=(i.right-t-e)/$;z=e+r*E+r/2,P=(w>0?i.bottom:i.top)+d*w}else z=b?(w>0?i.right:i.left)+d*w:i.centerX,P=b?i.centerY:(w>0?i.bottom:i.top)+d*w;const T=b?(w>0?A.left:A.right)-d*w:A.centerX,R=b?A.centerY:(w>0?A.top:A.bottom)-d*w;let B,W=T,H=R;if("arrow"===g&&(b?W-=m*w:H-=m*w),"curved"===s)if(b){const t=z+(W-z)/2;B=`M ${z} ${P} C ${t} ${P}, ${t} ${H}, ${W} ${H}`}else{const t=P+(H-P)/2;B=`M ${z} ${P} C ${z} ${t}, ${W} ${t}, ${W} ${H}`}else if(u>0)B=((t,e,n,i,r,o="vertical")=>{const s="vertical"===o,a=s?i-e:n-t,l=s?n-t:i-e,c=0===a?1:Math.sign(a),h=0===l?1:Math.sign(l),u=s?e+a/2:t+a/2,d=Math.min(r,Math.abs(a)/2,Math.abs(l)/2);return 0===d?s?`M ${t} ${e} L ${t} ${u} L ${n} ${u} L ${n} ${i}`:`M ${t} ${e} L ${u} ${e} L ${u} ${i} L ${n} ${i}`:s?`M ${t} ${e}\n L ${t} ${u-c*d}\n Q ${t} ${u} ${t+h*d} ${u}\n L ${n-h*d} ${u}\n Q ${n} ${u} ${n} ${u+c*d}\n L ${n} ${i}`:`M ${t} ${e}\n L ${u-c*d} ${e}\n Q ${u} ${e} ${u} ${e+h*d}\n L ${u} ${i-h*d}\n Q ${u} ${i} ${u+c*d} ${i}\n L ${n} ${i}`})(z,P,W,H,u,b?"horizontal":"vertical");else if(b){const t=z+(W-z)/2;B=`M ${z} ${P} L ${t} ${P} L ${t} ${H} L ${W} ${H}`}else{const t=P+(H-P)/2;B=`M ${z} ${P} L ${z} ${t} L ${W} ${t} L ${W} ${H}`}let N=C;if("gradient"===a){const t=S(O.data,O.depth),e=S(k,M),n=hd(x,t),i=hd(x,e),r=`gradient-${O.data._originalIndex.join("-")}-${j.join("-")}`;y.push(U("linearGradient",{id:r,x1:z,y1:P,x2:W,y2:H,gradientUnits:"userSpaceOnUse",children:[V("stop",{offset:"0%",stopColor:n}),V("stop",{offset:"100%",stopColor:i})]})),N=`url(#${r})`}if(L.deco.push(V(K,{d:B,stroke:N,strokeWidth:l,strokeDasharray:"dashed"===c?h:"",fill:"none"})),"arrow"===g){const t="gradient"===a?hd(x,I):ld(x);L.deco.push(V(Q,{points:b?[{x:T,y:R},{x:T-m*w,y:R-m/2},{x:T-m*w,y:R+m/2}]:[{x:T,y:R},{x:T-m/2,y:R-m*w},{x:T+m/2,y:R-m*w}],fill:t,width:m,height:m}))}if("dot"===g){const t=S(O.data,O.depth),e="gradient"===a?hd(x,t):ld(x);L.deco.push(V(G,{x:(b?w>0?i.right+d:i.left-d:z)-m,y:(b?P:w>0?i.bottom+d:i.top-d)-m,width:2*m,height:2*m,fill:e}));const n="gradient"===a?hd(x,I):ld(x);L.deco.push(V(G,{x:T-m,y:R-m,width:2*m,height:2*m,fill:n}))}}return L},A=(t=>{var e;const n=[...t];return(null===(e=n[0])||void 0===e?void 0:e.children)||(n[0]=Object.assign(Object.assign({},n[0]),{children:n.slice(1)}),n.splice(1)),n})(i.items),z=e?V(e,{title:M,desc:k}):null,P=du(V(Au,{indexes:[0]}));if(!A.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[z,V(X,{children:V(Pu,{children:V(Au,{indexes:[0],x:-P.width/2,y:-P.height/2})})})]});const L=(t=>{var e;if(!t.length)return null;const n=t[0],i=(t,e=[],n=0)=>{var r,o;const s=[...e,n];return Object.assign(Object.assign({},t),{_originalIndex:s,_depth:s.length-1,children:null!==(o=null===(r=t.children)||void 0===r?void 0:r.map((t,e)=>i(t,s,e)))&&void 0!==o?o:[]})};return(null===(e=n.children)||void 0===e?void 0:e.length)?i(n):Object.assign(Object.assign({},n),{_originalIndex:[0],_depth:0,children:t.slice(1).map((t,e)=>Object.assign(Object.assign({},t),{_originalIndex:[e+1],_depth:1}))})})(A),I=Dp.Ay(L),{levelBounds:T,maxWidth:R,maxHeight:B}=(t=>{var e,r;let o=0,s=0;const a=new Map,l=new Map;t.each(t=>{l.has(t.depth)||l.set(t.depth,t.data)});for(let c=0;c<t.height+1;c++){const t=vd(n,c),h=null!==(e=l.get(c))&&void 0!==e?e:{},u=du(V(t,{indexes:null!==(r=h._originalIndex)&&void 0!==r?r:Array(c+1).fill(0),data:i,datum:h,positionH:"center"}));a.set(c,u),o=Math.max(o,u.width),s=Math.max(s,u.height)}return{levelBounds:a,maxWidth:o,maxHeight:s}})(I),W=Vp.A().nodeSize(b?[B+o,R+r]:[R+o,B+r]).separation(()=>1)(I).descendants(),H=W.map(t=>E(t)),N=Math.min(...H.map(t=>t.x)),F=Math.min(...H.map(t=>t.y)),D={x:Math.max(0,R/2-N),y:Math.max(0,-F+P.height+10)},Y=[],Z=[],J=[],tt=[];return W.forEach((t,e)=>{t.data._flatIndex=e;const{x:n,y:i}=E(t);t.__layout={x:n,y:i}}),W.forEach(t=>{const{items:e,btns:n,deco:i}=$(t,T,P,D,tt,W);Y.push(...e),Z.push(...n),J.push(...i)}),Z.push(...((t,e,n)=>{const i=new Map;t.forEach(t=>{var e;const n=t.parent?t.parent.data._originalIndex.join("-"):"root";(null!==(e=i.get(n))&&void 0!==e?e:i.set(n,[]).get(n)).push(t)});const r=[];return i.forEach(t=>{if(t.length<=1)return;const i=t.slice().sort((t,e)=>b?E(t).y-E(e).y:E(t).x-E(e).x);if(0!==i.length)for(let t=0;t<i.length-1;t++){const o=E(i[t]),s=E(i[t+1]),a=i[t].data._originalIndex.slice(0,-1),l=i[t].data._originalIndex.at(-1)+1;if(b){const t=o.x+n.x+(w>0?-e.width-5:e.width+5),i=(o.y+s.y)/2+n.y-e.height/2;r.push(V(Au,{indexes:[...a,l],x:t,y:i}))}else{const t=o.y+n.y-e.height-5,i=(o.x+s.x)/2+n.x-e.width/2;r.push(V(Au,{indexes:[...a,l],x:i,y:t}))}}}),r})(W,P,D)),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[z,U(X,{children:[tt.length>0&&V(q,{children:tt}),V(qu,{children:J}),V(Vu,{children:Y}),V(Pu,{children:Z})]})]})},composites:["title","item"]});Mg("list-column",{component:t=>{const{Title:e,Item:n,data:i,gap:r=20,width:o,zigzag:s}=t,{title:a,desc:l,items:c=[]}=i,h=du(V(Au,{indexes:[0]})),u=du(V(n,{indexes:[0],data:i,datum:c[0]})),d=o||u.width,f=e?V(e,{title:a,desc:l}):null,p=[],g=[],m=(d-h.width)/2;if(c.forEach((t,e)=>{const o=(u.height+r)*e,a=[e];g.push(V(n,{indexes:a,datum:t,data:i,y:o,width:d,positionV:"middle",positionH:s?e%2==0?"normal":"flipped":"normal"})),p.push(V(zu,{indexes:a,x:-h.width-10,y:o+(u.height-h.height)/2}));p.push(V(Au,{indexes:a,x:m,y:0===e?-h.height:o-r/2-h.height/2}))}),c.length>0){p.push(V(Au,{indexes:[c.length],x:m,y:(u.height+r)*(c.length-1)+u.height}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,U(X,{children:[V(Vu,{children:g}),V(Pu,{children:p})]})]})},composites:["title","item"]});Mg("list-grid",{component:t=>{const{Title:e,Item:n,data:i,columns:r=3,gap:o=24,zigzag:s}=t,{title:a,desc:l,items:c=[]}=i,h=e?V(e,{title:a,desc:l}):null,u=du(V(Au,{indexes:[0]})),d=du(V(n,{indexes:[0],data:i,datum:c[0],positionH:"center"})),f=[],p=[],g=d.height+o,m=d.width+o,y=new Set;return c.forEach((t,e)=>{const a=Math.floor(e/r),l=e%r,h=l*m,v=a*g,x=[e];p.push(V(n,{indexes:x,datum:t,data:i,x:h,y:v,positionH:"center",positionV:s&&e%2==0?"normal":"flipped"})),f.push(V(zu,{indexes:x,x:h+(d.width-u.width)/2,y:v+d.height})),l<r-1&&f.push(V(Au,{indexes:[e+1],x:h+d.width+(o-u.width)/2,y:v+(d.height-u.height)/2})),0!==l||y.has(a)||(f.push(V(Au,{indexes:[e],x:h-o/2-u.width/2,y:v+(d.height-u.height)/2})),y.add(a));(l===r-1||e===c.length-1)&&f.push(V(Au,{indexes:[e+1],x:h+d.width+o/2-u.width/2,y:v+(d.height-u.height)/2}))}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,U(X,{children:[V(Vu,{children:p}),V(Pu,{children:f})]})]})},composites:["title","item"]});Mg("list-pyramid",{component:t=>{const{Title:e,Item:n,data:i,gap:r=20,levelGap:o=20}=t,{title:s,desc:a,items:l=[]}=i,c=e?V(e,{title:s,desc:a}):null,h=du(V(Au,{indexes:[0]})),u=du(V(n,{indexes:[0],data:i,datum:l[0],positionH:"center"})),d=[],f=[],p=Math.ceil(Math.sqrt(l.length)),g=[];let m=l.length;for(let t=0;t<p;t++){const e=Math.min(t+1,m);if(g.push(e),m-=e,m<=0)break}let y=0;const v=Math.max(...g),x=(v*u.width+(v-1)*r)/2;return g.forEach((t,e)=>{const s=e*(u.height+o),a=x-(t*u.width+(t-1)*r)/2;for(let e=0;e<t&&y<l.length;e++){const o=a+e*(u.width+r),c=[y];f.push(V(n,{indexes:c,datum:l[y],data:i,x:o,y:s,positionH:"center"})),d.push(V(zu,{indexes:c,x:o+(u.width-h.width)/2,y:s+u.height})),e<t-1&&d.push(V(Au,{indexes:[y+1],x:o+u.width+(r-h.width)/2,y:s+(u.height-h.height)/2})),0===e&&d.push(V(Au,{indexes:[y],x:o-r/2-h.width/2,y:s+(u.height-h.height)/2})),e===t-1&&d.push(V(Au,{indexes:[y+1],x:o+u.width+r/2-h.width/2,y:s+(u.height-h.height)/2})),y++}}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,U(X,{children:[V(Vu,{children:f}),V(Pu,{children:d})]})]})},composites:["title","item"]});Mg("list-row",{component:t=>{const{Title:e,Item:n,data:i,gap:r=20,zigzag:o}=t,{title:s,desc:a,items:l=[]}=i,c=e?V(e,{title:s,desc:a}):null,h=du(V(Au,{indexes:[0]})),u=du(V(n,{indexes:[0],data:i,datum:l[0],positionH:"center"})),d=[],f=[],p=(u.height-h.height)/2,g=u.height;if(l.forEach((t,e)=>{const s=(u.width+r)*e,a=[e];f.push(V(n,{indexes:a,datum:t,data:i,x:s,positionH:"center",positionV:o&&e%2==0?"normal":"flipped"})),d.push(V(zu,{indexes:a,x:s+(u.width-h.width)/2,y:g}));d.push(V(Au,{indexes:a,x:0===e?-(r+h.width)/2:s-(r+h.width)/2,y:p}))}),l.length>0){d.push(V(Au,{indexes:[l.length],x:(u.width+r)*(l.length-1)+u.width+(r-h.width)/2,y:p}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,U(X,{children:[V(Vu,{children:f}),V(Pu,{children:d})]})]})},composites:["title","item"]});Mg("list-sector",{component:t=>{const{Item:e,data:n,outerRadius:i=250,innerRadius:r=120,startAngle:o=-90,endAngle:s=270,gapAngle:a=1,options:l}=t,{title:c,items:h=[]}=n,u=ud(l.themeConfig),d=du(V(Au,{indexes:[0]})),f=[],p=[],g=[],m=i+100,y=i+100,v=s-o,x=Math.abs(v-360)<.01,b=h.length>0?(v-(h.length>0?a*(x?h.length:h.length-1):0))/h.length:0;if(h.forEach((t,s)=>{var c;const u=[s],v=o+(b+a)*s,w=v+b,M=a*Math.PI*i/180/r*(180/Math.PI),k=(v+a/2)*Math.PI/180,C=(w-a/2)*Math.PI/180,O=(v+M/2)*Math.PI/180,j=(w-M/2)*Math.PI/180,E=m+i*Math.cos(k),_=y+i*Math.sin(k),S=m+i*Math.cos(C),$=y+i*Math.sin(C),A=m+r*Math.cos(O),z=y+r*Math.sin(O),P=m+r*Math.cos(j),L=y+r*Math.sin(j),I=b>180?1:0,T=`\n M ${E} ${_}\n A ${i} ${i} 0 ${I} 1 ${S} ${$}\n L ${P} ${L}\n A ${r} ${r} 0 ${I} 0 ${A} ${z}\n Z\n `.trim(),R=hd(l,u);g.push(V(K,{id:"shape-sector",d:T,fill:R,width:2*i+200,height:2*i+200,"data-element-type":"shape"}));const B=(v+b/2)*Math.PI/180,W=(i+r)/2,H=i-r,N=W*(b*Math.PI/180),F=Math.min(.8*N,.9*H),D=Math.min(.9*H,.8*N),U=du(V(e,{indexes:[0],data:n,datum:h[0],positionH:"center",width:F,height:D})),Y=m+W*Math.cos(B)-U.width/2,q=y+W*Math.sin(B)-U.height/2;p.push(V(e,{indexes:u,datum:t,data:n,x:Y,y:q,positionH:"center",width:F,height:D,themeColors:Object.assign({},ud({colorBg:hd(l,u),colorPrimary:(null===(c=l.themeConfig)||void 0===c?void 0:c.colorBg)||"white"}))}));const G=i+10,X=m+G*Math.cos(B)-d.width/2,Z=y+G*Math.sin(B)-d.height/2;if(f.push(V(zu,{indexes:u,x:X,y:Z})),x||s<h.length-1){const t=(w+a/2)*Math.PI/180,e=W,n=m+e*Math.cos(t)-d.width/2,i=y+e*Math.sin(t)-d.height/2;f.push(V(Au,{indexes:[s+1],x:n,y:i}))}}),h.length>0){const t=(o-a/2)*Math.PI/180,e=(i+r)/2,n=m+e*Math.cos(t)-d.width/2,s=y+e*Math.sin(t)-d.height/2;f.push(V(Au,{indexes:[0],x:n,y:s}))}const w=.9*r;let M=m,k=y,C=1.4*w,O=1.4*w;if(!x){const t=(o+s)/2*Math.PI/180,e=.5*w;M=m+e*Math.cos(t),k=y+e*Math.sin(t);const n=v*Math.PI*e/180;C=Math.min(.8*n,1.4*w),O=Math.min(1.5*e,1.4*w)}let j="";if(x)j="";else{const t=o*Math.PI/180,e=s*Math.PI/180,n=m+w*Math.cos(t),i=y+w*Math.sin(t),r=m+w*Math.cos(e),a=y+w*Math.sin(e);j=`\n M ${m} ${y}\n L ${n} ${i}\n A ${w} ${w} 0 ${v>180?1:0} 1 ${r} ${a}\n Z\n `.trim()}return U(X,{id:"infographic-container",children:[V(X,{children:g}),x?V(G,{id:"shape-center-circle",x:m-w,y:y-w,width:2*w,height:2*w,fill:u.colorPrimaryBg,fillOpacity:.5,"data-element-type":"shape"}):V(K,{id:"shape-center-sector",d:j,fill:u.colorPrimaryBg,fillOpacity:.5,width:2*i+200,height:2*i+200,"data-element-type":"shape"}),V(su,{x:M-C/2,y:k-O/2,width:C,height:O,alignHorizontal:"center",alignVertical:"middle",fontSize:24,fontWeight:"bold",fill:u.colorText,"data-element-type":"title",children:c}),V(Vu,{children:p}),V(Pu,{children:f})]})},composites:["title","item"]});Mg("list-waterfall",{component:t=>{const{Title:e,Item:n,data:i,columns:r=4,gap:o=20,stepOffset:s=40}=t,{title:a,desc:l,items:c=[]}=i,h=e?V(e,{title:a,desc:l}):null,u=du(V(Au,{indexes:[0]})),d=du(V(n,{indexes:[0],data:i,datum:c[0],positionH:"center"})),f=[],p=[],g=d.width+o;return c.forEach((t,e)=>{const a=e%r,l=Math.floor(e/r),c=a*g,h=l*(d.height+o)+a*s,m=[e];p.push(V(n,{indexes:m,datum:t,data:i,x:c,y:h,positionH:"center"})),f.push(V(zu,{indexes:m,x:c+(d.width-u.width)/2,y:h+d.height+5}))}),c.forEach((t,e)=>{const n=e%r,i=Math.floor(e/r),a=n*g,l=i*(d.height+o)+n*s;if(0===e&&f.push(V(Au,{indexes:[0],x:a-o/2-u.width/2,y:l+(d.height-u.height)/2})),n<r-1&&e<c.length-1){i===Math.floor((e+1)/r)&&f.push(V(Au,{indexes:[e+1],x:a+d.width+(o-u.width)/2,y:l+(d.height-u.height)/2}))}n!==r-1&&e!==c.length-1||f.push(V(Au,{indexes:[e+1],x:a+d.width+(o-u.width)/2,y:l+(d.height-u.height)/2}))}),0===c.length&&f.push(V(Au,{indexes:[0],x:(r-1)*g/2+(d.width-u.width)/2,y:0})),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,U(X,{children:[V(Vu,{children:p}),V(Pu,{children:f})]})]})},composites:["title","item"]});const fm=(t,e,n)=>{const i=e[t];return i?i.map(t=>({x:700*t.x,y:t.y*n,anchor:t.anchor})):null},pm=(t,e)=>{const n=e.x-t.x,i=e.y-t.y,r=Math.hypot(n,i)||1;return{x:n/r,y:i/r}},gm=t=>{const{presetRatios:e,arrowHeight:n,Arrow:i}=t;return t=>{var r;const{Title:o,Item:s,data:a,options:l,itemGap:c=24}=t,{title:h,desc:u,items:d=[]}=a,f=Math.min(d.length,6),p=d.slice(0,f),g=o?V(o,{title:h,desc:u}):null,m=ld(l),y=ud({colorPrimary:m},l).colorTextSecondary||"#737373",v=du(V(Au,{indexes:[0]}));if(0===d.length){const t=null===(r=fm(1,e,n))||void 0===r?void 0:r[0];if(!t)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,V(X,{children:V(i,{colorPrimary:m,colorShadow:y})})]});const o=t.x-v.width/2,s=t.y-v.height/2;return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,U(X,{children:[V(i,{colorPrimary:m,colorShadow:y}),V(Vu,{}),V(Pu,{children:V(Au,{indexes:[0],x:o,y:s})})]})]})}const x=du(V(s,{indexes:[0],data:a,datum:d[0],positionH:"center"})),b=[],w=[],M=fm(f,e,n);if(!M)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,U(X,{children:[V(i,{colorPrimary:m,colorShadow:y}),V(Vu,{})]})]});const k=M,C=k.length>1?pm(k[0],k[k.length-1]):{x:1,y:0},O=k.length>1?pm(k[0],k[1]):C,j=k.length>1?pm(k[k.length-2],k[k.length-1]):C,E=.45*Math.max(x.width,x.height)+c;if(k.forEach((t,e)=>{const i=(t=>{const{x:e,y:n,centerY:i}=((t,e)=>{let n=t.x-e.width/2,i=t.y-e.height/2,r=t.y;switch(t.anchor||"center"){case"top":n=t.x-e.width/2,i=t.y,r=t.y+e.height/2;break;case"bottom":n=t.x-e.width/2,i=t.y-e.height,r=t.y-e.height/2;break;case"top-left":n=t.x,i=t.y,r=t.y+e.height/2;break;case"top-right":n=t.x-e.width,i=t.y,r=t.y+e.height/2;break;case"bottom-left":n=t.x,i=t.y-e.height,r=t.y-e.height/2;break;case"bottom-right":n=t.x-e.width,i=t.y-e.height,r=t.y-e.height/2}return{x:n,y:i,centerY:r}})(t,x);return{x:e,y:n,centerY:i}})(t),r=i.centerY<n/2,o=[e],l=p[e];if(!l)return;w.push(V(s,{indexes:o,datum:l,data:a,x:i.x,y:i.y,positionH:"center"}));b.push(V(zu,{indexes:o,x:i.x+x.width-v.width/2,y:r?i.y-v.height/2:i.y+x.height-v.height/2}))}),k.length>0){const t=k[0];b.push(V(Au,{indexes:[0],x:t.x-O.x*E-v.width/2,y:t.y-O.y*E-v.height/2}));for(let t=0;t<k.length-1;t++){const e=k[t],n=k[t+1];b.push(V(Au,{indexes:[t+1],x:(e.x+n.x)/2-v.width/2,y:(e.y+n.y)/2-v.height/2}))}const e=k[k.length-1];b.push(V(Au,{indexes:[f],x:e.x+j.x*E-v.width/2,y:e.y+j.y*E-v.height/2}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,U(X,{children:[V(i,{colorPrimary:m,colorShadow:y}),V(Vu,{children:w}),V(Pu,{children:b})]})]})}},mm=gm({arrowHeight:330,presetRatios:{1:[{x:.5,y:.6,anchor:"top-right"}],2:[{x:.42,y:.5,anchor:"top-right"},{x:.72,y:.4,anchor:"bottom"}],3:[{x:.3,y:.5,anchor:"top-right"},{x:.48,y:.3,anchor:"bottom-left"},{x:.8,y:.75,anchor:"top-right"}],4:[{x:.3,y:.5,anchor:"top-right"},{x:.35,y:.2,anchor:"bottom-left"},{x:.65,y:.73,anchor:"top-right"},{x:.8,y:.52,anchor:"bottom-left"}],5:[{x:.19,y:.4,anchor:"top-right"},{x:.38,y:.2,anchor:"bottom"},{x:.52,y:.62,anchor:"top-right"},{x:.7,y:.43,anchor:"bottom"},{x:.82,y:.8,anchor:"top-right"}],6:[{x:.16,y:.35,anchor:"top-right"},{x:.38,y:.2,anchor:"bottom"},{x:.48,y:.54,anchor:"top-right"},{x:.55,y:.43,anchor:"bottom-left"},{x:.8,y:.75,anchor:"top-right"},{x:.86,y:.65,anchor:"bottom-left"}]},Arrow:({colorPrimary:t="#17CA2C",colorShadow:e="#737373"})=>{const n=(0,wl.A)(t).darken(20).toHexString();return U(X,{width:700,height:330,children:[V("path",{d:"M228.864 159.446C230.266 159.446 231.623 158.768 232.689 157.535L274.263 110.162L265.717 102.923L227.311 148.082C225.977 149.623 224.281 150.47 222.529 150.47H175.404L182.03 158.367C182.795 159.445 182.795 159.446 183.734 159.446H228.864Z",fill:e}),V("path",{d:"M462.869 234.92C464.271 234.92 465.628 234.242 466.695 233.01L508.268 185.636L499.722 178.397L461.316 223.557C459.983 225.098 458.287 225.945 456.534 225.945H409.409L416.035 233.841C416.8 234.92 416.8 234.92 417.74 234.92H462.869Z",fill:e}),V("path",{d:"M697.005 330C698.783 330 700 328.82 700 327.001V256.638C700 254.857 697.848 253.965 696.591 255.225L693.409 258.411V320.402C693.409 322.058 692.069 323.401 690.414 323.401H630.718L627.536 326.587C626.278 327.847 627.169 330 628.947 330H697.005Z",fill:e}),V("path",{d:"M689.642 321.89C690.744 321.89 691.638 320.995 691.638 319.891V250.743C691.638 248.962 689.488 248.07 688.23 249.329L662.647 274.947L520.987 153.863C519.541 152.627 517.703 151.948 515.802 151.948H469.518C470.236 151.949 470.956 152.206 471.53 152.729L498.163 176.978L498.13 177.018L639.84 297.784L619.174 318.477C617.916 319.737 618.807 321.89 620.586 321.89H689.642Z",fill:t}),V("path",{d:"M429.279 198.995L467.208 153.03C468.3 151.716 470.268 151.579 471.531 152.729L498.163 176.978L460.69 221.107C459.173 222.894 456.946 223.924 454.6 223.924H408.473C409.366 223.924 410.252 223.527 410.845 222.764L429.279 198.995Z",fill:n}),V("path",{d:"M408.473 223.924H408.314L408.318 223.92C408.369 223.922 408.421 223.924 408.473 223.924Z",fill:n}),V("path",{d:"M406.524 223.203C407.826 224.318 409.796 224.116 410.845 222.761L429.279 198.932L287.411 77.8866C285.964 76.6523 284.125 75.9742 282.223 75.9742H234.606L234.625 75.9907C235.429 75.9118 236.263 76.1557 236.915 76.7378L263.662 100.621L263.546 100.758L406.524 223.203Z",fill:t}),V("path",{d:"M236.914 76.7386C235.651 75.6097 233.707 75.7513 232.621 77.0513L194.557 123.104L175.644 146.821C175.076 147.535 174.25 147.917 173.409 147.947L173.407 147.95H219.923C222.271 147.95 224.499 146.915 226.017 145.122L263.645 100.649L236.914 76.7386Z",fill:n}),V("path",{d:"M175.648 146.816C174.589 148.145 172.637 148.329 171.348 147.221L4.09334 3.51697C2.68586 2.30767 3.54106 0 5.39671 0H47.5805C49.4864 0 51.3297 0.680433 52.7785 1.91877L194.557 123.104L175.648 146.816Z",fill:t})]})}}),ym=gm({arrowHeight:333,presetRatios:{1:[{x:.5,y:.4,anchor:"bottom-right"}],2:[{x:.42,y:.5,anchor:"bottom-right"},{x:.72,y:.6,anchor:"top"}],3:[{x:.3,y:.5,anchor:"bottom-right"},{x:.48,y:.7,anchor:"top-left"},{x:.8,y:.25,anchor:"bottom-right"}],4:[{x:.3,y:.5,anchor:"bottom-right"},{x:.35,y:.8,anchor:"top-left"},{x:.65,y:.27,anchor:"bottom-right"},{x:.8,y:.48,anchor:"top-left"}],5:[{x:.19,y:.6,anchor:"bottom-right"},{x:.38,y:.8,anchor:"top"},{x:.52,y:.38,anchor:"bottom-right"},{x:.7,y:.57,anchor:"top"},{x:.82,y:.2,anchor:"bottom-right"}],6:[{x:.16,y:.65,anchor:"bottom-right"},{x:.38,y:.8,anchor:"top"},{x:.48,y:.46,anchor:"bottom-right"},{x:.55,y:.57,anchor:"top-left"},{x:.8,y:.25,anchor:"bottom-right"},{x:.86,y:.35,anchor:"top-left"}]},Arrow:({colorPrimary:t="#17CA2C",colorShadow:e="#737373"})=>{const n=(0,wl.A)(t).darken(20).toHexString();return U(X,{width:700,height:333,children:[V("path",{d:"M19.0526 324L12.6762 329.482C11.2703 330.691 12.1234 333 13.976 333H56.1578C58.058 333 59.896 332.321 61.3413 331.085L201.854 210.901L194.249 201.693L54.0527 321.606C52.246 323.151 49.9486 324 47.5732 324H19.0526Z",fill:e}),V("path",{d:"M234.587 248L241.131 255.922C241.656 256.552 242.382 256.909 243.134 256.983L243.115 257H290.716C292.618 257 294.457 256.322 295.903 255.087L437.091 134.536L429.305 125.5L288.613 245.609C286.805 247.153 284.507 248 282.132 248H234.587Z",fill:e}),V("path",{d:"M461.123 162.429L475.642 179.918C476.237 180.635 477.092 181.001 477.951 181H524.22C526.121 181 527.959 180.321 529.404 179.085L670.786 58.1578L662.326 49.6809L522.115 169.606C520.309 171.151 518.011 172 515.636 172H469.369L461.123 162.429Z",fill:e}),V("path",{d:"M687.912 74.8875C690.374 75.9052 693.412 74.1668 693.412 71.1716V11H698.004C699.106 11 700 11.8954 700 13V82.1716C700 83.9534 697.85 84.8457 696.593 83.5858L687.912 74.8875Z",fill:e}),V("path",{d:"M689.419 0C690.522 0 691.415 0.895432 691.415 2V71.1716C691.415 72.9534 689.265 73.8457 688.008 72.5858L662.433 46.9598L520.819 168.085C519.374 169.321 517.536 170 515.636 170H469.367C470.084 169.999 470.804 169.742 471.379 169.219L498.003 144.961L497.969 144.922L639.634 24.115L618.975 3.41421C617.717 2.15428 618.608 0 620.386 0H689.419Z",fill:t}),V("path",{d:"M429.141 122.937L467.058 168.918C468.149 170.232 470.116 170.369 471.378 169.219L498.003 144.961L460.542 100.818C459.025 99.0305 456.798 98 454.453 98H408.341C409.234 98.0001 410.12 98.3968 410.712 99.1606L429.141 122.937Z",fill:n}),V("path",{d:"M408.341 98H408.183L408.186 98.004C408.237 98.0013 408.289 98 408.341 98Z",fill:n}),V("path",{d:"M406.393 98.721C407.695 97.606 409.664 97.8077 410.712 99.1633L429.141 123L287.318 244.087C285.872 245.322 284.033 246 282.132 246H234.53L234.55 245.983C235.353 246.062 236.187 245.818 236.839 245.236L263.577 221.345L263.461 221.208L406.393 98.721Z",fill:t}),V("path",{d:"M236.837 245.235C235.575 246.365 233.631 246.223 232.546 244.922L194.494 198.854L175.588 175.129C175.019 174.415 174.194 174.032 173.353 174.002L173.351 174H219.852C222.199 174 224.427 175.035 225.944 176.829L263.56 221.317L236.837 245.235Z",fill:n}),V("path",{d:"M175.593 175.135C174.533 173.805 172.581 173.622 171.291 174.73L4.09013 318.484C2.68329 319.693 3.53868 322 5.394 322H47.5627C49.4695 322 51.3136 321.319 52.7627 320.08L194.494 198.854L175.593 175.135Z",fill:t})]})}});Mg("list-zigzag-down",{component:mm,composites:["title","item"]}),Mg("list-zigzag-up",{component:ym,composites:["title","item"]});function vm(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})}Mg("relation-circle",{component:t=>{const{Title:e,Item:n,data:i,radius:r=150,startMode:o="top"}=t,{title:s,desc:a,items:l=[]}=i,c=e?V(e,{title:s,desc:a}):null,h=du(V(Au,{indexes:[0]})),u=du(V(n,{indexes:[0],data:i,datum:l[0],positionH:"center"})),d=[],f=[];if(0===l.length)return d.push(V(Au,{indexes:[0],x:-h.width/2,y:-h.height/2})),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,V(X,{children:V(Pu,{children:d})})]});const p=Math.max(u.width,u.height),g=Math.max(r,p),m=g+p/2,y=l.map(()=>(u.width+u.height)/2),v=y.reduce((t,e)=>t+e,0);let x;x="equal"===o?-Math.PI/2:-Math.PI/2+2*Math.PI/l.length/2;let b=x;l.forEach((t,e)=>{const r=y[e]/v*2*Math.PI,o=b+r/2;b+=r;const s=m+g*Math.cos(o)-u.width/2,a=m+g*Math.sin(o)-u.height/2;f.push(V(n,{indexes:[e],datum:t,data:i,x:s,y:a}));const l=g-Math.max(u.width,u.height)/2-20,c=m+l*Math.cos(o)-h.width/2,p=m+l*Math.sin(o)-h.height/2;d.push(V(zu,{indexes:[e],x:c,y:p}))});const w=g-Math.max(u.width,u.height)/2-20;if(l.length>0)for(let t=0;t<l.length;t++){const e=2*t*Math.PI/l.length-Math.PI/2,n=(t+1)%l.length*2*Math.PI/l.length-Math.PI/2;let i;if(t===l.length-1){i=e+(n+2*Math.PI-e)/2}else i=(e+n)/2;const r=m+w*Math.cos(i)-h.width/2,o=m+w*Math.sin(i)-h.height/2;d.push(V(Au,{indexes:[t+1],x:r,y:o}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,U(X,{children:[V(Vu,{children:f}),V(Pu,{children:d})]})]})},composites:["title","item"]}),"function"==typeof SuppressedError&&SuppressedError;var xm,bm,wm,Mm,km,Cm,Om,jm,Em,_m,Sm,$m,Am,zm,Pm,Lm,Im,Tm,Rm,Bm,Wm,Hm,Nm,Fm,Dm,Vm,Um,Ym,qm,Gm,Xm,Km,Zm,Qm,Jm,ty,ey,ny,iy,ry,oy,sy,ay,ly,cy,hy,uy,dy,fy,py,gy,my,yy,vy,xy,by,wy,My,ky,Cy,Oy,jy,Ey,_y,Sy,$y,Ay,zy,Py,Ly,Iy,Ty,Ry,By,Wy,Hy,Ny,Fy,Dy,Vy,Uy,Yy,qy,Gy,Xy,Ky,Zy,Qy,Jy,tv,ev,nv,iv,rv,ov,sv,av,lv,cv,hv,uv,dv,fv,pv,gv,mv,yv,vv,xv="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function bv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function wv(){if(Mm)return wm;return Mm=1,wm=function(t,e){return t===e||t!=t&&e!=e},wm}function Mv(){if(Cm)return km;Cm=1;var t=wv();return km=function(e,n){for(var i=e.length;i--;)if(t(e[i][0],n))return i;return-1},km}function kv(){if(Lm)return Pm;Lm=1;var t=bm?xm:(bm=1,xm=function(){this.__data__=[],this.size=0}),e=function(){if(jm)return Om;jm=1;var t=Mv(),e=Array.prototype.splice;return Om=function(n){var i=this.__data__,r=t(i,n);return!(r<0||(r==i.length-1?i.pop():e.call(i,r,1),--this.size,0))},Om}(),n=function(){if(_m)return Em;_m=1;var t=Mv();return Em=function(e){var n=this.__data__,i=t(n,e);return i<0?void 0:n[i][1]},Em}(),i=function(){if($m)return Sm;$m=1;var t=Mv();return Sm=function(e){return t(this.__data__,e)>-1}}(),r=function(){if(zm)return Am;zm=1;var t=Mv();return Am=function(e,n){var i=this.__data__,r=t(i,e);return r<0?(++this.size,i.push([e,n])):i[r][1]=n,this},Am}();function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=i,o.prototype.set=r,Pm=o}function Cv(){return Vm?Dm:(Vm=1,Dm="object"==typeof xv&&xv&&xv.Object===Object&&xv)}function Ov(){if(Ym)return Um;Ym=1;var t=Cv(),e="object"==typeof self&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return Um=n}function jv(){if(Gm)return qm;Gm=1;var t=Ov();return qm=t.Symbol}function Ev(){if(ty)return Jm;ty=1;var t=jv(),e=function(){if(Km)return Xm;Km=1;var t=jv(),e=Object.prototype,n=e.hasOwnProperty,i=e.toString,r=t?t.toStringTag:void 0;return Xm=function(t){var e=n.call(t,r),o=t[r];try{t[r]=void 0;var s=!0}catch(t){}var a=i.call(t);return s&&(e?t[r]=o:delete t[r]),a},Xm}(),n=function(){if(Qm)return Zm;Qm=1;var t=Object.prototype.toString;return Zm=function(e){return t.call(e)},Zm}(),i=t?t.toStringTag:void 0;return Jm=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":i&&i in Object(t)?e(t):n(t)},Jm}function _v(){if(ny)return ey;return ny=1,ey=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},ey}function Sv(){if(ry)return iy;ry=1;var t=Ev(),e=_v();return iy=function(n){if(!e(n))return!1;var i=t(n);return"[object Function]"==i||"[object GeneratorFunction]"==i||"[object AsyncFunction]"==i||"[object Proxy]"==i},iy}function $v(){if(ly)return ay;ly=1;var t=function(){if(sy)return oy;sy=1;var t=Ov();return oy=t["__core-js_shared__"]}(),e=function(){var e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();return ay=function(t){return!!e&&e in t}}function Av(){if(hy)return cy;hy=1;var t=Function.prototype.toString;return cy=function(e){if(null!=e){try{return t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}}function zv(){if(my)return gy;my=1;var t=function(){if(dy)return uy;dy=1;var t=Sv(),e=$v(),n=_v(),i=Av(),r=/^\[object .+?Constructor\]$/,o=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return uy=function(s){return!(!n(s)||e(s))&&(t(s)?o:r).test(i(s))},uy}(),e=(py||(py=1,fy=function(t,e){return null==t?void 0:t[e]}),fy);return gy=function(n,i){var r=e(n,i);return t(r)?r:void 0},gy}function Pv(){if(vy)return yy;vy=1;var t=zv()(Ov(),"Map");return yy=t}function Lv(){if(by)return xy;by=1;var t=zv()(Object,"create");return xy=t}function Iv(){if(zy)return Ay;zy=1;var t=function(){if(My)return wy;My=1;var t=Lv();return wy=function(){this.__data__=t?t(null):{},this.size=0}}(),e=Cy?ky:(Cy=1,ky=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),n=function(){if(jy)return Oy;jy=1;var t=Lv(),e=Object.prototype.hasOwnProperty;return Oy=function(n){var i=this.__data__;if(t){var r=i[n];return"__lodash_hash_undefined__"===r?void 0:r}return e.call(i,n)?i[n]:void 0},Oy}(),i=function(){if(_y)return Ey;_y=1;var t=Lv(),e=Object.prototype.hasOwnProperty;return Ey=function(n){var i=this.__data__;return t?void 0!==i[n]:e.call(i,n)},Ey}(),r=function(){if($y)return Sy;$y=1;var t=Lv();return Sy=function(e,n){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=t&&void 0===n?"__lodash_hash_undefined__":n,this},Sy}();function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=i,o.prototype.set=r,Ay=o}function Tv(){if(By)return Ry;By=1;var t=(Ty||(Ty=1,Iy=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}),Iy);return Ry=function(e,n){var i=e.__data__;return t(n)?i["string"==typeof n?"string":"hash"]:i.map},Ry}function Rv(){if(Gy)return qy;Gy=1;var t=function(){if(Ly)return Py;Ly=1;var t=Iv(),e=kv(),n=Pv();return Py=function(){this.size=0,this.__data__={hash:new t,map:new(n||e),string:new t}}}(),e=function(){if(Hy)return Wy;Hy=1;var t=Tv();return Wy=function(e){var n=t(this,e).delete(e);return this.size-=n?1:0,n}}(),n=function(){if(Fy)return Ny;Fy=1;var t=Tv();return Ny=function(e){return t(this,e).get(e)}}(),i=function(){if(Vy)return Dy;Vy=1;var t=Tv();return Dy=function(e){return t(this,e).has(e)}}(),r=function(){if(Yy)return Uy;Yy=1;var t=Tv();return Uy=function(e,n){var i=t(this,e),r=i.size;return i.set(e,n),this.size+=i.size==r?0:1,this},Uy}();function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=i,o.prototype.set=r,qy=o}function Bv(){if(Qy)return Zy;Qy=1;var t=kv(),e=function(){if(Tm)return Im;Tm=1;var t=kv();return Im=function(){this.__data__=new t,this.size=0}}(),n=(Bm||(Bm=1,Rm=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}),Rm),i=Hm?Wm:(Hm=1,Wm=function(t){return this.__data__.get(t)}),r=Fm?Nm:(Fm=1,Nm=function(t){return this.__data__.has(t)}),o=function(){if(Ky)return Xy;Ky=1;var t=kv(),e=Pv(),n=Rv();return Xy=function(i,r){var o=this.__data__;if(o instanceof t){var s=o.__data__;if(!e||s.length<199)return s.push([i,r]),this.size=++o.size,this;o=this.__data__=new n(s)}return o.set(i,r),this.size=o.size,this},Xy}();function s(e){var n=this.__data__=new t(e);this.size=n.size}return s.prototype.clear=e,s.prototype.delete=n,s.prototype.get=i,s.prototype.has=r,s.prototype.set=o,Zy=s}function Wv(){if(tv)return Jy;return tv=1,Jy=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t},Jy}function Hv(){if(nv)return ev;nv=1;var t=zv(),e=function(){try{var e=t(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();return ev=e}function Nv(){if(rv)return iv;rv=1;var t=Hv();return iv=function(e,n,i){"__proto__"==n&&t?t(e,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[n]=i},iv}function Fv(){if(sv)return ov;sv=1;var t=Nv(),e=wv(),n=Object.prototype.hasOwnProperty;return ov=function(i,r,o){var s=i[r];n.call(i,r)&&e(s,o)&&(void 0!==o||r in i)||t(i,r,o)},ov}function Dv(){if(lv)return av;lv=1;var t=Fv(),e=Nv();return av=function(n,i,r,o){var s=!r;r||(r={});for(var a=-1,l=i.length;++a<l;){var c=i[a],h=o?o(r[c],n[c],c,r,n):void 0;void 0===h&&(h=n[c]),s?e(r,c,h):t(r,c,h)}return r},av}function Vv(){if(dv)return uv;return dv=1,uv=function(t){return null!=t&&"object"==typeof t},uv}function Uv(){if(mv)return gv;mv=1;var t=function(){if(pv)return fv;pv=1;var t=Ev(),e=Vv();return fv=function(n){return e(n)&&"[object Arguments]"==t(n)},fv}(),e=Vv(),n=Object.prototype,i=n.hasOwnProperty,r=n.propertyIsEnumerable,o=t(function(){return arguments}())?t:function(t){return e(t)&&i.call(t,"callee")&&!r.call(t,"callee")};return gv=o}function Yv(){return vv?yv:(vv=1,yv=Array.isArray)}var qv,Gv,Xv,Kv,Zv,Qv,Jv,tx,ex,nx,ix,rx={exports:{}};function ox(){return Xv||(Xv=1,function(t,e){var n=Ov(),i=Gv?qv:(Gv=1,qv=function(){return!1}),r=e&&!e.nodeType&&e,o=r&&t&&!t.nodeType&&t,s=o&&o.exports===r?n.Buffer:void 0;t.exports=(s?s.isBuffer:void 0)||i}(rx,rx.exports)),rx.exports}function sx(){if(Zv)return Kv;Zv=1;var t=/^(?:0|[1-9]\d*)$/;return Kv=function(e,n){var i=typeof e;return!!(n=n??9007199254740991)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<n},Kv}function ax(){if(Jv)return Qv;Jv=1;return Qv=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Qv}function lx(){if(ix)return nx;return ix=1,nx=function(t){return function(e){return t(e)}},nx}var cx,hx,ux,dx,fx,px,gx,mx,yx,vx,xx,bx,wx,Mx,kx,Cx,Ox,jx,Ex,_x,Sx,$x,Ax,zx,Px,Lx,Ix,Tx={exports:{}};function Rx(){return cx||(cx=1,function(t,e){var n=Cv(),i=e&&!e.nodeType&&e,r=i&&t&&!t.nodeType&&t,o=r&&r.exports===i&&n.process,s=function(){try{var t=r&&r.require&&r.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=s}(Tx,Tx.exports)),Tx.exports}function Bx(){if(ux)return hx;ux=1;var t=function(){if(ex)return tx;ex=1;var t=Ev(),e=ax(),n=Vv(),i={};return i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,tx=function(r){return n(r)&&e(r.length)&&!!i[t(r)]},tx}(),e=lx(),n=Rx(),i=n&&n.isTypedArray,r=i?e(i):t;return hx=r}function Wx(){if(fx)return dx;fx=1;var t=(hv||(hv=1,cv=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}),cv),e=Uv(),n=Yv(),i=ox(),r=sx(),o=Bx(),s=Object.prototype.hasOwnProperty;return dx=function(a,l){var c=n(a),h=!c&&e(a),u=!c&&!h&&i(a),d=!c&&!h&&!u&&o(a),f=c||h||u||d,p=f?t(a.length,String):[],g=p.length;for(var m in a)!l&&!s.call(a,m)||f&&("length"==m||u&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||r(m,g))||p.push(m);return p},dx}function Hx(){if(gx)return px;gx=1;var t=Object.prototype;return px=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)},px}function Nx(){if(yx)return mx;return yx=1,mx=function(t,e){return function(n){return t(e(n))}},mx}function Fx(){if(wx)return bx;wx=1;var t=Hx(),e=function(){if(xx)return vx;xx=1;var t=Nx()(Object.keys,Object);return vx=t}(),n=Object.prototype.hasOwnProperty;return bx=function(i){if(!t(i))return e(i);var r=[];for(var o in Object(i))n.call(i,o)&&"constructor"!=o&&r.push(o);return r},bx}function Dx(){if(kx)return Mx;kx=1;var t=Sv(),e=ax();return Mx=function(n){return null!=n&&e(n.length)&&!t(n)},Mx}function Vx(){if(Ox)return Cx;Ox=1;var t=Wx(),e=Fx(),n=Dx();return Cx=function(i){return n(i)?t(i):e(i)},Cx}function Ux(){if(Ax)return $x;Ax=1;var t=_v(),e=Hx(),n=(Sx||(Sx=1,_x=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}),_x),i=Object.prototype.hasOwnProperty;return $x=function(r){if(!t(r))return n(r);var o=e(r),s=[];for(var a in r)("constructor"!=a||!o&&i.call(r,a))&&s.push(a);return s},$x}function Yx(){if(Px)return zx;Px=1;var t=Wx(),e=Ux(),n=Dx();return zx=function(i){return n(i)?t(i,!0):e(i)},zx}var qx,Gx,Xx,Kx,Zx,Qx,Jx,tb,eb,nb,ib,rb,ob,sb,ab,lb,cb,hb,ub,db,fb,pb,gb,mb,yb,vb,xb,bb,wb,Mb,kb,Cb,Ob,jb,Eb,_b,Sb,$b,Ab,zb,Pb,Lb,Ib,Tb,Rb,Bb,Wb,Hb,Nb,Fb,Db,Vb,Ub,Yb,qb,Gb,Xb,Kb,Zb,Qb,Jb,tw,ew,nw,iw,rw,ow,sw,aw,lw,cw,hw,uw,dw,fw,pw,gw,mw,yw,vw,xw,bw,ww,Mw,kw,Cw,Ow,jw,Ew,_w,Sw,$w,Aw,zw,Pw,Lw,Iw,Tw,Rw,Bw,Ww,Hw,Nw,Fw,Dw,Vw,Uw,Yw,qw,Gw,Xw,Kw,Zw,Qw,Jw,tM,eM,nM,iM,rM,oM,sM,aM,lM,cM,hM,uM,dM,fM,pM,gM,mM,yM,vM,xM,bM,wM,MM,kM,CM,OM,jM,EM,_M,SM,$M,AM,zM,PM,LM,IM,TM,RM,BM,WM,HM,NM,FM,DM,VM,UM,YM,qM,GM,XM,KM,ZM,QM,JM,tk,ek,nk,ik,rk,ok,sk,ak,lk,ck,hk,uk,dk,fk,pk,gk,mk,yk,vk,xk,bk,wk,Mk,kk,Ck,Ok,jk,Ek,_k,Sk,$k,Ak,zk,Pk,Lk,Ik,Tk,Rk,Bk,Wk,Hk,Nk,Fk,Dk,Vk,Uk,Yk,qk,Gk,Xk,Kk,Zk,Qk,Jk,tC,eC,nC,iC,rC,oC,sC,aC,lC,cC,hC,uC,dC,fC,pC,gC,mC,yC,vC,xC,bC,wC,MC,kC,CC,OC,jC,EC,_C,SC,$C,AC,zC,PC,LC,IC,TC,RC,BC,WC,HC,NC,FC,DC,VC,UC,YC,qC,GC,XC,KC,ZC,QC,JC,tO,eO,nO,iO,rO,oO,sO,aO,lO,cO,hO,uO,dO,fO,pO,gO,mO,yO,vO,xO,bO,wO,MO,kO,CO,OO,jO,EO,_O,SO,$O,AO,zO,PO,LO,IO,TO,RO,BO,WO,HO,NO,FO,DO,VO,UO,YO,qO,GO,XO,KO,ZO,QO,JO,tj,ej,nj,ij,rj,oj,sj,aj,lj,cj,hj,uj,dj,fj,pj,gj,mj,yj,vj,xj,bj,wj,Mj,kj,Cj,Oj,jj,Ej,_j,Sj,$j,Aj,zj,Pj,Lj,Ij,Tj,Rj,Bj,Wj,Hj,Nj,Fj,Dj,Vj,Uj,Yj,qj,Gj,Xj,Kj,Zj,Qj,Jj,tE,eE,nE,iE,rE,oE,sE,aE,lE,cE,hE,uE,dE,fE,pE,gE,mE,yE,vE,xE,bE,wE,ME,kE,CE,OE,jE,EE,_E,SE,$E,AE,zE,PE,LE,IE,TE,RE,BE,WE,HE,NE,FE,DE,VE,UE,YE={exports:{}};function qE(){return qx||(qx=1,function(t,e){var n=Ov(),i=e&&!e.nodeType&&e,r=i&&t&&!t.nodeType&&t,o=r&&r.exports===i?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,i=s?s(n):new t.constructor(n);return t.copy(i),i}}(YE,YE.exports)),YE.exports}function GE(){if(Xx)return Gx;return Xx=1,Gx=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e},Gx}function XE(){if(Zx)return Kx;return Zx=1,Kx=function(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[r++]=s)}return o},Kx}function KE(){if(Jx)return Qx;return Jx=1,Qx=function(){return[]}}function ZE(){if(eb)return tb;eb=1;var t=XE(),e=KE(),n=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,r=i?function(e){return null==e?[]:(e=Object(e),t(i(e),function(t){return n.call(e,t)}))}:e;return tb=r}function QE(){if(ob)return rb;return ob=1,rb=function(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t},rb}function JE(){if(ab)return sb;ab=1;var t=Nx()(Object.getPrototypeOf,Object);return sb=t}function t_(){if(cb)return lb;cb=1;var t=QE(),e=JE(),n=ZE(),i=KE(),r=Object.getOwnPropertySymbols?function(i){for(var r=[];i;)t(r,n(i)),i=e(i);return r}:i;return lb=r}function e_(){if(fb)return db;fb=1;var t=QE(),e=Yv();return db=function(n,i,r){var o=i(n);return e(n)?o:t(o,r(n))},db}function n_(){if(gb)return pb;gb=1;var t=e_(),e=ZE(),n=Vx();return pb=function(i){return t(i,n,e)},pb}function i_(){if(kb)return Mb;kb=1;var t=zv()(Ov(),"Set");return Mb=t}function r_(){if(Eb)return jb;Eb=1;var t=function(){if(xb)return vb;xb=1;var t=zv()(Ov(),"DataView");return vb=t}(),e=Pv(),n=function(){if(wb)return bb;wb=1;var t=zv()(Ov(),"Promise");return bb=t}(),i=i_(),r=function(){if(Ob)return Cb;Ob=1;var t=zv()(Ov(),"WeakMap");return Cb=t}(),o=Ev(),s=Av(),a="[object Map]",l="[object Promise]",c="[object Set]",h="[object WeakMap]",u="[object DataView]",d=s(t),f=s(e),p=s(n),g=s(i),m=s(r),y=o;return(t&&y(new t(new ArrayBuffer(1)))!=u||e&&y(new e)!=a||n&&y(n.resolve())!=l||i&&y(new i)!=c||r&&y(new r)!=h)&&(y=function(t){var e=o(t),n="[object Object]"==e?t.constructor:void 0,i=n?s(n):"";if(i)switch(i){case d:return u;case f:return a;case p:return l;case g:return c;case m:return h}return e}),jb=y}function o_(){if(Ab)return $b;Ab=1;var t=Ov();return $b=t.Uint8Array}function s_(){if(Pb)return zb;Pb=1;var t=o_();return zb=function(e){var n=new e.constructor(e.byteLength);return new t(n).set(new t(e)),n}}function a_(){if(Nb)return Hb;Nb=1;var t=s_();return Hb=function(e,n){var i=n?t(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}}function l_(){if(Db)return Fb;Db=1;var t=s_(),e=function(){if(Ib)return Lb;Ib=1;var t=s_();return Lb=function(e,n){var i=n?t(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}}(),n=function(){if(Rb)return Tb;Rb=1;var t=/\w*$/;return Tb=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}}(),i=function(){if(Wb)return Bb;Wb=1;var t=jv(),e=t?t.prototype:void 0,n=e?e.valueOf:void 0;return Bb=function(t){return n?Object(n.call(t)):{}}}(),r=a_();return Fb=function(o,s,a){var l=o.constructor;switch(s){case"[object ArrayBuffer]":return t(o);case"[object Boolean]":case"[object Date]":return new l(+o);case"[object DataView]":return e(o,a);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return r(o,a);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(o);case"[object RegExp]":return n(o);case"[object Symbol]":return i(o)}},Fb}function c_(){if(Ub)return Vb;Ub=1;var t=_v(),e=Object.create,n=function(){function n(){}return function(i){if(!t(i))return{};if(e)return e(i);n.prototype=i;var r=new n;return n.prototype=void 0,r}}();return Vb=n}function h_(){if(qb)return Yb;qb=1;var t=c_(),e=JE(),n=Hx();return Yb=function(i){return"function"!=typeof i.constructor||n(i)?{}:t(e(i))},Yb}function u_(){if(Zb)return Kb;Zb=1;var t=function(){if(Xb)return Gb;Xb=1;var t=r_(),e=Vv();return Gb=function(n){return e(n)&&"[object Map]"==t(n)},Gb}(),e=lx(),n=Rx(),i=n&&n.isMap,r=i?e(i):t;return Kb=r}function d_(){if(ew)return tw;ew=1;var t=function(){if(Jb)return Qb;Jb=1;var t=r_(),e=Vv();return Qb=function(n){return e(n)&&"[object Set]"==t(n)},Qb}(),e=lx(),n=Rx(),i=n&&n.isSet,r=i?e(i):t;return tw=r}function f_(){if(iw)return nw;iw=1;var t=Bv(),e=Wv(),n=Fv(),i=function(){if(Ex)return jx;Ex=1;var t=Dv(),e=Vx();return jx=function(n,i){return n&&t(i,e(i),n)},jx}(),r=function(){if(Ix)return Lx;Ix=1;var t=Dv(),e=Yx();return Lx=function(n,i){return n&&t(i,e(i),n)},Lx}(),o=qE(),s=GE(),a=function(){if(ib)return nb;ib=1;var t=Dv(),e=ZE();return nb=function(n,i){return t(n,e(n),i)},nb}(),l=function(){if(ub)return hb;ub=1;var t=Dv(),e=t_();return hb=function(n,i){return t(n,e(n),i)},hb}(),c=n_(),h=function(){if(yb)return mb;yb=1;var t=e_(),e=t_(),n=Yx();return mb=function(i){return t(i,n,e)},mb}(),u=r_(),d=function(){if(Sb)return _b;Sb=1;var t=Object.prototype.hasOwnProperty;return _b=function(e){var n=e.length,i=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(i.index=e.index,i.input=e.input),i},_b}(),f=l_(),p=h_(),g=Yv(),m=ox(),y=u_(),v=_v(),x=d_(),b=Vx(),w=Yx(),M="[object Arguments]",k="[object Function]",C="[object Object]",O={};return O[M]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[C]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[k]=O["[object WeakMap]"]=!1,nw=function j(E,_,S,$,A,z){var P,L=1&_,I=2&_,T=4&_;if(S&&(P=A?S(E,$,A,z):S(E)),void 0!==P)return P;if(!v(E))return E;var R=g(E);if(R){if(P=d(E),!L)return s(E,P)}else{var B=u(E),W=B==k||"[object GeneratorFunction]"==B;if(m(E))return o(E,L);if(B==C||B==M||W&&!A){if(P=I||W?{}:p(E),!L)return I?l(E,r(P,E)):a(E,i(P,E))}else{if(!O[B])return A?E:{};P=f(E,B,L)}}z||(z=new t);var H=z.get(E);if(H)return H;z.set(E,P),x(E)?E.forEach(function(t){P.add(j(t,_,S,t,E,z))}):y(E)&&E.forEach(function(t,e){P.set(e,j(t,_,S,e,E,z))});var N=R?void 0:(T?I?h:c:I?w:b)(E);return e(N||E,function(t,e){N&&(t=E[e=t]),n(P,e,j(t,_,S,e,E,z))}),P},nw}function p_(){if(ow)return rw;ow=1;var t=f_();return rw=function(e){return t(e,4)},rw}function g_(){if(aw)return sw;return aw=1,sw=function(t){return function(){return t}},sw}function m_(){if(uw)return hw;uw=1;var t=(cw||(cw=1,lw=function(t){return function(e,n,i){for(var r=-1,o=Object(e),s=i(e),a=s.length;a--;){var l=s[t?a:++r];if(!1===n(o[l],l,o))break}return e}}),lw),e=t();return hw=e}function y_(){if(fw)return dw;fw=1;var t=m_(),e=Vx();return dw=function(n,i){return n&&t(n,i,e)},dw}function v_(){if(yw)return mw;yw=1;var t=y_(),e=function(){if(gw)return pw;gw=1;var t=Dx();return pw=function(e,n){return function(i,r){if(null==i)return i;if(!t(i))return e(i,r);for(var o=i.length,s=n?o:-1,a=Object(i);(n?s--:++s<o)&&!1!==r(a[s],s,a););return i}}}(),n=e(t);return mw=n}function x_(){if(xw)return vw;return xw=1,vw=function(t){return t},vw}function b_(){if(ww)return bw;ww=1;var t=x_();return bw=function(e){return"function"==typeof e?e:t},bw}function w_(){if(kw)return Mw;kw=1;var t=Wv(),e=v_(),n=b_(),i=Yv();return Mw=function(r,o){return(i(r)?t:e)(r,n(o))}}function M_(){return Ow?Cw:(Ow=1,Cw=w_())}function k_(){if(Pw)return zw;Pw=1;var t=Rv(),e=(Sw||(Sw=1,_w=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}),_w),n=(Aw||(Aw=1,$w=function(t){return this.__data__.has(t)}),$w);function i(e){var n=-1,i=null==e?0:e.length;for(this.__data__=new t;++n<i;)this.add(e[n])}return i.prototype.add=i.prototype.push=e,i.prototype.has=n,zw=i}function C_(){if(Rw)return Tw;return Rw=1,Tw=function(t,e){return t.has(e)}}function O_(){if(Ww)return Bw;Ww=1;var t=k_(),e=(Iw||(Iw=1,Lw=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}),Lw),n=C_();return Bw=function(i,r,o,s,a,l){var c=1&o,h=i.length,u=r.length;if(h!=u&&!(c&&u>h))return!1;var d=l.get(i),f=l.get(r);if(d&&f)return d==r&&f==i;var p=-1,g=!0,m=2&o?new t:void 0;for(l.set(i,r),l.set(r,i);++p<h;){var y=i[p],v=r[p];if(s)var x=c?s(v,y,p,r,i,l):s(y,v,p,i,r,l);if(void 0!==x){if(x)continue;g=!1;break}if(m){if(!e(r,function(t,e){if(!n(m,e)&&(y===t||a(y,t,o,s,l)))return m.push(e)})){g=!1;break}}else if(y!==v&&!a(y,v,o,s,l)){g=!1;break}}return l.delete(i),l.delete(r),g},Bw}function j_(){if(Dw)return Fw;return Dw=1,Fw=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n},Fw}function E_(){if(Uw)return Vw;Uw=1;var t=jv(),e=o_(),n=wv(),i=O_(),r=(Nw||(Nw=1,Hw=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,i){n[++e]=[i,t]}),n}),Hw),o=j_(),s=t?t.prototype:void 0,a=s?s.valueOf:void 0;return Vw=function(t,s,l,c,h,u,d){switch(l){case"[object DataView]":if(t.byteLength!=s.byteLength||t.byteOffset!=s.byteOffset)return!1;t=t.buffer,s=s.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=s.byteLength||!u(new e(t),new e(s)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+t,+s);case"[object Error]":return t.name==s.name&&t.message==s.message;case"[object RegExp]":case"[object String]":return t==s+"";case"[object Map]":var f=r;case"[object Set]":if(f||(f=o),t.size!=s.size&&!(1&c))return!1;var p=d.get(t);if(p)return p==s;c|=2,d.set(t,s);var g=i(f(t),f(s),c,h,u,d);return d.delete(t),g;case"[object Symbol]":if(a)return a.call(t)==a.call(s)}return!1},Vw}function __(){if(Xw)return Gw;Xw=1;var t=Bv(),e=O_(),n=E_(),i=function(){if(qw)return Yw;qw=1;var t=n_(),e=Object.prototype.hasOwnProperty;return Yw=function(n,i,r,o,s,a){var l=1&r,c=t(n),h=c.length;if(h!=t(i).length&&!l)return!1;for(var u=h;u--;){var d=c[u];if(!(l?d in i:e.call(i,d)))return!1}var f=a.get(n),p=a.get(i);if(f&&p)return f==i&&p==n;var g=!0;a.set(n,i),a.set(i,n);for(var m=l;++u<h;){var y=n[d=c[u]],v=i[d];if(o)var x=l?o(v,y,d,i,n,a):o(y,v,d,n,i,a);if(!(void 0===x?y===v||s(y,v,r,o,a):x)){g=!1;break}m||(m="constructor"==d)}if(g&&!m){var b=n.constructor,w=i.constructor;b==w||!("constructor"in n)||!("constructor"in i)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(g=!1)}return a.delete(n),a.delete(i),g},Yw}(),r=r_(),o=Yv(),s=ox(),a=Bx(),l="[object Arguments]",c="[object Array]",h="[object Object]",u=Object.prototype.hasOwnProperty;return Gw=function(d,f,p,g,m,y){var v=o(d),x=o(f),b=v?c:r(d),w=x?c:r(f),M=(b=b==l?h:b)==h,k=(w=w==l?h:w)==h,C=b==w;if(C&&s(d)){if(!s(f))return!1;v=!0,M=!1}if(C&&!M)return y||(y=new t),v||a(d)?e(d,f,p,g,m,y):n(d,f,b,p,g,m,y);if(!(1&p)){var O=M&&u.call(d,"__wrapped__"),j=k&&u.call(f,"__wrapped__");if(O||j){var E=O?d.value():d,_=j?f.value():f;return y||(y=new t),m(E,_,p,g,y)}}return!!C&&(y||(y=new t),i(d,f,p,g,m,y))},Gw}function S_(){if(Zw)return Kw;Zw=1;var t=__(),e=Vv();return Kw=function n(i,r,o,s,a){return i===r||(null==i||null==r||!e(i)&&!e(r)?i!=i&&r!=r:t(i,r,o,s,n,a))},Kw}function $_(){if(eM)return tM;eM=1;var t=_v();return tM=function(e){return e==e&&!t(e)},tM}function A_(){if(oM)return rM;return oM=1,rM=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}},rM}function z_(){if(aM)return sM;aM=1;var t=function(){if(Jw)return Qw;Jw=1;var t=Bv(),e=S_();return Qw=function(n,i,r,o){var s=r.length,a=s,l=!o;if(null==n)return!a;for(n=Object(n);s--;){var c=r[s];if(l&&c[2]?c[1]!==n[c[0]]:!(c[0]in n))return!1}for(;++s<a;){var h=(c=r[s])[0],u=n[h],d=c[1];if(l&&c[2]){if(void 0===u&&!(h in n))return!1}else{var f=new t;if(o)var p=o(u,d,h,n,i,f);if(!(void 0===p?e(d,u,3,o,f):p))return!1}}return!0},Qw}(),e=function(){if(iM)return nM;iM=1;var t=$_(),e=Vx();return nM=function(n){for(var i=e(n),r=i.length;r--;){var o=i[r],s=n[o];i[r]=[o,s,t(s)]}return i},nM}(),n=A_();return sM=function(i){var r=e(i);return 1==r.length&&r[0][2]?n(r[0][0],r[0][1]):function(e){return e===i||t(e,i,r)}},sM}function P_(){if(cM)return lM;cM=1;var t=Ev(),e=Vv();return lM=function(n){return"symbol"==typeof n||e(n)&&"[object Symbol]"==t(n)},lM}function L_(){if(uM)return hM;uM=1;var t=Yv(),e=P_(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;return hM=function(r,o){if(t(r))return!1;var s=typeof r;return!("number"!=s&&"symbol"!=s&&"boolean"!=s&&null!=r&&!e(r))||(i.test(r)||!n.test(r)||null!=o&&r in Object(o))},hM}function I_(){if(gM)return pM;gM=1;var t=function(){if(fM)return dM;fM=1;var t=Rv();function e(n,i){if("function"!=typeof n||null!=i&&"function"!=typeof i)throw new TypeError("Expected a function");var r=function(){var t=arguments,e=i?i.apply(this,t):t[0],o=r.cache;if(o.has(e))return o.get(e);var s=n.apply(this,t);return r.cache=o.set(e,s)||o,s};return r.cache=new(e.Cache||t),r}return e.Cache=t,dM=e}();return pM=function(e){var n=t(e,function(t){return 500===i.size&&i.clear(),t}),i=n.cache;return n}}function T_(){if(xM)return vM;return xM=1,vM=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r},vM}function R_(){if(kM)return MM;kM=1;var t=function(){if(wM)return bM;wM=1;var t=jv(),e=T_(),n=Yv(),i=P_(),r=t?t.prototype:void 0,o=r?r.toString:void 0;return bM=function t(r){if("string"==typeof r)return r;if(n(r))return e(r,t)+"";if(i(r))return o?o.call(r):"";var s=r+"";return"0"==s&&1/r==-1/0?"-0":s},bM}();return MM=function(e){return null==e?"":t(e)},MM}function B_(){if(OM)return CM;OM=1;var t=Yv(),e=L_(),n=function(){if(yM)return mM;yM=1;var t=I_(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,i=t(function(t){var i=[];return 46===t.charCodeAt(0)&&i.push(""),t.replace(e,function(t,e,r,o){i.push(r?o.replace(n,"$1"):e||t)}),i});return mM=i}(),i=R_();return CM=function(r,o){return t(r)?r:e(r,o)?[r]:n(i(r))},CM}function W_(){if(EM)return jM;EM=1;var t=P_();return jM=function(e){if("string"==typeof e||t(e))return e;var n=e+"";return"0"==n&&1/e==-1/0?"-0":n},jM}function H_(){if(SM)return _M;SM=1;var t=B_(),e=W_();return _M=function(n,i){for(var r=0,o=(i=t(i,n)).length;null!=n&&r<o;)n=n[e(i[r++])];return r&&r==o?n:void 0},_M}function N_(){if(IM)return LM;IM=1;var t=B_(),e=Uv(),n=Yv(),i=sx(),r=ax(),o=W_();return LM=function(s,a,l){for(var c=-1,h=(a=t(a,s)).length,u=!1;++c<h;){var d=o(a[c]);if(!(u=null!=s&&l(s,d)))break;s=s[d]}return u||++c!=h?u:!!(h=null==s?0:s.length)&&r(h)&&i(d,h)&&(n(s)||e(s))},LM}function F_(){if(RM)return TM;RM=1;var t=(PM||(PM=1,zM=function(t,e){return null!=t&&e in Object(t)}),zM),e=N_();return TM=function(n,i){return null!=n&&e(n,i,t)},TM}function D_(){if(WM)return BM;WM=1;var t=S_(),e=function(){if(AM)return $M;AM=1;var t=H_();return $M=function(e,n,i){var r=null==e?void 0:t(e,n);return void 0===r?i:r},$M}(),n=F_(),i=L_(),r=$_(),o=A_(),s=W_();return BM=function(a,l){return i(a)&&r(l)?o(s(a),l):function(i){var r=e(i,a);return void 0===r&&r===l?n(i,a):t(l,r,3)}},BM}function V_(){if(NM)return HM;return NM=1,HM=function(t){return function(e){return null==e?void 0:e[t]}},HM}function U_(){if(UM)return VM;UM=1;var t=V_(),e=function(){if(DM)return FM;DM=1;var t=H_();return FM=function(e){return function(n){return t(n,e)}},FM}(),n=L_(),i=W_();return VM=function(r){return n(r)?t(i(r)):e(r)}}function Y_(){if(qM)return YM;qM=1;var t=z_(),e=D_(),n=x_(),i=Yv(),r=U_();return YM=function(o){return"function"==typeof o?o:null==o?n:"object"==typeof o?i(o)?e(o[0],o[1]):t(o):r(o)},YM}function q_(){if(XM)return GM;XM=1;var t=XE(),e=function(){if(Ew)return jw;Ew=1;var t=v_();return jw=function(e,n){var i=[];return t(e,function(t,e,r){n(t,e,r)&&i.push(t)}),i},jw}(),n=Y_(),i=Yv();return GM=function(r,o){return(i(r)?t:e)(r,n(o,3))}}function G_(){if(JM)return QM;JM=1;var t=function(){if(ZM)return KM;ZM=1;var t=Object.prototype.hasOwnProperty;return KM=function(e,n){return null!=e&&t.call(e,n)},KM}(),e=N_();return QM=function(n,i){return null!=n&&e(n,i,t)},QM}function X_(){if(ek)return tk;ek=1;var t=Fx(),e=r_(),n=Uv(),i=Yv(),r=Dx(),o=ox(),s=Hx(),a=Bx(),l=Object.prototype.hasOwnProperty;return tk=function(c){if(null==c)return!0;if(r(c)&&(i(c)||"string"==typeof c||"function"==typeof c.splice||o(c)||a(c)||n(c)))return!c.length;var h=e(c);if("[object Map]"==h||"[object Set]"==h)return!c.size;if(s(c))return!t(c).length;for(var u in c)if(l.call(c,u))return!1;return!0},tk}function K_(){if(ik)return nk;return ik=1,nk=function(t){return void 0===t},nk}function Z_(){if(ok)return rk;ok=1;var t=v_(),e=Dx();return rk=function(n,i){var r=-1,o=e(n)?Array(n.length):[];return t(n,function(t,e,n){o[++r]=i(t,e,n)}),o},rk}function Q_(){if(ak)return sk;ak=1;var t=T_(),e=Y_(),n=Z_(),i=Yv();return sk=function(r,o){return(i(r)?t:n)(r,e(o,3))}}function J_(){if(fk)return dk;fk=1;var t=(ck||(ck=1,lk=function(t,e,n,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n}),lk),e=v_(),n=Y_(),i=(uk||(uk=1,hk=function(t,e,n,i,r){return r(t,function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)}),n}),hk),r=Yv();return dk=function(o,s,a){var l=r(o)?t:i,c=arguments.length<3;return l(o,n(s,4),a,c,e)},dk}function tS(){if(kk)return Mk;kk=1;var t=function(){if(yk)return mk;yk=1;var t=V_()("length");return mk=t}(),e=function(){if(xk)return vk;xk=1;var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return vk=function(e){return t.test(e)},vk}(),n=function(){if(wk)return bk;wk=1;var t="\\ud800-\\udfff",e="["+t+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",r="[^"+t+"]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+n+"|"+i+")?",l="[\\ufe0e\\ufe0f]?",c=l+a+"(?:\\u200d(?:"+[r,o,s].join("|")+")"+l+a+")*",h="(?:"+[r+n+"?",n,o,s,e].join("|")+")",u=RegExp(i+"(?="+i+")|"+h+c,"g");return bk=function(t){for(var e=u.lastIndex=0;u.test(t);)++e;return e},bk}();return Mk=function(i){return e(i)?n(i):t(i)},Mk}function eS(){if(Ok)return Ck;Ok=1;var t=Fx(),e=r_(),n=Dx(),i=function(){if(gk)return pk;gk=1;var t=Ev(),e=Yv(),n=Vv();return pk=function(i){return"string"==typeof i||!e(i)&&n(i)&&"[object String]"==t(i)},pk}(),r=tS();return Ck=function(o){if(null==o)return 0;if(n(o))return i(o)?r(o):o.length;var s=e(o);return"[object Map]"==s||"[object Set]"==s?o.size:t(o).length}}function nS(){if(Ek)return jk;Ek=1;var t=Wv(),e=c_(),n=y_(),i=Y_(),r=JE(),o=Yv(),s=ox(),a=Sv(),l=_v(),c=Bx();return jk=function(h,u,d){var f=o(h),p=f||s(h)||c(h);if(u=i(u,4),null==d){var g=h&&h.constructor;d=p?f?new g:[]:l(h)&&a(g)?e(r(h)):{}}return(p?t:n)(h,function(t,e,n){return u(d,t,e,n)}),d},jk}function iS(){if(Ak)return $k;Ak=1;var t=QE(),e=function(){if(Sk)return _k;Sk=1;var t=jv(),e=Uv(),n=Yv(),i=t?t.isConcatSpreadable:void 0;return _k=function(t){return n(t)||e(t)||!!(i&&t&&t[i])},_k}();return $k=function n(i,r,o,s,a){var l=-1,c=i.length;for(o||(o=e),a||(a=[]);++l<c;){var h=i[l];r>0&&o(h)?r>1?n(h,r-1,o,s,a):t(a,h):s||(a[a.length]=h)}return a},$k}function rS(){if(Ik)return Lk;Ik=1;var t=Pk?zk:(Pk=1,zk=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}),e=Math.max;return Lk=function(n,i,r){return i=e(void 0===i?n.length-1:i,0),function(){for(var o=arguments,s=-1,a=e(o.length-i,0),l=Array(a);++s<a;)l[s]=o[i+s];s=-1;for(var c=Array(i+1);++s<i;)c[s]=o[s];return c[i]=r(l),t(n,this,c)}},Lk}function oS(){if(Nk)return Hk;Nk=1;var t=function(){if(Rk)return Tk;Rk=1;var t=g_(),e=Hv(),n=x_(),i=e?function(n,i){return e(n,"toString",{configurable:!0,enumerable:!1,value:t(i),writable:!0})}:n;return Tk=i}(),e=function(){if(Wk)return Bk;Wk=1;var t=Date.now;return Bk=function(e){var n=0,i=0;return function(){var r=t(),o=16-(r-i);if(i=r,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}},Bk}(),n=e(t);return Hk=n}function sS(){if(Dk)return Fk;Dk=1;var t=x_(),e=rS(),n=oS();return Fk=function(i,r){return n(e(i,r,t),i+"")},Fk}function aS(){if(Uk)return Vk;return Uk=1,Vk=function(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o<r;)if(e(t[o],o,t))return o;return-1},Vk}function lS(){if(Zk)return Kk;Zk=1;var t=aS(),e=(qk||(qk=1,Yk=function(t){return t!=t}),Yk),n=(Xk||(Xk=1,Gk=function(t,e,n){for(var i=n-1,r=t.length;++i<r;)if(t[i]===e)return i;return-1}),Gk);return Kk=function(i,r,o){return r==r?n(i,r,o):t(i,e,o)},Kk}function cS(){if(oC)return rC;oC=1;var t=i_(),e=iC?nC:(iC=1,nC=function(){}),n=j_(),i=t&&1/n(new t([,-0]))[1]==1/0?function(e){return new t(e)}:e;return rC=i}function hS(){if(aC)return sC;aC=1;var t=k_(),e=function(){if(Jk)return Qk;Jk=1;var t=lS();return Qk=function(e,n){return!(null==e||!e.length)&&t(e,n,0)>-1},Qk}(),n=(eC||(eC=1,tC=function(t,e,n){for(var i=-1,r=null==t?0:t.length;++i<r;)if(n(e,t[i]))return!0;return!1}),tC),i=C_(),r=cS(),o=j_();return sC=function(s,a,l){var c=-1,h=e,u=s.length,d=!0,f=[],p=f;if(l)d=!1,h=n;else if(u>=200){var g=a?null:r(s);if(g)return o(g);d=!1,h=i,p=new t}else p=a?[]:f;t:for(;++c<u;){var m=s[c],y=a?a(m):m;if(m=l||0!==m?m:0,d&&y==y){for(var v=p.length;v--;)if(p[v]===y)continue t;a&&p.push(y),f.push(m)}else h(p,y,l)||(p!==f&&p.push(y),f.push(m))}return f},sC}function uS(){if(cC)return lC;cC=1;var t=Dx(),e=Vv();return lC=function(n){return e(n)&&t(n)},lC}function dS(){if(uC)return hC;uC=1;var t=iS(),e=sS(),n=hS(),i=uS(),r=e(function(e){return n(t(e,1,i,!0))});return hC=r}function fS(){if(gC)return pC;gC=1;var t=function(){if(fC)return dC;fC=1;var t=T_();return dC=function(e,n){return t(n,function(t){return e[t]})},dC}(),e=Vx();return pC=function(n){return null==n?[]:t(n,e(n))},pC}function pS(){if(yC)return mC;var t;yC=1;try{t={clone:p_(),constant:g_(),each:M_(),filter:q_(),has:G_(),isArray:Yv(),isEmpty:X_(),isFunction:Sv(),isUndefined:K_(),keys:Vx(),map:Q_(),reduce:J_(),size:eS(),transform:nS(),union:dS(),values:fS()}}catch(t){}return t||(t=window._),mC=t}function gS(){if(xC)return vC;xC=1;var t=pS();vC=n;var e="\0";function n(n){this._isDirected=!t.has(n,"directed")||n.directed,this._isMultigraph=!!t.has(n,"multigraph")&&n.multigraph,this._isCompound=!!t.has(n,"compound")&&n.compound,this._label=void 0,this._defaultNodeLabelFn=t.constant(void 0),this._defaultEdgeLabelFn=t.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[e]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function i(t,e){t[e]?t[e]++:t[e]=1}function r(t,e){--t[e]||delete t[e]}function o(e,n,i,r){var o=""+n,s=""+i;if(!e&&o>s){var a=o;o=s,s=a}return o+""+s+""+(t.isUndefined(r)?"\0":r)}function s(t,e){return o(t,e.v,e.w,e.name)}return n.prototype._nodeCount=0,n.prototype._edgeCount=0,n.prototype.isDirected=function(){return this._isDirected},n.prototype.isMultigraph=function(){return this._isMultigraph},n.prototype.isCompound=function(){return this._isCompound},n.prototype.setGraph=function(t){return this._label=t,this},n.prototype.graph=function(){return this._label},n.prototype.setDefaultNodeLabel=function(e){return t.isFunction(e)||(e=t.constant(e)),this._defaultNodeLabelFn=e,this},n.prototype.nodeCount=function(){return this._nodeCount},n.prototype.nodes=function(){return t.keys(this._nodes)},n.prototype.sources=function(){var e=this;return t.filter(this.nodes(),function(n){return t.isEmpty(e._in[n])})},n.prototype.sinks=function(){var e=this;return t.filter(this.nodes(),function(n){return t.isEmpty(e._out[n])})},n.prototype.setNodes=function(e,n){var i=arguments,r=this;return t.each(e,function(t){i.length>1?r.setNode(t,n):r.setNode(t)}),this},n.prototype.setNode=function(n,i){return t.has(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=i),this):(this._nodes[n]=arguments.length>1?i:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=e,this._children[n]={},this._children[e][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)},n.prototype.node=function(t){return this._nodes[t]},n.prototype.hasNode=function(e){return t.has(this._nodes,e)},n.prototype.removeNode=function(e){var n=this;if(t.has(this._nodes,e)){var i=function(t){n.removeEdge(n._edgeObjs[t])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],t.each(this.children(e),function(t){n.setParent(t)}),delete this._children[e]),t.each(t.keys(this._in[e]),i),delete this._in[e],delete this._preds[e],t.each(t.keys(this._out[e]),i),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},n.prototype.setParent=function(n,i){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(t.isUndefined(i))i=e;else{for(var r=i+="";!t.isUndefined(r);r=this.parent(r))if(r===n)throw new Error("Setting "+i+" as parent of "+n+" would create a cycle");this.setNode(i)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=i,this._children[i][n]=!0,this},n.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},n.prototype.parent=function(t){if(this._isCompound){var n=this._parent[t];if(n!==e)return n}},n.prototype.children=function(n){if(t.isUndefined(n)&&(n=e),this._isCompound){var i=this._children[n];if(i)return t.keys(i)}else{if(n===e)return this.nodes();if(this.hasNode(n))return[]}},n.prototype.predecessors=function(e){var n=this._preds[e];if(n)return t.keys(n)},n.prototype.successors=function(e){var n=this._sucs[e];if(n)return t.keys(n)},n.prototype.neighbors=function(e){var n=this.predecessors(e);if(n)return t.union(n,this.successors(e))},n.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},n.prototype.filterNodes=function(e){var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph());var i=this;t.each(this._nodes,function(t,i){e(i)&&n.setNode(i,t)}),t.each(this._edgeObjs,function(t){n.hasNode(t.v)&&n.hasNode(t.w)&&n.setEdge(t,i.edge(t))});var r={};function o(t){var e=i.parent(t);return void 0===e||n.hasNode(e)?(r[t]=e,e):e in r?r[e]:o(e)}return this._isCompound&&t.each(n.nodes(),function(t){n.setParent(t,o(t))}),n},n.prototype.setDefaultEdgeLabel=function(e){return t.isFunction(e)||(e=t.constant(e)),this._defaultEdgeLabelFn=e,this},n.prototype.edgeCount=function(){return this._edgeCount},n.prototype.edges=function(){return t.values(this._edgeObjs)},n.prototype.setPath=function(e,n){var i=this,r=arguments;return t.reduce(e,function(t,e){return r.length>1?i.setEdge(t,e,n):i.setEdge(t,e),e}),this},n.prototype.setEdge=function(){var e,n,r,s,a=!1,l=arguments[0];"object"==typeof l&&null!==l&&"v"in l?(e=l.v,n=l.w,r=l.name,2===arguments.length&&(s=arguments[1],a=!0)):(e=l,n=arguments[1],r=arguments[3],arguments.length>2&&(s=arguments[2],a=!0)),e=""+e,n=""+n,t.isUndefined(r)||(r=""+r);var c=o(this._isDirected,e,n,r);if(t.has(this._edgeLabels,c))return a&&(this._edgeLabels[c]=s),this;if(!t.isUndefined(r)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(n),this._edgeLabels[c]=a?s:this._defaultEdgeLabelFn(e,n,r);var h=function(t,e,n,i){var r=""+e,o=""+n;if(!t&&r>o){var s=r;r=o,o=s}var a={v:r,w:o};i&&(a.name=i);return a}(this._isDirected,e,n,r);return e=h.v,n=h.w,Object.freeze(h),this._edgeObjs[c]=h,i(this._preds[n],e),i(this._sucs[e],n),this._in[n][c]=h,this._out[e][c]=h,this._edgeCount++,this},n.prototype.edge=function(t,e,n){var i=1===arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,t,e,n);return this._edgeLabels[i]},n.prototype.hasEdge=function(e,n,i){var r=1===arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,e,n,i);return t.has(this._edgeLabels,r)},n.prototype.removeEdge=function(t,e,n){var i=1===arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,t,e,n),a=this._edgeObjs[i];return a&&(t=a.v,e=a.w,delete this._edgeLabels[i],delete this._edgeObjs[i],r(this._preds[e],t),r(this._sucs[t],e),delete this._in[e][i],delete this._out[t][i],this._edgeCount--),this},n.prototype.inEdges=function(e,n){var i=this._in[e];if(i){var r=t.values(i);return n?t.filter(r,function(t){return t.v===n}):r}},n.prototype.outEdges=function(e,n){var i=this._out[e];if(i){var r=t.values(i);return n?t.filter(r,function(t){return t.w===n}):r}},n.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))},vC}function mS(){return kC?MC:(kC=1,MC={Graph:gS(),version:wC?bC:(wC=1,bC="2.1.8")})}function yS(){if(OC)return CC;OC=1;var t=pS(),e=gS();function n(e){return t.map(e.nodes(),function(n){var i=e.node(n),r=e.parent(n),o={v:n};return t.isUndefined(i)||(o.value=i),t.isUndefined(r)||(o.parent=r),o})}function i(e){return t.map(e.edges(),function(n){var i=e.edge(n),r={v:n.v,w:n.w};return t.isUndefined(n.name)||(r.name=n.name),t.isUndefined(i)||(r.value=i),r})}return CC={write:function(e){var r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:n(e),edges:i(e)};t.isUndefined(e.graph())||(r.value=t.clone(e.graph()));return r},read:function(n){var i=new e(n.options).setGraph(n.value);return t.each(n.nodes,function(t){i.setNode(t.v,t.value),t.parent&&i.setParent(t.v,t.parent)}),t.each(n.edges,function(t){i.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),i}},CC}function vS(){if(EC)return jC;EC=1;var t=pS();return jC=function(e){var n,i={},r=[];function o(r){t.has(i,r)||(i[r]=!0,n.push(r),t.each(e.successors(r),o),t.each(e.predecessors(r),o))}return t.each(e.nodes(),function(t){n=[],o(t),n.length&&r.push(n)}),r},jC}function xS(){if(SC)return _C;SC=1;var t=pS();function e(){this._arr=[],this._keyIndices={}}return _C=e,e.prototype.size=function(){return this._arr.length},e.prototype.keys=function(){return this._arr.map(function(t){return t.key})},e.prototype.has=function(e){return t.has(this._keyIndices,e)},e.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},e.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},e.prototype.add=function(e,n){var i=this._keyIndices;if(e=String(e),!t.has(i,e)){var r=this._arr,o=r.length;return i[e]=o,r.push({key:e,priority:n}),this._decrease(o),!0}return!1},e.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},e.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},e.prototype._heapify=function(t){var e=this._arr,n=2*t,i=n+1,r=t;n<e.length&&(r=e[n].priority<e[r].priority?n:r,i<e.length&&(r=e[i].priority<e[r].priority?i:r),r!==t&&(this._swap(t,r),this._heapify(r)))},e.prototype._decrease=function(t){for(var e,n=this._arr,i=n[t].priority;0!==t&&!(n[e=t>>1].priority<i);)this._swap(t,e),t=e},e.prototype._swap=function(t,e){var n=this._arr,i=this._keyIndices,r=n[t],o=n[e];n[t]=o,n[e]=r,i[o.key]=t,i[r.key]=e},_C}function bS(){if(AC)return $C;AC=1;var t=pS(),e=xS();$C=function(t,i,r,o){return function(t,n,i,r){var o,s,a={},l=new e,c=function(t){var e=t.v!==o?t.v:t.w,n=a[e],r=i(t),c=s.distance+r;if(r<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+r);c<n.distance&&(n.distance=c,n.predecessor=o,l.decrease(e,c))};t.nodes().forEach(function(t){var e=t===n?0:Number.POSITIVE_INFINITY;a[t]={distance:e},l.add(t,e)});for(;l.size()>0&&(o=l.removeMin(),(s=a[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(c);return a}(t,String(i),r||n,o||function(e){return t.outEdges(e)})};var n=t.constant(1);return $C}function wS(){if(PC)return zC;PC=1;var t=bS(),e=pS();return zC=function(n,i,r){return e.transform(n.nodes(),function(e,o){e[o]=t(n,o,i,r)},{})},zC}function MS(){if(IC)return LC;IC=1;var t=pS();return LC=function(e){var n=0,i=[],r={},o=[];function s(a){var l=r[a]={onStack:!0,lowlink:n,index:n++};if(i.push(a),e.successors(a).forEach(function(e){t.has(r,e)?r[e].onStack&&(l.lowlink=Math.min(l.lowlink,r[e].index)):(s(e),l.lowlink=Math.min(l.lowlink,r[e].lowlink))}),l.lowlink===l.index){var c,h=[];do{c=i.pop(),r[c].onStack=!1,h.push(c)}while(a!==c);o.push(h)}}return e.nodes().forEach(function(e){t.has(r,e)||s(e)}),o},LC}function kS(){if(RC)return TC;RC=1;var t=pS(),e=MS();return TC=function(n){return t.filter(e(n),function(t){return t.length>1||1===t.length&&n.hasEdge(t[0],t[0])})},TC}function CS(){if(WC)return BC;WC=1;var t=pS();BC=function(t,n,i){return function(t,e,n){var i={},r=t.nodes();return r.forEach(function(t){i[t]={},i[t][t]={distance:0},r.forEach(function(e){t!==e&&(i[t][e]={distance:Number.POSITIVE_INFINITY})}),n(t).forEach(function(n){var r=n.v===t?n.w:n.v,o=e(n);i[t][r]={distance:o,predecessor:t}})}),r.forEach(function(t){var e=i[t];r.forEach(function(n){var o=i[n];r.forEach(function(n){var i=e[n],r=o[n],s=o[t].distance+i.distance;s<r.distance&&(r.distance=s,r.predecessor=i.predecessor)})})}),i}(t,n||e,i||function(e){return t.outEdges(e)})};var e=t.constant(1);return BC}function OS(){if(NC)return HC;NC=1;var t=pS();function e(e){var i={},r={},o=[];if(t.each(e.sinks(),function s(a){if(t.has(r,a))throw new n;t.has(i,a)||(r[a]=!0,i[a]=!0,t.each(e.predecessors(a),s),delete r[a],o.push(a))}),t.size(i)!==e.nodeCount())throw new n;return o}function n(){}return HC=e,e.CycleException=n,n.prototype=new Error,HC}function jS(){if(DC)return FC;DC=1;var t=OS();return FC=function(e){try{t(e)}catch(e){if(e instanceof t.CycleException)return!1;throw e}return!0},FC}function ES(){if(UC)return VC;UC=1;var t=pS();function e(n,i,r,o,s,a){t.has(o,i)||(o[i]=!0,r||a.push(i),t.each(s(i),function(t){e(n,t,r,o,s,a)}),r&&a.push(i))}return VC=function(n,i,r){t.isArray(i)||(i=[i]);var o=(n.isDirected()?n.successors:n.neighbors).bind(n),s=[],a={};return t.each(i,function(t){if(!n.hasNode(t))throw new Error("Graph does not have node: "+t);e(n,t,"post"===r,a,o,s)}),s},VC}function _S(){if(qC)return YC;qC=1;var t=ES();return YC=function(e,n){return t(e,n,"post")},YC}function SS(){if(XC)return GC;XC=1;var t=ES();return GC=function(e,n){return t(e,n,"pre")},GC}function $S(){if(ZC)return KC;ZC=1;var t=pS(),e=gS(),n=xS();return KC=function(i,r){var o,s=new e,a={},l=new n;function c(t){var e=t.v===o?t.w:t.v,n=l.priority(e);if(void 0!==n){var i=r(t);i<n&&(a[e]=o,l.decrease(e,i))}}if(0===i.nodeCount())return s;t.each(i.nodes(),function(t){l.add(t,Number.POSITIVE_INFINITY),s.setNode(t)}),l.decrease(i.nodes()[0],0);var h=!1;for(;l.size()>0;){if(o=l.removeMin(),t.has(a,o))s.setEdge(o,a[o]);else{if(h)throw new Error("Input graph is not connected: "+i);h=!0}i.nodeEdges(o).forEach(c)}return s},KC}function AS(){if(eO)return tO;eO=1;var t=mS();return tO={Graph:t.Graph,json:yS(),alg:JC?QC:(JC=1,QC={components:vS(),dijkstra:bS(),dijkstraAll:wS(),findCycles:kS(),floydWarshall:CS(),isAcyclic:jS(),postorder:_S(),preorder:SS(),prim:$S(),tarjan:MS(),topsort:OS()}),version:t.version}}function zS(){if(iO)return nO;var t;iO=1;try{t=AS()}catch(t){}return t||(t=window.graphlib),nO=t}function PS(){if(oO)return rO;oO=1;var t=f_();return rO=function(e){return t(e,5)},rO}function LS(){if(aO)return sO;aO=1;var t=wv(),e=Dx(),n=sx(),i=_v();return sO=function(r,o,s){if(!i(s))return!1;var a=typeof o;return!!("number"==a?e(s)&&n(o,s.length):"string"==a&&o in s)&&t(s[o],r)},sO}function IS(){if(cO)return lO;cO=1;var t=sS(),e=wv(),n=LS(),i=Yx(),r=Object.prototype,o=r.hasOwnProperty,s=t(function(t,s){t=Object(t);var a=-1,l=s.length,c=l>2?s[2]:void 0;for(c&&n(s[0],s[1],c)&&(l=1);++a<l;)for(var h=s[a],u=i(h),d=-1,f=u.length;++d<f;){var p=u[d],g=t[p];(void 0===g||e(g,r[p])&&!o.call(t,p))&&(t[p]=h[p])}return t});return lO=s}function TS(){if(gO)return pO;gO=1;var t=function(){if(fO)return dO;fO=1;var t=/\s/;return dO=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n},dO}(),e=/^\s+/;return pO=function(n){return n?n.slice(0,t(n)+1).replace(e,""):n},pO}function RS(){if(xO)return vO;xO=1;var t=function(){if(yO)return mO;yO=1;var t=TS(),e=_v(),n=P_(),i=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;return mO=function(a){if("number"==typeof a)return a;if(n(a))return NaN;if(e(a)){var l="function"==typeof a.valueOf?a.valueOf():a;a=e(l)?l+"":l}if("string"!=typeof a)return 0===a?a:+a;a=t(a);var c=r.test(a);return c||o.test(a)?s(a.slice(2),c?2:8):i.test(a)?NaN:+a},mO}(),e=1/0;return vO=function(n){return n?(n=t(n))===e||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0},vO}function BS(){if(kO)return MO;kO=1;var t=aS(),e=Y_(),n=function(){if(wO)return bO;wO=1;var t=RS();return bO=function(e){var n=t(e),i=n%1;return n==n?i?n-i:n:0},bO}(),i=Math.max;return MO=function(r,o,s){var a=null==r?0:r.length;if(!a)return-1;var l=null==s?0:n(s);return l<0&&(l=i(a+l,0)),t(r,e(o,3),l)},MO}function WS(){if(OO)return CO;OO=1;var t=function(){if(uO)return hO;uO=1;var t=Y_(),e=Dx(),n=Vx();return hO=function(i){return function(r,o,s){var a=Object(r);if(!e(r)){var l=t(o,3);r=n(r),o=function(t){return l(a[t],t,a)}}var c=i(r,o,s);return c>-1?a[l?r[c]:c]:void 0}}}(),e=t(BS());return CO=e}function HS(){if(EO)return jO;EO=1;var t=iS();return jO=function(e){return(null==e?0:e.length)?t(e,1):[]},jO}function NS(){if(SO)return _O;SO=1;var t=m_(),e=b_(),n=Yx();return _O=function(i,r){return null==i?i:t(i,e(r),n)},_O}function FS(){if(AO)return $O;return AO=1,$O=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},$O}function DS(){if(PO)return zO;PO=1;var t=Nv(),e=y_(),n=Y_();return zO=function(i,r){var o={};return r=n(r,3),e(i,function(e,n,i){t(o,n,r(e,n,i))}),o},zO}function VS(){if(IO)return LO;IO=1;var t=P_();return LO=function(e,n,i){for(var r=-1,o=e.length;++r<o;){var s=e[r],a=n(s);if(null!=a&&(void 0===l?a==a&&!t(a):i(a,l)))var l=a,c=s}return c},LO}function US(){if(WO)return BO;WO=1;var t=VS(),e=(RO||(RO=1,TO=function(t,e){return t>e}),TO),n=x_();return BO=function(i){return i&&i.length?t(i,n,e):void 0},BO}function YS(){if(NO)return HO;NO=1;var t=Nv(),e=wv();return HO=function(n,i,r){(void 0!==r&&!e(n[i],r)||void 0===r&&!(i in n))&&t(n,i,r)},HO}function qS(){if(UO)return VO;return UO=1,VO=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},VO}function GS(){if(XO)return GO;XO=1;var t=YS(),e=qE(),n=a_(),i=GE(),r=h_(),o=Uv(),s=Yv(),a=uS(),l=ox(),c=Sv(),h=_v(),u=function(){if(DO)return FO;DO=1;var t=Ev(),e=JE(),n=Vv(),i=Function.prototype.toString,r=Object.prototype.hasOwnProperty,o=i.call(Object);return FO=function(s){if(!n(s)||"[object Object]"!=t(s))return!1;var a=e(s);if(null===a)return!0;var l=r.call(a,"constructor")&&a.constructor;return"function"==typeof l&&l instanceof l&&i.call(l)==o},FO}(),d=Bx(),f=qS(),p=function(){if(qO)return YO;qO=1;var t=Dv(),e=Yx();return YO=function(n){return t(n,e(n))},YO}();return GO=function(g,m,y,v,x,b,w){var M=f(g,y),k=f(m,y),C=w.get(k);if(C)t(g,y,C);else{var O=b?b(M,k,y+"",g,m,w):void 0,j=void 0===O;if(j){var E=s(k),_=!E&&l(k),S=!E&&!_&&d(k);O=k,E||_||S?s(M)?O=M:a(M)?O=i(M):_?(j=!1,O=e(k,!0)):S?(j=!1,O=n(k,!0)):O=[]:u(k)||o(k)?(O=M,o(M)?O=p(M):h(M)&&!c(M)||(O=r(k))):j=!1}j&&(w.set(k,O),x(O,k,v,b,w),w.delete(k)),t(g,y,O)}},GO}function XS(){if(ej)return tj;ej=1;var t=function(){if(ZO)return KO;ZO=1;var t=Bv(),e=YS(),n=m_(),i=GS(),r=_v(),o=Yx(),s=qS();return KO=function a(l,c,h,u,d){l!==c&&n(c,function(n,o){if(d||(d=new t),r(n))i(l,c,o,h,a,u,d);else{var f=u?u(s(l,o),n,o+"",l,c,d):void 0;void 0===f&&(f=n),e(l,o,f)}},o)},KO}(),e=function(){if(JO)return QO;JO=1;var t=sS(),e=LS();return QO=function(n){return t(function(t,i){var r=-1,o=i.length,s=o>1?i[o-1]:void 0,a=o>2?i[2]:void 0;for(s=n.length>3&&"function"==typeof s?(o--,s):void 0,a&&e(i[0],i[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++r<o;){var l=i[r];l&&n(t,l,r,s)}return t})},QO}(),n=e(function(e,n,i){t(e,n,i)});return tj=n}function KS(){if(ij)return nj;return ij=1,nj=function(t,e){return t<e},nj}function ZS(){if(oj)return rj;oj=1;var t=VS(),e=KS(),n=x_();return rj=function(i){return i&&i.length?t(i,n,e):void 0},rj}function QS(){if(aj)return sj;aj=1;var t=VS(),e=Y_(),n=KS();return sj=function(i,r){return i&&i.length?t(i,e(r,2),n):void 0},sj}function JS(){if(cj)return lj;cj=1;var t=Ov();return lj=function(){return t.Date.now()}}function t$(){if(fj)return dj;fj=1;var t=H_(),e=function(){if(uj)return hj;uj=1;var t=Fv(),e=B_(),n=sx(),i=_v(),r=W_();return hj=function(o,s,a,l){if(!i(o))return o;for(var c=-1,h=(s=e(s,o)).length,u=h-1,d=o;null!=d&&++c<h;){var f=r(s[c]),p=a;if("__proto__"===f||"constructor"===f||"prototype"===f)return o;if(c!=u){var g=d[f];void 0===(p=l?l(g,f,d):void 0)&&(p=i(g)?g:n(s[c+1])?[]:{})}t(d,f,p),d=d[f]}return o},hj}(),n=B_();return dj=function(i,r,o){for(var s=-1,a=r.length,l={};++s<a;){var c=r[s],h=t(i,c);o(h,c)&&e(l,n(c,i),h)}return l},dj}function e$(){if(xj)return vj;xj=1;var t=function(){if(gj)return pj;gj=1;var t=t$(),e=F_();return pj=function(n,i){return t(n,i,function(t,i){return e(n,i)})},pj}(),e=function(){if(yj)return mj;yj=1;var t=HS(),e=rS(),n=oS();return mj=function(i){return n(e(i,void 0,t),i+"")}}(),n=e(function(e,n){return null==e?{}:t(e,n)});return vj=n}function n$(){if(kj)return Mj;kj=1;var t=function(){if(wj)return bj;wj=1;var t=Math.ceil,e=Math.max;return bj=function(n,i,r,o){for(var s=-1,a=e(t((i-n)/(r||1)),0),l=Array(a);a--;)l[o?a:++s]=n,n+=r;return l},bj}(),e=LS(),n=RS();return Mj=function(i){return function(r,o,s){return s&&"number"!=typeof s&&e(r,o,s)&&(o=s=void 0),r=n(r),void 0===o?(o=r,r=0):o=n(o),s=void 0===s?r<o?1:-1:n(s),t(r,o,s,i)}},Mj}function i$(){if(Oj)return Cj;Oj=1;var t=n$()();return Cj=t}function r$(){if(Aj)return $j;Aj=1;var t=function(){if(Sj)return _j;Sj=1;var t=P_();return _j=function(e,n){if(e!==n){var i=void 0!==e,r=null===e,o=e==e,s=t(e),a=void 0!==n,l=null===n,c=n==n,h=t(n);if(!l&&!h&&!s&&e>n||s&&a&&c&&!l&&!h||r&&a&&c||!i&&c||!o)return 1;if(!r&&!s&&!h&&e<n||h&&i&&o&&!r&&!s||l&&i&&o||!a&&o||!c)return-1}return 0},_j}();return $j=function(e,n,i){for(var r=-1,o=e.criteria,s=n.criteria,a=o.length,l=i.length;++r<a;){var c=t(o[r],s[r]);if(c)return r>=l?c:c*("desc"==i[r]?-1:1)}return e.index-n.index},$j}function o$(){if(Pj)return zj;Pj=1;var t=T_(),e=H_(),n=Y_(),i=Z_(),r=(Ej||(Ej=1,jj=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}),jj),o=lx(),s=r$(),a=x_(),l=Yv();return zj=function(c,h,u){h=h.length?t(h,function(t){return l(t)?function(n){return e(n,1===t.length?t[0]:t)}:t}):[a];var d=-1;h=t(h,o(n));var f=i(c,function(e,n,i){return{criteria:t(h,function(t){return t(e)}),index:++d,value:e}});return r(f,function(t,e){return s(t,e,u)})},zj}function s$(){if(Ij)return Lj;Ij=1;var t=iS(),e=o$(),n=sS(),i=LS(),r=n(function(n,r){if(null==n)return[];var o=r.length;return o>1&&i(n,r[0],r[1])?r=[]:o>2&&i(r[0],r[1],r[2])&&(r=[r[0]]),e(n,t(r,1),[])});return Lj=r}function a$(){if(Rj)return Tj;Rj=1;var t=R_(),e=0;return Tj=function(n){var i=++e;return t(n)+i},Tj}function l$(){if(Nj)return Hj;Nj=1;var t=Fv(),e=Wj?Bj:(Wj=1,Bj=function(t,e,n){for(var i=-1,r=t.length,o=e.length,s={};++i<r;)n(s,t[i],i<o?e[i]:void 0);return s});return Hj=function(n,i){return e(n||[],i||[],t)}}function c$(){if(Dj)return Fj;var t;Dj=1;try{t={cloneDeep:PS(),constant:g_(),defaults:IS(),each:M_(),filter:q_(),find:WS(),flatten:HS(),forEach:w_(),forIn:NS(),has:G_(),isUndefined:K_(),last:FS(),map:Q_(),mapValues:DS(),max:US(),merge:XS(),min:ZS(),minBy:QS(),now:JS(),pick:e$(),range:i$(),reduce:J_(),sortBy:s$(),uniqueId:a$(),values:fS(),zipObject:l$()}}catch(t){}return t||(t=window._),Fj=t}function h$(){if(qj)return Yj;qj=1;var t=c$(),e=zS().Graph,n=function(){if(Uj)return Vj;function t(){var t={};t._next=t._prev=t,this._sentinel=t}function e(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function n(t,e){if("_next"!==t&&"_prev"!==t)return e}return Uj=1,Vj=t,t.prototype.dequeue=function(){var t=this._sentinel,n=t._prev;if(n!==t)return e(n),n},t.prototype.enqueue=function(t){var n=this._sentinel;t._prev&&t._next&&e(t),t._next=n._next,n._next._prev=t,n._next=t,t._prev=n},t.prototype.toString=function(){for(var t=[],e=this._sentinel,i=e._prev;i!==e;)t.push(JSON.stringify(i,n)),i=i._prev;return"["+t.join(", ")+"]"},Vj}();Yj=function(s,a){if(s.nodeCount()<=1)return[];var l=function(i,r){var s=new e,a=0,l=0;t.forEach(i.nodes(),function(t){s.setNode(t,{v:t,in:0,out:0})}),t.forEach(i.edges(),function(t){var e=s.edge(t.v,t.w)||0,n=r(t);s.setEdge(t.v,t.w,e+n),l=Math.max(l,s.node(t.v).out+=n),a=Math.max(a,s.node(t.w).in+=n)});var c=t.range(l+a+3).map(function(){return new n}),h=a+1;return t.forEach(s.nodes(),function(t){o(c,h,s.node(t))}),{graph:s,buckets:c,zeroIdx:h}}(s,a||i),c=function(t,e,n){var i,o=[],s=e[e.length-1],a=e[0];for(;t.nodeCount();){for(;i=a.dequeue();)r(t,e,n,i);for(;i=s.dequeue();)r(t,e,n,i);if(t.nodeCount())for(var l=e.length-2;l>0;--l)if(i=e[l].dequeue()){o=o.concat(r(t,e,n,i,!0));break}}return o}(l.graph,l.buckets,l.zeroIdx);return t.flatten(t.map(c,function(t){return s.outEdges(t.v,t.w)}),!0)};var i=t.constant(1);function r(e,n,i,r,s){var a=s?[]:void 0;return t.forEach(e.inEdges(r.v),function(t){var r=e.edge(t),l=e.node(t.v);s&&a.push({v:t.v,w:t.w}),l.out-=r,o(n,i,l)}),t.forEach(e.outEdges(r.v),function(t){var r=e.edge(t),s=e.node(t.w);s.in-=r,o(n,i,s)}),e.removeNode(r.v),a}function o(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}return Yj}function u$(){if(Xj)return Gj;Xj=1;var t=c$(),e=h$();return Gj={run:function(n){var i="greedy"===n.graph().acyclicer?e(n,function(t){return function(e){return t.edge(e).weight}}(n)):function(e){var n=[],i={},r={};function o(s){t.has(r,s)||(r[s]=!0,i[s]=!0,t.forEach(e.outEdges(s),function(e){t.has(i,e.w)?n.push(e):o(e.w)}),delete i[s])}return t.forEach(e.nodes(),o),n}(n);t.forEach(i,function(e){var i=n.edge(e);n.removeEdge(e),i.forwardName=e.name,i.reversed=!0,n.setEdge(e.w,e.v,i,t.uniqueId("rev"))})},undo:function(e){t.forEach(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var i=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,i)}})}},Gj}function d$(){if(Zj)return Kj;Zj=1;var t=c$(),e=zS().Graph;function n(e,n,i,r){var o;do{o=t.uniqueId(r)}while(e.hasNode(o));return i.dummy=n,e.setNode(o,i),o}function i(e){return t.max(t.map(e.nodes(),function(n){var i=e.node(n).rank;if(!t.isUndefined(i))return i}))}return Kj={addDummyNode:n,simplify:function(n){var i=(new e).setGraph(n.graph());return t.forEach(n.nodes(),function(t){i.setNode(t,n.node(t))}),t.forEach(n.edges(),function(t){var e=i.edge(t.v,t.w)||{weight:0,minlen:1},r=n.edge(t);i.setEdge(t.v,t.w,{weight:e.weight+r.weight,minlen:Math.max(e.minlen,r.minlen)})}),i},asNonCompoundGraph:function(n){var i=new e({multigraph:n.isMultigraph()}).setGraph(n.graph());return t.forEach(n.nodes(),function(t){n.children(t).length||i.setNode(t,n.node(t))}),t.forEach(n.edges(),function(t){i.setEdge(t,n.edge(t))}),i},successorWeights:function(e){var n=t.map(e.nodes(),function(n){var i={};return t.forEach(e.outEdges(n),function(t){i[t.w]=(i[t.w]||0)+e.edge(t).weight}),i});return t.zipObject(e.nodes(),n)},predecessorWeights:function(e){var n=t.map(e.nodes(),function(n){var i={};return t.forEach(e.inEdges(n),function(t){i[t.v]=(i[t.v]||0)+e.edge(t).weight}),i});return t.zipObject(e.nodes(),n)},intersectRect:function(t,e){var n,i,r=t.x,o=t.y,s=e.x-r,a=e.y-o,l=t.width/2,c=t.height/2;if(!s&&!a)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(a)*l>Math.abs(s)*c?(a<0&&(c=-c),n=c*s/a,i=c):(s<0&&(l=-l),n=l,i=l*a/s);return{x:r+n,y:o+i}},buildLayerMatrix:function(e){var n=t.map(t.range(i(e)+1),function(){return[]});return t.forEach(e.nodes(),function(i){var r=e.node(i),o=r.rank;t.isUndefined(o)||(n[o][r.order]=i)}),n},normalizeRanks:function(e){var n=t.min(t.map(e.nodes(),function(t){return e.node(t).rank}));t.forEach(e.nodes(),function(i){var r=e.node(i);t.has(r,"rank")&&(r.rank-=n)})},removeEmptyRanks:function(e){var n=t.min(t.map(e.nodes(),function(t){return e.node(t).rank})),i=[];t.forEach(e.nodes(),function(t){var r=e.node(t).rank-n;i[r]||(i[r]=[]),i[r].push(t)});var r=0,o=e.graph().nodeRankFactor;t.forEach(i,function(n,i){t.isUndefined(n)&&i%o!==0?--r:r&&t.forEach(n,function(t){e.node(t).rank+=r})})},addBorderNode:function(t,e,i,r){var o={width:0,height:0};arguments.length>=4&&(o.rank=i,o.order=r);return n(t,"border",o,e)},maxRank:i,partition:function(e,n){var i={lhs:[],rhs:[]};return t.forEach(e,function(t){n(t)?i.lhs.push(t):i.rhs.push(t)}),i},time:function(e,n){var i=t.now();try{return n()}finally{console.log(e+" time: "+(t.now()-i)+"ms")}},notime:function(t,e){return e()}},Kj}function f$(){if(Jj)return Qj;Jj=1;var t=c$(),e=d$();return Qj={run:function(n){n.graph().dummyChains=[],t.forEach(n.edges(),function(t){!function(t,n){var i,r,o,s=n.v,a=t.node(s).rank,l=n.w,c=t.node(l).rank,h=n.name,u=t.edge(n),d=u.labelRank;if(c===a+1)return;for(t.removeEdge(n),o=0,++a;a<c;++o,++a)u.points=[],i=e.addDummyNode(t,"edge",r={width:0,height:0,edgeLabel:u,edgeObj:n,rank:a},"_d"),a===d&&(r.width=u.width,r.height=u.height,r.dummy="edge-label",r.labelpos=u.labelpos),t.setEdge(s,i,{weight:u.weight},h),0===o&&t.graph().dummyChains.push(i),s=i;t.setEdge(s,l,{weight:u.weight},h)}(n,t)})},undo:function(e){t.forEach(e.graph().dummyChains,function(t){var n,i=e.node(t),r=i.edgeLabel;for(e.setEdge(i.edgeObj,r);i.dummy;)n=e.successors(t)[0],e.removeNode(t),r.points.push({x:i.x,y:i.y}),"edge-label"===i.dummy&&(r.x=i.x,r.y=i.y,r.width=i.width,r.height=i.height),i=e.node(t=n)})}},Qj}function p$(){if(eE)return tE;eE=1;var t=c$();return tE={longestPath:function(e){var n={};t.forEach(e.sources(),function i(r){var o=e.node(r);if(t.has(n,r))return o.rank;n[r]=!0;var s=t.min(t.map(e.outEdges(r),function(t){return i(t.w)-e.edge(t).minlen}));return s!==Number.POSITIVE_INFINITY&&null!=s||(s=0),o.rank=s})},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}},tE}function g$(){if(iE)return nE;iE=1;var t=c$(),e=zS().Graph,n=p$().slack;function i(e,i){return t.forEach(e.nodes(),function r(o){t.forEach(i.nodeEdges(o),function(t){var s=t.v,a=o===s?t.w:s;e.hasNode(a)||n(i,t)||(e.setNode(a,{}),e.setEdge(o,a,{}),r(a))})}),e.nodeCount()}function r(e,i){return t.minBy(i.edges(),function(t){if(e.hasNode(t.v)!==e.hasNode(t.w))return n(i,t)})}function o(e,n,i){t.forEach(e.nodes(),function(t){n.node(t).rank+=i})}return nE=function(t){var s,a,l=new e({directed:!1}),c=t.nodes()[0],h=t.nodeCount();l.setNode(c,{});for(;i(l,t)<h;)s=r(l,t),a=l.hasNode(s.v)?n(t,s):-n(t,s),o(l,t,a);return l},nE}function m$(){if(oE)return rE;oE=1;var t=c$(),e=g$(),n=p$().slack,i=p$().longestPath,r=zS().alg.preorder,o=zS().alg.postorder,s=d$().simplify;function a(t){t=s(t),i(t);var n,r=e(t);for(h(r),l(r,t);n=d(r);)p(r,t,n,f(r,t,n))}function l(e,n){var i=o(e,e.nodes());i=i.slice(0,i.length-1),t.forEach(i,function(t){!function(t,e,n){var i=t.node(n);t.edge(n,i.parent).cutvalue=c(t,e,n)}(e,n,t)})}function c(e,n,i){var r=e.node(i).parent,o=!0,s=n.edge(i,r),a=0;return s||(o=!1,s=n.edge(r,i)),a=s.weight,t.forEach(n.nodeEdges(i),function(t){var s=t.v===i,l=s?t.w:t.v;if(l!==r){var c=s===o,h=n.edge(t).weight;if(a+=c?h:-h,function(t,e,n){return t.hasEdge(e,n)}(e,i,l)){var u=e.edge(i,l).cutvalue;a+=c?-u:u}}}),a}function h(t,e){arguments.length<2&&(e=t.nodes()[0]),u(t,{},1,e)}function u(e,n,i,r,o){var s=i,a=e.node(r);return n[r]=!0,t.forEach(e.neighbors(r),function(o){t.has(n,o)||(i=u(e,n,i,o,r))}),a.low=s,a.lim=i++,o?a.parent=o:delete a.parent,i}function d(e){return t.find(e.edges(),function(t){return e.edge(t).cutvalue<0})}function f(e,i,r){var o=r.v,s=r.w;i.hasEdge(o,s)||(o=r.w,s=r.v);var a=e.node(o),l=e.node(s),c=a,h=!1;a.lim>l.lim&&(c=l,h=!0);var u=t.filter(i.edges(),function(t){return h===g(e,e.node(t.v),c)&&h!==g(e,e.node(t.w),c)});return t.minBy(u,function(t){return n(i,t)})}function p(e,n,i,o){e.removeEdge(i.v,i.w),e.setEdge(o.v,o.w,{}),h(e),l(e,n),function(e,n){var i=t.find(e.nodes(),function(t){return!n.node(t).parent}),o=r(e,i);o=o.slice(1),t.forEach(o,function(t){var i=e.node(t).parent,r=n.edge(t,i),o=!1;r||(r=n.edge(i,t),o=!0),n.node(t).rank=n.node(i).rank+(o?r.minlen:-r.minlen)})}(e,n)}function g(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}return rE=a,a.initLowLimValues=h,a.initCutValues=l,a.calcCutValue=c,a.leaveEdge=d,a.enterEdge=f,a.exchangeEdges=p,rE}function y$(){if(aE)return sE;aE=1;var t=p$().longestPath,e=g$(),n=m$();sE=function(n){switch(n.graph().ranker){case"network-simplex":default:r(n);break;case"tight-tree":!function(n){t(n),e(n)}(n);break;case"longest-path":i(n)}};var i=t;function r(t){n(t)}return sE}function v$(){if(cE)return lE;cE=1;var t=c$();return lE=function(e){var n=function(e){var n={},i=0;function r(o){var s=i;t.forEach(e.children(o),r),n[o]={low:s,lim:i++}}return t.forEach(e.children(),r),n}(e);t.forEach(e.graph().dummyChains,function(t){for(var i=e.node(t),r=i.edgeObj,o=function(t,e,n,i){var r,o,s=[],a=[],l=Math.min(e[n].low,e[i].low),c=Math.max(e[n].lim,e[i].lim);r=n;do{r=t.parent(r),s.push(r)}while(r&&(e[r].low>l||c>e[r].lim));o=r,r=i;for(;(r=t.parent(r))!==o;)a.push(r);return{path:s.concat(a.reverse()),lca:o}}(e,n,r.v,r.w),s=o.path,a=o.lca,l=0,c=s[l],h=!0;t!==r.w;){if(i=e.node(t),h){for(;(c=s[l])!==a&&e.node(c).maxRank<i.rank;)l++;c===a&&(h=!1)}if(!h){for(;l<s.length-1&&e.node(c=s[l+1]).minRank<=i.rank;)l++;c=s[l]}e.setParent(t,c),t=e.successors(t)[0]}})},lE}function x$(){if(uE)return hE;uE=1;var t=c$(),e=d$();function n(i,r,o,s,a,l,c){var h=i.children(c);if(h.length){var u=e.addBorderNode(i,"_bt"),d=e.addBorderNode(i,"_bb"),f=i.node(c);i.setParent(u,c),f.borderTop=u,i.setParent(d,c),f.borderBottom=d,t.forEach(h,function(t){n(i,r,o,s,a,l,t);var e=i.node(t),h=e.borderTop?e.borderTop:t,f=e.borderBottom?e.borderBottom:t,p=e.borderTop?s:2*s,g=h!==f?1:a-l[c]+1;i.setEdge(u,h,{weight:p,minlen:g,nestingEdge:!0}),i.setEdge(f,d,{weight:p,minlen:g,nestingEdge:!0})}),i.parent(c)||i.setEdge(r,u,{weight:0,minlen:a+l[c]})}else c!==r&&i.setEdge(r,c,{weight:0,minlen:o})}return hE={run:function(i){var r=e.addDummyNode(i,"root",{},"_root"),o=function(e){var n={};function i(r,o){var s=e.children(r);s&&s.length&&t.forEach(s,function(t){i(t,o+1)}),n[r]=o}return t.forEach(e.children(),function(t){i(t,1)}),n}(i),s=t.max(t.values(o))-1,a=2*s+1;i.graph().nestingRoot=r,t.forEach(i.edges(),function(t){i.edge(t).minlen*=a});var l=function(e){return t.reduce(e.edges(),function(t,n){return t+e.edge(n).weight},0)}(i)+1;t.forEach(i.children(),function(t){n(i,r,a,l,s,o,t)}),i.graph().nodeRankFactor=a},cleanup:function(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,t.forEach(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}},hE}function b$(){if(gE)return pE;gE=1;var t=c$();function e(e){t.forEach(e.nodes(),function(t){n(e.node(t))}),t.forEach(e.edges(),function(t){n(e.edge(t))})}function n(t){var e=t.width;t.width=t.height,t.height=e}function i(t){t.y=-t.y}function r(t){var e=t.x;t.x=t.y,t.y=e}return pE={adjust:function(t){var n=t.graph().rankdir.toLowerCase();"lr"!==n&&"rl"!==n||e(t)},undo:function(n){var o=n.graph().rankdir.toLowerCase();"bt"!==o&&"rl"!==o||function(e){t.forEach(e.nodes(),function(t){i(e.node(t))}),t.forEach(e.edges(),function(n){var r=e.edge(n);t.forEach(r.points,i),t.has(r,"y")&&i(r)})}(n);"lr"!==o&&"rl"!==o||(!function(e){t.forEach(e.nodes(),function(t){r(e.node(t))}),t.forEach(e.edges(),function(n){var i=e.edge(n);t.forEach(i.points,r),t.has(i,"x")&&r(i)})}(n),e(n))}},pE}function w$(){if(kE)return ME;kE=1;var t=c$();return ME=function(e,n){var i={};return t.forEach(e,function(e,n){var r=i[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:n};t.isUndefined(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)}),t.forEach(n.edges(),function(e){var n=i[e.v],r=i[e.w];t.isUndefined(n)||t.isUndefined(r)||(r.indegree++,n.out.push(i[e.w]))}),function(e){var n=[];function i(e){return function(n){n.merged||(t.isUndefined(n.barycenter)||t.isUndefined(e.barycenter)||n.barycenter>=e.barycenter)&&function(t,e){var n=0,i=0;t.weight&&(n+=t.barycenter*t.weight,i+=t.weight);e.weight&&(n+=e.barycenter*e.weight,i+=e.weight);t.vs=e.vs.concat(t.vs),t.barycenter=n/i,t.weight=i,t.i=Math.min(e.i,t.i),e.merged=!0}(e,n)}}function r(t){return function(n){n.in.push(t),0===--n.indegree&&e.push(n)}}for(;e.length;){var o=e.pop();n.push(o),t.forEach(o.in.reverse(),i(o)),t.forEach(o.out,r(o))}return t.map(t.filter(n,function(t){return!t.merged}),function(e){return t.pick(e,["vs","i","barycenter","weight"])})}(t.filter(i,function(t){return!t.indegree}))},ME}function M$(){if(EE)return jE;EE=1;var t=c$(),e=function(){if(wE)return bE;wE=1;var t=c$();return bE=function(e,n){return t.map(n,function(n){var i=e.inEdges(n);if(i.length){var r=t.reduce(i,function(t,n){var i=e.edge(n),r=e.node(n.v);return{sum:t.sum+i.weight*r.order,weight:t.weight+i.weight}},{sum:0,weight:0});return{v:n,barycenter:r.sum/r.weight,weight:r.weight}}return{v:n}})},bE}(),n=w$(),i=function(){if(OE)return CE;OE=1;var t=c$(),e=d$();function n(e,n,i){for(var r;n.length&&(r=t.last(n)).i<=i;)n.pop(),e.push(r.vs),i++;return i}return CE=function(i,r){var o=e.partition(i,function(e){return t.has(e,"barycenter")}),s=o.lhs,a=t.sortBy(o.rhs,function(t){return-t.i}),l=[],c=0,h=0,u=0;s.sort(function(t){return function(e,n){return e.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:t?n.i-e.i:e.i-n.i}}(!!r)),u=n(l,a,u),t.forEach(s,function(t){u+=t.vs.length,l.push(t.vs),c+=t.barycenter*t.weight,h+=t.weight,u=n(l,a,u)});var d={vs:t.flatten(l,!0)};return h&&(d.barycenter=c/h,d.weight=h),d},CE}();return jE=function r(o,s,a,l){var c=o.children(s),h=o.node(s),u=h?h.borderLeft:void 0,d=h?h.borderRight:void 0,f={};u&&(c=t.filter(c,function(t){return t!==u&&t!==d}));var p=e(o,c);t.forEach(p,function(e){if(o.children(e.v).length){var n=r(o,e.v,a,l);f[e.v]=n,t.has(n,"barycenter")&&(s=n,t.isUndefined((i=e).barycenter)?(i.barycenter=s.barycenter,i.weight=s.weight):(i.barycenter=(i.barycenter*i.weight+s.barycenter*s.weight)/(i.weight+s.weight),i.weight+=s.weight))}var i,s});var g=n(p,a);!function(e,n){t.forEach(e,function(e){e.vs=t.flatten(e.vs.map(function(t){return n[t]?n[t].vs:t}),!0)})}(g,f);var m=i(g,l);if(u&&(m.vs=t.flatten([u,m.vs,d],!0),o.predecessors(u).length)){var y=o.node(o.predecessors(u)[0]),v=o.node(o.predecessors(d)[0]);t.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+y.order+v.order)/(m.weight+2),m.weight+=2}return m},jE}function k$(){if(SE)return _E;SE=1;var t=c$(),e=zS().Graph;return _E=function(n,i,r){var o=function(e){var n;for(;e.hasNode(n=t.uniqueId("_root")););return n}(n),s=new e({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(t){return n.node(t)});return t.forEach(n.nodes(),function(e){var a=n.node(e),l=n.parent(e);(a.rank===i||a.minRank<=i&&i<=a.maxRank)&&(s.setNode(e),s.setParent(e,l||o),t.forEach(n[r](e),function(i){var r=i.v===e?i.w:i.v,o=s.edge(r,e),a=t.isUndefined(o)?0:o.weight;s.setEdge(r,e,{weight:n.edge(i).weight+a})}),t.has(a,"minRank")&&s.setNode(e,{borderLeft:a.borderLeft[i],borderRight:a.borderRight[i]}))}),s},_E}function C$(){if(PE)return zE;PE=1;var t=c$(),e=function(){if(yE)return mE;yE=1;var t=c$();return mE=function(e){var n={},i=t.filter(e.nodes(),function(t){return!e.children(t).length}),r=t.max(t.map(i,function(t){return e.node(t).rank})),o=t.map(t.range(r+1),function(){return[]});function s(i){if(!t.has(n,i)){n[i]=!0;var r=e.node(i);o[r.rank].push(i),t.forEach(e.successors(i),s)}}var a=t.sortBy(i,function(t){return e.node(t).rank});return t.forEach(a,s),o},mE}(),n=function(){if(xE)return vE;xE=1;var t=c$();function e(e,n,i){for(var r=t.zipObject(i,t.map(i,function(t,e){return e})),o=t.flatten(t.map(n,function(n){return t.sortBy(t.map(e.outEdges(n),function(t){return{pos:r[t.w],weight:e.edge(t).weight}}),"pos")}),!0),s=1;s<i.length;)s<<=1;var a=2*s-1;s-=1;var l=t.map(new Array(a),function(){return 0}),c=0;return t.forEach(o.forEach(function(t){var e=t.pos+s;l[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=l[e+1]),l[e=e-1>>1]+=t.weight;c+=t.weight*n})),c}return vE=function(t,n){for(var i=0,r=1;r<n.length;++r)i+=e(t,n[r-1],n[r]);return i},vE}(),i=M$(),r=k$(),o=function(){if(AE)return $E;AE=1;var t=c$();return $E=function(e,n,i){var r,o={};t.forEach(i,function(t){for(var i,s,a=e.parent(t);a;){if((i=e.parent(a))?(s=o[i],o[i]=a):(s=r,r=a),s&&s!==a)return void n.setEdge(s,a);a=i}})},$E}(),s=zS().Graph,a=d$();function l(e,n,i){return t.map(n,function(t){return r(e,t,i)})}function c(e,n){var r=new s;t.forEach(e,function(e){var s=e.graph().root,a=i(e,s,r,n);t.forEach(a.vs,function(t,n){e.node(t).order=n}),o(e,r,a.vs)})}function h(e,n){t.forEach(n,function(n){t.forEach(n,function(t,n){e.node(t).order=n})})}return zE=function(i){var r=a.maxRank(i),o=l(i,t.range(1,r+1),"inEdges"),s=l(i,t.range(r-1,-1,-1),"outEdges"),u=e(i);h(i,u);for(var d,f=Number.POSITIVE_INFINITY,p=0,g=0;g<4;++p,++g){c(p%2?o:s,p%4>=2),u=a.buildLayerMatrix(i);var m=n(i,u);m<f&&(g=0,d=t.cloneDeep(u),f=m)}h(i,d)},zE}function O$(){if(IE)return LE;IE=1;var t=c$(),e=zS().Graph,n=d$();function i(e,n){var i={};return t.reduce(n,function(n,r){var s=0,a=0,l=n.length,c=t.last(r);return t.forEach(r,function(n,h){var u=function(e,n){if(e.node(n).dummy)return t.find(e.predecessors(n),function(t){return e.node(t).dummy})}(e,n),d=u?e.node(u).order:l;(u||n===c)&&(t.forEach(r.slice(a,h+1),function(n){t.forEach(e.predecessors(n),function(t){var r=e.node(t),a=r.order;!(a<s||d<a)||r.dummy&&e.node(n).dummy||o(i,t,n)})}),a=h+1,s=d)}),r}),i}function r(e,n){var i={};function r(n,r,s,a,l){var c;t.forEach(t.range(r,s),function(r){e.node(c=n[r]).dummy&&t.forEach(e.predecessors(c),function(t){var n=e.node(t);n.dummy&&(n.order<a||n.order>l)&&o(i,t,c)})})}return t.reduce(n,function(n,i){var o,s=-1,a=0;return t.forEach(i,function(t,l){if("border"===e.node(t).dummy){var c=e.predecessors(t);c.length&&(o=e.node(c[0]).order,r(i,a,l,s,o),a=l,s=o)}r(i,a,i.length,o,n.length)}),i}),i}function o(t,e,n){if(e>n){var i=e;e=n,n=i}var r=t[e];r||(t[e]=r={}),r[n]=!0}function s(e,n,i){if(n>i){var r=n;n=i,i=r}return t.has(e[n],i)}function a(e,n,i,r){var o={},a={},l={};return t.forEach(n,function(e){t.forEach(e,function(t,e){o[t]=t,a[t]=t,l[t]=e})}),t.forEach(n,function(e){var n=-1;t.forEach(e,function(e){var c=r(e);if(c.length){c=t.sortBy(c,function(t){return l[t]});for(var h=(c.length-1)/2,u=Math.floor(h),d=Math.ceil(h);u<=d;++u){var f=c[u];a[e]===e&&n<l[f]&&!s(i,e,f)&&(a[f]=e,a[e]=o[e]=o[f],n=l[f])}}})}),{root:o,align:a}}function l(n,i,r,o,s){var a={},l=function(n,i,r,o){var s=new e,a=n.graph(),l=function(e,n,i){return function(r,o,s){var a,l=r.node(o),c=r.node(s),h=0;if(h+=l.width/2,t.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":a=-l.width/2;break;case"r":a=l.width/2}if(a&&(h+=i?a:-a),a=0,h+=(l.dummy?n:e)/2,h+=(c.dummy?n:e)/2,h+=c.width/2,t.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":a=c.width/2;break;case"r":a=-c.width/2}return a&&(h+=i?a:-a),a=0,h}}(a.nodesep,a.edgesep,o);return t.forEach(i,function(e){var i;t.forEach(e,function(t){var e=r[t];if(s.setNode(e),i){var o=r[i],a=s.edge(o,e);s.setEdge(o,e,Math.max(l(n,t,i),a||0))}i=t})}),s}(n,i,r,s),c=s?"borderLeft":"borderRight";function h(t,e){for(var n=l.nodes(),i=n.pop(),r={};i;)r[i]?t(i):(r[i]=!0,n.push(i),n=n.concat(e(i))),i=n.pop()}return h(function(t){a[t]=l.inEdges(t).reduce(function(t,e){return Math.max(t,a[e.v]+l.edge(e))},0)},l.predecessors.bind(l)),h(function(t){var e=l.outEdges(t).reduce(function(t,e){return Math.min(t,a[e.w]-l.edge(e))},Number.POSITIVE_INFINITY),i=n.node(t);e!==Number.POSITIVE_INFINITY&&i.borderType!==c&&(a[t]=Math.max(a[t],e))},l.successors.bind(l)),t.forEach(o,function(t){a[t]=a[r[t]]}),a}function c(e,n){return t.minBy(t.values(n),function(n){var i=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;return t.forIn(n,function(t,n){var o=function(t,e){return t.node(e).width}(e,n)/2;i=Math.max(t+o,i),r=Math.min(t-o,r)}),i-r})}function h(e,n){var i=t.values(n),r=t.min(i),o=t.max(i);t.forEach(["u","d"],function(i){t.forEach(["l","r"],function(s){var a,l=i+s,c=e[l];if(c!==n){var h=t.values(c);(a="l"===s?r-t.min(h):o-t.max(h))&&(e[l]=t.mapValues(c,function(t){return t+a}))}})})}function u(e,n){return t.mapValues(e.ul,function(i,r){if(n)return e[n.toLowerCase()][r];var o=t.sortBy(t.map(e,r));return(o[1]+o[2])/2})}return LE={positionX:function(e){var o,s=n.buildLayerMatrix(e),d=t.merge(i(e,s),r(e,s)),f={};t.forEach(["u","d"],function(n){o="u"===n?s:t.values(s).reverse(),t.forEach(["l","r"],function(i){"r"===i&&(o=t.map(o,function(e){return t.values(e).reverse()}));var r=("u"===n?e.predecessors:e.successors).bind(e),s=a(e,o,d,r),c=l(e,o,s.root,s.align,"r"===i);"r"===i&&(c=t.mapValues(c,function(t){return-t})),f[n+i]=c})});var p=c(e,f);return h(f,p),u(f,e.graph().align)},findType1Conflicts:i,findType2Conflicts:r,addConflict:o,hasConflict:s,verticalAlignment:a,horizontalCompaction:l,alignCoordinates:h,findSmallestWidthAlignment:c,balance:u},LE}function j$(){if(RE)return TE;RE=1;var t=c$(),e=d$(),n=O$().positionX;return TE=function(i){i=e.asNonCompoundGraph(i),function(n){var i=e.buildLayerMatrix(n),r=n.graph().ranksep,o=0;t.forEach(i,function(e){var i=t.max(t.map(e,function(t){return n.node(t).height}));t.forEach(e,function(t){n.node(t).y=o+i/2}),o+=i+r})}(i),t.forEach(n(i),function(t,e){i.node(e).x=t})},TE}function E$(){if(WE)return BE;WE=1;var t=c$(),e=u$(),n=f$(),i=y$(),r=d$().normalizeRanks,o=v$(),s=d$().removeEmptyRanks,a=x$(),l=function(){if(fE)return dE;fE=1;var t=c$(),e=d$();function n(t,n,i,r,o,s){var a=o[n][s-1],l=e.addDummyNode(t,"border",{width:0,height:0,rank:s,borderType:n},i);o[n][s]=l,t.setParent(l,r),a&&t.setEdge(a,l,{weight:1})}return dE=function(e){t.forEach(e.children(),function i(r){var o=e.children(r),s=e.node(r);if(o.length&&t.forEach(o,i),t.has(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(var a=s.minRank,l=s.maxRank+1;a<l;++a)n(e,"borderLeft","_bl",r,s,a),n(e,"borderRight","_br",r,s,a)}})},dE}(),c=b$(),h=C$(),u=j$(),d=d$(),f=zS().Graph;BE=function(C,O){var j=O&&O.debugTiming?d.time:d.notime;j("layout",function(){var O=j(" buildLayoutGraph",function(){return function(e){var n=new f({multigraph:!0,compound:!0}),i=k(e.graph());return n.setGraph(t.merge({},g,M(i,p),t.pick(i,m))),t.forEach(e.nodes(),function(i){var r=k(e.node(i));n.setNode(i,t.defaults(M(r,y),v)),n.setParent(i,e.parent(i))}),t.forEach(e.edges(),function(i){var r=k(e.edge(i));n.setEdge(i,t.merge({},b,M(r,x),t.pick(r,w)))}),n}(C)});j(" runLayout",function(){!function(f,p){p(" makeSpaceForEdgeLabels",function(){!function(e){var n=e.graph();n.ranksep/=2,t.forEach(e.edges(),function(t){var i=e.edge(t);i.minlen*=2,"c"!==i.labelpos.toLowerCase()&&("TB"===n.rankdir||"BT"===n.rankdir?i.width+=i.labeloffset:i.height+=i.labeloffset)})}(f)}),p(" removeSelfEdges",function(){!function(e){t.forEach(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}(f)}),p(" acyclic",function(){e.run(f)}),p(" nestingGraph.run",function(){a.run(f)}),p(" rank",function(){i(d.asNonCompoundGraph(f))}),p(" injectEdgeLabelProxies",function(){!function(e){t.forEach(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var i=e.node(t.v),r=e.node(t.w);d.addDummyNode(e,"edge-proxy",{rank:(r.rank-i.rank)/2+i.rank,e:t},"_ep")}})}(f)}),p(" removeEmptyRanks",function(){s(f)}),p(" nestingGraph.cleanup",function(){a.cleanup(f)}),p(" normalizeRanks",function(){r(f)}),p(" assignRankMinMax",function(){!function(e){var n=0;t.forEach(e.nodes(),function(i){var r=e.node(i);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,n=t.max(n,r.maxRank))}),e.graph().maxRank=n}(f)}),p(" removeEdgeLabelProxies",function(){!function(e){t.forEach(e.nodes(),function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}(f)}),p(" normalize.run",function(){n.run(f)}),p(" parentDummyChains",function(){o(f)}),p(" addBorderSegments",function(){l(f)}),p(" order",function(){h(f)}),p(" insertSelfEdges",function(){!function(e){var n=d.buildLayerMatrix(e);t.forEach(n,function(n){var i=0;t.forEach(n,function(n,r){var o=e.node(n);o.order=r+i,t.forEach(o.selfEdges,function(t){d.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:o.rank,order:r+ ++i,e:t.e,label:t.label},"_se")}),delete o.selfEdges})})}(f)}),p(" adjustCoordinateSystem",function(){c.adjust(f)}),p(" position",function(){u(f)}),p(" positionSelfEdges",function(){!function(e){t.forEach(e.nodes(),function(t){var n=e.node(t);if("selfedge"===n.dummy){var i=e.node(n.e.v),r=i.x+i.width/2,o=i.y,s=n.x-r,a=i.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:r+2*s/3,y:o-a},{x:r+5*s/6,y:o-a},{x:r+s,y:o},{x:r+5*s/6,y:o+a},{x:r+2*s/3,y:o+a}],n.label.x=n.x,n.label.y=n.y}})}(f)}),p(" removeBorderNodes",function(){!function(e){t.forEach(e.nodes(),function(n){if(e.children(n).length){var i=e.node(n),r=e.node(i.borderTop),o=e.node(i.borderBottom),s=e.node(t.last(i.borderLeft)),a=e.node(t.last(i.borderRight));i.width=Math.abs(a.x-s.x),i.height=Math.abs(o.y-r.y),i.x=s.x+i.width/2,i.y=r.y+i.height/2}}),t.forEach(e.nodes(),function(t){"border"===e.node(t).dummy&&e.removeNode(t)})}(f)}),p(" normalize.undo",function(){n.undo(f)}),p(" fixupEdgeLabelCoords",function(){!function(e){t.forEach(e.edges(),function(n){var i=e.edge(n);if(t.has(i,"x"))switch("l"!==i.labelpos&&"r"!==i.labelpos||(i.width-=i.labeloffset),i.labelpos){case"l":i.x-=i.width/2+i.labeloffset;break;case"r":i.x+=i.width/2+i.labeloffset}})}(f)}),p(" undoCoordinateSystem",function(){c.undo(f)}),p(" translateGraph",function(){!function(e){var n=Number.POSITIVE_INFINITY,i=0,r=Number.POSITIVE_INFINITY,o=0,s=e.graph(),a=s.marginx||0,l=s.marginy||0;function c(t){var e=t.x,s=t.y,a=t.width,l=t.height;n=Math.min(n,e-a/2),i=Math.max(i,e+a/2),r=Math.min(r,s-l/2),o=Math.max(o,s+l/2)}t.forEach(e.nodes(),function(t){c(e.node(t))}),t.forEach(e.edges(),function(n){var i=e.edge(n);t.has(i,"x")&&c(i)}),n-=a,r-=l,t.forEach(e.nodes(),function(t){var i=e.node(t);i.x-=n,i.y-=r}),t.forEach(e.edges(),function(i){var o=e.edge(i);t.forEach(o.points,function(t){t.x-=n,t.y-=r}),t.has(o,"x")&&(o.x-=n),t.has(o,"y")&&(o.y-=r)}),s.width=i-n+a,s.height=o-r+l}(f)}),p(" assignNodeIntersects",function(){!function(e){t.forEach(e.edges(),function(t){var n,i,r=e.edge(t),o=e.node(t.v),s=e.node(t.w);r.points?(n=r.points[0],i=r.points[r.points.length-1]):(r.points=[],n=s,i=o),r.points.unshift(d.intersectRect(o,n)),r.points.push(d.intersectRect(s,i))})}(f)}),p(" reversePoints",function(){!function(e){t.forEach(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}(f)}),p(" acyclic.undo",function(){e.undo(f)})}(O,j)}),j(" updateInputGraph",function(){!function(e,n){t.forEach(e.nodes(),function(t){var i=e.node(t),r=n.node(t);i&&(i.x=r.x,i.y=r.y,n.children(t).length&&(i.width=r.width,i.height=r.height))}),t.forEach(e.edges(),function(i){var r=e.edge(i),o=n.edge(i);r.points=o.points,t.has(o,"x")&&(r.x=o.x,r.y=o.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}(C,O)})})};var p=["nodesep","edgesep","ranksep","marginx","marginy"],g={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},m=["acyclicer","ranker","rankdir","align"],y=["width","height"],v={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],b={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},w=["labelpos"];function M(e,n){return t.mapValues(t.pick(e,n),Number)}function k(e){var n={};return t.forEach(e,function(t,e){n[e.toLowerCase()]=t}),n}return BE}function _$(){if(NE)return HE;NE=1;var t=c$(),e=d$(),n=zS().Graph;return HE={debugOrdering:function(i){var r=e.buildLayerMatrix(i),o=new n({compound:!0,multigraph:!0}).setGraph({});return t.forEach(i.nodes(),function(t){o.setNode(t,{label:t}),o.setParent(t,"layer"+i.node(t).rank)}),t.forEach(i.edges(),function(t){o.setEdge(t.v,t.w,{},t.name)}),t.forEach(r,function(e,n){o.setNode("layer"+n,{rank:"same"}),t.reduce(e,function(t,e){return o.setEdge(t,e,{style:"invis"}),e})}),o}},HE}var S$=UE?VE:(UE=1,VE={graphlib:zS(),layout:E$(),debug:_$(),util:{time:d$().time,notime:d$().notime},version:DE?FE:(DE=1,FE="0.8.5")}),$$=bv(S$);const A$={abs:Math.abs,ceil:Math.ceil,floor:Math.floor,max:Math.max,min:Math.min,round:Math.round,sqrt:Math.sqrt,pow:Math.pow};class z$ extends Error{constructor(t,e,n){super(t),this.position=e,this.token=n,this.name="ExpressionError"}}var P$;!function(t){t[t.STRING=0]="STRING",t[t.NUMBER=1]="NUMBER",t[t.BOOLEAN=2]="BOOLEAN",t[t.NULL=3]="NULL",t[t.IDENTIFIER=4]="IDENTIFIER",t[t.OPERATOR=5]="OPERATOR",t[t.FUNCTION=6]="FUNCTION",t[t.DOT=7]="DOT",t[t.BRACKET_LEFT=8]="BRACKET_LEFT",t[t.BRACKET_RIGHT=9]="BRACKET_RIGHT",t[t.PAREN_LEFT=10]="PAREN_LEFT",t[t.PAREN_RIGHT=11]="PAREN_RIGHT",t[t.COMMA=12]="COMMA",t[t.QUESTION=13]="QUESTION",t[t.COLON=14]="COLON",t[t.DOLLAR=15]="DOLLAR"}(P$||(P$={}));const L$=new Set([32,9,10,13]),I$=new Set([43,45,42,47,37,33,38,124,61,60,62]),T$=new Map([["true",P$.BOOLEAN],["false",P$.BOOLEAN],["null",P$.NULL]]),R$=new Map([["===",!0],["!==",!0],["<=",!0],[">=",!0],["&&",!0],["||",!0],["+",!0],["-",!0],["*",!0],["/",!0],["%",!0],["!",!0],["<",!0],[">",!0]]),B$=new Map([[46,P$.DOT],[91,P$.BRACKET_LEFT],[93,P$.BRACKET_RIGHT],[40,P$.PAREN_LEFT],[41,P$.PAREN_RIGHT],[44,P$.COMMA],[63,P$.QUESTION],[58,P$.COLON],[36,P$.DOLLAR]]),W$=new Map;for(const[t,e]of B$.entries())W$.set(t,{type:e,value:String.fromCharCode(t)});function H$(t){return t>=48&&t<=57}function N$(t){return t>=97&&t<=122||t>=65&&t<=90||95===t}function F$(t){return N$(t)||H$(t)}function D$(t){return I$.has(t)}var V$;!function(t){t[t.Program=0]="Program",t[t.Literal=1]="Literal",t[t.Identifier=2]="Identifier",t[t.MemberExpression=3]="MemberExpression",t[t.CallExpression=4]="CallExpression",t[t.BinaryExpression=5]="BinaryExpression",t[t.UnaryExpression=6]="UnaryExpression",t[t.ConditionalExpression=7]="ConditionalExpression"}(V$||(V$={}));const U$=new Map([["||",2],["&&",3],["===",4],["!==",4],[">",5],[">=",5],["<",5],["<=",5],["+",6],["-",6],["*",7],["/",7],["%",7],["!",8]]),Y$={type:V$.Literal,value:null},q$={type:V$.Literal,value:!0},G$={type:V$.Literal,value:!1};function X$(t){const e=(t=>{const e=t,n=e.length,i=new Array(Math.ceil(n/3));let r=0,o=0;function s(t){const i=o+1;o++;let r="",s=!1;for(;o<n;){const n=e.charCodeAt(o);if(n===t)return s||(r=e.substring(i,o)),o++,{type:P$.STRING,value:r};92===n?(s||(r=e.substring(i,o),s=!0),o++,r+=e[o]):s&&(r+=e[o]),o++}throw new z$(`Unterminated string starting with ${String.fromCharCode(t)}`,o,e.substring(Math.max(0,o-10),o))}function a(){const t=o;for(45===e.charCodeAt(o)&&o++;o<n&&H$(e.charCodeAt(o));)o++;if(o<n&&46===e.charCodeAt(o))for(o++;o<n&&H$(e.charCodeAt(o));)o++;const i=e.slice(t,o);return{type:P$.NUMBER,value:i}}function l(){o++;const t=o;if(o<n&&N$(e.charCodeAt(o)))for(o++;o<n&&F$(e.charCodeAt(o));)o++;const i=e.slice(t,o);return{type:P$.FUNCTION,value:i}}function c(){const t=o++;for(;o<n&&F$(e.charCodeAt(o));)o++;const i=e.slice(t,o),r=T$.get(i);return r?{type:r,value:i}:{type:P$.IDENTIFIER,value:i}}function h(){if(o+2<n){const t=e.substring(o,o+3);if(R$.has(t))return o+=3,{type:P$.OPERATOR,value:t}}if(o+1<n){const t=e.substring(o,o+2);if(R$.has(t))return o+=2,{type:P$.OPERATOR,value:t}}const t=e[o];if(R$.has(t))return o++,{type:P$.OPERATOR,value:t};throw new z$(`Unknown operator at position ${o}: ${e.substring(o,o+1)}`,o,e.substring(Math.max(0,o-10),o))}for(;o<n;){const t=e.charCodeAt(o);if(L$.has(t)){o++;continue}const u=W$.get(t);if(u)i[r++]=u,o++;else if(34!==t&&39!==t)if(H$(t)||45===t&&o+1<n&&H$(e.charCodeAt(o+1)))i[r++]=a();else if(64!==t)if(N$(t))i[r++]=c();else{if(!D$(t))throw new z$(`Unexpected character: ${e[o]}`,o,e.substring(Math.max(0,o-10),o));i[r++]=h()}else i[r++]=l();else i[r++]=s(t)}return r===i.length?i:i.slice(0,r)})(t),n=(t=>{let e=0;const n=t.length,i=()=>e>=n?null:t[e],r=()=>t[e++],o=t=>{const e=i();return null!==e&&e.type===t},s=t=>t.type===P$.OPERATOR?U$.get(t.value)||-1:t.type===P$.DOT||t.type===P$.BRACKET_LEFT?9:t.type===P$.QUESTION?1:-1,a=t=>{let n,s;if(r().type===P$.DOT){if(!o(P$.IDENTIFIER)){const t=i();throw new z$("Expected property name",e,t?t.value:"<end of input>")}const t=r();n={type:V$.Identifier,name:t.value},s=!1}else{if(n=c(0),!o(P$.BRACKET_RIGHT)){const t=i();throw new z$("Expected closing bracket",e,t?t.value:"<end of input>")}r(),s=!0}return{type:V$.MemberExpression,object:t,property:n,computed:s}},l=()=>{const t=i();if(!t)throw new z$("Unexpected end of input",e,"<end of input>");if(t.type===P$.OPERATOR&&("!"===t.value||"-"===t.value)){r();const e=l();return{type:V$.UnaryExpression,operator:t.value,argument:e,prefix:!0}}switch(t.type){case P$.NUMBER:return r(),{type:V$.Literal,value:Number(t.value)};case P$.STRING:return r(),{type:V$.Literal,value:t.value};case P$.BOOLEAN:return r(),"true"===t.value?q$:G$;case P$.NULL:return r(),Y$;case P$.IDENTIFIER:return r(),{type:V$.Identifier,name:t.value};case P$.FUNCTION:return(()=>{const t=r(),n=[];if(!o(P$.PAREN_LEFT)){const t=i();throw new z$("Expected opening parenthesis after function name",e,t?t.value:"<end of input>")}for(r();;){if(o(P$.PAREN_RIGHT)){r();break}if(!i()){const t=i();throw new z$("Expected closing parenthesis",e,t?t.value:"<end of input>")}if(n.length>0){if(!o(P$.COMMA)){const t=i();throw new z$("Expected comma between function arguments",e,t?t.value:"<end of input>")}r()}const t=c(0);n.push(t)}return{type:V$.CallExpression,callee:{type:V$.Identifier,name:t.value},arguments:n}})();case P$.PAREN_LEFT:{r();const t=c(0);if(!o(P$.PAREN_RIGHT)){const t=i();throw new z$("Expected closing parenthesis",e,t?t.value:"<end of input>")}return r(),t}default:throw new z$(`Unexpected token: ${t.type}`,e,t.value)}},c=(h=0)=>{let u=l();for(;e<n;){const n=t[e],l=s(n);if(l<=h)break;if(n.type!==P$.QUESTION)if(n.type!==P$.OPERATOR){if(n.type!==P$.DOT&&n.type!==P$.BRACKET_LEFT)break;u=a(u)}else{r();const t=c(l);u={type:V$.BinaryExpression,operator:n.value,left:u,right:t}}else{r();const t=c(0);if(!o(P$.COLON)){const t=i();throw new z$("Expected : in conditional expression",e,t?t.value:"<end of input>")}r();const n=c(0);u={type:V$.ConditionalExpression,test:u,consequent:t,alternate:n}}}return u},h=c();return{type:V$.Program,body:h}})(e),i=((t={},e={})=>({context:t,functions:e}))({},A$);return(t={})=>((t,e,n)=>{let i=e;n&&(i={...e,context:{...e.context,...n}});const r=t=>{switch(t.type){case V$.Literal:return(t=>t.value)(t);case V$.Identifier:return(t=>{if(!(t.name in i.context))throw new z$(`Undefined variable: ${t.name}`);return i.context[t.name]})(t);case V$.MemberExpression:return(t=>{const e=r(t.object);if(null==e)throw new z$("Cannot access property of null or undefined");return e[t.computed?r(t.property):t.property.name]})(t);case V$.CallExpression:return(t=>{const e=i.functions[t.callee.name];if(!e)throw new z$(`Undefined function: ${t.callee.name}`);return e(...t.arguments.map(t=>r(t)))})(t);case V$.BinaryExpression:return(t=>{if("&&"===t.operator){const e=r(t.left);return e?r(t.right):e}if("||"===t.operator)return r(t.left)||r(t.right);const e=r(t.left),n=r(t.right);switch(t.operator){case"+":return e+n;case"-":return e-n;case"*":return e*n;case"/":return e/n;case"%":return e%n;case"===":return e===n;case"!==":return e!==n;case">":return e>n;case">=":return e>=n;case"<":return e<n;case"<=":return e<=n;default:throw new z$(`Unknown operator: ${t.operator}`)}})(t);case V$.UnaryExpression:return(t=>{const e=r(t.argument);if(t.prefix)switch(t.operator){case"!":return!e;case"-":if("number"!=typeof e)throw new z$(`Cannot apply unary - to non-number: ${e}`);return-e;default:throw new z$(`Unknown operator: ${t.operator}`)}throw new z$(`Postfix operators are not supported: ${t.operator}`)})(t);case V$.ConditionalExpression:return(t=>{const e=r(t.test);return r(e?t.consequent:t.alternate)})(t);default:throw new z$(`Evaluation error: Unsupported node type: ${t.type}`)}};return r(t.body)})(n,i,t)}function K$(t,e){if("string"!=typeof t)return;const n=t.trim();if(n)try{return X$(n),function(t,e={}){return X$(t)(e)}(n,e)}catch(t){return}}function Z$(t){return"number"==typeof t}function Q$(t){if(!t)return[0,0,0];if(Z$(t))return[t,t,t];if(Array.isArray(t)&&0===t.length)return[0,0,0];const[e,n=e,i=e]=t;return[e,n,i]}function J$(t){return null==t}function tA(t){return"string"==typeof t}function eA(t){return"function"==typeof t}function nA(t,e){if("function"==typeof t)return t;if("string"==typeof t){const n=t;return(...t)=>{const i={};for(let n=0;n<e.length;n++)i[e[n]]=t[n];return K$(n,i)}}return()=>t}function iA(t,e,n="node"){if(J$(t))return()=>e;if(tA(t)){const i=nA(t,[n]);return t=>{const n=i(t);return Z$(n)?n:e}}return eA(t)?t:Z$(t)?()=>t:()=>e}function rA(t,e=10,n="node"){if(J$(t))return()=>e;if(tA(t)){const i=nA(t,[n]);return t=>{const n=i(t);return function(t){return!!Z$(t)||!!Array.isArray(t)&&t.every(t=>Z$(t))}(n)?n:e}}return eA(t)?t:Z$(t)||Array.isArray(t)?()=>t:()=>e}function oA(t){var e;return[t.x,t.y,null!==(e=t.z)&&void 0!==e?e:0]}class sA{constructor(t,e={}){this.edgeIdCounter=new Map,this.nodeMap=function(t,e){if(!t)throw new Error("Data.nodes is required");const n=new Map;for(const i of t){const t={_original:i};for(const e of aA){const n=i[e];J$(n)||(t[e]=n)}if(e){const n=e(i);for(const e in n){const i=n[e];J$(i)||(t[e]=i)}}if(J$(t.id))throw new Error("Node is missing id field");n.set(t.id,t)}return n}(t.nodes,e.node),this.edgeMap=function(t,e,n){const i=new Map;for(const r of t){const t={_original:r};for(const e of lA){const n=r[e];J$(n)||(t[e]=n)}if(e){const n=e(r);for(const e in n){const i=n[e];J$(i)||(t[e]=i)}}if(J$(t.source)||J$(t.target))throw new Error("Edge is missing source or target field");J$(t.id)&&(t.id=null==n?void 0:n(r)),i.set(t.id,t)}return i}(t.edges||[],e.edge,this.getEdgeId.bind(this))}data(){return{nodes:this.nodeMap,edges:this.edgeMap}}replace(t){this.nodeMap=t.nodes,this.edgeMap=t.edges,this.clearCache()}nodes(){return Array.from(this.nodeMap.values())}node(t){return this.nodeMap.get(t)}nodeAt(t){this.indexNodeCache||this.buildNodeIndexCache();const e=this.indexNodeCache.get(t);return e?this.nodeMap.get(e):void 0}nodeIndexOf(t){var e;return this.nodeIndexCache||this.buildNodeIndexCache(),null!==(e=this.nodeIndexCache.get(t))&&void 0!==e?e:-1}firstNode(){return this.nodeMap.values().next().value}forEachNode(t){let e=0;this.nodeMap.forEach(n=>t(n,e++))}originalNode(t){const e=this.nodeMap.get(t);return null==e?void 0:e._original}nodeCount(){return this.nodeMap.size}edges(){return Array.from(this.edgeMap.values())}edge(t){return this.edgeMap.get(t)}firstEdge(){return this.edgeMap.values().next().value}forEachEdge(t){let e=0;this.edgeMap.forEach(n=>t(n,e++))}originalEdge(t){const e=this.edgeMap.get(t);return null==e?void 0:e._original}edgeCount(){return this.edgeMap.size}getEdgeId(t){if(t.id)return t.id;const e=`${t.source}-${t.target}`,n=this.edgeIdCounter.get(e)||0,i=0===n?e:`${e}-${n}`;return this.edgeIdCounter.set(e,n+1),i}degree(t,e="both"){this.degreeCache||this.buildDegreeCache();const n=this.degreeCache.get(t);return n?n[e]:0}neighbors(t,e="both"){if(this.outAdjacencyCache&&this.inAdjacencyCache||this.buildAdjacencyCache(),"out"===e)return Array.from(this.outAdjacencyCache.get(t)||[]);if("in"===e)return Array.from(this.inAdjacencyCache.get(t)||[]);if(this.bothAdjacencyCache)return Array.from(this.bothAdjacencyCache.get(t)||[]);const n=this.inAdjacencyCache.get(t),i=this.outAdjacencyCache.get(t);if(!n&&!i)return[];if(!n)return Array.from(i);if(!i)return Array.from(n);const r=new Set;return n.forEach(t=>r.add(t)),i.forEach(t=>r.add(t)),Array.from(r)}successors(t){return this.neighbors(t,"out")}predecessors(t){return this.neighbors(t,"in")}setNodeOrder(t){const e=new Map;for(const n of t)e.set(n.id,n);this.nodeMap=e,this.nodeIndexCache=void 0,this.indexNodeCache=void 0}clearCache(){this.degreeCache=void 0,this.inAdjacencyCache=void 0,this.outAdjacencyCache=void 0,this.bothAdjacencyCache=void 0,this.nodeIndexCache=void 0,this.indexNodeCache=void 0}buildDegreeCache(){this.degreeCache=new Map;for(const t of this.edges()){const{source:e,target:n}=t;if(t.source===t.target)continue;this.degreeCache.has(e)||this.degreeCache.set(e,{in:0,out:0,both:0});const i=this.degreeCache.get(t.source);i&&(i.out++,i.both++),this.degreeCache.has(n)||this.degreeCache.set(n,{in:0,out:0,both:0});const r=this.degreeCache.get(t.target);r&&(r.in++,r.both++)}}buildAdjacencyCache(){this.inAdjacencyCache=new Map,this.outAdjacencyCache=new Map;for(const t of this.edges())this.nodeMap.has(t.source)&&this.nodeMap.has(t.target)&&(this.outAdjacencyCache.has(t.source)||this.outAdjacencyCache.set(t.source,new Set),this.outAdjacencyCache.get(t.source).add(t.target),this.inAdjacencyCache.has(t.target)||this.inAdjacencyCache.set(t.target,new Set),this.inAdjacencyCache.get(t.target).add(t.source))}buildNodeIndexCache(){this.nodeIndexCache=new Map,this.indexNodeCache=new Map;let t=0;this.nodeMap.forEach((e,n)=>{this.nodeIndexCache.set(n,t),this.indexNodeCache.set(t,n),t++})}destroy(){this.clearCache(),this.nodeMap.clear(),this.edgeMap.clear(),this.edgeIdCounter.clear()}}const aA=["id","x","y","z","vx","vy","vz","fx","fy","fz","parentId"],lA=["id","source","target","points"];class cA{constructor(t,e={}){this.graph=new sA(t,e)}export(){return this.graph.data()}replace(t){this.graph.replace(t)}forEachNode(t){this.graph.forEachNode(t)}forEachEdge(t){this.graph.forEachEdge((e,n)=>{e.sourceNode=this.graph.node(e.source),e.targetNode=this.graph.node(e.target),t(e,n)})}destroy(){this.graph.destroy()}}const hA=Symbol("Comlink.proxy"),uA=Symbol("Comlink.endpoint"),dA=Symbol("Comlink.releaseProxy"),fA=Symbol("Comlink.finalizer"),pA=Symbol("Comlink.thrown"),gA=t=>"object"==typeof t&&null!==t||"function"==typeof t,mA={canHandle:t=>gA(t)&&t[hA],serialize(t){const{port1:e,port2:n}=new MessageChannel;return xA(t,e),[n,[n]]},deserialize:t=>(t.start(),wA(t))},yA={canHandle:t=>gA(t)&&pA in t,serialize({value:t}){let e;return e=t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[e,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}},vA=new Map([["proxy",mA],["throw",yA]]);function xA(t,e=globalThis,n=["*"]){e.addEventListener("message",function i(r){if(!r||!r.data)return;if(!function(t,e){for(const n of t){if(e===n||"*"===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}return!1}(n,r.origin))return void console.warn(`Invalid origin '${r.origin}' for comlink proxy`);const{id:o,type:s,path:a}=Object.assign({path:[]},r.data),l=(r.data.argumentList||[]).map($A);let c;try{const e=a.slice(0,-1).reduce((t,e)=>t[e],t),n=a.reduce((t,e)=>t[e],t);switch(s){case"GET":c=n;break;case"SET":e[a.slice(-1)[0]]=$A(r.data.value),c=!0;break;case"APPLY":c=n.apply(e,l);break;case"CONSTRUCT":c=function(t){return Object.assign(t,{[hA]:!0})}(new n(...l));break;case"ENDPOINT":{const{port1:e,port2:n}=new MessageChannel;xA(t,n),c=function(t,e){return _A.set(t,e),t}(e,[e])}break;case"RELEASE":c=void 0;break;default:return}}catch(t){c={value:t,[pA]:0}}Promise.resolve(c).catch(t=>({value:t,[pA]:0})).then(n=>{const[r,a]=SA(n);e.postMessage(Object.assign(Object.assign({},r),{id:o}),a),"RELEASE"===s&&(e.removeEventListener("message",i),bA(e),fA in t&&"function"==typeof t[fA]&&t[fA]())}).catch(t=>{const[n,i]=SA({value:new TypeError("Unserializable return value"),[pA]:0});e.postMessage(Object.assign(Object.assign({},n),{id:o}),i)})}),e.start&&e.start()}function bA(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function wA(t,e){const n=new Map;return t.addEventListener("message",function(t){const{data:e}=t;if(!e||!e.id)return;const i=n.get(e.id);if(i)try{i(e)}finally{n.delete(e.id)}}),jA(t,n,[],e)}function MA(t){if(t)throw new Error("Proxy has been released and is not useable")}function kA(t){return AA(t,new Map,{type:"RELEASE"}).then(()=>{bA(t)})}const CA=new WeakMap,OA="FinalizationRegistry"in globalThis&&new FinalizationRegistry(t=>{const e=(CA.get(t)||0)-1;CA.set(t,e),0===e&&kA(t)});function jA(t,e,n=[],i=function(){}){let r=!1;const o=new Proxy(i,{get(i,s){if(MA(r),s===dA)return()=>{!function(t){OA&&OA.unregister(t)}(o),kA(t),e.clear(),r=!0};if("then"===s){if(0===n.length)return{then:()=>o};const i=AA(t,e,{type:"GET",path:n.map(t=>t.toString())}).then($A);return i.then.bind(i)}return jA(t,e,[...n,s])},set(i,o,s){MA(r);const[a,l]=SA(s);return AA(t,e,{type:"SET",path:[...n,o].map(t=>t.toString()),value:a},l).then($A)},apply(i,o,s){MA(r);const a=n[n.length-1];if(a===uA)return AA(t,e,{type:"ENDPOINT"}).then($A);if("bind"===a)return jA(t,e,n.slice(0,-1));const[l,c]=EA(s);return AA(t,e,{type:"APPLY",path:n.map(t=>t.toString()),argumentList:l},c).then($A)},construct(i,o){MA(r);const[s,a]=EA(o);return AA(t,e,{type:"CONSTRUCT",path:n.map(t=>t.toString()),argumentList:s},a).then($A)}});return function(t,e){const n=(CA.get(e)||0)+1;CA.set(e,n),OA&&OA.register(t,e,t)}(o,t),o}function EA(t){const e=t.map(SA);return[e.map(t=>t[0]),(n=e.map(t=>t[1]),Array.prototype.concat.apply([],n))];var n}const _A=new WeakMap;function SA(t){for(const[e,n]of vA)if(n.canHandle(t)){const[i,r]=n.serialize(t);return[{type:"HANDLER",name:e,value:i},r]}return[{type:"RAW",value:t},_A.get(t)||[]]}function $A(t){switch(t.type){case"HANDLER":return vA.get(t.name).deserialize(t.value);case"RAW":return t.value}}function AA(t,e,n,i){return new Promise(r=>{const o=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");e.set(o,r),t.start&&t.start(),t.postMessage(Object.assign({id:o},n),i)})}class zA{constructor(){this.worker=null,this.workerApi=null}execute(t,e,n){return vm(this,void 0,void 0,function*(){if(this.worker||(yield this.initWorker()),!this.workerApi)throw new Error("Worker API not initialized");return yield this.workerApi.execute(t,e,n)})}destroy(){this.workerApi&&this.workerApi.destroy(),this.worker&&(this.worker.terminate(),this.worker=null,this.workerApi=null)}initWorker(){return vm(this,void 0,void 0,function*(){const t=this.resolveWorkerPath(),e=t.includes("/lib/")||t.endsWith(".mjs");this.worker=new Worker(t,{type:e?"module":"classic"}),this.workerApi=wA(this.worker)})}resolveWorkerPath(){const t=(()=>{if("undefined"==typeof document)return null;const t=document.currentScript;if(null==t?void 0:t.src)return t.src;const e=document.getElementsByTagName("script");for(let t=e.length-1;t>=0;t--){const n=e[t].src;if(n&&(n.includes("index.js")||n.includes("index.min.js")))return n}return null})();if(t){if(t.includes("index.js")||t.includes("index.min.js")){const e=t.replace(/index(\.min)?\.(m?js)(\?.*)?$/,"worker.js");if(e!==t)return e}const e=t.replace(/\/runtime\/[^/]+\.(m?js)(\?.*)?$/,"/worker.js");if(e!==t)return e;const n=t.replace(/\/[^/]+\.(m?js)(\?.*)?$/,"/worker.js");if(n!==t)return n}return"./worker.js"}}class PA{constructor(t){this.supervisor=null,this.initialOptions=this.mergeOptions(this.getDefaultOptions(),t)}get options(){return this.runtimeOptions||this.initialOptions}mergeOptions(t,e){return Object.assign({},t,e||{})}execute(t,e){return vm(this,void 0,void 0,function*(){this.runtimeOptions=this.mergeOptions(this.initialOptions,e);const{node:n,edge:i,enableWorker:r}=this.runtimeOptions;this.context=new cA(t,{node:n,edge:i}),this.model=this.context.graph;r&&"undefined"!=typeof Worker?yield this.layoutInWorker(t,this.runtimeOptions):yield this.layout(this.runtimeOptions)})}layoutInWorker(t,e){var n;return vm(this,void 0,void 0,function*(){try{this.supervisor||(this.supervisor=new zA);const i=yield this.supervisor.execute(this.id,t,e);null===(n=this.context)||void 0===n||n.replace(i)}catch(t){console.error("Layout in worker failed, fallback to main thread layout.",t),yield this.layout(e)}})}forEachNode(t){this.context.forEachNode(t)}forEachEdge(t){this.context.forEachEdge(t)}destroy(){var t;null===(t=this.context)||void 0===t||t.destroy(),this.model=null,this.context=null,this.supervisor&&(this.supervisor.destroy(),this.supervisor=null)}}var LA={}.toString,IA=function(t,e){return LA.call(t)==="[object "+e+"]"};function TA(t,e){if(t)if(function(t){return Array.isArray(t)}(t))for(var n=0,i=t.length;n<i&&!1!==e(t[n],n);n++);else if(function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}(t))for(var r in t)if(t.hasOwnProperty(r)&&!1===e(t[r],r))break}var RA=Object.prototype.hasOwnProperty,BA=function(t,e){if(null===t||!function(t){if(!function(t){return"object"==typeof t&&null!==t}(t)||!IA(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))return{};var n={};return TA(e,function(e){RA.call(t,e)&&(n[e]=t[e])}),n};class WA extends PA{constructor(){super(...arguments),this.id="dagre",this.isCompoundGraph=null,this.config={graphAttributes:["rankdir","align","nodesep","edgesep","ranksep","marginx","marginy","acyclicer","ranker"],nodeAttributes:["width","height"],edgeAttributes:["minlen","weight","width","height","labelpos","labeloffset"]}}getDefaultOptions(){return{directed:!0,multigraph:!0,rankdir:"TB",align:void 0,nodesep:50,edgesep:10,ranksep:50,marginx:0,marginy:0,acyclicer:void 0,ranker:"network-simplex",nodeSize:[0,0],edgeMinLen:1,edgeWeight:1,edgeLabelSize:[0,0],edgeLabelPos:"r",edgeLabelOffset:10}}layout(){return vm(this,void 0,void 0,function*(){const t=new S$.graphlib.Graph({directed:!!this.options.directed,multigraph:!!this.options.multigraph,compound:this.isCompound()});t.setGraph(BA(this.options,this.config.graphAttributes)),t.setDefaultEdgeLabel(()=>({}));const e=rA(this.options.nodeSize,0);this.model.forEachNode(n=>{const i=n._original,[r,o]=Q$(e(i)),s={width:r,height:o};if(t.setNode(String(n.id),s),this.isCompound()){if(J$(n.parentId))return;t.setParent(String(n.id),String(n.parentId))}});const{edgeLabelSize:n,edgeLabelOffset:i,edgeLabelPos:r,edgeMinLen:o,edgeWeight:s}=this.options,a=rA(n,0,"edge"),l=iA(i,10,"edge"),c="string"==typeof r?()=>r:nA(r,["edge"]),h=iA(o,1,"edge"),u=iA(s,1,"edge");this.model.forEachEdge(e=>{const n=e._original,[i,r]=Q$(a(n)),o={width:i,height:r,labelpos:c(n),labeloffset:l(n),minlen:h(n),weight:u(n)};t.setEdge(String(e.source),String(e.target),o,String(e.id))}),$$.layout(t),this.model.forEachNode(e=>{const n=t.node(String(e.id));n&&(e.x=n.x,e.y=n.y,e.size=[n.width,n.height])}),this.model.forEachEdge(e=>{const n=t.edge(String(e.source),String(e.target),String(e.id));if(!n)return;const{width:i,height:r,weight:o,minlen:s,labelpos:a,labeloffset:l,points:c}=n;e.labelSize=[i,r],e.weight=o,e.minLen=s,e.labelPos=a,e.labelOffset=l,e.points=c.map(oA)})})}isCompound(){return null!==this.isCompoundGraph?this.isCompoundGraph:function(t){return IA(t,"Boolean")}(this.options.compound)?this.isCompoundGraph=this.options.compound:(this.isCompoundGraph=this.model.nodes().some(t=>!J$(t.parentId)),this.isCompoundGraph)}}const HA=50,NA=70,FA=10,DA=2,VA=30;Mg("relation-dagre-flow",{component:t=>{var e,n;const{Title:i,Item:r,data:o,rankdir:s="TB",nodesep:a=HA,ranksep:l=NA,edgesep:c=FA,edgeWidth:h=DA,showConnections:u=!0,edgeColorMode:d="gradient",edgeStyle:f="solid",edgeDashPattern:p="5,5",edgeCornerRadius:g=12,edgeRouting:m="orth",showArrow:y=!0,arrowType:v="triangle",padding:x=VA,edgeAnimation:b="none",edgeAnimationSpeed:w=1,options:M}=t,{title:k,desc:C,items:O=[],relations:j=[]}=o,E=i?V(i,{title:k,desc:C}):null;if(!r||0===O.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[E,V(X,{children:V(Au,{indexes:[0],x:0,y:0})})]});const _=new Map,S=new Map,$=new Map,A=new Map,z=new Set,P=new Map;let L=0;const I=O.map((t,e)=>{var n,i;const s=t,a=String(null!==(n=s.id)&&void 0!==n?n:e),l=[e];let c;const h=String(null!==(i=s.group)&&void 0!==i?i:"");if(h){let t=P.get(h);null==t&&(t=L,P.set(h,t),L+=1),c=hd(M,[t])}else c=hd(M,l);const u=c?ud({colorPrimary:c},M):void 0;c&&$.set(a,c);const d=du(V(r,{indexes:l,data:o,datum:s,positionH:"center",positionV:"middle",themeColors:u}));return S.set(a,d),_.set(a,{id:a,indexes:l,datum:s,themeColors:u}),A.set(e,a),z.add(a),{id:a,parentId:s.parentId}}),T=t=>{if(null==t)return null;const e=String(t);if(z.has(e))return e;const n=Number(t);if(!Number.isNaN(n)){const t=A.get(n);if(t)return t}return null},R=j.map((t,e)=>{const n=T(t.from),i=T(t.to);return n&&i?{id:t.id?String(t.id):`edge-${e}`,source:n,target:i,relation:t}:null}).filter(Boolean),B=((t,e)=>{var n,i;const r=new Map;t.forEach(t=>r.set(t,[]));for(const t of e){if(t.source===t.target)return!0;null===(n=r.get(t.source))||void 0===n||n.push({target:t.target,edgeId:t.id}),null===(i=r.get(t.target))||void 0===i||i.push({target:t.source,edgeId:t.id})}const o=new Set,s=(t,e)=>{o.add(t);const n=r.get(t)||[];for(const{target:t,edgeId:i}of n)if(i!==e){if(o.has(t))return!0;if(s(t,i))return!0}return!1};for(const e of t)if(!o.has(e)&&s(e,null))return!0;return!1})(Array.from(z),R),W=B?"dagre":m,H=new WA({rankdir:s,nodesep:a,ranksep:l,edgesep:c,controlPoints:!0,nodeSize:t=>{var e;const n=String(null!==(e=t.id)&&void 0!==e?e:""),i=S.get(n);return i?[i.width,i.height]:[0,0]}});H.execute({nodes:I,edges:R});const N=[];if(H.forEachNode(t=>{var e,n,i,r;const o=String(t.id),s=_.get(o);if(!s)return;const a=S.get(o),l=null!==(e=null==a?void 0:a.width)&&void 0!==e?e:0,c=null!==(n=null==a?void 0:a.height)&&void 0!==n?n:0,h=(null!==(i=t.x)&&void 0!==i?i:0)-l/2,u=(null!==(r=t.y)&&void 0!==r?r:0)-c/2;N.push(Object.assign(Object.assign({},s),{x:h,y:u,width:l,height:c,centerX:h+l/2,centerY:u+c/2}))}),0===N.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[E,V(X,{children:V(Au,{indexes:[0],x:0,y:0})})]});const F=Math.min(...N.map(t=>t.x)),D=Math.min(...N.map(t=>t.y)),Y=x-F,G=x-D,Z=new Map,Q=[];N.forEach(t=>{const e=t.x+Y,n=t.y+G;Q.push(V(r,{indexes:t.indexes,datum:t.datum,data:o,x:e,y:n,positionH:"LR"===s?"normal":"RL"===s?"flipped":"center",positionV:"TB"===s?"normal":"BT"===s?"flipped":"middle",themeColors:t.themeColors})),Z.set(t.id,Object.assign(Object.assign({},t),{x:e,y:n,centerX:e+t.width/2,centerY:n+t.height/2}))});const J=[],tt=[];if(u){const t=ld(M),i=ud(M.themeConfig,M),r=null!==(e=null==i?void 0:i.colorBg)&&void 0!==e?e:"#ffffff",o=null!==(n=null==i?void 0:i.colorText)&&void 0!==n?n:t,a=Math.max(10,4*h),l="TB"===s||"BT"===s,c="ant-line"===b,u=c?p:"",m=c?u:c||"dashed"!==f?"":p,x=c?u.split(",").reduce((t,e)=>t+parseFloat(e.trim()||"0"),0):0,k=c&&x>0?x/(10*w)+"s":"1s",C=g,O=(t,e)=>{const n=Z.get(t),i=Z.get(e);return n&&i?"TB"===s?{start:[n.centerX,n.y+n.height],end:[i.centerX,i.y]}:"BT"===s?{start:[n.centerX,n.y],end:[i.centerX,i.y+i.height]}:"LR"===s?{start:[n.x+n.width,n.centerY],end:[i.x,i.centerY]}:{start:[n.x,n.centerY],end:[i.x+i.width,i.centerY]}:null},j=(t,e)=>{const n=O(t,e);if(!n)return null;const{start:i,end:r}=n;if(l){const t=i[1]+(r[1]-i[1])/2;return{start:i,end:r,points:[i,[i[0],t],[r[0],t],r]}}const o=i[0]+(r[0]-i[0])/2;return{start:i,end:r,points:[i,[o,i[1]],[o,r[1]],r]}};H.forEachEdge(e=>{var n,i,s,l,u,f,p,g,b;const w="orth"===W,M=w?j(String(e.source),String(e.target)):null,O=w?[]:(E=e.points,Array.isArray(E)?E.map(t=>t&&Array.isArray(t)&&t.length>=2?[Number(t[0]),Number(t[1])]:null).filter(t=>!!t&&Number.isFinite(t[0])&&Number.isFinite(t[1])):[]);var E;const _=w?null!==(n=null==M?void 0:M.points)&&void 0!==n?n:[]:O.length?O:(()=>{const t=Z.get(String(e.source)),n=Z.get(String(e.target));return t&&n?[[t.centerX-Y,t.centerY-G],[n.centerX-Y,n.centerY-G]]:[]})();if(!_.length)return;const S=w?0:Y,A=w?0:G,z=w&&null!==(i=null==M?void 0:M.start)&&void 0!==i?i:_[0],P=w&&null!==(s=null==M?void 0:M.end)&&void 0!==s?s:_[_.length-1],L=null===(l=e._original)||void 0===l?void 0:l.relation,I=null!==(u=$.get(String(e.source)))&&void 0!==u?u:t,T=null!==(f=$.get(String(e.target)))&&void 0!==f?f:t,R=`edge-gradient-${String(I)}-${String(T)}`.replace(/[^a-zA-Z0-9_-]/g,""),B="gradient"===d?`url(#${R})`:t;let H="";if(H=C>0?((t,e,n,i)=>{if(t.length<2)return"";const r=(t,e,n)=>Math.min(n,Math.max(e,t)),o=([t,e])=>({x:t+n,y:e+i}),s=[],a=o(t[0]);if(s.push(`M ${a.x} ${a.y}`),2===t.length){const e=o(t[1]);return s.push(`L ${e.x} ${e.y}`),s.join(" ")}for(let n=1;n<t.length-1;n+=1){const i=t[n-1],a=t[n],l=t[n+1],c=a[0]-i[0],h=a[1]-i[1],u=l[0]-a[0],d=l[1]-a[1],f=Math.hypot(c,h),p=Math.hypot(u,d);if(0===f||0===p){const t=o(a);s.push(`L ${t.x} ${t.y}`);continue}const g=r(e,0,Math.min(f,p)/2);if(0===g){const t=o(a);s.push(`L ${t.x} ${t.y}`);continue}const m=u/p,y=d/p,v=o([a[0]-c/f*g,a[1]-h/f*g]),x=o([a[0]+m*g,a[1]+y*g]);s.push(`L ${v.x} ${v.y}`);const b=o(a);s.push(`Q ${b.x} ${b.y} ${x.x} ${x.y}`)}const l=o(t[t.length-1]);return s.push(`L ${l.x} ${l.y}`),s.join(" ")})(_,C,S,A):((t,e,n)=>t.map(([t,i],r)=>`${0===r?"M":"L"} ${t+e} ${i+n}`).join(" "))(_,S,A),!H)return;const N=V(K,{d:H,stroke:B,strokeWidth:h,strokeDasharray:m,fill:"none","data-element-type":"shape",children:c&&V("animate",{attributeName:"stroke-dashoffset",from:String(x),to:"0",dur:k,repeatCount:"indefinite"})});if(tt.push(N),"gradient"===d){J.push(U("linearGradient",{id:R,gradientUnits:"userSpaceOnUse",x1:z[0]+S,y1:z[1]+A,x2:P[0]+S,y2:P[1]+A,children:[V("stop",{offset:"0%",stopColor:I}),V("stop",{offset:"100%",stopColor:T})]}))}if(null==L?void 0:L.label){let t=null;const e=(t=>{if(0===t.length)return null;if(1===t.length)return t[0];let e=0;const n=[];for(let i=0;i<t.length-1;i+=1){const r=t[i],o=t[i+1],s=Math.hypot(o[0]-r[0],o[1]-r[1]);n.push({length:s,start:r,end:o}),e+=s}if(0===e)return t[0];let i=e/2;for(let t=0;t<n.length;t+=1){const e=n[t];if(i<=e.length||t===n.length-1){const t=0===e.length?0:Math.max(0,Math.min(1,i/e.length));return[e.start[0]+(e.end[0]-e.start[0])*t,e.start[1]+(e.end[1]-e.start[1])*t]}i-=e.length}return t[Math.floor(t.length/2)]})(_);if(e&&(t=[e[0]+S,e[1]+A]),t){const e=String(L.label),n=du(V(su,{fontSize:14,fontWeight:"normal",children:e}));tt.push(V(su,{x:t[0]-n.width/2,y:t[1]-n.height/2,width:n.width,height:n.height,fontSize:14,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:o,backgroundColor:r,children:e}))}}const F=null!==(p=null==L?void 0:L.showArrow)&&void 0!==p?p:y,D=null!==(g=null==L?void 0:L.direction)&&void 0!==g?g:"forward",q=null!==(b=null==L?void 0:L.arrowType)&&void 0!==b?b:v,X=_.length-1;if(F&&_.length>1){if("forward"===D||"both"===D){const e=_[X],n=_[X-1],i=Math.atan2(e[1]-n[1],e[0]-n[0]),r=dd(e[0]+S,e[1]+A,i,q,"gradient"===d?T:t,h,a);tt.push(...r)}if("both"===D){const e=_[0],n=_[1],i=Math.atan2(e[1]-n[1],e[0]-n[0]),r=dd(e[0]+S,e[1]+A,i,q,"gradient"===d?I:t,h,a);tt.push(...r)}}})}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[E,U(X,{children:[V(q,{children:J}),V(X,{width:0,height:0,children:tt}),V(Vu,{children:Q}),V(Pu,{})]})]})},composites:["title","item"]});Mg("relation-network",{component:t=>{const{Title:e,Item:n,data:i,spacing:r=120,showConnections:o=!0,options:s}=t,{title:a,desc:l,items:c=[]}=i,h=e?V(e,{title:a,desc:l}):null;if(0===c.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,V(X,{children:V(Vu,{})})]});const u=du(V(n,{indexes:[0],data:i,datum:c[0],positionH:"center"}));const{nodes:d,links:f}=function(){const t=c.map((t,e)=>({id:e,data:t,isCenter:0===e,_originalIndex:[e]})),e=c.slice(1).map((t,e)=>({source:0,target:e+1})),n=Fp.A(t).force("link",Hp.A(e).id(t=>t.id).distance(r)).force("charge",Np.A().strength(-50)).force("center",Bp.A(0,0)).force("collision",Wp.A().radius(Math.max(u.width,u.height)/2+10));for(let t=0;t<300;++t)n.tick();return{nodes:t,links:e}}(),p=Math.min(...d.map(t=>{var e;return null!==(e=t.x)&&void 0!==e?e:0})),g=Math.min(...d.map(t=>{var e;return null!==(e=t.y)&&void 0!==e?e:0})),m=Math.max(0,u.width/2-p),y=Math.max(0,u.height/2-g),v=d.map(t=>{if(null==t.x||null==t.y)return null;const e=t.x+m-u.width/2,r=t.y+y-u.height/2,{positionH:o,positionV:s}=((t,e)=>({positionH:t<-50?"flipped":t>50?"normal":"center",positionV:e<-50?"flipped":e>50?"normal":"middle"}))(t.x,t.y);return V(n,{indexes:t._originalIndex,datum:t.data,data:i,x:e,y:r,positionH:o,positionV:s})}).filter(Boolean),x=new Map(d.map(t=>[t.id,t])),b=o?f.map(t=>{const e="object"==typeof t.source?t.source:x.get(t.source),n="object"==typeof t.target?t.target:x.get(t.target);if(!e||!n||null==e.x||null==e.y||null==n.x||null==n.y)return null;return V(K,{d:`M ${e.x+m} ${e.y+y} L ${n.x+m} ${n.y+y}`,stroke:ld(s),strokeWidth:2,strokeOpacity:.6})}).filter(Boolean):[];return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,U(X,{children:[V(X,{children:b}),V(Vu,{children:v})]})]})},composites:["title","item"]});var UA=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const YA=t=>{var{width:e=25,height:n=25,colorPrimary:i="#6699FF",rotation:r=0}=t,o=UA(t,["width","height","colorPrimary","rotation"]);const s=`gradient-arrow-stroke-${i.replace("#","")}`,a=`gradient-arrow-fill-${i.replace("#","")}`,l=Math.round(.515*e),c=Math.round(.275*n),h=Math.round(.875*n);return U(D,{children:[V(Q,Object.assign({},o,{width:e,height:n,points:[{x:0,y:c},{x:l,y:c},{x:l,y:.075*n},{x:e,y:.575*n},{x:l,y:1.075*n},{x:l,y:h},{x:0,y:h}],fill:`url(#${a})`,stroke:`url(#${s})`,transform:`rotate(${r} ${e/2} ${n/2})`,"data-element-type":"shape"})),U(q,{children:[U("linearGradient",{id:a,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[V("stop",{offset:"0%","stop-color":i,"stop-opacity":"0.36"}),V("stop",{offset:"100%","stop-color":i,"stop-opacity":"0"})]}),U("linearGradient",{id:s,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[V("stop",{offset:"0%","stop-color":i}),V("stop",{offset:"58%","stop-color":i,"stop-opacity":"0"})]})]})]})},qA=({text:t,x:e=0,y:n=0,fontSize:i=56,fontWeight:r="bold",fill:o="#FFFFFF",textAnchor:s="middle",dominantBaseline:a="middle",shadowOffsetX:l=2,shadowOffsetY:c=4,midShadowOffsetX:h=1,midShadowOffsetY:u=2,deepShadowOpacity:d=.3,midShadowOpacity:f=.5})=>U(X,{children:[V("text",{x:e,y:n,fontSize:i,fontWeight:r,fill:o,fillOpacity:d,textAnchor:s,dominantBaseline:a,transform:`translate(${l}, ${c})`,children:t}),V("text",{x:e,y:n,fontSize:i,fontWeight:r,fill:o,fillOpacity:f,textAnchor:s,dominantBaseline:a,transform:`translate(${h}, ${u})`,children:t}),V("text",{x:e,y:n,fontSize:i,fontWeight:r,fill:o,textAnchor:s,dominantBaseline:a,children:t})]});var GA=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const XA=t=>{var{width:e=25,height:n=25,colorPrimary:i="#6699FF",rotation:r=0,strokeWidth:o=4}=t,s=GA(t,["width","height","colorPrimary","rotation","strokeWidth"]);return V(Q,Object.assign({},s,{width:e,height:n,points:[{x:e/2,y:0},{x:e,y:n},{x:0,y:n}],fill:i,stroke:i,strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",transform:`rotate(${r} ${e/2} ${n/2})`}))},KA=240,ZA=U("filter",{id:"sequence-ascending-stairs-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[V("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),V("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),V("feOffset",{dx:"0",dy:"4"}),V("feGaussianBlur",{stdDeviation:"6"}),V("feComposite",{in2:"hardAlpha",operator:"out"}),V("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),V("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),V("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]});Mg("sequence-ascending-stairs-3d",{component:t=>{const{Title:e,Item:n,data:i,options:r,cubeWidth:o=KA}=t,{title:s,desc:a,items:l=[]}=i,c=e?V(e,{title:s,desc:a}):null;if(0===l.length){const t=V(Au,{indexes:[0],x:0,y:0});return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[V(q,{children:ZA}),c,V(X,{children:V(Pu,{children:t})})]})}const h=du(V(Au,{indexes:[0]})),u=[],d=[],f=[],p=o/KA,g=180*p;return l.forEach((t,e)=>{const s=[e],a=hd(r,s),c=e*(o+-118),m=118*(l.length-1-e),y=`cube-gradient-bottom-${e}`,v=`cube-gradient-top-${e}`,x=`cube-gradient-stroke-${e}`;f.push(U(X,{x:c,y:m,id:`cube-${e}`,width:o,height:g,filter:"url(#sequence-ascending-stairs-3d-shadow-filter)",children:[U(q,{children:[U("linearGradient",{id:y,x1:"0",y1:"124.5",x2:"238.9",y2:"124.5",gradientUnits:"userSpaceOnUse",children:[V("stop",{offset:"0",stopColor:a,stopOpacity:"0.8"}),V("stop",{offset:"1",stopColor:a,stopOpacity:"0.4"})]}),U("linearGradient",{id:v,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[V("stop",{offset:"0",stopColor:a,stopOpacity:"0.9"}),V("stop",{offset:"1",stopColor:a,stopOpacity:"0.5"})]}),U("linearGradient",{id:x,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[V("stop",{offset:"0",stopColor:a}),V("stop",{offset:"1",stopColor:a,stopOpacity:"0.7"})]})]}),U(qu,{transform:`scale(${p})`,children:[V(K,{d:"M238.9 69.7a6 6 0 0 1-.1 1v.2l-.2.3v.3l-.1.3a6.2 6.2 0 0 1-.3.6l-.1.3-.2.3-.2.4-.3.5-.1.1a10.9 10.9 0 0 1-.8 1v.1l-.5.5h-.1l-.4.4-.3.3-.3.2-.3.3-.4.2a13 13 0 0 1-.7.5l-.4.3-.5.3-97.5 56.7-.7.4h-.2l-.6.4h-.1l-.8.4h-.2l-.6.4h-.2l-.8.3h-.2l-.5.3-.5.1-.5.1-.5.2h-.5a33.7 33.7 0 0 1-3.2.7h-.2l-1 .2h-1.6l-.7.1h-4.7l-.8-.1h-.2a38.2 38.2 0 0 1-2-.4h-.4l-.7-.2h-.4l-.7-.2-.4-.1a27.3 27.3 0 0 1-2.2-.7h-.2a44.2 44.2 0 0 1-.9-.3l-.5-.3-.4-.1-.5-.2-.3-.2-.5-.2-.3-.2-.8-.4L6.5 78C2.2 75.6 0 72.4 0 69v41.7c0 3.2 2.1 6.5 6.4 9l98.1 56.6a23.2 23.2 0 0 0 1 .6l.6.3.3.1.5.2.4.2.3.1h.2l.2.2a21.4 21.4 0 0 0 1.9.6l.3.1h.2l.7.2a77.6 77.6 0 0 1 1.1.3h.3l.7.2h.4a42.5 42.5 0 0 0 1 .2l1 .2h1.1l.4.1h2.1l.7.1h1.5a22 22 0 0 0 1.8-.2h.4l1.1-.1h.2l1.2-.2h.1l.3-.1.6-.1a12.5 12.5 0 0 0 1-.3h.5l.5-.2a29 29 0 0 0 1-.3h.2l.3-.2h.2a27 27 0 0 0 1.6-.7h.2l.8-.4a19.4 19.4 0 0 0 1.6-.9l97.5-56.7.3-.1.2-.2.4-.2.4-.3.3-.2.3-.3.4-.2.3-.3.3-.3h.1l.3-.3.5-.6h.1l.3-.5h.1v-.1l.4-.4v-.1l.4-.5v-.1l.1-.2.1-.2.2-.3.1-.3.1-.3.1-.1a6.9 6.9 0 0 0 .2-.8l.1-.3v-.4l.1-.3v-1l.2-41.4v.4Z",fill:`url(#${y})`}),V(K,{d:"M232.5 60.4c8.5 4.9 8.5 12.8.1 17.7l-97.5 56.7c-8.4 4.9-22 4.9-30.5 0L6.5 78C-2 73-2 65.3 6.4 60.4l97.5-56.7c8.4-5 22-5 30.5 0l98.1 56.7Z",fill:`url(#${v})`}),V(K,{d:"M119.1 0A31 31 0 0 0 104 3.7L6.4 60.4C-2 65.3-2 73.2 6.4 78l98.2 56.7c4.2 2.4 9.8 3.7 15.3 3.7a31 31 0 0 0 15.2-3.7L232.6 78c8.4-5 8.4-12.8 0-17.7L134.3 3.7A31.2 31.2 0 0 0 119.1 0Zm0 2.5c5.4 0 10.3 1.2 14 3.3l98.2 56.7c3.3 2 5.1 4.3 5.1 6.8 0 2.4-1.8 4.7-5 6.6l-97.5 56.7a28.3 28.3 0 0 1-14 3.4c-5.3 0-10.3-1.2-14-3.4L7.7 76c-3.3-1.9-5-4.3-5-6.7 0-2.4 1.7-4.8 5-6.7L105 5.8a29 29 0 0 1 14-3.3Z",fill:`url(#${x})`})]}),V(qA,{text:e+1,x:115,y:65,fontSize:56})]}));if(d.push(V(n,{indexes:s,datum:t,data:i,x:c+o+40,y:m+g/2,positionH:"normal"})),u.push(V(zu,{indexes:s,x:c+o-h.width/2,y:m-h.height/2})),0===e&&u.push(V(Au,{indexes:[0],x:c-30-h.width/2,y:m+g/2-h.height/2})),e<l.length-1){u.push(V(Au,{indexes:[e+1],x:c+o-h.width/2,y:(m+g/2+118*(l.length-1-(e+1))+g/2)/2-h.height/2}))}else u.push(V(Au,{indexes:[l.length],x:c+o+30-h.width/2,y:m+g/2-h.height/2}))}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[V(q,{children:ZA}),c,U(X,{x:0,y:0,children:[V(X,{children:f}),V(Vu,{children:d}),V(Pu,{children:u})]})]})},composites:["title","item"]});Mg("sequence-ascending-steps",{component:t=>{const{Title:e,Item:n,data:i,hGap:r=0,vGap:o=0}=t,{title:s,desc:a,items:l=[]}=i,c=e?V(e,{title:s,desc:a}):null,h=du(V(n,{indexes:[0],data:i,datum:l[0]})),u=[],d=[],f=h.width+r,p=h.height/2+o,g=h.width/2,m=0+(l.length-1)*p;return l.forEach((t,e)=>{const o=g+e*f,s=m-e*p,a=[e];u.push(V(n,{indexes:a,datum:t,data:i,x:o,y:s})),d.push(V(zu,{indexes:a,x:o+h.width-30,y:s+h.height/2+10})),d.push(V(Au,{indexes:a,x:o+h.width+r/2,y:s-30}))}),U(Zu,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,U(X,{children:[V(Vu,{children:u}),V(Pu,{children:d})]})]})},composites:["title","item"]});Mg("sequence-circle-arrows",{component:t=>{const{Title:e,Item:n,data:i,options:r,radius:o=150,arrowSize:s=4,strokeWidth:a=10}=t,{title:l,desc:c,items:h=[]}=i,u=du(V(Au,{indexes:[0]})),d=ld(r);if(!n){const t=e?V(e,{title:l,desc:c}):null;return U(Zu,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[t,V(X,{children:V(Pu,{children:V(Au,{indexes:[0],x:0,y:0})})})]})}const f=h.length;if(0===f){const t=e?V(e,{title:l,desc:c}):null;return U(Zu,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[t,V(X,{children:V(Pu,{children:V(Au,{indexes:[0],x:0,y:0})})})]})}const p=du(V(n,{indexes:[0],data:i,datum:h[0]})),g=2*Math.PI/f,m=[];let y=1/0,v=1/0,x=-1/0,b=-1/0;for(let t=0;t<f;t++){const e=t*g-Math.PI/2,n=0+o*Math.cos(e),i=0+o*Math.sin(e);m.push({x:n,y:i}),y=Math.min(y,n),v=Math.min(v,i),x=Math.max(x,n),b=Math.max(b,i)}const w=[];for(let t=0;t<f;t++){const e=m[t],n=m[(t+1)%f],i=Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2)),r=Math.min(.5*i,100),o=(e.x+n.x)/2,s=(e.y+n.y)/2;y=Math.min(y,o-r/2),v=Math.min(v,s-r/2),x=Math.max(x,o+r/2),b=Math.max(b,s+r/2);const a=Math.atan2(s-0,o-0);let l,c;const h=180*(a<0?a+2*Math.PI:a)/Math.PI,d=r/2+20,g=o+Math.cos(a)*d,M=s+Math.sin(a)*d;h>=337.5||h<22.5?(l=g,c=M-p.height/2):h>=22.5&&h<67.5?(l=g,c=M):h>=67.5&&h<112.5?(l=g-p.width/2,c=M):h>=112.5&&h<157.5?(l=g-p.width,c=M):h>=157.5&&h<202.5?(l=g-p.width,c=M-p.height/2):h>=202.5&&h<247.5?(l=g-p.width,c=M-p.height):h>=247.5&&h<292.5?(l=g-p.width/2,c=M-p.height):(l=g,c=M-p.height),w.push({lineLength:i,circleBigW:r,midX:o,midY:s,itemX:l,itemY:c}),y=Math.min(y,l),v=Math.min(v,c),x=Math.max(x,l+p.width+u.width+5),b=Math.max(b,c+p.height)}const M=Math.max(0,-y),k=Math.max(0,-v),C=e?V(e,{title:l,desc:c}):null,O=[],j=[],E=[],_=[],S=m.map(t=>({x:t.x+M,y:t.y+k}));for(let t=0;t<f;t++){const e=S[t],n=S[(t+1)%f],i=(t+1)%f,o=[t],{lineLength:l,circleBigW:c,midX:h,midY:p}=w[t],g=Math.max(c-20,20),m=Math.max(.4*g,16),y=hd(r,o)||d,v=(n.x-e.x)/l,x=(n.y-e.y)/l,b=Math.min(5,(l-(10+s))/2),C=Math.max(0,e.x+v*b),j=Math.max(0,e.y+x*b),$=Math.max(0,n.x-v*b),A=Math.max(0,n.y-x*b),z=cg.A().x(t=>Math.max(0,t.x)).y(t=>Math.max(0,t.y)).curve(gg.A),P=z([{x:C,y:j},{x:$,y:A}])||"",L=`fork-arrow-${y.replace(/[^a-zA-Z0-9]/g,"")}-${t}`;_.push(V("marker",{id:L,viewBox:`${-s} ${.6*-s} ${1.2*s} ${1.2*s}`,refX:.08*-s,refY:0,markerWidth:s,markerHeight:s,orient:"auto",markerUnits:"strokeWidth",children:V("path",{d:`\n M ${.6*-s} ${.4*-s}\n L 0 0\n L ${.6*-s} ${.4*s}\n `,fill:"none",stroke:y,strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"})})),E.push(V(K,{d:P,stroke:y,strokeWidth:a,fill:"none",markerEnd:`url(#${L})`,strokeLinecap:"round","data-element-type":"shape"}));const I=h+M,T=p+k,R=ud({colorPrimary:y||d},r);E.push(V(G,{x:Math.max(0,I-c/2),y:Math.max(0,T-c/2),width:c,height:c,fill:R.colorPrimaryBg,"data-element-type":"shape"})),E.push(V(G,{x:Math.max(0,I-g/2),y:Math.max(0,T-g/2),width:g,height:g,fill:"#ffffff"})),E.push(V(Hu,{x:Math.max(0,I-m/2),y:Math.max(0,T-m/2),size:m,indexes:o,fill:y}));const B=Math.max(0,I-u.width/2),W=Math.max(0,T-u.height/2);O.push(V(Au,{indexes:[i],x:B,y:W}))}for(let t=0;t<f;t++){const e=[t],r=h[t],{itemX:o,itemY:s}=w[t],a=Math.max(0,o+M),l=Math.max(0,s+k);j.push(V(n,{indexes:e,datum:r,data:i,x:a,y:l}));const c=Math.max(0,a+p.width+5),d=Math.max(0,l+p.height/2-u.height/2);O.push(V(zu,{indexes:e,x:c,y:d}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[C,U(X,{x:0,y:0,children:[V(q,{children:_}),V(X,{children:E}),V(Vu,{children:j}),V(Pu,{children:O})]})]})},composites:["title","item"]});Mg("sequence-circular",{component:t=>{const{Title:e,Item:n,data:i,options:r,outerRadius:o=180,innerRadius:s=120,itemDistance:a=310,gapAngle:l=5,iconRadius:c=34,iconBgRadius:h=38,iconSize:u=36}=t,{title:d,desc:f,items:p=[]}=i,g=e?V(e,{title:d,desc:f}):null,m=Math.max(a+100,o+50),y=Math.min(a,o),v=du(V(Au,{indexes:[0]}));if(0===p.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,V(X,{children:V(Pu,{children:V(Au,{indexes:[0],x:m-20,y:y-20})})})]});const x=[],b=[],w=[],M=[],k=du(V(n,{indexes:[0],data:i,datum:p[0]})),C=(360-p.length*l)/p.length,O=(t,e,n,i,r,o)=>{const s=r*Math.PI/180,a=o*Math.PI/180,l=t+n*Math.cos(s),c=e+n*Math.sin(s),h=o-r<=180?"0":"1";return[`M ${l} ${c}`,`L ${t+i*Math.cos(s)} ${e+i*Math.sin(s)}`,`A ${i} ${i} 0 ${h} 1 ${t+i*Math.cos(a)} ${e+i*Math.sin(a)}`,`L ${t+n*Math.cos(a)} ${e+n*Math.sin(a)}`,`A ${n} ${n} 0 ${h} 0 ${l} ${c}`,"Z"].join(" ")},j=({centerX:t,outerRadius:e,angleRad:n,btnBounds:i})=>({x:t+(e+20)*Math.cos(n)-i.width/2,y:y+(e+20)*Math.sin(n)-i.height/2}),E=6/((s+o)/2)*(180/Math.PI);p.forEach((t,e)=>{const d=[e],f=e*(C+l)+270,p=f+C,g=(f+p)/2,_=g*Math.PI/180,S=hd(r,d),$=S+"40",A=O(m,y,s,o,f,p);w.push(V(K,{d:A,fill:$,width:2*o,height:2*o,"data-element-type":"shape"}));const z=O(m,y,s+6,o-6,f+E,p-E);w.push(V(K,{d:z,fill:S,width:2*o,height:2*o,"data-element-type":"shape"}));const P=(s+o)/2,L=m+P*Math.cos(_),I=y+P*Math.sin(_);M.push(V(G,{x:L-h,y:I-h,width:2*h,height:2*h,fill:"#ffffff","data-element-type":"shape"})),M.push(V(G,{x:L-c,y:I-c,width:2*c,height:2*c,fill:S,"data-element-type":"shape"})),t.icon&&M.push(V(Hu,{x:L-u/2,y:I-u/2,indexes:d,size:u,fill:"#fff"}));const T=(g%360+360)%360,R=T>=75&&T<=105;let B,W="normal",H="normal";R?(B=T,H="normal",W="center"):T>=270||T<=90?(B=T>=270?(T-270)/90*60-60:T/90*60,W="normal"):(B=120+(T-90)/180*120,W="flipped");const N=B*Math.PI/180,F=m+a*Math.cos(N)-k.width/2;let D=y+a*Math.sin(N)-k.height/2;R&&(D=y+o+k.height/2),b.push(V(n,{indexes:d,datum:t,data:i,x:F,y:D,positionH:W,positionV:H}));const U=a+40,Y=m+U*Math.cos(N)-v.width/2,q=y+U*Math.sin(N)-v.height/2;x.push(V(zu,{indexes:d,x:Y,y:q}));const X=(f+C+l/2)*Math.PI/180,{x:Z,y:Q}=j({centerX:m,outerRadius:o,angleRad:X,btnBounds:v});x.push(V(Au,{indexes:[e+1],x:Z,y:Q}))});const _=(270-l/2)*Math.PI/180,{x:S,y:$}=j({centerX:m,outerRadius:o,angleRad:_,btnBounds:v});return x.unshift(V(Au,{indexes:[0],x:S,y:$})),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:70,children:[g,U(X,{children:[V(X,{children:w}),V(X,{children:M}),V(Vu,{children:b}),V(Pu,{children:x})]})]})},composites:["title","item"]});Mg("sequence-color-snake-steps",{component:t=>{const{Title:e,Item:n,data:i,gap:r=0,rowGap:o=0,itemsPerRow:s=3,circleStrokeWidth:a=18,options:l}=t,{title:c,desc:h,items:u=[]}=i,d=e?V(e,{title:c,desc:h}):null,f=ld(l),p=du(V(Au,{indexes:[0]})),g=du(V(n,{indexes:[0],data:i,datum:u[0],positionH:"center"})),m=[],y=[],v=[],x=(o+g.height)/2,b=x;if(u.forEach((t,e)=>{const c=Math.floor(e/s),h=e%s,d=c%2==1,w=(d?s-1-h:h)*(g.width+r)+b,M=c*(g.height+o),k=[e];if(y.push(V(n,{indexes:k,datum:t,data:i,x:w,y:M,positionH:"center",positionV:e%2==1?"flipped":"normal"})),m.push(V(zu,{indexes:k,x:w+(g.width-p.width)/2,y:M+g.height+10})),0===e&&m.push(V(Au,{indexes:k,x:w+(g.width-p.width)/2,y:M-p.height-10})),e<u.length-1){if(c===Math.floor((e+1)/s))m.push(V(Au,{indexes:[e+1],x:w+(g.width-p.width)/2,y:M-p.height-10}));else{const t=M+g.height/2,n=M+g.height+o+g.height/2;let i,r,s;d?(i=w,s=0,r=`M ${i} ${t} A ${x} ${x} 0 0 ${s} ${i} ${n}`):(i=w+g.width,s=1,r=`M ${i} ${t} A ${x} ${x} 0 0 ${s} ${i} ${n}`);const c=n-t,h=hd(l,k),u=hd(l,[e+1]),y=`gradient-arc-${e}`;v.push(U(D,{children:[V(q,{children:U("linearGradient",{id:y,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:h||f}),V("stop",{offset:"100%",stopColor:u||f})]})}),V(K,{d:r,stroke:`url(#${y})`,strokeWidth:a,fill:"none",width:b,height:c,"data-element-type":"shape"})]}));m.push(V(Au,{indexes:[e+1],x:d?i-x-p.width/2:i+x-p.width/2,y:M+g.height+o/2-p.height/2}))}}}),u.length>0){const t=u.length-1,e=Math.floor(t/s),n=t%s;m.push(V(Au,{indexes:[u.length],x:(e%2==1?s-1-n:n)*(g.width+r)+(g.width-p.width)/2,y:e*(g.height+o)+g.height+p.height+20}))}if(u.length/s>2){const t=(o+g.height)/2,e=hd(l,[0]);v.push(V(J,{x:0,y:g.height/2-a/2,width:t,height:a,fill:e||f,"data-element-type":"shape"}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,U(X,{width:s*g.width+(s-1)*r+2*x,height:Math.ceil(u.length/s)*(g.height+o),children:[V(X,{children:v}),V(Vu,{children:y}),V(Pu,{children:m})]})]})},composites:["title","item"]});const QA=(t,e)=>0===t?0:1===t?e/2:e/2+e/2*3*(t-1),JA=(t,e,n)=>{if(t)return 0;return 2*n+(0===e?2:n)};Mg("sequence-cylinders-3d",{component:t=>{const{Title:e,Item:n,data:i,options:r,cylinderRx:o=28,cylinderRy:s=18,baseHeight:a=120,heightIncrement:l=40,depthSpacing:c=60,itemVerticalAlign:h="top",itemVerticalOffset:u=-12,firstDecorationWidth:d=90}=t,{title:f,desc:p,items:g=[]}=i,m=e?V(e,{title:f,desc:p}):null,y=du(V(n,{indexes:[0],data:i,datum:g[0],positionH:"center"})),v=du(V(Au,{indexes:[0]})),x=ld(r),b=Math.max(6,.15*c),w=((t,e,n,i,r,o,s,a)=>{const l=i+(t-1)*r+t*Math.max(6,.15*o)+100+50,c=l-100;let h=0,u=0,d=0,f=0;if(t>0){const i=0;let r=1/0,o=-1/0;for(let e=0;e<t;e++){const t=e%2==0,s=Math.floor(e/2),a=QA(s,n),l=i+JA(t,s,n)+a;r=Math.min(r,l-n),o=Math.max(o,l+n)}h=0,f=h+e.width+a+s+n,d=f-i+(r+o)/2,u=d+(d-(h+e.width/2))-e.width/2}return{canvasHeight:l,startY:c,leftItemAlignedX:h,rightItemAlignedX:u,cylinderAreaStartX:f}})(g.length,y,o,a,l,c,d,10),{startY:M,leftItemAlignedX:k,rightItemAlignedX:C,cylinderAreaStartX:O}=w,j=[],E=[];g.forEach((t,e)=>{const c=hd(r,[e])||x;j.push(...((t,e)=>{const n=(0,wl.A)(e),i=[];return i.push(U("linearGradient",{id:`cylinderGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:n.toRgbString(),stopOpacity:.7}),V("stop",{offset:"40%",stopColor:n.clone().lighten(5).toRgbString(),stopOpacity:.65}),V("stop",{offset:"70%",stopColor:n.clone().lighten(15).toRgbString(),stopOpacity:.6}),V("stop",{offset:"100%",stopColor:n.clone().lighten(20).toRgbString(),stopOpacity:.55})]})),i.push(U("linearGradient",{id:`topGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:n.clone().lighten(15).toRgbString(),stopOpacity:1}),V("stop",{offset:"100%",stopColor:"#fafafa",stopOpacity:1})]})),i.push(U("linearGradient",{id:`bottomGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:n.clone().darken(8).toRgbString(),stopOpacity:.75}),V("stop",{offset:"50%",stopColor:n.clone().darken(5).toRgbString(),stopOpacity:.7}),V("stop",{offset:"100%",stopColor:n.clone().darken(12).toRgbString(),stopOpacity:.65})]})),i.push(U("linearGradient",{id:`numberGradient${t}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:n.clone().darken(0).toRgbString(),stopOpacity:.9}),V("stop",{offset:"50%",stopColor:n.clone().lighten(5).toRgbString(),stopOpacity:.85}),V("stop",{offset:"100%",stopColor:n.clone().lighten(10).toRgbString(),stopOpacity:.8})]})),i.push(U("linearGradient",{id:`glowGradient${t}`,x1:"0%",y1:"100%",x2:"0%",y2:"0%",children:[V("stop",{offset:"0%",stopColor:"#FFFFFF",stopOpacity:.2}),V("stop",{offset:"90%",stopColor:"#FFFFFF",stopOpacity:0})]})),i})(e,c));const d=((t,e,n,i,r,o,s)=>{const a=t%2==0,l=Math.floor(t/2),c=QA(l,e),h=o-t*r,u=n+t*i,d=h-u;return{x:s+JA(a,l,e)+c,y:d,height:u,bottomY:h,topY:d}})(e,o,a,l,b,M,O),f=((t,e,n,i)=>{const{x:r,topY:o,bottomY:s}=e,a=[];return a.push(V("ellipse",{id:`cylinder-bottom-${t}`,cx:r,cy:s,rx:n,ry:i,fill:`url(#bottomGradient${t})`,opacity:.7})),a.push(V(K,{id:`cylinder-body-${t}`,d:`\n M ${r-n} ${o}\n A ${n} ${i} 0 0 0 ${r} ${o+i}\n A ${n} ${i} 0 0 0 ${r+n} ${o}\n L ${r+n} ${s}\n A ${n} ${i} 0 0 1 ${r} ${s+i}\n A ${n} ${i} 0 0 1 ${r-n} ${s}\n Z\n `,fill:`url(#cylinderGradient${t})`,stroke:"none"})),a.push(V(J,{id:`cylinder-glow-${t}`,x:r-n,y:o-3*i,width:2*n,height:3*i,fill:`url(#glowGradient${t})`})),a.push(V("ellipse",{id:`cylinder-top-${t}`,cx:r,cy:o,rx:n,ry:i,fill:`url(#topGradient${t})`})),a.push(V(su,{id:`cylinder-number-${t}`,width:50,height:50,fontFamily:"Arial Black, sans-serif",fontSize:32,fontWeight:900,fill:`url(#numberGradient${t})`,alignHorizontal:"center",alignVertical:"middle",transform:`translate(${r-10}, ${o-15}) matrix(1, 0, -0.6, 0.6, 0, 0)`,children:t+1})),a})(e,d,o,s),{itemPos:p,lineStartX:g,lineEndX:m,lineY:w}=((t,e,n,i,r,o,s,a,l)=>{const c=t%2==0,h=e.topY+.05*e.height;let u,d,f;c?(u=r,d=u+n.width+l):(u=o,d=u-l),f="top"===s?h:"bottom"===s?h-n.height:h-n.height/2,f+=a;const p=c?e.x-i:e.x+i;return{itemPos:{x:u,y:f},lineStartX:c?p-l:p+l,lineEndX:d,lineY:h}})(e,d,y,o,k,C,h,u,10),_=((t,e,n,i,r)=>{const o=[];return o.push(V("circle",{id:`decoration-dot-start-${t}`,cx:e,cy:i,r:2,fill:r})),o.push(V("line",{id:`decoration-line-${t}`,x1:e,y1:i,x2:n,y2:i,stroke:r,strokeWidth:1,opacity:.8})),o.push(V("circle",{id:`decoration-dot-end-${t}`,cx:n,cy:i,r:2,fill:r,opacity:.9})),o})(e,g,m,w,c);f.push(..._);const S=V(n,{indexes:[e],datum:t,data:i,x:p.x,y:p.y,positionH:e%2==0?"flipped":"normal"}),$=[V(zu,{indexes:[e],x:p.x+y.width/2-v.width/2,y:p.y+y.height+10}),V(Au,{indexes:[e],x:p.x+y.width/2-v.width/2,y:p.y-v.height-10})];E[e]={cylinderNodes:f,itemNode:S,btnNodes:$,itemX:p.x,itemY:p.y}});let _=1/0,S=1/0,$=-1/0,A=-1/0;E.forEach(t=>{const{itemX:e,itemY:n}=t;_=Math.min(_,e),S=Math.min(S,n),$=Math.max($,e+y.width),A=Math.max(A,n+y.height)});const z=$-_,P=A-S,L=[V(q,{children:j})],I=[],T=((t,e,n,i,r)=>{if(0===t)return null;const o=[];for(let s=0;s<t;s++){const t=s%2==0,a=Math.floor(s/2),l=QA(a,e),c=JA(t,a,e);o.push({x:n+c+l,y:i-s*r})}const s=o[0],a=o[o.length-1],l=t>5?16*t:100,c=s.x-e-l,h=s.x+e+l,u=s.y+6+l/6,d=a.x+e+l,f=a.y+6-l/6,p=`\n M ${c} ${u}\n L ${h} ${u}\n L ${d} ${f}\n L ${a.x-e-l} ${f}\n Z\n `,g=`\n M ${h} ${u}\n L ${h} ${u+6}\n L ${d} ${f+6}\n L ${d} ${f}\n Z\n `,m=`\n M ${c} ${u}\n L ${h} ${u}\n L ${h} ${u+6}\n L ${c} ${u+6}\n Z\n `,y=U(D,{children:[U("linearGradient",{id:"basePlateTopGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:"#fafafa",stopOpacity:1}),V("stop",{offset:"50%",stopColor:"#ffffff",stopOpacity:.98}),V("stop",{offset:"100%",stopColor:"#ececec",stopOpacity:.95})]}),U("linearGradient",{id:"basePlateFrontGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:"#e0e0e0",stopOpacity:.95}),V("stop",{offset:"50%",stopColor:"#d2d2d2",stopOpacity:.93}),V("stop",{offset:"100%",stopColor:"#c5c5c5",stopOpacity:.9})]}),U("linearGradient",{id:"basePlateSideGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:"#b8b8b8",stopOpacity:.92}),V("stop",{offset:"50%",stopColor:"#c0c0c0",stopOpacity:.88}),V("stop",{offset:"100%",stopColor:"#adadad",stopOpacity:.85})]})]});return U(X,{children:[V(q,{children:y}),V(K,{id:"base-plate-front",d:m,fill:"url(#basePlateFrontGradient)",stroke:"#c5c5c5",strokeWidth:.3,opacity:.92}),V(K,{id:"base-plate-side",d:g,fill:"url(#basePlateSideGradient)",stroke:"#aaaaaa",strokeWidth:.3,opacity:.88}),V(K,{id:"base-plate-top",d:p,fill:"url(#basePlateTopGradient)",stroke:"#e5e5e5",strokeWidth:.5,opacity:.93})]})})(g.length,o,O,M,b);T&&L.push(T);for(let t=g.length-1;t>=0;t--){const e=E[t];e&&(L.push(U(X,{children:[V(X,{children:e.cylinderNodes}),e.itemNode]})),I.push(...e.btnNodes))}if(g.length>0){const t=g.length%2==0,e=Math.floor(g.length/2),n=QA(e,o),i=JA(t,e,o);I.push(V(Au,{indexes:[g.length],x:O+i+n,y:M-g.length*b-100}))}return U(Zu,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,U(X,{width:z,height:P,children:[V(Vu,{children:L}),V(Pu,{children:I})]})]})},composites:["title","item"]});const tz=160,ez=260,nz=148,iz=100,rz=100,oz=0,sz=80,az=100,lz=130,cz=8,hz=40,uz=5,dz=.6,fz=3;function pz(t,e,n){return(t+7*e+13*n)%100}function gz(t,e,n,i,r,o,s,a){return{x:Math.max(r,Math.min(t+n,o)),y:Math.max(s,Math.min(e+i,a))}}function mz({count:t,rectX:e,rectY:n,rectWidth:i,rectHeight:r,seed:o}){const s=[],a=cz/2,{cols:l,rows:c}=function(t){const e=Math.ceil(Math.sqrt(1.5*t));return{cols:e,rows:Math.ceil(t/e)}}(t),h=(i-2*a)/(l+1),u=(r-2*a)/(c+1);let d=0;for(let f=0;f<c&&d<t;f++)for(let c=0;c<l&&d<t;c++){const t=pz(o,f,c),l=t%16-8,p=3*t%12-6,g=e+a+(c+1)*h+(f%2==1?h/2:0),m=n+a+(f+1)*u,{x:y,y:v}=gz(g,m,l,p,e+a,e+i-a,n+a,n+r-a);s.push({x:y,y:v,colorIndex:d}),d++}return s}function yz(){const t={x:40,y:25},e={x:160,y:75},n={x:40,y:205},i={x:160,y:255},r=[];for(let o=0;o<=12;o++){const s=o/12,a={x:t.x+(n.x-t.x)*s,y:t.y+(n.y-t.y)*s},l={x:e.x+(i.x-e.x)*s,y:e.y+(i.y-e.y)*s};r.push(`M${a.x} ${a.y}L${l.x} ${l.y}`);const c={x:t.x+(e.x-t.x)*s,y:t.y+(e.y-t.y)*s},h={x:n.x+(i.x-n.x)*s,y:n.y+(i.y-n.y)*s};r.push(`M${c.x} ${c.y}L${h.x} ${h.y}`)}return r.join("")}function vz(t,e){return t.map(t=>V(K,{d:"M4 0L8 4L4 8L0 4Z",fill:hd(e,[t.colorIndex]),x:t.x,y:t.y,width:cz,height:cz,"data-element-type":"shape"}))}Mg("sequence-filter-mesh",{component:t=>{const{Title:e,Item:n,data:i,gap:r=20,options:o}=t,{title:s,desc:a,items:l=[]}=i,c=e?V(e,{title:s,desc:a}):null,h=du(V(Au,{indexes:[0]})),u=du(V(n,{indexes:[0],data:i,datum:l[0],width:tz,positionH:"center"})),d=[],f=[],p=[],g=ez+r,m=g+u.height+10;if(l.forEach((t,e)=>{const r=e*tz,s=[e],a=hd(o,s),c=function(t,e){return e<=1?hz:Math.round(hz-t/(e-1)*(hz-uz))}(e,l.length),u=mz({count:c,rectX:oz,rectY:sz,rectWidth:az,rectHeight:lz,seed:100*e});d.push(function(t,e,n,i,r){return U(X,{x:e,y:0,width:tz,height:ez,children:[U(qu,{children:[V(K,{d:yz(),stroke:"#D9D9D9",strokeWidth:2}),V(K,{d:`M${rz} 25V260`,stroke:"#BFBFBF",strokeWidth:2,strokeLinecap:"round"}),V(J,{x:oz,y:sz,width:az,height:lz,fill:"#FFCB0E",fillOpacity:.2})]}),V(D,{children:vz(i,r)}),V(su,{x:rz-25,y:0,width:50,height:20,fontSize:20,fontWeight:"bold",alignHorizontal:"center",alignVertical:"top",fill:n,children:String(t+1).padStart(2,"0")})]})}(e,r,a,u,o)),e===l.length-1&&d.push(function(t,e){const n=sz+lz/2-nz/2,i=mz({count:Math.max(Math.round(uz*dz),fz),rectX:0,rectY:14,rectWidth:57,rectHeight:120,seed:999});return U(X,{x:t+tz,y:n,children:[V(K,{d:"M0 13.9679H57.1429V0L100 74L57.1429 148V134.032H0V13.9679Z",width:iz,height:nz,fill:"#FFCB0E",fillOpacity:.2,"data-element-type":"shape"}),V(D,{children:vz(i,e)})]})}(r,o)),f.push(V(n,{indexes:s,datum:t,data:i,width:tz,x:r+rz-tz/2,y:g,positionH:"center"})),p.push(V(zu,{indexes:s,x:r+rz-h.width/2,y:m})),e<l.length-1&&p.push(V(Au,{indexes:[e+1],x:r+tz-h.width/2,y:m}))}),l.length>0){p.unshift(V(Au,{indexes:[0],x:-h.width/2,y:m}));p.push(V(Au,{indexes:[l.length],x:(l.length-1)*tz+tz-h.width/2,y:m}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,U(X,{width:tz*l.length+iz,height:ez+r+u.height,children:[V(X,{children:d}),V(Vu,{children:f}),V(Pu,{children:p})]})]})},composites:["title","item"]});const xz=t=>Math.round(1e10*t)/1e10,bz=(t,e)=>xz(Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))),wz=Math.PI,Mz=2*wz,kz=(t,e,n,i,r,o)=>{const s=Math.atan2(t.y-e.y,t.x-e.x),a=Math.atan2(n.y-e.y,n.x-e.x),l=Math.acos((i*i+o*o-r*r)/(2*i*o)),c=1/Math.tan(l/2),h=((t,e)=>{const n=e-t;return n>wz&&n<Mz||n<0&&n>-wz?-1:1})(s,a);return{prev:s,next:a,main:l,vel:c,dir:h,bis:s+h*l/2}},Cz=Math.PI,Oz=(t,e,n)=>t.reduce((t,i)=>{const{x:r,y:o,angle:{prev:s,next:a},arc:{x:l,y:c,radius:h}}=i,u=-1*i.angle.dir,d=s+u*Cz/2,f=(u*Cz+a-s)%Cz,p="LENGTH"===e?Math.round(u*f*h/n):(n||1)-1,g=f/p,m=[];if(!p||!g)return t.concat({x:r,y:o});for(let t=0;t<=p;t++)m.push({x:l+Math.cos(d+g*t)*h,y:c+Math.sin(d+g*t)*h});return t.concat(m)},[]),jz=(t,e=0)=>{const n=t.length,i=[],r=[],o=[];t.forEach((s,a)=>{const l=t[(a-1+n)%n],c=t[(a+1)%n],h=bz(l,s),u=bz(l,c),d=bz(s,c),f=kz(l,s,c,h,u,d);0===f.main&&(f.main=Number.EPSILON,f.vel=Number.MAX_SAFE_INTEGER),f.main===wz&&(f.vel=0);const p={x:s.x,y:s.y,angle:f,offset:0,arc:{radius:e,hit:e,lim:Math.min(d/f.vel,h/f.vel,s.r||0)},in:{length:h,rest:h},out:{length:d,rest:d},locked:!1,id:a,get prev(){return i[(a-1+n)%n]},get next(){return i[(a+1)%n]}};isNaN(f.main)&&(f.main=0,f.bis=f.prev||f.next,o.push(p)),"number"==typeof s.r&&(0===s.r?o.push(p):r.push(p)),i.push(p)}),o.forEach(t=>{t.angle.vel=0,t.arc.radius=0,Sz(t)}),i.forEach(t=>{t.arc.hit=Math.min(t.out.rest/(t.angle.vel+t.next.angle.vel),t.in.rest/(t.angle.vel+t.prev.angle.vel))});let s=$z(r);for(;s;)Ez(s),s=$z(r);for(s=$z(i);s;)_z(s,e),s=$z(i);const a=i.map(t=>{const e=t.arc.radius/Math.sin(t.angle.main/2);return{id:t.id,x:t.x,y:t.y,angle:{main:xz(t.angle.main),prev:t.angle.prev,next:t.angle.next,bis:t.angle.bis,dir:t.angle.dir},offset:xz(t.offset),arc:{radius:xz(t.arc.radius),x:t.x+(Math.cos(t.angle.bis)*e||0),y:t.y+(Math.sin(t.angle.bis)*e||0)},in:{length:t.in.length,x:t.x+Math.cos(t.angle.prev)*t.offset,y:t.y+Math.sin(t.angle.prev)*t.offset},out:{length:t.out.length,x:t.x+Math.cos(t.angle.next)*t.offset,y:t.y+Math.sin(t.angle.next)*t.offset},get prev(){return a[(t.id-1+n)%n]},get next(){return a[(t.id+1)%n]}}});return a},Ez=t=>{const{prev:e,next:n}=t;t.arc.radius=e.locked&&!n.locked?Math.min(Math.max((t.out.length-n.arc.lim*n.angle.vel)/t.angle.vel,t.out.length/(t.angle.vel+n.angle.vel)),t.in.rest/t.angle.vel,t.arc.lim):n.locked&&!e.locked?Math.min(Math.max((t.in.length-e.arc.lim*e.angle.vel)/t.angle.vel,t.in.length/(t.angle.vel+e.angle.vel)),t.out.rest/t.angle.vel,t.arc.lim):n.locked&&e.locked?Math.min(t.in.rest/t.angle.vel,t.out.rest/t.angle.vel,t.arc.lim):Math.min(Math.max((t.in.length-e.arc.lim*e.angle.vel)/t.angle.vel,t.in.length/(t.angle.vel+e.angle.vel)),Math.max((t.out.length-n.arc.lim*n.angle.vel)/t.angle.vel,t.out.length/(t.angle.vel+n.angle.vel)),t.arc.lim),Sz(t)},_z=(t,e)=>{if(e>t.arc.hit){const{prev:e,next:n}=t;t.arc.radius=e.locked&&!n.locked?Math.max(Math.min(t.in.rest/t.angle.vel,t.out.length/(t.angle.vel+n.angle.vel),t.arc.radius),0):n.locked&&!e.locked?Math.max(Math.min(t.out.rest/t.angle.vel,t.in.length/(t.angle.vel+e.angle.vel),t.arc.radius),0):n.locked&&e.locked?Math.max(Math.min(t.in.rest/t.angle.vel,t.out.rest/t.angle.vel,t.arc.radius),0):t.arc.hit}Sz(t)},Sz=t=>{const{prev:e,next:n}=t;t.offset=t.arc.radius*t.angle.vel,e.out.rest-=t.offset,t.in.rest-=t.offset,t.out.rest-=t.offset,n.in.rest-=t.offset,t.locked=!0,e.arc.hit=Math.min(e.in.length/(e.angle.vel+e.prev.angle.vel),e.in.rest/e.angle.vel,e.out.rest/e.angle.vel),n.arc.hit=Math.min(n.out.length/(n.angle.vel+n.next.angle.vel),n.out.rest/n.angle.vel,n.in.rest/n.angle.vel)},$z=t=>t.reduce((t,e)=>e.locked?t:t?e.arc.hit<t.arc.hit?e:t:e,null);Mg("sequence-funnel",{component:t=>{const{Title:e,Item:n,data:i,gap:r=10,width:o=700,funnelWidth:s,itemHeight:a=60,minBottomRatio:l=.25,options:c}=t,{title:h,desc:u,items:d=[]}=i,f=e?V(e,{title:h,desc:u}):null;if(0===d.length)return V(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:f});const p=ud(c.themeConfig),g=null!=s?s:.55*o,m=o-g,y=1.25*a,v=d.length*y+(d.length-1)*r,x=g*l,b=d.map((t,e)=>{const o=[e],s=hd(c,[e])||p.colorPrimary,{points:l,topWidth:h}=function(t,e,n,i,r,o){const s=t/2,a=o*(n+i),l=t-e,c=t-l*(a/r),h=t-l*((a+n)/r),u={x:s-c/2,y:0},d={x:s+c/2,y:0},f={x:s+h/2,y:n};return{points:[u,d,f,{x:s-h/2,y:n}],topWidth:c,bottomWidth:h}}(g,x,y,r,v,e),u=jz(l,6),d=Oz(u,"AMOUNT",10),f=g/2,b=e*(y+r),w=f+h/2,M=w-25,k=m+25-10,C=b+(y-a)/2,O=w+15,j=k-25-15,E=C,_=f-16,S=b+y/2-16,$=`${s.replace("#","")}-funnel-${e}`;return{background:V(J,{x:M,y:C,width:k,height:a,ry:"8",fill:(0,wl.A)(s).setAlpha(.1).toRgbString(),"data-element-type":"shape"}),funnel:[V(q,{children:U("linearGradient",{id:$,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[V("stop",{offset:"0%",stopColor:(0,wl.A)(s).lighten(10).toString()}),V("stop",{offset:"100%",stopColor:s})]})}),V(Q,{points:d,fill:`url(#${$})`,y:b,"data-element-type":"shape",style:{filter:"drop-shadow(0px 2px 3px rgba(0,0,0,0.15))"}})],icon:V(Hu,{indexes:o,x:_,y:S,size:32,fill:"#fff"}),item:V(n,{indexes:o,datum:t,data:i,x:O,y:E,width:j,height:a,positionV:"middle"}),btnRemove:V(zu,{indexes:o,x:M+k,y:C})}}),w=V(Au,{indexes:[d.length],x:o/2,y:v+10});return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,U(X,{width:o,height:v+40,children:[V(X,{children:b.map(t=>t.background)}),V(X,{children:b.flatMap(t=>t.funnel)}),V(X,{children:b.map(t=>t.icon)}),V(Vu,{children:b.map(t=>t.item)}),U(Pu,{children:[b.map(t=>t.btnRemove),w]})]})]})},composites:["title","item"]});Mg("sequence-horizontal-zigzag",{component:t=>{const{Title:e,Item:n,data:i,gap:r=30,cardPadding:o=10,options:s}=t,{title:a,desc:l,items:c=[]}=i,h=e?V(e,{title:a,desc:l}):null,u=ld(s),d=ud({colorPrimary:u},s),f=du(V(Au,{indexes:[0]})),p=du(V(n,{indexes:[0],data:i,datum:c[0],positionH:"center"})),g=[],m=[],y=[],v=p.width+2*o,x=p.height+2*o+30,b=Math.max(f.height+20,40),w=40;if(c.forEach((t,e)=>{const a=e%2==0,l=e*(v+r);let h;h=a?e%4==2?b:b+w:b+w+60;const M=[e],k=hd(s,M)||u;if(a){const t=V(J,{x:l,y:h,width:v,height:x,fill:k===u?d.colorPrimaryBg||"#E8F3FF":`${k}20`,rx:20,ry:20});y.push(t)}m.push(V(n,{indexes:M,datum:t,data:i,x:l+o,y:h+o,positionH:"center",positionV:"normal"}));const C=l+(v-(8*c.length+6*(c.length-1)))/2,O=h+p.height+20;for(let t=0;t<c.length;t++){y.push(V(G,{x:C+14*t,y:O,width:8,height:8,fill:t===e?k:"transparent",stroke:k,strokeWidth:2}))}g.push(V(zu,{indexes:M,x:l+(v-f.width)/2,y:h+x+10})),g.push(V(Au,0===e?{indexes:M,x:l+(v-f.width)/2,y:h-f.height-10}:{indexes:M,x:l-r/2-f.width/2,y:b-f.height-10}))}),c.length>0){const t=[],e=35,n=r/2,i=6,o=0-n,a=b+w+x/2;t.push(`M ${o} ${a-i}`),c.forEach((o,s)=>{const a=s%2==0,l=s*(v+r);let c;c=a?s%4==2?b:b+w:b+w+60;const h=l-n,u=l+v+n,d=c-n,f=c+x+n,p=c+x/2;a?(t.push(`L ${h} ${d+e}`),t.push(`Q ${h} ${d} ${h+e} ${d}`),t.push(`L ${u-e} ${d}`),t.push(`Q ${u} ${d} ${u} ${d+e}`),t.push(`L ${u} ${p-i}`)):(t.push(`L ${h} ${p}`),t.push(`L ${h} ${f-e}`),t.push(`Q ${h} ${f} ${h+e} ${f}`),t.push(`L ${u-e} ${f}`),t.push(`Q ${u} ${f} ${u} ${f-e}`),t.push(`L ${u} ${p+i}`))});const l=c.length-1;let h;h=l%2==0?l%4==2?b:b+w:b+w+60;const d=l*(v+r)+v+n,f=h+x/2,p=t.join(" "),g="gradient-zigzag-path",m=hd(s,[0])||u,M=hd(s,[c.length-1])||u,k=c.map((t,e)=>V("stop",{offset:`${e/(c.length-1)*100}%`,stopColor:hd(s,[e])||u}));y.unshift(U(D,{children:[V(q,{children:V("linearGradient",{id:g,x1:o,y1:a,x2:d,y2:f,gradientUnits:"userSpaceOnUse",children:k})}),V(K,{d:p,stroke:`url(#${g})`,strokeWidth:2,fill:"none",width:(c.length-1)*(v+r)+v+2*n,height:x+120})]})),y.unshift(V(G,{x:o-i,y:a-i,width:2*i,height:2*i,fill:"transparent",stroke:m,strokeWidth:2})),y.unshift(V(G,{x:d-i,y:f-i,width:2*i,height:2*i,fill:"transparent",stroke:M,strokeWidth:2}))}if(c.length>0){g.push(V(Au,{indexes:[c.length],x:(c.length-1)*(v+r)+v+(r-f.width)/2,y:b-f.height-10}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,U(X,{children:[V(qu,{children:y}),V(Vu,{children:m}),V(Pu,{children:g})]})]})},composites:["title","item"]});const Az=350,zz=80,Pz=2,Lz=2,Iz=40,Tz=60,Rz=10;function Bz(t){const{width:e,height:n,colorPrimary:i}=t,r=i,o=wl.A.mix(i,"#000",20).toHexString(),s=wl.A.mix(i,"#fff",50).toHexString(),a=wl.A.mix(s,"#000",15).toHexString();const{leftRipples:l,rightRipples:c,leftBottom:h,rightBottom:u,peak:d,centerBottom:f,leftEdge:p,centerSnow:g,rightEdge:m}=function(t,e){const n={x:0,y:e},i={x:t,y:e},r={x:t/2,y:0},o={x:t/2,y:e},s=.35*e,a=s/e,l={x:r.x*(1-a)+n.x*a,y:s},c={x:r.x,y:s},h={x:r.x*(1-a)+i.x*a,y:s},u=[{position:.25,offset:.1},{position:.45,offset:-.02},{position:.6,offset:.04},{position:.75,offset:-.1}].map(t=>({x:l.x+(h.x-l.x)*t.position,y:s+e*t.offset,position:t.position,offset:t.offset}));u.sort((t,e)=>t.position-e.position);const d=u.filter(t=>t.x<=c.x),f=u.filter(t=>t.x>c.x);return{leftBottom:n,rightBottom:i,peak:r,centerBottom:o,snowLineY:s,leftEdge:l,centerSnow:c,rightEdge:h,leftRipples:d,rightRipples:f}}(e,n),y=[d,p,...l,g],v=[d,g,...c,m],x=[p,...l,g,f,h],b=[g,...c,m,u,f],w=t=>t.map(t=>`${t.x},${t.y}`).join(" ");return U(qu,Object.assign({},t,{children:[V("polygon",{points:w(y),fill:s}),V("polygon",{points:w(v),fill:a}),V("polygon",{points:w(x),fill:r}),V("polygon",{points:w(b),fill:o})]}))}function Wz(t){const e={tiny:27,small:48,medium:54,large:72}[t]||54,n=.7*e,i=e-n,r=.8*n,o=r/6,s=(r-o)/2,a=n;return U(qu,{width:r,height:e,children:[V("ellipse",{cx:r/2,cy:n/2,rx:r/2,ry:n/2,fill:"#17C76F",clipPath:"inset(0 50% 0 0)"}),V("ellipse",{cx:r/2,cy:n/2,rx:r/2,ry:n/2,fill:"#139B57",clipPath:"inset(0 0 0 50%)"}),V("rect",{x:s,y:a,width:o,height:i,fill:"#737373"})]})}function Hz(t){const{width:e,height:n}=t,i=e/2,r=n/2,o=.28*Math.min(e,n),s=.14*Math.min(e,n),a=.07*Math.min(e,n),l=r-a/2,c=.4*a,h=Array.from({length:8},(t,e)=>V("rect",{x:0,y:l,width:s,height:a,rx:c,ry:c,fill:"#FFCB0E",transform:`rotate(${45*e}, ${i}, ${r})`}));return U(qu,Object.assign({},t,{children:[V("circle",{cx:i,cy:r,r:o,fill:"#FFCB0E"}),...h]}))}function Nz(t){return"single"===t.type?V(qu,Object.assign({},t,{width:54,height:36,children:V("path",{d:"M10.2635 13.3806C11.0019 9.99045 12.7381 6.91002 15.2405 4.55004C17.743 2.19007 20.8929 0.662716 24.2701 0.171643C27.6473 -0.31943 31.0914 0.24912 34.143 1.80148C37.1946 3.35385 39.7087 5.81625 41.3501 8.86031C44.8835 9.0468 48.1994 10.6544 50.5684 13.3294C52.9373 16.0044 54.1653 19.5277 53.9821 23.1242C53.7989 26.7207 52.2195 30.0959 49.5914 32.5071C46.9634 34.9184 43.5019 36.1683 39.9684 35.9818H11.1517C4.93436 35.9818 0 30.9593 0 24.6309C0.0598447 21.8016 1.13799 19.093 3.02989 17.0192C4.9218 14.9454 7.49584 13.6506 10.2635 13.3806Z",fill:"#70CAF8"})})):U(qu,Object.assign({},t,{width:73,height:40,children:[V("path",{d:"M61.6461 14.9716C60.8681 11.1875 58.9581 7.73823 56.1763 5.09315C53.3944 2.44806 49.8758 0.735682 46.0992 0.189041C42.3226 -0.357601 38.4714 0.288046 35.0699 2.03812C31.6683 3.7882 28.8815 6.5577 27.0889 9.96971C23.161 10.1687 19.4719 11.9405 16.8333 14.8953C14.1947 17.8502 12.8227 21.746 13.0191 25.7258C13.2155 29.7055 14.9642 33.4433 17.8806 36.1167C20.7969 38.7901 24.642 40.1802 28.5699 39.9812H60.6588C67.5702 39.9812 73.0006 34.4791 73.0006 27.4764C73.0006 20.9739 67.8664 15.4718 61.6461 14.9716Z",fill:"#70CAF8"}),V("path",{d:"M21.9691 6.47136e-09C25.9369 6.47136e-09 29.5264 1.62125 32.0003 4.21094C30.0604 5.7917 28.4423 7.75571 27.2581 10C23.3149 10.1989 19.6111 11.9702 16.9622 14.9238C14.3136 17.8774 12.936 21.772 13.1331 25.75C13.2057 27.2131 13.4902 28.6432 13.9652 30H10.7689C7.96116 29.8907 5.29664 28.7203 3.30402 26.7217C1.31144 24.7231 0.135825 22.0419 0.0110544 19.21C-0.113702 16.378 0.821178 13.6017 2.63019 11.4326C4.43921 9.26356 6.99065 7.8602 9.77766 7.5C11.9582 3.00012 16.6168 8.76701e-05 21.9691 6.47136e-09Z",fill:"#5BA2C6"})]}))}Mg("sequence-interaction",{component:t=>{var e,n,i,r,o,s,a;const l=Math.random().toString(36).slice(2,9),{Title:c,Item:h,data:u,laneGap:d=Az,nodeGap:f=zz,lifelineWidth:p=Pz,arrowWidth:g=Lz,showLifeline:m=!0,padding:y=Iz,arrowType:v="triangle",showLaneHeader:x=!0,laneHeaderHeight:b=Tz,edgeStyle:w="solid",animated:M=!1,edgeColorMode:k="gradient",options:C}=t,O=ud(C.themeConfig,C),j=null!==(e=null==O?void 0:O.colorText)&&void 0!==e?e:"#333333",E=null!==(n=null==O?void 0:O.colorBg)&&void 0!==n?n:"#ffffff",_=null!==(i=null==O?void 0:O.colorTextSecondary)&&void 0!==i?i:"#e0e0e0",S=u,{title:$,desc:A,items:z=[],relations:P=[]}=S,L=c?V(c,{title:$,desc:A}):null;if(!z||0===z.length){const t=du(V(Au,{indexes:[0]}));return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[L,U(X,{children:[V(Pu,{children:V(Au,{indexes:[0],x:-t.width/2,y:-t.height/2})}),V(su,{x:0,y:t.height/2+Rz,width:200,height:40,fontSize:14,alignHorizontal:"center",alignVertical:"middle",fill:null!==(r=null==O?void 0:O.colorTextSecondary)&&void 0!==r?r:"#999",children:"暂无数据"})]})]})}const I=z;let T=0;I.forEach(t=>{var e;null===(e=t.children)||void 0===e||e.forEach((t,e)=>{var n;const i=null!==(n=t.step)&&void 0!==n?n:e;i>T&&(T=i)})});const R=Math.max(1,T+1),B=new Map,W=null===(o=C.design)||void 0===o?void 0:o.item,H=Array.isArray(W)?W[0]:W;let N=null!==(s=null==H?void 0:H.width)&&void 0!==s?s:120,F=null!==(a=null==H?void 0:H.height)&&void 0!==a?a:50;const D=[];if(I.forEach((t,e)=>{var n;null===(n=t.children)||void 0===n||n.forEach((t,n)=>{D.push({datum:t,laneIndex:e,rowIndex:n})})}),(!(null==H?void 0:H.width)||!(null==H?void 0:H.height))&&h&&D.length>0){const t=du(V(h,{indexes:[0],datum:D[0].datum,positionH:"center",positionV:"middle"}));t.width>0&&(N=t.width),t.height>0&&(F=t.height)}let Y=0;P.forEach(t=>{if(t.label){const e=du(V(su,{fontSize:14,fontWeight:"normal",children:t.label}));Y=Math.max(Y,e.width)}});const G=Math.max(d,N+60,N+Y+120),Z=x?b:0,Q=20+R*F+Math.max(0,R-1)*f,tt=Z+Q+2*y+60,et=G*I.length+2*y,nt=t=>y+G/2+t*G,it=t=>y+Z+20+t*(F+f)+F/2,rt=[],ot=[],st=[],at=[];if(x&&I.forEach((t,e)=>{const n=nt(e),i=ud({colorPrimary:hd(C,[e])},C);h&&(ot.push(V(h,{indexes:[e],datum:{label:t.label,icon:t.icon,desc:t.desc},x:n-N/2,y,width:N,height:b-10,themeColors:i,positionH:"center"})),at.push(V(zu,{indexes:[e],x:n+N/2-Rz,y:y-Rz})))}),I.forEach((t,e)=>{var n,i,r,o;null===(n=t.children)||void 0===n||n.forEach((t,n)=>{var i,r;const o=null!==(i=t.step)&&void 0!==i?i:n,s=nt(e),a=it(o),l=s-N/2,c=a-F/2;B.set(t.id,{x:l,y:c,width:N,height:F,centerX:s,centerY:a,laneIndex:e,rowIndex:o});const d=hd(C,[e]),f=ud({colorPrimary:d},C),p=[e,n],g=Object.assign(Object.assign({},t),{_originalIndex:p});h?(rt.push(V(h,{indexes:p,datum:g,data:u,x:l,y:c,positionH:"center",positionV:"middle",themeColors:f})),at.push(V(zu,{indexes:p,x:l+N/2-Rz,y:c+F+5}))):(ot.push(V(J,{x:l,y:c,width:N,height:F,fill:null!==(r=null==f?void 0:f.colorPrimaryBg)&&void 0!==r?r:E,stroke:d,strokeWidth:2,rx:6,"data-element-type":"shape"})),t.label&&ot.push(V(su,{x:l,y:c,width:N,height:F,fontSize:14,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:j,children:t.label})))});const s=null!==(r=null===(i=t.children)||void 0===i?void 0:i.length)&&void 0!==r?r:0;let a=-1;null===(o=t.children)||void 0===o||o.forEach((t,e)=>{var n;const i=null!==(n=t.step)&&void 0!==n?n:e;i>a&&(a=i)});const l=a>=0?it(a):y+Z,c=s>0?l+F/2+20:l+20+Rz,d=nt(e);at.push(V(Au,{indexes:[e,s],x:d-12,y:c}))}),m){const t=new Map;B.forEach(e=>{let n=t.get(e.laneIndex);n||(n=[],t.set(e.laneIndex,n)),n.push({x:e.x,y:e.y,width:e.width,height:e.height})}),I.forEach((e,n)=>{var i;const r=nt(n),o=y+Z,s=tt-y,a=null!==(i=t.get(n))&&void 0!==i?i:[];let c;if(a.length>0){const t=`lifeline-mask-${l}-${n}`;st.push(U("mask",{id:t,maskUnits:"userSpaceOnUse",x:0,y:0,width:et,height:tt,children:[V(J,{x:0,y:0,width:et,height:tt,fill:"white"}),a.map(t=>V(J,{x:t.x,y:t.y-2,width:t.width,height:t.height+4,fill:"black"}))]})),c=`url(#${t})`}ot.push(V(K,{d:`M ${r} ${o} L ${r} ${s}`,stroke:_,strokeWidth:p,strokeDasharray:"5,5",fill:"none","data-element-type":"shape",mask:c})),ot.push(...dd(r,s,Math.PI/2,"triangle",_,1,10))})}const lt=nt(I.length-1)+G/2;at.push(V(Au,{indexes:[I.length],x:I.length>0?lt+20:y,y:y+Z/2-12}));const ct=new Map,ht=new Map,ut=new Map;return P.forEach(t=>{var e;const n=`${t.from}-${t.to}`;ct.has(n)||ct.set(n,[]),null===(e=ct.get(n))||void 0===e||e.push(t);const i=String(t.from),r=String(t.to);i!==r&&(ut.set(i,(ut.get(i)||0)+1),ht.set(r,(ht.get(r)||0)+1))}),P.forEach((t,e)=>{var n,i;const r=String(t.from),o=String(t.to),s=B.get(r),a=B.get(o);if(!s||!a)return;const c=hd(C,[s.laneIndex])||"#000000",h=hd(C,[a.laneIndex])||"#000000",u=ld(C);let d=u||"#999999",f=u||"#999999",p=u||"#999999";const m=`arrow-gradient-${l}-${e}`;"gradient"===k&&(d=`url(#${m})`,f=h,p=c);const{points:y}=((t,e,n,i,r,o,s,a,l)=>{const c=fd(n),h=fd(i),u=r.has(`${e}-${t}`),d=0===n.laneIndex;let f=[];if(t===e){const t=d?c.LT:c.RT,e=d?c.LB:c.RB,n=d?-40:40;f=[[t.x,t.y],[t.x+n,t.y],[e.x+n,e.y],[e.x,e.y]]}else if(n.laneIndex===i.laneIndex){const t=d?c.LB:c.RB,e=d?h.LT:h.RT,n=d?-40:40;f=[[t.x,t.y],[t.x+n,t.y],[e.x+n,e.y],[e.x,e.y]]}else{const t=i.centerX>n.centerX,e=i.centerX<n.centerX,r=Math.abs(n.centerY-i.centerY)<1,d=i.centerY>n.centerY,p=i.x>=n.x+n.width;let g,m;if(r?(g=t?c.RC:c.LC,m=t?h.LC:h.RC):u?d?(g=t?c.RB:c.LT,m=t?h.LT:h.RB):(g=t?c.RT:c.LT,m=t?h.LB:h.RB):(m=1===s&&0===l?t?h.LC:h.RC:d?p?h.LT:h.RT:p?h.LB:h.RB,g=1===o&&0===a?t?c.RC:c.LC:t?c.RB:e?c.LB:c.RB),u&&!r){const t=[g.x,g.y],e=[m.x,m.y];f=[t,[(t[0]+e[0])/2,t[1]],e]}else if(u&&r){const t=[g.x,g.y],e=[m.x,m.y],n=(t[1]+e[1])/2,i=30;f=[t,[(t[0]+e[0])/2,t[0]<e[0]?n-i:n+i],e]}else f=[[g.x,g.y],[m.x,m.y]]}return{points:f}})(r,o,s,a,ct,ut.get(r)||0,ht.get(o)||0,ht.get(r)||0,ut.get(o)||0);let x,b=null;if(t.label){const n=gd(y);if(n){const i=n[0],r=n[1]-10,o=du(V(Du,{indexes:[e],fontSize:14,fontWeight:"normal",children:t.label})),s=i-o.width/2,a=r-o.height/2,c=o.width,h=o.height;x=`edge-mask-${l}-${e}`,st.push(U("mask",{id:x,maskUnits:"userSpaceOnUse",x:0,y:0,width:et,height:tt,children:[V(J,{x:0,y:0,width:et,height:tt,fill:"white"}),V(J,{x:s,y:a,width:c,height:h,fill:"black"})]})),b=V(Du,{indexes:[e],x:i-o.width/2,y:r-o.height/2,width:o.width,height:o.height,fontSize:14,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:j,children:t.label})}}const O=(t=>{const e=t.length;if(4===e){const[e,n,i,r]=t;return`M ${e[0]} ${e[1]} C ${n[0]} ${n[1]} ${i[0]} ${i[1]} ${r[0]} ${r[1]}`}if(3===e){const[e,n,i]=t;return`M ${e[0]} ${e[1]} Q ${n[0]} ${n[1]} ${i[0]} ${i[1]}`}if(2===e){const[e,n]=t;return`M ${e[0]} ${e[1]} L ${n[0]} ${n[1]}`}return""})(y);if("gradient"===k){const t=y[0],e=y[y.length-1];st.push(U("linearGradient",{id:m,gradientUnits:"userSpaceOnUse",x1:t[0],y1:t[1],x2:e[0],y2:e[1],children:[V("stop",{offset:"0%",stopColor:c}),V("stop",{offset:"100%",stopColor:h})]}))}ot.push(V(K,{d:O,stroke:d,strokeWidth:g,fill:"none","data-element-type":"shape",mask:x?`url(#${x})`:void 0,strokeDasharray:"solid"===t.lineStyle?void 0:"dashed"===(null!==(n=t.lineStyle)&&void 0!==n?n:w)||M?"5,5":void 0,children:M&&V("animate",{attributeName:"stroke-dashoffset",from:"10",to:"0",dur:"1s",repeatCount:"indefinite"})}));const E=null!==(i=t.direction)&&void 0!==i?i:"forward";[{show:"forward"===E||"both"===E,angle:pd(y,1),point:y[y.length-1],color:f},{show:"both"===E,angle:pd(y,0)+Math.PI,point:y[0],color:p}].forEach(e=>{var n;e.show&&ot.push(...dd(e.point[0],e.point[1],e.angle,null!==(n=t.arrowType)&&void 0!==n?n:v,e.color,g,14))}),b&&ot.push(b)}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c?V(c,{title:$,desc:A}):null,U(X,{children:[V(J,{x:0,y:0,width:et,height:tt,fill:"none"}),V(q,{children:st}),V(X,{children:ot}),V(Vu,{children:rt}),V(Pu,{children:at})]})]})},composites:["title","item"]});Mg("sequence-mountain",{component:t=>{const{Title:e,Item:n,data:i,gap:r=20,minHeight:o=100,maxHeight:s=200,minWidth:a=260,maxWidth:l=300,options:c}=t,{title:h,desc:u,items:d=[]}=i,f=e?V(e,{title:h,desc:u}):null,p=[],g=[],m=[],y=[],v=d.length,x=ud(c.themeConfig),b={single:{width:54,height:36},double:{width:73,height:40}},w=[],M=[];let k=0,C=0;d.forEach((t,e)=>{const n=Math.max(a,Math.min(l,1.6*(o+(s-o)*(v>1?e/(v-1):0))));w.push(n);const i=C;M.push(i),C+=n/2,e===v-1&&(k=i+n)});const O=M[0],j=M[v-1]+w[v-1],E=j-O,_=v>1?(E-r*(v-1))/v:E,S=du(V(n,{indexes:[0],data:i,datum:d[0],width:_})),$=s+r,A=$+32+10;d.forEach((t,e)=>{const a=[e],l=o+(s-o)*(v>1?e/(v-1):0),h=w[e],u=M[e],d=s-l,f=hd(c,[e])||x.colorPrimary;m.push(V(Bz,{colorPrimary:f,x:u,y:d,width:h,height:l}));const g=O+e*(_+r);y.push(V(su,{x:g,y:$,width:_,height:32,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:f,backgroundColor:f,backgroundOpacity:.5,backgroundRadius:4,children:String(e+1).padStart(2,"0")})),p.push(V(n,{indexes:a,datum:t,data:i,x:g,y:A,width:_}))});const z=du(V(Au,{indexes:[0]})),P=A+S.height+10;if(d.forEach((t,e)=>{const n=O+e*(_+r);g.push(V(zu,{indexes:[e],x:n+_/2-z.width/2,y:P})),e<d.length-1&&g.push(V(Au,{indexes:[e+1],x:n+_+r/2-z.width/2,y:P}))}),v>0){g.unshift(V(Au,{indexes:[0],x:O-r/2-z.width/2,y:P}));g.push(V(Au,{indexes:[v],x:O+(v-1)*(_+r)+_+r/2-z.width/2,y:P})),m.push(V(Hz,{x:k-60-20,y:-35,width:60,height:60}));const t=["tiny","small","medium","large"],e={tiny:27,small:48,medium:54,large:72},n={tiny:14.85,small:26.4,medium:29.7,large:39.6},i=[],o=(t,e,n=5)=>i.some(i=>!(t+e+n<i.x||t>i.x+i.width+n));d.forEach((r,a)=>{const l=M[a],c=w[a],h=a===v-1?3:0===a?1:2;for(let r=0;r<h;r++){const h=100*a+37*r,u=t[17*h%t.length],d=e[u],f=n[u];let p=0,g=0,y=!1;for(;p<20&&!y;){const t=l+.15*c;g=t+(l+.85*c-f-t)*((13*h+19*p)%100/100),o(g,f)||(y=!0),p++}if(y){i.push({x:g,width:f});m.push(V(X,{x:g,y:s-d,children:Wz(u)}))}}});const a=Math.max(1,Math.floor(v/1.5));for(let t=0;t<a;t++){const e=11*t+5*v+1,n=e%2==0?"single":"double",i=b[n];m.push(V(Nz,{type:n,x:O+7*e%100/100*(j-O-i.width),y:13*e%40,width:i.width,height:i.height}))}}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,U(X,{children:[V(X,{children:m}),V(X,{children:y}),V(Vu,{children:p}),V(Pu,{children:g})]})]})},composites:["title","item"]});Mg("sequence-pyramid",{component:t=>{const{Title:e,Item:n,data:i,gap:r=10,width:o=700,pyramidWidth:s,itemHeight:a=60,options:l}=t,{title:c,desc:h,items:u=[]}=i,d=e?V(e,{title:c,desc:h}):null;if(0===u.length)return V(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:d});const f=ud(l.themeConfig),p=[],g=[],m=[],y=[],v=null!=s?s:.6*o,x=o-v,b=1.2*a,w=u.length*b+(u.length-1)*r;return u.forEach((t,e)=>{const o=[e],s=0===e,c=hd(l,[e])||f.colorPrimary,{points:h,topWidth:d,bottomWidth:w}=function(t,e,n,i,r){const o=t/2,s=i*e+(i-1)*n,a=r*(e+n),l=a/s*t,c=(a+e)/s*t;let h;if(0===r){h=[{x:o,y:0},{x:o+c/2,y:e},{x:o-c/2,y:e}]}else{h=[{x:o+l/2,y:0},{x:o+c/2,y:e},{x:o-c/2,y:e},{x:o-l/2,y:0}]}return{points:h,topWidth:l,bottomWidth:c}}(v,b,r,u.length,e),M=jz(h,5),k=Oz(M,"AMOUNT",10),C=v/2,O=e*(b+r),j=O+(b-a)/2,E=C+w/2,_=C+d/2-5,S=x+5,$=C-15,A=O+b/2-15+(s?8:0),z=E,P=_+S-E,L=j;m.push(V(J,{x:_,y:j,width:S,height:a,ry:"10",fill:f.colorPrimaryBg,"data-element-type":"shape"}));const I=`${c}-pyramid-${e}`;g.push(V(q,{children:U("linearGradient",{id:I,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[V("stop",{offset:"0","stop-color":c}),V("stop",{offset:"100%","stop-color":wl.A.mix(c,"#fff",40).toHexString()})]})}),V(Q,{points:k,fill:`url(#${I})`,y:O,"data-element-type":"shape"})),y.push(V(Hu,{indexes:o,x:$,y:A,size:30,fill:"#fff"})),p.push(V(n,{indexes:o,datum:t,data:i,x:z,y:L,width:P,height:a,positionV:"middle"}))}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,U(X,{width:o,height:w,children:[V(X,{children:m}),V(X,{children:g}),V(X,{children:y}),V(Vu,{children:p}),V(Pu,{})]})]})},composites:["title","item"]});const Fz={iconSize:50,roadWidth:24,outerRadius:60,rowWidth:400,spacing:30,colorDefault:"#666666"},Dz=(t,e)=>`M ${t} ${e}`,Vz=(t,e)=>`L ${t} ${e}`,Uz=(t,e,n,i)=>`A ${t} ${t} 0 0 ${e} ${n} ${i}`,Yz=(t,{roadWidth:e,innerRadius:n,outerRadius:i})=>{const r=(e+2*n)*t;return{y1:r,y2:r+e,y3:r+e+n,y4:r+e+2*n,y5:r+2*i}};function qz({i:t,direction:e,x:n,y:i,color:r,data:o,itemBounds:s,item:a,Item:l,flipped:c}){const{iconSize:h}=Fz,u="left"===e,d=u?n.x4-h/2:n.x3-h/2,f=i.y3-h/2,p=u?n.x6+Fz.spacing:n.x1-Fz.spacing-s.width,g=i.y3-s.height/2,m=u?c?"flipped":"normal":c?"normal":"flipped";return{icon:V(Nu,{indexes:[t],x:d,y:f,size:h,fill:r}),label:V(su,{width:40,x:u?d-50:d+h+10,y:f+h/2-15,fontSize:30,fill:r,alignHorizontal:u?"right":"left",children:String(t+1).padStart(2,"0")}),item:V(l,{indexes:[t],data:o,datum:a,x:p,y:g,positionH:m})}}function Gz({direction:t,x:e,y:n,color:i,elements:r}){const o="left"===t;r.push(V(XA,{x:o?e.x6+10:e.x1-20,y:n.y3-5,width:10,height:8,rotation:o?90:-90,colorPrimary:i,"data-element-type":"shape"}))}Mg("sequence-roadmap-vertical",{component:t=>{const{Title:e,Item:n,data:i,spacing:r=Fz.spacing,options:o,flipped:s=!1}=t,{title:a,desc:l,items:c=[]}=i,h=e?V(e,{title:a,desc:l}):null,u=du(V(n,{indexes:[0],data:i,datum:c[0],positionH:"center"})),{roadWidth:d,outerRadius:f,rowWidth:p,colorDefault:g}=Fz,m=d/2,y=f-d,v=2*(u.width+r)+p,x=u.width+r,b=x+f,w=x+p-f,M=w+y+d,k=x+p/2,C=[],O=[],j=[],E=[],_=[],S=[],$=[];for(let t=0;t<c.length;t++){const e=hd(o,[t])||g,r=t%2==0?"right":"left",a=0===t,l=t===c.length-1,h=Yz(t,{roadWidth:d,innerRadius:y,outerRadius:f});if("right"===r){const t=a?[M,h.y1]:[w,h.y1],e=[b,h.y1],n=[b,h.y5],i=a?[M,h.y2]:[w,h.y2],r=[b,h.y2];if(C.push(a?Dz(M,h.y1+m):Vz(w,h.y1+m),Vz(b,h.y1+m),Uz(f-m,0,b,h.y4+m)),O.push(a?Dz(...t):Vz(...t),Vz(...e),Uz(f,0,...n)),j.push(Vz(...i),Vz(...r),Uz(y,1,...r)),l){const t=d/2;O.push(Vz(k,h.y5),Vz(k,h.y5+t),Vz(k+d,h.y5-t),Vz(k,h.y4-t),Vz(k,h.y4),Vz(b,h.y4)),C.push(Vz(k,h.y4+m))}}else{const t=[b,h.y2],e=[w,h.y2],n=[w,h.y4],i=[b,h.y1],r=[w,h.y1];if(C.push(Vz(w,h.y1+m),Uz(f-m,1,w,h.y4+m)),O.push(Vz(...t),Vz(...e),Uz(y,1,...n)),j.push(Vz(...i),Vz(...r),Uz(f,0,...r)),l){const t=d/2;O.push(Vz(k,h.y4),Vz(k,h.y4-t),Vz(k-d,h.y4+t),Vz(k,h.y5+t),Vz(k,h.y5),Vz(w,h.y5)),C.push(Vz(k,h.y4+m))}}Gz({direction:r,x:{x1:x,x4:w,x6:M},y:h,color:e,elements:$});const{icon:p,label:v,item:A}=qz({i:t,direction:r,x:{x1:x,x3:b,x4:w,x6:M},y:h,color:e,data:i,itemBounds:u,item:c[t],Item:n,flipped:s});E.push(p),_.push(v),S.push(A)}const A=[...O,...j.reverse(),"Z"],z=c.length*(d+2*y)+1.5*d;return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,U(X,{width:v,height:u.height<=2*f?z:z+u.height-2*f,children:[V(K,{width:p,height:z,d:A.join(" "),fill:g,stroke:g,strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),V(K,{d:C.join(" "),stroke:"white",fill:"none",strokeWidth:"3",strokeDasharray:"8 8",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),U(D,{children:[E,_,S,$]})]})]})},composites:["title","item"]});Mg("sequence-snake-steps",{component:t=>{const{Title:e,Item:n,data:i,gap:r=40,itemsPerRow:o=3,rowGap:s=80,options:a}=t,{title:l,desc:c,items:h=[]}=i,u=e?V(e,{title:l,desc:c}):null,d=ld(a),f=du(V(Au,{indexes:[0]})),p=du(V(n,{indexes:[0],data:i,datum:h[0],positionH:"center"})),g=[],m=[],y=[],v=25;if(h.forEach((t,e)=>{const a=Math.floor(e/o),l=e%o,c=a%2==1,u=(c?o-1-l:l)*(p.width+r),x=a*(p.height+s),b=[e];if(m.push(V(n,{indexes:b,datum:t,data:i,x:u,y:x,positionH:"center"})),g.push(V(zu,{indexes:b,x:u+(p.width-f.width)/2,y:x+p.height+10})),0===e&&g.push(V(Au,{indexes:b,x:u+(p.width-f.width)/2,y:x-f.height-10})),e<h.length-1){const t=Math.floor((e+1)/o),n=(e+1)%o;if(a===t){const i=c?(t%2==1?o-1-n:n)*(p.width+r)+p.width+(r-v)/2:u+p.width+(r-v)/2;y.push(V(YA,{x:i,y:x+p.height/2-12.5,width:v,height:25,colorPrimary:d,rotation:c?180:0})),g.push(V(Au,{indexes:[e+1],x:i+(v-f.width)/2,y:x-f.height-10}))}else{const t=u+p.width/2-12.5,n=x+p.height+(s-25)/2;y.push(V(YA,{x:t,y:n,width:v,height:25,colorPrimary:d,rotation:90})),g.push(V(Au,{indexes:[e+1],x:t+(v-f.width)/2,y:n+(25-f.height)/2}))}}}),h.length>0){const t=h.length-1,e=Math.floor(t/o),n=t%o;g.push(V(Au,{indexes:[h.length],x:(e%2==1?o-1-n:n)*(p.width+r)+(p.width-f.width)/2,y:e*(p.height+s)+p.height+f.height+20}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,U(X,{children:[V(X,{children:y}),V(Vu,{children:m}),V(Pu,{children:g})]})]})},composites:["title","item"]});Mg("sequence-stairs-front",{component:t=>{const{Title:e,Item:n,data:i,options:r,gap:o=16,perspectiveFactor:s=.2,width:a=720}=t,{title:l,desc:c,items:h=[]}=i,u=e?V(e,{title:l,desc:c}):null;if(0===h.length){const t=V(Au,{indexes:[0],x:0,y:0});return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,V(X,{children:V(Pu,{children:t})})]})}const d=ld(r),f=du(V(Au,{indexes:[0]})),p=du(V(n,{indexes:[0],data:i,datum:h[0]||{},positionH:"center"})),g=Math.min(.1*a,100),m=Math.min(.45*a,Math.max(80,a-p.width-12-g)),y=Math.max(24,m*s*.35),v=h.length>1?(56-56*.7)/(h.length-1):0,x=Math.max(f.height+y+20,y+28),b=m/2,w=m+g+12,M=h.map((t,e)=>56-v*e),k=h.map((t,e)=>Math.max(y*(1-.05*e),.7*y)),C=[],O=[],j=h.length-1;C[j]=x,O[j]=0;for(let t=j-1;t>=0;t-=1)O[t]=O[t+1]+k[t]+o,C[t]=C[t+1]+k[t]+M[t+1]+o;const E=O[0]||k[0]||y,_=m*(.55+.1*s),S=m-_,$=h.map((t,e)=>_+S*(0===E?1:O[e]/E)),A=$.map(t=>Math.max(0,w-12-(b+t/2))),z=[],P=[],L=[],I=[],T=[],R=(C[0]||x)+(M[0]||56),B=.8*($[j]||_),W=.65*B,H=.9*($[0]||m);T.push(V(Q,{points:[{x:b,y:0},{x:b+B/2,y:35},{x:b+W/2,y:35},{x:b+H/2,y:R},{x:b-H/2,y:R},{x:b-W/2,y:35},{x:b-B/2,y:35}],fill:"rgba(0,0,0,0.12)",width:H,height:R-0,"data-element-type":"shape"}));let N=C[j]+M[j]/2;h.forEach((t,e)=>{const o=[e],s=$[e],a=k[e],l=b-s/2,c=M[e],h=C[e],u=h-a,g=h+c/2,m=hd(r,o)||d;z.push(V(J,{x:l,y:h,width:s,height:c,fill:m,"data-element-type":"shape"}),V(Q,{points:[{x:l,y:h},{x:l+s,y:h},{x:l+s-a/2,y:u},{x:l+a/2,y:u}],fill:m,opacity:"0.3",width:s,height:a,"data-element-type":"shape"}),V(su,{x:l,y:h,width:s,height:c,fontSize:c/2,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:"#ffffff",children:String(e+1).padStart(2,"0")}));const y=l+s,v=g,x=A[e],O=y+x;I.push(V(K,{d:`M ${y} ${v} L ${O} ${v}`,stroke:m,strokeWidth:2,fill:"none",width:x,height:2,"data-element-type":"shape"}),V(K,{d:`M ${O} ${v} L ${O} ${v}`,stroke:m,strokeWidth:6,strokeLinecap:"round",width:1,height:1,"data-element-type":"shape"}));const j=g-p.height/2;P.push(V(n,{indexes:o,datum:t,data:i,x:w,y:j,positionV:"middle"})),L.push(V(zu,{indexes:o,x:w+p.width+10,y:j+p.height/2-f.height/2})),L.push(V(Au,0===e?{indexes:[0],x:w+(p.width-f.width)/2,y:j-f.height-12}:{indexes:o,x:w+(p.width-f.width)/2,y:(N+g)/2-f.height/2})),N=g});return L.push(V(Au,{indexes:[h.length],x:w+(p.width-f.width)/2,y:N-p.height/2+p.height+12})),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,U(X,{children:[V(X,{children:T}),V(X,{children:z}),V(X,{children:I}),V(Vu,{children:P}),V(Pu,{children:L})]})]})},composites:["title","item"]});Mg("sequence-steps",{component:t=>{const{Title:e,Item:n,data:i,gap:r=40,options:o}=t,{title:s,desc:a,items:l=[]}=i,c=e?V(e,{title:s,desc:a}):null,h=ld(o),u=du(V(Au,{indexes:[0]})),d=du(V(n,{indexes:[0],data:i,datum:l[0],positionH:"center"})),f=[],p=[],g=[],m=Math.max(u.height+20,30);if(l.forEach((t,e)=>{const o=e*(d.width+r),s=[e];if(p.push(V(n,{indexes:s,datum:t,data:i,x:o,y:m,positionH:"center"})),f.push(V(zu,{indexes:s,x:o+(d.width-u.width)/2,y:m+d.height+10})),f.push(V(Au,0===e?{indexes:s,x:o+(d.width-u.width)/2,y:m-u.height-10}:{indexes:s,x:o-r/2-u.width/2,y:m-u.height-10})),e<l.length-1){g.push(V(YA,{x:o+d.width+(r-25)/2,y:m+d.height/2-12.5,width:25,height:25,colorPrimary:h}))}}),l.length>0){f.push(V(Au,{indexes:[l.length],x:(l.length-1)*(d.width+r)+d.width+(r-u.width)/2,y:m-u.height-10}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,U(X,{children:[V(X,{children:g}),V(Vu,{children:p}),V(Pu,{children:f})]})]})},composites:["title","item"]});Mg("sequence-timeline",{component:t=>{const{Title:e,Item:n,data:i,gap:r=10,showStepLabels:o=!0,options:s}=t,{title:a,desc:l,items:c=[]}=i,h=e?V(e,{title:a,desc:l}):null,u=ld(s),d=cd(s),f=du(V(Au,{indexes:[0]})),p=du(V(n,{indexes:[0],data:i,datum:c[0],positionH:"normal"})),g=[],m=[],y=[],v=90,x=120;if(c.length>1){const t=p.height/2+6,e=(c.length-1)*(p.height+r)+p.height/2-6,n=`M 90 ${t} L 90 ${e}`,i="gradient-timeline-line",o=e-t,a=c.map((e,n)=>V("stop",{offset:`${(n*(p.height+r)+p.height/2-t)/o*100}%`,stopColor:hd(s,[n])||u}));y.push(U(D,{children:[V(q,{children:V("linearGradient",{id:i,x1:v,y1:t,x2:v,y2:e,gradientUnits:"userSpaceOnUse",children:a})}),V(K,{d:n,stroke:`url(#${i})`,strokeWidth:2,width:1,height:e-t})]}))}if(c.forEach((t,e)=>{const s=e*(p.height+r),a=s+p.height/2,l=[e];o&&y.push(V(su,{x:10,y:a,width:70,fontSize:18,fontWeight:"bold",alignHorizontal:"left",alignVertical:"middle",fill:d[e%d.length],children:`STEP ${e+1}`})),m.push(V(n,{indexes:l,datum:t,data:i,x,y:s,positionH:"normal"})),y.push(V(G,{x:84,y:a-6,width:12,height:12,fill:d[e%d.length]})),g.push(V(zu,{indexes:l,x:x-f.width-10,y:s+(p.height-f.height)/2})),g.push(V(Au,0===e?{indexes:l,x:x+(p.width-f.width)/2,y:s-f.height-10}:{indexes:l,x:x+(p.width-f.width)/2,y:s-r/2-f.height/2}))}),c.length>0){g.push(V(Au,{indexes:[c.length],x:x+(p.width-f.width)/2,y:(c.length-1)*(p.height+r)+p.height+10}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,U(X,{children:[V(qu,{children:y}),V(Vu,{children:m}),V(Pu,{children:g})]})]})},composites:["title","item"]});const Xz=U("filter",{id:"sequence-zigzag-pucks-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[V("feOffset",{dx:"-7",dy:"7",in:"SourceAlpha",result:"offset"}),V("feGaussianBlur",{stdDeviation:"7.5",in:"offset",result:"blurred"}),V("feColorMatrix",{in:"blurred",type:"matrix",values:"0 0 0 0 0 \n 0 0 0 0 0 \n 0 0 0 0 0 \n 0 0 0 0.3 0",result:"shadow"}),V("feBlend",{mode:"normal",in:"SourceGraphic",in2:"shadow"})]});Mg("sequence-zigzag-pucks-3d",{component:t=>{const{Title:e,Item:n,data:i,options:r,gap:o=80}=t,s=120,a=108,{title:l,desc:c,items:h=[]}=i,u=e?V(e,{title:l,desc:c}):null,d=ld(r);if(0===h.length){const t=V(Au,{indexes:[0],x:0,y:0});return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[V(q,{children:Xz}),u,V(X,{children:V(Pu,{children:t})})]})}const f=du(V(n,{indexes:[0],data:i,datum:h[0],positionH:"center"})),p=du(V(Au,{indexes:[0]})),g=[],m=[],y=[];let v=1/0,x=-1/0;const b=f.height+30+a;return h.forEach((t,e)=>{const l=[e],c=hd(r,l),u=e%2==0,w=e*(s+o),M=u?0:f.height+30;v=Math.min(v,M);const k=`puck-gradient-middle-${e}`,C=`puck-gradient-bottom-${e}`;y.push(U(X,{x:w,y:M,id:`puck-${e}`,width:s,height:a,filter:"url(#sequence-zigzag-pucks-3d-shadow-filter)",children:[U(q,{children:[U("linearGradient",{id:k,x1:"115",y1:"55.9991",x2:"15.0002",y2:"55.9991",gradientUnits:"userSpaceOnUse",children:[V("stop",{offset:"0",stopColor:c||d}),V("stop",{offset:"1",stopColor:c||d,stopOpacity:"0.6"})]}),U("linearGradient",{id:C,x1:"115",y1:"72.1803",x2:"15.0002",y2:"72.1803",gradientUnits:"userSpaceOnUse",children:[V("stop",{offset:"0",stopColor:"#F4F4FB"}),V("stop",{offset:"1",stopColor:"#8E8C90"})]})]}),U(qu,{width:120,height:108,children:[V(K,{d:"M4.49144e-05 34.4898C4.49144e-05 37.8786 0.848973 41.152 2.43571 44.2444C4.23516 47.7642 6.98514 51.0472 10.517 54.0009C21.331 63.047 39.4615 68.9814 59.9991 68.9814C80.5385 68.9814 98.6672 63.047 109.483 54.0009C113.013 51.0472 115.765 47.7642 117.564 44.2444C119.149 41.152 120 37.8786 120 34.4898C120 15.4407 93.1364 0 59.9991 0C26.8635 0 4.49144e-05 15.4407 4.49144e-05 34.4898Z",fill:c||d}),V(K,{d:"M4.49145e-05 34.4898V53.9991C4.49145e-05 57.3879 0.848973 60.6613 2.43571 63.7556C9.75425 78.0545 32.7562 88.4907 59.999 88.4907C87.2438 88.4907 110.246 78.0545 117.564 63.7556C119.149 60.6613 120 57.3879 120 53.9991V34.4898C120 37.8786 119.149 41.152 117.564 44.2444C115.765 47.7642 113.013 51.0472 109.483 54.0009C98.6672 63.047 80.5385 68.9814 59.999 68.9814C39.4615 68.9814 21.3309 63.047 10.5169 54.0009C6.98509 51.0472 4.23516 47.7642 2.43567 44.2444C0.848928 41.152 4.49145e-05 37.8786 4.49145e-05 34.4898Z",fill:`url(#${k})`}),V(K,{d:"M0 53.9991V73.5102C0 92.5593 26.8634 108 59.999 108C93.1363 108 120 92.5593 120 73.5102V53.9991C120 57.3879 119.149 60.6613 117.564 63.7556C110.246 78.0545 87.2438 88.4907 59.999 88.4907C32.7562 88.4907 9.75425 78.0545 2.43571 63.7556C0.848973 60.6613 0 57.3879 0 53.9991Z",fill:`url(#${C})`}),V("rect",{fill:"transparent",y:108,width:120,height:20})]}),V("text",{x:65,y:40,width:50,height:50,fontSize:40,fontWeight:"bold",fill:"#FFFFFF",textAnchor:"middle",dominantBaseline:"middle",transform:"rotate(-15 65 40) scale(1, 0.8)",children:e+1})]}));const O=w+(s-f.width)/2,j=u?M+a+30:M-30-f.height;if(x=Math.max(x,j+f.height),m.push(V(n,{indexes:l,datum:t,data:i,x:O,y:j,positionH:"center"})),g.push(V(zu,{indexes:l,x:O+f.width-p.width/2,y:j+f.height-p.height/2})),0===e&&g.push(V(Au,{indexes:[0],x:w+60-p.width/2-(o+s)/2,y:M+54-p.height/2})),e<h.length-1){g.push(V(Au,{indexes:[e+1],x:w+s+o/2-p.width/2,y:(M+54+((e+1)%2==0?0:b)+54)/2-p.height/2}))}else g.push(V(Au,{indexes:[h.length],x:w+s+o/2-p.width/2,y:M+54-p.height/2}))}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[V(q,{children:Xz}),u,U(X,{x:0,y:0,children:[V(X,{children:y}),V(Vu,{children:m}),V(Pu,{children:g})]})]})},composites:["title","item"]});const Kz=240,Zz=130,Qz=12,Jz="M132.707 30.4224C142.386 36.0119 142.437 45.0704 132.821 50.6599L87.6795 76.8925C78.0629 82.4807 62.4238 82.4807 52.7445 76.8925L7.30825 50.6599C-2.37126 45.0717 -2.42225 36.0132 7.19414 30.4237L52.335 4.19115C61.9517 -1.39705 77.5908 -1.39705 87.2713 4.19115L132.707 30.4224Z",tP=V("filter",{id:"sequence-zigzag-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:V("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"15",result:"blur"})});Mg("sequence-zigzag-steps",{component:t=>{var e;const{Title:n,Item:i,data:r,options:o,dx:s=Kz,dy:a=Zz,iconSize:l=30}=t,{title:c,desc:h,items:u=[]}=r,d=n?V(n,{title:c,desc:h}):null,f=ld(o);if(0===u.length){const t=V(Au,{indexes:[0],x:0,y:0});return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[V(q,{children:tP}),d,V(X,{children:V(Pu,{children:t})})]})}const p=du(V(i,{indexes:[0],data:r,datum:u[0]})),g=du(V(Au,{indexes:[0]})),m=[],y=[],v=[],x=[],b=[];let w=0,M=0,k="",C=1/0,O=-1/0,j=1/0,E=1/0;const _=[];u.forEach((t,e)=>{const n=w,i=M;_.push({x:n,y:i}),C=Math.min(C,i);const r=i-46;j=Math.min(j,n-76),E=Math.min(E,r);e<u.length-1&&(w+=s,M=e%2==0?M+a:M-a)});const S=Math.max(0,-j),$=Math.max(0,-E);if(w=0,M=0,u.forEach((t,e)=>{const n=[e],a=_[e],c=a.x+S,h=a.y+$,d=hd(o,n),v=Math.max(0,c-76),w=Math.max(0,h-46),{colorPrimaryBg:M}=ud({colorPrimary:d});if(x.push(U(qu,{x:v,y:w,width:140,height:110,children:[V(G,{x:10,y:60,width:120,height:50,fill:d||f,filter:"url(#sequence-zigzag-glow-filter)",opacity:.6}),V(K,{d:"M132.821 50.6599L87.6795 76.8925C78.0629 82.4807 62.4238 82.4807 52.7445 76.8925L7.30824 50.6599C2.43719 47.8482 0.00459679 44.1562 0.0152907 40.472L3.17695e-05 45.6925C-0.0101404 49.378 2.42245 53.0686 7.29298 55.8803L52.7289 82.1129C62.4094 87.7011 78.0485 87.7011 87.6652 82.1129L132.806 55.8803C137.583 53.1038 139.975 49.4705 139.986 45.832L140 40.6116C139.989 44.2501 137.598 47.8834 132.821 50.6599Z",fill:d||f}),V(K,{d:Jz,fill:"#fff"}),V(K,{d:Jz,fill:M||M})]})),t.icon){const t=Math.max(0,c-l/2-6),e=Math.max(0,h-l/2-6);b.push(V(Hu,{x:t,y:e,size:l,indexes:n,fill:d}))}const C=c-p.width/2-6,j=Math.max(0,h+105-6);if(O=Math.max(O,j+p.height),0===e?k=`M ${c} ${h}`:k+=` L ${c} ${h}`,y.push(V(i,{indexes:n,datum:t,data:r,x:C,y:j})),m.push(V(zu,{indexes:n,x:Math.max(0,C+p.width-g.width/2),y:Math.max(0,j+p.height-g.height/2)})),e<u.length-1){const t=_[e+1],n=t.y+$,i=Math.max(0,c+(t.x+S-c)/2-g.width/2),r=Math.max(0,h+(n-h)/2-g.height/2);m.push(V(Au,{indexes:[e+1],x:i,y:r}))}else m.push(V(Au,{indexes:[u.length],x:Math.max(0,C+p.width+s/4),y:Math.max(0,j+p.height/2-g.height/2)}))}),k){const t=((null===(e=_[_.length-1])||void 0===e?void 0:e.x)||0)+S;v.push(V(K,{d:k,stroke:"#f3f2f1",strokeWidth:Qz,fill:"none",width:t,height:O-Math.min(C+$,0)}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[V(q,{children:tP}),d,U(X,{x:0,y:0,children:[V(X,{children:[...v,...x,...b]}),V(Vu,{children:y}),V(Pu,{children:m})]})]})},composites:["title","item"]});var eP=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class nP{constructor(t){this.commands=t}apply(t){return eP(this,void 0,void 0,function*(){for(const e of this.commands)yield e.apply(t)})}undo(t){return eP(this,void 0,void 0,function*(){for(let e=this.commands.length-1;e>=0;e--)yield this.commands[e].undo(t)})}serialize(){return{type:"batch",commands:this.commands.map(t=>t.serialize())}}}var iP=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class rP{constructor(t,e,n){this.element=t,this.modified=e;const i=function(t,e){const n=Object.keys(e.attributes||{}),i=th(t,n,!1),r=t=>{t&&n.forEach(e=>{e in t&&(i[e]=t[e])})},o=Object.assign(Object.assign({},e),{attributes:i});if(_h(t)){const{attributes:e}=lh(t);r(e)}else if(Ah(t)){if(!Yh(t))return;r(qh(t))}return o}(t,e);this.original=function(t,e){if(!t)return e;if(!e)return t;const n=Object.assign(Object.assign({},t.attributes||{}),e.attributes||{});return Object.assign(Object.assign(Object.assign({},t),e),{attributes:Object.keys(n).length?n:void 0})}(i,n)}apply(t){return iP(this,void 0,void 0,function*(){oP(this.element,this.modified),t.updateElement(this.element,this.modified)})}undo(t){return iP(this,void 0,void 0,function*(){this.original&&(oP(this.element,this.original),t.updateElement(this.element,this.original))})}serialize(){return{type:"update-element",elementId:this.element.id,modified:this.modified,original:this.original}}}function oP(t,e){_h(t)?oh(t,e):Ah(t)?function(t,e,n){const i=Yh(t);i&&(e&&Jc(i,{href:ul(e)}),n&&Jc(i,n),Uh(i))}(t,void 0,e.attributes):e.attributes&&Jc(t,e.attributes)}var sP=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class aP{constructor(t,e){this.options=t,this.original=e}apply(t){return sP(this,void 0,void 0,function*(){if(!this.original){const e=t.getOptions();this.original={},Object.keys(this.options).forEach(t=>{this.original[t]=e[t]})}t.updateOptions(this.options)})}undo(t){return sP(this,void 0,void 0,function*(){this.original&&t.updateOptions(this.original)})}serialize(){return{type:"update-options",options:this.options,original:this.original}}}class lP{constructor(t,e={}){var n;this.clickTimer=null,this.singleClickCallback=null,this.doubleClickCallback=null,this.pointerId=null,this.startX=0,this.startY=0,this.skipClick=!1,this.dragged=!1,this.handlePointerDown=t=>{this.pointerId=t.pointerId,this.startX=t.clientX,this.startY=t.clientY,this.dragged=!1,this.skipClick=!1,window.addEventListener("pointermove",this.handlePointerMove,{passive:!0}),window.addEventListener("pointerup",this.handlePointerUp,{passive:!0}),window.addEventListener("pointercancel",this.handlePointerUp,{passive:!0})},this.handlePointerMove=t=>{if(null===this.pointerId||t.pointerId!==this.pointerId)return;Math.hypot(t.clientX-this.startX,t.clientY-this.startY)>this.dragThreshold&&(this.skipClick=!0,this.dragged=!0)},this.handlePointerUp=t=>{null!==this.pointerId&&t.pointerId===this.pointerId&&(this.pointerId=null,window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp),this.dragged||(this.skipClick=!1),this.dragged=!1)},this.element=t,this.delay=e.delay||300,this.dragThreshold=null!==(n=e.dragThreshold)&&void 0!==n?n:4,this.init()}init(){this.element.addEventListener("click",this.handleClick.bind(this)),this.element.addEventListener("dblclick",this.handleDoubleClick.bind(this)),this.element.addEventListener("pointerdown",this.handlePointerDown)}handleClick(t){this.skipClick?this.skipClick=!1:(this.clickTimer&&clearTimeout(this.clickTimer),this.clickTimer=window.setTimeout(()=>{var e;null===(e=this.singleClickCallback)||void 0===e||e.call(this,t)},this.delay))}handleDoubleClick(t){var e;this.skipClick?this.skipClick=!1:(this.clickTimer&&clearTimeout(this.clickTimer),null===(e=this.doubleClickCallback)||void 0===e||e.call(this,t))}onClick(t){return this.singleClickCallback=t,this}onDoubleClick(t){return this.doubleClickCallback=t,this}destroy(){this.clickTimer&&clearTimeout(this.clickTimer),this.element.removeEventListener("click",this.handleClick),this.element.removeEventListener("dblclick",this.handleDoubleClick),this.element.removeEventListener("pointerdown",this.handlePointerDown),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}}function cP(t,e,n){return new DOMPoint(e,n).matrixTransform(function(t){var e;return(null===(e=t.getScreenCTM())||void 0===e?void 0:e.inverse())||new DOMMatrix}(t))}function hP(t,e){const n=e.getBoundingClientRect(),i=[{x:n.x,y:n.y},{x:n.x+n.width,y:n.y},{x:n.x,y:n.y+n.height},{x:n.x+n.width,y:n.y+n.height}].map(e=>cP(t,e.x,e.y)),r=Math.min(...i.map(t=>t.x)),o=Math.max(...i.map(t=>t.x)),s=Math.min(...i.map(t=>t.y)),a=Math.max(...i.map(t=>t.y));return new DOMRect(r,s,o-r,a-s)}function uP(t,e){if(0===e.length)return t.items;const n=ts(t,e);return null==n?[]:(n.children||(n.children=[]),n.children)}function dP(t,e="data.items"){return t.reduce((t,e,n)=>0===n?`${t}[${e}]`:`${t}.children[${e}]`,e)}function fP(t){var e,n;return(null===(n=null===(e=function(t){return Ah(t)?Yh(t):t}(t))||void 0===e?void 0:e.dataset.indexes)||void 0===n?void 0:n.split(",").map(Number))||[]}function pP(t){if(!t)return null;const e=[mP];let n=t;for(const t of e){const e=t(n);if(e){n=e;break}}return gP(n)}function gP(t){if(!t)return null;const e=[yP,vP];for(const n of e){const e=n(t);if(e)return e}return(t=>ch(t,"edit-area"))(t)||_h(t)||Ah(t)?t:null}const mP=t=>{var e;const n=t=>!!t&&(Oh(t)||jh(t));return n(t)?t.parentElement:n(t.parentElement)?null===(e=t.parentElement)||void 0===e?void 0:e.parentElement:null},yP=t=>function(t){return hh(t,"SPAN")}(t)&&Eh(t.parentElement)?t.parentElement:null,vP=t=>{const e=t.parentElement;return xh(e)?e:vh(t)?t:null};function xP(t){if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName.toLowerCase();return"input"===e||"textarea"===e}class bP{constructor(){this.extensions=new Map}register(t,e,n){if(!(null==n?void 0:n.override)&&this.extensions.has(t))throw new Error(`Extension "${t}" already registered`);this.extensions.set(t,e)}get(t){return this.extensions.get(t)}has(t){return this.extensions.has(t)}getAll(){return this.extensions}forEach(t){this.extensions.forEach((e,n)=>{t(e,n)})}[Symbol.iterator](){return this.extensions.entries()}unregister(t){return this.extensions.delete(t)}destroy(){this.extensions.forEach(t=>{t&&"function"==typeof t.dispose&&t.dispose()}),this.extensions.clear()}}const wP=(t,e)=>{var n;if(t.key.toLowerCase()!==e.key)return!1;const i=null!==(n=e.mod)&&void 0!==n&&n,r=t.metaKey,o=t.ctrlKey,s=(t,e)=>void 0===t?!e:t===e;return!(i&&!r&&!o)&&(i?!!s(e.shift,t.shiftKey)&&(!!s(e.alt,t.altKey)&&(!(void 0!==e.meta&&!s(e.meta,r))&&!(void 0!==e.ctrl&&!s(e.ctrl,o)))):!!s(e.meta,r)&&(!!s(e.ctrl,o)&&(!!s(e.shift,t.shiftKey)&&!!s(e.alt,t.altKey))))};class MP{constructor(t={}){this.bindings=[],this.handleKeydown=t=>{if(t instanceof KeyboardEvent&&!t.defaultPrevented&&!(t=>{if(!t)return!1;if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName.toLowerCase();return"input"===e||"textarea"===e||"select"===e})(t.target)&&(!this.filter||this.filter(t)))for(const e of this.bindings)if(e.combos.some(e=>wP(t,e))){e.handler(t);break}};const{target:e=document,filter:n}=t;this.target=e,this.filter=n,this.target.addEventListener("keydown",this.handleKeydown)}bind(t,e){const n={combos:(Array.isArray(t)?t:[t]).map(t=>(t=>{const e=t.toLowerCase().split("+").map(t=>t.trim()).filter(Boolean),n={key:""};if(e.forEach(t=>{"shift"===t?n.shift=!0:"alt"===t||"option"===t?n.alt=!0:"ctrl"===t||"control"===t?n.ctrl=!0:"meta"===t||"cmd"===t||"command"===t?n.meta=!0:"mod"===t?n.mod=!0:n.key=t}),!n.key)throw new Error(`Invalid hotkey combo: "${t}"`);return n})(t)),handler:e};return this.bindings.push(n),()=>this.unbind(n)}destroy(){this.target.removeEventListener("keydown",this.handleKeydown),this.bindings=[]}unbind(t){this.bindings=this.bindings.filter(e=>e!==t)}}const kP=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const CP=function(t){return this.__data__.get(t)};const OP=function(t){return this.__data__.has(t)};const jP=function(t,e){var n=this.__data__;if(n instanceof So){var i=n.__data__;if(!$o||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Bo(i)}return n.set(t,e),this.size=n.size,this};function EP(t){var e=this.__data__=new So(t);this.size=e.size}EP.prototype.clear=function(){this.__data__=new So,this.size=0},EP.prototype.delete=kP,EP.prototype.get=CP,EP.prototype.has=OP,EP.prototype.set=jP;const _P=EP;const SP=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t};const $P=function(){try{var t=ho(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const AP=function(t,e,n){"__proto__"==e&&$P?$P(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var zP=Object.prototype.hasOwnProperty;const PP=function(t,e,n){var i=t[e];zP.call(t,e)&&wo(i,n)&&(void 0!==n||e in t)||AP(t,e,n)};const LP=function(t,e,n,i){var r=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var a=e[o],l=i?i(n[a],t[a],a,n,t):void 0;void 0===l&&(l=t[a]),r?AP(n,a,l):PP(n,a,l)}return n};const IP=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i};const TP=function(t){return qr(t)&&"[object Arguments]"==Yr(t)};var RP=Object.prototype,BP=RP.hasOwnProperty,WP=RP.propertyIsEnumerable,HP=TP(function(){return arguments}())?TP:function(t){return qr(t)&&BP.call(t,"callee")&&!WP.call(t,"callee")};const NP=HP;var FP="object"==typeof exports&&exports&&!exports.nodeType&&exports,DP=FP&&"object"==typeof module&&module&&!module.nodeType&&module,VP=DP&&DP.exports===FP?Tr.Buffer:void 0;const UP=(VP?VP.isBuffer:void 0)||function(){return!1};var YP=/^(?:0|[1-9]\d*)$/;const qP=function(t,e){var n=typeof t;return!!(e=e??9007199254740991)&&("number"==n||"symbol"!=n&&YP.test(t))&&t>-1&&t%1==0&&t<e};const GP=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var XP={};XP["[object Float32Array]"]=XP["[object Float64Array]"]=XP["[object Int8Array]"]=XP["[object Int16Array]"]=XP["[object Int32Array]"]=XP["[object Uint8Array]"]=XP["[object Uint8ClampedArray]"]=XP["[object Uint16Array]"]=XP["[object Uint32Array]"]=!0,XP["[object Arguments]"]=XP["[object Array]"]=XP["[object ArrayBuffer]"]=XP["[object Boolean]"]=XP["[object DataView]"]=XP["[object Date]"]=XP["[object Error]"]=XP["[object Function]"]=XP["[object Map]"]=XP["[object Number]"]=XP["[object Object]"]=XP["[object RegExp]"]=XP["[object Set]"]=XP["[object String]"]=XP["[object WeakMap]"]=!1;const KP=function(t){return qr(t)&&GP(t.length)&&!!XP[Yr(t)]};const ZP=function(t){return function(e){return t(e)}};var QP="object"==typeof exports&&exports&&!exports.nodeType&&exports,JP=QP&&"object"==typeof module&&module&&!module.nodeType&&module,tL=JP&&JP.exports===QP&&Lr.process;const eL=function(){try{var t=JP&&JP.require&&JP.require("util").types;return t||tL&&tL.binding&&tL.binding("util")}catch(t){}}();var nL=eL&&eL.isTypedArray;const iL=nL?ZP(nL):KP;var rL=Object.prototype.hasOwnProperty;const oL=function(t,e){var n=Pr(t),i=!n&&NP(t),r=!n&&!i&&UP(t),o=!n&&!i&&!r&&iL(t),s=n||i||r||o,a=s?IP(t.length,String):[],l=a.length;for(var c in t)!e&&!rL.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||qP(c,l))||a.push(c);return a};var sL=Object.prototype;const aL=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||sL)};const lL=function(t,e){return function(n){return t(e(n))}};const cL=lL(Object.keys,Object);var hL=Object.prototype.hasOwnProperty;const uL=function(t){if(!aL(t))return cL(t);var e=[];for(var n in Object(t))hL.call(t,n)&&"constructor"!=n&&e.push(n);return e};const dL=function(t){return null!=t&&GP(t.length)&&!Jr(t)};const fL=function(t){return dL(t)?oL(t):uL(t)};const pL=function(t,e){return t&&LP(e,fL(e),t)};const gL=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var mL=Object.prototype.hasOwnProperty;const yL=function(t){if(!Qr(t))return gL(t);var e=aL(t),n=[];for(var i in t)("constructor"!=i||!e&&mL.call(t,i))&&n.push(i);return n};const vL=function(t){return dL(t)?oL(t,!0):yL(t)};const xL=function(t,e){return t&&LP(e,vL(e),t)};var bL="object"==typeof exports&&exports&&!exports.nodeType&&exports,wL=bL&&"object"==typeof module&&module&&!module.nodeType&&module,ML=wL&&wL.exports===bL?Tr.Buffer:void 0,kL=ML?ML.allocUnsafe:void 0;const CL=function(t,e){if(e)return t.slice();var n=t.length,i=kL?kL(n):new t.constructor(n);return t.copy(i),i};const OL=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e};const jL=function(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[r++]=s)}return o};const EL=function(){return[]};var _L=Object.prototype.propertyIsEnumerable,SL=Object.getOwnPropertySymbols,$L=SL?function(t){return null==t?[]:(t=Object(t),jL(SL(t),function(e){return _L.call(t,e)}))}:EL;const AL=$L;const zL=function(t,e){return LP(t,AL(t),e)};const PL=function(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t};const LL=lL(Object.getPrototypeOf,Object);var IL=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)PL(e,AL(t)),t=LL(t);return e}:EL;const TL=IL;const RL=function(t,e){return LP(t,TL(t),e)};const BL=function(t,e,n){var i=e(t);return Pr(t)?i:PL(i,n(t))};const WL=function(t){return BL(t,fL,AL)};const HL=function(t){return BL(t,vL,TL)};const NL=ho(Tr,"DataView");const FL=ho(Tr,"Promise");const DL=ho(Tr,"Set");const VL=ho(Tr,"WeakMap");var UL="[object Map]",YL="[object Promise]",qL="[object Set]",GL="[object WeakMap]",XL="[object DataView]",KL=oo(NL),ZL=oo($o),QL=oo(FL),JL=oo(DL),tI=oo(VL),eI=Yr;(NL&&eI(new NL(new ArrayBuffer(1)))!=XL||$o&&eI(new $o)!=UL||FL&&eI(FL.resolve())!=YL||DL&&eI(new DL)!=qL||VL&&eI(new VL)!=GL)&&(eI=function(t){var e=Yr(t),n="[object Object]"==e?t.constructor:void 0,i=n?oo(n):"";if(i)switch(i){case KL:return XL;case ZL:return UL;case QL:return YL;case JL:return qL;case tI:return GL}return e});const nI=eI;var iI=Object.prototype.hasOwnProperty;const rI=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&iI.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const oI=Tr.Uint8Array;const sI=function(t){var e=new t.constructor(t.byteLength);return new oI(e).set(new oI(t)),e};const aI=function(t,e){var n=e?sI(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var lI=/\w*$/;const cI=function(t){var e=new t.constructor(t.source,lI.exec(t));return e.lastIndex=t.lastIndex,e};var hI=Rr?Rr.prototype:void 0,uI=hI?hI.valueOf:void 0;const dI=function(t){return uI?Object(uI.call(t)):{}};const fI=function(t,e){var n=e?sI(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const pI=function(t,e,n){var i=t.constructor;switch(e){case"[object ArrayBuffer]":return sI(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return aI(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return fI(t,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return cI(t);case"[object Symbol]":return dI(t)}};var gI=Object.create,mI=function(){function t(){}return function(e){if(!Qr(e))return{};if(gI)return gI(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const yI=mI;const vI=function(t){return"function"!=typeof t.constructor||aL(t)?{}:yI(LL(t))};const xI=function(t){return qr(t)&&"[object Map]"==nI(t)};var bI=eL&&eL.isMap;const wI=bI?ZP(bI):xI;const MI=function(t){return qr(t)&&"[object Set]"==nI(t)};var kI=eL&&eL.isSet;const CI=kI?ZP(kI):MI;var OI="[object Arguments]",jI="[object Function]",EI="[object Object]",_I={};_I[OI]=_I["[object Array]"]=_I["[object ArrayBuffer]"]=_I["[object DataView]"]=_I["[object Boolean]"]=_I["[object Date]"]=_I["[object Float32Array]"]=_I["[object Float64Array]"]=_I["[object Int8Array]"]=_I["[object Int16Array]"]=_I["[object Int32Array]"]=_I["[object Map]"]=_I["[object Number]"]=_I[EI]=_I["[object RegExp]"]=_I["[object Set]"]=_I["[object String]"]=_I["[object Symbol]"]=_I["[object Uint8Array]"]=_I["[object Uint8ClampedArray]"]=_I["[object Uint16Array]"]=_I["[object Uint32Array]"]=!0,_I["[object Error]"]=_I[jI]=_I["[object WeakMap]"]=!1;const SI=function t(e,n,i,r,o,s){var a,l=1&n,c=2&n,h=4&n;if(i&&(a=o?i(e,r,o,s):i(e)),void 0!==a)return a;if(!Qr(e))return e;var u=Pr(e);if(u){if(a=rI(e),!l)return OL(e,a)}else{var d=nI(e),f=d==jI||"[object GeneratorFunction]"==d;if(UP(e))return CL(e,l);if(d==EI||d==OI||f&&!o){if(a=c||f?{}:vI(e),!l)return c?RL(e,xL(a,e)):zL(e,pL(a,e))}else{if(!_I[d])return o?e:{};a=pI(e,d,l)}}s||(s=new _P);var p=s.get(e);if(p)return p;s.set(e,a),CI(e)?e.forEach(function(r){a.add(t(r,n,i,r,e,s))}):wI(e)&&e.forEach(function(r,o){a.set(o,t(r,n,i,o,e,s))});var g=u?void 0:(h?c?HL:WL:c?vL:fL)(e);return SP(g||e,function(r,o){g&&(r=e[o=r]),PP(a,o,t(r,n,i,o,e,s))}),a};const $I=function(t){return SI(t,5)};var AI=Function.prototype.toString,zI=Object.prototype.hasOwnProperty,PI=AI.call(Object);const LI=function(t){if(!qr(t)||"[object Object]"!=Yr(t))return!1;var e=LL(t);if(null===e)return!0;var n=zI.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&AI.call(n)==PI};const II=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const TI=function(t){return this.__data__.has(t)};function RI(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Bo;++e<n;)this.add(t[e])}RI.prototype.add=RI.prototype.push=II,RI.prototype.has=TI;const BI=RI;const WI=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1};const HI=function(t,e){return t.has(e)};const NI=function(t,e,n,i,r,o){var s=1&n,a=t.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(t),h=o.get(e);if(c&&h)return c==e&&h==t;var u=-1,d=!0,f=2&n?new BI:void 0;for(o.set(t,e),o.set(e,t);++u<a;){var p=t[u],g=e[u];if(i)var m=s?i(g,p,u,e,t,o):i(p,g,u,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!WI(e,function(t,e){if(!HI(f,e)&&(p===t||r(p,t,n,i,o)))return f.push(e)})){d=!1;break}}else if(p!==g&&!r(p,g,n,i,o)){d=!1;break}}return o.delete(t),o.delete(e),d};const FI=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,i){n[++e]=[i,t]}),n};const DI=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n};var VI=Rr?Rr.prototype:void 0,UI=VI?VI.valueOf:void 0;const YI=function(t,e,n,i,r,o,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new oI(t),new oI(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return wo(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=FI;case"[object Set]":if(a||(a=DI),t.size!=e.size&&!(1&i))return!1;var l=s.get(t);if(l)return l==e;i|=2,s.set(t,e);var c=NI(a(t),a(e),i,r,o,s);return s.delete(t),c;case"[object Symbol]":if(UI)return UI.call(t)==UI.call(e)}return!1};var qI=Object.prototype.hasOwnProperty;const GI=function(t,e,n,i,r,o){var s=1&n,a=WL(t),l=a.length;if(l!=WL(e).length&&!s)return!1;for(var c=l;c--;){var h=a[c];if(!(s?h in e:qI.call(e,h)))return!1}var u=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var f=!0;o.set(t,e),o.set(e,t);for(var p=s;++c<l;){var g=t[h=a[c]],m=e[h];if(i)var y=s?i(m,g,h,e,t,o):i(g,m,h,t,e,o);if(!(void 0===y?g===m||r(g,m,n,i,o):y)){f=!1;break}p||(p="constructor"==h)}if(f&&!p){var v=t.constructor,x=e.constructor;v==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof x&&x instanceof x||(f=!1)}return o.delete(t),o.delete(e),f};var XI="[object Arguments]",KI="[object Array]",ZI="[object Object]",QI=Object.prototype.hasOwnProperty;const JI=function(t,e,n,i,r,o){var s=Pr(t),a=Pr(e),l=s?KI:nI(t),c=a?KI:nI(e),h=(l=l==XI?ZI:l)==ZI,u=(c=c==XI?ZI:c)==ZI,d=l==c;if(d&&UP(t)){if(!UP(e))return!1;s=!0,h=!1}if(d&&!h)return o||(o=new _P),s||iL(t)?NI(t,e,n,i,r,o):YI(t,e,l,n,i,r,o);if(!(1&n)){var f=h&&QI.call(t,"__wrapped__"),p=u&&QI.call(e,"__wrapped__");if(f||p){var g=f?t.value():t,m=p?e.value():e;return o||(o=new _P),r(g,m,n,i,o)}}return!!d&&(o||(o=new _P),GI(t,e,n,i,r,o))};const tT=function t(e,n,i,r,o){return e===n||(null==e||null==n||!qr(e)&&!qr(n)?e!=e&&n!=n:JI(e,n,i,r,t,o))};const eT=function(t,e){return tT(t,e)};function nT(t,e,n="",i){const{bubbleUp:r=!1,collector:o}=null!=i?i:{},s=iT(t,e,n,o,r);""===n&&s&&r&&o&&o("",$I(t),void 0)}function iT(t,e,n,i,r){let o=!1;return Object.keys(e).forEach(s=>{if("__proto__"===s||"constructor"===s||"prototype"===s)return;const a=n?`${n}.${s}`:s,l=e[s],c=t[s];let h=!1;if(void 0===l)s in t&&(delete t[s],null==i||i(a,void 0,c),h=!0);else if(LI(l)){const e=LI(t[s]);e||(t[s]={});const n=iT(t[s],l,a,i,r);e?h=n:(h=!0,n||null==i||i(a,t[s],c))}else t[s]=l,eT(l,c)||(null==i||i(a,l,c),h=!0);h&&(o=!0)}),o&&r&&""!==n&&(null==i||i(n,$I(t),void 0)),o}function rT(t){const e=function(t){if(!(null==t?void 0:t.isConnected))return document;const e=t.getRootNode();return e instanceof ShadowRoot?e:document}(t);return e instanceof ShadowRoot?e:document.body}function oT(t,e){const n="function"==typeof t.composedPath?t.composedPath():[];if(n.length>0)return n.some(t=>t===e||t instanceof Node&&e.contains(t));const i=t.target;return i instanceof Node&&(i===e||e.contains(i))}var sT=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class aT{constructor(t,e,n){this.element=t,this.originalText=null!=n?n:sh(t),this.modifiedText=e}apply(t){return sT(this,void 0,void 0,function*(){this.originalText!==this.modifiedText&&(ah(this.element,this.modifiedText),lT(t,this.element,this.modifiedText))})}undo(t){return sT(this,void 0,void 0,function*(){this.originalText!==this.modifiedText&&(ah(this.element,this.originalText),lT(t,this.element,this.originalText))})}serialize(){return{type:"update-text",elementId:this.element.id,original:this.originalText,modified:this.modifiedText}}}function lT(t,e,n){const i=Lh(e);if(i.startsWith("item-")){const r=i.replace("item-",""),o=fP(e);t.updateItemDatum(o,{[r]:n})}else t.updateData(i,n)}class cT{init(t){Object.assign(this,t)}}var hT=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class uT extends cT{constructor(){super(...arguments),this.name="brush-select",this.shiftKey=!1,this.dragging=!1,this.dragThreshold=4,this.handleStart=t=>{this.interaction.isActive()&&0===t.button&&(xP(t.target)||this.hasElementAtStart(t.target)||this.interaction.executeExclusiveInteraction(this,()=>hT(this,void 0,void 0,function*(){return new Promise(e=>{this.completeInteraction=e;const n=this.editor.getDocument();this.startPoint=cP(n,t.clientX,t.clientY),this.pointerId=t.pointerId,this.shiftKey=t.shiftKey,this.dragging=!1,window.addEventListener("pointermove",this.handleMove),window.addEventListener("pointerup",this.handleEnd)})})))},this.handleMove=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;const e=cP(this.editor.getDocument(),t.clientX,t.clientY);if(!this.dragging){if(Math.hypot(e.x-this.startPoint.x,e.y-this.startPoint.y)<this.dragThreshold)return;this.dragging=!0,this.ensureBrush(),this.updateBrush(this.startPoint,e)}t.preventDefault(),t.stopPropagation(),this.updateBrush(this.startPoint,e)},this.handleEnd=t=>{var e,n;if(t.pointerId!==this.pointerId||!this.startPoint)return;window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd);let i=null;if(this.dragging){t.preventDefault(),t.stopPropagation();const e=cP(this.editor.getDocument(),t.clientX,t.clientY);i=this.updateBrush(this.startPoint,e),this.clearBrush()}this.pointerId=void 0,this.startPoint=void 0,this.dragging=!1;const r=this.shiftKey;if(this.shiftKey=!1,!i)return null===(e=this.completeInteraction)||void 0===e||e.call(this),void(this.completeInteraction=void 0);const o=this.collectSelection(i);if(null===(n=this.completeInteraction)||void 0===n||n.call(this),this.completeInteraction=void 0,0===o.length)return void(r||this.interaction.clearSelection());this.interaction.select(o,r?"add":"replace")}}init(t){super.init(t),this.editor.getDocument().addEventListener("pointerdown",this.handleStart)}destroy(){this.clearBrush(),this.editor.getDocument().removeEventListener("pointerdown",this.handleStart),window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd)}ensureBrush(){return this.brush||(this.brush=this.interaction.appendTransientElement(Zc("rect",{fill:"rgba(51, 132, 245, 0.08)",stroke:"#3384F5","stroke-dasharray":"4 2","stroke-width":1,"pointer-events":"none"}))),this.brush}updateBrush(t,e){if(!this.brush)return null;const n=Math.min(t.x,e.x),i=Math.min(t.y,e.y),r=Math.abs(t.x-e.x),o=Math.abs(t.y-e.y);return Jc(this.brush,{x:n,y:i,width:r,height:o}),{x:n,y:i,width:r,height:o}}clearBrush(){var t;null===(t=this.brush)||void 0===t||t.remove(),this.brush=void 0}collectSelection(t){const e=this.editor.getDocument(),n=Array.from(e.querySelectorAll("[data-element-type]")),i=new Set;return n.reduce((n,r)=>{const o=gP(r);if(!o||i.has(o))return n;const s=hP(e,o);return((t,e)=>!(t.x+t.width<e.x||e.x+e.width<t.x||t.y+t.height<e.y||e.y+e.height<t.y))(t,{x:s.x,y:s.y,width:s.width,height:s.height})&&(n.push(o),i.add(o)),n},[])}hasElementAtStart(t){var e;return t instanceof Element&&(!!pP(t)||Boolean(null===(e=t.closest)||void 0===e?void 0:e.call(t,"[data-element-type]")))}}var dT=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class fT extends cT{constructor(){super(...arguments),this.name="click-select",this.shiftKey=!1,this.onShiftKeyDown=t=>{"Shift"===t.key&&(this.shiftKey=!0)},this.onShiftKeyUp=t=>{"Shift"===t.key&&(this.shiftKey=!1)},this.onEscKeyDown=t=>{"Escape"===t.key&&this.interaction.clearSelection()}}init(t){super.init(t);const{editor:e,interaction:n}=this;this.clickHandler=new lP(e.getDocument(),{delay:0});this.clickHandler.onClick(t=>{n.isActive()&&n.executeExclusiveInteraction(this,()=>dT(this,void 0,void 0,function*(){const e=pP(t.target);Sh(e)||(this.shiftKey?e&&(n.isSelected(e)?n.select([e],"remove"):n.select([e],"add")):e?n.select([e],"replace"):n.clearSelection())}))}),document.addEventListener("keydown",this.onShiftKeyDown),document.addEventListener("keyup",this.onShiftKeyUp),document.addEventListener("keydown",this.onEscKeyDown)}destroy(){var t;null===(t=this.clickHandler)||void 0===t||t.destroy(),document.removeEventListener("keydown",this.onShiftKeyDown),document.removeEventListener("keyup",this.onShiftKeyUp),document.removeEventListener("keydown",this.onEscKeyDown)}}var pT=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class gT extends cT{constructor(){super(...arguments),this.name="dblclick-edit-text"}init(t){super.init(t);const{editor:e,commander:n,interaction:i}=t;this.clickHandler=new lP(e.getDocument()).onDoubleClick(t=>{i.isActive()&&i.executeExclusiveInteraction(this,()=>pT(this,void 0,void 0,function*(){const e=pP(t.target);if(e&&_h(e)){i.select([e],"replace");const r=sh(e),o=yield new Promise(n=>{const i=this.listenSelectionChange(e);!function(t,e){const n=rh(t);if(!n)return;(function(t){ru(mT,`\n.${yT} {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n background-color: transparent;\n outline: none;\n cursor: text;\n}\n.${yT}::selection {\n background-color: #b3d4fc;\n}\n`,t)})(n),new vT(n,e).start()}(e,{cursorPosition:{clientX:t.clientX,clientY:t.clientY},onBlur:n,onCancel:n}),this.detachSelectionListener=i});n.execute(new aT(e,o,r))}}))})}destroy(){var t,e;null===(t=this.clickHandler)||void 0===t||t.destroy(),null===(e=this.detachSelectionListener)||void 0===e||e.call(this)}listenSelectionChange(t){const e=({next:e})=>{var n;if(!e.includes(t)){null===(n=this.detachSelectionListener)||void 0===n||n.call(this),this.detachSelectionListener=void 0;const e=rh(t);e&&e.blur()}};return this.emitter.on("selection:change",e),()=>this.emitter.off("selection:change",e)}}const mT="infographic-inline-text-editor-style",yT="infographic-inline-text-editor";class vT{constructor(t,e){this.entity=t,this.options=e,this.handlePaste=t=>{t.clipboardData&&(t.preventDefault(),this.insertPlainText(t.clipboardData.getData("text/plain")))},this.handleKeydown=t=>{"Enter"!==t.key||t.shiftKey||(t.preventDefault(),this.insertPlainText("\n"))},this.handleInput=()=>{var t,e;this.normalizeSpanContent(),null===(e=null===(t=this.options)||void 0===t?void 0:t.onInput)||void 0===e||e.call(t,this.getText())},this.handleBlur=()=>{var t,e;this.entity.removeAttribute("contenteditable"),this.entity.classList.remove(yT),this.normalizeSpanContent(),null===(e=null===(t=this.options)||void 0===t?void 0:t.onBlur)||void 0===e||e.call(t,this.getText()),this.detachListeners()}}start(){this.entity.setAttribute("contenteditable","true"),this.entity.classList.add(yT),this.entity.focus(),this.placeCaretAtClickPosition(),this.attachListeners()}attachListeners(){this.entity.addEventListener("paste",this.handlePaste),this.entity.addEventListener("keydown",this.handleKeydown),this.entity.addEventListener("input",this.handleInput),this.entity.addEventListener("blur",this.handleBlur,{once:!0})}detachListeners(){this.entity.removeEventListener("paste",this.handlePaste),this.entity.removeEventListener("keydown",this.handleKeydown),this.entity.removeEventListener("input",this.handleInput)}insertPlainText(t){var e,n;const i=window.getSelection();if(!i)return;i.rangeCount||this.placeCaretAtEnd();const r=i.rangeCount?i.getRangeAt(0):document.createRange();r.deleteContents();const o=document.createTextNode(t);r.insertNode(o),r.setStartAfter(o),r.setEndAfter(o),i.removeAllRanges(),i.addRange(r),this.normalizeSpanContent(),null===(n=null===(e=this.options)||void 0===e?void 0:e.onInput)||void 0===n||n.call(e,this.getText())}normalizeSpanContent(){var t;if(1===this.entity.childNodes.length&&(null===(t=this.entity.firstChild)||void 0===t?void 0:t.nodeType)===Node.TEXT_NODE)return;const e=this.getText();this.entity.textContent=e}placeCaretAtClickPosition(){const t=window.getSelection();if(!t)return;const e=this.getRangeFromPoint();if(e)return t.removeAllRanges(),void t.addRange(e);this.placeCaretAtEnd()}getRangeFromPoint(){var t,e;const{cursorPosition:n}=this.options||{};if(!n)return null;const{clientX:i,clientY:r}=n,o=document,s=null!==(e=null===(t=o.caretRangeFromPoint)||void 0===t?void 0:t.call(o,i,r))&&void 0!==e?e:(()=>{var t;const e=null===(t=o.caretPositionFromPoint)||void 0===t?void 0:t.call(o,i,r);if(!e)return null;const n=document.createRange();return n.setStart(e.offsetNode,e.offset),n.collapse(!0),n})();return s&&this.entity.contains(s.startContainer)?s:null}placeCaretAtEnd(){const t=window.getSelection();if(!t)return;const e=document.createRange();e.selectNodeContents(this.entity),e.collapse(!1),t.removeAllRanges(),t.addRange(e)}getText(){return this.entity.textContent||""}}var xT=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class bT extends cT{constructor(t){super(),this.name="drag-canvas",this.trigger=["Space"],this.isTriggerPressed=!1,this.isHovering=!1,this.handleKeyDown=t=>{if(!this.interaction.isActive())return;if(xP(t.target))return;const e=t.target,n=e===document.body||e===document.documentElement,i=e===this.document||this.document.contains(e);(n||i)&&this.trigger.includes(t.code)&&(this.isHovering||this.isTriggerPressed)&&(t.preventDefault(),t.stopPropagation(),this.interaction.executeExclusiveInteraction(this,()=>xT(this,void 0,void 0,function*(){return new Promise(t=>{this.completeInteraction=t,this.isTriggerPressed=!0;const e=Zh(this.document);this.startViewBoxString=Qh(e),this.setCursor("grab"),this.document.addEventListener("pointerdown",this.handlePointerDown),window.addEventListener("keyup",this.handleKeyUp)})})))},this.handlePointerDown=t=>{if(0!==t.button)return;t.preventDefault(),t.stopPropagation();this.startPoint=cP(this.document,t.clientX,t.clientY),this.pointerId=t.pointerId,this.setCursor("grabbing"),window.addEventListener("pointermove",this.handlePointerMove),window.addEventListener("pointerup",this.handlePointerUp),window.addEventListener("pointercancel",this.handlePointerUp)},this.handlePointerMove=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;t.preventDefault(),t.stopPropagation();const e=this.document,n=cP(e,t.clientX,t.clientY),i=n.x-this.startPoint.x,r=n.y-this.startPoint.y,o=Zh(e),{x:s,y:a,width:l,height:c}=o;this.state.updateOptions({viewBox:Qh({x:s-i,y:a-r,width:l,height:c})})},this.handlePointerUp=t=>{t.pointerId===this.pointerId&&(this.startPoint=void 0,this.pointerId=void 0,this.setCursor("grab"),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp))},this.handleKeyUp=t=>{this.trigger.includes(t.code)&&this.stopDrag()},this.stopDrag=()=>{var t;if(this.startViewBoxString){const t=Qh(Zh(this.document));if(this.startViewBoxString!==t){const e=new aP({viewBox:t},{viewBox:this.startViewBoxString});this.commander.execute(e)}}this.startViewBoxString=void 0,this.isTriggerPressed=!1,this.setCursor("default"),this.startPoint=void 0,this.pointerId=void 0,window.removeEventListener("keyup",this.handleKeyUp),this.document.removeEventListener("pointerdown",this.handlePointerDown),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp),null===(t=this.completeInteraction)||void 0===t||t.call(this),this.completeInteraction=void 0},this.setCursor=t=>{document.body.style.cursor=t},this.handleBlur=()=>{this.stopDrag()},this.onMouseEnter=()=>{this.isHovering=!0},this.onMouseLeave=()=>{this.isHovering=!1},(null==t?void 0:t.trigger)&&(this.trigger=t.trigger)}init(t){super.init(t),this.document=this.editor.getDocument(),this.document.addEventListener("mouseenter",this.onMouseEnter),this.document.addEventListener("mouseleave",this.onMouseLeave),window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("blur",this.handleBlur)}destroy(){window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("keyup",this.handleKeyUp),this.document.removeEventListener("pointerdown",this.handlePointerDown),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp),window.removeEventListener("blur",this.handleBlur),this.document.removeEventListener("mouseenter",this.onMouseEnter),this.document.removeEventListener("mouseleave",this.onMouseLeave)}}var wT=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class MT extends cT{constructor(){super(...arguments),this.name="drag-element",this.selectionForDrag=[],this.willReplaceSelection=!1,this.exclusiveStarted=!1,this.dragItems=[],this.dragging=!1,this.dragThreshold=4,this.handleStart=t=>{if(!this.interaction.isActive())return;if("mouse"===t.pointerType&&0!==t.button)return;const e=pP(t.target);if(!e)return;if(Sh(e))return;const n=this.editor.getDocument();this.pointerId=t.pointerId,this.startPoint=cP(n,t.clientX,t.clientY),this.dragging=!1,this.startTarget=e;const i=this.interaction.isSelected(e);this.selectionForDrag=i?this.interaction.getSelection():[e],this.willReplaceSelection=!i,this.exclusiveStarted=!1,this.startBounds=this.getSelectionBounds(this.selectionForDrag),this.guideCandidates=this.collectGuideCandidates(this.selectionForDrag),window.addEventListener("pointermove",this.handleMove),window.addEventListener("pointerup",this.handleEnd),window.addEventListener("pointercancel",this.handleEnd)},this.handleMove=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;const e=cP(this.editor.getDocument(),t.clientX,t.clientY),n=e.x-this.startPoint.x,i=e.y-this.startPoint.y;if(!this.dragging){if(Math.hypot(n,i)<this.dragThreshold)return;if(!this.startDrag())return void this.reset();this.dragging=!0}const r=t.altKey?{dx:n,dy:i}:this.getSnappedDelta(n,i);t.preventDefault(),t.stopPropagation(),this.updateGuides(r),this.applyTranslation(r.dx,r.dy),this.emitGeometryChange()},this.handleEnd=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;this.detachPointerListeners();const e=cP(this.editor.getDocument(),t.clientX,t.clientY),n=e.x-this.startPoint.x,i=e.y-this.startPoint.y;if((this.dragging||Math.hypot(n,i)>=this.dragThreshold)&&this.dragItems.length&&this.exclusiveStarted){t.preventDefault(),t.stopPropagation();const e=t.altKey?{dx:n,dy:i}:this.getSnappedDelta(n,i);this.updateGuides(e),this.applyTranslation(e.dx,e.dy),this.commitTranslation(e.dx,e.dy),this.emitGeometryChange()}this.reset()}}init(t){super.init(t),this.editor.getDocument().addEventListener("pointerdown",this.handleStart)}destroy(){this.detachPointerListeners(),this.editor.getDocument().removeEventListener("pointerdown",this.handleStart)}startDrag(){if(this.exclusiveStarted)return!0;if(!this.startTarget)return!1;if(this.dragItems=this.selectionForDrag.filter(t=>_h(t)).map(t=>this.createDragItem(t)).filter(Boolean),0===this.dragItems.length)return!1;let t=!1;return this.interaction.executeExclusiveInteraction(this,()=>wT(this,void 0,void 0,function*(){return new Promise(e=>{this.willReplaceSelection&&this.startTarget&&this.interaction.select([this.startTarget],"replace"),this.completeInteraction=e,t=!0})})),this.exclusiveStarted=t,t}applyTranslation(t,e){this.dragItems.forEach(n=>{if("attr"===n.mode){const i=n.startX+t,r=n.startY+e,o={x:i,y:r};n.hasDataX&&(o["data-x"]=i),n.hasDataY&&(o["data-y"]=r),Jc(n.element,o)}else{const i=this.composeTransform(n.startX+t,n.startY+e,n.restTransform);Jc(n.element,{transform:i})}})}commitTranslation(t,e){if(Math.abs(t)<1e-6&&Math.abs(e)<1e-6)return;const n=this.dragItems.map(n=>{if("attr"===n.mode){const i=n.startX+t,r=n.startY+e,o={x:i,y:r},s={};return s.x=n.hasX?n.startX:null,s.y=n.hasY?n.startY:null,n.hasDataX&&(o["data-x"]=i,s["data-x"]=n.startX),n.hasDataY&&(o["data-y"]=r,s["data-y"]=n.startY),new rP(n.element,{attributes:o},{attributes:s})}const i=this.composeTransform(n.startX+t,n.startY+e,n.restTransform);return new rP(n.element,{attributes:{transform:i}},{attributes:{transform:void 0!==n.originalTransform?n.originalTransform:null}})});n.length&&this.commander.executeBatch(n)}createDragItem(t){const e=this.getTransformInfo(t);if(e)return{element:t,mode:"transform",startX:e.x,startY:e.y,hasX:!1,hasY:!1,hasDataX:!1,hasDataY:!1,restTransform:e.rest,originalTransform:e.original};const{x:n,y:i,hasX:r,hasY:o,hasDataX:s,hasDataY:a}=this.getAttrInfo(t);return{element:t,mode:"attr",startX:n,startY:i,hasX:r,hasY:o,hasDataX:s,hasDataY:a}}getAttrInfo(t){const e=this.editor.getDocument(),{x:n,y:i}=hP(e,t),r=th(t,["x","y","data-x","data-y"],!1),o=null!=r.x,s=null!=r.y,a=null!=r["data-x"],l=null!=r["data-y"],c=(t,e)=>{const n=null!=t?Number(t):NaN;return Number.isFinite(n)?n:e},h=c(r.x,NaN),u=c(r.y,NaN),d=c(r["data-x"],NaN),f=c(r["data-y"],NaN);return{x:Number.isFinite(h)?h:Number.isFinite(d)?d:n,y:Number.isFinite(u)?u:Number.isFinite(f)?f:i,hasX:o,hasY:s,hasDataX:a,hasDataY:l}}getTransformInfo(t){const e=t.getAttribute("transform");if(null===e)return null;const n=e.match(/translate\(\s*([-\d.]+)(?:[ ,]\s*([-\d.]+))?\s*\)/i);if(!n)return{x:0,y:0,rest:e,original:e};return{x:Number(n[1])||0,y:void 0!==n[2]&&Number(n[2])||0,rest:e.replace(n[0],"").trim(),original:e}}composeTransform(t,e,n){const i=`translate(${t}, ${e})`;return n&&n.length?`${i} ${n}`:i}emitGeometryChange(){var t;const e=null===(t=this.dragItems[0])||void 0===t?void 0:t.element;if(!e)return;const n=hP(this.editor.getDocument(),e);this.emitter.emit("selection:geometrychange",{type:"selection:geometrychange",target:e,rect:n})}detachPointerListeners(){window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd),window.removeEventListener("pointercancel",this.handleEnd)}reset(){var t;this.detachPointerListeners(),this.clearGuides(),this.pointerId=void 0,this.startPoint=void 0,this.dragItems=[],this.startTarget=void 0,this.selectionForDrag=[],this.willReplaceSelection=!1,this.exclusiveStarted=!1,this.dragging=!1,this.startBounds=void 0,this.guideCandidates=void 0,null===(t=this.completeInteraction)||void 0===t||t.call(this),this.completeInteraction=void 0}getSelectionBounds(t){if(!t.length)return;const e=this.editor.getDocument();return uu(t.map(t=>hP(e,t)))}collectGuideCandidates(t){const e=this.editor.getDocument(),n=new Set(t),i=Array.from(e.querySelectorAll("[data-element-type]")).filter(t=>!n.has(t)),r=[],o=[];return i.forEach(t=>{const{x:n,y:i,width:s,height:a}=hP(e,t);r.push(n,n+s/2,n+s),o.push(i,i+a/2,i+a)}),{vertical:r,horizontal:o}}getSnappedDelta(t,e){if(!this.startBounds||!this.guideCandidates)return{dx:t,dy:e};const n={x:this.startBounds.x+t,y:this.startBounds.y+e,width:this.startBounds.width,height:this.startBounds.height},i=this.getSnapOffset([n.x,n.x+n.width/2,n.x+n.width],this.guideCandidates.vertical),r=this.getSnapOffset([n.y,n.y+n.height/2,n.y+n.height],this.guideCandidates.horizontal);return{dx:t+((null==i?void 0:i.offset)||0),dy:e+((null==r?void 0:r.offset)||0),snapX:i,snapY:r}}getSnapOffset(t,e,n=5){let i=null;return t.forEach(t=>{e.forEach(e=>{const r=e-t;Math.abs(r)<=n&&(!i||Math.abs(r)<Math.abs(i.offset))&&(i={offset:r,at:e})})}),i||void 0}ensureGuideLine(t){const e="vertical"===t?this.guideVertical:this.guideHorizontal;if(e)return e;const n=this.interaction.appendTransientElement(Zc("line",{stroke:"#FF7A45","stroke-width":1,"stroke-dasharray":"4 4","pointer-events":"none",visibility:"hidden"}));return"vertical"===t?this.guideVertical=n:this.guideHorizontal=n,n}updateGuides(t){const e=this.editor.getDocument(),{width:n,height:i}=e.viewBox.baseVal;if(t.snapX){Jc(this.ensureGuideLine("vertical"),{x1:t.snapX.at,y1:0,x2:t.snapX.at,y2:i,visibility:"visible"})}else this.guideVertical&&this.guideVertical.setAttribute("visibility","hidden");if(t.snapY){Jc(this.ensureGuideLine("horizontal"),{x1:0,y1:t.snapY.at,x2:n,y2:t.snapY.at,visibility:"visible"})}else this.guideHorizontal&&this.guideHorizontal.setAttribute("visibility","hidden")}clearGuides(){var t,e;null===(t=this.guideVertical)||void 0===t||t.remove(),null===(e=this.guideHorizontal)||void 0===e||e.remove(),this.guideVertical=void 0,this.guideHorizontal=void 0}}var kT=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class CT extends cT{constructor(){super(...arguments),this.name="hotkey-history",this.handleUndo=t=>kT(this,void 0,void 0,function*(){t.preventDefault(),yield this.commander.undo()}),this.handleRedo=t=>kT(this,void 0,void 0,function*(){t.preventDefault(),yield this.commander.redo()})}init(t){super.init(t),this.hotkey=new MP({filter:()=>this.interaction.isActive()}),this.hotkey.bind("mod+z",this.handleUndo),this.hotkey.bind(["mod+shift+z","mod+y"],this.handleRedo)}destroy(){var t;null===(t=this.hotkey)||void 0===t||t.destroy()}}class OT extends cT{constructor(){super(...arguments),this.name="select-highlight",this.highlightMasks=[],this.handleSelectionChanged=({next:t})=>{this.highlightSelection(t)},this.handleGeometryChanged=({target:t})=>{this.interaction.isSelected(t)&&this.highlightSelection(this.interaction.getSelection())},this.handleHistoryChanged=()=>{this.highlightSelection(this.interaction.getSelection())}}init(t){super.init(t);const{emitter:e}=t;e.on("selection:change",this.handleSelectionChanged),e.on("selection:geometrychange",this.handleGeometryChanged),e.on("history:change",this.handleHistoryChanged),this.highlightSelection(this.interaction.getSelection())}destroy(){this.clearMasks();const{emitter:t}=this;t.off("selection:change",this.handleSelectionChanged),t.off("selection:geometrychange",this.handleGeometryChanged),t.off("history:change",this.handleHistoryChanged)}highlightSelection(t){1===t.length&&_h(t[0])?this.clearMasks():(this.drawElementMasks(t),this.drawCombinedBoundsMask(t))}drawElementMasks(t){let e=0;for(;e<t.length;e++){const{x:n,y:i,width:r,height:o}=hP(this.editor.getDocument(),t[e]),s={x:n,y:i,width:r,height:o,fill:"none",stroke:"#3384F5","stroke-width":1,"pointer-events":"none"},a=this.highlightMasks[e];a?Jc(a,s):this.highlightMasks[e]=this.interaction.appendTransientElement(Zc("rect",s))}for(;e<this.highlightMasks.length;e++)this.highlightMasks[e].remove();this.highlightMasks=this.highlightMasks.slice(0,t.length)}drawCombinedBoundsMask(t){var e;if(t.length<2)return null===(e=this.combinedBoundsMask)||void 0===e||e.remove(),void(this.combinedBoundsMask=void 0);const n=uu(t.map(t=>hP(this.editor.getDocument(),t))),i=Object.assign(Object.assign({},n),{fill:"none",stroke:"#3384F5","stroke-width":2,"pointer-events":"none"});this.combinedBoundsMask?Jc(this.combinedBoundsMask,i):this.combinedBoundsMask=this.interaction.appendTransientElement(Zc("rect",i))}clearMasks(){var t;this.highlightMasks.forEach(t=>t.remove()),this.highlightMasks=[],null===(t=this.combinedBoundsMask)||void 0===t||t.remove(),this.combinedBoundsMask=void 0}}var jT=Math.max,ET=Math.min;const _T=function(t,e,n){return t>=ET(e,n)&&t<jT(e,n)};var ST=/\s/;const $T=function(t){for(var e=t.length;e--&&ST.test(t.charAt(e)););return e};var AT=/^\s+/;const zT=function(t){return t?t.slice(0,$T(t)+1).replace(AT,""):t};var PT=/^[-+]0x[0-9a-f]+$/i,LT=/^0b[01]+$/i,IT=/^0o[0-7]+$/i,TT=parseInt;const RT=function(t){if("number"==typeof t)return t;if(Gr(t))return NaN;if(Qr(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Qr(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=zT(t);var n=LT.test(t);return n||IT.test(t)?TT(t.slice(2),n?2:8):PT.test(t)?NaN:+t};var BT=1/0;const WT=function(t){return t?(t=RT(t))===BT||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};const HT=function(t,e,n){return e=WT(e),void 0===n?(n=e,e=0):n=WT(n),t=RT(t),_T(t,e,n)};class NT extends cT{constructor(t){super(),this.name="zoom-wheel",this.minViewBoxSize=20,this.maxViewBoxSize=2e4,this.initialViewBox=null,this.handleKeyUp=t=>{if(!(t.ctrlKey||t.metaKey||t.shiftKey)&&this.initialViewBox){const t=Qh(Zh(this.editor.getDocument()));if(t!==this.initialViewBox){const e=new aP({viewBox:t},{viewBox:this.initialViewBox});this.commander.execute(e)}this.initialViewBox=null,document.removeEventListener("keyup",this.handleKeyUp)}},this.wheelListener=t=>{if(!this.shouldZoom(t))return;t.preventDefault();const e=t.deltaY<0?1/1.1:1.1,n=this.editor.getDocument(),i=Zh(n),{width:r,height:o}=i,s=o*e;if(!HT(r*e,this.minViewBoxSize,this.maxViewBoxSize)||!HT(s,this.minViewBoxSize,this.maxViewBoxSize))return;null===this.initialViewBox&&(this.initialViewBox=Qh(i),document.addEventListener("keyup",this.handleKeyUp));const a=function(t,e,n){return{x:n.x-(n.x-t.x)*e,y:n.y-(n.y-t.y)*e,width:t.width*e,height:t.height*e}}(i,e,!t.ctrlKey&&!t.metaKey||t.shiftKey?this.getCenterPoint(i):this.getMousePoint(n,t));this.state.updateOptions({viewBox:Qh(a)})},this.getMousePoint=(t,e)=>cP(t,e.clientX,e.clientY),this.getCenterPoint=t=>({x:t.x+t.width/2,y:t.y+t.height/2}),this.shouldZoom=t=>{if(!this.interaction.isActive())return!1;if(0===t.deltaY)return!1;const e=t.ctrlKey||t.metaKey,n=t.shiftKey;return(!e||!n)&&(e||n)},void 0!==(null==t?void 0:t.minViewBoxSize)&&(this.minViewBoxSize=t.minViewBoxSize),void 0!==(null==t?void 0:t.maxViewBoxSize)&&(this.maxViewBoxSize=t.maxViewBoxSize)}init(t){super.init(t),document.addEventListener("wheel",this.wheelListener,{passive:!1})}destroy(){document.removeEventListener("wheel",this.wheelListener),document.removeEventListener("keyup",this.handleKeyUp)}}class FT{init(t){Object.assign(this,t)}}class DT extends FT{constructor(){super(...arguments),this.name="core-sync",this.unregisters=[]}init(t){super.init(t);const e=this.editor.getDocument();this.unregisters.push(this.editor.registerSync("viewBox",t=>{t?e.setAttribute("viewBox",t):e.removeAttribute("viewBox")},{immediate:!0})),this.unregisters.push(this.editor.registerSync("padding",t=>{void 0!==t&&tu(e,Jh(t))},{immediate:!0}))}destroy(){this.unregisters.forEach(t=>t())}}const VT=({icon:t,onClick:e,activate:n=!1,root:i})=>{ru(YT,`\n.${UT} {\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n font-size: 12px;\n color: #000000d9;\n border: none;\n border-radius: 6px;\n background-color: #fff;\n cursor: pointer;\n transition: color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;\n}\n.${UT}:hover {\n background-color: #f5f5f5;\n}\n.${UT}:active {\n background-color: #d9d9d9;\n}\n.${UT}[data-activate="true"] {\n background-color: #d9d9d9;\n}\n`,i);const r=document.createElement("button");r.type="button",r.classList.add(UT),n&&r.setAttribute("data-activate","true"),e&&r.addEventListener("click",e);const o=t();r.appendChild(o);return Object.assign(r,{setActivate:(t=>{t?r.setAttribute("data-activate","true"):r.removeAttribute("data-activate")}).bind(r),activate:n})},UT="infographic-edit-bar-icon-btn",YT="infographic-edit-bar-icon-btn-style";const qT="infographic-color-picker",GT=`${qT}__swatches`,XT=`${qT}__swatch`,KT=`${qT}__controls`,ZT=`${qT}__input`,QT=`${qT}__format`,JT=`${qT}__format-switch`,tR=`${qT}__format-switch-knob`,eR=`${qT}__format-switch-label`,nR="infographic-color-picker-style",iR=["#000000","#1f1f1f","#434343","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#f0f0f0","#ffffff","#1677ff","#2f54eb","#91caff","#13c2c2","#36cfc9","#52c41a","#73d13d","#fadb14","#ffd666","#fa8c16","#fa541c","#f5222d","#ff7875","#eb2f96","#ffadd2","#722ed1","#9254de","rgba(0, 0, 0, 0.65)","rgba(255, 255, 255, 0.85)"];function rR(t){var e,n,i;if("undefined"==typeof document)throw new Error("ColorPicker can only be used in the browser.");ru(nR,`\n.${qT} {\n width: 240px;\n padding: 10px;\n box-sizing: border-box;\n}\n.${GT} {\n display: grid;\n grid-template-columns: repeat(auto-fit, 26px);\n gap: 6px;\n margin-bottom: 10px;\n}\n.${XT} {\n width: 24px;\n height: 24px;\n border-radius: 50%;\n border: 1px solid rgba(0, 0, 0, 0.06);\n background: var(--swatch-color);\n cursor: pointer;\n padding: 0;\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);\n transition: transform 0.15s ease, box-shadow 0.15s ease;\n}\n.${XT}[data-active="true"] {\n box-shadow: 0 0 0 2px #1677ff;\n transform: translateY(-1px);\n}\n.${XT}:hover {\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);\n}\n.${KT} {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n.${ZT} {\n flex: 1;\n min-width: 0;\n height: 30px;\n padding: 2px 6px;\n border: 1px solid #d9d9d9;\n border-radius: 6px;\n background: #f5f5f5;\n color: #262626;\n font-size: 12px;\n font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Monaco, Consolas,\n "Liberation Mono", "Courier New", monospace;\n box-sizing: border-box;\n outline: none;\n transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;\n}\n.${ZT}:focus {\n border-color: #1677ff;\n background: #ffffff;\n box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);\n}\n.${ZT}[data-invalid="true"] {\n border-color: #ff4d4f;\n box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.12);\n}\n.${QT} {\n display: inline-flex;\n}\n.${JT} {\n position: relative;\n display: grid;\n grid-template-columns: 1fr 1fr;\n align-items: center;\n width: 110px;\n height: 30px;\n padding: 0;\n border: 1px solid #d9d9d9;\n border-radius: 6px;\n background: #f5f5f5;\n cursor: pointer;\n overflow: hidden;\n transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;\n}\n.${JT}:hover {\n background: #ededed;\n}\n.${JT}:focus-visible {\n outline: none;\n border-color: #1677ff;\n box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);\n}\n.${tR} {\n position: absolute;\n inset: 0;\n width: 50%;\n background: #1677ff;\n border-radius: 6px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);\n transition: transform 0.2s ease;\n}\n.${JT}[data-format="rgba"] .${tR} {\n transform: translateX(100%);\n}\n.${eR} {\n position: relative;\n z-index: 1;\n text-align: center;\n font-size: 12px;\n color: #434343;\n user-select: none;\n}\n.${JT}[data-format="hexa"] .${eR}:first-child,\n.${JT}[data-format="rgba"] .${eR}:last-child {\n color: #ffffff;\n}\n`,t.root);const r=document.createElement("div");r.classList.add(qT);const o=document.createElement("div");o.classList.add(GT),r.appendChild(o);const s=document.createElement("div");s.classList.add(KT),r.appendChild(s);const a=document.createElement("input");a.type="text",a.spellcheck=!1,a.classList.add(ZT),s.appendChild(a);const l=document.createElement("div");l.classList.add(QT),s.appendChild(l);const c=document.createElement("button");c.type="button",c.classList.add(JT),c.appendChild(dR("HEXA"));const h=document.createElement("span");h.classList.add(tR),c.appendChild(h),c.appendChild(dR("RGBA")),l.appendChild(c);let u="hexa",d=null!==(n=null!==(e=oR(t.value))&&void 0!==e?e:oR("#1f1f1f"))&&void 0!==n?n:{r:31,g:31,b:31,a:1};const f=[];((null===(i=t.swatches)||void 0===i?void 0:i.length)?t.swatches:iR).forEach(t=>{const e=oR(t);if(!e)return;const n=document.createElement("button");n.type="button",n.classList.add(XT),n.style.setProperty("--swatch-color",sR(e,"rgba")),n.dataset.colorKey=lR(e),n.addEventListener("click",()=>{m(e)}),o.appendChild(n),f.push(n)}),c.addEventListener("click",()=>function(e,n){var i;if(u===e)return;u=e,y(),n&&(null===(i=t.onChange)||void 0===i||i.call(t,sR(d,u)))}("hexa"===u?"rgba":"hexa",!0)),a.addEventListener("change",g),a.addEventListener("keydown",t=>{"Enter"===t.key&&g()}),y();const p={setValue:t=>{const e=oR(t);e?(a.removeAttribute("data-invalid"),m(e,!1)):a.setAttribute("data-invalid","true")},destroy:()=>{r.remove()}};return Object.assign(r,p);function g(){const t=oR(a.value);t?(a.removeAttribute("data-invalid"),m(t)):a.setAttribute("data-invalid","true")}function m(e,n=!0){var i;!function(t,e){return t.r===e.r&&t.g===e.g&&t.b===e.b&&t.a===e.a}(d,e)?(d=e,y(),n&&(null===(i=t.onChange)||void 0===i||i.call(t,sR(d,u)))):y()}function y(){a.value=sR(d,u),function(){const t=lR(d);f.forEach(e=>{e.dataset.colorKey===t?e.setAttribute("data-active","true"):e.removeAttribute("data-active")})}(),c.setAttribute("data-format","rgba"===u?"rgba":"hexa")}}function oR(t){var e;if(!t)return;const n=Dt(t);if(!n||"number"!=typeof n.r)return;const i=n;return{r:hR(i.r),g:hR(i.g),b:hR(i.b),a:cR(null!==(e=i.alpha)&&void 0!==e?e:1)}}function sR(t,e){return"rgba"===e?function(t){const e=function(t){const e=Math.round(100*cR(t))/100;return 1===e?"1":0===e?"0":e.toString()}(t.a);return`rgba(${t.r}, ${t.g}, ${t.b}, ${e})`}(t):aR(t)}function aR(t){return`#${uR(t.r)}${uR(t.g)}${uR(t.b)}${t.a<1?uR(Math.round(255*t.a)):""}`}function lR(t){return aR(t).toLowerCase()}function cR(t){return Number.isNaN(t)?0:Math.min(1,Math.max(0,t))}function hR(t){if(Number.isNaN(t))return 0;return Math.round(Math.min(255,Math.max(0,t<=1?255*t:t)))}function uR(t){return t.toString(16).padStart(2,"0")}function dR(t){const e=document.createElement("span");return e.textContent=t,e.classList.add(eR),e}const fR=(t,{viewBox:e="0 0 1024 1024",size:n="1.5em"}={})=>({fill:i="currentColor"}={})=>{const r=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="${e}" width="${n}" height="${n}" fill="${i}">\n${t.trim()}\n</svg>`;return document.createRange().createContextualFragment(r).firstElementChild},pR={fontFamily:fR('<path d="M236.992 938.688H145.088L469.312 128h85.376l324.224 810.688h-91.904l-102.4-256H339.392l-102.4 256z m136.512-341.376h276.992L512 251.072l-138.496 346.24z"></path>',{size:"1.2em"}),fontSize:fR('<path d="M479.829333 640H202.837333l-85.333333 213.333333H25.6L298.666667 170.666667h85.333333l273.066667 682.666666h-91.904l-85.333334-213.333333z m-34.133333-85.333333L341.333333 293.76 236.970667 554.666667h208.725333zM896 534.826667V512h85.333333v341.333333h-85.333333v-22.826666a170.666667 170.666667 0 1 1 0-295.68zM810.666667 768a85.333333 85.333333 0 1 0 0-170.666667 85.333333 85.333333 0 0 0 0 170.666667z"></path>',{size:"1.2em"}),align:fR('<path d="M832 96c53.02 0 96 42.98 96 96v640c0 53.02-42.98 96-96 96H192c-53.02 0-96-42.98-96-96V192c0-53.02 42.98-96 96-96z m0 64H192c-17.673 0-32 14.327-32 32v640c0 17.673 14.327 32 32 32h640c17.673 0 32-14.327 32-32V192c0-17.673-14.327-32-32-32zM725.333 672c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z m0-192c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z m0-192c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z"></path>'),alignTop:fR('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-121.533c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM512.45 91.003L512 91a32.632 32.632 0 0 1 1.653 0.042l0.134 0.008c3.447 0.189 6.75 0.924 9.82 2.12l0.198 0.078a16.118 16.118 0 0 1 0.485 0.197l0.11 0.046a31.82 31.82 0 0 1 8.546 5.315l0.12 0.105a31.066 31.066 0 0 1 1.189 1.095l0.08 0.078 0.235 0.23 0.062 0.063 128 128.055c12.494 12.5 12.49 32.761-0.01 45.255-12.374 12.37-32.356 12.489-44.877 0.362l-0.377-0.372L544 200.28v413.598c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.996-31.471l-0.004-0.53V200.278l-73.368 73.4c-12.369 12.375-32.35 12.503-44.877 0.381l-0.378-0.37c-12.374-12.37-12.502-32.352-0.38-44.878l0.37-0.378 128-128.055 0.181-0.178a31.875 31.875 0 0 1 9.5-6.47l0.105-0.046c0.116-0.051 0.233-0.101 0.35-0.15 0.054-0.024 0.11-0.047 0.165-0.07a28.198 28.198 0 0 1 0.536-0.219l0.157-0.061a31.816 31.816 0 0 1 9.356-2.103l0.113-0.007c0.147-0.01 0.294-0.02 0.442-0.027l0.028-0.001 0.39-0.019 0.144-0.005a23.911 23.911 0 0 1 0.712-0.018c0.3-0.004 0.602-0.004 0.904 0z"></path>'),alignRight:fR('<path d="M896 800.339c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H298.667c-17.673 0-32-14.327-32-32 0-17.497 14.041-31.713 31.47-31.996l0.53-0.004H896z m0-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004H896z m0-213.226c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignBottom:fR('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-121.533c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM490.505 637.584l-0.127-0.117a32.174 32.174 0 0 1-0.633-0.596l-0.098-0.096-0.217-0.213-0.062-0.063-128-128.055c-12.494-12.499-12.49-32.76 0.01-45.254 12.374-12.37 32.356-12.489 44.877-0.362l0.377 0.371L480 536.598V123c0-17.673 14.327-32 32-32 17.496 0 31.713 14.042 31.996 31.47l0.004 0.53v413.597l73.368-73.398c12.494-12.5 32.755-12.503 45.255-0.01 12.374 12.37 12.502 32.352 0.38 44.878l-0.37 0.377-128 128.055c-0.121 0.12-0.238 0.236-0.356 0.35l0.355-0.35a31.922 31.922 0 0 1-9.68 6.649l-0.09 0.039a29.917 29.917 0 0 1-1.241 0.514 31.816 31.816 0 0 1-9.338 2.095l-0.113 0.008c-0.147 0.01-0.294 0.019-0.442 0.027h-0.028c-0.13 0.008-0.26 0.014-0.39 0.02l-0.144 0.005a23.92 23.92 0 0 1-0.796 0.019 33.927 33.927 0 0 1-0.37 0.002h-0.13l-0.236-0.002 0.366 0.002a32.633 32.633 0 0 1-1.153-0.02l-0.129-0.006a31.108 31.108 0 0 1-0.876-0.046l-0.105-0.008a31.811 31.811 0 0 1-8.926-1.931l-0.089-0.034a21.022 21.022 0 0 1-0.362-0.138l-0.098-0.04a22.132 22.132 0 0 1-0.746-0.304l-0.219-0.093-0.209-0.092a31.812 31.812 0 0 1-8.034-5.094l-0.12-0.105-0.173-0.153-0.151-0.136-0.105-0.093z"></path>'),alignLeft:fR('<path d="M725.333 800.339c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h597.333zM896 587.113c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768zM725.333 373.887c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h597.333zM896 160.661c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignCenter:fR('<path d="M768 800.339c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H256c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h512z m128-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768zM768 373.887c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H256c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h512z m128-213.226c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignMiddle:fR('<path d="M534.246 617.448l0.377 0.371 128 127.952c12.5 12.494 12.503 32.755 0.009 45.255-12.37 12.374-32.352 12.501-44.878 0.38l-0.377-0.372-73.38-73.352V939c0 17.673-14.326 32-32 32-17.496 0-31.712-14.042-31.995-31.47l-0.004-0.53-0.001-221.314-73.374 73.348c-12.374 12.37-32.356 12.49-44.878 0.363l-0.377-0.371c-12.37-12.375-12.49-32.356-0.362-44.878l0.37-0.377 128-127.952c12.372-12.366 32.347-12.49 44.87-0.37zM896 480.508c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM511.998 54c17.496 0 31.713 14.042 31.996 31.47l0.004 0.53-0.001 221.314 73.38-73.349c12.499-12.494 32.76-12.49 45.255 0.009 12.37 12.374 12.49 32.356 0.362 44.878l-0.37 0.377-128 127.951c-12.372 12.366-32.347 12.49-44.87 0.371l-0.377-0.37-128-127.952c-12.5-12.495-12.503-32.756-0.009-45.255 12.37-12.374 32.352-12.502 44.878-0.38l0.377 0.371 73.374 73.346V86c0-17.673 14.328-32 32-32z"></path>')},gR=fR('<path d="M502.714987 58.258904l-126.531056-54.617723a52.797131 52.797131 0 0 0-41.873587 96.855428A447.865322 447.865322 0 0 0 392.02307 946.707184a61.535967 61.535967 0 0 0 13.83649 1.820591 52.797131 52.797131 0 0 0 13.65443-103.773672 342.453118 342.453118 0 0 1-31.678278-651.771485l-8.374718 19.480321a52.615072 52.615072 0 0 0 27.855039 69.182448 51.522718 51.522718 0 0 0 20.572675 4.369418A52.797131 52.797131 0 0 0 476.498481 254.882703L530.205907 127.441352a52.979191 52.979191 0 0 0-27.49092-69.182448zM962.960326 509.765407A448.775617 448.775617 0 0 0 643.992829 68.090094a52.797131 52.797131 0 1 0-30.403866 101.042786A342.635177 342.635177 0 0 1 674.578753 801.059925a52.615072 52.615072 0 0 0-92.30395-50.612422l-71.913335 117.246043a52.433013 52.433013 0 0 0 17.295612 72.82363l117.063985 72.823629a52.797131 52.797131 0 1 0 54.617722-89.755123l-16.021198-10.013249A448.593558 448.593558 0 0 0 962.960326 509.765407z" p-id="1630"/>'),mR={align:fR('<path d="M555.188 715.059c17.673 0 32 14.327 32 32V875c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V747.059c0-17.673 14.327-32 32-32z m-32.001 63.999H203V843h320.187v-63.942zM854 416.529c17.673 0 32 14.327 32 32v127.942c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V448.529c0-17.673 14.327-32 32-32z m-32 64H203v63.941h619v-63.941zM683.25 118c17.673 0 32 14.327 32 32v127.941c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V150c0-17.673 14.327-32 32-32z m-32 64H203v63.941h448.25V182z"></path>'),alignTop:fR('\n <path d="M661.333 272.411c17.673 0 32 14.327 32 32V902c0 17.673-14.327 32-32 32H362.667c-17.673 0-32-14.327-32-32V304.411c0-17.673 14.327-32 32-32z m-32 63.999H394.666V870h234.667V336.41zM896 101.671c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z" />'),alignRight:fR('<path d="M891.329 96c17.496 0 31.713 14.042 31.995 31.47l0.005 0.53v768c0 17.673-14.327 32-32 32-17.497 0-31.713-14.042-31.996-31.47l-0.004-0.53V128c0-17.673 14.327-32 32-32z m-170.74 234.667c17.673 0 32 14.327 32 32v298.666c0 17.673-14.327 32-32 32H123c-17.673 0-32-14.327-32-32V362.667c0-17.673 14.327-32 32-32z m-32 63.999H155v234.667h533.589V394.666z" />'),alignBottom:fR('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768zM661.333 91c17.673 0 32 14.327 32 32v597.589c0 17.673-14.327 32-32 32H362.667c-17.673 0-32-14.327-32-32V123c0-17.673 14.327-32 32-32z m-32 64H394.666v533.589h234.667V155z" />'),alignLeft:fR('<path d="M133.671 96c17.497 0 31.713 14.042 31.996 31.47l0.004 0.53v768c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.995-31.47l-0.005-0.53V128c0-17.673 14.327-32 32-32zM902 330.667c17.673 0 32 14.327 32 32v298.666c0 17.673-14.327 32-32 32H304.411c-17.673 0-32-14.327-32-32V362.667c0-17.673 14.327-32 32-32z m-32.001 63.999H336.41v234.667h533.589V394.666z" />'),alignH:fR('<path d="M512.5 96c17.496 0 31.713 14.042 31.996 31.47l0.004 0.53v202.666H875c17.496 0 31.713 14.042 31.996 31.471l0.004 0.53v298.666c0 17.673-14.327 32-32 32H544.5V896c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.996-31.47l-0.004-0.53V693.333H150c-17.496 0-31.713-14.041-31.996-31.47l-0.004-0.53V362.667c0-17.673 14.327-32 32-32l330.5-0.001V128c0-17.673 14.327-32 32-32z m-32 298.666H182v234.667h298.5V394.666z m362.5 0H544.5v234.667H843V394.666z" />'),alignV:fR('<path d="M661.333 118c17.673 0 32 14.327 32 32v330.5H896c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H693.333V875c0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H362.667c-17.673 0-32-14.327-32-32l-0.001-330.5H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h202.666V150c0-17.496 14.042-31.713 31.471-31.996l0.53-0.004z m-32.001 426.5H394.665l0.001 298.5h234.667l-0.001-298.5z m0.001-362.5H394.666l-0.001 298.5h234.667l0.001-298.5z" />'),distributeH:fR('<path d="M853.333 96c17.497 0 31.713 14.042 31.996 31.47l0.004 0.53v768c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.995-31.47l-0.005-0.53V128c0-17.673 14.327-32 32-32z m-682.666 0c17.496 0 31.713 14.042 31.995 31.47l0.005 0.53v768c0 17.673-14.327 32-32 32-17.497 0-31.713-14.042-31.996-31.47l-0.004-0.53V128c0-17.673 14.327-32 32-32zM640 181.333c17.673 0 32 14.327 32 32v597.334c0 17.673-14.327 32-32 32H384c-17.673 0-32-14.327-32-32V213.333c0-17.673 14.327-32 32-32z m-32 64H416v533.333h192V245.333z" />'),distributeV:fR('<path d="M896 821.333c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM810.667 352c17.673 0 32 14.327 32 32v256c0 17.673-14.327 32-32 32H213.333c-17.673 0-32-14.327-32-32V384c0-17.673 14.327-32 32-32z m-32 64H245.334v192h533.333V416zM896 138.667c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z" />')},yR="infographic-edit-popover",vR=`${yR}__content`,xR=`${yR}__arrow`,bR="infographic-edit-popover-style";function wR(t){var e,n,i,r,o,s,a,l;const c=null!==(e=t.placement)&&void 0!==e?e:"top",h=null===(n=t.closeOnOutsideClick)||void 0===n||n,u=Array.isArray(t.trigger)?t.trigger:[t.trigger||"hover"],d=null!==(i=t.mouseEnterDelay)&&void 0!==i?i:50,f=null!==(r=t.mouseLeaveDelay)&&void 0!==r?r:150,p=null!==(o=t.offset)&&void 0!==o?o:8,g="number"==typeof t.padding?`${t.padding}px`:null!==(s=t.padding)&&void 0!==s?s:"4px",m=document.createElement("div");m.classList.add(yR);const y=null!==(a=t.target)&&void 0!==a?a:document.createElement("div");m.appendChild(y);const v=document.createElement("div");v.classList.add(vR),zh(v,ns),v.dataset.placement=Array.isArray(c)?c[0]:c,v.setAttribute("data-open",String(Boolean(t.open))),v.style.setProperty("--popover-gap",`${p}px`),v.style.setProperty("--popover-arrow-size","8px"),v.style.setProperty("--popover-arrow-inner-size","7px");const x=(()=>{const e="function"==typeof t.getContainer?t.getContainer():t.getContainer;return null!=e?e:rT(y)})();ru(bR,`\n.${yR} {\n position: relative;\n display: inline-flex;\n}\n.${vR} {\n position: absolute;\n z-index: 1200;\n padding: 0;\n --popover-gap: 8px;\n --popover-arrow-size: 8px;\n --popover-arrow-inner-size: 7px;\n background: #fff;\n border-radius: 8px;\n border: 1px solid rgba(239, 240, 240, 0.9);\n box-shadow: rgba(0, 0, 0, 0.08) 0px 1px 2px -2px, rgba(0, 0, 0, 0.04) 0px 2px 6px, rgba(0, 0, 0, 0.02) 0px 4px 8px 1px;\n opacity: 0;\n visibility: hidden;\n pointer-events: none;\n transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;\n}\n.${vR}-body {\n padding: 4px;\n color: #000000d9;\n font-size: 12px;\n line-height: 1.5;\n}\n.${vR}[data-open="true"] {\n opacity: 1;\n visibility: visible;\n pointer-events: auto;\n}\n.${xR} {\n position: absolute;\n width: 0;\n height: 0;\n}\n.${xR}::after {\n content: '';\n position: absolute;\n width: 0;\n height: 0;\n}\n.${vR}[data-placement="top"] {\n left: 50%;\n bottom: calc(100% + var(--popover-gap));\n transform: translate(-50%, calc(-1 * var(--popover-gap) / 2));\n}\n.${vR}[data-placement="top"] .${xR} {\n left: 50%;\n bottom: calc(-1 * var(--popover-arrow-size));\n transform: translateX(-50%);\n border-left: var(--popover-arrow-size) solid transparent;\n border-right: var(--popover-arrow-size) solid transparent;\n border-top: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);\n}\n.${vR}[data-placement="top"] .${xR}::after {\n left: 50%;\n bottom: 1px;\n transform: translateX(-50%);\n border-left: var(--popover-arrow-inner-size) solid transparent;\n border-right: var(--popover-arrow-inner-size) solid transparent;\n border-top: var(--popover-arrow-inner-size) solid #fff;\n}\n.${vR}[data-placement="top"][data-open="true"] {\n transform: translate(-50%, 0);\n}\n.${vR}[data-placement="bottom"] {\n left: 50%;\n top: calc(100% + var(--popover-gap));\n transform: translate(-50%, calc(var(--popover-gap) / 2));\n}\n.${vR}[data-placement="bottom"] .${xR} {\n left: 50%;\n top: calc(-1 * var(--popover-arrow-size) + 2px);\n transform: translateX(-50%);\n border-left: var(--popover-arrow-size) solid transparent;\n border-right: var(--popover-arrow-size) solid transparent;\n border-bottom: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);\n}\n.${vR}[data-placement="bottom"] .${xR}::after {\n left: 50%;\n top: 1px;\n transform: translateX(-50%);\n border-left: var(--popover-arrow-inner-size) solid transparent;\n border-right: var(--popover-arrow-inner-size) solid transparent;\n border-bottom: var(--popover-arrow-inner-size) solid #fff;\n}\n.${vR}[data-placement="bottom"][data-open="true"] {\n transform: translate(-50%, 0);\n}\n.${vR}[data-placement="left"] {\n right: calc(100% + var(--popover-gap));\n top: 50%;\n transform: translate(calc(-1 * var(--popover-gap) / 2), -50%);\n}\n.${vR}[data-placement="left"] .${xR} {\n right: calc(-1 * var(--popover-arrow-size) + 1px);\n top: 50%;\n transform: translateY(-50%);\n border-top: var(--popover-arrow-size) solid transparent;\n border-bottom: var(--popover-arrow-size) solid transparent;\n border-left: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);\n border-right: 0;\n}\n.${vR}[data-placement="left"] .${xR}::after {\n right: 1px;\n top: 50%;\n transform: translateY(-50%);\n border-top: var(--popover-arrow-inner-size) solid transparent;\n border-bottom: var(--popover-arrow-inner-size) solid transparent;\n border-left: var(--popover-arrow-inner-size) solid #fff;\n border-right: 0;\n}\n.${vR}[data-placement="left"][data-open="true"] {\n transform: translate(0, -50%);\n}\n.${vR}[data-placement="right"] {\n left: calc(100% + var(--popover-gap));\n top: 50%;\n transform: translate(calc(var(--popover-gap) / 2), -50%);\n}\n.${vR}[data-placement="right"] .${xR} {\n left: calc(-1 * var(--popover-arrow-size) + 1px);\n top: 50%;\n transform: translateY(-50%);\n border-top: var(--popover-arrow-size) solid transparent;\n border-bottom: var(--popover-arrow-size) solid transparent;\n border-right: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);\n border-left: 0;\n}\n.${vR}[data-placement="right"] .${xR}::after {\n left: 1px;\n top: 50%;\n transform: translateY(-50%);\n border-top: var(--popover-arrow-inner-size) solid transparent;\n border-bottom: var(--popover-arrow-inner-size) solid transparent;\n border-right: var(--popover-arrow-inner-size) solid #fff;\n}\n.${vR}[data-placement="right"][data-open="true"] {\n transform: translate(0, -50%);\n}\n`,x);const b=x!==m,w=document.createElement("div");w.classList.add(xR),v.appendChild(w);const M=document.createElement("div");M.classList.add(`${vR}-body`),M.style.padding=g,v.appendChild(M),x.appendChild(v);let k=Boolean(t.open),C=Array.isArray(c)?c:[c],O=null!==(l=C[0])&&void 0!==l?l:"top";const j=()=>{var t;const e=y.getBoundingClientRect(),n=v.getBoundingClientRect(),i=window.scrollX||document.documentElement.scrollLeft,r=window.scrollY||document.documentElement.scrollTop,o=document.documentElement.clientWidth,s=document.documentElement.clientHeight;let a=0,l=0;const c=t=>{switch(t){case"top":return{left:i+e.left+e.width/2-n.width/2,top:r+e.top-n.height-p};case"bottom":return{left:i+e.left+e.width/2-n.width/2,top:r+e.bottom+p};case"left":return{left:i+e.left-n.width-p,top:r+e.top+e.height/2-n.height/2};default:return{left:i+e.right+p,top:r+e.top+e.height/2-n.height/2}}},h=(t,e)=>t>=i&&e>=r&&t+n.width<=i+o&&e+n.height<=r+s;let u=null!==(t=C[0])&&void 0!==t?t:"top",d=c(u);for(const t of C){const e=c(t);if(d=e,h(e.left,e.top)){u=t;break}}if(O=u,v.dataset.placement=O,!b)return;({left:a,top:l}=d);const f=(()=>{const t=v.offsetParent;return t||(x instanceof ShadowRoot?x.host:x instanceof HTMLElement?x:document.documentElement)})();if(f===document.body||f===document.documentElement)v.style.left=`${a}px`,v.style.top=`${l}px`;else{const t=f.getBoundingClientRect();v.style.left=`${a-t.left+f.scrollLeft}px`,v.style.top=`${l-t.top+f.scrollTop}px`}v.style.right="auto",v.style.bottom="auto",v.style.transform="translate(0, 0)"};b&&(v.style.position="absolute",window.addEventListener("resize",j),window.addEventListener("scroll",j,!0));const E=t=>{let e=t;"function"==typeof e&&(e=e()),M.innerHTML="",e instanceof HTMLElement?M.appendChild(e):M.textContent=null!=e?e:"",j()},_=t=>{var e;C=Array.isArray(t)?t:[t],O=null!==(e=C[0])&&void 0!==e?e:"top",j()},S=t=>{k=t,v.setAttribute("data-open",String(k)),k&&j(),k&&h?document.addEventListener("click",A,!0):document.removeEventListener("click",A,!0)},$=()=>S(!k),A=t=>{const e=oT(t,m),n=oT(t,v);e||n||S(!1)};let z,P;const L=u.includes("hover"),I=u.includes("click"),T=()=>{void 0!==z&&(clearTimeout(z),z=void 0),void 0!==P&&(clearTimeout(P),P=void 0)},R=()=>{L&&(T(),z=window.setTimeout(()=>S(!0),d))},B=()=>{L&&(T(),P=window.setTimeout(()=>S(!1),f))};I&&y.addEventListener("click",$),L&&(m.addEventListener("mouseenter",R),m.addEventListener("mouseleave",B),v.addEventListener("mouseenter",R),v.addEventListener("mouseleave",B)),E(t.content),_(c),S(k);const W={setOpen:S,toggle:$,setContent:E,setPlacement:_,destroy:()=>{document.removeEventListener("click",A,!0),I&&y.removeEventListener("click",$),L&&(m.removeEventListener("mouseenter",R),m.removeEventListener("mouseleave",B),v.removeEventListener("mouseenter",R),v.removeEventListener("mouseleave",B),T()),b&&(window.removeEventListener("resize",j),window.removeEventListener("scroll",j,!0),v.remove()),m.remove()}};return Object.assign(m,W)}const MR="infographic-align-grid",kR=`${MR}--compact`,CR=`\n.${MR} {\n display: grid;\n grid-template-columns: repeat(4, 32px);\n grid-auto-rows: 32px;\n gap: 2px;\n}\n.${kR} {\n grid-template-columns: repeat(3, 32px);\n}\n`,OR=[{icon:mR.alignLeft,action:"LEFT"},{icon:mR.alignH,action:"H_CENTER"},{icon:mR.alignRight,action:"RIGHT"},{icon:mR.distributeH,action:"H_DISTRIBUTE"},{icon:mR.alignTop,action:"TOP"},{icon:mR.alignV,action:"V_CENTER"},{icon:mR.alignBottom,action:"BOTTOM"},{icon:mR.distributeV,action:"V_DISTRIBUTE"}],jR=(t,e,n,i)=>{var r;ru("infographic-align-grid-style",CR,null==i?void 0:i.root);const o=function(t,e,n){const i=document.createElement("div");i.classList.add(MR),e||i.classList.add(kR);const r=e?OR:OR.filter(({action:t})=>"H_DISTRIBUTE"!==t&&"V_DISTRIBUTE"!==t);return r.forEach(({icon:e,action:r})=>{const o=VT({root:n,icon:e,onClick:()=>t(r)});i.appendChild(o)}),i}(e=>function(t,e,n){if(!t.length)return;const i=t[0].ownerSVGElement;if(!i)return;const r=t.map(t=>function(t,e){const n=hP(e,t),i=!Ah(t),r=function(t){var e;const n=t.getAttribute("transform");if(null===n)return null;const i=n.match(/translate\(\s*([-\d.]+)(?:[ ,]\s*([-\d.]+))?\s*\)/i);if(!i){return{x:0,y:0,rest:{before:n.trim(),after:""},original:n}}const r=Number(i[1])||0,o=void 0!==i[2]&&Number(i[2])||0,s=null!==(e=i.index)&&void 0!==e?e:0,a=n.slice(0,s).trim(),l=n.slice(s+i[0].length).trim();return{x:r,y:o,rest:{before:a,after:l},original:n}}(t);if(r)return{element:t,bounds:n,mode:"transform",startX:r.x,startY:r.y,hasX:!1,hasY:!1,hasDataX:!1,hasDataY:!1,restTransform:r.rest,originalTransform:r.original,movable:i};const{x:o,y:s,hasX:a,hasY:l,hasDataX:c,hasDataY:h}=function(t,e){const n=th(t,["x","y","data-x","data-y"],!1),i=null!=n.x,r=null!=n.y,o=null!=n["data-x"],s=null!=n["data-y"],a=(t,e)=>{const n=null!=t?Number(t):NaN;return Number.isFinite(n)?n:e},l=a(n.x,NaN),c=a(n.y,NaN),h=a(n["data-x"],NaN),u=a(n["data-y"],NaN),d=Number.isFinite(l)?l:Number.isFinite(h)?h:e.x,f=Number.isFinite(c)?c:Number.isFinite(u)?u:e.y;return{x:d,y:f,hasX:i,hasY:r,hasDataX:o,hasDataY:s}}(t,n);return{element:t,bounds:n,mode:"attr",startX:o,startY:s,hasX:a,hasY:l,hasDataX:c,hasDataY:h,movable:i}}(t,i)).filter(Boolean);if(!r.length)return;const o=r.filter(t=>t.movable);if(!o.length)return;const s=r.filter(t=>!t.movable),a=s.length?s:r,l=uu(a.map(t=>t.bounds)),c=[];switch(e){case"LEFT":{const t=l.x;o.forEach(e=>{_R(c,e,t-e.bounds.x,0)});break}case"H_CENTER":{const t=l.x+l.width/2;o.forEach(e=>{_R(c,e,t-(e.bounds.x+e.bounds.width/2),0)});break}case"RIGHT":{const t=l.x+l.width;o.forEach(e=>{_R(c,e,t-(e.bounds.x+e.bounds.width),0)});break}case"TOP":{const t=l.y;o.forEach(e=>{_R(c,e,0,t-e.bounds.y)});break}case"V_CENTER":{const t=l.y+l.height/2;o.forEach(e=>{_R(c,e,0,t-(e.bounds.y+e.bounds.height/2))});break}case"BOTTOM":{const t=l.y+l.height;o.forEach(e=>{_R(c,e,0,t-(e.bounds.y+e.bounds.height))});break}case"H_DISTRIBUTE":!function(t,e){if(t.length<=2)return;const n=[...t].sort((t,e)=>t.bounds.x-e.bounds.x||t.bounds.y-e.bounds.y),i=ER(n);for(let t=0;t<i.length-1;t++){const r=i[t],o=i[t+1],s=n[r],a=n[o],l=n.slice(r+1,o);if(!l.length)continue;const c=(a.bounds.x-(s.bounds.x+s.bounds.width)-l.reduce((t,e)=>t+e.bounds.width,0))/(l.length+1);let h=s.bounds.x+s.bounds.width+c;l.forEach(t=>{_R(e,t,h-t.bounds.x,0),h+=t.bounds.width+c})}}(r,c);break;case"V_DISTRIBUTE":!function(t,e){if(t.length<=2)return;const n=[...t].sort((t,e)=>t.bounds.y-e.bounds.y||t.bounds.x-e.bounds.x),i=ER(n);for(let t=0;t<i.length-1;t++){const r=i[t],o=i[t+1],s=n[r],a=n[o],l=n.slice(r+1,o);if(!l.length)continue;const c=(a.bounds.y-(s.bounds.y+s.bounds.height)-l.reduce((t,e)=>t+e.bounds.height,0))/(l.length+1);let h=s.bounds.y+s.bounds.height+c;l.forEach(t=>{_R(e,t,0,h-t.bounds.y),h+=t.bounds.height+c})}}(r,c)}c.length&&n.executeBatch(c)}(t,e,n),null===(r=null==i?void 0:i.enableDistribution)||void 0===r||r,null==i?void 0:i.root);return wR({target:VT({icon:mR.align,root:null==i?void 0:i.root}),content:o,getContainer:null==i?void 0:i.root,placement:"top",offset:12})};function ER(t){const e=new Set;return e.add(0),e.add(t.length-1),t.forEach((t,n)=>{t.movable||e.add(n)}),Array.from(e).sort((t,e)=>t-e)}function _R(t,e,n,i){const r=function(t,e,n){if(!t.movable)return null;if(Math.abs(e)<1e-6&&Math.abs(n)<1e-6)return null;if("attr"===t.mode){const i=t.startX+e,r=t.startY+n,o={x:i,y:r},s={};return s.x=t.hasX?t.startX:null,s.y=t.hasY?t.startY:null,t.hasDataX&&(o["data-x"]=i,s["data-x"]=t.startX),t.hasDataY&&(o["data-y"]=r,s["data-y"]=t.startY),new rP(t.element,{attributes:o},{attributes:s})}const i=function(t,e,n){const i=`translate(${t}, ${e})`;return[null==n?void 0:n.before,i,null==n?void 0:n.after].filter(t=>t&&t.length).join(" ")}(t.startX+e,t.startY+n,t.restTransform),r=void 0!==t.originalTransform?t.originalTransform:null;return new rP(t.element,{attributes:{transform:i}},{attributes:{transform:r}})}(e,n,i);r&&t.push(r)}const SR="infographic-font-align-grid",$R=[{icon:pR.alignLeft,align:"LEFT"},{icon:pR.alignCenter,align:"CENTER"},{icon:pR.alignRight,align:"RIGHT"}],AR=[{icon:pR.alignTop,align:"TOP"},{icon:pR.alignMiddle,align:"MIDDLE"},{icon:pR.alignBottom,align:"BOTTOM"}],zR=`\n.${SR} {\n display: grid;\n grid-template-columns: repeat(3, 32px);\n grid-auto-rows: 32px;\n gap: 2px;\n}\n`,PR=(t,e,n,i)=>{const r=null==i?void 0:i.root;ru("infographic-font-align-grid-style",zR,r);const o={horizontal:e["data-horizontal-align"],vertical:e["data-vertical-align"]},s=VT({icon:pR.align,root:r}),a=function(t,e,n){const i=document.createElement("div");i.classList.add(SR);const r={},o=()=>{Object.entries(r).forEach(([e,n])=>{n.setActivate(e===t.horizontal||e===t.vertical)})},s=(s,a)=>{s.forEach(({icon:s,align:l})=>{const c=VT({root:n,icon:s,onClick:()=>{t[a]!==l&&(Object.assign(t,{[a]:l}),o(),e(Object.assign({},t)))},activate:l===t[a]});r[l]=c,i.appendChild(c)})};return s($R,"horizontal"),s(AR,"vertical"),i}(o,e=>{const i={};e.horizontal&&(i["data-horizontal-align"]=e.horizontal),e.vertical&&(i["data-vertical-align"]=e.vertical),Object.keys(i).length&&n.executeBatch(t.map(t=>new rP(t,{attributes:i})))},r);return wR({target:s,content:a,getContainer:r,placement:"top",offset:12})};const LR="infographic-font-color-btn",IR="infographic-font-color-style",TR="#1f1f1f",RR=(t,e,n,i)=>{const r=null==i?void 0:i.root;ru(IR,`\n.${LR} {\n position: relative;\n width: 32px;\n height: 32px;\n padding: 0;\n border: none;\n background: #fff;\n cursor: pointer;\n transition: box-shadow 0.2s ease, border-color 0.2s ease;\n}\n.${LR}::after {\n content: '';\n position: absolute;\n inset: 6px;\n border-radius: 50%;\n background: var(--infographic-font-color, ${TR});\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);\n}\n.${LR}[data-mixed="true"]::after {\n background: repeating-linear-gradient(\n 45deg,\n #d9d9d9 0,\n #d9d9d9 6px,\n #f5f5f5 6px,\n #f5f5f5 12px\n );\n}\n`,r);const o=function(t){return t&&Ar(t)?t:void 0}(e.fill),s=void 0===e.fill&&t.length>1,a=document.createElement("button");a.type="button",a.classList.add(LR),BR(a,null!=o?o:TR,s);const l=rR({root:r,value:null!=o?o:TR,onChange:e=>{BR(a,e,!1),n.executeBatch(t.map(t=>new rP(t,{attributes:{fill:e}})))}});return wR({target:a,content:l,getContainer:r,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function BR(t,e,n){t.style.setProperty("--infographic-font-color",e),n?t.setAttribute("data-mixed","true"):t.removeAttribute("data-mixed")}const WR="infographic-font-family-list",HR=`${WR}__option`,NR="infographic-font-family-list-style",FR=(t,e,n,i)=>{const r=null==i?void 0:i.root;ru(NR,`\n.${WR} {\n display: flex;\n flex-direction: column;\n gap: 2px;\n padding: 4px;\n min-width: 180px;\n max-height: 220px;\n overflow-y: auto;\n}\n.${HR} {\n width: 100%;\n text-align: left;\n padding: 6px 10px;\n border: none;\n border-radius: 6px;\n background: #fff;\n cursor: pointer;\n font-size: 12px;\n color: #000000d9;\n transition: background-color 0.2s ease, color 0.2s ease;\n}\n.${HR}:hover {\n background: #f5f5f5;\n}\n.${HR}[data-activate="true"] {\n background: #e6f4ff;\n color: #0958d9;\n}\n`,r);const o=Pa(),s=DR(e["font-family"]),a=o.map(t=>({label:t.name||t.fontFamily,value:t.fontFamily}));a.some(t=>DR(t.value)===s)||a.unshift({label:"默认",value:s});let l=s;const c=function(t,e,n){const i=document.createElement("div");i.classList.add(WR);const r={},o=t=>{Object.entries(r).forEach(([e,n])=>{e===t?n.setAttribute("data-activate","true"):n.removeAttribute("data-activate")})};return t.forEach(({label:t,value:s})=>{const a=document.createElement("button");a.type="button",a.classList.add(HR),a.textContent=t,a.style.fontFamily=s,s===e&&a.setAttribute("data-activate","true"),a.addEventListener("click",()=>{e!==s&&(o(e=s),n(s))}),r[s]=a,i.appendChild(a)}),i}(a,l,e=>{l!==e&&(l=e,n.executeBatch(t.map(t=>new rP(t,{attributes:{"font-family":ua(e)}}))))});return wR({target:VT({icon:pR.fontFamily,root:r}),content:c,getContainer:r,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function DR(t){return t?Array.isArray(t)?da(t.join(", ")):da(String(t)):""}const VR="infographic-font-size-grid",UR=[{label:"XS",value:12},{label:"S",value:14},{label:"M",value:16},{label:"L",value:20},{label:"XL",value:24}],YR=`\n.${VR} {\n display: grid;\n grid-template-columns: repeat(5, 32px);\n grid-auto-rows: 32px;\n gap: 2px;\n}\n`,qR=(t,e,n,i)=>{const r=null==i?void 0:i.root;ru("infographic-font-size-grid-style",YR,r);const o=VT({icon:pR.fontSize,root:r}),s=function(t){const e=12;if("number"==typeof t)return t;if("string"==typeof t){const n=parseFloat(t);return Number.isFinite(n)?n:e}return e}(e["font-size"]),a=function(t,e,n){const i=document.createElement("div");i.classList.add(VR);let r=t;const o={},s=()=>{Object.entries(o).forEach(([t,e])=>{const n=Number(t)===r;e.setActivate(n)})};return UR.forEach(({label:t,value:a})=>{const l=VT({root:n,icon:GR(t),onClick:()=>{r!==a&&(r=a,s(),e(a))},activate:a===r});o[String(a)]=l,i.appendChild(l)}),i}(s,e=>{n.executeBatch(t.map(t=>new rP(t,{attributes:{"font-size":e}})))},r);return wR({target:o,content:a,getContainer:r,placement:"top",offset:12})};function GR(t){return()=>{const e="1.2em",n=document.createElement("span");return n.textContent=t,n.style.display="inline-flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.width=e,n.style.height=e,n.style.fontSize="12px",n}}const XR="infographic-icon-color-btn",KR="infographic-icon-color-style",ZR="#1f1f1f",QR=(t,e,n,i)=>{const r=null==i?void 0:i.root;ru(KR,`\n.${XR} {\n position: relative;\n width: 32px;\n height: 32px;\n padding: 0;\n border: none;\n background: #fff;\n cursor: pointer;\n transition: box-shadow 0.2s ease, border-color 0.2s ease;\n}\n.${XR}::after {\n content: '';\n position: absolute;\n inset: 6px;\n border-radius: 50%;\n background: var(--infographic-icon-color, ${ZR});\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);\n}\n.${XR}[data-mixed="true"]::after {\n background: repeating-linear-gradient(\n 45deg,\n #d9d9d9 0,\n #d9d9d9 6px,\n #f5f5f5 6px,\n #f5f5f5 12px\n );\n}\n`,r);const o=function(t){return t&&Ar(t)?t:void 0}(e.fill),s=void 0===e.fill&&t.length>1,a=document.createElement("button");a.type="button",a.classList.add(XR),JR(a,null!=o?o:ZR,s);const l=rR({root:r,value:null!=o?o:ZR,onChange:e=>{JR(a,e,!1),n.executeBatch(t.map(t=>new rP(t,{attributes:{fill:e}})))}});return wR({target:a,content:l,getContainer:r,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function JR(t,e,n){t.style.setProperty("--infographic-icon-color",e),n?t.setAttribute("data-mixed","true"):t.removeAttribute("data-mixed")}class tB extends FT{constructor(t){super(),this.options=t,this.name="edit-bar",this.selection=[],this.handleSelectionChanged=({next:t})=>{if(this.selection=t,0===t.length)return void(this.container&&nB(this.container));const e=this.getOrCreateEditBar(),n=this.getEditItems(t);0!==n.length?(!function(t,e){t.innerHTML="",e.forEach(e=>{t.appendChild(e)})}(e,n),this.placeEditBar(e,t),eB(e)):nB(e)},this.handleGeometryChanged=({target:t})=>{this.selection.includes(t)&&this.container&&(this.placeEditBar(this.container,this.selection),eB(this.container))},this.handleHistoryChanged=()=>{this.container&&0!==this.selection.length&&(this.placeEditBar(this.container,this.selection),eB(this.container))}}init(t){super.init(t);const{emitter:e}=t;e.on("selection:change",this.handleSelectionChanged),e.on("selection:geometrychange",this.handleGeometryChanged),e.on("history:change",this.handleHistoryChanged)}destroy(){var t;const{emitter:e}=this;e.off("selection:change",this.handleSelectionChanged),e.off("selection:geometrychange",this.handleGeometryChanged),e.off("history:change",this.handleHistoryChanged),null===(t=this.container)||void 0===t||t.remove()}getEditItems(t){let e=!1,n=!1,i=!1;for(const r of t)if(_h(r)?e=!0:Ah(r)?n=!0:$h(r)&&(i=!0),e&&n&&i)break;return!e||n||i?e||!n||i?e||n||!i?this.getElementCollectionEditItems(t):1===t.length?this.getGeometryEditItems(t):this.getGeometryCollectionEditItems(t):1===t.length?this.getIconEditItems(t):this.getIconCollectionEditItems(t):1===t.length?this.getTextEditItems(t[0]):this.getTextCollectionEditItems(t)}getOrCreateEditBar(){if(this.container)return this.container;const{style:t,className:e}=this.options||{},n=document.createElement("div");Object.assign(n.style,Object.assign({visibility:"hidden",position:"absolute",left:"0",top:"0",display:"flex",flexFlow:"row",justifyContent:"center",alignItems:"center",height:"40px",minWidth:"40px",minHeight:"40px",borderRadius:"8px",padding:"0 4px",backgroundColor:"#fff",border:"1px solid rgba(239, 240, 240, 0.9)",zIndex:"9999",boxShadow:"rgba(0, 0, 0, 0.08) 0px 1px 2px -2px, rgba(0, 0, 0, 0.04) 0px 2px 6px, rgba(0, 0, 0, 0.02) 0px 4px 8px 1px"},t)),e&&n.classList.add(e),zh(n,ns),this.container=n;const i=this.resolveOverlayRoot();return null==i||i.appendChild(n),n}getTextEditItems(t){const{attributes:e={}}=lh(t),n=this.resolveOverlayRoot();return[RR,qR,PR,FR].map(i=>i([t],e,this.commander,{root:n}))}getTextCollectionEditItems(t){const e=tt(t.map(t=>lh(t).attributes||{})),n=this.resolveOverlayRoot();return[...[RR,qR,PR,FR].map(i=>i(t,e,this.commander,{root:n})),...this.getElementCollectionEditItems(t)]}getIconEditItems(t){const e=qh(t[0]),n=this.resolveOverlayRoot();return[QR].map(i=>i(t,e,this.commander,{root:n}))}getIconCollectionEditItems(t){const e=tt(t.map(t=>qh(t))),n=this.resolveOverlayRoot();return[QR].map(i=>i(t,e,this.commander,{root:n}))}getGeometryEditItems(t){return[]}getGeometryCollectionEditItems(t){return[...this.getElementCollectionEditItems(t)]}getElementCollectionEditItems(t){if(t.length<=1)return[];const e=this.resolveOverlayRoot();return[jR(t,0,this.commander,{enableDistribution:t.length>2,root:e})]}resolveOverlayRoot(){const{getContainer:t}=this.options||{},e="function"==typeof t?t():t;return null!=e?e:rT(this.editor.getDocument())}placeEditBar(t,e){var n;if(0===e.length)return;const i=uu(e.map(t=>t.getBoundingClientRect())),r=null!==(n=t.offsetParent)&&void 0!==n?n:document.documentElement,o=document.documentElement.clientHeight,s=document.documentElement.clientWidth,a=t.getBoundingClientRect(),l={x:i.x+i.width/2,y:i.y},c=i.y+i.height,h=(t,e,n)=>Math.min(Math.max(t,e),n),u=l.y-8,d=u>=a.height||u>=o-c-8;if(r===document.body||r===document.documentElement){const e=window.scrollX||document.documentElement.scrollLeft,n=window.scrollY||document.documentElement.scrollTop;let i=e+l.x-a.width/2;i=h(i,e,e+Math.max(s-a.width,0));let r=d?n+l.y-a.height-8:n+c+8;return r=h(r,n,n+Math.max(o-a.height,0)),t.style.left=`${i}px`,void(t.style.top=`${r}px`)}const f=r.getBoundingClientRect();let p=l.x-f.left-a.width/2;p=h(p,0,Math.max(f.width-a.width,0));let g=d?l.y-f.top-a.height-8:c-f.top+8;g=h(g,0,Math.max(f.height-a.height,0)),t.style.left=`${p}px`,t.style.top=`${g}px`}}function eB(t){t.style.visibility="visible"}function nB(t){t.style.visibility="hidden"}const iB=40;class rB extends FT{constructor(t){super(),this.options=t,this.name="reset-viewBox",this.viewBoxChanged=!1,this.handleResize=()=>{this.updateOriginViewBox(),this.updatePosition()},this.handleViewBoxChange=t=>{const e=this.editor.getDocument();if(this.viewBoxChanged=t!==this.originViewBox,!this.viewBoxChanged)return void(this.resetButton&&this.hideButton(this.resetButton));const n=this.getOrCreateResetButton();this.placeButton(n,e),this.showButton(n)},this.getOrCreateResetButton=()=>{if(this.resetButton)return this.resetButton;const{style:t,className:e}=this.options||{},n=this.resolveOverlayRoot();this.ensureButtonStyle(n);const i=VT({icon:gR,onClick:this.resetViewBox,root:n});return i.classList.add(oB),e&&i.classList.add(e),t&&Object.assign(i.style,t),zh(i,ns),this.resetButton=i,null==n||n.appendChild(i),i},this.getTransformScale=t=>{const e=t.getBoundingClientRect();return{scaleX:t.offsetWidth>0?e.width/t.offsetWidth:1,scaleY:t.offsetHeight>0?e.height/t.offsetHeight:1}},this.findStableContainer=t=>{let e=t.parentElement;for(;e;){if(e instanceof HTMLElement){const t=window.getComputedStyle(e);if(t.overflow&&"visible"!==t.overflow||t.overflowX&&"visible"!==t.overflowX||t.overflowY&&"visible"!==t.overflowY)return e}e=e.parentElement}return null},this.placeButton=(t,e)=>{var n;if(!e.isConnected)return;const i=e.getBoundingClientRect(),r=null!==(n=t.offsetParent)&&void 0!==n?n:document.documentElement,o=this.findStableContainer(e),s=null==o?void 0:o.getBoundingClientRect(),a=s?{right:Math.min(i.right,s.right),bottom:Math.min(i.bottom,s.bottom)}:i;if(r===document.body||r===document.documentElement){const e=window.scrollX||document.documentElement.scrollLeft,n=(window.scrollY||document.documentElement.scrollTop)+a.bottom-25-iB;return t.style.left=`${e+a.right-25-iB}px`,void(t.style.top=`${n}px`)}const l=r.getBoundingClientRect(),{scaleX:c,scaleY:h}=this.getTransformScale(r),u=(a.bottom-l.top)/h-25-iB;t.style.left=`${(a.right-l.left)/c-25-iB}px`,t.style.top=`${u}px`},this.updatePosition=()=>{this.resetButton&&this.viewBoxChanged&&this.placeButton(this.resetButton,this.editor.getDocument())},this.resetViewBox=()=>{const t=new aP({viewBox:this.originViewBox});this.commander.execute(t)},this.showButton=t=>{t.style.display="flex",t.style.visibility="visible"},this.hideButton=t=>{t.style.display="none"},this.removeButton=()=>{var t;this.viewBoxChanged=!1,null===(t=this.resetButton)||void 0===t||t.remove(),this.resetButton=void 0}}init(t){super.init(t),this.ensureButtonStyle(this.resolveOverlayRoot()),this.updateOriginViewBox(),this.unregisterSync=this.editor.registerSync("viewBox",this.handleViewBoxChange),window.addEventListener("resize",this.handleResize)}destroy(){var t;null===(t=this.unregisterSync)||void 0===t||t.call(this),window.removeEventListener("resize",this.handleResize),this.removeButton()}updateOriginViewBox(){const t=this.editor.getDocument();if(!t.getBBox)return void(this.originViewBox=Qh(Zh(t)));const{padding:e}=this.state.getOptions();this.originViewBox=nu(t,Jh(e))}resolveOverlayRoot(){const{getContainer:t}=this.options||{},e="function"==typeof t?t():t;return null!=e?e:rT(this.editor.getDocument())}ensureButtonStyle(t){ru(sB,`\n button.${oB} {\n visibility: hidden;\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n padding: 4px;\n background-color: #fff;\n border: 1px solid #e5e7eb;\n z-index: 1000;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n cursor: pointer;\n }\n `,t)}}const oB="infographic-reset-viewbox-btn",sB="infographic-reset-viewbox-btn-style";class aB extends FT{constructor(){super(...arguments),this.name="resize-element",this.target=null,this.handles=[],this.activeHandle=null,this.activePointerId=null,this.handleSelectionChange=({next:t})=>{const e=1===t.length?t[0]:null;e&&_h(e)?(this.target=e,this.updateHandles()):(this.target=null,this.hideHandles(),this.cancelDrag())},this.handleDeactivate=()=>{this.target=null,this.hideHandles(),this.cancelDrag()},this.handleGeometryChange=({target:t})=>{if(!this.target||t!==this.target)return;const e=this.getViewportRect(this.target);this.lastViewportRect=e,this.updateHandles(e)},this.handleHistoryChange=()=>{if(!this.target)return;const t=this.getViewportRect(this.target);this.lastViewportRect=t,this.updateHandles(t)},this.handlePointerMove=t=>{if(!this.target||!this.startPointer||!this.startRect||!this.activeHandle||null!==this.activePointerId&&t.pointerId!==this.activePointerId)return;const e=this.clientToElement(this.target,t.clientX,t.clientY),n=this.clampRect(this.applyDelta(this.startRect,e.x-this.startPointer.x,e.y-this.startPointer.y,this.activeHandle),this.activeHandle);this.lastRect=n,this.applyRect(this.target,n),this.lastViewportRect=this.getViewportRect(this.target),this.updateHandles(this.lastViewportRect),this.emitSelectionGeometryChange()},this.handlePointerUp=t=>{if(null!==this.activePointerId&&t.pointerId!==this.activePointerId)return;const e=this.lastRect,n=this.startAttrs,i=e&&this.startRect&&this.hasRectChanged(this.startRect,e);if(this.cancelDrag(),i&&this.target&&e&&n)this.commander.execute(new rP(this.target,{attributes:e},{attributes:n})),this.lastViewportRect=this.getViewportRect(this.target),this.updateHandles(this.lastViewportRect),this.emitSelectionGeometryChange();else if(this.target){const t=this.lastViewportRect||this.getViewportRect(this.target);this.updateHandles(t)}}}init(t){super.init(t);const{emitter:e}=t;e.on("selection:change",this.handleSelectionChange),e.on("selection:geometrychange",this.handleGeometryChange),e.on("history:change",this.handleHistoryChange),e.on("deactivated",this.handleDeactivate)}destroy(){this.cancelDrag(),this.removeContainer();const{emitter:t}=this;t.off("selection:change",this.handleSelectionChange),t.off("selection:geometrychange",this.handleGeometryChange),t.off("history:change",this.handleHistoryChange),t.off("deactivated",this.handleDeactivate)}ensureContainer(){if(this.container)return this.container;const t=Zc("g",{"pointer-events":"none"});this.overlay=Zc("rect",{fill:"rgba(51, 132, 245, 0.06)",stroke:"none","pointer-events":"none"});const e=Zc("rect",{fill:"none",stroke:"#3384F5","stroke-width":1,"stroke-dasharray":"4 2","pointer-events":"none"});t.appendChild(this.overlay),t.appendChild(e),this.outline=e;const n={"top-left":"nwse-resize",top:"ns-resize","top-right":"nesw-resize",right:"ew-resize","bottom-right":"nwse-resize",bottom:"ns-resize","bottom-left":"nesw-resize",left:"ew-resize"};return aB.HANDLE_POSITIONS.forEach((e,i)=>{const r="top"===e||"right"===e||"bottom"===e||"left"===e?Zc("line",{stroke:"transparent","stroke-width":aB.LINE_STROKE_WIDTH}):Zc("circle",{r:aB.HANDLE_SIZE/2,fill:"#3384F5",stroke:"#fff","stroke-width":1.5});r.style.cursor=n[e],r.style.pointerEvents="all",r.addEventListener("pointerdown",t=>this.handlePointerDown(t,e)),r.addEventListener("click",t=>{t.stopPropagation(),t.preventDefault()}),t.appendChild(r),this.handles[i]=r}),this.editor.getDocument().appendChild(t),this.container=t,t}updateHandles(t){if(!this.target)return void this.hideHandles();const e=t||this.getViewportRect(this.target)||this.lastViewportRect||null;if(!e)return void this.hideHandles();this.lastViewportRect=e;this.ensureContainer().style.display="block",this.outline.style.display="block",Jc(this.outline,e),this.overlay&&(this.overlay.style.display="block",Jc(this.overlay,e));const n=this.getHandlePoints(e);this.handles.forEach((t,i)=>{const[r,o]=n[i];if("circle"===t.tagName)Jc(t,{cx:r,cy:o});else{Jc(t,this.getHandleLine(e,aB.HANDLE_POSITIONS[i]))}t.style.display="block"})}hideHandles(){this.container&&(this.container.style.display="none"),this.outline&&(this.outline.style.display="none"),this.overlay&&(this.overlay.style.display="none"),this.handles.forEach(t=>t.style.display="none")}removeContainer(){var t;null===(t=this.container)||void 0===t||t.remove(),this.container=void 0,this.outline=void 0,this.overlay=void 0,this.handles=[]}handlePointerDown(t,e){if(!this.target)return;if(0!==t.button&&"mouse"===t.pointerType)return;t.stopPropagation(),t.preventDefault();const n=this.clientToElement(this.target,t.clientX,t.clientY);this.activeHandle=e,this.activePointerId=t.pointerId,this.startPointer=n;const i=this.getCurrentAttributes(this.target);this.startRect=i,this.startAttrs=Object.assign({},i),this.lastRect=i,this.lastViewportRect=this.getViewportRect(this.target),window.addEventListener("pointermove",this.handlePointerMove),window.addEventListener("pointerup",this.handlePointerUp),window.addEventListener("pointercancel",this.handlePointerUp)}cancelDrag(){this.activeHandle=null,this.activePointerId=null,this.startPointer=void 0,this.startRect=void 0,this.startAttrs=void 0,this.lastRect=void 0,this.lastViewportRect=void 0,window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}applyRect(t,e){Jc(t,{x:e.x,y:e.y,width:e.width,height:e.height})}getViewportRect(t){const{x:e,y:n,width:i,height:r}=hP(this.editor.getDocument(),t);return{x:e,y:n,width:i,height:r}}clientToElement(t,e,n){var i,r;const o=(null===(i=t.getScreenCTM())||void 0===i?void 0:i.inverse())||(null===(r=this.editor.getDocument().getScreenCTM())||void 0===r?void 0:r.inverse())||new DOMMatrix;return new DOMPoint(e,n).matrixTransform(o)}getCurrentAttributes(t){const e=th(t,["x","y","width","height"],!1),n=this.getViewportRect(t),i=(t,e)=>{const n=null!==t?Number(t):NaN;return Number.isFinite(n)?n:e};return{x:i(e.x,n.x),y:i(e.y,n.y),width:i(e.width,n.width),height:i(e.height,n.height)}}getHandlePoints(t){const{x:e,y:n,width:i,height:r}=t,o=e+i/2,s=n+r/2;return[[e,n],[o,n],[e+i,n],[e+i,s],[e+i,n+r],[o,n+r],[e,n+r],[e,s]]}applyDelta(t,e,n,i){let{x:r,y:o,width:s,height:a}=t;switch(i){case"top-left":r+=e,o+=n,s-=e,a-=n;break;case"top":o+=n,a-=n;break;case"top-right":o+=n,s+=e,a-=n;break;case"right":s+=e;break;case"bottom-right":s+=e,a+=n;break;case"bottom":a+=n;break;case"bottom-left":r+=e,s-=e,a+=n;break;case"left":r+=e,s-=e}return{x:r,y:o,width:s,height:a}}clampRect(t,e){let{x:n,y:i,width:r,height:o}=t;if(r<aB.MIN_SIZE){"top-left"!==e&&"bottom-left"!==e&&"left"!==e||(n-=aB.MIN_SIZE-r),r=aB.MIN_SIZE}if(o<aB.MIN_SIZE){"top-left"!==e&&"top-right"!==e&&"top"!==e||(i-=aB.MIN_SIZE-o),o=aB.MIN_SIZE}return{x:n,y:i,width:r,height:o}}hasRectChanged(t,e){return Math.abs(t.x-e.x)>.5||Math.abs(t.y-e.y)>.5||Math.abs(t.width-e.width)>.5||Math.abs(t.height-e.height)>.5}emitSelectionGeometryChange(){this.target&&this.lastViewportRect&&this.emitter.emit("selection:geometrychange",{type:"selection:geometrychange",target:this.target,rect:this.lastViewportRect})}getHandleLine(t,e){const{x:n,y:i,width:r,height:o}=t;switch(e){case"top":return{x1:n,y1:i,x2:n+r,y2:i};case"right":return{x1:n+r,y1:i,x2:n+r,y2:i+o};case"bottom":return{x1:n,y1:i+o,x2:n+r,y2:i+o};default:return{x1:n,y1:i,x2:n,y2:i+o}}}}aB.HANDLE_SIZE=10,aB.LINE_STROKE_WIDTH=8,aB.MIN_SIZE=1,aB.HANDLE_POSITIONS=["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"];var lB=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/postcss.js");const cB=lB;var hB=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};function uB(t){return hB(this,arguments,void 0,function*(t,e=!0){const n=function(t){const e=new Set,n=t=>{t&&ca(t).forEach(t=>{const n=ua(t);n&&e.add(n)})};n(t.getAttribute("font-family"));const i=t.querySelectorAll("foreignObject span");for(const t of i)n(t.style.fontFamily);return e}(t);if(0===n.size)return;const i=[];yield Promise.all(Array.from(n).map(t=>hB(this,void 0,void 0,function*(){const n=function(t){const e=[],n=ca(t).map(t=>ua(t));return document.fonts.forEach(t=>{n.includes(ua(t.family))&&"loaded"===t.status&&e.push(t)}),e}(t);if(!n.length)return;const r=yield function(t){return hB(this,void 0,void 0,function*(){const e=Ia(t),n=[];return yield Promise.allSettled(e.map(t=>hB(this,void 0,void 0,function*(){const e=yield Fh(t).then(t=>t.text()).catch(()=>(console.error(`Failed to fetch font CSS: ${t}`),null));if(e)try{cB.parse(e).walkAtRules("font-face",t=>{const e={};t.walkDecls(t=>{e[t.prop]=t.value}),n.push(e)})}catch(e){console.error(`Failed to parse CSS: ${t}`,e)}}))),n})}(t);if(!r.length)return;const o=yield Promise.all(r.map(t=>hB(this,void 0,void 0,function*(){const i={"font-family":null!==(o=(r=t)["font-family"])&&void 0!==o?o:"",src:null!==(s=r.src)&&void 0!==s?s:"","font-style":null!==(a=r["font-style"])&&void 0!==a?a:"normal","font-display":null!==(l=r["font-display"])&&void 0!==l?l:"swap","font-weight":null!==(c=r["font-weight"])&&void 0!==c?c:"400","unicode-range":null!==(h=r["unicode-range"])&&void 0!==h?h:"U+0-FFFF"};var r,o,s,a,l,c,h;const u=i["unicode-range"].replace(/\s/g,"");if(!n.find(t=>t.unicodeRange&&t.unicodeRange.replace(/\s/g,"")===u))return null;const d=function(t,e){const n=ca(t);let i=null;for(const t of n)if(i=za(t),i)break;if(!i)return null;const r=pa(e),o=i.fontWeight[r];return o?Kh(i.baseUrl,o.replace(/\/result.css$/,"")):null}(i["font-family"],pa(i["font-weight"]));if(!d)return null;const f=i.src.match(/url\(["']?(.*?\.woff2)[^"']*["']?\)/);if(!(null==f?void 0:f[1]))return null;const p=Kh(d,f[1]);if(e){const t=yield function(t){return hB(this,void 0,void 0,function*(){const e=yield Fh(t);if(!e.ok)throw new Error(`Failed to load font: ${t}`);const n=yield e.blob();return yield new Promise((t,e)=>{const i=new FileReader;i.onloadend=()=>{t(i.result)},i.onerror=e,i.readAsDataURL(n)})})}(p);i.src=`url(${t}) format('woff2')`}else i.src=`url(${p}) format('woff2')`;return i})));i.push(...o.filter(Boolean)||[])}))),i.length>0&&function(t,e){const n=[],i=new Set;for(const t of e){const e=[t["font-family"],t["font-weight"],t["font-style"],t["unicode-range"],t.src].join("|");i.has(e)||(i.add(e),n.push(t))}if(0===n.length)return;const r=Zc("style",{type:"text/css"});r.innerHTML=n.map(t=>`\n@font-face {\n font-family: ${t["font-family"]};\n src: ${t.src};\n font-style: ${t["font-style"]};\n font-weight: ${t["font-weight"]};\n font-display: ${t["font-display"]};\n unicode-range: ${t["unicode-range"]};\n}\n`.trim()).join("\n");const o=t.querySelector("defs");o&&o.parentNode?o.parentNode.insertBefore(r,o.nextSibling):t.insertBefore(r,t.firstChild)}(t,i)})}var dB=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};const fB=.5;function pB(t){if(!t)return Number.NaN;const e=t.trim();return e&&/^[-+]?(?:\d+\.?\d*|\.\d+)(?:px)?$/.test(e)?Number.parseFloat(e):Number.NaN}function gB(t){const e=pB(t);return Number.isNaN(e)?0:e}function mB(t,e){if("function"!=typeof e.getScreenCTM)return null;const n=e.getScreenCTM();if(!n)return null;const i=n.inverse();return(e,n)=>{const r=t.createSVGPoint();return r.x=e,r.y=n,r.matrixTransform(i)}}function yB(t,e,{contentHeight:n,contentWidth:i,keepForeignObjectWidth:r}){const o=t.getBoundingClientRect(),s=e(o.left,o.top),a=e(o.right,o.bottom),l=s.x,c=s.y,h=a.x,u=a.y,d=h-l,f=u-c,p=o.width>0?d/o.width:1,g=n>0?n*(o.height>0?f/o.height:1):f,m=window.getComputedStyle(t.firstElementChild),y=m.alignItems,v=m.justifyContent,x=r?d:Math.max(d,i*p);let b,w,M,k;if("flex-end"===y||"end"===y)b=u-g,w=u;else if("center"===y){const t=g-f;b=c-t/2,w=u+t/2}else b=c,w=c+g;if("flex-end"===v||"end"===v||"right"===v)M=h-x,k=h;else if("center"===v){const t=x-d;M=l-t/2,k=h+t/2}else M=l,k=l+x;return[M,b,k,w]}function vB(t){const e=mB(t,t);return e?Array.from(t.querySelectorAll("foreignObject")).map(n=>{const i=n.firstElementChild;if(!i)return null;const r=function(t){const e=t.whiteSpace,n=t.flexWrap,i=t.wordBreak;return"wrap"===n||"wrap-reverse"===n||"pre-wrap"===e||"pre-line"===e||"normal"===e||"break-word"===t.overflowWrap||"break-word"===i||"break-all"===i}(window.getComputedStyle(i)),o=function(t,e){const n=t.style.height,i=t.style.width,r=t.style.overflow;try{t.style.height="max-content",t.style.overflow="hidden";const n=t.scrollHeight,i=t.getBoundingClientRect().height;let r=t.scrollWidth;return e&&(t.style.width="max-content",r=t.scrollWidth),{height:Math.max(n,i),width:r}}finally{t.style.height=n,t.style.width=i,t.style.overflow=r}}(i,!r),s=n.parentElement instanceof SVGGraphicsElement?n.parentElement:t,a=mB(t,s),l=mB(t,n);if(!a)return null;const c=yB(n,a,{contentHeight:o.height,contentWidth:o.width,keepForeignObjectWidth:r}),h=gB(n.getAttribute("x")),u=gB(n.getAttribute("y")),d=l?yB(n,l,{contentHeight:o.height,contentWidth:o.width,keepForeignObjectWidth:r}):null;if(n.hasAttribute("transform")&&!d)return null;const f=d?{x:h+d[0],y:u+d[1],width:d[2]-d[0],height:d[3]-d[1]}:{x:c[0],y:c[1],width:c[2]-c[0],height:c[3]-c[1]};return{rootBounds:yB(n,e,{contentHeight:o.height,contentWidth:o.width,keepForeignObjectWidth:r}),exportBounds:f}}):[]}function xB(t,e){const n=function(t){if(t.hasAttribute("viewBox"))return Zh(t);const e=pB(t.getAttribute("width")),n=pB(t.getAttribute("height"));if(!Number.isNaN(e)&&e>0&&!Number.isNaN(n)&&n>0)return{x:0,y:0,width:e,height:n};const i=t.getBoundingClientRect();return i.width>0&&i.height>0?{x:0,y:0,width:i.width,height:i.height}:null}(t);if(!n)return null;let i=n.x,r=n.y,o=n.x+n.width,s=n.y+n.height;e.forEach(t=>{if(!t)return;const{rootBounds:e}=t,[n,a,l,c]=e;i=Math.min(i,n),r=Math.min(r,a),o=Math.max(o,l),s=Math.max(s,c)});const a=o-i,l=s-r;return a<=n.width+fB&&l<=n.height+fB&&i>=n.x-fB&&r>=n.y-fB?null:`${i} ${r} ${a} ${l}`}function bB(t){return dB(this,arguments,void 0,function*(t,e={}){const{removeBackground:n=!1,embedResources:i=!0,removeIds:r=!1}=e,o=t.cloneNode(!0);if("undefined"!=typeof document){const e=vB(t);!function(t,e){const n=Array.from(t.querySelectorAll("foreignObject"));e.forEach((t,e)=>{if(!t)return;const i=n[e];i&&Jc(i,t.exportBounds)})}(o,e);const n=xB(t,e);n&&o.setAttribute("viewBox",n)}const{width:s,height:a}=Zh(o);return Jc(o,{width:s,height:a}),r?(function(t){const e=Array.from(t.querySelectorAll("use"));if(!e.length)return;e.forEach(e=>{const n=function(t){var e;return null!==(e=t.getAttribute("href"))&&void 0!==e?e:t.getAttribute("xlink:href")}(e);if(!n||!n.startsWith("#"))return;const i=function(t,e){const n=t.querySelector(e);if(n)return n;const i=document.querySelector(e);return i}(t,n);if(!i||i===e)return;const r=function(t,e){const n=e.tagName.toLowerCase();if("symbol"===n)return function(t,e){const n=e.cloneNode(!0),i=Zc("svg");MB(i,n,new Set(["id"])),MB(i,t,new Set(["href","xlink:href"]));for(;n.firstChild;)i.appendChild(n.firstChild);return i}(t,e);if("svg"===n)return function(t,e){const n=e.cloneNode(!0);return n.removeAttribute("id"),MB(n,t,new Set(["href","xlink:href"])),n}(t,e);return function(t,e){const n=e.cloneNode(!0);n.removeAttribute("id");const i=Zc("g");MB(i,t,new Set(["href","xlink:href","x","y","width","height","transform"]));const r=function(t){var e;const n=t.getAttribute("x"),i=t.getAttribute("y"),r=n||i?`translate(${null!=n?n:0} ${null!=i?i:0})`:"",o=null!==(e=t.getAttribute("transform"))&&void 0!==e?e:"";return r&&o?`${r} ${o}`:r||o||null}(t);r&&i.setAttribute("transform",r);return i.appendChild(n),i}(t,e)}(e,i);r&&e.replaceWith(r)})}(o),function(t){const e=function(t){const e=new Set;return eh(t,t=>{if("defs"===t.tagName.toLowerCase())return!1;CB(t,t=>e.add(t))}),e}(t);if(0===e.size)return void jB(t);const n=function(t,e){if(0===e.size)return null;const n=function(t,e){const n=new Map,i=Array.from(e),r=new Set(i),o=new Set,s=t=>{o.has(t)||r.has(t)||(i.push(t),r.add(t))};for(;i.length;){const e=i.shift();if(!e)continue;if(o.has(e))continue;o.add(e);const r=`#${OB(e)}`,a=t.querySelector(r);a&&(n.set(e,a),eh(a,t=>{CB(t,s)}))}return n}(t,e);if(0===n.size)return null;const i=Zc("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),r=Zc("defs");if(n.forEach(t=>{r.appendChild(t.cloneNode(!0))}),!r.children.length)return null;i.appendChild(r);const o=(new XMLSerializer).serializeToString(i);return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o)}(t,e);if(!n)return;eh(t,t=>{if("defs"===t.tagName.toLowerCase())return!1;Array.from(t.attributes).forEach(e=>{const i=e.value;if(!i.includes("url("))return;const r=i.replace(kB,(t,e)=>{const i=encodeURIComponent(e);return`url("${n}#${i}")`});r!==i&&t.setAttribute(e.name,r)})}),jB(t)}(o)):yield function(t){return dB(this,void 0,void 0,function*(){const e=t.querySelectorAll("use"),n=function(t){const e=Ph(t,wB);if(e)return e;const n=Zc("defs");return zh(n,wB),t.prepend(n),n}(t);e.forEach(e=>{const i=e.getAttribute("href");if(!i)return;if(!t.querySelector(i)){const t=document.querySelector(i);t&&n.appendChild(t.cloneNode(!0))}})})}(o),yield uB(o,i),n&&function(t){t.style.removeProperty("background-color");const e=Ph(t,"background");null==e||e.remove()}(o),function(t){(function(t){const e=Ph(t,"btns-group");null==e||e.remove();const n=Ph(t,"btn-icon-defs");null==n||n.remove()})(t),function(t){const e=t.querySelector("[data-element-type=transient-container]");null==e||e.remove()}(t),function(t){const e=t.querySelectorAll("g");e.forEach(t=>{t.removeAttribute("x"),t.removeAttribute("y"),t.removeAttribute("width"),t.removeAttribute("height")})}(t),function(t){eh(t,t=>{for(const e in t.dataset)delete t.dataset[e]})}(t)}(o),o})}const wB="icon-defs";function MB(t,e,n=new Set){Array.from(e.attributes).forEach(e=>{n.has(e.name)||("style"!==e.name?"class"!==e.name?t.setAttribute(e.name,e.value):function(t,e){const n=t.getAttribute("class");if(!n)return void t.setAttribute("class",e);t.setAttribute("class",`${n} ${e}`.trim())}(t,e.value):function(t,e){const n=t.getAttribute("style");if(!n)return void t.setAttribute("style",e);const i=n.trim().endsWith(";")?"":";";t.setAttribute("style",`${n}${i}${e}`)}(t,e.value))})}const kB=/url\(\s*['"]?#([^'")\s]+)['"]?\s*\)/g;function CB(t,e){for(const n of Array.from(t.attributes)){const t=n.value;if(t.includes("url("))for(const n of t.matchAll(kB))n[1]&&e(n[1]);"href"!==n.name&&"xlink:href"!==n.name||"#"!==t[0]||e(t.slice(1))}}function OB(t){return globalThis.CSS&&"function"==typeof globalThis.CSS.escape?globalThis.CSS.escape(t):function(t){const e=String(t),n=e.length;let i="";if(0===n)return"";for(let t=0;t<n;t++){const r=e.charCodeAt(t);0!==r?r>=1&&r<=31||127===r||0===t&&r>=48&&r<=57||1===t&&r>=48&&r<=57&&45===e.charCodeAt(0)?i+="\\"+r.toString(16)+" ":i+=0===t&&1===n&&45===r||!(r>=128||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122||45===r||95===r)?"\\"+e.charAt(t):e.charAt(t):i+="�"}return i}(t)}function jB(t){Array.from(t.querySelectorAll("defs")).forEach(t=>t.remove())}var EB=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};var _B=n("./node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.mjs"),SB=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class $B{constructor(){this.undoStack=[],this.redoStack=[]}init(t){Object.assign(this,t)}execute(t){return SB(this,void 0,void 0,function*(){yield t.apply(this.state),this.undoStack.push(t),this.redoStack=[],this.emitHistoryChange("execute")})}executeBatch(t){return SB(this,void 0,void 0,function*(){if(0===t.length)return;const e=new nP(t);yield this.execute(e)})}undo(){return SB(this,void 0,void 0,function*(){const t=this.undoStack.pop();t&&(yield t.undo(this.state),this.redoStack.push(t),this.emitHistoryChange("undo"))})}redo(){return SB(this,void 0,void 0,function*(){const t=this.redoStack.pop();t&&(yield t.apply(this.state),this.undoStack.push(t),this.emitHistoryChange("redo"))})}serialize(){return this.undoStack.map(t=>t.serialize())}clear(){this.undoStack=[],this.redoStack=[]}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}getHistorySize(){return this.undoStack.length}destroy(){this.clear()}emitHistoryChange(t){var e;null===(e=this.emitter)||void 0===e||e.emit("history:change",{type:"history:change",action:t})}}var AB=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class zB{constructor(){this.extensions=new bP,this.interactions=[],this.active=!1,this.running=null,this.concurrentInteractions=new Set,this.selection=new Set,this.handleClick=t=>{const e=this.editor.getDocument(),n="function"==typeof t.composedPath?t.composedPath():[],i=oT(t,e)||n.some(t=>t instanceof HTMLElement&&function(t){let e=t;for(;e;){if(Ph(e,ns))return!0;e=e.parentElement}return!1}(t));t.target&&i?this.activate():this.deactivate()}}init(t){Object.assign(this,t),document.addEventListener("click",this.handleClick),this.interactions.forEach(t=>{this.extensions.register(t.name,t),t.init({emitter:this.emitter,editor:this.editor,commander:this.commander,state:this.state,interaction:this}),this.emitter.emit("interaction:registered",t)})}isActive(){return this.active}select(t,e){const n=this.getSelection(),i=[],r=[];if("replace"===e){const e=new Set(t);n.forEach(t=>{e.has(t)||r.push(t)}),t.forEach(t=>{this.selection.has(t)||i.push(t)}),this.selection=e}else"add"===e?t.forEach(t=>{this.selection.has(t)||(this.selection.add(t),i.push(t))}):"remove"===e?t.forEach(t=>{this.selection.delete(t)&&r.push(t)}):"toggle"===e&&t.forEach(t=>{this.selection.has(t)?(this.selection.delete(t),r.push(t)):(this.selection.add(t),i.push(t))});const o=this.getSelection();this.emitter.emit("selection:change",{type:"selection:change",previous:n,next:o,added:i,removed:r,mode:e})}getSelection(){return[...this.selection]}isSelected(t){return this.selection.has(t)}clearSelection(){const t=this.getSelection();this.selection.clear();this.emitter.emit("selection:change",{type:"selection:change",previous:t,next:[],added:[],removed:t,mode:"replace"})}activate(){this.active=!0,this.emitter.emit("activated")}deactivate(){this.active=!1,this.running=null,this.clearSelection(),this.emitter.emit("deactivated")}executeExclusiveInteraction(t,e){return AB(this,void 0,void 0,function*(){if(this.active&&!this.running){this.running=t;try{this.emitter.emit("interaction:started",t),yield e(),this.emitter.emit("interaction:ended",t)}catch(e){console.error(`Error occurred during exclusive interaction "${t.name}":`,e),this.emitter.emit("interaction:error",t,e)}finally{this.running=null}}})}executeConcurrentInteraction(t,e){return AB(this,void 0,void 0,function*(){if(this.active){this.concurrentInteractions.add(t);try{this.emitter.emit("interaction:started",t),yield e(),this.emitter.emit("interaction:ended",t)}catch(e){console.error(`Error occurred during concurrent interaction "${t.name}":`,e),this.emitter.emit("interaction:error",t,e)}finally{this.concurrentInteractions.delete(t)}}})}getOrCreateTransientContainer(){const t="transient-container",e=this.editor.getDocument(),n=Ph(e,t);if(n&&n.isConnected)return n;const i=Zc("g");return zh(i,t),e.appendChild(i),i}appendTransientElement(t){return this.getOrCreateTransientContainer().appendChild(t),t}destroy(){this.extensions.forEach(t=>{t.destroy(),this.emitter.emit("interaction:destroyed",t)}),this.extensions.destroy(),this.active=!1,this.running=null,this.clearSelection(),document.removeEventListener("click",this.handleClick),this.getOrCreateTransientContainer().remove()}}class PB{constructor(){this.extensions=new bP}init(t,e=[]){Object.assign(this,t),e.forEach(t=>{this.registerPlugin(t)})}getPlugin(t){return this.extensions.get(t)}getPlugins(){return this.extensions.getAll()}registerPlugin(t){this.extensions.register(t.name,t);t.init({emitter:this.emitter,editor:this.editor,commander:this.commander,plugin:this,state:this.state}),this.emitter.emit("plugin:registered",t)}unregisterPlugin(t){const e=this.extensions.get(t);e&&(e.destroy(),this.extensions.unregister(t),this.emitter.emit("plugin:unregistered",e))}destroy(){this.extensions.getAll().forEach(t=>{this.unregisterPlugin(t.name),this.emitter.emit("plugin:destroyed",t)}),this.extensions.destroy()}}class LB{init(t){Object.assign(this,t)}addItemDatum(t,e){const n=t.slice(0,-1),i=t[t.length-1],r=Array.isArray(e)?e:[e];uP(this.options.data,n).splice(i,0,...r),this.emitter.emit("options:data:item:add",{indexes:t,datum:e}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"add",path:"data.items",indexes:t,value:r}]})}updateItemDatum(t,e){const n=ts(this.options.data,t);null!=n&&0!==t.length&&(Object.assign(n,e),this.emitter.emit("options:data:item:update",{indexes:t,datum:e}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:"data.items",indexes:t,value:e}]}))}removeItemDatum(t,e=1){const n=t.slice(0,-1),i=t[t.length-1],r=uP(this.options.data,n).splice(i,e);this.emitter.emit("options:data:item:remove",{indexes:t,datum:r}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"remove",path:"data.items",indexes:t,value:r}]})}updateData(t,e){this.options.data[t]=e,this.emitter.emit("options:data:update",{key:t,value:e}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:`data.${t}`,value:e}]})}updateElement(t,e){this.updateBuiltInElement(t,e)}updateOptions(t,e){const{bubbleUp:n=!1}=e||{};nT(this.options,t,"",{bubbleUp:n,collector:(t,e,n)=>{this.editor.syncRegistry.trigger(t,e,n)}}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:"",value:t}]})}getOptions(){return this.options}updateBuiltInElement(t,e){var n,i;const{data:r}=this.options,{attributes:o={}}=e,s=Lh(t),a=Ah(t)||"item-label"===s||"item-desc"===s||"item-value"===s||"item-illus"===s,l=a?fP(t):void 0;if(a){const t=ts(r,l);if(null==t)return;const e=s.replace("item-","");t.attributes||(t.attributes={}),(n=t.attributes)[e]||(n[e]={}),Object.assign(t.attributes[e],o)}else"title"!==s&&"desc"!==s&&"illus"!==s||(r.attributes||(r.attributes={}),(i=r.attributes)[s]||(i[s]={}),Object.assign(r.attributes[s],o));this.emitter.emit("options:element:update",{element:t,props:e}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",role:s,indexes:l,path:a?`${dP(l)}.attributes.${s.replace("item-","")}`:`data.attributes.${s}`,value:e}]})}destroy(){}}class IB{constructor(t){this.getOptions=t,this.handlers=new Map,this.isDispatching=!1,this.isDestroyed=!1}register(t,e,n){if(this.handlers.has(t)||this.handlers.set(t,new Set),this.handlers.get(t).add(e),null==n?void 0:n.immediate){const n=Jo(this.getOptions(),t);e(n,void 0)}return()=>{const n=this.handlers.get(t);n&&(n.delete(e),0===n.size&&this.handlers.delete(t))}}trigger(t,e,n){if(this.isDestroyed||this.isDispatching)return void(this.isDispatching&&console.warn(`[SyncRegistry] Recursive update detected on ${t}. Skipped to prevent loop.`));const i=this.handlers.get(t);if(i){this.isDispatching=!0;try{i.forEach(t=>t(e,n))}finally{this.isDispatching=!1}}}destroy(){this.isDestroyed=!0,this.handlers.clear()}}class TB{constructor(t,e,n){if(this.emitter=t,this.document=e,this.options=n,!e.isConnected)throw new Error("The provided document is not connected to the DOM.");e.style.userSelect="none";const i=new $B,r=new LB,o=new PB,s=new zB,a=new IB(()=>r.getOptions());this.commander=i,this.state=r,this.plugin=o,this.interaction=s,this.syncRegistry=a,i.init({state:r,emitter:t}),r.init({emitter:t,editor:this,commander:i,options:n});const l=new DT;o.init({emitter:t,editor:this,commander:i,state:r},[l,...n.plugins||[]]),s.init({emitter:t,editor:this,commander:i,state:r,interactions:n.interactions})}registerSync(t,e,n){return this.syncRegistry.register(t,e,n)}getDocument(){return this.document}destroy(){this.document.style.userSelect="",this.interaction.destroy(),this.plugin.destroy(),this.commander.destroy(),this.state.destroy(),this.syncRegistry.destroy()}}const RB=function(t,e,n){(void 0!==n&&!wo(t[e],n)||void 0===n&&!(e in t))&&AP(t,e,n)};const BB=function(t){return function(e,n,i){for(var r=-1,o=Object(e),s=i(e),a=s.length;a--;){var l=s[t?a:++r];if(!1===n(o[l],l,o))break}return e}};const WB=BB();const HB=function(t){return qr(t)&&dL(t)};const NB=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};const FB=function(t){return LP(t,vL(t))};const DB=function(t,e,n,i,r,o,s){var a=NB(t,n),l=NB(e,n),c=s.get(l);if(c)RB(t,n,c);else{var h=o?o(a,l,n+"",t,e,s):void 0,u=void 0===h;if(u){var d=Pr(l),f=!d&&UP(l),p=!d&&!f&&iL(l);h=l,d||f||p?Pr(a)?h=a:HB(a)?h=OL(a):f?(u=!1,h=CL(l,!0)):p?(u=!1,h=fI(l,!0)):h=[]:LI(l)||NP(l)?(h=a,NP(a)?h=FB(a):Qr(a)&&!Jr(a)||(h=vI(l))):u=!1}u&&(s.set(l,h),r(h,l,i,o,s),s.delete(l)),RB(t,n,h)}};const VB=function t(e,n,i,r,o){e!==n&&WB(n,function(s,a){if(o||(o=new _P),Qr(s))DB(e,n,a,i,t,r,o);else{var l=r?r(NB(e,a),s,a+"",e,n,o):void 0;void 0===l&&(l=s),RB(e,a,l)}},vL)};const UB=function(t){return t};const YB=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var qB=Math.max;const GB=function(t,e,n){return e=qB(void 0===e?t.length-1:e,0),function(){for(var i=arguments,r=-1,o=qB(i.length-e,0),s=Array(o);++r<o;)s[r]=i[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=i[r];return a[e]=n(s),YB(t,this,a)}};const XB=function(t){return function(){return t}};var KB=$P?function(t,e){return $P(t,"toString",{configurable:!0,enumerable:!1,value:XB(e),writable:!0})}:UB;var ZB=Date.now;const QB=function(t){var e=0,n=0;return function(){var i=ZB(),r=16-(i-n);if(n=i,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}};const JB=QB(KB);const tW=function(t,e){return JB(GB(t,e,UB),t+"")};const eW=function(t,e,n){if(!Qr(n))return!1;var i=typeof e;return!!("number"==i?dL(n)&&qP(e,n.length):"string"==i&&e in n)&&wo(n[e],t)};const nW=function(t){return tW(function(e,n){var i=-1,r=n.length,o=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,s&&eW(n[0],n[1],s)&&(o=r<3?void 0:o,r=1),e=Object(e);++i<r;){var a=n[i];a&&t(e,a,i,o)}return e})};var iW=nW(function(t,e,n){VB(t,e,n)});const rW=iW;var oW=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function sW(t){const{container:e="#container",padding:n=0,template:i,design:r,theme:o,themeConfig:s,data:a}=t,l=oW(t,["container","padding","template","design","theme","themeConfig","data"]),c=i?u(i):void 0,d="string"==typeof e?document.querySelector(e)||document.createElement("div"):e,f=c?function(t){return h.get(t)}(c):void 0,p=rW({},null==f?void 0:f.themeConfig,s),g=o||s||(null==f?void 0:f.themeConfig)?function(t,e={}){var n;const i=t?(o=t,Qu.get(o)||{}):{},r=rW({},i,e);var o;r.palette=e.palette||i.palette,r.stylize=null!==(n=e.stylize)&&void 0!==n?n:i.stylize,r.colorPrimary||(r.colorPrimary="#FF356A");r.palette||(r.palette=[r.colorPrimary]);return r}(o,p):void 0,m={container:d,padding:Jh(n)};if(f){const t=oW(f,["design"]);Object.assign(m,t)}Object.assign(m,l);const y=function(t,e){if(!t)return;if(Array.isArray(t.items)&&t.items.length)return t;const{lists:n,sequences:i,compares:r,nodes:o,values:s,root:a}=t,l=()=>{if(!e)return null;const t={list:n,sequence:i,compare:r,relation:o,chart:s,hierarchy:a?[a]:[]}[e.split("-")[0]];return(null==t?void 0:t.length)?t:null},c=()=>{var e;return(null==n?void 0:n.length)?n:(null==i?void 0:i.length)?i:(null==r?void 0:r.length)?r:(null==o?void 0:o.length)?o:(null==s?void 0:s.length)?s:a?[a]:(null===(e=t.items)||void 0===e?void 0:e.length)?t.items:[]};let h=l()||c();h===i&&"desc"===t.order&&(h=[...h].reverse());return Object.assign(Object.assign({},t),{items:h})}(a,c);if(y&&(m.data=y),c&&(m.template=c),(null==f?void 0:f.design)||r){const e=Object.assign(Object.assign({},g?Object.assign(Object.assign({},t),{themeConfig:g}):t),{data:y||a}),n=function(t,e){const{structure:n,title:i,item:r,items:o}=t||{},s=hW(r||(null==o?void 0:o[0]),e);return{structure:lW(n),title:cW(i,e),item:s,items:o?o.map(t=>hW(t,e)):[s]}}(Object.assign(Object.assign({},null==f?void 0:f.design),r),e);es(n)&&(m.design=n)}return o&&(m.theme=o),g&&(m.themeConfig=g),m}function aW(t){if("string"==typeof t)return{type:t};if(!("type"in t))throw new Error("Type is required");return t}function lW(t){if(!t)return null;const e=aW(t),{type:n}=e,i=oW(e,["type"]),r=function(t){return wg.get(t)}(n);if(!r)return null;const{component:o}=r;return Object.assign(Object.assign({},r),{component:t=>o(Object.assign(Object.assign({},t),i))})}function cW(t,e){if(!t)return{component:null};const n=aW(t),i=oW(n,["type"]),{themeConfig:r}=e,o=(null==r?void 0:r.colorBg)||"#fff",s=uW(o,o);return{component:t=>(t=>{const{x:e=0,y:n=0,alignHorizontal:i="center",title:r,desc:o,descLineNumber:s=2,themeColors:a}=t;return r||o?U(Zu,{flexDirection:"column",justifyContent:"center",alignItems:"center",x:e,y:n,gap:8,children:[r&&V(t=>V(su,Object.assign({},{fontSize:24,fill:a.colorPrimaryText,lineHeight:1.4,alignHorizontal:i},t,{"data-element-type":"title",children:r})),{}),o&&V(t=>V(su,Object.assign({},{fontSize:16,fill:a.colorTextSecondary,alignHorizontal:i,lineHeight:1.4,height:24*s},t,{"data-element-type":"desc",children:o})),{})]}):null})(Object.assign(Object.assign(Object.assign({},t),{themeColors:s}),i))}}function hW(t,e){if(!t)return null;const n=aW(t),{type:i}=n,r=oW(n,["type"]),o=function(t){return xd.get(t)}(i);if(!o)return null;const{component:s,options:a}=o;return Object.assign(Object.assign({},o),{component:t=>{var n;const{indexes:i}=t,{data:o,themeConfig:a}=e,l=(null==a?void 0:a.colorBg)||"#fff",{themeColors:c=uW(Va(null==a?void 0:a.palette,i,null===(n=null==o?void 0:o.items)||void 0===n?void 0:n.length)||(null==a?void 0:a.colorPrimary)||"#FF356A",l)}=t,h=oW(t,["themeColors"]);return s(Object.assign(Object.assign({themeColors:c},h),r))},options:a})}function uW(t,e="#fff"){return td({colorPrimary:t,isDarkMode:zr(e),colorBg:e})}function dW(t){const e=t.trim();if(!e)return null;const n=e.match(/^([^:\s=]+)\s*[:=]\s*(.*)$/);if(n)return{key:n[1],value:n[2].trim()};const i=e.match(/^([^\s]+)\s+(.*)$/);return i?{key:i[1],value:i[2].trim()}:{key:e,value:void 0}}function fW(t){return"__proto__"===t||"constructor"===t||"prototype"===t}function pW(t,e){return{kind:"object",line:t,value:e,entries:{}}}function gW(t){return{kind:"array",line:t,items:[]}}function mW(t){const e=[],n=pW(0),i=[{indent:-1,node:n,parent:null,key:null}];return t.split(/\r?\n/).forEach((t,n)=>{const r=n+1;if(!t.trim())return;const{indent:o,content:s}=function(t){let e=0,n=0;for(;n<t.length;){const i=t[n];if(" "!==i){if("\t"!==i)break;e+=2,n+=1}else e+=1,n+=1}return{indent:e,content:t.slice(n)}}(t);if(function(t){const e=t.trimStart();return e.startsWith("#")||e.startsWith("//")}(s)||function(t){return/^```[\w-]*\s*$/.test(t.trim())}(s))return;const a=function(t){return t.trimEnd()}(s);if(!a.trim())return;for(;i.length>1&&o<=i[i.length-1].indent;)i.pop();const l=i[i.length-1];let c=l.node;const h=a.trim();if(h.startsWith("-")&&(1===h.length||(" "===(u=h[1])||"\t"===u))){if("array"!==c.kind){if("object"!==c.kind||0!==Object.keys(c.entries).length||void 0!==c.value||!l.parent||!l.key)return void e.push({path:"",line:r,code:"bad_list",message:"List item is not under an array container.",raw:h});{const t=gW(c.line);if("object"===l.parent.kind)l.parent.entries[l.key]=t;else if("array"===l.parent.kind){const e=l.parent.items.indexOf(c);e>=0&&(l.parent.items[e]=t)}l.node=t,c=t}}const t=pW(r,h.slice(1).trim()||void 0);return c.items.push(t),void i.push({indent:o,node:t,parent:c})}var u;if("relations"===l.key&&!h.startsWith("-")&&/[<>=o.x-]{2,}/.test(h)){if("array"!==c.kind){if("object"!==c.kind||0!==Object.keys(c.entries).length||void 0!==c.value||!l.parent||!l.key)return void e.push({path:"",line:r,code:"bad_list",message:"List item is not under an array container.",raw:h});{const t=gW(c.line);if("object"===l.parent.kind)l.parent.entries[l.key]=t;else if("array"===l.parent.kind){const e=l.parent.items.indexOf(c);e>=0&&(l.parent.items[e]=t)}l.node=t,c=t}}const t=pW(r,h);return c.items.push(t),void i.push({indent:o,node:t,parent:c})}const d=dW(h);if(!d)return void e.push({path:"",line:r,code:"bad_syntax",message:"Invalid syntax line.",raw:h});if("object"!==c.kind)return void e.push({path:"",line:r,code:"bad_syntax",message:"Key-value pair is not under an object container.",raw:h});const f=pW(r,d.value),p=function(t,e,n,i,r){if(!e.includes("."))return fW(e)?(r.push({path:e,line:i,code:"bad_syntax",message:`Invalid key part: ${e}`,raw:e}),null):(t.entries[e]=n,{parent:t,key:e});const o=e.split(".");if(o.some(t=>!t))return r.push({path:e,line:i,code:"bad_syntax",message:"Invalid dotted key path.",raw:e}),null;let s=t;for(let t=0;t<o.length-1;t+=1){const n=o[t];if(fW(n))return r.push({path:e,line:i,code:"bad_syntax",message:`Invalid key part in dotted path: ${n}`,raw:e}),null;const a=s.entries[n];if(!a){const t=pW(i);s.entries[n]=t,s=t;continue}if("object"!==a.kind)return r.push({path:o.slice(0,t+1).join("."),line:i,code:"bad_syntax",message:"Cannot assign dotted key under a list value.",raw:e}),null;s=a}const a=o[o.length-1];return fW(a)?(r.push({path:e,line:i,code:"bad_syntax",message:`Invalid key part in dotted path: ${a}`,raw:e}),null):(s.entries[a]=n,{parent:s,key:a})}(c,d.key,f,r,e);p&&i.push({indent:o,node:f,parent:p.parent,key:p.key})}),{ast:n,errors:e}}function yW(t){return dW(t)}function vW(t,e){return{kind:"value",line:e,value:t}}const xW=/^(#[0-9a-f]{8}|#[0-9a-f]{6}|#[0-9a-f]{4}|#[0-9a-f]{3})/i,bW=/^((?:rgb|rgba|hsl|hsla)\([^)]*\))/i;function wW(t){const e=t.trim();return/^true$/i.test(e)?"true":/^false$/i.test(e)?"false":void 0}function MW(t){const e=t.trim(),n=wW(e);return"true"===n||"false"!==n&&(/^-?\d+(\.\d+)?$/.test(e)?parseFloat(e):e)}function kW(t){return"value"===t.kind||"object"===t.kind?t.value:void 0}function CW(t,e,n,i,r,o){t.push({path:n,line:e.line,code:i,message:r,raw:o})}function OW(t,e="any"){let n,i=t.trim();if(i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1).trim()),!i)return[];n=i.split("comma"===e?",":"space"===e?/\s+/:/[,\s]+/);const r=[];for(const t of n){const e=t.trim();if(e){if("#"===e||"//"===e)break;r.push(e)}}return r}function jW(t){const e=function(t){let e=t.trim();const n=e.search(/\s+#(?![0-9a-f])/i);n>=0&&(e=e.slice(0,n).trimEnd());const i=e.indexOf("//");return i>=0&&(e=e.slice(0,i).trimEnd()),e}(t);if(!e)return;const n=e.match(xW);if(n&&n[0].length===e.length)return e;const i=e.match(bW);return i&&i[1].length===e.length||(0,wl.A)(e).isValid()?e:void 0}function EW(t,e,n,i={}){const r=kW(t);if(void 0===r)return void CW(n,t,e,"schema_mismatch","Expected color value.");const o=jW(r);if(o)return o;i.soft||CW(n,t,e,"invalid_value","Invalid color value.",r)}function _W(t){if("array"===t.kind)return t.items.map(t=>_W(t));if("value"===t.kind)return MW(t.value);if(!(Object.keys(t.entries).length>0)&&void 0!==t.value)return MW(t.value);const e={};return void 0!==t.value&&(e.value=MW(t.value)),Object.entries(t.entries).forEach(([t,n])=>{e[t]=_W(n)}),e}function SW(t,e,n,i){switch(e.kind){case"union":return function(t,e,n,i){let r,o=null;for(const i of e.variants){const e=[],s=SW(t,i,n,e);(null===o||e.length<o.length)&&(o=e,r=s)}return o&&i.push(...o),r}(t,e,n,i);case"string":{const e=kW(t);return void 0===e?void CW(i,t,n,"schema_mismatch","Expected string value."):e}case"number":{const e=kW(t);if(void 0===e)return void CW(i,t,n,"schema_mismatch","Expected number value.");const r=e.trim().match(/^(-?\d+(\.\d+)?)(?:\s*(#|\/\/).*)?$/);return r?parseFloat(r[1]):void CW(i,t,n,"invalid_value","Invalid number value.",e)}case"boolean":{const e=kW(t);if(void 0===e)return void CW(i,t,n,"schema_mismatch","Expected boolean value.");const r=wW(e);return r?"true"===r:void CW(i,t,n,"invalid_value","Invalid boolean value.",e)}case"enum":{const r=kW(t);if(void 0===r)return void CW(i,t,n,"schema_mismatch","Expected enum value.");const o=wW(r),s=o&&e.values.includes(o)?o:r;return e.values.includes(s)?s:void CW(i,t,n,"invalid_value","Invalid enum value.",r)}case"array":{if("array"===t.kind)return t.items.map((t,r)=>SW(t,e.item,`${n}[${r}]`,i)).filter(t=>void 0!==t);if("object"===t.kind&&Object.keys(t.entries).length>0)return void CW(i,t,n,"schema_mismatch","Expected array value.");const r=kW(t);if(void 0===r)return void CW(i,t,n,"schema_mismatch","Expected array value.");const o=r.trim();if(o.startsWith("[")&&!o.endsWith("]"))return;return OW(r,e.split).map((r,o)=>SW(vW(r,t.line),e.item,`${n}[${o}]`,i)).filter(t=>void 0!==t)}case"palette":{if("array"===t.kind){const e=SW(t,{kind:"array",item:{kind:"color"},split:"any"},n,i);return Array.isArray(e)&&e.length>0?e:void 0}if("object"===t.kind&&Object.keys(t.entries).length>0)return void CW(i,t,n,"schema_mismatch","Expected palette value.");const e=kW(t);if(void 0===e)return void CW(i,t,n,"schema_mismatch","Expected palette value.");const r=e.trim();if(r.startsWith("[")&&!r.endsWith("]"))return;const o=jW(r);if(o)return[o];const s=OW(e,"any");if(function(t,e){return e.length>1||!(!t.startsWith("[")||!t.endsWith("]"))||void 0!==jW(t)}(r,s)){const e=s.map((e,r)=>EW(vW(e,t.line),`${n}[${r}]`,i)).filter(t=>void 0!==t);return e.length>0?e:void 0}return e}case"color":return EW(t,n,i,{soft:e.soft});case"object":{if("array"===t.kind)return void CW(i,t,n,"schema_mismatch","Expected object value.");const r={};if("value"===t.kind){if(e.shorthandKey)return r[e.shorthandKey]=t.value,r;const o=yW(t.value);if(void 0!==(null==o?void 0:o.value)){if(e.fields[o.key]){const s=SW(vW(o.value,t.line),e.fields[o.key],`${n}.${o.key}`,i);return void 0!==s&&(r[o.key]=s),r}return e.allowUnknown?(r[o.key]=MW(o.value),r):(CW(i,t,`${n}.${o.key}`,"unknown_key","Unknown key in object.",o.key),r)}return e.allowUnknown?(r.value=MW(t.value),r):void CW(i,t,n,"invalid_value","Expected object value.")}if(void 0!==t.value)if(e.shorthandKey&&void 0===r[e.shorthandKey])r[e.shorthandKey]=t.value;else{const o=yW(t.value);if(void 0!==(null==o?void 0:o.value))if(e.fields[o.key]){const s=SW(vW(o.value,t.line),e.fields[o.key],`${n}.${o.key}`,i);void 0!==s&&void 0===r[o.key]&&(r[o.key]=s)}else e.allowUnknown?r[o.key]=MW(o.value):CW(i,t,`${n}.${o.key}`,"unknown_key","Unknown key in object.",o.key);else e.allowUnknown&&(r.value=MW(t.value))}return Object.entries(t.entries).forEach(([t,o])=>{const s=e.fields[t];if(!s)return e.allowUnknown?void(r[t]=_W(o)):void CW(i,o,`${n}.${t}`,"unknown_key","Unknown key in object.",t);const a=SW(o,s,`${n}.${t}`,i);void 0!==a&&(r[t]=a)}),r}default:return}}const $W=t=>({kind:"enum",values:t}),AW=(t={})=>({kind:"color",soft:t.soft}),zW=(t,e="any")=>({kind:"array",item:t,split:e}),PW=(t,e={})=>({kind:"object",fields:t,allowUnknown:e.allowUnknown,shorthandKey:e.shorthandKey}),LW=(...t)=>({kind:"union",variants:t}),IW=()=>PW({},{allowUnknown:!0}),TW={fill:AW({soft:!0}),stroke:AW({soft:!0})},RW=PW(TW,{allowUnknown:!0}),BW=PW(TW,{allowUnknown:!0}),WW=PW({},{allowUnknown:!0});WW.fields={id:{kind:"string"},label:{kind:"string"},value:LW({kind:"number"},{kind:"string"}),desc:{kind:"string"},icon:LW({kind:"string"},IW()),illus:LW({kind:"string"},IW()),attributes:IW(),group:{kind:"string"},category:{kind:"string"},children:zW(WW)};const HW=PW({id:{kind:"string"},from:{kind:"string"},to:{kind:"string"},label:{kind:"string"},direction:$W(["forward","both","none"]),showArrow:$W(["true","false"]),arrowType:$W(["arrow","triangle","diamond"]),lineStyle:$W(["solid","dashed"])},{allowUnknown:!0}),NW=PW({type:{kind:"string"},colorBg:AW(),colorPrimary:AW(),palette:{kind:"palette"},title:RW,desc:RW,shape:BW,base:PW({global:PW({},{allowUnknown:!0}),shape:BW,text:RW}),item:PW({icon:PW({},{allowUnknown:!0}),label:RW,desc:RW,value:RW,shape:BW}),stylize:PW({type:$W(["rough","pattern"]),roughness:{kind:"number"},bowing:{kind:"number"},fillWeight:{kind:"number"},hachureGap:{kind:"number"},pattern:{kind:"string"},backgroundColor:AW(),foregroundColor:AW(),scale:{kind:"number"}},{shorthandKey:"type"}),elements:PW({},{allowUnknown:!0})},{shorthandKey:"type"}),FW=PW({},{allowUnknown:!0,shorthandKey:"type"}),DW=PW({structure:FW,item:FW,items:zW(FW),title:FW}),VW=PW({title:{kind:"string"},desc:{kind:"string"},items:zW(WW),lists:zW(WW),sequences:zW(WW),root:WW,compares:zW(WW),nodes:zW(WW),relations:zW(HW),values:zW(WW),order:$W(["asc","desc"]),illus:IW(),attributes:IW()}),UW=PW({type:{kind:"string"}},{shorthandKey:"type"}),YW=PW({template:UW,design:DW,data:VW,theme:NW,width:LW({kind:"number"},{kind:"string"}),height:LW({kind:"number"},{kind:"string"})}),qW=/(?:[<>o.x-]{2,}|[<>=]{2,})/,GW=/(?:[<>o.x-]{2,}|[<>=]{2,})/g;function XW(t){let e=t.trim();if(!e)return"";const n=e[0],i=e[e.length-1];return('"'===n&&'"'===i||"'"===n&&"'"===i)&&(e=e.slice(1,-1)),e=e.replace(/\\(["'])/g,"$1").replace(/("|&#quot;|#quot;)/g,'"').replace(/('|'|#apos;)/g,"'"),e.trim()}function KW(t,e){let n=e;for(;n<t.length&&/\s/.test(t[n]);)n+=1;return n}function ZW(t,e){let n=KW(t,e);if(n>=t.length)return null;const i=n;for(;n<t.length;){const e=t[n];if(/\s/.test(e)||"["===e||"("===e||"@"===e||"|"===e||"<"===e||">"===e)break;if("-"===e&&("-"===t[n+1]||">"===t[n+1]||"<"===t[n+1]))break;n+=1}if(n===i)return null;const r=t.slice(i,n).trim();if(!r)return null;if(t.startsWith("@{",n)){const e=t.indexOf("}",n+2);-1!==e&&(n=e+1)}let o;if(n=KW(t,n),"["===t[n]){const e=t.indexOf("]",n+1);-1!==e&&(o=XW(t.slice(n+1,e)),n=e+1)}else if("("===t[n]){const e=t.indexOf(")",n+1);if(-1!==e){let i=t.slice(n+1,e).trim();i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1).trim()),o=XW(i),n=e+1}}return{node:{id:r,label:o},nextIndex:n}}function QW(t,e){GW.lastIndex=e;const n=GW.exec(t);if(!n)return null;const i=n[0],r=n.index,o=r+i.length;let s=function(t){return XW(t.trim().replace(/^[-=.ox]+/,"").trim())}(t.slice(e,r))||void 0,a=i,l=o;{const e=a.includes("<"),n=a.includes(">");if(e&&!n){const e=new RegExp(GW.source,"g");e.lastIndex=o;const n=e.exec(t);if(n&&n[0].includes(">")&&!n[0].includes("<")){const e=t.slice(o,n.index).trim();if(e){return{label:XW(e)||s,direction:"both",reverse:!1,nextIndex:n.index+n[0].length}}}}}if(l=KW(t,l),"|"===t[l]){const e=t.indexOf("|",l+1);if(-1!==e){s=XW(t.slice(l+1,e))||s,l=e+1;const n=KW(t,l);GW.lastIndex=n;const i=GW.exec(t);i&&i.index===n?(a+=i[0],l=i.index+i[0].length):l=n}}const c=a.includes("<"),h=a.includes(">"),u=a.match(/[xo]/gi)||[],d=/^[xo]/i.test(a),f=/[xo]$/i.test(a);let p="none",g=!1;return c&&h||c&&f||h&&d||d&&f?p="both":(c||h||u.length>0)&&(p="forward",g=c&&!h),{label:s,direction:p,reverse:g,nextIndex:l}}function JW(t,e,n){const i=[],r=[],o=new Map,s=t=>{if(!qW.test(t))return;const e=function(t){const e=[],n=[],i=new Map;let r=0;const o=ZW(t,r);if(!o)return{relations:e,nodes:n};let s=o.node;for(i.has(s.id)||(i.set(s.id,s),n.push(s)),r=o.nextIndex;r<t.length;){const o=QW(t,r);if(!o)break;r=o.nextIndex;const a=ZW(t,r);if(!a)break;r=a.nextIndex;let l=s.id,c=a.node.id;const h=o.direction;o.reverse&&(l=a.node.id,c=s.id);const u={from:l,to:c};o.label&&(u.label=o.label),"both"===h&&(u.direction="both"),"none"===h&&(u.direction="none"),e.push(u),i.has(s.id)||(i.set(s.id,s),n.push(s)),i.has(a.node.id)||(i.set(a.node.id,a.node),n.push(a.node)),s=a.node}return{relations:e,nodes:n}}(t);e.nodes.forEach(t=>{!function(t,e,n,i){if(!n)return;const r=t.get(n);if(r)return void(!r.label&&i&&(r.label=i));const o={id:n,label:i||n};t.set(n,o),e.push(o)}(o,r,t.id,t.label)}),i.push(...e.relations)};return"array"===t.kind?t.items.forEach((t,r)=>{if("object"===t.kind&&t.value&&0===Object.keys(t.entries).length&&qW.test(t.value))return void s(t.value);const o=function(t,e,n){const i=SW(t,HW,e,n);return i&&"object"==typeof i?"string"!=typeof i.from||"string"!=typeof i.to?null:i:null}(t,`${n}[${r}]`,e);o&&i.push(o)}):"object"===t.kind&&t.value&&s(t.value),{relations:i,items:r}}var tH=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const eH=new Set(["infographic","template","design","data","theme","width","height"]);function nH(t){t.forEach(t=>{!t.id&&t.label&&(t.id=t.label)})}function iH(t){var e;const{ast:n,errors:i}=mW(t),r=[],o={},s=Object.assign({},n.entries),a=function(t,e){if("infographic"in t||"template"in t)return;const[n]=Object.entries(t);if(!n)return;const[i,r]=n;return eH.has(i)||"object"!==r.kind||void 0!==r.value||Object.keys(r.entries).length>0?void 0:(e.push({path:"template",line:r.line,code:"implicit_template",message:'Inferred template from a bare first line. Prefix it with "infographic" or "template" to make the syntax explicit.',raw:i}),{template:i,inferredKey:i})}(n.entries,r);a&&delete s[a.inferredKey];const l=n.entries.infographic;let c;l&&"object"===l.kind&&(l.value&&(c=l.value),Object.entries(l.entries).forEach(([t,e])=>{t in s||(s[t]=e)})),Object.keys(s).forEach(t=>{eH.has(t)||i.push({path:t,line:s[t].line,code:"unknown_key",message:"Unknown top-level key.",raw:t})});const h=function(t,e){if(!t)return;const n=SW(t,UW,"template",e);return n?"string"==typeof n?n:"object"==typeof n&&"string"==typeof n.type?n.type:void 0:void 0}(s.template,i);h&&(o.template=h),!o.template&&c&&(o.template=c),!o.template&&a&&(o.template=a.template);const u=s.design;if(u){const t=SW(u,DW,"design",i);t&&(o.design=t)}const d=s.data;if(d){let t,n=d;if("object"===d.kind){const e=d.entries,{relations:i}=e,r=tH(e,["relations"]);t=i,n=Object.assign(Object.assign({},d),{entries:r})}const r=SW(n,VW,"data",i);if(r&&(o.data=r),t){const n=JW(t,i,"data.relations");if(n.relations.length>0||n.items.length>0){const t=null!==(e=o.data)&&void 0!==e?e:{};Array.isArray(t.items)&&nH(t.items),Array.isArray(t.nodes)&&nH(t.nodes);const i=Object.keys(VW.fields).filter(t=>"items"!==t&&"relations"!==t);let r=!1;for(const e of i)if(Array.isArray(t[e])&&t[e].length>0){r=!0;break}if(!r&&Array.isArray(t.items)&&t.items.length>0&&t.items.some(t=>Array.isArray(t.children)&&t.children.length>0)&&(r=!0),!r){const e=function(t){var e;const n=new Set,i=[];for(let r=t.length-1;r>=0;r-=1){const o=t[r],s=null!==(e=o.id)&&void 0!==e?e:o.label;s?n.has(s)||(n.add(s),o.id||(o.id=s),i.push(o)):i.push(o)}return i.reverse()}(Array.isArray(t.items)?t.items:[]),i=new Map;e.forEach(t=>{t.id&&i.set(t.id,t)}),n.items.forEach(t=>{const n=i.get(t.id);n?!n.label&&t.label&&(n.label=t.label):(e.push(t),i.set(t.id,t))}),t.items=e}t.relations=n.relations,o.data=t}}}const f=s.theme;if(f){const t=SW(f,NW,"theme",i);if(t&&"object"==typeof t){const e=t,{type:n}=e,i=tH(e,["type"]);"string"==typeof n&&n&&(o.theme=n),Object.keys(i).length>0&&(o.themeConfig=i)}}const p=s.width;if(p){const t=SW(p,YW.fields.width,"width",i);void 0!==t&&(o.width=t)}const g=s.height;if(g){const t=SW(g,YW.fields.height,"height",i);void 0!==t&&(o.height=t)}return{options:o,errors:i,warnings:r,ast:n}}const rH={padding:20,theme:"default",themeConfig:{palette:"antv"},get plugins(){return[new tB,new aB,new rB]},get interactions(){return[new bT,new gT,new uT,new fT,new MT,new CT,new NT,new OT]}};function oH(t,e){const n=Object.assign(Object.assign({},t),e);return(t.design||e.design)&&(n.design=Object.assign(Object.assign({},t.design),e.design)),(t.themeConfig||e.themeConfig)&&(n.themeConfig=Object.assign(Object.assign({},t.themeConfig),e.themeConfig)),(t.svg||e.svg)&&(n.svg=Object.assign(Object.assign({},t.svg),e.svg)),n}function sH(t){const e=Object.assign({},t);return e.data&&(e.data=$I(e.data)),e.elements&&(e.elements=$I(e.elements)),e}function aH(t){const{design:e,data:n}=t;return!!e&&(!!es(e)&&(!!n&&!(!Array.isArray(n.items)||n.items.length<1)))}var lH=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class cH{constructor(t){this.rendered=!1,this.emitter=new _B.A,this.node=null,this.initialOptions={},this.setOptions(t,"replace",!0)}getOptions(){return this.options}setOptions(t,e="replace",n=!1){const{options:i,errors:r,warnings:o}=function(t){if("string"==typeof t){const{options:e,errors:n,warnings:i}=iH(t);return{options:e,errors:n,warnings:i}}return{options:sH(t),errors:[],warnings:[]}}(t);n&&(this.initialOptions=i);const s=oH("replace"===e?sH(this.initialOptions||{}):this.options||sH(this.initialOptions||{}),i);this.options=s,this.parsedOptions=sW(oH(rH,this.options)),o.length&&this.emitter.emit("warning",o),r.length&&this.emitter.emit("error",r)}render(t){t?this.setOptions(t,"replace"):!this.options&&this.initialOptions&&this.setOptions(this.initialOptions,"replace"),this.performRender()}update(t){this.setOptions(t,"merge"),this.performRender()}performRender(){var t;const e=this.parsedOptions;if(!aH(e))return void this.emitter.emit("error",new Error("Incomplete options"));const{container:n}=this.parsedOptions,i=this.compose(e),r=new Dc(e,i);this.node=r.render(),null==n||n.replaceChildren(this.node),null===(t=this.editor)||void 0===t||t.destroy(),this.editor=void 0,this.options.editable&&(this.editor=new TB(this.emitter,this.node,e)),this.rendered=!0,this.emitter.emit("rendered",{node:this.node,options:this.options});const o=this.node;return o&&function(t){return Oa(this,void 0,void 0,function*(){for(yield Promise.resolve();;){const e=Ea(t);if(!e.length)break;yield Promise.allSettled(e),yield Promise.resolve()}})}(o).then(()=>{this.node===o&&this.emitter.emit("loaded",{node:o,options:this.options})}),!0}compose(t){var e,n;const{design:i,data:r,themeConfig:o}=t,{title:s,item:a,items:l,structure:c}=i,{component:h,props:u}=c,d=s.component,f=a.component,p=l.map(t=>t.component),g=null===(n=null===(e=null==o?void 0:o.base)||void 0===e?void 0:e.text)||void 0===n?void 0:n["font-family"],m=Aa;g&&La(g);try{const e=Qc(_u(V(h,Object.assign({data:r,Title:d,Item:f,Items:p,options:t},u))));if(!e)throw new Error("Failed to parse SVG template");return e}finally{g&&La(m)}}getTypes(){const t=this.parsedOptions;if(!aH(t))return void this.emitter.emit("error",new Error("Incomplete options"));const e=t.design;return function(t,e={title:"信息图标题",desc:"信息图描述",items:"信息图的内容项",label:"项目标签文本",value:"项目数值内容",icon:"项目图标",illus:"项目插图",children:"子级项目(多层结构)"}){const{structure:n,items:i}=t,r=[],o=t=>" ".repeat(t);function s(t,n,i){const r=e[t];return r?`${o(i)}/** ${r} */\n${o(i)}${t}: ${n};`:`${o(i)}${t}: ${n};`}return r.push("type InfographicType = {"),n.includes("title")&&(r.push(s("title","string",1)),r.push(s("desc","string",1))),n.includes("item")&&i.length>0&&r.push(s("items",`Array<${function t(e,n){const r=i[e],a=[];for(const t of r)a.push(s(t,"value"===t?"number":"string",n+1));return i[e+1]&&a.push(s("children",`Array<${t(e+1,n+1)}>`,n+1)),`{\n${a.join("\n")}\n${o(n)}}`}(0,1)}>`,1)),r.push("}"),r.join("\n")}({structure:e.structure.composites||[],items:e.items.map(t=>t.composites||[])})}toDataURL(t){return lH(this,void 0,void 0,function*(){if(!this.node)throw new Error("Infographic is not rendered yet.");return"svg"===(null==t?void 0:t.type)?yield function(t){return dB(this,arguments,void 0,function*(t,e={}){const n=yield bB(t,e),i=(new XMLSerializer).serializeToString(n);return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(i)})}(this.node,t):yield function(t){return EB(this,arguments,void 0,function*(t,e={}){var n;const{dpr:i=(null!==(n=globalThis.devicePixelRatio)&&void 0!==n?n:2),removeBackground:r=!1}=e,o=yield bB(t,{removeBackground:r}),{width:s,height:a}=Zh(o);return new Promise((t,e)=>{try{const n=document.createElement("canvas");n.width=s*i,n.height=a*i;const r=n.getContext("2d");if(!r)return void e(new Error("Failed to get canvas context"));r.scale(i,i),r.imageSmoothingEnabled=!0,r.imageSmoothingQuality="high",o.setAttribute("width",String(s)),o.setAttribute("height",String(a));const l=(new XMLSerializer).serializeToString(o),c="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(l),h=new Image;h.onload=function(){r.clearRect(0,0,s,a),r.drawImage(h,0,0,s,a);const e=n.toDataURL("image/png");t(e)},h.onerror=function(t){e(new Error("Image load failed: "+t))},h.src=c}catch(t){e(t)}})})}(this.node,t)})}on(t,e){this.emitter.on(t,e)}off(t,e){this.emitter.off(t,e)}destroy(){var t,e;null===(t=this.editor)||void 0===t||t.destroy(),null===(e=this.node)||void 0===e||e.remove(),this.node=null,this.rendered=!1,this.emitter.emit("destroyed"),this.emitter.removeAllListeners()}}var hH=n("./node_modules/.pnpm/antd@6.6.8_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/es/theme/index.js"),uH=n("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isEqual.js"),dH=n.n(uH),fH=n("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/merge.js"),pH=n.n(fH),gH=n("./src/utils/browserDownload.ts"),mH=n("./src/utils/dash3.ts"),yH=n("./src/utils/useDeepCompareSignal.ts"),vH=n("./src/utils/useResizeObserver.ts"),xH=n("./src/utils/visualizationTheme.ts"),bH=n("./src/components/fragments/ImageExportButton.tsx");const wH=new Set(["container","plugins","interactions","elements"]),MH=t=>"string"==typeof t?t:Object.fromEntries(Object.entries(t).filter(([t])=>"container"!==t)),kH=t=>{const{token:e}=hH.A.useToken(),{id:n,className:i,style:s,tabIndex:a,role:l,dir:c,lang:h,hidden:u,options:d="",config:f={},export:p,loading_state:g,...m}=t,y=(0,r.useRef)(null),v=(0,r.useRef)(null),x=(0,r.useRef)(d),b=(0,r.useRef)(null),[w,M]=(0,r.useState)(!1),k=(0,xH.n)(e),C=(0,yH.$)({config:f,defaultTheme:k,fontFamily:e.fontFamily,colorBg:e.colorBgContainer}),O=(0,yH.$)(d);x.current=d;const j=(0,r.useMemo)(()=>Object.fromEntries(Object.entries(m).filter(([t,e])=>(t.startsWith("data-")||t.startsWith("aria-"))&&null!=e)),[m]);(0,r.useEffect)(()=>{const t=y.current;if(!t)return;const n=new cH(pH()({container:t,width:"100%",height:"100%",theme:k,themeConfig:{colorBg:e.colorBgContainer,base:{text:{"font-family":e.fontFamily}}}},((t={})=>Object.fromEntries(Object.entries(t).filter(([t])=>!wH.has(t))))(f)));v.current=n;const i=MH(x.current);return n.render(i),b.current=x.current,()=>{n.destroy(),v.current===n&&(v.current=null)}},[C]),(0,r.useEffect)(()=>{const t=v.current;t&&!dH()(b.current,x.current)&&(t.render(MH(x.current)),b.current=x.current)},[O]);const E=(0,r.useRef)({width:0,height:0});(0,vH.w)(()=>y.current,t=>{const e=Math.round(t.contentRect.width),n=Math.round(t.contentRect.height);e&&n&&(e!==E.current.width||n!==E.current.height)&&(E.current={width:e,height:n},v.current?.render(MH(x.current)))},[C]);const _={width:"100%",height:s?.height??450,...s};return o().createElement("div",{...j,id:n,className:i,style:_,tabIndex:a,role:l,dir:c,lang:h,hidden:u,"data-dash-is-loading":(0,mH.A_)(g)||void 0},o().createElement("div",{style:{position:"relative",isolation:"isolate",width:"100%",height:"100%"}},o().createElement("div",{ref:y,style:{width:"100%",height:"100%"}}),p?o().createElement(bH.A,{label:!0===p?void 0:p.label,loading:w,onClick:()=>{const t=v.current;if(!t||!p||w)return;const e=!0===p?{}:p,{format:n="png",pixelRatio:i=1,filename:r="infographic_export"}=e;M(!0),(async()=>{const e="png"===n?await t.toDataURL({type:"png",dpr:Math.max(.1,i)}):await t.toDataURL({type:"svg"});await(0,gH.mU)(e,`${r}.${n}`)})().catch(t=>{console.error("Failed to export Infographic image",t)}).finally(()=>{M(!1)})}}):null))},CH=t=>o().createElement(kH,{...t})},"?c3ee"(){},"?b251"(){},"?9d3a"(){},"?0348"(){},"?2bf4"(){},"./node_modules/.pnpm/nanoid@3.3.16/node_modules/nanoid/non-secure/index.cjs"(t){t.exports={nanoid:(t=21)=>{let e="",n=0|t;for(;n-- >0;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:(t,e=21)=>(n=e)=>{let i="",r=0|n;for(;r-- >0;)i+=t[Math.random()*t.length|0];return i}}}}]);
|