PageSourceSearch

https://www.uniprot.org/modern.5770.1a1005.js

js uniprot.org collected 2026-09-24 08:35:05 UTC 77,294 bytes, 3 lines download raw bytes

1/*! For license information please see modern.5770.1a1005.js.LICENSE.txt */
2"use strict";(self.webpackChunkuniprot_website=self.webpackChunkuniprot_website||[]).push([[5770],{35770(t,e,n){n.d(e,{Ay:()=>or});var i=n(16302);function r(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function o(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)}function s(t,e,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(t,n):r?r.value=n:e.set(t,n),n}"function"==typeof SuppressedError&&SuppressedError;var a={value:()=>{}};function l(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new h(i)}function h(t){this._=t}function u(t,e){for(var n,i=0,r=t.length;i<r;++i)if((n=t[i]).name===e)return n.value}function c(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=a,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}h.prototype=l.prototype={constructor:h,on:function(t,e){var n,i,r=this._,o=(i=r,(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),s=-1,a=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s<a;)if(n=(t=o[s]).type)r[n]=c(r[n],t.name,e);else if(null==e)for(n in r)r[n]=c(r[n],t.name,null);return this}for(;++s<a;)if((n=(t=o[s]).type)&&(n=u(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new h(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,r=new Array(n),o=0;o<n;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(i=this._[t]).length;o<n;++o)i[o].value.apply(e,r)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,o=i.length;r<o;++r)i[r].value.apply(e,n)}};var f="http://www.w3.org/1999/xhtml",p={svg:"http://www.w3.org/2000/svg",xhtml:f,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function d(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),p.hasOwnProperty(e)?{space:p[e],local:t}:t}function g(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===f&&e.documentElement.namespaceURI===f?e.createElement(t):e.createElementNS(n,t)}}function m(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function v(t){var e=d(t);return(e.local?m:g)(e)}function y(){}function _(t){return null==t?y:function(){return this.querySelector(t)}}function $(){return[]}function b(t){return null==t?$:function(){return this.querySelectorAll(t)}}function w(t){return function(){return this.matches(t)}}function A(t){return function(e){return e.matches(t)}}var x=Array.prototype.find;function S(){return this.firstElementChild}var E=Array.prototype.filter;function C(){return Array.from(this.children)}function N(t){return new Array(t.length)}function M(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function P(t,e,n,i,r,o){for(var s,a=0,l=e.length,h=o.length;a<h;++a)(s=e[a])?(s.__data__=o[a],i[a]=s):n[a]=new M(t,o[a]);for(;a<l;++a)(s=e[a])&&(r[a]=s)}function k(t,e,n,i,r,o,s){var a,l,h,u=new Map,c=e.length,f=o.length,p=new Array(c);for(a=0;a<c;++a)(l=e[a])&&(p[a]=h=s.call(l,l.__data__,a,e)+"",u.has(h)?r[a]=l:u.set(h,l));for(a=0;a<f;++a)h=s.call(t,o[a],a,o)+"",(l=u.get(h))?(i[a]=l,l.__data__=o[a],u.delete(h)):n[a]=new M(t,o[a]);for(a=0;a<c;
vendor: 7,165 bytes, line 2
2++a)(l=e[a])&&u.get(p[a])===l&&(r[a]=l)}function L(t){return t.__data__}function O(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function T(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function H(t){return function(){this.removeAttribute(t)}}function F(t){return function(){this.removeAttributeNS(t.space,t.local)}}function R(t,e){return function(){this.setAttribute(t,e)}}function U(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function j(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function I(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function q(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function D(t){return function(){this.style.removeProperty(t)}}function B(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Z(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function z(t,e){return t.style.getPropertyValue(e)||q(t).getComputedStyle(t,null).getPropertyValue(e)}function X(t){return function(){delete this[t]}}function W(t,e){return function(){this[t]=e}}function Y(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function G(t){return t.trim().split(/^|\s+/)}function V(t){return t.classList||new J(t)}function J(t){this._node=t,this._names=G(t.getAttribute("class")||"")}function K(t,e){for(var n=V(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function Q(t,e){for(var n=V(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function tt(t){return function(){K(this,t)}}function et(t){return function(){Q(this,t)}}function nt(t,e){return function(){(e.apply(this,arguments)?K:Q)(this,t)}}function it(){this.textContent=""}function rt(t){return function(){this.textContent=t}}function ot(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function st(){this.innerHTML=""}function at(t){return function(){this.innerHTML=t}}function lt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function ht(){this.nextSibling&&this.parentNode.appendChild(this)}function ut(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ct(){return null}function ft(){var t=this.parentNode;t&&t.removeChild(this)}function pt(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function dt(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function gt(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,o=e.length;i<o;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++r]=n:this.removeEventListener(n.type,n.listener,n.options);++r?e.length=r:delete this.__on}}}function mt(t,e,n){return function(){var i,r=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(r)for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),void(i.value=e);this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function vt(t,e,n){var i=q(t),r=i.CustomEvent;"function"==typeof r?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function yt(t,e){return function(){return vt(this,t,e)}}function _t(t,e){return function(){return vt(this,t,e.apply(this,arguments))}}M.prototype={constructor:M,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},J.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var $t=[null];function bt(t,e){this._groups=t,this._parents=e}function wt(){return new bt([[document.documentElement]],$t)}function At(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function xt(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function St(){}bt.prototype=wt.prototype={constructor:bt,select:function(t){"function"!=typeof t&&(t=_(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,s,a=e[r],l=a.length,h=i[r]=new Array(l),u=0;u<l;++u)(o=a[u])&&(s=t.call(o,o.__data__,u,a))&&("__data__"in o&&(s.__data__=o.__data__),h[u]=s);return new bt(i,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return function(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}(t.apply(this,arguments))}}(t):b(t);for(var e=this._groups,n=e.length,i=[],r=[],o=0;o<n;++o)for(var s,a=e[o],l=a.length,h=0;h<l;++h)(s=a[h])&&(i.push(t.call(s,s.__data__,h,a)),r.push(s));return new bt(i,r)},selectChild:function(t){return this.select(null==t?S:function(t){return function(){return x.call(this.children,t)}}("function"==typeof t?t:A(t)))},selectChildren:function(t){return this.selectAll(null==t?C:function(t){return function(){return E.call(this.children,t)}}("function"==typeof t?t:A(t)))},filter:function(t){"function"!=typeof t&&(t=w(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,s=e[r],a=s.length,l=i[r]=[],h=0;h<a;++h)(o=s[h])&&t.call(o,o.__data__,h,s)&&l.push(o);return new bt(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,L);var n=e?k:P,i=this._parents,r=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var o=r.length,s=new Array(o),a=new Array(o),l=new Array(o),h=0;h<o;++h){var u=i[h],c=r[h],f=c.length,p=O(t.call(u,u&&u.__data__,h,i)),d=p.length,g=a[h]=new Array(d),m=s[h]=new Array(d);n(u,c,g,m,l[h]=new Array(f),p,e);for(var v,y,_=0,$=0;_<d;++_)if(v=g[_]){for(_>=$&&($=_+1);!(y=m[$])&&++$<d;);v._next=y||null}}return(s=new bt(s,i))._enter=a,s._exit=l,s},enter:function(){return new bt(this._enter||this._groups.map(N),this._parents)},exit:function(){return new bt(this._exit||this._groups.map(N),this._parents)},join:function(t,e,n){var i=this.enter(),r=this,o=this.exit();return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(r=e(r))&&(r=r.selection()),null==n?o.remove():n(o),i&&r?i.merge(r).order():r},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,o=i.length,s=Math.min(r,o),a=new Array(r),l=0;l<s;++l)for(var h,u=n[l],c=i[l],f=u.length,p=a[l]=new Array(f),d=0;d<f;++d)(h=u[d]||c[d])&&(p[d]=h);for(;l<r;++l)a[l]=n[l];return new bt(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,r=t[e],o=r.length-1,s=r[o];--o>=0;)(i=r[o])&&
vendor: 6,423 bytes, line 2
2(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=T);for(var n=this._groups,i=n.length,r=new Array(i),o=0;o<i;++o){for(var s,a=n[o],l=a.length,h=r[o]=new Array(l),u=0;u<l;++u)(s=a[u])&&(h[u]=s);h.sort(e)}return new bt(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,o=i.length;r<o;++r){var s=i[r];if(s)return s}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r,o=e[n],s=0,a=o.length;s<a;++s)(r=o[s])&&t.call(r,r.__data__,s,o);return this},attr:function(t,e){var n=d(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?F:H:"function"==typeof e?n.local?I:j:n.local?U:R)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?D:"function"==typeof e?Z:B)(t,e,n??"")):z(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?X:"function"==typeof e?Y:W)(t,e)):this.node()[t]},classed:function(t,e){var n=G(t+"");if(arguments.length<2){for(var i=V(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?nt:e?tt:et)(n,e))},text:function(t){return arguments.length?this.each(null==t?it:("function"==typeof t?ot:rt)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?st:("function"==typeof t?lt:at)(t)):this.node().innerHTML},raise:function(){return this.each(ht)},lower:function(){return this.each(ut)},append:function(t){var e="function"==typeof t?t:v(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:v(t),i=null==e?ct:"function"==typeof e?e:_(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(ft)},clone:function(t){return this.select(t?dt:pt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,r,o=function(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),s=o.length;if(!(arguments.length<2)){for(a=e?mt:gt,i=0;i<s;++i)this.each(a(o[i],e,n));return this}var a=this.node().__on;if(a)for(var l,h=0,u=a.length;h<u;++h)for(i=0,l=a[h];i<s;++i)if((r=o[i]).type===l.type&&r.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?_t:yt)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,r=t[e],o=0,s=r.length;o<s;++o)(i=r[o])&&(yield i)}};var Et=.7,Ct=1/Et,Nt="\\s*([+-]?\\d+)\\s*",Mt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kt=/^#([0-9a-f]{3,8})$/,Lt=new RegExp(`^rgb\\(${Nt},${Nt},${Nt}\\)$`),Ot=new RegExp(`^rgb\\(${Pt},${Pt},${Pt}\\)$`),Tt=new RegExp(`^rgba\\(${Nt},${Nt},${Nt},${Mt}\\)$`),Ht=new RegExp(`^rgba\\(${Pt},${Pt},${Pt},${Mt}\\)$`),Ft=new RegExp(`^hsl\\(${Mt},${Pt},${Pt}\\)$`),Rt=new RegExp(`^hsla\\(${Mt},${Pt},${Pt},${Mt}\\)$`),Ut={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function jt(){return this.rgb().formatHex()}function It(){return this.rgb().formatRgb()}function qt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=kt.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Dt(e):3===n?
vendor: 5,712 bytes, line 2
2new zt(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Bt(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Bt(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Lt.exec(t))?new zt(e[1],e[2],e[3],1):(e=Ot.exec(t))?new zt(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Tt.exec(t))?Bt(e[1],e[2],e[3],e[4]):(e=Ht.exec(t))?Bt(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ft.exec(t))?Jt(e[1],e[2]/100,e[3]/100,1):(e=Rt.exec(t))?Jt(e[1],e[2]/100,e[3]/100,e[4]):Ut.hasOwnProperty(t)?Dt(Ut[t]):"transparent"===t?new zt(NaN,NaN,NaN,0):null}function Dt(t){return new zt(t>>16&255,t>>8&255,255&t,1)}function Bt(t,e,n,i){return i<=0&&(t=e=n=NaN),new zt(t,e,n,i)}function Zt(t,e,n,i){return 1===arguments.length?function(t){return t instanceof St||(t=qt(t)),t?new zt((t=t.rgb()).r,t.g,t.b,t.opacity):new zt}(t):new zt(t,e,n,i??1)}function zt(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function Xt(){return`#${Vt(this.r)}${Vt(this.g)}${Vt(this.b)}`}function Wt(){const t=Yt(this.opacity);return`${1===t?"rgb(":"rgba("}${Gt(this.r)}, ${Gt(this.g)}, ${Gt(this.b)}${1===t?")":`, ${t})`}`}function Yt(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Gt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Vt(t){return((t=Gt(t))<16?"0":"")+t.toString(16)}function Jt(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Qt(t,e,n,i)}function Kt(t){if(t instanceof Qt)return new Qt(t.h,t.s,t.l,t.opacity);if(t instanceof St||(t=qt(t)),!t)return new Qt;if(t instanceof Qt)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),o=Math.max(e,n,i),s=NaN,a=o-r,l=(o+r)/2;return a?(s=e===o?(n-i)/a+6*(n<i):n===o?(i-e)/a+2:(e-n)/a+4,a/=l<.5?o+r:2-o-r,s*=60):a=l>0&&l<1?0:s,new Qt(s,a,l,t.opacity)}function Qt(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function te(t){return(t=(t||0)%360)<0?t+360:t}function ee(t){return Math.max(0,Math.min(1,t||0))}function ne(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}At(St,qt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:jt,formatHex:jt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Kt(this).formatHsl()},formatRgb:It,toString:It}),At(zt,Zt,xt(St,{brighter(t){return t=null==t?Ct:Math.pow(Ct,t),new zt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Et:Math.pow(Et,t),new zt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new zt(Gt(this.r),Gt(this.g),Gt(this.b),Yt(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Xt,formatHex:Xt,formatHex8:function(){return`#${Vt(this.r)}${Vt(this.g)}${Vt(this.b)}${Vt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Wt,toString:Wt})),At(Qt,function(t,e,n,i){return 1===arguments.length?Kt(t):new Qt(t,e,n,i??1)},xt(St,{brighter(t){return t=null==t?Ct:Math.pow(Ct,t),new Qt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Et:Math.pow(Et,t),new Qt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new zt(ne(t>=240?t-240:t+120,r,i),ne(t,r,i),ne(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new Qt(te(this.h),ee(this.s),ee(this.l),Yt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Yt(this.opacity);return`${1===t?"hsl(":"hsla("}${te(this.h)}, ${100*ee(this.s)}%, ${100*ee(this.l)}%${1===t?")":`, ${t})`}`}}));var ie=t=>()=>t;function re(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):ie(isNaN(t)?e:t)}var oe=function t(e){var n=function(t){return 1==(t=+t)?re:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):ie(isNaN(e)?n:e)}}(e);function i(t,e){var i=n((t=Zt(t)).r,(e=Zt(e)).r),r=n(t.g,e.g),o=n(t.b,e.b),s=re(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=o(e),t.opacity=s(e),t+""}}return i.gamma=t,i}(1);function se(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var ae=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,le=new RegExp(ae.source,"g");function he(t,e){var n,i,r,o=ae.lastIndex=le.lastIndex=0,s=-1,a=[],l=[];for(t+="",e+="";(n=ae.exec(t))&&(i=le.exec(e));)(r=i.index)>o&&(r=e.slice(o,r),a[s]?a[s]+=r:a[++s]=r),(n=n[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:se(n,i)})),o=le.lastIndex;return o<e.length&&(r=e.slice(o),a[s]?a[s]+=r:a[++s]=r),a.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,i=0;i<e;++i)a[(n=l[i]).i]=n.x(t);return a.join("")})}var ue,ce=180/Math.PI,fe={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function pe(t,e,n,i,r,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:r,translateY:o,rotate:Math.atan2(e,t)*ce,skewX:Math.atan(l)*ce,scaleX:s,scaleY:a}}function de(t,e,n,i){function r(t){return t.length?t.pop()+" ":""}return function(o,s){var a=[],l=[];return o=t(o),s=t(s),function(t,i,r,o,s,a){if(t!==r||i!==o){var l=s.push("translate(",null,e,null,n);a.push({i:l-4,x:se(t,r)},{i:l-2,x:se(i,o)})}else(r||o)&&s.push("translate("+r+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,a,l),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(r(n)+"rotate(",null,i)-2,x:se(t,e)}
vendor: 11,767 bytes, line 2
2)):e&&n.push(r(n)+"rotate("+e+i)}(o.rotate,s.rotate,a,l),function(t,e,n,o){t!==e?o.push({i:n.push(r(n)+"skewX(",null,i)-2,x:se(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}(o.skewX,s.skewX,a,l),function(t,e,n,i,o,s){if(t!==n||e!==i){var a=o.push(r(o)+"scale(",null,",",null,")");s.push({i:a-4,x:se(t,n)},{i:a-2,x:se(e,i)})}else 1===n&&1===i||o.push(r(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,a,l),o=s=null,function(t){for(var e,n=-1,i=l.length;++n<i;)a[(e=l[n]).i]=e.x(t);return a.join("")}}}var ge,me,ve=de(function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?fe:pe(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),ye=de(function(t){return null==t?fe:(ue||(ue=document.createElementNS("http://www.w3.org/2000/svg","g")),ue.setAttribute("transform",t),(t=ue.transform.baseVal.consolidate())?pe((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):fe)},", ",")",")"),_e=0,$e=0,be=0,we=0,Ae=0,xe=0,Se="object"==typeof performance&&performance.now?performance:Date,Ee="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ce(){return Ae||(Ee(Ne),Ae=Se.now()+xe)}function Ne(){Ae=0}function Me(){this._call=this._time=this._next=null}function Pe(t,e,n){var i=new Me;return i.restart(t,e,n),i}function ke(){Ae=(we=Se.now())+xe,_e=$e=0;try{!function(){Ce(),++_e;for(var t,e=ge;e;)(t=Ae-e._time)>=0&&e._call.call(void 0,t),e=e._next;--_e}()}finally{_e=0,function(){for(var t,e,n=ge,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:ge=e);me=t,Oe(i)}(),Ae=0}}function Le(){var t=Se.now(),e=t-we;e>1e3&&(xe-=e,we=t)}function Oe(t){_e||($e&&($e=clearTimeout($e)),t-Ae>24?(t<1/0&&($e=setTimeout(ke,t-Se.now()-xe)),be&&(be=clearInterval(be))):(be||(we=Se.now(),be=setInterval(Le,1e3)),_e=1,Ee(ke)))}function Te(t,e,n){var i=new Me;return e=null==e?0:+e,i.restart(n=>{i.stop(),t(n+e)},e,n),i}Me.prototype=Pe.prototype={constructor:Me,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Ce():+n)+(null==e?0:+e),this._next||me===this||(me?me._next=this:ge=this,me=this),this._call=t,this._time=n,Oe()},stop:function(){this._call&&(this._call=null,this._time=1/0,Oe())}};var He=l("start","end","cancel","interrupt"),Fe=[];function Re(t,e,n,i,r,o){var s=t.__transition;if(s){if(n in s)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function o(l){var h,u,c,f;if(1!==n.state)return a();for(h in r)if((f=r[h]).name===n.name){if(3===f.state)return Te(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete r[h]):+h<e&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete r[h])}if(Te(function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,i=new Array(c=n.tween.length),h=0,u=-1;h<c;++h)(f=n.tween[h].value.call(t,t.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(a),n.state=5,1),o=-1,s=i.length;++o<s;)i[o].call(t,r);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),a())}function a(){for(var i in n.state=6,n.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=n,n.timer=Pe(function(t){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)},0,n.time)}(t,n,{name:e,index:i,group:r,on:He,tween:Fe,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function Ue(t,e){var n=Ie(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function je(t,e){var n=Ie(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Ie(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function qe(t,e){var n,i;return function(){var r=je(this,t),o=r.tween;if(o!==n)for(var s=0,a=(i=n=o).length;s<a;++s)if(i[s].name===e){(i=i.slice()).splice(s,1);break}r.tween=i}}function De(t,e,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var o=je(this,t),s=o.tween;if(s!==i){r=(i=s).slice();for(var a={name:e,value:n},l=0,h=r.length;l<h;++l)if(r[l].name===e){r[l]=a;break}l===h&&r.push(a)}o.tween=r}}function Be(t,e,n){var i=t._id;return t.each(function(){var t=je(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return Ie(t,i).value[e]}}function Ze(t,e){var n;return("number"==typeof e?se:e instanceof qt?oe:(n=qt(e))?(e=n,oe):he)(t,e)}function ze(t){return function(){this.removeAttribute(t)}}function Xe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function We(t,e,n){var i,r,o=n+"";return function(){var s=this.getAttribute(t);return s===o?null:s===i?r:r=e(i=s,n)}}function Ye(t,e,n){var i,r,o=n+"";return function(){var s=this.getAttributeNS(t.space,t.local);return s===o?null:s===i?r:r=e(i=s,n)}}function Ge(t,e,n){var i,r,o;return function(){var s,a,l=n(this);if(null!=l)return(s=this.getAttribute(t))===(a=l+"")?null:s===i&&a===r?o:(r=a,o=e(i=s,l));this.removeAttribute(t)}}function Ve(t,e,n){var i,r,o;return function(){var s,a,l=n(this);if(null!=l)return(s=this.getAttributeNS(t.space,t.local))===(a=l+"")?null:s===i&&a===r?o:(r=a,o=e(i=s,l));this.removeAttributeNS(t.space,t.local)}}function Je(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,r)),n}return r._value=e,r}function Ke(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,r)),n}return r._value=e,r}function Qe(t,e){return function(){Ue(this,t).delay=+e.apply(this,arguments)}}function tn(t,e){return e=+e,function(){Ue(this,t).delay=e}}function en(t,e){return function(){je(this,t).duration=+e.apply(this,arguments)}}function nn(t,e){return e=+e,function(){je(this,t).duration=e}}var rn=wt.prototype.constructor;function on(t){return function(){this.style.removeProperty(t)}}var sn=0;function an(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function ln(){return++sn}var hn=wt.prototype;an.prototype={constructor:an,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=_(t));for(var i=this._groups,r=i.length,o=new Array(r),s=0;s<r;++s)for(var a,l,h=i[s],u=h.length,c=o[s]=new Array(u),f=0;f<u;++f)(a=h[f])&&(l=t.call(a,a.__data__,f,h))&&("__data__"in a&&(l.__data__=a.__data__),c[f]=l,Re(c[f],e,n,f,c,Ie(a,n)));return new an(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=b(t));for(var i=this._groups,r=i.length,o=[],s=[],a=0;a<r;++a)for(var l,h=i[a],u=h.length,c=0;c<u;++c)if(l=h[c]){for(var f,p=t.call(l,l.__data__,c,h),d=Ie(l,n),g=0,m=p.length;g<m;++g)(f=p[g])&&Re(f,e,n,g,p,d);o.push(p),s.push(l)}return new an(o,s,e,n)},selectChild:hn.selectChild,selectChildren:hn.selectChildren,filter:function(t){"function"!=typeof t&&(t=w(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,s=e[r],a=s.length,l=i[r]=[],h=0;h<a;++h)(o=s[h])&&t.call(o,o.__data__,h,s)&&l.push(o);return new an(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,o=Math.min(i,r),s=new Array(i),a=0;a<o;++a)for(var l,h=e[a],u=n[a],c=h.length,f=s[a]=new Array(c),p=0;p<c;++p)(l=h[p]||u[p])&&(f[p]=l);for(;a<i;++a)s[a]=e[a];return new an(s,this._parents,this._name,this._id)},selection:function(){return new rn(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=ln(),i=this._groups,r=i.length,o=0;o<r;++o)for(var s,a=i[o],l=a.length,h=0;h<l;++h)if(s=a[h]){var u=Ie(s,e);Re(s,t,n,h,a,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new an(i,this._parents,t,n)},call:hn.call,nodes:hn.nodes,node:hn.node,size:hn.size,empty:hn.empty,each:hn.each,on:function(t,e){var n=this._id;return arguments.length<2?Ie(this.node(),n).on.on(t):this.each(function(t,e,n){var i,r,o=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Ue:je;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(e,n),s.on=r}}(n,t,e))},attr:function(t,e){var n=d(t),i="transform"===n?ye:Ze;return this.attrTween(t,"function"==typeof e?(n.local?Ve:Ge)(n,i,Be(this,"attr."+t,e)):null==e?(n.local?Xe:ze)(n):(n.local?Ye:We)(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=d(t);return this.tween(n,(i.local?Je:Ke)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?ve:Ze;return null==e?this.styleTween(t,function(t,e){var n,i,r;return function(){var o=z(this,t),s=(this.style.removeProperty(t),z(this,t));return o===s?null:o===n&&s===i?r:r=e(n=o,i=s)}}(t,i)).on("end.style."+t,on(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,r,o;return function(){var s=z(this,t),a=n(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=z(this,t)),s===l?null:s===i&&l===r?o:(r=l,o=e(i=s,a))}}(t,i,Be(this,"style."+t,e))).each(function(t,e){var n,i,r,o,s="style."+e,a="end."+s;return function(){var l=je(this,t),h=l.on,u=null==l.value[s]?o||(o=on(e)):void 0;h===n&&r===u||(i=(n=h).copy()).on(a,r=u),l.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,r,o=n+"";return function(){var s=z(this,t);return s===o?null:s===i?r:r=e(i=s,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,function(t,e,n){var i,r;function o(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&function(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}(t,o,n)),i}return o._value=e,o}(t,e,n??""))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=e??""}}(Be(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&function(t){return function(e){this.textContent=t.call(this,e)}}(i)),e}return i._value=t,i}(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,r=Ie(this.node(),n).tween,o=0,s=r.length;o<s;++o)if((i=r[o]).name===t)return i.value;return null}return this.each((null==e?qe:De)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Qe:tn)(e,t)):Ie(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?en:nn)(e,t)):Ie(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){je(this,t).ease=e}}(e,t)):Ie(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;je(this,t).ease=n}}(this._id,t))}
2,end:function(){var t,e,n=this,i=n._id,r=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){0==--r&&o()}};n.each(function(){var n=je(this,i),r=n.on;r!==t&&((e=(t=r).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e}),0===r&&o()})},[Symbol.iterator]:hn[Symbol.iterator]};var un={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function cn(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function fn(t,e,n){this.k=t,this.x=e,this.y=n}wt.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var n,i,r,o=t.__transition,s=!0;if(o){for(r in e=null==e?null:e+"",o)(n=o[r]).name===e?(i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[r]):s=!1;s&&delete t.__transition}}(this,t)})},wt.prototype.transition=function(t){var e,n;t instanceof an?(e=t._id,t=t._name):(e=ln(),(n=un).time=Ce(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,o=0;o<r;++o)for(var s,a=i[o],l=a.length,h=0;h<l;++h)(s=a[h])&&Re(s,t,e,h,a,n||cn(s,e));return new an(i,this._parents,t,e)},fn.prototype={constructor:fn,scale:function(t){return 1===t?this:new fn(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new fn(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},fn.prototype;const pn=globalThis,dn=pn.ShadowRoot&&(void 0===pn.ShadyCSS||pn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gn=Symbol(),mn=new WeakMap;let vn=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==gn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(dn&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=mn.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&mn.set(e,t))}return t}toString(){return this.cssText}};const yn=dn?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return(t=>new vn("string"==typeof t?t:t+"",void 0,gn))(e)})(t):t,{is:_n,defineProperty:$n,getOwnPropertyDescriptor:bn,getOwnPropertyNames:wn,getOwnPropertySymbols:An,getPrototypeOf:xn}=Object,Sn=globalThis,En=Sn.trustedTypes,Cn=En?En.emptyScript:"",Nn=Sn.reactiveElementPolyfillSupport,Mn=(t,e)=>t,Pn={toAttribute(t,e){switch(e){case Boolean:t=t?Cn:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},kn=(t,e)=>!_n(t,e),Ln={attribute:!0,type:String,converter:Pn,reflect:!1,hasChanged:kn};Symbol.metadata??=Symbol("metadata"),Sn.litPropertyMetadata??=new WeakMap;class On extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ln){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(t,n,e);void 0!==i&&$n(this.prototype,t,i)}}static getPropertyDescriptor(t,e,n){const{get:i,set:r}=bn(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const o=i?.call(this);r.call(this,e),this.requestUpdate(t,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ln}static _$Ei(){if(this.hasOwnProperty(Mn("elementProperties")))return;const t=xn(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Mn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Mn("properties"))){const t=this.properties,e=[...wn(t),...An(t)];for(const n of e)this.createProperty(n,t[n])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,n]of e)this.elementProperties.set(t,n)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const n=this._$Eu(t,e);void 0!==n&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];
2if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(yn(t))}else void 0!==t&&e.push(yn(t));return e}static _$Eu(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(dn)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const n of e){const e=document.createElement("style"),i=pn.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=n.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EC(t,e){const n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(void 0!==i&&!0===n.reflect){const r=(void 0!==n.converter?.toAttribute?n.converter:Pn).toAttribute(e,n.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const n=this.constructor,i=n._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=n.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Pn;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,n){if(void 0!==t){if(n??=this.constructor.getPropertyOptions(t),!(n.hasChanged??kn)(this[t],e))return;this.P(t,e,n)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,n){this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,n]of t)!0!==n.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],n)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(t=>this._$EC(t,this[t])),this._$EU()}updated(t){}firstUpdated(t){}}On.elementStyles=[],On.shadowRootOptions={mode:"open"},On[Mn("elementProperties")]=new Map,On[Mn("finalized")]=new Map,Nn?.({ReactiveElement:On}),(Sn.reactiveElementVersions??=[]).push("2.0.4");const Tn=globalThis,Hn=Tn.trustedTypes,Fn=Hn?Hn.createPolicy("lit-html",{createHTML:t=>t}):void 0,Rn="$lit$",Un=`lit$${Math.random().toFixed(9).slice(2)}$`,jn="?"+Un,In=`<${jn}>`,qn=document,Dn=()=>qn.createComment(""),Bn=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Zn=Array.isArray,zn="[ \t\n\f\r]",Xn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Wn=/-->/g,Yn=/>/g,Gn=RegExp(`>|${zn}(?:([^\\s"'>=/]+)(${zn}*=${zn}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Vn=/'/g,Jn=/"/g,Kn=/^(?:script|style|textarea|title)$/i,Qn=(t,...e)=>({_$litType$:1,strings:t,values:e}
vendor: 5,279 bytes, line 2
2),ti=Symbol.for("lit-noChange"),ei=Symbol.for("lit-nothing"),ni=new WeakMap,ii=qn.createTreeWalker(qn,129);function ri(t,e){if(!Zn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Fn?Fn.createHTML(e):e}class oi{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,o=0;const s=t.length-1,a=this.parts,[l,h]=((t,e)=>{const n=t.length-1,i=[];let r,o=2===e?"<svg>":3===e?"<math>":"",s=Xn;for(let e=0;e<n;e++){const n=t[e];let a,l,h=-1,u=0;for(;u<n.length&&(s.lastIndex=u,l=s.exec(n),null!==l);)u=s.lastIndex,s===Xn?"!--"===l[1]?s=Wn:void 0!==l[1]?s=Yn:void 0!==l[2]?(Kn.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=Gn):void 0!==l[3]&&(s=Gn):s===Gn?">"===l[0]?(s=r??Xn,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Gn:'"'===l[3]?Jn:Vn):s===Jn||s===Vn?s=Gn:s===Wn||s===Yn?s=Xn:(s=Gn,r=void 0);const c=s===Gn&&t[e+1].startsWith("/>")?" ":"";o+=s===Xn?n+In:h>=0?(i.push(a),n.slice(0,h)+Rn+n.slice(h)+Un+c):n+Un+(-2===h?e:c)}return[ri(t,o+(t[n]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]})(t,e);if(this.el=oi.createElement(l,n),ii.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=ii.nextNode())&&a.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Rn)){const e=h[o++],n=i.getAttribute(t).split(Un),s=/([.?@])?(.*)/.exec(e);a.push({type:1,index:r,name:s[2],strings:n,ctor:"."===s[1]?ui:"?"===s[1]?ci:"@"===s[1]?fi:hi}),i.removeAttribute(t)}else t.startsWith(Un)&&(a.push({type:6,index:r}),i.removeAttribute(t));if(Kn.test(i.tagName)){const t=i.textContent.split(Un),e=t.length-1;if(e>0){i.textContent=Hn?Hn.emptyScript:"";for(let n=0;n<e;n++)i.append(t[n],Dn()),ii.nextNode(),a.push({type:2,index:++r});i.append(t[e],Dn())}}}else if(8===i.nodeType)if(i.data===jn)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(Un,t+1));)a.push({type:7,index:r}),t+=Un.length-1}r++}}static createElement(t,e){const n=qn.createElement("template");return n.innerHTML=t,n}}function si(t,e,n=t,i){if(e===ti)return e;let r=void 0!==i?n._$Co?.[i]:n._$Cl;const o=Bn(e)?void 0:e._$litDirective$;return r?.constructor!==o&&(r?._$AO?.(!1),void 0===o?r=void 0:(r=new o(t),r._$AT(t,n,i)),void 0!==i?(n._$Co??=[])[i]=r:n._$Cl=r),void 0!==r&&(e=si(t,r._$AS(t,e.values),r,i)),e}class ai{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:n}=this._$AD,i=(t?.creationScope??qn).importNode(e,!0);ii.currentNode=i;let r=ii.nextNode(),o=0,s=0,a=n[0];for(;void 0!==a;){if(o===a.index){let e;2===a.type?e=new li(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new pi(r,this,t)),this._$AV.push(e),a=n[++s]}o!==a?.index&&(r=ii.nextNode(),o++)}return ii.currentNode=qn,i}p(t){let e=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class li{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,n,i){this.type=2,this._$AH=ei,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=si(this,t,e),Bn(t)?t===ei||null==t||""===t?(this._$AH!==ei&&this._$AR(),this._$AH=ei):t!==this._$AH&&t!==ti&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>Zn(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==ei&&Bn(this._$AH)?this._$AA.nextSibling.data=t:this.T(qn.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:n}=t,i="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=oi.createElement(ri(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new ai(i,this),n=t.u(this.options);t.p(e),this.T(n),this._$AH=t}}_$AC(t){let e=ni.get(t.strings);return void 0===e&&ni.set(t.strings,e=new oi(t)),e}k(t){Zn(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,i=0;for(const r of t)i===e.length?e.push(n=new li(this.O(Dn()),this.O(Dn()),this,this.options)):n=e[i],n._$AI(r),i++;i<e.length&&(this._$AR(n&&n._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class hi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,i,r){this.type=1,this._$AH=ei,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=ei}_$AI(t,e=this,n,i){const r=this.strings;let o=!1;if(void 0===r)t=si(this,t,e,0),o=!Bn(t)||t!==this._$AH&&t!==ti,o&&(this._$AH=t);else{const i=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=si(this,i[n+s],e,s),a===ti&&(a=this._$AH[s]),o||=!Bn(a)||a!==this._$AH[s],a===ei?t=ei:t!==ei&&
2(t+=(a??"")+r[s+1]),this._$AH[s]=a}o&&!i&&this.j(t)}j(t){t===ei?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ui extends hi{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ei?void 0:t}}class ci extends hi{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==ei)}}class fi extends hi{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){if((t=si(this,t,e,0)??ei)===ti)return;const n=this._$AH,i=t===ei&&n!==ei||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==ei&&(n===ei||i);i&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class pi{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){si(this,t)}}const di=Tn.litHtmlPolyfillSupport;di?.(oi,li),(Tn.litHtmlVersions??=[]).push("3.2.1");let gi=class extends On{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,n)=>{const i=n?.renderBefore??e;let r=i._$litPart$;if(void 0===r){const t=n?.renderBefore??null;i._$litPart$=r=new li(e.insertBefore(Dn(),t),t,void 0,n??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ti}};gi._$litElement$=!0,gi.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:gi});const mi=globalThis.litElementPolyfillSupport;mi?.({LitElement:gi}),(globalThis.litElementVersions??=[]).push("4.1.1");const vi={attribute:!0,type:String,converter:Pn,reflect:!1,hasChanged:kn},yi=(t=vi,e,n)=>{const{kind:i,metadata:r}=n;let o=globalThis.litPropertyMetadata.get(r);if(void 0===o&&globalThis.litPropertyMetadata.set(r,o=new Map),o.set(n.name,t),"accessor"===i){const{name:i}=n;return{set(n){const r=e.get.call(this);e.set.call(this,n),this.requestUpdate(i,r,t)},init(e){return void 0!==e&&this.P(i,void 0,t),e}}}if("setter"===i){const{name:i}=n;return function(n){const r=this[i];e.call(this,n),this.requestUpdate(i,r,t)}}throw Error("Unsupported decorator location: "+i)};function _i(t){return(e,n)=>"object"==typeof n?yi(t,e,n):((t,e,n)=>{const i=e.hasOwnProperty(n);return e.constructor.createProperty(n,i?{...t,wrapped:!0}:t),i?Object.getOwnPropertyDescriptor(e,n):void 0})(t,e,n)}var $i,bi,wi,Ai,xi,Si,Ei;class Ci{constructor(){$i.add(this),bi.set(this,1),wi.set(this,1),Ai.set(this,1)}shape2function(t){switch(t){case"rectangle":default:return()=>this.rectangle();case"roundRectangle":return()=>this.roundRectangle();case"line":return()=>this.line();case"bridge":return()=>this.bridge();case"diamond":return()=>this.diamond();case"chevron":return()=>this.chevron();case"catFace":return()=>this.catFace();case"triangle":return()=>this.triangle();case"wave":return()=>this.wave();case"hexagon":return()=>this.hexagon();case"pentagon":return()=>this.pentagon();case"circle":return()=>this.circle();case"arrow":return()=>this.arrow();case"doubleBar":return()=>this.doubleBar();case"discontinuosStart":return()=>this.discontinuousStart();case"discontinuos":return()=>this.discontinuous();case"discontinuosEnd":return()=>this.discontinuousEnd();case"helix":return()=>this.helix();case"strand":return()=>this.strand();case"leftEndedTag":return()=>this.tag({left:!0});case"rightEndedTag":return()=>this.tag({right:!0});case"doubleEndedTag":return()=>this.tag({left:!0,right:!0})}}getFeatureShape(t,e,n,i){return i=i||"rectangle",s(this,bi,n,"f"),s(this,wi,e,"f"),s(this,Ai,t*n,"f"),this.shape2function(i)()}static isContinuous(t){return"bridge"!==t.toLowerCase()}rectangle(){return`M0,0L${o(this,Ai,"f")},0L${o(this,Ai,"f")},${o(this,wi,"f")}L0,${o(this,wi,"f")}Z`}roundRectangle(){return`M6,0h${o(this,Ai,"f")-12},0a6,6 0 0 1 6,6v${o(this,wi,"f")-12}a6,6 0 0 1 -6,6h${12-o(this,Ai,"f")}a6,6 0 0 1 -6,-6v${12-o(this,wi,"f")}a6,6 0 0 1 6,-6Z`}line(){return`M0,${o(this,wi,"f")/2} L${o(this,Ai,"f")},${o(this,wi,"f")/2}`}bridge(){return 1!==o(this,bi,"f")?`M0,${o(this,wi,"f")}
2L0,0L${o(this,Ai,"f")},0L${o(this,Ai,"f")},${o(this,wi,"f")}L${o(this,Ai,"f")},2L0,2Z`:`M0,${o(this,wi,"f")}L0,${o(this,wi,"f")/2}L${o(this,Ai,"f")/2},${o(this,wi,"f")/2}L${o(this,Ai,"f")/2},0L${o(this,Ai,"f")/2},${o(this,wi,"f")/2}L${o(this,Ai,"f")},${o(this,wi,"f")/2}L${o(this,Ai,"f")},${o(this,wi,"f")}Z`}diamond(){const t=o(this,Ai,"f")/2,e=`M${t},0L${t+5},5L${t},10L${t-5},5`;return 1!==o(this,bi,"f")?e+o(this,$i,"m",xi).call(this,5):`${e}Z`}chevron(){const t=o(this,Ai,"f")/2,e=`M${t},5L${5+t},0L${5+t},5L${t},10L${-5+t},5L${-5+t},0`;return 1!==o(this,bi,"f")?`${e}L${t},5${o(this,$i,"m",xi).call(this,5)}Z`:e+"Z"}catFace(){const t=o(this,Ai,"f")/2,e=`M${-5+t},0L${-5+t},6L${-2+t},10L${2+t},10L${5+t},6L${5+t},0L${2+t},4L${-2+t},4`;return 1!==o(this,bi,"f")?`${e}M${t},0${o(this,$i,"m",xi).call(this,5)}Z`:`${e}Z`}triangle(){const t=o(this,Ai,"f")/2,e=`M${t},0L${5+t},10L${-5+t},10`;return 1!==o(this,bi,"f")?`${e}L${t},0${o(this,$i,"m",xi).call(this,5)}Z`:`${e}Z`}wave(){const t=o(this,Ai,"f")/2,e=`M${-5+t},5A2.5,5 0 1,1 ${t},5A2.5,5 0 1,0 ${5+t},5`;return 1!==o(this,bi,"f")?`${e+o(this,$i,"m",xi).call(this,5)}Z`:`${e}Z`}getPolygon(t){let e="M ";const n=o(this,Ai,"f")/2;for(let i=0;i<t;i++)e+=`${5*Math.cos(2*Math.PI*i/t)+n},${5*Math.sin(2*Math.PI*i/t)+5} `;return 1!==o(this,bi,"f")?`${e} ${5*Math.cos(0)+n},${5*Math.sin(0)+5} ${o(this,$i,"m",xi).call(this,5)}Z`:`${e}Z`}hexagon(){return this.getPolygon(6)}pentagon(){return this.getPolygon(5)}circle(){const t=o(this,Ai,"f")/2,e=Math.sqrt(10/Math.PI),n=`M${t},0A${e},${e} 0 1,1 ${t},10A${e},${e} 0 1,1 ${t},0`;return 1!==o(this,bi,"f")?`${n+o(this,$i,"m",xi).call(this,5)}Z`:`${n}Z`}arrow(){const t=o(this,Ai,"f")/2,e=`M${t},0L${-1+t},0L${-5+t},4L${-1+t},${o(this,wi,"f")}L${t},${o(this,wi,"f")}L${4+t},4`;return 1!==o(this,bi,"f")?`${e}L${t},0${o(this,$i,"m",xi).call(this,5)}Z`:`${e}Z`}doubleBar(){const t=o(this,Ai,"f")/2,e=`M${t},0L${-5+t},10L${t},10L${5+t},0`;return 1!==o(this,bi,"f")?`${e}L${t},0${o(this,$i,"m",xi).call(this,5)}Z`:`${e}Z`}discontinuousStart(){return`M0,0L${o(this,Ai,"f")},0L${o(this,Ai,"f")},${o(this,wi,"f")}L0,${o(this,wi,"f")}${o(this,$i,"m",Ei).call(this)}Z`}discontinuous(){return`M0,0L${o(this,Ai,"f")},0${o(this,$i,"m",Si).call(this)}L0,${o(this,wi,"f")}${o(this,$i,"m",Ei).call(this)}Z`}discontinuousEnd(){return`M0,0L${o(this,Ai,"f")},0${o(this,$i,"m",Si).call(this)}L0,${o(this,wi,"f")}Z`}helix(){let t=2.5;const e=Math.round(o(this,Ai,"f")/5);let n="";for(let i=0;i<e;i++)n+=`M${-2.5+t},${o(this,wi,"f")} C${t+2.5},7.5 ${2.5+t},2.5 ${t}, 0 C${t-2.5},2.5 ${t},7.5 ${2.5+t},${o(this,wi,"f")}`,t+=5;return n}strand(){let t=0;o(this,Ai,"f")>5&&(t=o(this,Ai,"f")-5);const e=o(this,wi,"f")/4;return`M0,${e}L${t},${e}L${t},${3*e}L0,${3*e}L0,${e}M${t},0L${o(this,Ai,"f")},${2*e}L${t},${o(this,wi,"f")}Z`}tag(t={}){const e=o(this,wi,"f"),n=o(this,Ai,"f"),i=e/Math.sqrt(2);let r="M0,"+e/2;return t.left?r+=` L${i},0`:r+=" L0,0",t.right?r+=` L${n-i},0`:r+=` L${n},0`,t.right?r+=` L${n},${e/2} L${n-i},${e}`:r+=` L${n},${e}`,t.left?r+=` L${i},${e}`:r+=` L0,${e}`,r+" Z"}}bi=new WeakMap,wi=new WeakMap,Ai=new WeakMap,$i=new WeakSet,xi=function(t){return`M0,${t}L${o(this,Ai,"f")},${t}Z`},Si=function(){const t=o(this,wi,"f")/4;return`L${o(this,Ai,"f")-t},${t}L${o(this,Ai,"f")},${2*t}L${o(this,Ai,"f")-t},${3*t}L${o(this,Ai,"f")},${o(this,wi,"f")}`},Ei=function(){const t=o(this,wi,"f")/4;return`L${t},${3*t}L0,${2*t}L${t},${t}`};var Ni="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,Mi="object"==typeof self&&self&&self.Object===Object&&self,Pi=(Ni||Mi||Function("return this")()).Symbol,ki=Object.prototype,Li=ki.hasOwnProperty,Oi=ki.toString,Ti=Pi?Pi.toStringTag:void 0,Hi=Object.prototype.toString,Fi=Pi?Pi.toStringTag:void 0;function Ri(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var Ui=/^\s+|\s+$/g,ji=/^[-+]0x[0-9a-f]+$/i,Ii=/^0b[01]+$/i,qi=/^0o[0-7]+$/i,Di=parseInt;function Bi(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==function(t){return null==t?void 0===t?"[object Undef
2ined]":"[object Null]":Fi&&Fi in Object(t)?function(t){var e=Li.call(t,Ti),n=t[Ti];try{t[Ti]=void 0;var i=!0}catch(t){}var r=Oi.call(t);return i&&(e?t[Ti]=n:delete t[Ti]),r}(t):function(t){return Hi.call(t)}(t)}(t)}(t))return NaN;if(Ri(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ri(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Ui,"");var n=Ii.test(t);return n||qi.test(t)?Di(t.slice(2),n?2:8):ji.test(t)?NaN:+t}function Zi(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=Bi(n))==n?n:0),void 0!==e&&(e=(e=Bi(e))==e?e:0),function(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}(Bi(t),e,n)}class zi{constructor({layoutHeight:t,margin:e={top:1,bottom:1,left:0,right:0},minHeight:n=.1,maxHeight:i=1/0,gap:r=2}){this.margin=e,this.minHeight=n,this.maxHeight=i,this.gap=r,this.layoutHeight=t,this.features=[]}init(t,...e){this.features=t}getFeatureYPos(t){return.5*(this.margin.top+this.layoutHeight-this.margin.bottom)-.5*this.getFeatureHeight()}getFeatureHeight(...t){return Zi(this.layoutHeight-this.margin.top-this.margin.bottom-this.gap,this.minHeight,this.maxHeight)}}class Xi extends zi{constructor(t){var e;super({...t,maxHeight:null!==(e=t.maxHeight)&&void 0!==e?e:15}),this.rowHeight=0,this.featureHeight=0,this.topOffset=0,this.featuresMap=new Map}init(t){const{featuresMap:e,rows:n}=function(t){var e,n,i,r;const o=new Map,s=[],a={};for(const l of t){const t=s.findIndex((t,e)=>!Wi(l,a[e])||!Yi(l,t));if(t>=0){s[t].push(l),o.set(l,t);const i=a[t];a[t]={start:Math.min(i.start,null!==(e=l.start)&&void 0!==e?e:-1/0),end:Math.max(i.end,null!==(n=l.end)&&void 0!==n?n:1/0)}}else s.push([l]),o.set(l,s.length-1),a[s.length-1]={start:null!==(i=l.start)&&void 0!==i?i:-1/0,end:null!==(r=l.end)&&void 0!==r?r:1/0}}return{rows:s,featuresMap:o}}(t);this.featuresMap=e;const i=Zi(this.layoutHeight-this.margin.top-this.margin.bottom,0,n.length*(this.maxHeight+this.gap));this.rowHeight=i/Math.max(n.length,1),this.featureHeight=Zi(this.rowHeight-this.gap,this.minHeight,this.maxHeight);const r=.5*(this.margin.top+this.layoutHeight-this.margin.bottom);this.topOffset=r-.5*i}getFeatureYPos(t){var e;const n=null!==(e=this.featuresMap.get(t))&&void 0!==e?e:0;return this.topOffset+(n+.5)*this.rowHeight-.5*this.featureHeight}getFeatureHeight(){return this.featureHeight}}function Wi(t,e){return!(Number(e.start)>Number(t.end)||Number(e.end)<Number(t.start))}function Yi(t,e){return function(t,e){for(let n=t.length-1;n>=0;n--)if(e(t[n]))return!0;return!1}(e,e=>Wi(t,e))}const Gi={CHAIN:{name:"chain",label:"Chain",tooltip:"(aka mature region). This describes the extent of a polypeptide chain in the mature protein following processing",shape:"rectangle",color:"#CC9933"},TRANSIT:{name:"transit peptide",label:"Transit peptide",tooltip:"This describes the extent of a transit peptide",shape:"rectangle",color:"#009966"},INIT_MET:{name:"initiator methionine",label:"Initiator methionine",tooltip:"This indicates that the initiator methionine is cleaved from the mature protein",shape:"arrow",color:"#996633"},PROPEP:{name:"propeptide",label:"Propeptide",tooltip:"Part of a protein that is cleaved during maturation or activation",shape:"rectangle",color:"#99CCCC"},PEPTIDE:{name:"peptide",label:"Peptide",tooltip:"The position and length of an active peptide in the mature protein",shape:"rectangle",color:"#006699"},SIGNAL:{name:"signal peptide",label:"Signal peptide",tooltip:"N-terminal signal peptide",shape:"rectangle",color:"#CC0033"},HELIX:{name:"helix",label:"Helix",tooltip:"The positions of experimentally determined helical regions",shape:"rectangle",color:"#FF0066"},STRAND:{name:"strand",label:"Beta strand",tooltip:"The positions of experimentally determined beta strands",shape:"rectangle",color:"#FFCC00"},TURN:{name:"turn",label:"Turn",tooltip:"The positions of experimentally determined hydrogen-bonded turns",
2shape:"rectangle",color:"#0571AF"},DISULFID:{name:"disulfide bond",label:"Disulfide bond",tooltip:"The positions of cysteine residues participating in disulphide bonds",shape:"bridge",color:"#23B14D"},CROSSLNK:{name:"cross-link",label:"Cross-link",tooltip:"Covalent linkages of various types formed between two proteins or between two parts of the same protein",shape:"bridge",color:"#FF6600"},REGION:{name:"region of interest",label:"Region of interest",tooltip:"Regions in multifunctional enzymes or fusion proteins, or characteristics of a region, e.g., protein-protein interactions mediation",shape:"rectangle",color:"#B33E00"},COILED:{name:"coiled-coil region",label:"Coiled-coil region",tooltip:"Coiled coils are built by two or more alpha-helices that wind around each other to form a supercoil",shape:"rectangle",color:"#006699"},MOTIF:{name:"short sequence motif",label:"Short sequence motif",tooltip:"Short conserved sequence motif of biological significance",shape:"rectangle",color:"#402060"},REPEAT:{name:"repeat",label:"Repeat",tooltip:"Repeated sequence motifs or repeated domains within the protein",shape:"rectangle",color:"#9900FF"},CA_BIND:{name:"calcium-binding region",label:"Calcium-binding region",tooltip:"Calcium-binding regions, such as the EF-hand motif",shape:"rectangle",color:"#FF3399"},DNA_BIND:{name:"DNA-binding region",label:"DNA binding",tooltip:"DNA-binding domains such as AP2/ERF domain, the ETS domain, the Fork-Head domain, the HMG box and the Myb domain",shape:"rectangle",color:"#009933"},DOMAIN:{name:"other domain of interest",label:"Other domain of interest",tooltip:"Specific combination of secondary structures organized into a characteristic three-dimensional structure or fold",shape:"rectangle",color:"#9999FF"},ZN_FING:{name:"zinc finger region",label:"Zinc finger",tooltip:"Small, functional, independently folded domain that coordinates one or more zinc ions",shape:"rectangle",color:"#990066"},NP_BIND:{name:"nucleotide-binding region",label:"Nucleotide-binding region",tooltip:"(aka flavin-binding). Region in the protein which binds nucleotide phosphates",shape:"rectangle",color:"#FF9900"},METAL:{name:"metal ion-binding site",label:"Metal ion-binding site",tooltip:"Binding site for a metal ion",shape:"diamond",color:"#009900"},SITE:{name:"other site of interest",label:"Other site of interest",tooltip:"Any interesting single amino acid site on the sequence",shape:"chevron",color:"#660033"},BINDING:{name:"other binding site",label:"Other binding site",tooltip:"Binding site for any chemical group (co-enzyme, prosthetic group, etc.)",shape:"rectangle",color:"#catFace"},ACT_SITE:{name:"active site",label:"Active site",tooltip:"Amino acid(s) directly involved in the activity of an enzyme",shape:"circle",color:"#FF6666"},MOD_RES:{name:"Post-translationally modified residue",label:"Modified residue",tooltip:"Modified residues such as phosphorylation, acetylation, acylation, methylation",shape:"triangle",color:"#000066"},LIPID:{name:"lipid moiety-binding region",label:"Lipidation",tooltip:"Covalently attached lipid group(s)",shape:"wave",color:"#99CC33"},CARBOHYD:{name:"glycosylation site",label:"Glycosylation",tooltip:"Covalently attached glycan group(s)",shape:"hexagon",color:"#CC3366"},COMPBIAS:{name:"compositionally biased region",label:"Compositionally biased region",tooltip:"Position of regions of compositional bias within the protein and the particular amino acids that are over-represented within those regions",shape:"rectangle",color:"#FF3366"},CONFLICT:{name:"sequence conflict",label:"Sequence conflict",tooltip:"Sequence discrepancies of unknown origin",shape:"rectangle",color:"#6633CC"},NON_CONS:{name:"non-consecutive residues",label:"Non-adjacent residues",tooltip:"Indicates that two residues in a sequence are not consecutive and that there is an undetermined number of unsequenced residues between them",shape:"doubleBar",color:"#FF0033"},NON_TER:{name:"non-terminal residue",label:"Non-terminal residue",tooltip:"The sequence is incomplete. The residue is not the terminal residue of the complete protein",shape:"doubleBar",color:"#339933"},UNSURE:{name:"unsure residue",label:"Sequence uncertainty",tooltip:"Regions of a sequence for which the authors are unsure about the sequence assignment",shape:"rectangle",color:"#33FF00"},NON_STD:{name:"non-standard amino acid",label:"Non-standard residue",tooltip:"Non-standard amino acids (selenocysteine and pyrrolysine)",shape:"pentagon",color:"#330066"},MUTAGEN:{name:"mutagenesis site",label:"Mutagenesis",tooltip:"Site which has been experimentally altered by mutagenesis",shape:"rectangle",color:"#FF9900"},TOPO_DOM:{name:"topological domain",label:"Topological domain",tooltip:"Location of non-membrane regions of membrane-spanning proteins",shape:"rectangle",color:"#CC0000"},TRANSMEM:{name:"transmembrane region",label:"Transmembrane",tooltip:"Extent of a membrane-spanning region",shape:"rectangle",color:"#CC00CC"}
2,INTRAMEM:{name:"intramembrane region",label:"Intramembrane",tooltip:"Extent of a region located in a membrane without crossing it",shape:"rectangle",color:"#0000CC"},VAR_SEQ:{name:"splice variant",label:"Splice variant",tooltip:"",shape:"rectangle",color:"#CC11CC"},VARIANT:{name:"sequence variant",label:"Natural variant",tooltip:"Natural variant of the protein, including polymorphisms, variations between strains, isolates or cultivars, disease-associated mutations and RNA editing events",shape:"circle",color:"black"},UNIQUE:{name:"unique",label:"Unique peptide",tooltip:"",shape:"rectangle",color:"#fc3133"},NON_UNIQUE:{name:"non-unique",label:"Non-unique peptide",tooltip:"",shape:"rectangle",color:"#8585fc"},RESIDUE:{name:"residue",label:"PTM residue",tooltip:"",shape:"rectangle",color:"#06038D"},EPITOPE:{name:"epitope",label:"Epitopes",tooltip:"",shape:"rectangle",color:"#4ade33"},ANTIGEN:{name:"antigen",label:"Antibody binding sequences",tooltip:"",shape:"rectangle",color:"#996699"},PDBE_COVER:{name:"pdbe coverage",label:"PDBe 3D structure coverage",tooltip:"",shape:"rectangle",color:"#669966"}},Vi=t=>{if(t.toUpperCase()in Gi)return Gi[t.toUpperCase()].shape;const e=Object.values(Gi).find(e=>e.name.toUpperCase()===t.toUpperCase());return e?e.shape:"rectangle"},Ji=t=>{if(t.toUpperCase()in Gi)return Gi[t.toUpperCase()].color;const e=Object.values(Gi).find(e=>e.name.toUpperCase()===t.toUpperCase());return e||console.log(t),e?e.color:"black"};var Ki,Qi,tr,er,nr;const ir=["length","width","height"];let rr=nr=class extends((0,i.Iz)((0,i.ST)((0,i.GB)((0,i.Zd)((0,i.uX)((0,i.I3)((0,i.l9)(i.Ay)))))))){constructor(){super(...arguments),Ki.add(this),this.featureShape=new Ci,Qi.set(this,[]),tr.set(this,[]),this.filters=null}getLayout(){return"non-overlapping"===String(this.layout).toLowerCase()?new Xi({layoutHeight:this.height,margin:{top:this["margin-top"],bottom:this["margin-bottom"],left:this["margin-left"],right:this["margin-right"]}}):new zi({layoutHeight:this.height,margin:{top:this["margin-top"],bottom:this["margin-bottom"],left:this["margin-left"],right:this["margin-right"]}})}connectedCallback(){super.connectedCallback(),this.layoutObj=this.getLayout(),o(this,tr,"f")&&this.createTrack()}static normalizeLocations(t){return t.map(t=>{var e,n,i,r;return t.locations?(null!==(e=t.start)&&void 0!==e||(t.start=function(t){let e;for(const n of t)for(const t of n.fragments)(void 0===e||t.start<e)&&(e=t.start);return e}(t.locations)),null!==(n=t.end)&&void 0!==n||(t.end=function(t){let e;for(const n of t)for(const t of n.fragments)(void 0===e||t.end>e)&&(e=t.end);return e}(t.locations))):(null!==(i=t.start)&&void 0!==i||(t.start=1),null!==(r=t.end)&&void 0!==r||(t.end=t.start),t.locations=[{fragments:[{start:t.start,end:t.end}]}]),t})}processData(t){s(this,Qi,nr.normalizeLocations(t),"f")}set data(t){this.processData(t),this.applyFilters(),this.layoutObj=this.getLayout(),this.createTrack()}get data(){return o(this,tr,"f")}attributeChangedCallback(t,e,n){super.attributeChangedCallback(t,e,n),(ir.includes(t)||t.startsWith("margin-"))&&(this.applyFilters(),this.layoutObj=this.getLayout(),this.createTrack())}getFeatureColor(t){var e,n,i;const r="gray";return t.color?t.color||r:(null===(e=null==t?void 0:t.feature)||void 0===e?void 0:e.color)?(null===(n=null==t?void 0:t.feature)||void 0===n?void 0:n.color)||r:this.color?this.color:t.type?Ji(t.type):(null===(i=null==t?void 0:t.feature)||void 0===i?void 0:i.type)?Ji(t.feature.type):r}getFeatureFillColor(t){var e;const n="gray";return t.fill?t.fill||n:(null===(e=null==t?void 0:t.feature)||void 0===e?void 0:e.fill)?t.feature.fill||n:this.getFeatureColor(t)}getShape(t){var e,n;const i="rectangle";return t.shape?t.shape||i:(null===(e=null==t?void 0:t.feature)||void 0===e?void 0:e.shape)?t.feature.shape||i:this.shape?this.shape:t.type?Vi(t.type):(null===(n=t.feature)||void 0===n?void 0:n.type)?Vi(t.feature.type):i}createTrack(){var t,e;o(this,tr,"f")&&(null===(t=this.layoutObj)||void 0===t||t.init(o(this,tr,"f")),null===(e=this.svg)||void 0===e||e.selectAll("g").remove(),this.svg=function(t){return"string"==typeof t?new bt([[document.querySelector(t)]],[document.documentElement]):new bt([[t]],$t)}(this).selectAll("svg").attr("width",this.width).attr("height",this.height),this.svg&&(this.seqG=this.svg.append("g").attr("class","sequence-features"),this.createFeatures(),this.highlighted=this.svg.append("g").attr("class","highlighted"),this.margins=this.svg.append("g").attr("class","margin")))}createFeatures(){var t;if(!this.seqG)return;const e=this.seqG.selectAll("g.feature-group").data(o(this,tr,"f")).enter().append("g").attr("class","feature-group").attr("id",t=>`g_${t.accession}`).selectAll("g.location-group").data(t=>(t.locations||[]).map(e=>Object.assign({},e,{feature:t}))).enter().append("g").attr("class","location-group"),n=e.selectAll("g.fragment-group").data(t=>t.fragments.map(e=>Object.assign({},e,{feature:t.feature}))).enter().append("g").attr("class","fragment-group");n.append("path").attr("class",t=>
2`${this.getShape(t)} feature`).attr("d",t=>{var e;return this.featureShape.getFeatureShape(this.getSingleBaseWidth(),(null===(e=this.layoutObj)||void 0===e?void 0:e.getFeatureHeight())||0,t.end?t.end-t.start+1:1,this.getShape(t))}).attr("transform",t=>{var e;return`translate(${this.getXFromSeqPosition(t.start)},${(null===(e=this.layoutObj)||void 0===e?void 0:e.getFeatureYPos(t.feature))||0})`}).style("fill",t=>this.getFeatureFillColor(t)).attr("stroke",t=>this.getFeatureColor(t)).style("fill-opacity",({feature:t})=>t.opacity?t.opacity:.9).style("stroke-opacity",({feature:t})=>t.opacity?t.opacity:.9);const r=n.selectAll("g.residue-group").data(t=>{var e;return t.feature.residuesToHighlight?[null===(e=t.feature.residuesToHighlight)||void 0===e?void 0:e.map(e=>Object.assign({},e,{feature:t.feature,position:e.position}))]:[]}).enter().append("g").attr("class","residue-group");n.append("rect").attr("class","outer-rectangle feature").attr("width",t=>Math.max(0,this.getSingleBaseWidth()*(t.end?t.end-t.start+1:1))).attr("height",(null===(t=this.layoutObj)||void 0===t?void 0:t.getFeatureHeight())||0).attr("transform",t=>{var e;return`translate(${this.getXFromSeqPosition(t.start)},${(null===(e=this.layoutObj)||void 0===e?void 0:e.getFeatureYPos(t.feature))||0})`}).style("fill","transparent").attr("stroke","transparent").call(i.vY,this),r.selectAll("g.residue").data(t=>t).enter().append("path").attr("class",t=>
2`${this.getShape(t)} residue`).attr("d",t=>o(this,Ki,"m",er).call(this,t)).attr("transform",t=>{var e;return`translate(${this.getXFromSeqPosition(Number(t.feature.start)+Number(t.position)-1)+this.getSingleBaseWidth()/4},\n          ${null===(e=this.layoutObj)||void 0===e?void 0:e.getFeatureYPos(t.feature)})`}).attr("fill",Ji("RESIDUE")).style("fill-opacity",({feature:t})=>t.opacity?t.opacity:.9).style("stroke-opacity",({feature:t})=>t.opacity?t.opacity:.9).call(i.vY,this)}applyFilters(){(this.filters||[]).length<=0&&s(this,tr,o(this,Qi,"f"),"f")}refresh(){var t;if(this.xScale&&this.seqG){const e=this.seqG.selectAll("g.fragment-group").data(o(this,tr,"f").reduce((t,e)=>t.concat((e.locations||[]).reduce((t,n)=>t.concat(n.fragments.map(t=>Object.assign({},t,{feature:e}))),[])),[])),n=this.seqG.selectAll("g.residue-group").data(o(this,tr,"f").reduce((t,e)=>{var n;return t.concat([null===(n=e.residuesToHighlight)||void 0===n?void 0:n.reduce(t=>t.concat(t=>Object.assign({},t,{feature:e,position:t.position})),[])])},[]));e.selectAll("path.feature").attr("d",t=>{var e;return this.featureShape.getFeatureShape(this.getSingleBaseWidth(),(null===(e=this.layoutObj)||void 0===e?void 0:e.getFeatureHeight())||0,(null==t?void 0:t.end)&&(null==t?void 0:t.start)?t.end-t.start+1:1,this.getShape(t))}).attr("transform",t=>{var e;return`translate(${this.getXFromSeqPosition(t.start||0)},${null===(e=this.layoutObj)||void 0===e?void 0:e.getFeatureYPos(t.feature)})`}),n.selectAll("path.residue").attr("d",t=>o(this,Ki,"m",er).call(this,t)).attr("transform",t=>{var e,n;return`translate(${this.getXFromSeqPosition(Number(null===(e=t.feature)||void 0===e?void 0:e.start)+Number(t.position)-1)+this.getSingleBaseWidth()/4},${null===(n=this.layoutObj)||void 0===n?void 0:n.getFeatureYPos(t.feature)})`}),e.selectAll("rect.outer-rectangle").attr("width",t=>Math.max(0,this.getSingleBaseWidth()*((null==t?void 0:t.end)&&(null==t?void 0:t.start)?t.end-t.start+1:1))).attr("height",(null===(t=this.layoutObj)||void 0===t?void 0:t.getFeatureHeight())||0).attr("transform",t=>{var e;return`translate(${this.getXFromSeqPosition(t.start||0)},${(null===(e=this.layoutObj)||void 0===e?void 0:e.getFeatureYPos(t.feature))||0})`})}this.updateHighlight(),this.renderMarginOnGroup(this.margins)}updateHighlight(){if(!this.highlighted)return;const t=this.highlighted.selectAll("rect").data(this.highlightedRegion.segments);t.enter().append("rect").style("pointer-events","none").merge(t).attr("fill",this["highlight-color"]).attr("height",this.height).attr("x",t=>this.getXFromSeqPosition(t.start)).attr("width",t=>Math.max(0,this.getSingleBaseWidth()*(t.end-t.start+1))),t.exit().remove()}zoomRefreshed(){super.zoomRefreshed(),this.getWidthWithMargins()>0&&this.refresh()}firstUpdated(){this.createTrack()}render(){return Qn`<svg class="container"></svg>`}};Qi=new WeakMap,tr=new WeakMap,Ki=new WeakSet,er=function(t){var e;let n=1;const i=this.getSingleBaseWidth(),r=6-i;return i<6&&r>n&&(n=r),this.featureShape.getFeatureShape(i/2,(null===(e=this.layoutObj)||void 0===e?void 0:e.getFeatureHeight(t))||0,n,this.getShape(t))},r([_i({type:String})],rr.prototype,"color",void 0),r([_i({type:String})],rr.prototype,"shape",void 0),r([_i({type:String})],rr.prototype,"layout",void 0),rr=nr=r([(0,i.f2)("nightingale-track")],rr);var or=rr;n.d(e,["JJ",0,Ji])}}]);
3//# sourceMappingURL=modern.5770.1a1005.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.