@verdocs/web-sdk 6.10.2 → 6.10.4

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.
@@ -0,0 +1,2 @@
1
+ import{r as t,h as n,H as r}from"./p-CjTHbolG.js";import{formatFullName as i}from"@verdocs/js-sdk";import{c as e}from"./p-BfP9ezJQ.js";var s=Object.create;var o=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var c=Object.getPrototypeOf;var a=Object.prototype.hasOwnProperty;var l=(t,n)=>()=>(n||(t((n={exports:{}}).exports,n),t=null),n.exports);var f=(t,n)=>{let r={};for(var i in t){o(r,i,{get:t[i],enumerable:true})}{o(r,Symbol.toStringTag,{value:"Module"})}return r};var v=(t,n,r,i)=>{if(n&&typeof n==="object"||typeof n==="function"){for(var e=u(n),s=0,c=e.length,l;s<c;s++){l=e[s];if(!a.call(t,l)&&l!==r){o(t,l,{get:(t=>n[t]).bind(null,l),enumerable:!(i=h(n,l))||i.enumerable})}}}return t};var d=(t,n,r)=>(r=t!=null?s(c(t)):{},v(o(r,"default",{value:t,enumerable:true}),t));const C={};const w=[];function p(t,n){if(Array.isArray(t)){for(const r of t)p(r,n);return}if(typeof t==="object"){for(const n in t)p(n,t[n]);return}m(Object.getOwnPropertyNames(n));C[t]=Object.assign(C[t]||{},n)}function y(t){return C[t]||{}}function g(){return[...new Set(w)]}function m(t){w.push(...t)}var b=l(((t,n)=>{n.exports=function(t){try{return!!t()}catch(t){return true}}}));var x=l(((t,n)=>{var r=b();n.exports=!r((function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")}))}));var M=l(((t,n)=>{var r=x();var i=Function.prototype;var e=i.call;var s=r&&i.bind.bind(e,e);n.exports=r?s:function(t){return function(){return e.apply(t,arguments)}}}));var k=l(((t,n)=>{var r=M();n.exports=r({}.isPrototypeOf)}));var j=l(((t,n)=>{var r=function(t){return t&&t.Math===Math&&t};n.exports=r(typeof globalThis=="object"&&globalThis)||r(typeof window=="object"&&window)||r(typeof self=="object"&&self)||r(typeof global=="object"&&global)||r(typeof t=="object"&&t)||function(){return this}()||Function("return this")()}));var _=l(((t,n)=>{var r=x();var i=Function.prototype;var e=i.apply;var s=i.call;n.exports=typeof Reflect=="object"&&Reflect.apply||(r?s.bind(e):function(){return s.apply(e,arguments)})}));var O=l(((t,n)=>{var r=M();var i=r({}.toString);var e=r("".slice);n.exports=function(t){return e(i(t),8,-1)}}));var S=l(((t,n)=>{var r=O();var i=M();n.exports=function(t){if(r(t)==="Function")return i(t)}}));var A=l(((t,n)=>{var r=typeof document=="object"&&document.all;n.exports=typeof r=="undefined"&&r!==void 0?function(t){return typeof t=="function"||t===r}:function(t){return typeof t=="function"}}));var L=l(((t,n)=>{var r=b();n.exports=!r((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}))}));var E=l(((t,n)=>{var r=x();var i=Function.prototype.call;n.exports=r?i.bind(i):function(){return i.apply(i,arguments)}}));var T=l((t=>{var n={}.propertyIsEnumerable;var r=Object.getOwnPropertyDescriptor;var i=r&&!n.call({1:2},1);t.f=i?function t(n){var i=r(this,n);return!!i&&i.enumerable}:n}));var V=l(((t,n)=>{n.exports=function(t,n){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:n}}}));var H=l(((t,n)=>{var r=M();var i=b();var e=O();var s=Object;var o=r("".split);n.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return e(t)==="String"?o(t,""):s(t)}:s}));var B=l(((t,n)=>{n.exports=function(t){return t===null||t===void 0}}));var z=l(((t,n)=>{var r=B();var i=TypeError;n.exports=function(t){if(r(t))throw new i("Can't call method on "+t);return t}}));var D=l(((t,n)=>{var r=H();var i=z();n.exports=function(t){return r(i(t))}}));var F=l(((t,n)=>{var r=A();n.exports=function(t){return typeof t=="object"?t!==null:r(t)}}));var I=l(((t,n)=>{n.exports={}}));var Z=l(((t,n)=>{var r=I();var i=j();var e=A();var s=function(t){return e(t)?t:void 0};n.exports=function(t,n){return arguments.length<2?s(r[t])||s(i[t]):r[t]&&r[t][n]||i[t]&&i[t][n]}}));var $=l(((t,n)=>{var r=j().navigator;var i=r&&r.userAgent;n.exports=i?String(i):""}));var N=l(((t,n)=>{var r=j();var i=$();var e=r.process;var s=r.Deno;var o=e&&e.versions||s&&s.version;var h=o&&o.v8;var u;var c;if(h){u=h.split(".");c=u[0]>0&&u[0]<4?1:+(u[0]+u[1])}if(!c&&i){u=i.match(/Edge\/(\d+)/);if(!u||u[1]>=74){u=i.match(/Chrome\/(\d+)/);if(u)c=+u[1]}}n.exports=c}));var P=l(((t,n)=>{var r=N();var i=b();var e=j().String;n.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!e(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))}));var R=l(((t,n)=>{var r=P();n.exports=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}));var G=l(((t,n)=>{var r=Z();var i=A();var e=k();var s=R();var o=Object;n.exports=s?function(t){return typeof t=="symbol"}:function(t){var n=r("Symbol");return i(n)&&e(n.prototype,o(t))}}));var Y=l(((t,n)=>{var r=String;n.exports=function(t){try{return r(t)}catch(t){return"Object"}}}));var X=l(((t,n)=>{var r=A();var i=Y();var e=TypeError;n.exports=function(t){if(r(t))return t;throw new e(i(t)+" is not a function")}}));var Q=l(((t,n)=>{var r=X();var i=B();n.exports=function(t,n){var e=t[n];return i(e)?void 0:r(e)}}));var J=l(((t,n)=>{var r=E();var i=A();var e=F();var s=TypeError;n.exports=function(t,n){var o,h;if(n==="string"&&i(o=t.toString)&&!e(h=r(o,t)))return h;if(i(o=t.valueOf)&&!e(h=r(o,t)))return h;if(n!=="string"&&i(o=t.toString)&&!e(h=r(o,t)))return h;throw new s("Can't convert object to primitive value")}}));var q=l(((t,n)=>{n.exports=true}));var U=l(((t,n)=>{var r=j();var i=Object.defineProperty;n.exports=function(t,n){try{i(r,t,{value:n,configurable:true,writable:true})}catch(i){r[t]=n}return n}}));var W=l(((t,n)=>{var r=q();var i=j();var e=U();var s="__core-js_shared__";var o=n.exports=i[s]||e(s,{});(o.versions||(o.versions=[])).push({version:"3.49.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})}));var K=l(((t,n)=>{var r=W();n.exports=function(t,n){return r[t]||(r[t]=n||{})}}));var tt=l(((t,n)=>{var r=z();var i=Object;n.exports=function(t){return i(r(t))}}));var nt=l(((t,n)=>{var r=M();var i=tt();var e=r({}.hasOwnProperty);n.exports=Object.hasOwn||function t(n,r){return e(i(n),r)}}));var rt=l(((t,n)=>{var r=M();var i=0;var e=Math.random();var s=r(1.1.toString);n.exports=function(t){return"Symbol("+(t===void 0?"":t)+")_"+s(++i+e,36)}}));var it=l(((t,n)=>{var r=j();var i=K();var e=nt();var s=rt();var o=P();var h=R();var u=r.Symbol;var c=i("wks");var a=h?u["for"]||u:u&&u.withoutSetter||s;n.exports=function(t){if(!e(c,t))c[t]=o&&e(u,t)?u[t]:a("Symbol."+t);return c[t]}}));var et=l(((t,n)=>{var r=E();var i=F();var e=G();var s=Q();var o=J();var h=it();var u=TypeError;var c=h("toPrimitive");n.exports=function(t,n){if(!i(t)||e(t))return t;var h=s(t,c);var a;if(h){if(n===void 0)n="default";a=r(h,t,n);if(!i(a)||e(a))return a;throw new u("Can't convert object to primitive value")}if(n===void 0)n="number";return o(t,n)}}));var st=l(((t,n)=>{var r=et();var i=G();n.exports=function(t){var n=r(t,"string");return i(n)?n:n+""}}));var ot=l(((t,n)=>{var r=j();var i=F();var e=r.document;var s=i(e)&&i(e.createElement);n.exports=function(t){return s?e.createElement(t):{}}}));var ht=l(((t,n)=>{var r=L();var i=b();var e=ot();n.exports=!r&&!i((function(){return Object.defineProperty(e("div"),"a",{get:function(){return 7}}).a!==7}))}));var ut=l((t=>{var n=L();var r=E();var i=T();var e=V();var s=D();var o=st();var h=nt();var u=ht();var c=Object.getOwnPropertyDescriptor;t.f=n?c:function t(n,a){n=s(n);a=o(a);if(u)try{return c(n,a)}catch(t){}if(h(n,a))return e(!r(i.f,n,a),n[a])}}));var ct=l(((t,n)=>{var r=b();var i=A();var e=/#|\.prototype\./;var s=function(t,n){var e=h[o(t)];return e===c?true:e===u?false:i(n)?r(n):!!n};var o=s.normalize=function(t){return String(t).replace(e,".").toLowerCase()};var h=s.data={};var u=s.NATIVE="N";var c=s.POLYFILL="P";n.exports=s}));var at=l(((t,n)=>{var r=S();var i=X();var e=x();var s=r(r.bind);n.exports=function(t,n){i(t);return n===void 0?t:e?s(t,n):function(){return t.apply(n,arguments)}}}));var lt=l(((t,n)=>{var r=L();var i=b();n.exports=r&&i((function(){return Object.defineProperty((function(){}),"prototype",{value:42,writable:false}).prototype!==42}))}));var ft=l(((t,n)=>{var r=F();var i=String;var e=TypeError;n.exports=function(t){if(r(t))return t;throw new e(i(t)+" is not an object")}}));var vt=l((t=>{var n=L();var r=ht();var i=lt();var e=ft();var s=st();var o=TypeError;var h=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var c="enumerable";var a="configurable";var l="writable";t.f=n?i?function t(n,r,i){e(n);r=s(r);e(i);if(typeof n==="function"&&r==="prototype"&&"value"in i&&l in i&&!i[l]){var o=u(n,r);if(o&&o[l]){n[r]=i.value;i={configurable:a in i?i[a]:o[a],enumerable:c in i?i[c]:o[c],writable:false}}}return h(n,r,i)}:h:function t(n,i,u){e(n);i=s(i);e(u);if(r)try{return h(n,i,u)}catch(t){}if("get"in u||"set"in u)throw new o("Accessors not supported");if("value"in u)n[i]=u.value;return n}}));var dt=l(((t,n)=>{var r=L();var i=vt();var e=V();n.exports=r?function(t,n,r){return i.f(t,n,e(1,r))}:function(t,n,r){t[n]=r;return t}}));var Ct=l(((t,n)=>{var r=j();var i=_();var e=S();var s=A();var o=ut().f;var h=ct();var u=I();var c=at();var a=dt();var l=nt();W();var f=function(t){var n=function(r,e,s){if(this instanceof n){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,e)}return new t(r,e,s)}return i(t,this,arguments)};n.prototype=t.prototype;return n};n.exports=function(t,n){var i=t.target;var v=t.global;var d=t.stat;var C=t.proto;var w=v?r:d?r[i]:r[i]&&r[i].prototype;var p=v?u:u[i]||a(u,i,{})[i];var y=p.prototype;var g,m,b;var x,M,k,j,_,O;for(x in n){g=h(v?x:i+(d?".":"#")+x,t.forced);m=!g&&w&&l(w,x);k=p[x];if(m)if(t.dontCallGetSet){O=o(w,x);j=O&&O.value}else j=w[x];M=m&&j?j:n[x];if(!g&&!C&&typeof k==typeof M)continue;if(t.bind&&m)_=c(M,r);else if(t.wrap&&m)_=f(M);else if(C&&s(M))_=e(M);else _=M;if(t.sham||M&&M.sham||k&&k.sham)a(_,"sham",true);a(p,x,_);if(C){b=i+"Prototype";if(!l(u,b))a(u,b,{});a(u[b],x,M);if(t.real&&y&&(g||!y[x]))a(y,x,M)}}}}));var wt=l(((t,n)=>{var r=Math.ceil;var i=Math.floor;n.exports=Math.trunc||function t(n){var e=+n;return(e>0?i:r)(e)}}));var pt=l(((t,n)=>{var r=wt();n.exports=function(t){var n=+t;return n!==n||n===0?0:r(n)}}));var yt=l(((t,n)=>{var r=pt();var i=Math.max;var e=Math.min;n.exports=function(t,n){var s=r(t);return s<0?i(s+n,0):e(s,n)}}));var gt=l(((t,n)=>{var r=pt();var i=Math.min;n.exports=function(t){var n=r(t);return n>0?i(n,9007199254740991):0}}));var mt=l(((t,n)=>{var r=gt();n.exports=function(t){return r(t.length)}}));var bt=l(((t,n)=>{var r=D();var i=yt();var e=mt();var s=function(t){return function(n,s,o){var h=r(n);var u=e(h);if(u===0)return!t&&-1;var c=i(o,u);var a;if(t&&s!==s)while(u>c){a=h[c++];if(a!==a)return true}else for(;u>c;c++)if((t||c in h)&&h[c]===s)return t||c||0;return!t&&-1}};n.exports={includes:s(true),indexOf:s(false)}}));var xt=l(((t,n)=>{n.exports=function(){}}));var Mt=l((()=>{var t=Ct();var n=bt().includes;var r=b();var i=xt();var e=r((function(){return!Array(1).includes()}));var s=r((function(){return[,1].includes(void 0,1)}));t({target:"Array",proto:true,forced:e||s},{includes:function t(r){return n(this,r,arguments.length>1?arguments[1]:void 0)}});i("includes")}));var kt=l(((t,n)=>{var r=j();var i=I();n.exports=function(t,n){var e=i[t+"Prototype"];var s=e&&e[n];if(s)return s;var o=r[t];var h=o&&o.prototype;return h&&h[n]}}));var jt=l(((t,n)=>{Mt();var r=kt();n.exports=r("Array","includes")}));var _t=l(((t,n)=>{var r=F();var i=O();var e=it()("match");n.exports=function(t){var n;return r(t)&&((n=t[e])!==void 0?!!n:i(t)==="RegExp")}}));var Ot=l(((t,n)=>{var r=_t();var i=TypeError;n.exports=function(t){if(r(t))throw new i("The method doesn't accept regular expressions");return t}}));var St=l(((t,n)=>{var r=it()("toStringTag");var i={};i[r]="z";n.exports=String(i)==="[object z]"}));var At=l(((t,n)=>{var r=St();var i=A();var e=O();var s=it()("toStringTag");var o=Object;var h=e(function(){return arguments}())==="Arguments";var u=function(t,n){try{return t[n]}catch(t){}};n.exports=r?e:function(t){var n,r,c;return t===void 0?"Undefined":t===null?"Null":typeof(r=u(n=o(t),s))=="string"?r:h?e(n):(c=e(n))==="Object"&&i(n.callee)?"Arguments":c}}));var Lt=l(((t,n)=>{var r=At();var i=String;n.exports=function(t){if(r(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return i(t)}}));var Et=l(((t,n)=>{var r=it()("match");n.exports=function(t){var n=/./;try{"/./"[t](n)}catch(i){try{n[r]=false;return"/./"[t](n)}catch(t){}}return false}}));var Tt=l((()=>{var t=Ct();var n=M();var r=Ot();var i=z();var e=Lt();var s=Et();var o=n("".indexOf);t({target:"String",proto:true,forced:!s("includes")},{includes:function t(n){return!!~o(e(i(this)),e(r(n)),arguments.length>1?arguments[1]:void 0)}})}));var Vt=l(((t,n)=>{Tt();var r=kt();n.exports=r("String","includes")}));var Ht=l(((t,n)=>{var r=k();var i=jt();var e=Vt();var s=Array.prototype;var o=String.prototype;n.exports=function(t){var n=t.includes;if(t===s||r(s,t)&&n===s.includes)return i;if(typeof t=="string"||t===o||r(o,t)&&n===o.includes)return e;return n}}));var Bt=l(((t,n)=>{var r=Ht();n.exports=r}));var zt=d(Bt());function Dt(t,n){let r;const i=t.length;const e=[];for(r=0;r<i;r++)e.push(n(t[r]));return e}function Ft(t,n){let r;const i=t.length;const e=[];for(r=0;r<i;r++)if(n(t[r]))e.push(t[r]);return e}function It(t){return t%360*Math.PI/180}function Zt(t){return t.replace(/([A-Z])/g,(function(t,n){return"-"+n.toLowerCase()}))}function $t(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Nt(t,n,r,i){if(n==null||r==null){i=i||t.bbox();if(n==null)n=i.width/i.height*r;else if(r==null)r=i.height/i.width*n}return{width:n,height:r}}function Pt(t,n){const r=t.origin;let i=t.ox!=null?t.ox:t.originX!=null?t.originX:"center";let e=t.oy!=null?t.oy:t.originY!=null?t.originY:"center";if(r!=null)[i,e]=Array.isArray(r)?r:typeof r==="object"?[r.x,r.y]:[r,r];const s=typeof i==="string";const o=typeof e==="string";if(s||o){const{height:t,width:r,x:h,y:u}=n.bbox();if(s)i=(0,zt.default)(i).call(i,"left")?h:(0,zt.default)(i).call(i,"right")?h+r:h+r/2;if(o)e=(0,zt.default)(e).call(e,"top")?u:(0,zt.default)(e).call(e,"bottom")?u+t:u+t/2}return[i,e]}const Rt=new Set(["desc","metadata","title"]);const Gt=t=>Rt.has(t.nodeName);const Yt=(t,n,r={})=>{const i={...n};for(const t in i)if(i[t].valueOf()===r[t])delete i[t];if(Object.keys(i).length)t.node.setAttribute("data-svgjs",JSON.stringify(i));else{t.node.removeAttribute("data-svgjs");t.node.removeAttribute("svgjs:data")}};const Xt="http://www.w3.org/2000/svg";const Qt="http://www.w3.org/1999/xhtml";const Jt="http://www.w3.org/2000/xmlns/";const qt="http://www.w3.org/1999/xlink";const Ut={window:typeof window==="undefined"?null:window,document:typeof document==="undefined"?null:document};function Wt(){return Ut.window}var Kt=class{};const tn={};const nn="___SYMBOL___ROOT___";function rn(t,n=Xt){return Ut.document.createElementNS(n,t)}function en(t,n=false){if(t instanceof Kt)return t;if(typeof t==="object")return hn(t);if(t==null)return new tn[nn];if(typeof t==="string"&&t.trim().charAt(0)!=="<")return hn(Ut.document.querySelector(t));const r=n?Ut.document.createElement("div"):rn("svg");r.innerHTML=t.trim();t=hn(r.firstElementChild);r.removeChild(r.firstElementChild);return t}function sn(t,n){return n&&(n instanceof Ut.window.Node||n.ownerDocument&&n instanceof n.ownerDocument.defaultView.Node)?n:rn(t)}function on(t){if(!t)return null;if(t.instance instanceof Kt)return t.instance;if(t.nodeName==="#document-fragment")return new tn.Fragment(t);let n=$t(t.nodeName||"Dom");if(n==="LinearGradient"||n==="RadialGradient")n="Gradient";else if(!tn[n])n="Dom";return new tn[n](t)}let hn=on;function un(t,n=t.name,r=false){tn[n]=t;if(r)tn[nn]=t;m(Object.getOwnPropertyNames(t.prototype));return t}function cn(t){return tn[t]}let an=1e3;function ln(t){return"Svgjs"+$t(t)+an++}function fn(t){for(let n=t.children.length-1;n>=0;n--)fn(t.children[n]);if(t.id){t.id=ln(t.nodeName);return t}return t}function vn(t,n){let r,i;t=Array.isArray(t)?t:[t];for(i=t.length-1;i>=0;i--)for(r in n)t[i].prototype[r]=n[r]}function dn(t){return function(...n){const r=n[n.length-1];if(r&&r.constructor===Object&&!(r instanceof Array))return t.apply(this,n.slice(0,-1)).attr(r);else return t.apply(this,n)}}function Cn(){return this.parent().children()}function wn(){return this.parent().index(this)}function pn(){return this.siblings()[this.position()+1]}function yn(){return this.siblings()[this.position()-1]}function gn(){const t=this.position();this.parent().add(this.remove(),t+1);return this}function mn(){const t=this.position();this.parent().add(this.remove(),t?t-1:0);return this}function bn(){this.parent().add(this.remove());return this}function xn(){this.parent().add(this.remove(),0);return this}function Mn(t){t=en(t);t.remove();const n=this.position();this.parent().add(t,n);return this}function kn(t){t=en(t);t.remove();const n=this.position();this.parent().add(t,n+1);return this}function jn(t){t=en(t);t.before(this);return this}function _n(t){t=en(t);t.after(this);return this}p("Dom",{siblings:Cn,position:wn,next:pn,prev:yn,forward:gn,backward:mn,front:bn,back:xn,before:Mn,after:kn,insertBefore:jn,insertAfter:_n});const On=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i;const Sn=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;const An=/rgb\((\d+),(\d+),(\d+)\)/;const Ln=/^(#[^\s]+)$/;const En=/\)\s*,?\s*/;const Tn=/\s/g;const Vn=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i;const Hn=/^rgb\(/;const Bn=/^(\s+)?$/;const zn=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;const Dn=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i;const Fn=/[\s,]+/;const In=/[MLHVCSQTAZ]/i;function Zn(){const t=this.attr("class");return t==null?[]:t.trim().split(Fn)}function $n(t){return this.classes().indexOf(t)!==-1}function Nn(t){if(!this.hasClass(t)){const n=this.classes();n.push(t);this.attr("class",n.join(" "))}return this}function Pn(t){if(this.hasClass(t))this.attr("class",this.classes().filter((function(n){return n!==t})).join(" "));return this}function Rn(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}p("Dom",{classes:Zn,hasClass:$n,addClass:Nn,removeClass:Pn,toggleClass:Rn});const Gn=t=>t.startsWith("--")?t:Zt(t);function Yn(t,n){const r={};if(arguments.length===0){const t=this.node.style;for(let n=0;n<t.length;n++){const i=t.item(n);const e=t.getPropertyValue(i);const s=t.getPropertyPriority(i);r[i]=s?`${e} !${s}`:e}return r}if(arguments.length<2){if(Array.isArray(t)){for(const n of t){const t=Gn(n);r[n]=this.node.style.getPropertyValue(t)}return r}if(typeof t==="string")return this.node.style.getPropertyValue(Gn(t));if(typeof t==="object")for(const n in t)this.node.style.setProperty(Gn(n),t[n]==null||Bn.test(t[n])?"":t[n])}if(arguments.length===2)this.node.style.setProperty(Gn(t),n==null||Bn.test(n)?"":n);return this}function Xn(){return this.css("display","")}function Qn(){return this.css("display","none")}function Jn(){return this.css("display")!=="none"}p("Dom",{css:Yn,show:Xn,hide:Qn,visible:Jn});function qn(t,n,r){if(t==null)return this.data(Dt(Ft(this.node.attributes,(t=>t.nodeName.indexOf("data-")===0)),(t=>t.nodeName.slice(5))));else if(t instanceof Array){const n={};for(const r of t)n[r]=this.data(r);return n}else if(typeof t==="object")for(n in t)this.data(n,t[n]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+t))}catch(n){return this.attr("data-"+t)}else this.attr("data-"+t,n===null?null:r===true||typeof n==="string"||typeof n==="number"?n:JSON.stringify(n));return this}p("Dom",{data:qn});function Un(t,n){if(typeof arguments[0]==="object")for(const n in t)this.remember(n,t[n]);else if(arguments.length===1)return this.memory()[t];else this.memory()[t]=n;return this}function Wn(){if(arguments.length===0)this._memory={};else for(let t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this}function Kn(){return this._memory=this._memory||{}}p("Dom",{remember:Un,forget:Wn,memory:Kn});function tr(t){return t.length===4?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}function nr(t){const n=Math.max(0,Math.min(255,Math.round(t))).toString(16);return n.length===1?"0"+n:n}function rr(t,n){for(let r=n.length;r--;)if(t[n[r]]==null)return false;return true}function ir(t,n){const r=rr(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:rr(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:rr(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:rr(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:rr(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:rr(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};r.space=n||r.space;return r}function er(t){if(t==="lab"||t==="xyz"||t==="lch")return true;else return false}function sr(t,n,r){if(r<0)r+=1;if(r>1)r-=1;if(r<1/6)return t+(n-t)*6*r;if(r<1/2)return n;if(r<2/3)return t+(n-t)*(2/3-r)*6;return t}var or=class t{constructor(...t){this.init(...t)}static isColor(n){return n&&(n instanceof t||this.isRgb(n)||this.test(n))}static isRgb(t){return t&&typeof t.r==="number"&&typeof t.g==="number"&&typeof t.b==="number"}static random(n="vibrant",r){const{random:i,round:e,sin:s,PI:o}=Math;if(n==="vibrant"){const n=24*i()+57;const r=38*i()+45;const e=360*i();return new t(n,r,e,"lch")}else if(n==="sine"){r=r==null?i():r;const n=e(80*s(2*o*r/.5+.01)+150);const h=e(50*s(2*o*r/.5+4.6)+200);const u=e(100*s(2*o*r/.5+2.3)+150);return new t(n,h,u)}else if(n==="pastel"){const n=8*i()+86;const r=17*i()+9;const e=360*i();return new t(n,r,e,"lch")}else if(n==="dark"){const n=10+10*i();const r=50*i()+86;const e=360*i();return new t(n,r,e,"lch")}else if(n==="rgb"){const n=255*i();const r=255*i();const e=255*i();return new t(n,r,e)}else if(n==="lab"){const n=100*i();const r=256*i()-128;const e=256*i()-128;return new t(n,r,e,"lab")}else if(n==="grey"){const n=255*i();return new t(n,n,n)}else throw new Error("Unsupported random color mode")}static test(t){return typeof t==="string"&&(Vn.test(t)||Hn.test(t))}cmyk(){const{_a:n,_b:r,_c:i}=this.rgb();const[e,s,o]=[n,r,i].map((t=>t/255));const h=Math.min(1-e,1-s,1-o);if(h===1)return new t(0,0,0,1,"cmyk");const u=(1-e-h)/(1-h);const c=(1-s-h)/(1-h);const a=(1-o-h)/(1-h);return new t(u,c,a,h,"cmyk")}hsl(){const{_a:n,_b:r,_c:i}=this.rgb();const[e,s,o]=[n,r,i].map((t=>t/255));const h=Math.max(e,s,o);const u=Math.min(e,s,o);const c=(h+u)/2;const a=h===u;const l=h-u;const f=a?0:c>.5?l/(2-h-u):l/(h+u);const v=a?0:h===e?((s-o)/l+(s<o?6:0))/6:h===s?((o-e)/l+2)/6:h===o?((e-s)/l+4)/6:0;return new t(360*v,100*f,100*c,"hsl")}init(t=0,n=0,r=0,i=0,e="rgb"){t=!t?0:t;if(this.space)for(const t in this.space)delete this[this.space[t]];if(typeof t==="number"){e=typeof i==="string"?i:e;i=typeof i==="string"?0:i;Object.assign(this,{_a:t,_b:n,_c:r,_d:i,space:e})}else if(t instanceof Array){this.space=n||(typeof t[3]==="string"?t[3]:t[4])||"rgb";Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0})}else if(t instanceof Object){const r=ir(t,n);Object.assign(this,r)}else if(typeof t==="string")if(Hn.test(t)){const n=t.replace(Tn,"");const[r,i,e]=An.exec(n).slice(1,4).map((t=>parseInt(t)));Object.assign(this,{_a:r,_b:i,_c:e,_d:0,space:"rgb"})}else if(Vn.test(t)){const n=t=>parseInt(t,16);const[,r,i,e]=Sn.exec(tr(t)).map(n);Object.assign(this,{_a:r,_b:i,_c:e,_d:0,space:"rgb"})}else throw Error("Unsupported string format, can't construct Color");const{_a:s,_b:o,_c:h,_d:u}=this;const c=this.space==="rgb"?{r:s,g:o,b:h}:this.space==="xyz"?{x:s,y:o,z:h}:this.space==="hsl"?{h:s,s:o,l:h}:this.space==="lab"?{l:s,a:o,b:h}:this.space==="lch"?{l:s,c:o,h}:this.space==="cmyk"?{c:s,m:o,y:h,k:u}:{};Object.assign(this,c)}lab(){const{x:n,y:r,z:i}=this.xyz();const e=116*r-16;const s=500*(n-r);const o=200*(r-i);return new t(e,s,o,"lab")}lch(){const{l:n,a:r,b:i}=this.lab();const e=Math.sqrt(r**2+i**2);let s=180*Math.atan2(i,r)/Math.PI;if(s<0){s*=-1;s=360-s}return new t(n,e,s,"lch")}rgb(){if(this.space==="rgb")return this;else if(er(this.space)){let{x:n,y:r,z:i}=this;if(this.space==="lab"||this.space==="lch"){let{l:t,a:e,b:s}=this;if(this.space==="lch"){const{c:t,h:n}=this;const r=Math.PI/180;e=t*Math.cos(r*n);s=t*Math.sin(r*n)}const o=(t+16)/116;const h=e/500+o;const u=o-s/200;const c=16/116;const a=.008856;const l=7.787;n=.95047*(h**3>a?h**3:(h-c)/l);r=1*(o**3>a?o**3:(o-c)/l);i=1.08883*(u**3>a?u**3:(u-c)/l)}const e=n*3.2406+r*-1.5372+i*-.4986;const s=n*-.9689+r*1.8758+i*.0415;const o=n*.0557+r*-.204+i*1.057;const h=Math.pow;const u=.0031308;const c=e>u?1.055*h(e,1/2.4)-.055:12.92*e;const a=s>u?1.055*h(s,1/2.4)-.055:12.92*s;const l=o>u?1.055*h(o,1/2.4)-.055:12.92*o;return new t(255*c,255*a,255*l)}else if(this.space==="hsl"){let{h:n,s:r,l:i}=this;n/=360;r/=100;i/=100;if(r===0){i*=255;return new t(i,i,i)}const e=i<.5?i*(1+r):i+r-i*r;const s=2*i-e;const o=255*sr(s,e,n+1/3);const h=255*sr(s,e,n);const u=255*sr(s,e,n-1/3);return new t(o,h,u)}else if(this.space==="cmyk"){const{c:n,m:r,y:i,k:e}=this;const s=255*(1-Math.min(1,n*(1-e)+e));const o=255*(1-Math.min(1,r*(1-e)+e));const h=255*(1-Math.min(1,i*(1-e)+e));return new t(s,o,h)}else return this}toArray(){const{_a:t,_b:n,_c:r,_d:i,space:e}=this;return[t,n,r,i,e]}toHex(){const[t,n,r]=this._clamped().map(nr);return`#${t}${n}${r}`}toRgb(){const[t,n,r]=this._clamped();return`rgb(${t},${n},${r})`}toString(){return this.toHex()}xyz(){const{_a:n,_b:r,_c:i}=this.rgb();const[e,s,o]=[n,r,i].map((t=>t/255));const h=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92;const u=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92;const c=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92;const a=(h*.4124+u*.3576+c*.1805)/.95047;const l=(h*.2126+u*.7152+c*.0722)/1;const f=(h*.0193+u*.1192+c*.9505)/1.08883;const v=a>.008856?Math.pow(a,1/3):7.787*a+16/116;const d=l>.008856?Math.pow(l,1/3):7.787*l+16/116;const C=f>.008856?Math.pow(f,1/3):7.787*f+16/116;return new t(v,d,C,"xyz")}_clamped(){const{_a:t,_b:n,_c:r}=this.rgb();const{max:i,min:e,round:s}=Math;const o=t=>i(0,e(s(t),255));return[t,n,r].map(o)}};var hr=class t{constructor(...t){this.init(...t)}clone(){return new t(this)}init(t,n){const r={x:0,y:0};const i=Array.isArray(t)?{x:t[0],y:t[1]}:typeof t==="object"?{x:t.x,y:t.y}:{x:t,y:n};this.x=i.x==null?r.x:i.x;this.y=i.y==null?r.y:i.y;return this}toArray(){return[this.x,this.y]}transform(t){return this.clone().transformO(t)}transformO(t){if(!ar.isMatrixLike(t))t=new ar(t);const{x:n,y:r}=this;this.x=t.a*n+t.c*r+t.e;this.y=t.b*n+t.d*r+t.f;return this}};function ur(t,n){return new hr(t,n).transformO(this.screenCTM().inverseO())}function cr(t,n,r){return Math.abs(n-t)<1e-6}var ar=class t{constructor(...t){this.init(...t)}static formatTransforms(t){const n=t.flip==="both"||t.flip===true;const r=t.flip&&(n||t.flip==="x")?-1:1;const i=t.flip&&(n||t.flip==="y")?-1:1;const e=t.skew&&t.skew.length?t.skew[0]:isFinite(t.skew)?t.skew:isFinite(t.skewX)?t.skewX:0;const s=t.skew&&t.skew.length?t.skew[1]:isFinite(t.skew)?t.skew:isFinite(t.skewY)?t.skewY:0;const o=t.scale&&t.scale.length?t.scale[0]*r:isFinite(t.scale)?t.scale*r:isFinite(t.scaleX)?t.scaleX*r:r;const h=t.scale&&t.scale.length?t.scale[1]*i:isFinite(t.scale)?t.scale*i:isFinite(t.scaleY)?t.scaleY*i:i;const u=t.shear||0;const c=t.rotate||t.theta||0;const a=new hr(t.origin||t.around||t.ox||t.originX,t.oy||t.originY);const l=a.x;const f=a.y;const v=new hr(t.position??t.px??t.positionX??NaN,t.py??t.positionY??NaN);const d=v.x;const C=v.y;const w=new hr(t.translate||t.tx||t.translateX,t.ty||t.translateY);const p=w.x;const y=w.y;const g=new hr(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:o,scaleY:h,skewX:e,skewY:s,shear:u,theta:c,rx:g.x,ry:g.y,tx:p,ty:y,ox:l,oy:f,px:d,py:C}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return t.a!=null||t.b!=null||t.c!=null||t.d!=null||t.e!=null||t.f!=null}static matrixMultiply(t,n,r){const i=t.a*n.a+t.c*n.b;const e=t.b*n.a+t.d*n.b;const s=t.a*n.c+t.c*n.d;const o=t.b*n.c+t.d*n.d;const h=t.e+t.a*n.e+t.c*n.f;const u=t.f+t.b*n.e+t.d*n.f;r.a=i;r.b=e;r.c=s;r.d=o;r.e=h;r.f=u;return r}around(t,n,r){return this.clone().aroundO(t,n,r)}aroundO(t,n,r){const i=t||0;const e=n||0;return this.translateO(-i,-e).lmultiplyO(r).translateO(i,e)}clone(){return new t(this)}decompose(t=0,n=0){const r=this.a;const i=this.b;const e=this.c;const s=this.d;const o=this.e;const h=this.f;const u=r*s-i*e;const c=u>0?1:-1;const a=c*Math.sqrt(r*r+i*i);const l=Math.atan2(c*i,c*r);const f=180/Math.PI*l;const v=(r*e+i*s)/u;return{scaleX:a,scaleY:e*a/(v*r-i)||s*a/(v*i+r),shear:v,rotate:f,translateX:o-t+t*r+n*e,translateY:h-n+t*i+n*s,originX:t,originY:n,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(n){if(n===this)return true;const r=new t(n);return cr(this.a,r.a)&&cr(this.b,r.b)&&cr(this.c,r.c)&&cr(this.d,r.d)&&cr(this.e,r.e)&&cr(this.f,r.f)}flip(t,n){return this.clone().flipO(t,n)}flipO(t,n){return t==="x"?this.scaleO(-1,1,n,0):t==="y"?this.scaleO(1,-1,0,n):this.scaleO(-1,-1,t,n||t)}init(n){const r=t.fromArray([1,0,0,1,0,0]);n=n instanceof Ur?n.matrixify():typeof n==="string"?t.fromArray(n.split(Fn).map(parseFloat)):Array.isArray(n)?t.fromArray(n):typeof n==="object"&&t.isMatrixLike(n)?n:typeof n==="object"?(new t).transform(n):arguments.length===6?t.fromArray([].slice.call(arguments)):r;this.a=n.a!=null?n.a:r.a;this.b=n.b!=null?n.b:r.b;this.c=n.c!=null?n.c:r.c;this.d=n.d!=null?n.d:r.d;this.e=n.e!=null?n.e:r.e;this.f=n.f!=null?n.f:r.f;return this}inverse(){return this.clone().inverseO()}inverseO(){const t=this.a;const n=this.b;const r=this.c;const i=this.d;const e=this.e;const s=this.f;const o=t*i-n*r;if(!o)throw new Error("Cannot invert "+this);const h=i/o;const u=-n/o;const c=-r/o;const a=t/o;const l=-(h*e+c*s);const f=-(u*e+a*s);this.a=h;this.b=u;this.c=c;this.d=a;this.e=l;this.f=f;return this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(n){const r=this;const i=n instanceof t?n:new t(n);return t.matrixMultiply(i,r,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(n){const r=this;const i=n instanceof t?n:new t(n);return t.matrixMultiply(r,i,this)}rotate(t,n,r){return this.clone().rotateO(t,n,r)}rotateO(t,n=0,r=0){t=It(t);const i=Math.cos(t);const e=Math.sin(t);const{a:s,b:o,c:h,d:u,e:c,f:a}=this;this.a=s*i-o*e;this.b=o*i+s*e;this.c=h*i-u*e;this.d=u*i+h*e;this.e=c*i-a*e+r*e-n*i+n;this.f=a*i+c*e-n*e-r*i+r;return this}scale(){return this.clone().scaleO(...arguments)}scaleO(t,n=t,r=0,i=0){if(arguments.length===3){i=r;r=n;n=t}const{a:e,b:s,c:o,d:h,e:u,f:c}=this;this.a=e*t;this.b=s*n;this.c=o*t;this.d=h*n;this.e=u*t-r*t+r;this.f=c*n-i*n+i;return this}shear(t,n,r){return this.clone().shearO(t,n,r)}shearO(t,n=0,r=0){const{a:i,b:e,c:s,d:o,e:h,f:u}=this;this.a=i+e*t;this.c=s+o*t;this.e=h+u*t-r*t;return this}skew(){return this.clone().skewO(...arguments)}skewO(t,n=t,r=0,i=0){if(arguments.length===3){i=r;r=n;n=t}t=It(t);n=It(n);const e=Math.tan(t);const s=Math.tan(n);const{a:o,b:h,c:u,d:c,e:a,f:l}=this;this.a=o+h*e;this.b=h+o*s;this.c=u+c*e;this.d=c+u*s;this.e=a+l*e-i*e;this.f=l+a*s-r*s;return this}skewX(t,n,r){return this.skew(t,0,n,r)}skewY(t,n,r){return this.skew(0,t,n,r)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(n){if(t.isMatrixLike(n))return new t(n).multiplyO(this);const r=t.formatTransforms(n);const i=this;const{x:e,y:s}=new hr(r.ox,r.oy).transform(i);const o=(new t).translateO(r.rx,r.ry).lmultiplyO(i).translateO(-e,-s).scaleO(r.scaleX,r.scaleY).skewO(r.skewX,r.skewY).shearO(r.shear).rotateO(r.theta).translateO(e,s);if(isFinite(r.px)||isFinite(r.py)){const t=new hr(e,s).transform(o);const n=isFinite(r.px)?r.px-t.x:0;const i=isFinite(r.py)?r.py-t.y:0;o.translateO(n,i)}o.translateO(r.tx,r.ty);return o}translate(t,n){return this.clone().translateO(t,n)}translateO(t,n){this.e+=t||0;this.f+=n||0;return this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}};function lr(){return new ar(this.node.getCTM())}function fr(){try{if(typeof this.isRoot==="function"&&!this.isRoot()){const t=this.rect(1,1);const n=t.node.getScreenCTM();t.remove();return new ar(n)}return new ar(this.node.getScreenCTM())}catch(t){console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`);return new ar}}un(ar,"Matrix");function vr(){if(!vr.nodes||vr.nodes.svg.node.ownerDocument!==Ut.document){const t=en().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";");t.attr("focusable","false");t.attr("aria-hidden","true");vr.nodes={svg:t,path:t.path().node}}if(!vr.nodes.svg.node.parentNode)vr.nodes.svg.addTo(Ut.document.body||Ut.document.documentElement);return vr.nodes}function dr(t){return!t.width&&!t.height&&!t.x&&!t.y}function Cr(t){return t===Ut.document||(Ut.document.documentElement.contains||function(t){while(t.parentNode)t=t.parentNode;return t===Ut.document}).call(Ut.document.documentElement,t)}var wr=class t{constructor(...t){this.init(...t)}addOffset(){this.x+=Ut.window.pageXOffset;this.y+=Ut.window.pageYOffset;return new t(this)}init(t){t=typeof t==="string"?t.split(Fn).map(parseFloat):Array.isArray(t)?t:typeof t==="object"?[t.left!=null?t.left:t.x,t.top!=null?t.top:t.y,t.width,t.height]:arguments.length===4?[].slice.call(arguments):[0,0,0,0];this.x=t[0]||0;this.y=t[1]||0;this.width=this.w=t[2]||0;this.height=this.h=t[3]||0;this.x2=this.x+this.w;this.y2=this.y+this.h;this.cx=this.x+this.w/2;this.cy=this.y+this.h/2;return this}isNulled(){return dr(this)}merge(n){const r=Math.min(this.x,n.x);const i=Math.min(this.y,n.y);const e=Math.max(this.x+this.width,n.x+n.width)-r;const s=Math.max(this.y+this.height,n.y+n.height)-i;return new t(r,i,e,s)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(n){if(!(n instanceof ar))n=new ar(n);let r=Infinity;let i=-Infinity;let e=Infinity;let s=-Infinity;[new hr(this.x,this.y),new hr(this.x2,this.y),new hr(this.x,this.y2),new hr(this.x2,this.y2)].forEach((function(t){t=t.transform(n);r=Math.min(r,t.x);i=Math.max(i,t.x);e=Math.min(e,t.y);s=Math.max(s,t.y)}));return new t(r,e,i-r,s-e)}};function pr(t,n,r){let i;try{i=n(t.node);if(dr(i)&&!Cr(t.node))throw new Error("Element not in the dom")}catch(n){i=r(t)}return i}function yr(){const t=t=>t.getBBox();const n=t=>{try{const n=t.clone().addTo(vr().svg).show();const r=n.node.getBBox();n.remove();return r}catch(n){throw new Error(`Getting bbox of element "${t.node.nodeName}" is not possible: ${n.toString()}`)}};const r=pr(this,t,n);return new wr(r)}function gr(t){const n=t=>t.getBoundingClientRect();const r=t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)};const i=pr(this,n,r);const e=new wr(i);if(t)return e.transform(t.screenCTM().inverseO());return e.addOffset()}function mr(t,n){const r=this.bbox();return t>r.x&&n>r.y&&t<r.x+r.width&&n<r.y+r.height}p({viewbox:{viewbox(t,n,r,i){if(t==null)return new wr(this.attr("viewBox"));return this.attr("viewBox",new wr(t,n,r,i))},zoom(t,n){let{width:r,height:i}=this.attr(["width","height"]);if(!r&&!i||typeof r==="string"||typeof i==="string"){r=this.node.clientWidth;i=this.node.clientHeight}if(!r||!i)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const e=this.viewbox();const s=r/e.width;const o=i/e.height;const h=Math.min(s,o);if(t==null)return h;let u=h/t;if(u===Infinity)u=Number.MAX_SAFE_INTEGER/100;n=n||new hr(r/2/s+e.x,i/2/o+e.y);const c=new wr(e).transform(new ar({scale:u,origin:n}));return this.viewbox(c)}}});un(wr,"Box");var br=class extends Array{constructor(t=[],...n){super(t,...n);if(typeof t==="number")return this;this.length=0;this.push(...t)}};vn([br],{each(t,...n){if(typeof t==="function")return this.map(((n,r,i)=>t.call(n,n,r,i)));else return this.map((r=>r[t](...n)))},toArray(){return Array.prototype.concat.apply([],this)}});const xr=["toArray","constructor","each"];br.extend=function(t){t=t.reduce(((t,n)=>{if((0,zt.default)(xr).call(xr,n))return t;if(n[0]==="_")return t;if(n in Array.prototype)t["$"+n]=Array.prototype[n];t[n]=function(...t){return this.each(n,...t)};return t}),{});vn([br],t)};function Mr(t){let n=(t+"").trim();const r=n.match(/^url\((.*)\)$/i);if(r){n=r[1].trim();const t=n[0];if(t==='"'||t==="'"){if(n[n.length-1]!==t)return null;n=n.slice(1,-1)}}const i=n.match(Ln);return i?i[1].slice(1):null}function kr(t,n){const r=`#${Ut.window.CSS.escape(n)}`;if(t.nodeType===1&&t.matches(r))return t;return t.querySelector(r)}function jr(t,n){const r=Mr(n);return r?kr(t.getRootNode(),r):null}function _r(t,n,r=`[${n}]`){const i=t.getAttribute("id");const e=t.getRootNode();if(!i||kr(e,i)!==t)return new br;const s=[];if(e.nodeType===1&&e.matches(r)&&Mr(e.getAttribute(n))===i)s.push(on(e));for(const t of e.querySelectorAll(r))if(Mr(t.getAttribute(n))===i)s.push(on(t));return new br(s)}function Or(t,n){return new br(Dt((n||Ut.document).querySelectorAll(t),(function(t){return on(t)})))}function Sr(t){return Or(t,this.node)}function Ar(t){return on(this.node.querySelector(t))}let Lr=0;const Er=new WeakMap;const Tr=new WeakMap;const Vr=()=>Object.create(null);function Hr(t){const n=t.getEventHolder();let r=Er.get(n);if(!r){r=Vr();Er.set(n,r)}return r}function Br(t){return t.getEventTarget()}function zr(t){Er.delete(t.getEventHolder())}function Dr(t,n,r,i,e){const s=r.bind(i||t);const o=e||false;const h=en(t);const u=Hr(h);const c=Br(h);n=Array.isArray(n)?n:n.split(Fn);let a=Tr.get(r);if(!a){a=++Lr;Tr.set(r,a)}n.forEach((function(t){const n=t.split(".")[0];const r=t.split(".")[1]||"*";u[n]=u[n]||Vr();u[n][r]=u[n][r]||Vr();u[n][r][a]=u[n][r][a]||[];u[n][r][a].push({listener:s,options:o});c.addEventListener(n,s,o)}))}function Fr(t,n,r,i){const e=en(t);const s=Hr(e);const o=Br(e);if(typeof r==="function"){r=Tr.get(r);if(!r)return}n=Array.isArray(n)?n:(n||"").split(Fn);n.forEach((function(t){const n=t&&t.split(".")[0];const h=t&&t.split(".")[1];let u,c;if(r){if(s[n]&&s[n][h||"*"]){const t=s[n][h||"*"][r];if(!t)return;t.forEach((function(t){o.removeEventListener(n,t.listener,t.options??i??false)}));delete s[n][h||"*"][r]}}else if(n&&h){if(s[n]&&s[n][h]){for(c in s[n][h])Fr(o,[n,h].join("."),c);delete s[n][h]}}else if(h){for(t in s)for(u in s[t])if(h===u)Fr(o,[t,h].join("."))}else if(n){if(s[n]){for(u in s[n])Fr(o,[n,u].join("."));delete s[n]}}else{for(t in s)Fr(o,t);zr(e)}}))}function Ir(t,n,r,i){const e=Br(t);if(n instanceof Ut.window.Event)e.dispatchEvent(n);else{n=new Ut.window.CustomEvent(n,{detail:r,cancelable:true,...i});e.dispatchEvent(n)}return n}var Zr=class extends Kt{addEventListener(){}dispatch(t,n,r){return Ir(this,t,n,r)}dispatchEvent(t){const n=Hr(this)[t.type];if(!n)return true;for(const r in n)for(const i in n[r])n[r][i].forEach((function(n){n.listener(t)}));return!t.defaultPrevented}fire(t,n,r){this.dispatch(t,n,r);return this}getEventHolder(){return this}getEventTarget(){return this}off(t,n,r){Fr(this,t,n,r);return this}on(t,n,r,i){Dr(this,t,n,r,i);return this}removeEventListener(){}};un(Zr,"EventTarget");function $r(){}const Nr={duration:400,ease:">",delay:0};const Pr={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};var Rr=class extends Array{constructor(...t){super(...t);this.init(...t)}clone(){return new this.constructor(this)}init(t){if(typeof t==="number")return this;this.length=0;this.push(...this.parse(t));return this}parse(t=[]){if(t instanceof Array)return t;return t.trim().split(Fn).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];t.push(...this);return t}};var Gr=class t{constructor(...t){this.init(...t)}convert(n){return new t(this.value,n)}divide(n){n=new t(n);return new t(this/n,this.unit||n.unit)}init(n,r){r=Array.isArray(n)?n[1]:r;n=Array.isArray(n)?n[0]:n;this.value=0;this.unit=r||"";if(typeof n==="number")this.value=isNaN(n)?0:!isFinite(n)?n<0?-34e37:34e37:n;else if(typeof n==="string"){r=n.match(On);if(r){this.value=parseFloat(r[1]);if(r[5]==="%")this.value/=100;else if(r[5]==="s")this.value*=1e3;this.unit=r[5]}}else if(n instanceof t){this.value=n.valueOf();this.unit=n.unit}return this}minus(n){n=new t(n);return new t(this-n,this.unit||n.unit)}plus(n){n=new t(n);return new t(this+n,this.unit||n.unit)}times(n){n=new t(n);return new t(this*n,this.unit||n.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return(this.unit==="%"?~~(this.value*1e8)/1e6:this.unit==="s"?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}};const Yr=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]);const Xr=[];function Qr(t){Xr.push(t)}function Jr(t,n,r){if(t==null){t={};n=this.node.attributes;for(const r of n)t[r.nodeName]=zn.test(r.nodeValue)?parseFloat(r.nodeValue):r.nodeValue;return t}else if(t instanceof Array)return t.reduce(((t,n)=>{t[n]=this.attr(n);return t}),{});else if(typeof t==="object"&&t.constructor===Object)for(n in t)this.attr(n,t[n]);else if(n===null)this.node.removeAttribute(t);else if(n==null){n=this.node.getAttribute(t);return n==null?Pr[t]:zn.test(n)?parseFloat(n):n}else{n=Xr.reduce(((n,r)=>r(t,n,this)),n);if(typeof n==="number")n=new Gr(n);else if(Yr.has(t)&&or.isColor(n))n=new or(n);else if(n.constructor===Array)n=new Rr(n);if(t==="leading"){if(this.leading)this.leading(n)}else typeof r==="string"?this.node.setAttributeNS(r,t,n.toString()):this.node.setAttribute(t,n.toString());if(this.rebuild&&(t==="font-size"||t==="x"))this.rebuild()}return this}var qr=class t extends Zr{constructor(t,n){super();this.node=t;this.type=t.nodeName;if(n&&t!==n)this.attr(n)}add(t,n){t=en(t);if(t.removeNamespace&&this.node instanceof Ut.window.SVGElement)t.removeNamespace();if(n==null)this.node.appendChild(t.node);else if(t.node!==this.node.childNodes[n])this.node.insertBefore(t.node,this.node.childNodes[n]);return this}addTo(t,n){return en(t).put(this,n)}children(){return new br(Dt(this.node.children,(function(t){return on(t)})))}clear(){while(this.node.hasChildNodes())this.node.removeChild(this.node.lastChild);return this}clone(t=true,n=true){this.writeDataToDom();let r=this.node.cloneNode(t);if(n)r=fn(r);return new this.constructor(r)}each(t,n){const r=this.children();let i,e;for(i=0,e=r.length;i<e;i++){t.apply(r[i],[i,r]);if(n)r[i].each(t,n)}return this}element(n,r){return this.put(new t(rn(n),r))}first(){return on(this.node.firstChild)}get(t){return on(this.node.childNodes[t])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(t){return this.index(t)>=0}html(t,n){return this.xml(t,n,Qt)}id(t){if(typeof t==="undefined"&&!this.node.id)this.node.id=ln(this.type);return this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return on(this.node.lastChild)}matches(t){const n=this.node;const r=n.matches||n.matchesSelector||n.msMatchesSelector||n.mozMatchesSelector||n.webkitMatchesSelector||n.oMatchesSelector||null;return r&&r.call(n,t)}parent(t){let n=this;if(!n.node.parentNode)return null;n=on(n.node.parentNode);if(!t)return n;do{if(typeof t==="string"?n.matches(t):n instanceof t)return n}while(n=on(n.node.parentNode));return n}put(t,n){t=en(t);this.add(t,n);return t}putIn(t,n){return en(t).add(this,n)}remove(){if(this.parent())this.parent().removeElement(this);return this}removeElement(t){this.node.removeChild(t.node);return this}replace(t){t=en(t);if(this.node.parentNode)this.node.parentNode.replaceChild(t.node,this.node);return t}round(t=2,n=null){const r=10**t;const i=this.attr(n);for(const t in i)if(typeof i[t]==="number")i[t]=Math.round(i[t]*r)/r;this.attr(i);return this}svg(t,n){return this.xml(t,n,Xt)}toString(){return this.id()}words(t){this.node.textContent=t;return this}wrap(t){const n=this.parent();if(!n)return this.addTo(t);const r=n.index(this);return n.put(t,r).put(this)}writeDataToDom(){this.each((function(){this.writeDataToDom()}));return this}xml(t,n,r){if(typeof t==="boolean"){r=n;n=t;t=null}if(t==null||typeof t==="function"){n=n==null?true:n;this.writeDataToDom();let r=this;if(t!=null){r=on(r.node.cloneNode(true));if(n){const n=t(r);r=n||r;if(n===false)return""}r.each((function(){const n=t(this);const r=n||this;if(n===false)this.remove();else if(n&&this!==r)this.replace(r)}),true)}return n?r.node.outerHTML:r.node.innerHTML}n=n==null?false:n;const i=rn("wrapper",r);const e=Ut.document.createDocumentFragment();i.innerHTML=t;for(let t=i.children.length;t--;)e.appendChild(i.firstElementChild);const s=this.parent();return n?this.replace(e)&&s:this.add(e)}};vn(qr,{attr:Jr,find:Sr,findOne:Ar});un(qr,"Dom");var Ur=class extends qr{constructor(t,n){super(t,n);this.dom={};this.node.instance=this;if(t.hasAttribute("data-svgjs")||t.hasAttribute("svgjs:data"))this.setData(JSON.parse(t.getAttribute("data-svgjs"))??JSON.parse(t.getAttribute("svgjs:data"))??{})}center(t,n){return this.cx(t).cy(n)}cx(t){return t==null?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return t==null?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,n){return this.dx(t).dy(n)}dx(t=0){return this.x(new Gr(t).plus(this.x()))}dy(t=0){return this.y(new Gr(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,n){return this.x(t).y(n)}parents(t=this.root()){const n=typeof t==="string";const r=this.root();const i=r&&r.node;if(!n)t=t&&en(t).node;const e=new br;let s=this;while((s=s.parent())&&s.node!==Ut.document&&s.node.nodeName!=="#document-fragment"){e.push(s);if(!n&&s.node===t)break;if(n&&s.matches(t))break;if(i&&s.node===i)return null}return e}reference(t){t=this.attr(t);if(!t)return null;const n=jr(this.node,t);return n?en(n):null}root(){const t=this.parent(cn(nn));return t&&t.root()}setData(t){this.dom=t;return this}size(t,n){const r=Nt(this,t,n);return this.width(new Gr(r.width)).height(new Gr(r.height))}width(t){return this.attr("width",t)}writeDataToDom(t){Yt(this,this.dom,t);return super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}};vn(Ur,{bbox:yr,rbox:gr,inside:mr,point:ur,ctm:lr,screenCTM:fr});un(Ur,"Element");const Wr={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,n){return n==="color"?t:t+"-"+n}};["fill","stroke"].forEach((function(t){const n={};let r;n[t]=function(n){if(typeof n==="undefined")return this.attr(t);if(typeof n==="string"||n instanceof or||or.isRgb(n)||n instanceof Ur)this.attr(t,n);else for(r=Wr[t].length-1;r>=0;r--)if(n[Wr[t][r]]!=null)this.attr(Wr.prefix(t,Wr[t][r]),n[Wr[t][r]]);return this};p(["Element","Runner"],n)}));p(["Element","Runner"],{matrix:function(t,n,r,i,e,s){if(t==null)return new ar(this);return this.attr("transform",new ar(t,n,r,i,e,s))},rotate:function(t,n,r){return this.transform({rotate:t,ox:n,oy:r},true)},skew:function(t,n,r,i){return arguments.length===1||arguments.length===3?this.transform({skew:t,ox:n,oy:r},true):this.transform({skew:[t,n],ox:r,oy:i},true)},shear:function(t,n,r){return this.transform({shear:t,ox:n,oy:r},true)},scale:function(t,n,r,i){return arguments.length===1||arguments.length===3?this.transform({scale:t,ox:n,oy:r},true):this.transform({scale:[t,n],ox:r,oy:i},true)},translate:function(t,n){return this.transform({translate:[t,n]},true)},relative:function(t,n){return this.transform({relative:[t,n]},true)},flip:function(t="both",n="center"){if("xybothtrue".indexOf(t)===-1){n=t;t="both"}return this.transform({flip:t,origin:n},true)},opacity:function(t){return this.attr("opacity",t)}});p("radius",{radius:function(t,n=t){return(this._element||this).type==="radialGradient"?this.attr("r",new Gr(t)):this.rx(t).ry(n)}});p("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new hr(this.node.getPointAtLength(t))}});p(["Element","Runner"],{font:function(t,n){if(typeof t==="object"){for(n in t)this.font(n,t[n]);return this}return t==="leading"?this.leading(n):t==="anchor"?this.attr("text-anchor",n):t==="size"||t==="family"||t==="weight"||t==="stretch"||t==="variant"||t==="style"?this.attr("font-"+t,n):this.attr(t,n)}});p("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce((function(t,n){const r=function(t){if(t===null)this.off(n);else this.on(n,t);return this};t[n]=r;return t}),{}));function Kr(){return this.attr("transform",null)}function ti(){return(this.attr("transform")||"").split(En).slice(0,-1).map((function(t){const n=t.trim().split("(");return[n[0].trim(),n[1].split(Fn).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,n){if(n[0]==="matrix")return t.lmultiply(ar.fromArray(n[1]));return t[n[0]].apply(t,n[1])}),new ar)}function ni(t,n){if(this===t)return this;if(Gt(this.node))return this.addTo(t,n);const r=this.screenCTM();const i=t.screenCTM().inverse();this.addTo(t,n).untransform().transform(i.multiply(r));return this}function ri(t){return this.toParent(this.root(),t)}function ii(t,n){if(t==null||typeof t==="string"){const n=new ar(this).decompose();return t==null?n:n[t]}if(!ar.isMatrixLike(t))t={...t,origin:Pt(t,this)};const r=new ar(n===true?this:n||false).transform(t);return this.attr("transform",r)}p("Element",{untransform:Kr,matrixify:ti,toParent:ni,toRoot:ri,transform:ii});var ei=class t extends Ur{flatten(){this.each((function(){if(this instanceof t)return this.flatten().ungroup()}));return this}ungroup(t=this.parent(),n=t.index(this)){n=n===-1?t.children().length:n;this.each((function(r,i){return i[i.length-r-1].toParent(t,n)}));return this.remove()}};un(ei,"Container");var si=class extends ei{constructor(t,n=t){super(sn("defs",t),n)}flatten(){return this}ungroup(){return this}};un(si,"Defs");var oi=class extends Ur{};un(oi,"Shape");var hi=f({cx:()=>fi,cy:()=>vi,height:()=>Ci,rx:()=>ui,ry:()=>ci,width:()=>di,x:()=>ai,y:()=>li});function ui(t){return this.attr("rx",t)}function ci(t){return this.attr("ry",t)}function ai(t){return t==null?this.cx()-this.rx():this.cx(t+this.rx())}function li(t){return t==null?this.cy()-this.ry():this.cy(t+this.ry())}function fi(t){return this.attr("cx",t)}function vi(t){return this.attr("cy",t)}function di(t){return t==null?this.rx()*2:this.rx(new Gr(t).divide(2))}function Ci(t){return t==null?this.ry()*2:this.ry(new Gr(t).divide(2))}var wi=class extends oi{constructor(t,n=t){super(sn("ellipse",t),n)}size(t,n){const r=Nt(this,t,n);return this.rx(new Gr(r.width).divide(2)).ry(new Gr(r.height).divide(2))}};vn(wi,hi);p("Container",{ellipse:dn((function(t=0,n=t){return this.put(new wi).size(t,n).move(0,0)}))});un(wi,"Ellipse");var pi=class extends qr{constructor(t=Ut.document.createDocumentFragment()){super(t)}xml(t,n,r){if(typeof t==="boolean"){r=n;n=t;t=null}if(t==null||typeof t==="function"){const t=new qr(rn("wrapper",r));t.add(this.node.cloneNode(true));return t.xml(false,r)}return super.xml(t,false,r)}};un(pi,"Fragment");var yi=f({from:()=>gi,to:()=>mi});function gi(t,n){return(this._element||this).type==="radialGradient"?this.attr({fx:new Gr(t),fy:new Gr(n)}):this.attr({x1:new Gr(t),y1:new Gr(n)})}function mi(t,n){return(this._element||this).type==="radialGradient"?this.attr({cx:new Gr(t),cy:new Gr(n)}):this.attr({x2:new Gr(t),y2:new Gr(n)})}var bi=class extends ei{constructor(t,n){super(sn(t+"Gradient",typeof t==="string"?null:t),n)}attr(t,n,r){if(t==="transform")t="gradientTransform";return super.attr(t,n,r)}bbox(){return new wr}targets(){return _r(this.node,"fill")}toString(){return this.url()}update(t){this.clear();if(typeof t==="function")t.call(this,this);return this}url(){return"url(#"+this.id()+")"}};vn(bi,yi);p({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:dn((function(t,n){return this.put(new bi(t)).update(n)}))}});un(bi,"Gradient");var xi=class extends ei{constructor(t,n=t){super(sn("pattern",t),n)}attr(t,n,r){if(t==="transform")t="patternTransform";return super.attr(t,n,r)}bbox(){return new wr}targets(){return _r(this.node,"fill")}toString(){return this.url()}update(t){this.clear();if(typeof t==="function")t.call(this,this);return this}url(){return"url(#"+this.id()+")"}};p({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:dn((function(t,n,r){return this.put(new xi).update(r).attr({x:0,y:0,width:t,height:n,patternUnits:"userSpaceOnUse"})}))}});un(xi,"Pattern");var Mi=class extends oi{constructor(t,n=t){super(sn("image",t),n)}load(t,n){if(!t)return this;const r=new Ut.window.Image;Dr(r,"load",(function(t){const i=this.parent(xi);if(this.width()===0&&this.height()===0)this.size(r.width,r.height);if(i instanceof xi){if(i.width()===0&&i.height()===0)i.size(this.width(),this.height())}if(typeof n==="function")n.call(this,t)}),this);Dr(r,"load error",(function(){Fr(r)}));return this.attr("href",r.src=t,qt)}};Qr((function(t,n,r){if(t==="fill"||t==="stroke"){if(Dn.test(n))n=r.root().defs().image(n)}if(n instanceof Mi)n=r.root().defs().pattern(0,0,(t=>{t.add(n)}));return n}));p({Container:{image:dn((function(t,n){return this.put(new Mi).size(0,0).load(t,n)}))}});un(Mi,"Image");var ki=class extends Rr{bbox(){let t=-Infinity;let n=-Infinity;let r=Infinity;let i=Infinity;this.forEach((function(e){t=Math.max(e[0],t);n=Math.max(e[1],n);r=Math.min(e[0],r);i=Math.min(e[1],i)}));return new wr(r,i,t-r,n-i)}move(t,n){const r=this.bbox();t-=r.x;n-=r.y;if(!isNaN(t)&&!isNaN(n))for(let r=this.length-1;r>=0;r--)this[r]=[this[r][0]+t,this[r][1]+n];return this}parse(t=[0,0]){const n=[];if(t instanceof Array)t=Array.prototype.concat.apply([],t);else t=t.trim().split(Fn).map(parseFloat);if(t.length%2!==0)t.pop();for(let r=0,i=t.length;r<i;r=r+2)n.push([t[r],t[r+1]]);return n}size(t,n){let r;const i=this.bbox();for(r=this.length-1;r>=0;r--){if(i.width)this[r][0]=(this[r][0]-i.x)*t/i.width+i.x;if(i.height)this[r][1]=(this[r][1]-i.y)*n/i.height+i.y}return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const t=[];for(let n=0,r=this.length;n<r;n++)t.push(this[n].join(","));return t.join(" ")}transform(t){return this.clone().transformO(t)}transformO(t){if(!ar.isMatrixLike(t))t=new ar(t);for(let n=this.length;n--;){const[r,i]=this[n];this[n][0]=t.a*r+t.c*i+t.e;this[n][1]=t.b*r+t.d*i+t.f}return this}};var ji=f({MorphArray:()=>_i,height:()=>Li,width:()=>Ai,x:()=>Oi,y:()=>Si});const _i=ki;function Oi(t){return t==null?this.bbox().x:this.move(t,this.bbox().y)}function Si(t){return t==null?this.bbox().y:this.move(this.bbox().x,t)}function Ai(t){const n=this.bbox();return t==null?n.width:this.size(t,n.height)}function Li(t){const n=this.bbox();return t==null?n.height:this.size(n.width,t)}var Ei=class extends oi{constructor(t,n=t){super(sn("line",t),n)}array(){return new ki([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,n){return this.attr(this.array().move(t,n).toLine())}plot(t,n,r,i){if(t==null)return this.array();else if(typeof n!=="undefined")t={x1:t,y1:n,x2:r,y2:i};else t=new ki(t).toLine();return this.attr(t)}size(t,n){const r=Nt(this,t,n);return this.attr(this.array().size(r.width,r.height).toLine())}};vn(Ei,ji);p({Container:{line:dn((function(...t){return Ei.prototype.plot.apply(this.put(new Ei),t[0]!=null?t:[0,0,0,0])}))}});un(Ei,"Line");var Ti=class extends ei{constructor(t,n=t){super(sn("marker",t),n)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,n){return this.attr("refX",t).attr("refY",n)}toString(){return"url(#"+this.id()+")"}update(t){this.clear();if(typeof t==="function")t.call(this,this);return this}width(t){return this.attr("markerWidth",t)}};p({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:dn((function(t,n,r){return this.put(new Ti).size(t,n).ref(t/2,n/2).viewbox(0,0,t,n).attr("orient","auto").update(r)}))},marker:{marker(t,n,r,i){let e=["marker"];if(t!=="all")e.push(t);e=e.join("-");t=arguments[1]instanceof Ti?arguments[1]:this.defs().marker(n,r,i);return this.attr(e,t)}}});un(Ti,"Marker");function Vi(t,n){return function(r){if(r==null)return this[t];this[t]=r;if(n)n.call(this);return this}}const Hi={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return-Math.cos(t*Math.PI/2)+1},bezier:function(t,n,r,i){return function(e){if(e<0)if(t>0)return n/t*e;else if(r>0)return i/r*e;else return 0;else if(e>1)if(r<1)return(1-i)/(1-r)*e+(i-r)/(1-r);else if(t<1)return(1-n)/(1-t)*e+(n-t)/(1-t);else return 1;else return 3*e*(1-e)**2*n+3*e**2*(1-e)*i+e**3}},steps:function(t,n="end"){n=n.split("-").reverse()[0];let r=t;if(n==="none")--r;else if(n==="both")++r;return(i,e=false)=>{let s=Math.floor(i*t);const o=i*s%1===0;if(n==="start"||n==="both")++s;if(e&&o)--s;if(i>=0&&s<0)s=0;if(i<=1&&s>r)s=r;return s/r}}};var Bi=class{done(){return false}};var zi=class extends Bi{constructor(t=Nr.ease){super();this.ease=Hi[t]||t}step(t,n,r){if(typeof t!=="number")return r<1?t:n;return t+(n-t)*this.ease(r)}};var Di=class extends Bi{constructor(t){super();this.stepper=t}done(t){return t.done}step(t,n,r,i){return this.stepper(t,n,r,i)}};function Fi(){const t=(this._duration||500)/1e3;const n=this._overshoot||0;const r=1e-10;const i=Math.PI;const e=Math.log(n/100+r);const s=-e/Math.sqrt(i*i+e*e);const o=3.9/(s*t);this.d=2*s*o;this.k=o*o}var Ii=class extends Di{constructor(t=500,n=0){super();this.duration(t).overshoot(n)}step(t,n,r,i){if(typeof t==="string")return t;i.done=r===Infinity;if(r===Infinity)return n;if(r===0)return t;if(r>100)r=16;r/=1e3;const e=i.velocity||0;const s=-this.d*e-this.k*(t-n);const o=t+e*r+s*r*r/2;i.velocity=e+s*r;i.done=Math.abs(n-o)+Math.abs(e)<.002;return i.done?n:o}};vn(Ii,{duration:Vi("_duration",Fi),overshoot:Vi("_overshoot",Fi)});var Zi=class extends Di{constructor(t=.1,n=.01,r=0,i=1e3){super();this.p(t).i(n).d(r).windup(i)}step(t,n,r,i){if(typeof t==="string")return t;i.done=r===Infinity;if(r===Infinity)return n;if(r===0)return t;const e=n-t;let s=(i.integral||0)+e*r;const o=(e-(i.error||0))/r;const h=this._windup;if(h!==false)s=Math.max(-h,Math.min(s,h));i.error=e;i.integral=s;i.done=Math.abs(e)<.001;return i.done?n:t+(this.P*e+this.I*s+this.D*o)}};vn(Zi,{windup:Vi("_windup"),p:Vi("P"),i:Vi("I"),d:Vi("D")});const $i={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};const Ni={M:function(t,n,r){n.x=r.x=t[0];n.y=r.y=t[1];return["M",n.x,n.y]},L:function(t,n){n.x=t[0];n.y=t[1];return["L",t[0],t[1]]},H:function(t,n){n.x=t[0];return["H",t[0]]},V:function(t,n){n.y=t[0];return["V",t[0]]},C:function(t,n){n.x=t[4];n.y=t[5];return["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,n){n.x=t[2];n.y=t[3];return["S",t[0],t[1],t[2],t[3]]},Q:function(t,n){n.x=t[2];n.y=t[3];return["Q",t[0],t[1],t[2],t[3]]},T:function(t,n){n.x=t[0];n.y=t[1];return["T",t[0],t[1]]},Z:function(t,n,r){n.x=r.x;n.y=r.y;return["Z"]},A:function(t,n){n.x=t[5];n.y=t[6];return["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}};const Pi="mlhvqtcsaz".split("");for(let t=0,n=Pi.length;t<n;++t)Ni[Pi[t]]=function(t){return function(n,r,i){if(t==="H")n[0]=n[0]+r.x;else if(t==="V")n[0]=n[0]+r.y;else if(t==="A"){n[5]=n[5]+r.x;n[6]=n[6]+r.y}else for(let t=0,i=n.length;t<i;++t)n[t]=n[t]+(t%2?r.y:r.x);return Ni[t](n,r,i)}}(Pi[t].toUpperCase());function Ri(t){return Ni[t.segment[0]](t.segment.slice(1),t.p,t.p0)}function Gi(t){return t.segment.length&&t.segment.length-1===$i[t.segment[0].toUpperCase()]}function Yi(t,n){t.inNumber&&Xi(t,false);const r=In.test(n);if(r)t.segment=[n];else{const n=t.lastCommand;const r=n.toLowerCase();t.segment=[r==="m"?n===r?"l":"L":n]}t.inSegment=true;t.lastCommand=t.segment[0];return r}function Xi(t,n){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number));t.inNumber=n;t.number="";t.pointSeen=false;t.hasExponent=false;if(Gi(t))Qi(t)}function Qi(t){t.inSegment=false;if(t.absolute)t.segment=Ri(t);t.segments.push(t.segment)}function Ji(t){if(!t.segment.length)return false;const n=t.segment[0].toUpperCase()==="A";const r=t.segment.length;return n&&(r===4||r===5)}function qi(t){return t.lastToken.toUpperCase()==="E"}const Ui=new Set([" ",",","\t","\n","\r","\f"]);function Wi(t,n=true){let r=0;let i="";const e={segment:[],inNumber:false,number:"",lastToken:"",inSegment:false,segments:[],pointSeen:false,hasExponent:false,absolute:n,p0:new hr,p:new hr};while(e.lastToken=i,i=t.charAt(r++)){if(!e.inSegment){if(Yi(e,i))continue}if(i==="."){if(e.pointSeen||e.hasExponent){Xi(e,false);--r;continue}e.inNumber=true;e.pointSeen=true;e.number+=i;continue}if(!isNaN(parseInt(i))){if(e.number==="0"||Ji(e)){e.inNumber=true;e.number=i;Xi(e,true);continue}e.inNumber=true;e.number+=i;continue}if(Ui.has(i)){if(e.inNumber)Xi(e,false);continue}if(i==="-"||i==="+"){if(e.inNumber&&!qi(e)){Xi(e,false);--r;continue}e.number+=i;e.inNumber=true;continue}if(i.toUpperCase()==="E"){e.number+=i;e.hasExponent=true;continue}if(In.test(i)){if(e.inNumber)Xi(e,false);else if(!Gi(e))throw new Error("parser Error");else Qi(e);--r}}if(e.inNumber)Xi(e,false);if(e.inSegment&&Gi(e))Qi(e);return e.segments}function Ki(t){let n="";for(let r=0,i=t.length;r<i;r++){n+=t[r][0];if(t[r][1]!=null){n+=t[r][1];if(t[r][2]!=null){n+=" ";n+=t[r][2];if(t[r][3]!=null){n+=" ";n+=t[r][3];n+=" ";n+=t[r][4];if(t[r][5]!=null){n+=" ";n+=t[r][5];n+=" ";n+=t[r][6];if(t[r][7]!=null){n+=" ";n+=t[r][7]}}}}}}return n+" "}var te=class extends Rr{bbox(){vr().path.setAttribute("d",this.toString());return new wr(vr.nodes.path.getBBox())}move(t,n){const r=this.bbox();t-=r.x;n-=r.y;if(!isNaN(t)&&!isNaN(n))for(let r,i=this.length-1;i>=0;i--){r=this[i][0];if(r==="M"||r==="L"||r==="T"){this[i][1]+=t;this[i][2]+=n}else if(r==="H")this[i][1]+=t;else if(r==="V")this[i][1]+=n;else if(r==="C"||r==="S"||r==="Q"){this[i][1]+=t;this[i][2]+=n;this[i][3]+=t;this[i][4]+=n;if(r==="C"){this[i][5]+=t;this[i][6]+=n}}else if(r==="A"){this[i][6]+=t;this[i][7]+=n}}return this}parse(t="M0 0"){if(Array.isArray(t))t=Array.prototype.concat.apply([],t).toString();return Wi(t)}size(t,n){const r=this.bbox();let i,e;r.width=r.width===0?1:r.width;r.height=r.height===0?1:r.height;for(i=this.length-1;i>=0;i--){e=this[i][0];if(e==="M"||e==="L"||e==="T"){this[i][1]=(this[i][1]-r.x)*t/r.width+r.x;this[i][2]=(this[i][2]-r.y)*n/r.height+r.y}else if(e==="H")this[i][1]=(this[i][1]-r.x)*t/r.width+r.x;else if(e==="V")this[i][1]=(this[i][1]-r.y)*n/r.height+r.y;else if(e==="C"||e==="S"||e==="Q"){this[i][1]=(this[i][1]-r.x)*t/r.width+r.x;this[i][2]=(this[i][2]-r.y)*n/r.height+r.y;this[i][3]=(this[i][3]-r.x)*t/r.width+r.x;this[i][4]=(this[i][4]-r.y)*n/r.height+r.y;if(e==="C"){this[i][5]=(this[i][5]-r.x)*t/r.width+r.x;this[i][6]=(this[i][6]-r.y)*n/r.height+r.y}}else if(e==="A"){this[i][1]=this[i][1]*t/r.width;this[i][2]=this[i][2]*n/r.height;this[i][6]=(this[i][6]-r.x)*t/r.width+r.x;this[i][7]=(this[i][7]-r.y)*n/r.height+r.y}}return this}toString(){return Ki(this)}};const ne=t=>{const n=typeof t;if(n==="number")return Gr;else if(n==="string")if(or.isColor(t))return or;else if(Fn.test(t))return In.test(t)?te:Rr;else if(On.test(t))return Gr;else return ie;else if(he.indexOf(t.constructor)>-1)return t.constructor;else if(Array.isArray(t))return Rr;else if(n==="object")return oe;else return ie};var re=class{constructor(t){this._stepper=t||new zi("-");this._from=null;this._to=null;this._type=null;this._context=null;this._morphObj=null}at(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce((function(t,n){return t&&n}),true)}from(t){if(t==null)return this._from;this._from=this._set(t);return this}stepper(t){if(t==null)return this._stepper;this._stepper=t;return this}to(t){if(t==null)return this._to;this._to=this._set(t);return this}type(t){if(t==null)return this._type;this._type=t;return this}_set(t){if(!this._type)this.type(ne(t));let n=new this._type(t);if(this._type===or)n=this._to?n[this._to[4]]():this._from?n[this._from[4]]():n;if(this._type===oe)n=this._to?n.align(this._to):this._from?n.align(this._from):n;n=n.toConsumable();this._morphObj=this._morphObj||new this._type;this._context=this._context||Array.apply(null,Array(n.length)).map(Object).map((function(t){t.done=true;return t}));return n}};var ie=class{constructor(...t){this.init(...t)}init(t){t=Array.isArray(t)?t[0]:t;this.value=t;return this}toArray(){return[this.value]}valueOf(){return this.value}};var ee=class t{constructor(...t){this.init(...t)}init(n){if(Array.isArray(n))n={scaleX:n[0],scaleY:n[1],shear:n[2],rotate:n[3],translateX:n[4],translateY:n[5],originX:n[6],originY:n[7]};Object.assign(this,t.defaults,n);return this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}};ee.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const se=(t,n)=>t[0]<n[0]?-1:t[0]>n[0]?1:0;var oe=class{constructor(...t){this.init(...t)}align(t){const n=this.values;for(let r=0,i=n.length;r<i;++r){if(n[r+1]===t[r+1]){if(n[r+1]===or&&t[r+7]!==n[r+7]){const n=t[r+7];const i=new or(this.values.splice(r+3,5))[n]().toArray();this.values.splice(r+3,0,...i)}r+=n[r+2]+2;continue}if(!t[r+1])return this;const i=(new t[r+1]).toArray();const e=n[r+2]+3;n.splice(r,e,t[r],t[r+1],t[r+2],...i);r+=n[r+2]+2}return this}init(t){this.values=[];if(Array.isArray(t)){this.values=t.slice();return}t=t||{};const n=[];for(const r in t){const i=ne(t[r]);const e=new i(t[r]).toArray();n.push([r,i,e.length,...e])}n.sort(se);this.values=n.reduce(((t,n)=>t.concat(n)),[]);return this}toArray(){return this.values}valueOf(){const t={};const n=this.values;while(n.length){const r=n.shift();const i=n.shift();const e=n.shift();t[r]=new i(n.splice(0,e))}return t}};const he=[ie,ee,oe];function ue(t=[]){he.push(...[].concat(t))}function ce(){vn(he,{to(t){return(new re).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){this.init(t);return this},toConsumable(){return this.toArray()},morph(t,n,r,i,e){const s=function(t,s){return i.step(t,n[s],r,e[s],e)};return this.fromArray(t.map(s))}})}var ae=class extends oi{constructor(t,n=t){super(sn("path",t),n)}array(){return this._array||(this._array=new te(this.attr("d")))}clear(){delete this._array;return this}height(t){return t==null?this.bbox().height:this.size(this.bbox().width,t)}move(t,n){return this.attr("d",this.array().move(t,n))}plot(t){return t==null?this.array():this.clear().attr("d",typeof t==="string"?t:this._array=new te(t))}size(t,n){const r=Nt(this,t,n);return this.attr("d",this.array().size(r.width,r.height))}width(t){return t==null?this.bbox().width:this.size(t,this.bbox().height)}x(t){return t==null?this.bbox().x:this.move(t,this.bbox().y)}y(t){return t==null?this.bbox().y:this.move(this.bbox().x,t)}};ae.prototype.MorphArray=te;p({Container:{path:dn((function(t){return this.put(new ae).plot(t||new te)}))}});un(ae,"Path");var le=f({array:()=>fe,clear:()=>ve,move:()=>de,plot:()=>Ce,size:()=>we});function fe(){return this._array||(this._array=new ki(this.attr("points")))}function ve(){delete this._array;return this}function de(t,n){return this.attr("points",this.array().move(t,n))}function Ce(t){return t==null?this.array():this.clear().attr("points",typeof t==="string"?t:this._array=new ki(t))}function we(t,n){const r=Nt(this,t,n);return this.attr("points",this.array().size(r.width,r.height))}var pe=class extends oi{constructor(t,n=t){super(sn("polygon",t),n)}};p({Container:{polygon:dn((function(t){return this.put(new pe).plot(t||new ki)}))}});vn(pe,ji);vn(pe,le);un(pe,"Polygon");var ye=class extends oi{constructor(t,n=t){super(sn("polyline",t),n)}};p({Container:{polyline:dn((function(t){return this.put(new ye).plot(t||new ki)}))}});vn(ye,ji);vn(ye,le);un(ye,"Polyline");var ge=class extends oi{constructor(t,n=t){super(sn("rect",t),n)}};vn(ge,{rx:ui,ry:ci});p({Container:{rect:dn((function(t,n){return this.put(new ge).size(t,n)}))}});un(ge,"Rect");var me=class{constructor(){this._first=null;this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const n=typeof t.next!=="undefined"?t:{value:t,next:null,prev:null};if(this._last){n.prev=this._last;this._last.next=n;this._last=n}else{this._last=n;this._first=n}return n}remove(t){if(t.prev)t.prev.next=t.next;if(t.next)t.next.prev=t.prev;if(t===this._last)this._last=t.prev;if(t===this._first)this._first=t.next;t.prev=null;t.next=null}shift(){const t=this._first;if(!t)return null;this._first=t.next;if(this._first)this._first.prev=null;this._last=this._first?this._last:null;return t.value}};const be={nextDraw:null,frames:new me,timeouts:new me,immediates:new me,timer:()=>Ut.window.performance||Ut.window.Date,transforms:[],frame(t){const n=be.frames.push({run:t});if(be.nextDraw===null)be.nextDraw=Ut.window.requestAnimationFrame(be._draw);return n},timeout(t,n){n=n||0;const r=be.timer().now()+n;const i=be.timeouts.push({run:t,time:r});if(be.nextDraw===null)be.nextDraw=Ut.window.requestAnimationFrame(be._draw);return i},immediate(t){const n=be.immediates.push(t);if(be.nextDraw===null)be.nextDraw=Ut.window.requestAnimationFrame(be._draw);return n},cancelFrame(t){t!=null&&be.frames.remove(t)},clearTimeout(t){t!=null&&be.timeouts.remove(t)},cancelImmediate(t){t!=null&&be.immediates.remove(t)},_draw(t){try{let n=null;const r=be.timeouts.last();while(n=be.timeouts.shift()){if(t>=n.time)n.run();else be.timeouts.push(n);if(n===r)break}let i=null;const e=be.frames.last();while(i!==e&&(i=be.frames.shift()))i.run(t);let s=null;while(s=be.immediates.shift())s()}finally{const t=be.timeouts.first()||be.frames.first()||be.immediates.first();be.nextDraw=t?Ut.window.requestAnimationFrame(be._draw):null}}};const xe=function(t){const n=t.start;const r=t.runner.duration();return{start:n,duration:r,end:n+r,runner:t.runner}};const Me=function(){const t=Ut.window;return(t.performance||t.Date).now()};var ke=class extends Zr{constructor(t=Me){super();this._timeSource=t;this.terminate()}active(){return!!this._nextFrame}finish(){this.time(this.getEndTimeOfTimeline()+1);return this.pause()}getEndTime(){const t=this.getLastRunnerInfo();const n=t?t.runner.duration():0;return(t?t.start:this._time)+n}getEndTimeOfTimeline(){const t=this._runners.map((t=>t.start+t.runner.duration()));return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){this._paused=true;return this._continue()}persist(t){if(t==null)return this._persist;this._persist=t;return this}play(){this._paused=false;return this.updateTime()._continue()}reverse(t){const n=this.speed();if(t==null)return this.speed(-n);const r=Math.abs(n);return this.speed(t?-r:r)}schedule(t,n,r){if(t==null)return this._runners.map(xe);let i=0;const e=this.getEndTime();n=n||0;if(r==null||r==="last"||r==="after")i=e;else if(r==="absolute"||r==="start"){i=n;n=0}else if(r==="now")i=this._time;else if(r==="relative"){const r=this.getRunnerInfoById(t.id);if(r){i=r.start+n;n=0}}else if(r==="with-last"){const t=this.getLastRunnerInfo();i=t?t.start:this._time}else throw new Error('Invalid value for the "when" parameter');t.unschedule();t.timeline(this);const s=t.persist();const o={persist:s===null?this._persist:s,start:i+n,runner:t};this._lastRunnerId=t.id;this._runners.push(o);this._runners.sort(((t,n)=>t.start-n.start));this._runnerIds=this._runners.map((t=>t.runner.id));this.updateTime()._continue();return this}seek(t){return this.time(this._time+t)}source(t){if(t==null)return this._timeSource;this._timeSource=t;return this}speed(t){if(t==null)return this._speed;this._speed=t;return this}stop(){this.time(0);return this.pause()}time(t){if(t==null)return this._time;this._time=t;return this._continue(true)}unschedule(t){const n=this._runnerIds.indexOf(t.id);if(n<0)return this;this._runners.splice(n,1);this._runnerIds.splice(n,1);t.timeline(null);return this}updateTime(){if(!this.active())this._lastSourceTime=this._timeSource();return this}_continue(t=false){be.cancelFrame(this._nextFrame);this._nextFrame=null;if(t)return this._stepImmediate();if(this._paused)return this;this._nextFrame=be.frame(this._step);return this}_stepFn(t=false){const n=this._timeSource();let r=n-this._lastSourceTime;if(t)r=0;const i=this._speed*r+(this._time-this._lastStepTime);this._lastSourceTime=n;if(!t){this._time+=i;this._time=this._time<0?0:this._time}this._lastStepTime=this._time;this.fire("time",this._time);for(let t=this._runners.length;t--;){const n=this._runners[t];const r=n.runner;if(this._time-n.start<=0)r.reset()}let e=false;for(let t=0,n=this._runners.length;t<n;t++){const r=this._runners[t];const s=r.runner;let o=i;const h=this._time-r.start;if(h<=0){e=true;continue}else if(h<o)o=h;if(!s.active())continue;if(!s.step(o).done)e=true;else if(r.persist!==true){if(s.duration()-s.time()+this._time+r.persist<this._time){s.unschedule();--t;--n}}}if(e&&!(this._speed<0&&this._time===0)||this._runnerIds.length&&this._speed<0&&this._time>0)this._continue();else{this.pause();this.fire("finished")}return this}terminate(){this._startTime=0;this._speed=1;this._persist=0;this._nextFrame=null;this._paused=true;this._runners=[];this._runnerIds=[];this._lastRunnerId=-1;this._time=0;this._lastSourceTime=0;this._lastStepTime=0;this._step=this._stepFn.bind(this,false);this._stepImmediate=this._stepFn.bind(this,true)}};p({Element:{timeline:function(t){if(t==null){this._timeline=this._timeline||new ke;return this._timeline}else{this._timeline=t;return this}}}});var je=class t extends Zr{constructor(n){super();this.id=t.id++;n=n==null?Nr.duration:n;n=typeof n==="function"?new Di(n):n;this._element=null;this._timeline=null;this.done=false;this._queue=[];this._duration=typeof n==="number"&&n;this._isDeclarative=n instanceof Di;this._stepper=this._isDeclarative?n:new zi;this._history={};this.enabled=true;this._time=0;this._lastTime=0;this._reseted=true;this.transforms=new ar;this.transformId=1;this._haveReversed=false;this._reverse=false;this._loopsDone=0;this._swing=false;this._wait=0;this._times=1;this._frameId=null;this._persist=this._isDeclarative?true:null}static sanitise(t,n,r){let i=1;let e=false;let s=0;t=t??Nr.duration;n=n??Nr.delay;r=r||"last";if(typeof t==="object"&&!(t instanceof Bi)){n=t.delay??n;r=t.when??r;e=t.swing||e;i=t.times??i;s=t.wait??s;t=t.duration??Nr.duration}return{duration:t,delay:n,swing:e,times:i,wait:s,when:r}}active(t){if(t==null)return this.enabled;this.enabled=t;return this}addTransform(t){this.transforms.lmultiplyO(t);return this}after(t){return this.on("finished",t)}animate(n,r,i){const e=t.sanitise(n,r,i);const s=new t(e.duration);if(this._timeline)s.timeline(this._timeline);if(this._element)s.element(this._element);return s.loop(e).schedule(e.delay,e.when)}clearTransform(){this.transforms=new ar;return this}clearTransformsFromQueue(){var t;if(!this.done||!this._timeline||!(0,zt.default)(t=this._timeline._runnerIds).call(t,this.id))this._queue=this._queue.filter((t=>!t.isTransform))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){this._stepper=new zi(t);return this}element(t){if(t==null)return this._element;this._element=t;t._prepareRunner();return this}finish(){return this.step(Infinity)}loop(t,n,r){if(typeof t==="object"){n=t.swing;r=t.wait;t=t.times}this._times=t||Infinity;this._swing=n||false;this._wait=r||0;if(this._times===true)this._times=Infinity;return this}loops(t){const n=this._duration+this._wait;if(t==null){const t=Math.floor(this._time/n);const r=(this._time-t*n)/this._duration;return Math.min(t+r,this._times)}const r=Math.floor(t);const i=t%1;const e=n*r+this._duration*i;return this.time(e)}persist(t){if(t==null)return this._persist;this._persist=t;return this}position(t){const n=this._time;const r=this._duration;const i=this._wait;const e=this._times;const s=this._swing;const o=this._reverse;let h;if(t==null){const t=function(t){const n=s*Math.floor(t%(2*(i+r))/(i+r));const e=n&&!o||!n&&o;const h=Math.pow(-1,e)*(t%(i+r))/r+e;return Math.max(Math.min(h,1),0)};const u=e*(i+r)-i;h=n<=0?Math.round(t(1e-5)):n<u?t(n):Math.round(t(u-1e-5));return h}const u=Math.floor(this.loops());const c=s&&u%2===0;h=u+(c&&!o||o&&c?t:1-t);return this.loops(h)}progress(t){if(t==null)return Math.min(1,this._time/this.duration());return this.time(t*this.duration())}queue(t,n,r,i){this._queue.push({initialiser:t||$r,runner:n||$r,retarget:r,isTransform:i,initialised:false,finished:false});this.timeline()&&this.timeline()._continue();return this}reset(){if(this._reseted)return this;this.time(0);this._reseted=true;return this}reverse(t){this._reverse=t==null?!this._reverse:t;return this}schedule(t,n,r){if(!(t instanceof ke)){r=n;n=t;t=this.timeline()}if(!t)throw Error("Runner cannot be scheduled without timeline");t.schedule(this,n,r);return this}step(t){if(!this.enabled)return this;t=t==null?16:t;this._time+=t;const n=this.position();const r=this._lastPosition!==n&&this._time>=0;this._lastPosition=n;const i=this.duration();const e=this._lastTime<=0&&this._time>0;const s=this._lastTime<i&&this._time>=i;this._lastTime=this._time;if(e)this.fire("start",this);const o=this._isDeclarative;this.done=!o&&!s&&this._time>=i;this._reseted=false;let h=false;if(r||o){this._initialise(r);this.transforms=new ar;h=this._run(o?t:n);this.fire("step",this)}this.done=this.done||h&&o;if(s)this.fire("finished",this);return this}time(t){if(t==null)return this._time;const n=t-this._time;this.step(n);return this}timeline(t){if(typeof t==="undefined")return this._timeline;this._timeline=t;return this}unschedule(){const t=this.timeline();t&&t.unschedule(this);return this}_initialise(t){if(!t&&!this._isDeclarative)return;for(let n=0,r=this._queue.length;n<r;++n){const r=this._queue[n];const i=this._isDeclarative||!r.initialised&&t;t=!r.finished;if(i&&t){r.initialiser.call(this);r.initialised=true}}}_rememberMorpher(t,n){this._history[t]={morpher:n,caller:this._queue[this._queue.length-1]};if(this._isDeclarative){const t=this.timeline();t&&t.play()}}_run(t){let n=true;for(let r=0,i=this._queue.length;r<i;++r){const i=this._queue[r];const e=i.runner.call(this,t);i.finished=i.finished||e===true;n=n&&i.finished}return n}_tryRetarget(t,n,r){if(this._history[t]){if(!this._history[t].caller.initialised){const n=this._queue.indexOf(this._history[t].caller);this._queue.splice(n,1);return false}if(this._history[t].caller.retarget)this._history[t].caller.retarget.call(this,n,r);else this._history[t].morpher.to(n);this._history[t].caller.finished=false;const i=this.timeline();i&&i.play();return true}return false}};je.id=0;var _e=class{constructor(t=new ar,n=-1,r=true){this.transforms=t;this.id=n;this.done=r}clearTransformsFromQueue(){}};vn([je,_e],{mergeWith(t){return new _e(t.transforms.lmultiply(this.transforms),t.id)}});const Oe=(t,n)=>t.lmultiplyO(n);const Se=t=>t.transforms;function Ae(){const t=this._transformationRunners.runners.map(Se).reduce(Oe,new ar);this.transform(t);this._transformationRunners.merge();if(this._transformationRunners.length()===1)this._frameId=null}var Le=class{constructor(){this.runners=[];this.ids=[]}add(t){var n;if((0,zt.default)(n=this.runners).call(n,t))return;const r=t.id+1;this.runners.push(t);this.ids.push(r);return this}clearBefore(t){const n=this.ids.indexOf(t+1)||1;this.ids.splice(0,n,0);this.runners.splice(0,n,new _e).forEach((t=>t.clearTransformsFromQueue()));return this}edit(t,n){const r=this.ids.indexOf(t+1);this.ids.splice(r,1,t+1);this.runners.splice(r,1,n);return this}getByID(t){return this.runners[this.ids.indexOf(t+1)]}length(){return this.ids.length}merge(){let t=null;for(let i=0;i<this.runners.length;++i){var n,r;const e=this.runners[i];if(t&&e.done&&t.done&&(!e._timeline||!(0,zt.default)(n=e._timeline._runnerIds).call(n,e.id))&&(!t._timeline||!(0,zt.default)(r=t._timeline._runnerIds).call(r,t.id))){this.remove(e.id);const n=e.mergeWith(t);this.edit(t.id,n);t=n;--i}else t=e}return this}remove(t){const n=this.ids.indexOf(t+1);this.ids.splice(n,1);this.runners.splice(n,1);return this}};p({Element:{animate(t,n,r){const i=je.sanitise(t,n,r);const e=this.timeline();return new je(i.duration).loop(i).element(this).timeline(e.play()).schedule(i.delay,i.when)},delay(t,n){return this.animate(0,t,n)},_clearTransformRunnersBefore(t){this._transformationRunners.clearBefore(t.id)},_currentTransform(t){return this._transformationRunners.runners.filter((n=>n.id<=t.id)).map(Se).reduce(Oe,new ar)},_addRunner(t){this._transformationRunners.add(t);be.cancelImmediate(this._frameId);this._frameId=be.immediate(Ae.bind(this))},_prepareRunner(){if(this._frameId==null)this._transformationRunners=(new Le).add(new _e(new ar(this)))}}});const Ee=(t,n)=>t.filter((t=>!(0,zt.default)(n).call(n,t)));vn(je,{attr(t,n){return this.styleAttr("attr",t,n)},css(t,n){return this.styleAttr("css",t,n)},styleAttr(t,n,r){if(typeof n==="string")return this.styleAttr(t,{[n]:r});const i=n;const e=this._history[t];if(e&&!e.caller.initialised&&e.caller.retarget){e.caller.retarget.call(this,i);return this}if(this._tryRetarget(t,i))return this;let s=new re(this._stepper).to(i);let o=Object.keys(i);this.queue((function(){s=s.from(this.element()[t](o))}),(function(n){this.element()[t](s.at(n).valueOf());return s.done()}),(function(n){const r=Ee(Object.keys(n),o);if(r.length&&s.from()!=null){const n=this.element()[t](r);const i=new oe(s.from()).valueOf();Object.assign(i,n);s.from(i)}const i=new oe(s.to()).valueOf();Object.assign(i,n);s.to(i);o=Object.keys(i)}));this._rememberMorpher(t,s);return this},zoom(t,n){if(this._tryRetarget("zoom",t,n))return this;let r=new re(this._stepper).to(new Gr(t));this.queue((function(){r=r.from(this.element().zoom())}),(function(t){this.element().zoom(r.at(t),n);return r.done()}),(function(t,i){n=i;r.to(t)}));this._rememberMorpher("zoom",r);return this},transform(t,n,r){n=t.relative||n;if(this._isDeclarative&&!n&&this._tryRetarget("transform",t))return this;const i=ar.isMatrixLike(t);r=t.affine!=null?t.affine:r!=null?r:!i;const e=new re(this._stepper).type(r?ee:ar);let s;let o;let h;let u;let c;function a(){o=o||this.element();s=s||Pt(t,o);c=new ar(n?void 0:o);o._addRunner(this);if(!n)o._clearTransformRunnersBefore(this)}function l(a){if(!n)this.clearTransform();const{x:l,y:f}=new hr(s).transform(o._currentTransform(this));const v={...t,origin:[l,f]};if(v.relative===true)delete v.relative;let d=new ar(v);let C=this._isDeclarative&&h?h:c;if(r){d=d.decompose(l,f);C=C.decompose(l,f);const t=d.rotate;const n=C.rotate;const r=[t-360,t,t+360];const i=r.map((t=>Math.abs(t-n)));const e=Math.min(...i);const s=i.indexOf(e);d.rotate=r[s]}if(n){if(!i)d.rotate=t.rotate||0;if(this._isDeclarative&&u)C.rotate=u}e.from(C);e.to(d);const w=e.at(a);u=w.rotate;h=new ar(w);this.addTransform(h);o._addRunner(this);return e.done()}function f(n){if((n.origin||"center").toString()!==(t.origin||"center").toString())s=Pt(n,o);t={...n,origin:s}}this.queue(a,l,f,true);this._isDeclarative&&this._rememberMorpher("transform",e);return this},x(t){return this._queueNumber("x",t)},y(t){return this._queueNumber("y",t)},ax(t){return this._queueNumber("ax",t)},ay(t){return this._queueNumber("ay",t)},dx(t=0){return this._queueNumberDelta("x",t)},dy(t=0){return this._queueNumberDelta("y",t)},dmove(t,n){return this.dx(t).dy(n)},_queueNumberDelta(t,n){n=new Gr(n);if(this._tryRetarget(t,n))return this;const r=new re(this._stepper).to(n);let i=null;this.queue((function(){i=this.element()[t]();r.from(i);r.to(i+n)}),(function(n){this.element()[t](r.at(n));return r.done()}),(function(t){r.to(i+new Gr(t))}));this._rememberMorpher(t,r);return this},_queueObject(t,n){if(this._tryRetarget(t,n))return this;const r=new re(this._stepper).to(n);this.queue((function(){r.from(this.element()[t]())}),(function(n){this.element()[t](r.at(n));return r.done()}));this._rememberMorpher(t,r);return this},_queueNumber(t,n){return this._queueObject(t,new Gr(n))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,n){return this.x(t).y(n)},amove(t,n){return this.ax(t).ay(n)},center(t,n){return this.cx(t).cy(n)},size(t,n){const r=Nt(this._element,t,n);return this.width(r.width).height(r.height)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,n,r,i){if(arguments.length===4)return this.plot([t,n,r,i]);if(this._tryRetarget("plot",t))return this;const e=new re(this._stepper).type(this._element.MorphArray).to(t);this.queue((function(){e.from(this._element.array())}),(function(t){this._element.plot(e.at(t));return e.done()}));this._rememberMorpher("plot",e);return this},leading(t){return this._queueNumber("leading",t)},viewbox(t,n,r,i){return this._queueObject("viewbox",new wr(t,n,r,i))},update(t){if(typeof t!=="object")return this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]});if(t.opacity!=null)this.attr("stop-opacity",t.opacity);if(t.color!=null)this.attr("stop-color",t.color);if(t.offset!=null)this.attr("offset",t.offset);return this}});vn(je,{rx:ui,ry:ci,from:gi,to:mi});un(je,"Runner");var Te=class extends ei{constructor(t,n=t){super(sn("svg",t),n);this.namespace()}defs(){if(!this.isRoot())return this.root().defs();return on(this.node.querySelector("defs"))||this.put(new si)}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof Ut.window.SVGElement)&&this.node.parentNode.nodeName!=="#document-fragment"}namespace(){if(!this.isRoot())return this.root().namespace();return this.attr({xmlns:Xt,version:"1.1"}).attr("xmlns:xlink",qt,Jt)}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,Jt).attr("xmlns:svgjs",null,Jt)}root(){if(this.isRoot())return this;return super.root()}};p({Container:{nested:dn((function(){return this.put(new Te)}))}});un(Te,"Svg",true);var Ve=class extends ei{constructor(t,n=t){super(sn("symbol",t),n)}};p({Container:{symbol:dn((function(){return this.put(new Ve)}))}});un(Ve,"Symbol");var He=f({amove:()=>Ge,ax:()=>Pe,ay:()=>Re,build:()=>Ye,center:()=>Ne,cx:()=>Ze,cy:()=>$e,length:()=>ze,move:()=>Ie,plain:()=>Be,x:()=>De,y:()=>Fe});function Be(t){if(this._build===false)this.clear();this.node.appendChild(Ut.document.createTextNode(t));return this}function ze(){return this.node.getComputedTextLength()}function De(t,n=this.bbox()){if(t==null)return n.x;return this.attr("x",this.attr("x")+t-n.x)}function Fe(t,n=this.bbox()){if(t==null)return n.y;return this.attr("y",this.attr("y")+t-n.y)}function Ie(t,n,r=this.bbox()){return this.x(t,r).y(n,r)}function Ze(t,n=this.bbox()){if(t==null)return n.cx;return this.attr("x",this.attr("x")+t-n.cx)}function $e(t,n=this.bbox()){if(t==null)return n.cy;return this.attr("y",this.attr("y")+t-n.cy)}function Ne(t,n,r=this.bbox()){return this.cx(t,r).cy(n,r)}function Pe(t){return this.attr("x",t)}function Re(t){return this.attr("y",t)}function Ge(t,n){return this.ax(t).ay(n)}function Ye(t){this._build=!!t;return this}var Xe=class extends oi{constructor(t,n=t){super(sn("text",t),n);this.dom.leading=this.dom.leading??new Gr(1.3);this._rebuild=true;this._build=false}leading(t){if(t==null)return this.dom.leading;this.dom.leading=new Gr(t);return this.rebuild()}rebuild(t){if(typeof t==="boolean")this._rebuild=t;if(this._rebuild){const t=this;let n=0;const r=this.dom.leading;this.each((function(i){if(Gt(this.node))return;const e=Ut.window.getComputedStyle(this.node).getPropertyValue("font-size");const s=r*new Gr(e);if(this.dom.newLined){this.attr("x",t.attr("x"));if(this.text()==="\n")n+=s;else{this.attr("dy",i?s+n:0);n=0}}}));this.fire("rebuild")}return this}setData(t){this.dom=t;this.dom.leading=new Gr(t.leading||1.3);return this}writeDataToDom(){return super.writeDataToDom({leading:1.3})}text(t){if(t===void 0){const n=this.node.childNodes;let r=0;t="";for(let i=0,e=n.length;i<e;++i){if(n[i].nodeName==="textPath"||Gt(n[i])){if(i===0)r=i+1;continue}if(i!==r&&n[i].nodeType!==3&&on(n[i]).dom.newLined===true)t+="\n";t+=n[i].textContent}return t}this.clear().build(true);if(typeof t==="function")t.call(this,this);else{t=(t+"").split("\n");for(let n=0,r=t.length;n<r;n++)this.newLine(t[n])}return this.build(false).rebuild()}};vn(Xe,He);p({Container:{text:dn((function(t=""){return this.put(new Xe).text(t)})),plain:dn((function(t=""){return this.put(new Xe).plain(t)}))}});un(Xe,"Text");var Qe=class extends oi{constructor(t,n=t){super(sn("tspan",t),n);this._build=false}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=true;const t=this.parent();if(!(t instanceof Xe))return this;const n=t.index(this);const r=Ut.window.getComputedStyle(this.node).getPropertyValue("font-size");const i=t.dom.leading*new Gr(r);return this.dy(n?i:0).attr("x",t.x())}text(t){if(t==null)return this.node.textContent+(this.dom.newLined?"\n":"");if(typeof t==="function"){this.clear().build(true);t.call(this,this);this.build(false)}else this.plain(t);return this}};vn(Qe,He);p({Tspan:{tspan:dn((function(t=""){const n=new Qe;if(!this._build)this.clear();return this.put(n).text(t)}))},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}});un(Qe,"Tspan");var Je=class extends oi{constructor(t,n=t){super(sn("circle",t),n)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new Gr(t).divide(2))}};vn(Je,{x:ai,y:li,cx:fi,cy:vi,width:di,height:Ci});p({Container:{circle:dn((function(t=0){return this.put(new Je).size(t).move(0,0)}))}});un(Je,"Circle");var qe=class extends ei{constructor(t,n=t){super(sn("clipPath",t),n)}remove(){this.targets().forEach((function(t){t.unclip()}));return super.remove()}targets(){return _r(this.node,"clip-path")}};p({Container:{clip:dn((function(){return this.defs().put(new qe)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const n=t instanceof qe?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+n.id()+")")},unclip(){return this.attr("clip-path",null)}}});un(qe,"ClipPath");var Ue=class extends Ur{constructor(t,n=t){super(sn("foreignObject",t),n)}};p({Container:{foreignObject:dn((function(t,n){return this.put(new Ue).size(t,n)}))}});un(Ue,"ForeignObject");var We=f({dmove:()=>Ke,dx:()=>ts,dy:()=>ns,height:()=>rs,move:()=>is,size:()=>es,width:()=>ss,x:()=>os,y:()=>hs});function Ke(t,n){this.children().forEach((r=>{let i;try{i=r.node instanceof Wt().SVGSVGElement?new wr(r.attr(["x","y","width","height"])):r.bbox()}catch(t){return}const e=new ar(r);const s=e.translate(t,n).transform(e.inverse());const o=new hr(i.x,i.y).transform(s);r.dmove(o.x-i.x,o.y-i.y)}));return this}function ts(t){return this.dmove(t,0)}function ns(t){return this.dmove(0,t)}function rs(t,n=this.bbox()){if(t==null)return n.height;return this.size(n.width,t,n)}function is(t=0,n=0,r=this.bbox()){const i=t-r.x;const e=n-r.y;return this.dmove(i,e)}function es(t,n,r=this.bbox()){const i=Nt(this,t,n,r);const e=i.width/r.width;const s=i.height/r.height;this.children().forEach((t=>{const n=new hr(r).transform(new ar(t).inverse());t.scale(e,s,n.x,n.y)}));return this}function ss(t,n=this.bbox()){if(t==null)return n.width;return this.size(t,n.height,n)}function os(t,n=this.bbox()){if(t==null)return n.x;return this.move(t,n.y,n)}function hs(t,n=this.bbox()){if(t==null)return n.y;return this.move(n.x,t,n)}var us=class extends ei{constructor(t,n=t){super(sn("g",t),n)}};vn(us,We);p({Container:{group:dn((function(){return this.put(new us)}))}});un(us,"G");var cs=class extends ei{constructor(t,n=t){super(sn("a",t),n)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,qt)}};vn(cs,We);p({Container:{link:dn((function(t){return this.put(new cs).to(t)}))},Element:{unlink(){const t=this.linker();if(!t)return this;const n=t.parent();if(!n)return this.remove();const r=n.index(t);n.add(this,r);t.remove();return this},linkTo(t){let n=this.linker();if(!n){n=new cs;this.wrap(n)}if(typeof t==="function")t.call(n,n);else n.to(t);return this},linker(){const t=this.parent();if(t&&t.node.nodeName.toLowerCase()==="a")return t;return null}}});un(cs,"A");var as=class extends ei{constructor(t,n=t){super(sn("mask",t),n)}remove(){this.targets().forEach((function(t){t.unmask()}));return super.remove()}targets(){return _r(this.node,"mask")}};p({Container:{mask:dn((function(){return this.defs().put(new as)}))},Element:{masker(){return this.reference("mask")},maskWith(t){const n=t instanceof as?t:this.parent().mask().add(t);return this.attr("mask","url(#"+n.id()+")")},unmask(){return this.attr("mask",null)}}});un(as,"Mask");var ls=class extends Ur{constructor(t,n=t){super(sn("stop",t),n)}update(t){if(typeof t==="number"||t instanceof Gr)t={offset:arguments[0],color:arguments[1],opacity:arguments[2]};if(t.opacity!=null)this.attr("stop-opacity",t.opacity);if(t.color!=null)this.attr("stop-color",t.color);if(t.offset!=null)this.attr("offset",new Gr(t.offset));return this}};p({Gradient:{stop:function(t,n,r){return this.put(new ls).update(t,n,r)}}});un(ls,"Stop");function fs(t,n){if(!t)return"";if(!n)return t;let r=t+"{";for(const t in n)r+=Zt(t)+":"+n[t]+";";r+="}";return r}var vs=class extends Ur{constructor(t,n=t){super(sn("style",t),n)}addText(t=""){this.node.textContent+=t;return this}font(t,n,r={}){return this.rule("@font-face",{fontFamily:t,src:n,...r})}rule(t,n){return this.addText(fs(t,n))}};p("Dom",{style(t,n){return this.put(new vs).rule(t,n)},fontface(t,n,r){return this.put(new vs).font(t,n,r)}});un(vs,"Style");var ds=class extends Xe{constructor(t,n=t){super(sn("textPath",t),n)}array(){const t=this.track();return t?t.array():null}plot(t){const n=this.track();let r=null;if(n)r=n.plot(t);return t==null?r:this}track(){return this.reference("href")}};p({Container:{textPath:dn((function(t,n){if(!(t instanceof Xe))t=this.text(t);return t.path(n)}))},Text:{path:dn((function(t,n=true){const r=new ds;if(!(t instanceof ae))t=this.defs().path(t);r.attr("href","#"+t,qt);let i;if(n)while(i=this.node.firstChild)r.node.appendChild(i);return this.put(r)})),textPath(){return this.findOne("textPath")}},Path:{text:dn((function(t){if(!(t instanceof Xe))t=(new Xe).addTo(this.parent()).text(t);return t.path(this)})),targets(){return _r(this.node,"href","textPath")}}});ds.prototype.MorphArray=te;un(ds,"TextPath");var Cs=class extends oi{constructor(t,n=t){super(sn("use",t),n)}use(t,n){return this.attr("href",(n||"")+"#"+t,qt)}};p({Container:{use:dn((function(t,n){return this.put(new Cs).use(t,n)}))}});un(Cs,"Use");const ws=en;vn([Te,Ve,Mi,xi,Ti],y("viewbox"));vn([Ei,ye,pe,ae],y("marker"));vn(Xe,y("Text"));vn(ae,y("Path"));vn(si,y("Defs"));vn([Xe,Qe],y("Tspan"));vn([ge,wi,bi,je],y("radius"));vn(Zr,y("EventTarget"));vn(qr,y("Dom"));vn(Ur,y("Element"));vn(oi,y("Shape"));vn([ei,pi],y("Container"));vn(bi,y("Gradient"));vn(je,y("Runner"));br.extend(g());ue([Gr,or,wr,ar,Rr,ki,te,hr]);ce();function ps(){let t={entities:[]};let n;let r=[];function i(t,r,i){n=ws().addTo(t).size(r,i);n.entities=[];n.lines=n.group();n.labels=n.group()}function e(t,n){const r=t.group().attr({id:n.id});t.entities.push(r);n.background_color=n.background_color?n.background_color:"#f06";n.color=n.color?n.color:"#ffffff";n.radius=n.radius?n.radius:0;r.entity=r.rect(n.width,n.height).cx(n.width/2).cy(n.height/2).attr({fill:"#ffffff",stroke:n.color,["stroke-width"]:2}).radius(n.radius);if(n.class){r.entity.attr("class",n.class)}r.plain(n.text).cx(14).cy(n.height/2+6).attr({fill:n.color});r.move(n.x,n.y)}function s(){if(t.labels&&t.labels.length>0){t.labels.forEach((t=>{n.labels.text(t.value).x(t.x).y(t.y)}))}}function o(t,n){n.forEach((n=>h(t,n)))}function h(t,n){let r="";const i=n.color||"#4c56cb";const e=t.findOne("#"+n.from.element);const s=t.findOne("#"+n.to.element);const o=u(n,e,s);r+=a(e,n.from.point)+","+l(e,n.from.point)+" ";o.forEach((t=>r+=t.x+","+t.y+" "));if(n.to.point==="top"){r+=a(s,n.to.point)+","+l(s,n.to.point)+" "}else if(n.to.point==="bottom"){r+=a(s,n.to.point)+","+l(s,n.to.point)+" "}else{r+=a(s,n.to.point)+","+l(s,n.to.point)+" "}if(!n.polyline){n.polyline=t.lines.polyline(r).fill("none").stroke({color:i,width:2,linecap:"round",linejoin:"round"}).attr("id",n.id)}else{n.polyline.plot(r)}}function u(t,n,r){const i=[];const e=l(n,t.from.point);const s=l(r,t.to.point);const o=a(n,t.from.point);const h=a(r,t.to.point);const u=c(t.from.point);const f=c(t.to.point);const v=u-f;if(v===0){if(t.from.point==="top"){if(e<=s){i.push({x:o,y:e-20});i.push({x:h,y:e-20})}else{i.push({x:o,y:s-20});i.push({x:h,y:s-20})}}else if(t.from.point==="bottom"){if(e<=s){i.push({x:o,y:s+20});i.push({x:h,y:s+20})}else{i.push({x:o,y:e+20});i.push({x:h,y:e+20})}}else{if(o<=h){i.push({x:h+20,y:e});i.push({x:h+20,y:s})}else{i.push({x:o+20,y:e});i.push({x:o+20,y:s})}}}if(v===2||v===-2){if(o!==h){i.push({x:o,y:s+(e-s)/2});i.push({x:h,y:s+(e-s)/2})}}if(v===1||v===-1||v===3||v===-3){if(t.from.point==="top"){if(e<s+20){i.push({x:o,y:e-20});i.push({x:h+20,y:e-20});i.push({x:h+20,y:s})}else{i.push({x:o,y:s})}}if(t.from.point==="bottom"){if(e>s-20){i.push({x:o,y:e+20});i.push({x:h+20,y:e+20});i.push({x:h+20,y:s})}else{i.push({x:o,y:s})}}}return i}function c(t){switch(t){case"top":return 0;case"bottom":return 2;default:return 3}}function a(t,n){const r=t.entity.attr("width");const i=t.entity.attr("x");switch(n){case"top":case"bottom":return i+r/2;default:return i-r/2}}function l(t,n){const r=t.entity.attr("height");const i=t.entity.attr("y");switch(n){case"top":return i;case"bottom":return i+r;default:return i}}function f(){n.entities.forEach((t=>t.remove()));n.entities=[];r=[];if(!t.labels){t.labels=[]}t.labels=t.labels.map((t=>({id:t.id,value:t.value?t.value:"",x:t.x?t.x:0,y:t.y?t.y:0,color:t.color?t.color:"black"})));t.entities.map((t=>{t.type=t.type?t.type:"entity";if(t.type==="operation"){t.height=t.width}}));s();t.entities.forEach((t=>e(n,t)));r=t.lines;o(n,r)}function v(n){t=n;f()}return{initalize:i,update:v}}const ys=()=>`verdocs-status-indicator{display:-ms-flexbox;display:flex;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;font-family:"Inter", "Barlow", sans-serif}verdocs-status-indicator.has-document:hover{cursor:pointer;background:rgba(0, 0, 0, 0.1)}verdocs-status-indicator .icon{width:25px;height:25px;margin:0 10px 0 0}verdocs-status-indicator.dark{color:#ffffff}verdocs-status-indicator.small{font-size:16px}verdocs-status-indicator.small .icon{width:20px;height:20px;margin:0 8px 0 0}verdocs-status-indicator .content{white-space:nowrap}verdocs-status-indicator .detail-panel{display:none;background:#ffffff;border:1px solid #1e2031;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;border-radius:10px;font-weight:500}verdocs-status-indicator .detail-panel h1{font-size:44px;color:#092c4c}verdocs-status-indicator .detail-panel[data-show]{display:-ms-flexbox;display:flex}`;const gs=`<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M11.728 15.968C11.7067 15.9893 11.7013 16.0107 11.712 16.032C11.7227 16.0533 11.744 16.064 11.776 16.064H16.112C16.1653 16.064 16.208 16.0853 16.24 16.128C16.2827 16.16 16.304 16.2027 16.304 16.256V17.808C16.304 17.8613 16.2827 17.9093 16.24 17.952C16.208 17.984 16.1653 18 16.112 18H8.912C8.85867 18 8.81067 17.984 8.768 17.952C8.736 17.9093 8.72 17.8613 8.72 17.808V16.336C8.72 16.24 8.752 16.16 8.816 16.096C9.33867 15.584 9.872 15.0293 10.416 14.432C10.96 13.824 11.3013 13.4453 11.44 13.296C11.7387 12.944 12.0427 12.608 12.352 12.288C13.3227 11.2107 13.808 10.4107 13.808 9.888C13.808 9.51467 13.6747 9.21067 13.408 8.976C13.1413 8.73067 12.7947 8.608 12.368 8.608C11.9413 8.608 11.5947 8.73067 11.328 8.976C11.0613 9.21067 10.928 9.52533 10.928 9.92V10.32C10.928 10.3733 10.9067 10.4213 10.864 10.464C10.832 10.496 10.7893 10.512 10.736 10.512H8.848C8.79467 10.512 8.74667 10.496 8.704 10.464C8.672 10.4213 8.656 10.3733 8.656 10.32V9.568C8.688 8.992 8.86933 8.48533 9.2 8.048C9.53067 7.6 9.968 7.25867 10.512 7.024C11.0667 6.78933 11.6853 6.672 12.368 6.672C13.1253 6.672 13.7813 6.816 14.336 7.104C14.9013 7.38133 15.3333 7.76 15.632 8.24C15.9413 8.72 16.096 9.25333 16.096 9.84C16.096 10.288 15.984 10.7467 15.76 11.216C15.536 11.6853 15.2 12.192 14.752 12.736C14.4213 13.152 14.064 13.5627 13.68 13.968C13.296 14.3733 12.7253 14.96 11.968 15.728L11.728 15.968Z" fill="white"/></svg>`;const ms=`<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M11.728 15.968C11.7067 15.9893 11.7013 16.0107 11.712 16.032C11.7227 16.0533 11.744 16.064 11.776 16.064H16.112C16.1653 16.064 16.208 16.0853 16.24 16.128C16.2827 16.16 16.304 16.2027 16.304 16.256V17.808C16.304 17.8613 16.2827 17.9093 16.24 17.952C16.208 17.984 16.1653 18 16.112 18H8.912C8.85867 18 8.81067 17.984 8.768 17.952C8.736 17.9093 8.72 17.8613 8.72 17.808V16.336C8.72 16.24 8.752 16.16 8.816 16.096C9.33867 15.584 9.872 15.0293 10.416 14.432C10.96 13.824 11.3013 13.4453 11.44 13.296C11.7387 12.944 12.0427 12.608 12.352 12.288C13.3227 11.2107 13.808 10.4107 13.808 9.888C13.808 9.51467 13.6747 9.21067 13.408 8.976C13.1413 8.73067 12.7947 8.608 12.368 8.608C11.9413 8.608 11.5947 8.73067 11.328 8.976C11.0613 9.21067 10.928 9.52533 10.928 9.92V10.32C10.928 10.3733 10.9067 10.4213 10.864 10.464C10.832 10.496 10.7893 10.512 10.736 10.512H8.848C8.79467 10.512 8.74667 10.496 8.704 10.464C8.672 10.4213 8.656 10.3733 8.656 10.32V9.568C8.688 8.992 8.86933 8.48533 9.2 8.048C9.53067 7.6 9.968 7.25867 10.512 7.024C11.0667 6.78933 11.6853 6.672 12.368 6.672C13.1253 6.672 13.7813 6.816 14.336 7.104C14.9013 7.38133 15.3333 7.76 15.632 8.24C15.9413 8.72 16.096 9.25333 16.096 9.84C16.096 10.288 15.984 10.7467 15.76 11.216C15.536 11.6853 15.2 12.192 14.752 12.736C14.4213 13.152 14.064 13.5627 13.68 13.968C13.296 14.3733 12.7253 14.96 11.968 15.728L11.728 15.968Z" fill="#654DCB"/></svg>`;const bs=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24V24ZM9 7.5C8.60218 7.5 8.22064 7.65804 7.93934 7.93934C7.65804 8.22064 7.5 8.60218 7.5 9V15C7.5 15.3978 7.65804 15.7794 7.93934 16.0607C8.22064 16.342 8.60218 16.5 9 16.5H15C15.3978 16.5 15.7794 16.342 16.0607 16.0607C16.342 15.7794 16.5 15.3978 16.5 15V9C16.5 8.60218 16.342 8.22064 16.0607 7.93934C15.7794 7.65804 15.3978 7.5 15 7.5H9Z" fill="#9095B3"/></svg>`;const xs=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24V24ZM9 7.5C8.60218 7.5 8.22064 7.65804 7.93934 7.93934C7.65804 8.22064 7.5 8.60218 7.5 9V15C7.5 15.3978 7.65804 15.7794 7.93934 16.0607C8.22064 16.342 8.60218 16.5 9 16.5H15C15.3978 16.5 15.7794 16.342 16.0607 16.0607C16.342 15.7794 16.5 15.3978 16.5 15V9C16.5 8.60218 16.342 8.22064 16.0607 7.93934C15.7794 7.65804 15.3978 7.5 15 7.5H9Z" fill="#9095B3"/></svg>`;const Ms=`<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#63C58E"/></svg>`;const ks=`<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#50BE80"/></svg>`;const js=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12V12ZM13.5 18C13.5 18.3978 13.342 18.7794 13.0607 19.0607C12.7794 19.342 12.3978 19.5 12 19.5C11.6022 19.5 11.2206 19.342 10.9393 19.0607C10.658 18.7794 10.5 18.3978 10.5 18C10.5 17.6022 10.658 17.2206 10.9393 16.9393C11.2206 16.658 11.6022 16.5 12 16.5C12.3978 16.5 12.7794 16.658 13.0607 16.9393C13.342 17.2206 13.5 17.6022 13.5 18V18ZM12 4.5C11.6022 4.5 11.2206 4.65804 10.9393 4.93934C10.658 5.22064 10.5 5.60218 10.5 6V12C10.5 12.3978 10.658 12.7794 10.9393 13.0607C11.2206 13.342 11.6022 13.5 12 13.5C12.3978 13.5 12.7794 13.342 13.0607 13.0607C13.342 12.7794 13.5 12.3978 13.5 12V6C13.5 5.60218 13.342 5.22064 13.0607 4.93934C12.7794 4.65804 12.3978 4.5 12 4.5Z" fill="#F95353"/></svg>`;const _s=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12V12ZM13.5 18C13.5 18.3978 13.342 18.7794 13.0607 19.0607C12.7794 19.342 12.3978 19.5 12 19.5C11.6022 19.5 11.2206 19.342 10.9393 19.0607C10.658 18.7794 10.5 18.3978 10.5 18C10.5 17.6022 10.658 17.2206 10.9393 16.9393C11.2206 16.658 11.6022 16.5 12 16.5C12.3978 16.5 12.7794 16.658 13.0607 16.9393C13.342 17.2206 13.5 17.6022 13.5 18V18ZM12 4.5C11.6022 4.5 11.2206 4.65804 10.9393 4.93934C10.658 5.22064 10.5 5.60218 10.5 6V12C10.5 12.3978 10.658 12.7794 10.9393 13.0607C11.2206 13.342 11.6022 13.5 12 13.5C12.3978 13.5 12.7794 13.342 13.0607 13.0607C13.342 12.7794 13.5 12.3978 13.5 12V6C13.5 5.60218 13.342 5.22064 13.0607 4.93934C12.7794 4.65804 12.3978 4.5 12 4.5Z" fill="#FF0000"/></svg>`;const Os=`<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.7917 9.625L18.6667 13.5M18.6667 13.5L14.7917 17.375M18.6667 13.5H8.33333M25.125 13.5C25.125 15.0266 24.8243 16.5383 24.2401 17.9487C23.6559 19.3591 22.7996 20.6406 21.7201 21.7201C20.6406 22.7996 19.3591 23.6559 17.9487 24.2401C16.5383 24.8243 15.0266 25.125 13.5 25.125C11.9734 25.125 10.4617 24.8243 9.0513 24.2401C7.64089 23.6559 6.35936 22.7996 5.27988 21.7201C4.2004 20.6406 3.34411 19.3591 2.7599 17.9487C2.17569 16.5383 1.875 15.0266 1.875 13.5C1.875 10.4169 3.09977 7.45999 5.27988 5.27988C7.45999 3.09977 10.4169 1.875 13.5 1.875C16.5831 1.875 19.54 3.09977 21.7201 5.27988C23.9002 7.45999 25.125 10.4169 25.125 13.5Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const Ss=`<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.7917 9.625L18.6667 13.5M18.6667 13.5L14.7917 17.375M18.6667 13.5H8.33333M25.125 13.5C25.125 15.0266 24.8243 16.5383 24.2401 17.9487C23.6559 19.3591 22.7996 20.6406 21.7201 21.7201C20.6406 22.7996 19.3591 23.6559 17.9487 24.2401C16.5383 24.8243 15.0266 25.125 13.5 25.125C11.9734 25.125 10.4617 24.8243 9.0513 24.2401C7.64089 23.6559 6.35936 22.7996 5.27988 21.7201C4.2004 20.6406 3.34411 19.3591 2.7599 17.9487C2.17569 16.5383 1.875 15.0266 1.875 13.5C1.875 10.4169 3.09977 7.45999 5.27988 5.27988C7.45999 3.09977 10.4169 1.875 13.5 1.875C16.5831 1.875 19.54 3.09977 21.7201 5.27988C23.9002 7.45999 25.125 10.4169 25.125 13.5Z" stroke="#654DCB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const As=`<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M11.4 6.848C11.4533 6.816 11.5333 6.8 11.64 6.8H13.576C13.6293 6.8 13.672 6.82133 13.704 6.864C13.7467 6.896 13.768 6.93867 13.768 6.992V17.808C13.768 17.8613 13.7467 17.9093 13.704 17.952C13.672 17.984 13.6293 18 13.576 18H11.704C11.6507 18 11.6027 17.984 11.56 17.952C11.528 17.9093 11.512 17.8613 11.512 17.808V9.04C11.512 9.01867 11.5013 8.99733 11.48 8.976C11.4587 8.95467 11.4373 8.94933 11.416 8.96L9.832 9.392L9.768 9.408C9.672 9.408 9.624 9.34933 9.624 9.232L9.576 7.856C9.576 7.74933 9.624 7.67467 9.72 7.632L11.4 6.848Z" fill="white"/></svg>`;const Ls=`<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M11.4 6.848C11.4533 6.816 11.5333 6.8 11.64 6.8H13.576C13.6293 6.8 13.672 6.82133 13.704 6.864C13.7467 6.896 13.768 6.93867 13.768 6.992V17.808C13.768 17.8613 13.7467 17.9093 13.704 17.952C13.672 17.984 13.6293 18 13.576 18H11.704C11.6507 18 11.6027 17.984 11.56 17.952C11.528 17.9093 11.512 17.8613 11.512 17.808V9.04C11.512 9.01867 11.5013 8.99733 11.48 8.976C11.4587 8.95467 11.4373 8.94933 11.416 8.96L9.832 9.392L9.768 9.408C9.672 9.408 9.624 9.34933 9.624 9.232L9.576 7.856C9.576 7.74933 9.624 7.67467 9.72 7.632L11.4 6.848Z" fill="#654DCB"/></svg>`;const Es=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.33333 12H7.345M12 12H12.0117M16.6667 12H16.6783M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.70791 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 9.21523 2.60625 6.54451 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12Z" stroke="#cccccc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const Ts=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.33333 12H7.345M12 12H12.0117M16.6667 12H16.6783M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.70791 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 9.21523 2.60625 6.54451 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12Z" stroke="#999999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const Vs=`<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M15.632 12.656C15.8453 13.1467 15.952 13.712 15.952 14.352C15.952 14.928 15.856 15.4613 15.664 15.952C15.408 16.6347 14.976 17.168 14.368 17.552C13.7707 17.936 13.0613 18.128 12.24 18.128C11.4293 18.128 10.7147 17.9253 10.096 17.52C9.488 17.1147 9.05067 16.5653 8.784 15.872C8.63467 15.456 8.54933 15.008 8.528 14.528C8.528 14.4 8.592 14.336 8.72 14.336H10.608C10.736 14.336 10.8 14.4 10.8 14.528C10.8427 14.88 10.9013 15.1413 10.976 15.312C11.072 15.5893 11.2267 15.808 11.44 15.968C11.664 16.1173 11.9253 16.192 12.224 16.192C12.8213 16.192 13.232 15.9307 13.456 15.408C13.6053 15.088 13.68 14.7147 13.68 14.288C13.68 13.7867 13.6 13.376 13.44 13.056C13.1947 12.5547 12.784 12.304 12.208 12.304C12.0907 12.304 11.968 12.3413 11.84 12.416C11.712 12.48 11.5573 12.576 11.376 12.704C11.3333 12.736 11.2907 12.752 11.248 12.752C11.184 12.752 11.136 12.72 11.104 12.656L10.16 11.328C10.1387 11.296 10.128 11.2587 10.128 11.216C10.128 11.152 10.1493 11.0987 10.192 11.056L12.736 8.832C12.7573 8.81067 12.7627 8.78933 12.752 8.768C12.752 8.74667 12.736 8.736 12.704 8.736H8.944C8.89067 8.736 8.84267 8.72 8.8 8.688C8.768 8.64533 8.752 8.59733 8.752 8.544V6.992C8.752 6.93867 8.768 6.896 8.8 6.864C8.84267 6.82133 8.89067 6.8 8.944 6.8H15.616C15.6693 6.8 15.712 6.82133 15.744 6.864C15.7867 6.896 15.808 6.93867 15.808 6.992V8.752C15.808 8.83733 15.7707 8.91733 15.696 8.992L13.6 10.912C13.5787 10.9333 13.568 10.9547 13.568 10.976C13.5787 10.9973 13.6053 11.008 13.648 11.008C14.576 11.1893 15.2373 11.7387 15.632 12.656Z" fill="white"/></svg>`;const Hs=`<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M15.632 12.656C15.8453 13.1467 15.952 13.712 15.952 14.352C15.952 14.928 15.856 15.4613 15.664 15.952C15.408 16.6347 14.976 17.168 14.368 17.552C13.7707 17.936 13.0613 18.128 12.24 18.128C11.4293 18.128 10.7147 17.9253 10.096 17.52C9.488 17.1147 9.05067 16.5653 8.784 15.872C8.63467 15.456 8.54933 15.008 8.528 14.528C8.528 14.4 8.592 14.336 8.72 14.336H10.608C10.736 14.336 10.8 14.4 10.8 14.528C10.8427 14.88 10.9013 15.1413 10.976 15.312C11.072 15.5893 11.2267 15.808 11.44 15.968C11.664 16.1173 11.9253 16.192 12.224 16.192C12.8213 16.192 13.232 15.9307 13.456 15.408C13.6053 15.088 13.68 14.7147 13.68 14.288C13.68 13.7867 13.6 13.376 13.44 13.056C13.1947 12.5547 12.784 12.304 12.208 12.304C12.0907 12.304 11.968 12.3413 11.84 12.416C11.712 12.48 11.5573 12.576 11.376 12.704C11.3333 12.736 11.2907 12.752 11.248 12.752C11.184 12.752 11.136 12.72 11.104 12.656L10.16 11.328C10.1387 11.296 10.128 11.2587 10.128 11.216C10.128 11.152 10.1493 11.0987 10.192 11.056L12.736 8.832C12.7573 8.81067 12.7627 8.78933 12.752 8.768C12.752 8.74667 12.736 8.736 12.704 8.736H8.944C8.89067 8.736 8.84267 8.72 8.8 8.688C8.768 8.64533 8.752 8.59733 8.752 8.544V6.992C8.752 6.93867 8.768 6.896 8.8 6.864C8.84267 6.82133 8.89067 6.8 8.944 6.8H15.616C15.6693 6.8 15.712 6.82133 15.744 6.864C15.7867 6.896 15.808 6.93867 15.808 6.992V8.752C15.808 8.83733 15.7707 8.91733 15.696 8.992L13.6 10.912C13.5787 10.9333 13.568 10.9547 13.568 10.976C13.5787 10.9973 13.6053 11.008 13.648 11.008C14.576 11.1893 15.2373 11.7387 15.632 12.656Z" fill="#654DCB"/></svg>`;const Bs=`<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.62395 13.5009L12.2073 16.0842L17.374 10.9176M8.11916 4.06786C9.04568 3.99392 9.92527 3.6296 10.6327 3.02678C11.4322 2.34513 12.4484 1.9707 13.499 1.9707C14.5495 1.9707 15.5657 2.34513 16.3652 3.02678C17.0726 3.6296 17.9522 3.99392 18.8787 4.06786C19.926 4.15118 20.9092 4.60497 21.6521 5.34781C22.3949 6.09064 22.8487 7.07389 22.932 8.12111C23.0059 9.04764 23.3703 9.92723 23.9731 10.6347C24.6547 11.4341 25.0292 12.4503 25.0292 13.5009C25.0292 14.5515 24.6547 15.5677 23.9731 16.3671C23.3703 17.0746 23.0059 17.9542 22.932 18.8807C22.8487 19.9279 22.3949 20.9112 21.6521 21.654C20.9092 22.3968 19.926 22.8506 18.8787 22.9339C17.9522 23.0079 17.0726 23.3722 16.3652 23.975C15.5657 24.6567 14.5495 25.0311 13.499 25.0311C12.4484 25.0311 11.4322 24.6567 10.6327 23.975C9.92527 23.3722 9.04568 23.0079 8.11916 22.9339C7.07194 22.8506 6.08869 22.3968 5.34585 21.654C4.60302 20.9112 4.14923 19.9279 4.06591 18.8807C3.99196 17.9542 3.62765 17.0746 3.02483 16.3671C2.34318 15.5677 1.96875 14.5515 1.96875 13.5009C1.96875 12.4503 2.34318 11.4341 3.02483 10.6347C3.62765 9.92723 3.99196 9.04764 4.06591 8.12111C4.14923 7.07389 4.60302 6.09064 5.34585 5.34781C6.08869 4.60497 7.07194 4.15118 8.11916 4.06786V4.06786Z" stroke="#63C58E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const zs=`<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.62395 13.5009L12.2073 16.0842L17.374 10.9176M8.11916 4.06786C9.04568 3.99392 9.92527 3.6296 10.6327 3.02678C11.4322 2.34513 12.4484 1.9707 13.499 1.9707C14.5495 1.9707 15.5657 2.34513 16.3652 3.02678C17.0726 3.6296 17.9522 3.99392 18.8787 4.06786C19.926 4.15118 20.9092 4.60497 21.6521 5.34781C22.3949 6.09064 22.8487 7.07389 22.932 8.12111C23.0059 9.04764 23.3703 9.92723 23.9731 10.6347C24.6547 11.4341 25.0292 12.4503 25.0292 13.5009C25.0292 14.5515 24.6547 15.5677 23.9731 16.3671C23.3703 17.0746 23.0059 17.9542 22.932 18.8807C22.8487 19.9279 22.3949 20.9112 21.6521 21.654C20.9092 22.3968 19.926 22.8506 18.8787 22.9339C17.9522 23.0079 17.0726 23.3722 16.3652 23.975C15.5657 24.6567 14.5495 25.0311 13.499 25.0311C12.4484 25.0311 11.4322 24.6567 10.6327 23.975C9.92527 23.3722 9.04568 23.0079 8.11916 22.9339C7.07194 22.8506 6.08869 22.3968 5.34585 21.654C4.60302 20.9112 4.14923 19.9279 4.06591 18.8807C3.99196 17.9542 3.62765 17.0746 3.02483 16.3671C2.34318 15.5677 1.96875 14.5515 1.96875 13.5009C1.96875 12.4503 2.34318 11.4341 3.02483 10.6347C3.62765 9.92723 3.99196 9.04764 4.06591 8.12111C4.14923 7.07389 4.60302 6.09064 5.34585 5.34781C6.08869 4.60497 7.07194 4.15118 8.11916 4.06786V4.06786Z" stroke="#654DCB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const Ds=`<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#63C58E"/></svg>`;const Fs=`<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#50BE80"/></svg>`;const Is=140;const Zs=40;const $s=40;const Ns=class{constructor(n){t(this,n);this.size="normal";this.theme="light";this.containerId=`verdocs-status-indicator-${Math.random().toString(36).substring(2,11)}`;this.recipientStatusIcons=[]}componentDidLoad(){var t;this.popper=e(this.summaryComponent,this.detailPanel,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,10]}}]});if((t=this.envelope)===null||t===void 0?void 0:t.recipients){const t=[];this.envelope.recipients.forEach((n=>{const r=n.sequence-1;t[r]||(t[r]=[]);const i=`r-${r}-${t[r].length}`;t[r].push({...n,id:i})}));const n=Object.keys(t).length;const r=n*Zs+(n+1)*$s;let e=0;Object.values(t).forEach((t=>{let n=t.length*Is+(t.length+1)*$s;if(n>e){e=n}}));const s=[];const o=[];const h=[];let u=$s;Object.entries(t).forEach((([n,r])=>{const c=r.length*(Is+$s);const a=e-c;const l=$s/2+a/2;r.forEach(((r,e)=>{var c;const a=i(r);const f={id:r.id,text:a,icon:this.getStatusIcon(r.status),x:e*(Is+$s)+l,y:u,width:Is,height:Zs,color:this.getStatusColor(r.status),radius:8};s.push(f);h.push({icon:this.getStatusIcon(r.status),x:e*(Is+$s)+l+(Is-32),y:u+Zs/2-13});(c=t[+n-1])===null||c===void 0?void 0:c.forEach((t=>{const n={id:`line-${t.id}-${f.id}`,from:{element:t.id,point:"bottom"},to:{element:f.id,point:"top"},color:this.getStatusColor(r.status)};o.push(n)}))}));u+=Zs+$s}));this.recipientStatusIcons=h;const c=ps();c.initalize(`#${this.containerId}`,e,r);c.update({entities:s,lines:o})}}showDropdown(){var t,n;this.isOpen=true;this.detailPanel.setAttribute("data-show","");this.detailPanel.removeAttribute("aria-hidden");(t=this.popper)===null||t===void 0?void 0:t.setOptions((t=>({...t,modifiers:[...t.modifiers,{name:"eventListeners",enabled:true}]})));(n=this.popper)===null||n===void 0?void 0:n.update()}handleHideDropdown(t){var n,r;if(((n=t===null||t===void 0?void 0:t.target)===null||n===void 0?void 0:n.localName)==="button"&&((r=t===null||t===void 0?void 0:t.target)===null||r===void 0?void 0:r.className)==="arrow"){return}this.hide()}toggleDropdown(){if(this.isOpen){this.hide()}else{this.showDropdown()}}hide(){var t;this.isOpen=false;this.detailPanel.removeAttribute("data-show");this.detailPanel.setAttribute("aria-hidden","true");(t=this.popper)===null||t===void 0?void 0:t.setOptions((t=>({...t,modifiers:[...t.modifiers,{name:"eventListeners",enabled:false}]})))}getStatusColor(t){switch(t){case"invited":case"opened":case"accepted":case"signed":return"#654dcb";case"some-signed":case"submitted":case"complete":return"#55bc81";case"declined":return"#ff0000";case"canceled":case"in progress":case"pending":default:return"#999999"}}getStatusIcon(t){switch(t){case"accepted":return this.theme==="light"?ms:gs;case"complete":return this.theme==="light"?ks:Ms;case"in progress":return this.theme==="light"?Ss:Os;case"canceled":return this.theme==="light"?xs:bs;case"declined":return this.theme==="light"?_s:js;case"invited":return this.theme==="light"?Ss:Os;case"opened":return this.theme==="light"?Ls:As;case"signed":return this.theme==="light"?Hs:Vs;case"submitted":return this.theme==="light"?Fs:Ds;case"some-signed":return this.theme==="light"?zs:Bs;default:case"pending":return this.theme==="light"?Ts:Es}}getStatusMessage(t){switch(t){case"accepted":return"Accepted";case"complete":return"Completed";case"in progress":return"In Progress";case"canceled":return"Cancelled";case"declined":return"Declined";case"invited":return"Invited";case"opened":return"Opened";case"signed":return"Signed";case"submitted":return"Submitted";case"some-signed":return"Partly Signed";case"pending":return"Pending";default:return t}}render(){var t,i;let e=this.status||((t=this.envelope)===null||t===void 0?void 0:t.status)||"pending";if(!this.status&&((i=this.envelope)===null||i===void 0?void 0:i.recipients)){const t=this.envelope.recipients.filter((t=>t.status==="submitted"));if(t.length>0&&t.length!==this.envelope.recipients.length){e="some-signed"}}const s=this.getStatusIcon(e);const o=this.getStatusMessage(e);return n(r,{key:"9c94c90d8fc3640cd0065d4476e822aef432ae66",ref:t=>this.summaryComponent=t,class:`${this.theme} ${this.size} ${this.envelope?"has-document":""}`,"aria-label":"Click to View Details",onClick:t=>{t.stopPropagation();t.preventDefault();this.envelope&&this.toggleDropdown()},onBlur:t=>this.envelope&&this.handleHideDropdown(t)},n("span",{key:"0ef24ac3375647b88d535cdef0157455c787e6e5",class:"icon",innerHTML:s}),n("span",{key:"1bbcabfd32b9599fe100cd16f9bf0c0389ff6511",class:"content"},o),n("div",{key:"976a3cd5ff440cf24b6e086d86a9afc86827c2b8",class:"detail-panel",ref:t=>this.detailPanel=t},n("div",{key:"35b6337d32ae7420676a056648ea18cc474c1c97",id:`${this.containerId}`}),this.recipientStatusIcons.map((t=>n("span",{innerHTML:t.icon,style:{position:"absolute",top:`${t.y}px`,left:`${t.x}px`}})))))}};Ns.style=ys();export{Ns as verdocs_status_indicator};
2
+ //# sourceMappingURL=p-1a06dffb.entry.js.map