@genome-spy/core 0.71.0 → 0.73.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/dist/bundle/index.es.js +6842 -5365
- package/dist/bundle/index.js +159 -140
- package/dist/bundle/parquetRead-BnAGCa4_.js +1663 -0
- package/dist/schema.json +281 -17
- package/dist/src/data/formats/bed.d.ts +8 -0
- package/dist/src/data/formats/bed.d.ts.map +1 -0
- package/dist/src/data/formats/bed.js +53 -0
- package/dist/src/data/formats/bedpe.d.ts +8 -0
- package/dist/src/data/formats/bedpe.d.ts.map +1 -0
- package/dist/src/data/formats/bedpe.js +160 -0
- package/dist/src/data/formats/parquet.d.ts +12 -0
- package/dist/src/data/formats/parquet.d.ts.map +1 -0
- package/dist/src/data/formats/parquet.js +29 -0
- package/dist/src/data/formats/parquetRead.d.ts +18 -0
- package/dist/src/data/formats/parquetRead.d.ts.map +1 -0
- package/dist/src/data/formats/parquetRead.js +326 -0
- package/dist/src/data/sources/dataUtils.d.ts +16 -0
- package/dist/src/data/sources/dataUtils.d.ts.map +1 -1
- package/dist/src/data/sources/dataUtils.js +53 -3
- package/dist/src/data/sources/urlSource.d.ts +4 -0
- package/dist/src/data/sources/urlSource.d.ts.map +1 -1
- package/dist/src/data/sources/urlSource.js +141 -17
- package/dist/src/encoder/encoder.d.ts +2 -2
- package/dist/src/fonts/bmFontManager.d.ts +1 -1
- package/dist/src/genome/assemblyPreflight.d.ts +31 -0
- package/dist/src/genome/assemblyPreflight.d.ts.map +1 -0
- package/dist/src/genome/assemblyPreflight.js +99 -0
- package/dist/src/genome/genome.d.ts +2 -2
- package/dist/src/genome/genome.d.ts.map +1 -1
- package/dist/src/genome/genome.js +4 -0
- package/dist/src/genome/genomeStore.d.ts +34 -3
- package/dist/src/genome/genomeStore.d.ts.map +1 -1
- package/dist/src/genome/genomeStore.js +409 -18
- package/dist/src/genome/rootGenomeConfig.d.ts +26 -0
- package/dist/src/genome/rootGenomeConfig.d.ts.map +1 -0
- package/dist/src/genome/rootGenomeConfig.js +94 -0
- package/dist/src/genomeSpy/interactionController.d.ts +5 -1
- package/dist/src/genomeSpy/interactionController.d.ts.map +1 -1
- package/dist/src/genomeSpy/interactionController.js +244 -29
- package/dist/src/genomeSpy/renderCoordinator.js +1 -1
- package/dist/src/genomeSpy.d.ts +13 -3
- package/dist/src/genomeSpy.d.ts.map +1 -1
- package/dist/src/genomeSpy.js +83 -7
- package/dist/src/gl/canvasSizeHelper.d.ts +74 -0
- package/dist/src/gl/canvasSizeHelper.d.ts.map +1 -0
- package/dist/src/gl/canvasSizeHelper.js +203 -0
- package/dist/src/gl/hashTable.d.ts +78 -0
- package/dist/src/gl/hashTable.d.ts.map +1 -0
- package/dist/src/gl/hashTable.js +164 -0
- package/dist/src/gl/includes/common.glsl.js +1 -1
- package/dist/src/gl/webGLHelper.d.ts +25 -11
- package/dist/src/gl/webGLHelper.d.ts.map +1 -1
- package/dist/src/gl/webGLHelper.js +71 -39
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +5 -2
- package/dist/src/marks/link.d.ts.map +1 -1
- package/dist/src/marks/link.js +5 -3
- package/dist/src/marks/mark.d.ts +1 -1
- package/dist/src/marks/mark.d.ts.map +1 -1
- package/dist/src/marks/mark.js +8 -4
- package/dist/src/scales/domainPlanner.d.ts +34 -3
- package/dist/src/scales/domainPlanner.d.ts.map +1 -1
- package/dist/src/scales/domainPlanner.js +247 -26
- package/dist/src/scales/scaleInstanceManager.d.ts +2 -1
- package/dist/src/scales/scaleInstanceManager.d.ts.map +1 -1
- package/dist/src/scales/scaleInstanceManager.js +10 -11
- package/dist/src/scales/scaleInteractionController.d.ts.map +1 -1
- package/dist/src/scales/scaleInteractionController.js +16 -14
- package/dist/src/scales/scaleResolution.d.ts +16 -0
- package/dist/src/scales/scaleResolution.d.ts.map +1 -1
- package/dist/src/scales/scaleResolution.js +314 -54
- package/dist/src/scales/scaleResolutionTestUtils.d.ts +21 -0
- package/dist/src/scales/scaleResolutionTestUtils.d.ts.map +1 -0
- package/dist/src/scales/scaleResolutionTestUtils.js +33 -0
- package/dist/src/scales/selectionDomainUtils.d.ts +22 -0
- package/dist/src/scales/selectionDomainUtils.d.ts.map +1 -0
- package/dist/src/scales/selectionDomainUtils.js +79 -0
- package/dist/src/scales/zoomDomainUtils.d.ts +18 -0
- package/dist/src/scales/zoomDomainUtils.d.ts.map +1 -0
- package/dist/src/scales/zoomDomainUtils.js +69 -0
- package/dist/src/screenshotHarness.d.ts +16 -0
- package/dist/src/screenshotHarness.d.ts.map +1 -0
- package/dist/src/screenshotHarness.js +242 -0
- package/dist/src/singlePageApp.js +1 -1
- package/dist/src/spec/data.d.ts +23 -3
- package/dist/src/spec/genome.d.ts +22 -2
- package/dist/src/spec/parameter.d.ts +39 -2
- package/dist/src/spec/root.d.ts +20 -1
- package/dist/src/spec/scale.d.ts +41 -5
- package/dist/src/styles/genome-spy.css +8 -0
- package/dist/src/styles/genome-spy.css.d.ts +1 -1
- package/dist/src/styles/genome-spy.css.d.ts.map +1 -1
- package/dist/src/styles/genome-spy.css.js +8 -0
- package/dist/src/tooltip/dataTooltipHandler.js +59 -10
- package/dist/src/types/embedApi.d.ts +19 -0
- package/dist/src/utils/inferSpecBaseUrl.d.ts +14 -0
- package/dist/src/utils/inferSpecBaseUrl.d.ts.map +1 -0
- package/dist/src/utils/inferSpecBaseUrl.js +73 -0
- package/dist/src/utils/interactionEvent.d.ts +53 -3
- package/dist/src/utils/interactionEvent.d.ts.map +1 -1
- package/dist/src/utils/interactionEvent.js +62 -1
- package/dist/src/utils/radixSort.d.ts.map +1 -1
- package/dist/src/utils/radixSort.js +26 -1
- package/dist/src/view/containerMutationHelper.d.ts.map +1 -1
- package/dist/src/view/containerMutationHelper.js +8 -0
- package/dist/src/view/dataReadiness.d.ts +2 -2
- package/dist/src/view/dataReadiness.d.ts.map +1 -1
- package/dist/src/view/dataReadiness.js +63 -58
- package/dist/src/view/facetView.d.ts +1 -1
- package/dist/src/view/facetView.js +1 -1
- package/dist/src/view/gridView/gridChild.d.ts +7 -0
- package/dist/src/view/gridView/gridChild.d.ts.map +1 -1
- package/dist/src/view/gridView/gridChild.js +180 -11
- package/dist/src/view/gridView/gridView.d.ts.map +1 -1
- package/dist/src/view/gridView/gridView.js +60 -17
- package/dist/src/view/unitView.d.ts +1 -1
- package/dist/src/view/zoom.d.ts +14 -2
- package/dist/src/view/zoom.d.ts.map +1 -1
- package/dist/src/view/zoom.js +373 -76
- package/package.json +5 -2
package/dist/bundle/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
(function(Et,ft){typeof exports=="object"&&typeof module<"u"?ft(exports):typeof define=="function"&&define.amd?define(["exports"],ft):(Et=typeof globalThis<"u"?globalThis:Et||self,ft(Et.genomeSpyEmbed={}))})(this,(function(Et){"use strict";function ft(n,e,t){return n.fields=e||[],n.fname=t,n}function s2(n){return n==null?null:n.fname}function o2(n){return n==null?null:n.fields}function a2(n){return n.length===1?c2(n[0]):l2(n)}const c2=n=>function(e){return e[n]},l2=n=>{const e=n.length;return function(t){for(let r=0;r<e;++r)t=t[n[r]];return t}};function be(n){throw Error(n)}function u2(n){const e=[],t=n.length;let r=null,i=0,s="",o,a,l;n=n+"";function c(){e.push(s+n.substring(o,a)),s="",o=a+1}for(o=a=0;a<t;++a)if(l=n[a],l==="\\")s+=n.substring(o,a++),o=a;else if(l===r)c(),r=null,i=-1;else{if(r)continue;o===i&&l==='"'||o===i&&l==="'"?(o=a+1,r=l):l==="."&&!i?a>o?c():o=a+1:l==="["?(a>o&&c(),i=o=a+1):l==="]"&&(i||be("Access path missing open bracket: "+n),i>0&&c(),i=0,o=a+1)}return i&&be("Access path missing closing bracket: "+n),r&&be("Access path missing closing quote: "+n),a>o&&(a++,c()),e}function wo(n,e,t){const r=u2(n);return n=r.length===1?r[0]:n,ft((t&&t.get||a2)(r),[n],e||n)}wo("id");const yo=ft(n=>n,[],"identity");ft(()=>0,[],"zero"),ft(()=>1,[],"one"),ft(()=>!0,[],"true"),ft(()=>!1,[],"false");const f2=new Set([...Object.getOwnPropertyNames(Object.prototype).filter(n=>typeof Object.prototype[n]=="function"),"__proto__"]);var Ce=Array.isArray;function ze(n){return n===Object(n)}function bt(n){return n[n.length-1]}function Ni(n){return n==null||n===""?null:+n}const TA=n=>e=>n*Math.exp(e),PA=n=>e=>Math.log(n*e),A2=n=>e=>Math.sign(e)*Math.log1p(Math.abs(e/n)),h2=n=>e=>Math.sign(e)*Math.expm1(Math.abs(e))*n,Co=n=>e=>e<0?-Math.pow(-e,n):Math.pow(e,n);function Mc(n,e,t,r){const i=t(n[0]),s=t(bt(n)),o=(s-i)*e;return[r(i-o),r(s-o)]}function d2(n,e){return Mc(n,e,Ni,yo)}function g2(n,e){var t=Math.sign(n[0]);return Mc(n,e,PA(t),TA(t))}function p2(n,e,t){return Mc(n,e,Co(t),Co(1/t))}function Io(n,e,t,r,i){const s=r(n[0]),o=r(bt(n)),a=e!=null?r(e):(s+o)/2;return[i(a+(s-a)*t),i(a+(o-a)*t)]}function LA(n,e,t){return Io(n,e,t,Ni,yo)}function OA(n,e,t){const r=Math.sign(n[0]);return Io(n,e,t,PA(r),TA(r))}function Nc(n,e,t,r){return Io(n,e,t,Co(r),Co(1/r))}function m2(n,e,t,r){return Io(n,e,t,A2(r),h2(r))}function Tc(n){return n!=null?Ce(n)?n:[n]:[]}function w2(n,e,t){let r=n[0],i=n[1],s;return i<r&&(s=i,i=r,r=s),s=i-r,s>=t-e?[e,t]:[r=Math.min(Math.max(r,e),t-s),r+s]}function At(n){return typeof n=="function"}const y2="descending";function UA(n,e,t){t=t||{},e=Tc(e)||[];const r=[],i=[],s={},o=t.comparator||C2;return Tc(n).forEach((a,l)=>{a!=null&&(r.push(e[l]===y2?-1:1),i.push(a=At(a)?a:wo(a,null,t)),(o2(a)||[]).forEach(c=>s[c]=1))}),i.length===0?null:ft(o(i,r),Object.keys(s))}const GA=(n,e)=>(n<e||n==null)&&e!=null?-1:(n>e||e==null)&&n!=null?1:(e=e instanceof Date?+e:e,(n=n instanceof Date?+n:n)!==n&&e===e?-1:e!==e&&n===n?1:0),C2=(n,e)=>n.length===1?I2(n[0],e[0]):E2(n,e,n.length),I2=(n,e)=>function(t,r){return GA(n(t),n(r))*e},E2=(n,e,t)=>(e.push(0),function(r,i){let s,o=0,a=-1;for(;o===0&&++a<t;)s=n[a],o=GA(s(r),s(i));return o*e[a]});function b2(n){for(let e,t,r=1,i=arguments.length;r<i;++r){e=arguments[r];for(t in e)n[t]=e[t]}return n}function Qr(n,e){return Object.hasOwn(n,e)}function Ti(n){return typeof n=="boolean"}function x2(n){return Object.prototype.toString.call(n)==="[object Date]"}function B2(n){return n&&At(n[Symbol.iterator])}function Ye(n){return typeof n=="number"}function v2(n){return Object.prototype.toString.call(n)==="[object RegExp]"}function le(n){return typeof n=="string"}function zA(n,e){const t=n[0],r=bt(n),i=+e;return i?i===1?r:t+i*(r-t):t}function Pi(n){return n&&bt(n)-n[0]||0}function Pc(n){return Ce(n)?`[${n.map(e=>e===null?"null":Pc(e))}]`:ze(n)||le(n)?JSON.stringify(n).replaceAll("\u2028","\\u2028").replaceAll("\u2029","\\u2029"):n}function S2(n){return n==null||n===""?null:!n||n==="false"||n==="0"?!1:!!n}const Q2=n=>Ye(n)||x2(n)?n:Date.parse(n);function D2(n,e){return e=e||Q2,n==null||n===""?null:e(n)}function k2(n){return n==null||n===""?null:n+""}function Eo(n){const e={},t=n.length;for(let r=0;r<t;++r)e[n[r]]=!0;return e}const bo=globalThis,Lc=bo.ShadowRoot&&(bo.ShadyCSS===void 0||bo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,HA=Symbol(),VA=new WeakMap;let F2=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==HA)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Lc&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=VA.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&VA.set(t,e))}return e}toString(){return this.cssText}};const R2=n=>new F2(typeof n=="string"?n:n+"",void 0,HA),M2=(n,e)=>{if(Lc)n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),i=bo.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=t.cssText,n.appendChild(r)}},_A=Lc?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return R2(t)})(n):n;const{is:N2,defineProperty:T2,getOwnPropertyDescriptor:P2,getOwnPropertyNames:L2,getOwnPropertySymbols:O2,getPrototypeOf:U2}=Object,xo=globalThis,YA=xo.trustedTypes,G2=YA?YA.emptyScript:"",z2=xo.reactiveElementPolyfillSupport,Li=(n,e)=>n,Oc={toAttribute(n,e){switch(e){case Boolean:n=n?G2:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let t=n;switch(e){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},JA=(n,e)=>!N2(n,e),KA={attribute:!0,type:String,converter:Oc,reflect:!1,useDefault:!1,hasChanged:JA};Symbol.metadata??=Symbol("metadata"),xo.litPropertyMetadata??=new WeakMap;let Dr=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=KA){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(e,r,t);i!==void 0&&T2(this.prototype,e,i)}}static getPropertyDescriptor(e,t,r){const{get:i,set:s}=P2(this.prototype,e)??{get(){return this[t]},set(o){this[t]=o}};return{get:i,set(o){const a=i?.call(this);s?.call(this,o),this.requestUpdate(e,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??KA}static _$Ei(){if(this.hasOwnProperty(Li("elementProperties")))return;const e=U2(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Li("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Li("properties"))){const t=this.properties,r=[...L2(t),...O2(t)];for(const i of r)this.createProperty(i,t[i])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[r,i]of t)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const i=this._$Eu(t,r);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const i of r)t.unshift(_A(i))}else e!==void 0&&t.push(_A(e));return t}static _$Eu(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return M2(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){const r=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,r);if(i!==void 0&&r.reflect===!0){const s=(r.converter?.toAttribute!==void 0?r.converter:Oc).toAttribute(t,r.type);this._$Em=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(e,t){const r=this.constructor,i=r._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const s=r.getPropertyOptions(i),o=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:Oc;this._$Em=i;const a=o.fromAttribute(t,s.type);this[i]=a??this._$Ej?.get(i)??a,this._$Em=null}}requestUpdate(e,t,r,i=!1,s){if(e!==void 0){const o=this.constructor;if(i===!1&&(s=this[e]),r??=o.getPropertyOptions(e),!((r.hasChanged??JA)(s,t)||r.useDefault&&r.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(o._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:i,wrapped:s},o){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,o??t??this[e]),s!==!0||o!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),i===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[i,s]of this._$Ep)this[i]=s;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[i,s]of r){const{wrapped:o}=s,a=this[i];o!==!0||this._$AL.has(i)||a===void 0||this.C(i,void 0,s,a)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};Dr.elementStyles=[],Dr.shadowRootOptions={mode:"open"},Dr[Li("elementProperties")]=new Map,Dr[Li("finalized")]=new Map,z2?.({ReactiveElement:Dr}),(xo.reactiveElementVersions??=[]).push("2.1.2");const Uc=globalThis,qA=n=>n,Bo=Uc.trustedTypes,jA=Bo?Bo.createPolicy("lit-html",{createHTML:n=>n}):void 0,WA="$lit$",pn=`lit$${Math.random().toFixed(9).slice(2)}$`,XA="?"+pn,H2=`<${XA}>`,_n=document,Oi=()=>_n.createComment(""),Ui=n=>n===null||typeof n!="object"&&typeof n!="function",Gc=Array.isArray,V2=n=>Gc(n)||typeof n?.[Symbol.iterator]=="function",zc=`[
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
4
|
-
\r]`),t
|
|
5
|
-
`)}function a(f,h){return h==null&&(h=
|
|
1
|
+
(function(xt,At){typeof exports=="object"&&typeof module<"u"?At(exports):typeof define=="function"&&define.amd?define(["exports"],At):(xt=typeof globalThis<"u"?globalThis:xt||self,At(xt.genomeSpyEmbed={}))})(this,(function(xt){"use strict";function At(t,e,n){return t.fields=e||[],t.fname=n,t}function jE(t){return t==null?null:t.fname}function WE(t){return t==null?null:t.fields}function XE(t){return t.length===1?ZE(t[0]):$E(t)}const ZE=t=>function(e){return e[t]},$E=t=>{const e=t.length;return function(n){for(let i=0;i<e;++i)n=n[t[i]];return n}};function xe(t){throw Error(t)}function IA(t){const e=[],n=t.length;let i=null,r=0,s="",o,a,l;t=t+"";function c(){e.push(s+t.substring(o,a)),s="",o=a+1}for(o=a=0;a<n;++a)if(l=t[a],l==="\\")s+=t.substring(o,a++),o=a;else if(l===i)c(),i=null,r=-1;else{if(i)continue;o===r&&l==='"'||o===r&&l==="'"?(o=a+1,i=l):l==="."&&!r?a>o?c():o=a+1:l==="["?(a>o&&c(),r=o=a+1):l==="]"&&(r||xe("Access path missing open bracket: "+t),r>0&&c(),r=0,o=a+1)}return r&&xe("Access path missing closing bracket: "+t),i&&xe("Access path missing closing quote: "+t),a>o&&(a++,c()),e}function Fo(t,e,n){const i=IA(t);return t=i.length===1?i[0]:t,At((n&&n.get||XE)(i),[t],e||t)}Fo("id");const No=At(t=>t,[],"identity");At(()=>0,[],"zero"),At(()=>1,[],"one"),At(()=>!0,[],"true"),At(()=>!1,[],"false");const eI=new Set([...Object.getOwnPropertyNames(Object.prototype).filter(t=>typeof Object.prototype[t]=="function"),"__proto__"]);var be=Array.isArray;function Ge(t){return t===Object(t)}function vt(t){return t[t.length-1]}function Jr(t){return t==null||t===""?null:+t}const xA=t=>e=>t*Math.exp(e),vA=t=>e=>Math.log(t*e),tI=t=>e=>Math.sign(e)*Math.log1p(Math.abs(e/t)),nI=t=>e=>Math.sign(e)*Math.expm1(Math.abs(e))*t,Mo=t=>e=>e<0?-Math.pow(-e,t):Math.pow(e,t);function al(t,e,n,i){const r=n(t[0]),s=n(vt(t)),o=(s-r)*e;return[i(r-o),i(s-o)]}function iI(t,e){return al(t,e,Jr,No)}function rI(t,e){var n=Math.sign(t[0]);return al(t,e,vA(n),xA(n))}function sI(t,e,n){return al(t,e,Mo(n),Mo(1/n))}function To(t,e,n,i,r){const s=i(t[0]),o=i(vt(t)),a=e!=null?i(e):(s+o)/2;return[r(a+(s-a)*n),r(a+(o-a)*n)]}function BA(t,e,n){return To(t,e,n,Jr,No)}function SA(t,e,n){const i=Math.sign(t[0]);return To(t,e,n,vA(i),xA(i))}function cl(t,e,n,i){return To(t,e,n,Mo(i),Mo(1/i))}function DA(t,e,n,i){return To(t,e,n,tI(i),nI(i))}function ll(t){return t!=null?be(t)?t:[t]:[]}function oI(t,e,n){let i=t[0],r=t[1],s;return r<i&&(s=r,r=i,i=s),s=r-i,s>=n-e?[e,n]:[i=Math.min(Math.max(i,e),n-s),i+s]}function dt(t){return typeof t=="function"}const aI="descending";function QA(t,e,n){n=n||{},e=ll(e)||[];const i=[],r=[],s={},o=n.comparator||cI;return ll(t).forEach((a,l)=>{a!=null&&(i.push(e[l]===aI?-1:1),r.push(a=dt(a)?a:Fo(a,null,n)),(WE(a)||[]).forEach(c=>s[c]=1))}),r.length===0?null:At(o(r,i),Object.keys(s))}const kA=(t,e)=>(t<e||t==null)&&e!=null?-1:(t>e||e==null)&&t!=null?1:(e=e instanceof Date?+e:e,(t=t instanceof Date?+t:t)!==t&&e===e?-1:e!==e&&t===t?1:0),cI=(t,e)=>t.length===1?lI(t[0],e[0]):uI(t,e,t.length),lI=(t,e)=>function(n,i){return kA(t(n),t(i))*e},uI=(t,e,n)=>(e.push(0),function(i,r){let s,o=0,a=-1;for(;o===0&&++a<n;)s=t[a],o=kA(s(i),s(r));return o*e[a]});function fI(t){for(let e,n,i=1,r=arguments.length;i<r;++i){e=arguments[i];for(n in e)t[n]=e[n]}return t}function Ui(t,e){return Object.hasOwn(t,e)}function qr(t){return typeof t=="boolean"}function hI(t){return Object.prototype.toString.call(t)==="[object Date]"}function AI(t){return t&&dt(t[Symbol.iterator])}function qe(t){return typeof t=="number"}function dI(t){return Object.prototype.toString.call(t)==="[object RegExp]"}function le(t){return typeof t=="string"}function RA(t,e){const n=t[0],i=vt(t),r=+e;return r?r===1?i:n+r*(i-n):n}function Kr(t){return t&&vt(t)-t[0]||0}function ul(t){return be(t)?`[${t.map(e=>e===null?"null":ul(e))}]`:Ge(t)||le(t)?JSON.stringify(t).replaceAll("\u2028","\\u2028").replaceAll("\u2029","\\u2029"):t}function gI(t){return t==null||t===""?null:!t||t==="false"||t==="0"?!1:!!t}const pI=t=>qe(t)||hI(t)?t:Date.parse(t);function mI(t,e){return e=e||pI,t==null||t===""?null:e(t)}function wI(t){return t==null||t===""?null:t+""}function Po(t){const e={},n=t.length;for(let i=0;i<n;++i)e[t[i]]=!0;return e}const Lo=globalThis,fl=Lo.ShadowRoot&&(Lo.ShadyCSS===void 0||Lo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,FA=Symbol(),NA=new WeakMap;let yI=class{constructor(e,n,i){if(this._$cssResult$=!0,i!==FA)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n}get styleSheet(){let e=this.o;const n=this.t;if(fl&&e===void 0){const i=n!==void 0&&n.length===1;i&&(e=NA.get(n)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&NA.set(n,e))}return e}toString(){return this.cssText}};const CI=t=>new yI(typeof t=="string"?t:t+"",void 0,FA),bI=(t,e)=>{if(fl)t.adoptedStyleSheets=e.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of e){const i=document.createElement("style"),r=Lo.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=n.cssText,t.appendChild(i)}},MA=fl?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let n="";for(const i of e.cssRules)n+=i.cssText;return CI(n)})(t):t;const{is:EI,defineProperty:II,getOwnPropertyDescriptor:xI,getOwnPropertyNames:vI,getOwnPropertySymbols:BI,getPrototypeOf:SI}=Object,Oo=globalThis,TA=Oo.trustedTypes,DI=TA?TA.emptyScript:"",QI=Oo.reactiveElementPolyfillSupport,jr=(t,e)=>t,hl={toAttribute(t,e){switch(e){case Boolean:t=t?DI:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=t!==null;break;case Number:n=t===null?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch{n=null}}return n}},PA=(t,e)=>!EI(t,e),LA={attribute:!0,type:String,converter:hl,reflect:!1,useDefault:!1,hasChanged:PA};Symbol.metadata??=Symbol("metadata"),Oo.litPropertyMetadata??=new WeakMap;let _i=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,n=LA){if(n.state&&(n.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((n=Object.create(n)).wrapped=!0),this.elementProperties.set(e,n),!n.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(e,i,n);r!==void 0&&II(this.prototype,e,r)}}static getPropertyDescriptor(e,n,i){const{get:r,set:s}=xI(this.prototype,e)??{get(){return this[n]},set(o){this[n]=o}};return{get:r,set(o){const a=r?.call(this);s?.call(this,o),this.requestUpdate(e,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??LA}static _$Ei(){if(this.hasOwnProperty(jr("elementProperties")))return;const e=SI(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(jr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(jr("properties"))){const n=this.properties,i=[...vI(n),...BI(n)];for(const r of i)this.createProperty(r,n[r])}const e=this[Symbol.metadata];if(e!==null){const n=litPropertyMetadata.get(e);if(n!==void 0)for(const[i,r]of n)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[n,i]of this.elementProperties){const r=this._$Eu(n,i);r!==void 0&&this._$Eh.set(r,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const n=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const r of i)n.unshift(MA(r))}else e!==void 0&&n.push(MA(e));return n}static _$Eu(e,n){const i=n.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,n=this.constructor.elementProperties;for(const i of n.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return bI(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,n,i){this._$AK(e,i)}_$ET(e,n){const i=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,i);if(r!==void 0&&i.reflect===!0){const s=(i.converter?.toAttribute!==void 0?i.converter:hl).toAttribute(n,i.type);this._$Em=e,s==null?this.removeAttribute(r):this.setAttribute(r,s),this._$Em=null}}_$AK(e,n){const i=this.constructor,r=i._$Eh.get(e);if(r!==void 0&&this._$Em!==r){const s=i.getPropertyOptions(r),o=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:hl;this._$Em=r;const a=o.fromAttribute(n,s.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(e,n,i,r=!1,s){if(e!==void 0){const o=this.constructor;if(r===!1&&(s=this[e]),i??=o.getPropertyOptions(e),!((i.hasChanged??PA)(s,n)||i.useDefault&&i.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(o._$Eu(e,i))))return;this.C(e,n,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,n,{useDefault:i,reflect:r,wrapped:s},o){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,o??n??this[e]),s!==!0||o!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(n=void 0),this._$AL.set(e,n)),r===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[r,s]of this._$Ep)this[r]=s;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[r,s]of i){const{wrapped:o}=s,a=this[r];o!==!0||this._$AL.has(r)||a===void 0||this.C(r,void 0,s,a)}}let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(n)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(n)}willUpdate(e){}_$AE(e){this._$EO?.forEach(n=>n.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(n=>this._$ET(n,this[n])),this._$EM()}updated(e){}firstUpdated(e){}};_i.elementStyles=[],_i.shadowRootOptions={mode:"open"},_i[jr("elementProperties")]=new Map,_i[jr("finalized")]=new Map,QI?.({ReactiveElement:_i}),(Oo.reactiveElementVersions??=[]).push("2.1.2");const Al=globalThis,OA=t=>t,Uo=Al.trustedTypes,UA=Uo?Uo.createPolicy("lit-html",{createHTML:t=>t}):void 0,_A="$lit$",In=`lit$${Math.random().toFixed(9).slice(2)}$`,zA="?"+In,kI=`<${zA}>`,Zn=document,Wr=()=>Zn.createComment(""),Xr=t=>t===null||typeof t!="object"&&typeof t!="function",dl=Array.isArray,RI=t=>dl(t)||typeof t?.[Symbol.iterator]=="function",gl=`[
|
|
2
|
+
\f\r]`,Zr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,GA=/-->/g,HA=/>/g,$n=RegExp(`>|${gl}(?:([^\\s"'>=/]+)(${gl}*=${gl}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),YA=/'/g,VA=/"/g,JA=/^(?:script|style|textarea|title)$/i,FI=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),ae=FI(1),ei=Symbol.for("lit-noChange"),Ie=Symbol.for("lit-nothing"),qA=new WeakMap,ti=Zn.createTreeWalker(Zn,129);function KA(t,e){if(!dl(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return UA!==void 0?UA.createHTML(e):e}const NI=(t,e)=>{const n=t.length-1,i=[];let r,s=e===2?"<svg>":e===3?"<math>":"",o=Zr;for(let a=0;a<n;a++){const l=t[a];let c,u,f=-1,h=0;for(;h<l.length&&(o.lastIndex=h,u=o.exec(l),u!==null);)h=o.lastIndex,o===Zr?u[1]==="!--"?o=GA:u[1]!==void 0?o=HA:u[2]!==void 0?(JA.test(u[2])&&(r=RegExp("</"+u[2],"g")),o=$n):u[3]!==void 0&&(o=$n):o===$n?u[0]===">"?(o=r??Zr,f=-1):u[1]===void 0?f=-2:(f=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?$n:u[3]==='"'?VA:YA):o===VA||o===YA?o=$n:o===GA||o===HA?o=Zr:(o=$n,r=void 0);const A=o===$n&&t[a+1].startsWith("/>")?" ":"";s+=o===Zr?l+kI:f>=0?(i.push(c),l.slice(0,f)+_A+l.slice(f)+In+A):l+In+(f===-2?a:A)}return[KA(t,s+(t[n]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class $r{constructor({strings:e,_$litType$:n},i){let r;this.parts=[];let s=0,o=0;const a=e.length-1,l=this.parts,[c,u]=NI(e,n);if(this.el=$r.createElement(c,i),ti.currentNode=this.el.content,n===2||n===3){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(r=ti.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const f of r.getAttributeNames())if(f.endsWith(_A)){const h=u[o++],A=r.getAttribute(f).split(In),d=/([.?@])?(.*)/.exec(h);l.push({type:1,index:s,name:d[2],strings:A,ctor:d[1]==="."?TI:d[1]==="?"?PI:d[1]==="@"?LI:_o}),r.removeAttribute(f)}else f.startsWith(In)&&(l.push({type:6,index:s}),r.removeAttribute(f));if(JA.test(r.tagName)){const f=r.textContent.split(In),h=f.length-1;if(h>0){r.textContent=Uo?Uo.emptyScript:"";for(let A=0;A<h;A++)r.append(f[A],Wr()),ti.nextNode(),l.push({type:2,index:++s});r.append(f[h],Wr())}}}else if(r.nodeType===8)if(r.data===zA)l.push({type:2,index:s});else{let f=-1;for(;(f=r.data.indexOf(In,f+1))!==-1;)l.push({type:7,index:s}),f+=In.length-1}s++}}static createElement(e,n){const i=Zn.createElement("template");return i.innerHTML=e,i}}function zi(t,e,n=t,i){if(e===ei)return e;let r=i!==void 0?n._$Co?.[i]:n._$Cl;const s=Xr(e)?void 0:e._$litDirective$;return r?.constructor!==s&&(r?._$AO?.(!1),s===void 0?r=void 0:(r=new s(t),r._$AT(t,n,i)),i!==void 0?(n._$Co??=[])[i]=r:n._$Cl=r),r!==void 0&&(e=zi(t,r._$AS(t,e.values),r,i)),e}class MI{constructor(e,n){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:n},parts:i}=this._$AD,r=(e?.creationScope??Zn).importNode(n,!0);ti.currentNode=r;let s=ti.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new es(s,s.nextSibling,this,e):l.type===1?c=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(c=new OI(s,this,e)),this._$AV.push(c),l=i[++a]}o!==l?.index&&(s=ti.nextNode(),o++)}return ti.currentNode=Zn,r}p(e){let n=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,n),n+=i.strings.length-2):i._$AI(e[n])),n++}}class es{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,n,i,r){this.type=2,this._$AH=Ie,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=i,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&e?.nodeType===11&&(e=n.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,n=this){e=zi(this,e,n),Xr(e)?e===Ie||e==null||e===""?(this._$AH!==Ie&&this._$AR(),this._$AH=Ie):e!==this._$AH&&e!==ei&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):RI(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Ie&&Xr(this._$AH)?this._$AA.nextSibling.data=e:this.T(Zn.createTextNode(e)),this._$AH=e}$(e){const{values:n,_$litType$:i}=e,r=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=$r.createElement(KA(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===r)this._$AH.p(n);else{const s=new MI(r,this),o=s.u(this.options);s.p(n),this.T(o),this._$AH=s}}_$AC(e){let n=qA.get(e.strings);return n===void 0&&qA.set(e.strings,n=new $r(e)),n}k(e){dl(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let i,r=0;for(const s of e)r===n.length?n.push(i=new es(this.O(Wr()),this.O(Wr()),this,this.options)):i=n[r],i._$AI(s),r++;r<n.length&&(this._$AR(i&&i._$AB.nextSibling,r),n.length=r)}_$AR(e=this._$AA.nextSibling,n){for(this._$AP?.(!1,!0,n);e!==this._$AB;){const i=OA(e).nextSibling;OA(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}class _o{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,n,i,r,s){this.type=1,this._$AH=Ie,this._$AN=void 0,this.element=e,this.name=n,this._$AM=r,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Ie}_$AI(e,n=this,i,r){const s=this.strings;let o=!1;if(s===void 0)e=zi(this,e,n,0),o=!Xr(e)||e!==this._$AH&&e!==ei,o&&(this._$AH=e);else{const a=e;let l,c;for(e=s[0],l=0;l<s.length-1;l++)c=zi(this,a[i+l],n,l),c===ei&&(c=this._$AH[l]),o||=!Xr(c)||c!==this._$AH[l],c===Ie?e=Ie:e!==Ie&&(e+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!r&&this.j(e)}j(e){e===Ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class TI extends _o{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ie?void 0:e}}class PI extends _o{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ie)}}let LI=class extends _o{constructor(e,n,i,r,s){super(e,n,i,r,s),this.type=5}_$AI(e,n=this){if((e=zi(this,e,n,0)??Ie)===ei)return;const i=this._$AH,r=e===Ie&&i!==Ie||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==Ie&&(i===Ie||r);r&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}};class OI{constructor(e,n,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){zi(this,e)}}const UI=Al.litHtmlPolyfillSupport;UI?.($r,es),(Al.litHtmlVersions??=[]).push("3.3.2");const ts=(t,e,n)=>{const i=n?.renderBefore??e;let r=i._$litPart$;if(r===void 0){const s=n?.renderBefore??null;i._$litPart$=r=new es(e.insertBefore(Wr(),s),s,void 0,n??{})}return r._$AI(t),r};const pl=globalThis;let zo=class extends _i{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ts(n,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ei}};zo._$litElement$=!0,zo.finalized=!0,pl.litElementHydrateSupport?.({LitElement:zo});const _I=pl.litElementPolyfillSupport;_I?.({LitElement:zo}),(pl.litElementVersions??=[]).push("4.2.2");var jA={},ml={},wl=34,ns=10,yl=13;function WA(t){return new Function("d","return {"+t.map(function(e,n){return JSON.stringify(e)+": d["+n+'] || ""'}).join(",")+"}")}function zI(t,e){var n=WA(t);return function(i,r){return e(n(i),r,t)}}function XA(t){var e=Object.create(null),n=[];return t.forEach(function(i){for(var r in i)r in e||n.push(e[r]=r)}),n}function at(t,e){var n=t+"",i=n.length;return i<e?new Array(e-i+1).join(0)+n:n}function GI(t){return t<0?"-"+at(-t,6):t>9999?"+"+at(t,6):at(t,4)}function HI(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),i=t.getUTCSeconds(),r=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":GI(t.getUTCFullYear())+"-"+at(t.getUTCMonth()+1,2)+"-"+at(t.getUTCDate(),2)+(r?"T"+at(e,2)+":"+at(n,2)+":"+at(i,2)+"."+at(r,3)+"Z":i?"T"+at(e,2)+":"+at(n,2)+":"+at(i,2)+"Z":n||e?"T"+at(e,2)+":"+at(n,2)+"Z":"")}function ZA(t){var e=new RegExp('["'+t+`
|
|
4
|
+
\r]`),n=t.charCodeAt(0);function i(f,h){var A,d,g=r(f,function(m,p){if(A)return A(m,p-1);d=m,A=h?zI(m,h):WA(m)});return g.columns=d||[],g}function r(f,h){var A=[],d=f.length,g=0,m=0,p,w=d<=0,C=!1;f.charCodeAt(d-1)===ns&&--d,f.charCodeAt(d-1)===yl&&--d;function y(){if(w)return ml;if(C)return C=!1,jA;var x,E=g,S;if(f.charCodeAt(E)===wl){for(;g++<d&&f.charCodeAt(g)!==wl||f.charCodeAt(++g)===wl;);return(x=g)>=d?w=!0:(S=f.charCodeAt(g++))===ns?C=!0:S===yl&&(C=!0,f.charCodeAt(g)===ns&&++g),f.slice(E+1,x-1).replace(/""/g,'"')}for(;g<d;){if((S=f.charCodeAt(x=g++))===ns)C=!0;else if(S===yl)C=!0,f.charCodeAt(g)===ns&&++g;else if(S!==n)continue;return f.slice(E,x)}return w=!0,f.slice(E,d)}for(;(p=y())!==ml;){for(var I=[];p!==jA&&p!==ml;)I.push(p),p=y();h&&(I=h(I,m++))==null||A.push(I)}return A}function s(f,h){return f.map(function(A){return h.map(function(d){return u(A[d])}).join(t)})}function o(f,h){return h==null&&(h=XA(f)),[h.map(u).join(t)].concat(s(f,h)).join(`
|
|
5
|
+
`)}function a(f,h){return h==null&&(h=XA(f)),s(f,h).join(`
|
|
6
6
|
`)}function l(f){return f.map(c).join(`
|
|
7
|
-
`)}function c(f){return f.map(u).join(n)}function u(f){return f==null?"":f instanceof Date?tI(f):e.test(f+="")?'"'+f.replace(/"/g,'""')+'"':f}return{parse:r,parseRows:i,format:o,formatBody:a,formatRows:l,formatRow:c,formatValue:u}}var nI=ch(" "),rI=nI.parseRows;function iI(n){return n}function sI(n){if(n==null)return iI;var e,t,r=n.scale[0],i=n.scale[1],s=n.translate[0],o=n.translate[1];return function(a,l){l||(e=t=0);var c=2,u=a.length,f=new Array(u);for(f[0]=(e+=a[0])*r+s,f[1]=(t+=a[1])*i+o;c<u;)f[c]=a[c],++c;return f}}function oI(n,e){for(var t,r=n.length,i=r-e;i<--r;)t=n[i],n[i++]=n[r],n[r]=t}function aI(n,e){return typeof e=="string"&&(e=n.objects[e]),e.type==="GeometryCollection"?{type:"FeatureCollection",features:e.geometries.map(function(t){return lh(n,t)})}:lh(n,e)}function lh(n,e){var t=e.id,r=e.bbox,i=e.properties==null?{}:e.properties,s=uh(n,e);return t==null&&r==null?{type:"Feature",properties:i,geometry:s}:r==null?{type:"Feature",id:t,properties:i,geometry:s}:{type:"Feature",id:t,bbox:r,properties:i,geometry:s}}function uh(n,e){var t=sI(n.transform),r=n.arcs;function i(u,f){f.length&&f.pop();for(var h=r[u<0?~u:u],A=0,d=h.length;A<d;++A)f.push(t(h[A],A));u<0&&oI(f,d)}function s(u){return t(u)}function o(u){for(var f=[],h=0,A=u.length;h<A;++h)i(u[h],f);return f.length<2&&f.push(f[0]),f}function a(u){for(var f=o(u);f.length<4;)f.push(f[0]);return f}function l(u){return u.map(a)}function c(u){var f=u.type,h;switch(f){case"GeometryCollection":return{type:f,geometries:u.geometries.map(c)};case"Point":h=s(u.coordinates);break;case"MultiPoint":h=u.coordinates.map(s);break;case"LineString":h=o(u.arcs);break;case"MultiLineString":h=u.arcs.map(o);break;case"Polygon":h=l(u.arcs);break;case"MultiPolygon":h=u.arcs.map(l);break;default:return null}return{type:f,coordinates:h}}return c(e)}function cI(n,e){var t={},r={},i={},s=[],o=-1;e.forEach(function(c,u){var f=n.arcs[c<0?~c:c],h;f.length<3&&!f[1][0]&&!f[1][1]&&(h=e[++o],e[o]=c,e[u]=h)}),e.forEach(function(c){var u=a(c),f=u[0],h=u[1],A,d;if(A=i[f])if(delete i[A.end],A.push(c),A.end=h,d=r[h]){delete r[d.start];var g=d===A?A:A.concat(d);r[g.start=A.start]=i[g.end=d.end]=g}else r[A.start]=i[A.end]=A;else if(A=r[h])if(delete r[A.start],A.unshift(c),A.start=f,d=i[f]){delete i[d.end];var p=d===A?A:d.concat(A);r[p.start=d.start]=i[p.end=A.end]=p}else r[A.start]=i[A.end]=A;else A=[c],r[A.start=f]=i[A.end=h]=A});function a(c){var u=n.arcs[c<0?~c:c],f=u[0],h;return n.transform?(h=[0,0],u.forEach(function(A){h[0]+=A[0],h[1]+=A[1]})):h=u[u.length-1],c<0?[h,f]:[f,h]}function l(c,u){for(var f in c){var h=c[f];delete u[h.start],delete h.start,delete h.end,h.forEach(function(A){t[A<0?~A:A]=1}),s.push(h)}}return l(i,r),l(r,i),e.forEach(function(c){t[c<0?~c:c]||s.push([c])}),s}function lI(n){return uh(n,uI.apply(this,arguments))}function uI(n,e,t){var r,i,s;if(arguments.length>1)r=fI(n,e,t);else for(i=0,r=new Array(s=n.arcs.length);i<s;++i)r[i]=i;return{type:"MultiLineString",arcs:cI(n,r)}}function fI(n,e,t){var r=[],i=[],s;function o(f){var h=f<0?~f:f;(i[h]||(i[h]=[])).push({i:f,g:s})}function a(f){f.forEach(o)}function l(f){f.forEach(a)}function c(f){f.forEach(l)}function u(f){switch(s=f,f.type){case"GeometryCollection":f.geometries.forEach(u);break;case"LineString":a(f.arcs);break;case"MultiLineString":case"Polygon":l(f.arcs);break;case"MultiPolygon":c(f.arcs);break}}return u(e),i.forEach(t==null?function(f){r.push(f[0].i)}:function(f){t(f[0].g,f[f.length-1].g)&&r.push(f[0].i)}),r}function qn(n,e){return n==null||e==null?NaN:n<e?-1:n>e?1:n>=e?0:NaN}function AI(n,e){return n==null||e==null?NaN:e<n?-1:e>n?1:e>=n?0:NaN}function jn(n){let e,t,r;n.length!==2?(e=qn,t=(a,l)=>qn(n(a),l),r=(a,l)=>n(a)-l):(e=n===qn||n===AI?n:hI,t=n,r=n);function i(a,l,c=0,u=a.length){if(c<u){if(e(l,l)!==0)return u;do{const f=c+u>>>1;t(a[f],l)<0?c=f+1:u=f}while(c<u)}return c}function s(a,l,c=0,u=a.length){if(c<u){if(e(l,l)!==0)return u;do{const f=c+u>>>1;t(a[f],l)<=0?c=f+1:u=f}while(c<u)}return c}function o(a,l,c=0,u=a.length){const f=i(a,l,c,u-1);return f>c&&r(a[f-1],l)>-r(a[f],l)?f-1:f}return{left:i,center:o,right:s}}function hI(){return 0}function fh(n){return n===null?NaN:+n}function*dI(n,e){if(e===void 0)for(let t of n)t!=null&&(t=+t)>=t&&(yield t);else{let t=-1;for(let r of n)(r=e(r,++t,n))!=null&&(r=+r)>=r&&(yield r)}}const Ah=jn(qn),mn=Ah.right;Ah.left,jn(fh).center;function gI(n,e){let t=0;if(e===void 0)for(let r of n)r!=null&&(r=+r)>=r&&++t;else{let r=-1;for(let i of n)(i=e(i,++r,n))!=null&&(i=+i)>=i&&++t}return t}function pI(n,e){let t=0,r,i=0,s=0;if(e===void 0)for(let o of n)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++t,s+=r*(o-i));else{let o=-1;for(let a of n)(a=e(a,++o,n))!=null&&(a=+a)>=a&&(r=a-i,i+=r/++t,s+=r*(a-i))}if(t>1)return s/(t-1)}function mI(n,e){let t,r;for(const i of n)i!=null&&(t===void 0?i>=i&&(t=r=i):(t>i&&(t=i),r<i&&(r=i)));return[t,r]}class qt extends Map{constructor(e,t=CI){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(const[r,i]of e)this.set(r,i)}get(e){return super.get(hh(this,e))}has(e){return super.has(hh(this,e))}set(e,t){return super.set(wI(this,e),t)}delete(e){return super.delete(yI(this,e))}}function hh({_intern:n,_key:e},t){const r=e(t);return n.has(r)?n.get(r):t}function wI({_intern:n,_key:e},t){const r=e(t);return n.has(r)?n.get(r):(n.set(r,t),t)}function yI({_intern:n,_key:e},t){const r=e(t);return n.has(r)&&(t=n.get(r),n.delete(r)),t}function CI(n){return n!==null&&typeof n=="object"?n.valueOf():n}function Jc(n){return n}function Qo(n,...e){return dh(n,Jc,Jc,e)}function II(n,...e){return dh(n,Array.from,Jc,e)}function dh(n,e,t,r){return(function i(s,o){if(o>=r.length)return t(s);const a=new qt,l=r[o++];let c=-1;for(const u of s){const f=l(u,++c,s),h=a.get(f);h?h.push(u):a.set(f,[u])}for(const[u,f]of a)a.set(u,i(f,o));return e(a)})(n,0)}function EI(n=qn){if(n===qn)return gh;if(typeof n!="function")throw new TypeError("compare is not a function");return(e,t)=>{const r=n(e,t);return r||r===0?r:(n(t,t)===0)-(n(e,e)===0)}}function gh(n,e){return(n==null||!(n>=n))-(e==null||!(e>=e))||(n<e?-1:n>e?1:0)}const bI=Math.sqrt(50),xI=Math.sqrt(10),BI=Math.sqrt(2);function Do(n,e,t){const r=(e-n)/Math.max(0,t),i=Math.floor(Math.log10(r)),s=r/Math.pow(10,i),o=s>=bI?10:s>=xI?5:s>=BI?2:1;let a,l,c;return i<0?(c=Math.pow(10,-i)/o,a=Math.round(n*c),l=Math.round(e*c),a/c<n&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,i)*o,a=Math.round(n/c),l=Math.round(e/c),a*c<n&&++a,l*c>e&&--l),l<a&&.5<=t&&t<2?Do(n,e,t*2):[a,l,c]}function ko(n,e,t){if(e=+e,n=+n,t=+t,!(t>0))return[];if(n===e)return[n];const r=e<n,[i,s,o]=r?Do(e,n,t):Do(n,e,t);if(!(s>=i))return[];const a=s-i+1,l=new Array(a);if(r)if(o<0)for(let c=0;c<a;++c)l[c]=(s-c)/-o;else for(let c=0;c<a;++c)l[c]=(s-c)*o;else if(o<0)for(let c=0;c<a;++c)l[c]=(i+c)/-o;else for(let c=0;c<a;++c)l[c]=(i+c)*o;return l}function Kc(n,e,t){return e=+e,n=+n,t=+t,Do(n,e,t)[2]}function Wn(n,e,t){e=+e,n=+n,t=+t;const r=e<n,i=r?Kc(e,n,t):Kc(n,e,t);return(r?-1:1)*(i<0?1/-i:i)}function qc(n,e){let t;if(e===void 0)for(const r of n)r!=null&&(t<r||t===void 0&&r>=r)&&(t=r);else{let r=-1;for(let i of n)(i=e(i,++r,n))!=null&&(t<i||t===void 0&&i>=i)&&(t=i)}return t}function jc(n,e){let t;if(e===void 0)for(const r of n)r!=null&&(t>r||t===void 0&&r>=r)&&(t=r);else{let r=-1;for(let i of n)(i=e(i,++r,n))!=null&&(t>i||t===void 0&&i>=i)&&(t=i)}return t}function ph(n,e,t=0,r=1/0,i){if(e=Math.floor(e),t=Math.floor(Math.max(0,t)),r=Math.floor(Math.min(n.length-1,r)),!(t<=e&&e<=r))return n;for(i=i===void 0?gh:EI(i);r>t;){if(r-t>600){const l=r-t+1,c=e-t+1,u=Math.log(l),f=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*f*(l-f)/l)*(c-l/2<0?-1:1),A=Math.max(t,Math.floor(e-c*f/l+h)),d=Math.min(r,Math.floor(e+(l-c)*f/l+h));ph(n,e,A,d,i)}const s=n[e];let o=t,a=r;for(Yi(n,t,e),i(n[r],s)>0&&Yi(n,t,r);o<a;){for(Yi(n,o,a),++o,--a;i(n[o],s)<0;)++o;for(;i(n[a],s)>0;)--a}i(n[t],s)===0?Yi(n,t,a):(++a,Yi(n,a,r)),a<=e&&(t=a+1),e<=a&&(r=a-1)}return n}function Yi(n,e,t){const r=n[e];n[e]=n[t],n[t]=r}function vI(n,e,t){if(n=Float64Array.from(dI(n,t)),!(!(r=n.length)||isNaN(e=+e))){if(e<=0||r<2)return jc(n);if(e>=1)return qc(n);var r,i=(r-1)*e,s=Math.floor(i),o=qc(ph(n,s).subarray(0,s+1)),a=jc(n.subarray(s+1));return o+(a-o)*(i-s)}}function mh(n,e,t=fh){if(!(!(r=n.length)||isNaN(e=+e))){if(e<=0||r<2)return+t(n[0],0,n);if(e>=1)return+t(n[r-1],r-1,n);var r,i=(r-1)*e,s=Math.floor(i),o=+t(n[s],s,n),a=+t(n[s+1],s+1,n);return o+(a-o)*(i-s)}}function SI(n,e){let t=0,r=0;if(e===void 0)for(let i of n)i!=null&&(i=+i)>=i&&(++t,r+=i);else{let i=-1;for(let s of n)(s=e(s,++i,n))!=null&&(s=+s)>=s&&(++t,r+=s)}if(t)return r/t}function QI(n,e){return vI(n,.5,e)}function Ji(n,e,t){n=+n,e=+e,t=(i=arguments.length)<2?(e=n,n=0,1):i<3?1:+t;for(var r=-1,i=Math.max(0,Math.ceil((e-n)/t))|0,s=new Array(i);++r<i;)s[r]=n+r*t;return s}function Ki(n,e){let t=0;if(e===void 0)for(let r of n)(r=+r)&&(t+=r);else{let r=-1;for(let i of n)(i=+e(i,++r,n))&&(t+=i)}return t}function DI(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function Fo(n,e){if(!isFinite(n)||n===0)return null;var t=(n=e?n.toExponential(e-1):n.toExponential()).indexOf("e"),r=n.slice(0,t);return[r.length>1?r[0]+r.slice(2):r,+n.slice(t+1)]}function Fr(n){return n=Fo(Math.abs(n)),n?n[1]:NaN}function kI(n,e){return function(t,r){for(var i=t.length,s=[],o=0,a=n[0],l=0;i>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),s.push(t.substring(i-=a,i+a)),!((l+=a+1)>r));)a=n[o=(o+1)%n.length];return s.reverse().join(e)}}function FI(n){return function(e){return e.replace(/[0-9]/g,function(t){return n[+t]})}}var RI=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Rr(n){if(!(e=RI.exec(n)))throw new Error("invalid format: "+n);var e;return new Wc({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Rr.prototype=Wc.prototype;function Wc(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}Wc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function MI(n){e:for(var e=n.length,t=1,r=-1,i;t<e;++t)switch(n[t]){case".":r=i=t;break;case"0":r===0&&(r=t),i=t;break;default:if(!+n[t])break e;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var Ro;function NI(n,e){var t=Fo(n,e);if(!t)return Ro=void 0,n.toPrecision(e);var r=t[0],i=t[1],s=i-(Ro=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return s===o?r:s>o?r+new Array(s-o+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+Fo(n,Math.max(0,e+s-1))[0]}function wh(n,e){var t=Fo(n,e);if(!t)return n+"";var r=t[0],i=t[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const yh={"%":(n,e)=>(n*100).toFixed(e),b:n=>Math.round(n).toString(2),c:n=>n+"",d:DI,e:(n,e)=>n.toExponential(e),f:(n,e)=>n.toFixed(e),g:(n,e)=>n.toPrecision(e),o:n=>Math.round(n).toString(8),p:(n,e)=>wh(n*100,e),r:wh,s:NI,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function Ch(n){return n}var Ih=Array.prototype.map,Eh=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function TI(n){var e=n.grouping===void 0||n.thousands===void 0?Ch:kI(Ih.call(n.grouping,Number),n.thousands+""),t=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",s=n.numerals===void 0?Ch:FI(Ih.call(n.numerals,String)),o=n.percent===void 0?"%":n.percent+"",a=n.minus===void 0?"−":n.minus+"",l=n.nan===void 0?"NaN":n.nan+"";function c(f,h){f=Rr(f);var A=f.fill,d=f.align,g=f.sign,p=f.symbol,m=f.zero,y=f.width,C=f.comma,w=f.precision,b=f.trim,x=f.type;x==="n"?(C=!0,x="g"):yh[x]||(w===void 0&&(w=12),b=!0,x="g"),(m||A==="0"&&d==="=")&&(m=!0,A="0",d="=");var E=(h&&h.prefix!==void 0?h.prefix:"")+(p==="$"?t:p==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():""),S=(p==="$"?r:/[%p]/.test(x)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),Q=yh[x],v=/[defgprs%]/.test(x);w=w===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function F(R){var N=E,O=S,H,G,_;if(x==="c")O=Q(R)+O,R="";else{R=+R;var te=R<0||1/R<0;if(R=isNaN(R)?l:Q(Math.abs(R),w),b&&(R=MI(R)),te&&+R==0&&g!=="+"&&(te=!1),N=(te?g==="("?g:a:g==="-"||g==="("?"":g)+N,O=(x==="s"&&!isNaN(R)&&Ro!==void 0?Eh[8+Ro/3]:"")+O+(te&&g==="("?")":""),v){for(H=-1,G=R.length;++H<G;)if(_=R.charCodeAt(H),48>_||_>57){O=(_===46?i+R.slice(H+1):R.slice(H))+O,R=R.slice(0,H);break}}}C&&!m&&(R=e(R,1/0));var oe=N.length+R.length+O.length,ne=oe<y?new Array(y-oe+1).join(A):"";switch(C&&m&&(R=e(ne+R,ne.length?y-O.length:1/0),ne=""),d){case"<":R=N+R+O+ne;break;case"=":R=N+ne+R+O;break;case"^":R=ne.slice(0,oe=ne.length>>1)+N+R+O+ne.slice(oe);break;default:R=ne+N+R+O;break}return s(R)}return F.toString=function(){return f+""},F}function u(f,h){var A=Math.max(-8,Math.min(8,Math.floor(Fr(h)/3)))*3,d=Math.pow(10,-A),g=c((f=Rr(f),f.type="f",f),{suffix:Eh[8+A/3]});return function(p){return g(d*p)}}return{format:c,formatPrefix:u}}var Mo,He,bh;PI({thousands:",",grouping:[3],currency:["$",""]});function PI(n){return Mo=TI(n),He=Mo.format,bh=Mo.formatPrefix,Mo}function LI(n){return Math.max(0,-Fr(Math.abs(n)))}function OI(n,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Fr(e)/3)))*3-Fr(Math.abs(n)))}function UI(n,e){return n=Math.abs(n),e=Math.abs(e)-n,Math.max(0,Fr(e)-Fr(n))+1}const Xc=new Date,Zc=new Date;function Se(n,e,t,r){function i(s){return n(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(n(s=new Date(+s)),s),i.ceil=s=>(n(s=new Date(s-1)),e(s,1),n(s),s),i.round=s=>{const o=i(s),a=i.ceil(s);return s-o<a-s?o:a},i.offset=(s,o)=>(e(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,a)=>{const l=[];if(s=i.ceil(s),a=a==null?1:Math.floor(a),!(s<o)||!(a>0))return l;let c;do l.push(c=new Date(+s)),e(s,a),n(s);while(c<s&&s<o);return l},i.filter=s=>Se(o=>{if(o>=o)for(;n(o),!s(o);)o.setTime(o-1)},(o,a)=>{if(o>=o)if(a<0)for(;++a<=0;)for(;e(o,-1),!s(o););else for(;--a>=0;)for(;e(o,1),!s(o););}),t&&(i.count=(s,o)=>(Xc.setTime(+s),Zc.setTime(+o),n(Xc),n(Zc),Math.floor(t(Xc,Zc))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?o=>r(o)%s===0:o=>i.count(0,o)%s===0):i)),i}const Mr=Se(()=>{},(n,e)=>{n.setTime(+n+e)},(n,e)=>e-n);Mr.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?Se(e=>{e.setTime(Math.floor(e/n)*n)},(e,t)=>{e.setTime(+e+t*n)},(e,t)=>(t-e)/n):Mr),Mr.range;const jt=1e3,ht=jt*60,Wt=ht*60,Xt=Wt*24,$c=Xt*7,xh=Xt*30,el=Xt*365,Zt=Se(n=>{n.setTime(n-n.getMilliseconds())},(n,e)=>{n.setTime(+n+e*jt)},(n,e)=>(e-n)/jt,n=>n.getUTCSeconds());Zt.range;const No=Se(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*jt)},(n,e)=>{n.setTime(+n+e*ht)},(n,e)=>(e-n)/ht,n=>n.getMinutes());No.range;const To=Se(n=>{n.setUTCSeconds(0,0)},(n,e)=>{n.setTime(+n+e*ht)},(n,e)=>(e-n)/ht,n=>n.getUTCMinutes());To.range;const Po=Se(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*jt-n.getMinutes()*ht)},(n,e)=>{n.setTime(+n+e*Wt)},(n,e)=>(e-n)/Wt,n=>n.getHours());Po.range;const Lo=Se(n=>{n.setUTCMinutes(0,0,0)},(n,e)=>{n.setTime(+n+e*Wt)},(n,e)=>(e-n)/Wt,n=>n.getUTCHours());Lo.range;const wn=Se(n=>n.setHours(0,0,0,0),(n,e)=>n.setDate(n.getDate()+e),(n,e)=>(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*ht)/Xt,n=>n.getDate()-1);wn.range;const Xn=Se(n=>{n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCDate(n.getUTCDate()+e)},(n,e)=>(e-n)/Xt,n=>n.getUTCDate()-1);Xn.range;const Bh=Se(n=>{n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCDate(n.getUTCDate()+e)},(n,e)=>(e-n)/Xt,n=>Math.floor(n/Xt));Bh.range;function Zn(n){return Se(e=>{e.setDate(e.getDate()-(e.getDay()+7-n)%7),e.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ht)/$c)}const qi=Zn(0),Oo=Zn(1),GI=Zn(2),zI=Zn(3),Nr=Zn(4),HI=Zn(5),VI=Zn(6);qi.range,Oo.range,GI.range,zI.range,Nr.range,HI.range,VI.range;function $n(n){return Se(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-n)%7),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/$c)}const ji=$n(0),Uo=$n(1),_I=$n(2),YI=$n(3),Tr=$n(4),JI=$n(5),KI=$n(6);ji.range,Uo.range,_I.range,YI.range,Tr.range,JI.range,KI.range;const Wi=Se(n=>{n.setDate(1),n.setHours(0,0,0,0)},(n,e)=>{n.setMonth(n.getMonth()+e)},(n,e)=>e.getMonth()-n.getMonth()+(e.getFullYear()-n.getFullYear())*12,n=>n.getMonth());Wi.range;const Xi=Se(n=>{n.setUTCDate(1),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCMonth(n.getUTCMonth()+e)},(n,e)=>e.getUTCMonth()-n.getUTCMonth()+(e.getUTCFullYear()-n.getUTCFullYear())*12,n=>n.getUTCMonth());Xi.range;const Ft=Se(n=>{n.setMonth(0,1),n.setHours(0,0,0,0)},(n,e)=>{n.setFullYear(n.getFullYear()+e)},(n,e)=>e.getFullYear()-n.getFullYear(),n=>n.getFullYear());Ft.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:Se(e=>{e.setFullYear(Math.floor(e.getFullYear()/n)*n),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t*n)}),Ft.range;const Rt=Se(n=>{n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCFullYear(n.getUTCFullYear()+e)},(n,e)=>e.getUTCFullYear()-n.getUTCFullYear(),n=>n.getUTCFullYear());Rt.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:Se(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/n)*n),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t*n)}),Rt.range;function vh(n,e,t,r,i,s){const o=[[Zt,1,jt],[Zt,5,5*jt],[Zt,15,15*jt],[Zt,30,30*jt],[s,1,ht],[s,5,5*ht],[s,15,15*ht],[s,30,30*ht],[i,1,Wt],[i,3,3*Wt],[i,6,6*Wt],[i,12,12*Wt],[r,1,Xt],[r,2,2*Xt],[t,1,$c],[e,1,xh],[e,3,3*xh],[n,1,el]];function a(c,u,f){const h=u<c;h&&([c,u]=[u,c]);const A=f&&typeof f.range=="function"?f:l(c,u,f),d=A?A.range(c,+u+1):[];return h?d.reverse():d}function l(c,u,f){const h=Math.abs(u-c)/f,A=jn(([,,p])=>p).right(o,h);if(A===o.length)return n.every(Wn(c/el,u/el,f));if(A===0)return Mr.every(Math.max(Wn(c,u,f),1));const[d,g]=o[h/o[A-1][2]<o[A][2]/h?A-1:A];return d.every(g)}return[a,l]}const[qI,jI]=vh(Rt,Xi,ji,Bh,Lo,To),[WI,XI]=vh(Ft,Wi,qi,wn,Po,No),Zi="year",$i="quarter",es="month",ts="week",ns="date",Go="day",tl="dayofyear",rs="hours",is="minutes",ss="seconds",zo="milliseconds";[Zi,$i,es,ts,ns,Go,tl,rs,is,ss,zo].reduce((n,e,t)=>(n[e]=1+t,n),{});const ZI={[Zi]:Ft,[$i]:Wi.every(3),[es]:Wi,[ts]:qi,[ns]:wn,[Go]:wn,[tl]:wn,[rs]:Po,[is]:No,[ss]:Zt,[zo]:Mr},$I={[Zi]:Rt,[$i]:Xi.every(3),[es]:Xi,[ts]:ji,[ns]:Xn,[Go]:Xn,[tl]:Xn,[rs]:Lo,[is]:To,[ss]:Zt,[zo]:Mr};function eE(n){return ZI[n]}function tE(n){return $I[n]}function nl(n){if(0<=n.y&&n.y<100){var e=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return e.setFullYear(n.y),e}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function rl(n){if(0<=n.y&&n.y<100){var e=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return e.setUTCFullYear(n.y),e}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function os(n,e,t){return{y:n,m:e,d:t,H:0,M:0,S:0,L:0}}function Sh(n){var e=n.dateTime,t=n.date,r=n.time,i=n.periods,s=n.days,o=n.shortDays,a=n.months,l=n.shortMonths,c=as(i),u=cs(i),f=as(s),h=cs(s),A=as(o),d=cs(o),g=as(a),p=cs(a),m=as(l),y=cs(l),C={a:_,A:te,b:oe,B:ne,c:null,d:Mh,e:Mh,f:xE,g:NE,G:PE,H:IE,I:EE,j:bE,L:Nh,m:BE,M:vE,p:Ge,q:Jt,Q:Gh,s:zh,S:SE,u:QE,U:DE,V:kE,w:FE,W:RE,x:null,X:null,y:ME,Y:TE,Z:LE,"%":Uh},w={a:ho,A:Ri,b:fn,B:Sr,c:null,d:Ph,e:Ph,f:zE,g:XE,G:$E,H:OE,I:UE,j:GE,L:Lh,m:HE,M:VE,p:go,q:Mi,Q:Gh,s:zh,S:_E,u:YE,U:JE,V:KE,w:qE,W:jE,x:null,X:null,y:WE,Y:ZE,Z:eb,"%":Uh},b={a:v,A:F,b:R,B:N,c:O,d:Fh,e:Fh,f:mE,g:kh,G:Dh,H:Rh,I:Rh,j:hE,L:pE,m:AE,M:dE,p:Q,q:fE,Q:yE,s:CE,S:gE,u:oE,U:aE,V:cE,w:sE,W:lE,x:H,X:G,y:kh,Y:Dh,Z:uE,"%":wE};C.x=x(t,C),C.X=x(r,C),C.c=x(e,C),w.x=x(t,w),w.X=x(r,w),w.c=x(e,w);function x(U,q){return function(W){var M=[],Xe=-1,se=0,nt=U.length,Ze,An,po;for(W instanceof Date||(W=new Date(+W));++Xe<nt;)U.charCodeAt(Xe)===37&&(M.push(U.slice(se,Xe)),(An=Qh[Ze=U.charAt(++Xe)])!=null?Ze=U.charAt(++Xe):An=Ze==="e"?" ":"0",(po=q[Ze])&&(Ze=po(W,An)),M.push(Ze),se=Xe+1);return M.push(U.slice(se,Xe)),M.join("")}}function E(U,q){return function(W){var M=os(1900,void 0,1),Xe=S(M,U,W+="",0),se,nt;if(Xe!=W.length)return null;if("Q"in M)return new Date(M.Q);if("s"in M)return new Date(M.s*1e3+("L"in M?M.L:0));if(q&&!("Z"in M)&&(M.Z=0),"p"in M&&(M.H=M.H%12+M.p*12),M.m===void 0&&(M.m="q"in M?M.q:0),"V"in M){if(M.V<1||M.V>53)return null;"w"in M||(M.w=1),"Z"in M?(se=rl(os(M.y,0,1)),nt=se.getUTCDay(),se=nt>4||nt===0?Uo.ceil(se):Uo(se),se=Xn.offset(se,(M.V-1)*7),M.y=se.getUTCFullYear(),M.m=se.getUTCMonth(),M.d=se.getUTCDate()+(M.w+6)%7):(se=nl(os(M.y,0,1)),nt=se.getDay(),se=nt>4||nt===0?Oo.ceil(se):Oo(se),se=wn.offset(se,(M.V-1)*7),M.y=se.getFullYear(),M.m=se.getMonth(),M.d=se.getDate()+(M.w+6)%7)}else("W"in M||"U"in M)&&("w"in M||(M.w="u"in M?M.u%7:"W"in M?1:0),nt="Z"in M?rl(os(M.y,0,1)).getUTCDay():nl(os(M.y,0,1)).getDay(),M.m=0,M.d="W"in M?(M.w+6)%7+M.W*7-(nt+5)%7:M.w+M.U*7-(nt+6)%7);return"Z"in M?(M.H+=M.Z/100|0,M.M+=M.Z%100,rl(M)):nl(M)}}function S(U,q,W,M){for(var Xe=0,se=q.length,nt=W.length,Ze,An;Xe<se;){if(M>=nt)return-1;if(Ze=q.charCodeAt(Xe++),Ze===37){if(Ze=q.charAt(Xe++),An=b[Ze in Qh?q.charAt(Xe++):Ze],!An||(M=An(U,W,M))<0)return-1}else if(Ze!=W.charCodeAt(M++))return-1}return M}function Q(U,q,W){var M=c.exec(q.slice(W));return M?(U.p=u.get(M[0].toLowerCase()),W+M[0].length):-1}function v(U,q,W){var M=A.exec(q.slice(W));return M?(U.w=d.get(M[0].toLowerCase()),W+M[0].length):-1}function F(U,q,W){var M=f.exec(q.slice(W));return M?(U.w=h.get(M[0].toLowerCase()),W+M[0].length):-1}function R(U,q,W){var M=m.exec(q.slice(W));return M?(U.m=y.get(M[0].toLowerCase()),W+M[0].length):-1}function N(U,q,W){var M=g.exec(q.slice(W));return M?(U.m=p.get(M[0].toLowerCase()),W+M[0].length):-1}function O(U,q,W){return S(U,e,q,W)}function H(U,q,W){return S(U,t,q,W)}function G(U,q,W){return S(U,r,q,W)}function _(U){return o[U.getDay()]}function te(U){return s[U.getDay()]}function oe(U){return l[U.getMonth()]}function ne(U){return a[U.getMonth()]}function Ge(U){return i[+(U.getHours()>=12)]}function Jt(U){return 1+~~(U.getMonth()/3)}function ho(U){return o[U.getUTCDay()]}function Ri(U){return s[U.getUTCDay()]}function fn(U){return l[U.getUTCMonth()]}function Sr(U){return a[U.getUTCMonth()]}function go(U){return i[+(U.getUTCHours()>=12)]}function Mi(U){return 1+~~(U.getUTCMonth()/3)}return{format:function(U){var q=x(U+="",C);return q.toString=function(){return U},q},parse:function(U){var q=E(U+="",!1);return q.toString=function(){return U},q},utcFormat:function(U){var q=x(U+="",w);return q.toString=function(){return U},q},utcParse:function(U){var q=E(U+="",!0);return q.toString=function(){return U},q}}}var Qh={"-":"",_:" ",0:"0"},Re=/^\s*\d+/,nE=/^%/,rE=/[\\^$*+?|[\]().{}]/g;function Z(n,e,t){var r=n<0?"-":"",i=(r?-n:n)+"",s=i.length;return r+(s<t?new Array(t-s+1).join(e)+i:i)}function iE(n){return n.replace(rE,"\\$&")}function as(n){return new RegExp("^(?:"+n.map(iE).join("|")+")","i")}function cs(n){return new Map(n.map((e,t)=>[e.toLowerCase(),t]))}function sE(n,e,t){var r=Re.exec(e.slice(t,t+1));return r?(n.w=+r[0],t+r[0].length):-1}function oE(n,e,t){var r=Re.exec(e.slice(t,t+1));return r?(n.u=+r[0],t+r[0].length):-1}function aE(n,e,t){var r=Re.exec(e.slice(t,t+2));return r?(n.U=+r[0],t+r[0].length):-1}function cE(n,e,t){var r=Re.exec(e.slice(t,t+2));return r?(n.V=+r[0],t+r[0].length):-1}function lE(n,e,t){var r=Re.exec(e.slice(t,t+2));return r?(n.W=+r[0],t+r[0].length):-1}function Dh(n,e,t){var r=Re.exec(e.slice(t,t+4));return r?(n.y=+r[0],t+r[0].length):-1}function kh(n,e,t){var r=Re.exec(e.slice(t,t+2));return r?(n.y=+r[0]+(+r[0]>68?1900:2e3),t+r[0].length):-1}function uE(n,e,t){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(t,t+6));return r?(n.Z=r[1]?0:-(r[2]+(r[3]||"00")),t+r[0].length):-1}function fE(n,e,t){var r=Re.exec(e.slice(t,t+1));return r?(n.q=r[0]*3-3,t+r[0].length):-1}function AE(n,e,t){var r=Re.exec(e.slice(t,t+2));return r?(n.m=r[0]-1,t+r[0].length):-1}function Fh(n,e,t){var r=Re.exec(e.slice(t,t+2));return r?(n.d=+r[0],t+r[0].length):-1}function hE(n,e,t){var r=Re.exec(e.slice(t,t+3));return r?(n.m=0,n.d=+r[0],t+r[0].length):-1}function Rh(n,e,t){var r=Re.exec(e.slice(t,t+2));return r?(n.H=+r[0],t+r[0].length):-1}function dE(n,e,t){var r=Re.exec(e.slice(t,t+2));return r?(n.M=+r[0],t+r[0].length):-1}function gE(n,e,t){var r=Re.exec(e.slice(t,t+2));return r?(n.S=+r[0],t+r[0].length):-1}function pE(n,e,t){var r=Re.exec(e.slice(t,t+3));return r?(n.L=+r[0],t+r[0].length):-1}function mE(n,e,t){var r=Re.exec(e.slice(t,t+6));return r?(n.L=Math.floor(r[0]/1e3),t+r[0].length):-1}function wE(n,e,t){var r=nE.exec(e.slice(t,t+1));return r?t+r[0].length:-1}function yE(n,e,t){var r=Re.exec(e.slice(t));return r?(n.Q=+r[0],t+r[0].length):-1}function CE(n,e,t){var r=Re.exec(e.slice(t));return r?(n.s=+r[0],t+r[0].length):-1}function Mh(n,e){return Z(n.getDate(),e,2)}function IE(n,e){return Z(n.getHours(),e,2)}function EE(n,e){return Z(n.getHours()%12||12,e,2)}function bE(n,e){return Z(1+wn.count(Ft(n),n),e,3)}function Nh(n,e){return Z(n.getMilliseconds(),e,3)}function xE(n,e){return Nh(n,e)+"000"}function BE(n,e){return Z(n.getMonth()+1,e,2)}function vE(n,e){return Z(n.getMinutes(),e,2)}function SE(n,e){return Z(n.getSeconds(),e,2)}function QE(n){var e=n.getDay();return e===0?7:e}function DE(n,e){return Z(qi.count(Ft(n)-1,n),e,2)}function Th(n){var e=n.getDay();return e>=4||e===0?Nr(n):Nr.ceil(n)}function kE(n,e){return n=Th(n),Z(Nr.count(Ft(n),n)+(Ft(n).getDay()===4),e,2)}function FE(n){return n.getDay()}function RE(n,e){return Z(Oo.count(Ft(n)-1,n),e,2)}function ME(n,e){return Z(n.getFullYear()%100,e,2)}function NE(n,e){return n=Th(n),Z(n.getFullYear()%100,e,2)}function TE(n,e){return Z(n.getFullYear()%1e4,e,4)}function PE(n,e){var t=n.getDay();return n=t>=4||t===0?Nr(n):Nr.ceil(n),Z(n.getFullYear()%1e4,e,4)}function LE(n){var e=n.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Z(e/60|0,"0",2)+Z(e%60,"0",2)}function Ph(n,e){return Z(n.getUTCDate(),e,2)}function OE(n,e){return Z(n.getUTCHours(),e,2)}function UE(n,e){return Z(n.getUTCHours()%12||12,e,2)}function GE(n,e){return Z(1+Xn.count(Rt(n),n),e,3)}function Lh(n,e){return Z(n.getUTCMilliseconds(),e,3)}function zE(n,e){return Lh(n,e)+"000"}function HE(n,e){return Z(n.getUTCMonth()+1,e,2)}function VE(n,e){return Z(n.getUTCMinutes(),e,2)}function _E(n,e){return Z(n.getUTCSeconds(),e,2)}function YE(n){var e=n.getUTCDay();return e===0?7:e}function JE(n,e){return Z(ji.count(Rt(n)-1,n),e,2)}function Oh(n){var e=n.getUTCDay();return e>=4||e===0?Tr(n):Tr.ceil(n)}function KE(n,e){return n=Oh(n),Z(Tr.count(Rt(n),n)+(Rt(n).getUTCDay()===4),e,2)}function qE(n){return n.getUTCDay()}function jE(n,e){return Z(Uo.count(Rt(n)-1,n),e,2)}function WE(n,e){return Z(n.getUTCFullYear()%100,e,2)}function XE(n,e){return n=Oh(n),Z(n.getUTCFullYear()%100,e,2)}function ZE(n,e){return Z(n.getUTCFullYear()%1e4,e,4)}function $E(n,e){var t=n.getUTCDay();return n=t>=4||t===0?Tr(n):Tr.ceil(n),Z(n.getUTCFullYear()%1e4,e,4)}function eb(){return"+0000"}function Uh(){return"%"}function Gh(n){return+n}function zh(n){return Math.floor(+n/1e3)}var Pr,il,Hh,sl,Vh;tb({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function tb(n){return Pr=Sh(n),il=Pr.format,Hh=Pr.parse,sl=Pr.utcFormat,Vh=Pr.utcParse,Pr}function Ho(n){const e={};return t=>e[t]||(e[t]=n(t))}function _h(n,e,t){t=t||{},ze(t)||be(`Invalid time multi-format specifier: ${t}`);const r=e(ss),i=e(is),s=e(rs),o=e(ns),a=e(ts),l=e(es),c=e($i),u=e(Zi),f=n(t[zo]||".%L"),h=n(t[ss]||":%S"),A=n(t[is]||"%I:%M"),d=n(t[rs]||"%I %p"),g=n(t[ns]||t[Go]||"%a %d"),p=n(t[ts]||"%b %d"),m=n(t[es]||"%B"),y=n(t[$i]||"%B"),C=n(t[Zi]||"%Y");return w=>(r(w)<w?f:i(w)<w?h:s(w)<w?A:o(w)<w?d:l(w)<w?a(w)<w?g:p:u(w)<w?c(w)<w?m:y:C)(w)}function Yh(n){const e=Ho(n.format),t=Ho(n.utcFormat);return{timeFormat:r=>le(r)?e(r):_h(e,eE,r),utcFormat:r=>le(r)?t(r):_h(t,tE,r),timeParse:Ho(n.parse),utcParse:Ho(n.utcParse)}}let ol;nb();function nb(){return ol=Yh({format:il,parse:Hh,utcFormat:sl,utcParse:Vh})}function rb(n){return Yh(Sh(n))}function ib(n){return arguments.length?ol=rb(n):ol}const sb=n=>n!=null&&n===n,ob=n=>n==="true"||n==="false"||n===!0||n===!1,ab=n=>!Number.isNaN(Date.parse(n)),Jh=n=>!Number.isNaN(+n)&&!(n instanceof Date),cb=n=>Jh(n)&&Number.isInteger(+n),Kh={boolean:S2,integer:Ni,number:Ni,date:D2,string:k2,unknown:yo},Vo=[ob,cb,Jh,ab],lb=["boolean","integer","number","date"];function ub(n,e){if(!n||!n.length)return"unknown";const t=n.length,r=Vo.length,i=Vo.map((s,o)=>o+1);for(let s=0,o=0,a,l;s<t;++s)for(l=e?n[s][e]:n[s],a=0;a<r;++a)if(i[a]&&sb(l)&&!Vo[a](l)&&(i[a]=0,++o,o===Vo.length))return"string";return lb[i.reduce((s,o)=>s===0?o:s,0)-1]}function fb(n,e){return e.reduce((t,r)=>(t[r]=ub(n,r),t),{})}function qh(n){const e=function(t,r){const i={delimiter:n};return al(t,r?b2(r,i):i)};return e.responseType="text",e}function al(n,e){return e.header&&(n=e.header.map(Pc).join(e.delimiter)+`
|
|
8
|
-
`+
|
|
7
|
+
`)}function c(f){return f.map(u).join(t)}function u(f){return f==null?"":f instanceof Date?HI(f):e.test(f+="")?'"'+f.replace(/"/g,'""')+'"':f}return{parse:i,parseRows:r,format:o,formatBody:a,formatRows:l,formatRow:c,formatValue:u}}var YI=ZA(" "),VI=YI.parseRows;function JI(t){return t}function qI(t){if(t==null)return JI;var e,n,i=t.scale[0],r=t.scale[1],s=t.translate[0],o=t.translate[1];return function(a,l){l||(e=n=0);var c=2,u=a.length,f=new Array(u);for(f[0]=(e+=a[0])*i+s,f[1]=(n+=a[1])*r+o;c<u;)f[c]=a[c],++c;return f}}function KI(t,e){for(var n,i=t.length,r=i-e;r<--i;)n=t[r],t[r++]=t[i],t[i]=n}function jI(t,e){return typeof e=="string"&&(e=t.objects[e]),e.type==="GeometryCollection"?{type:"FeatureCollection",features:e.geometries.map(function(n){return $A(t,n)})}:$A(t,e)}function $A(t,e){var n=e.id,i=e.bbox,r=e.properties==null?{}:e.properties,s=ed(t,e);return n==null&&i==null?{type:"Feature",properties:r,geometry:s}:i==null?{type:"Feature",id:n,properties:r,geometry:s}:{type:"Feature",id:n,bbox:i,properties:r,geometry:s}}function ed(t,e){var n=qI(t.transform),i=t.arcs;function r(u,f){f.length&&f.pop();for(var h=i[u<0?~u:u],A=0,d=h.length;A<d;++A)f.push(n(h[A],A));u<0&&KI(f,d)}function s(u){return n(u)}function o(u){for(var f=[],h=0,A=u.length;h<A;++h)r(u[h],f);return f.length<2&&f.push(f[0]),f}function a(u){for(var f=o(u);f.length<4;)f.push(f[0]);return f}function l(u){return u.map(a)}function c(u){var f=u.type,h;switch(f){case"GeometryCollection":return{type:f,geometries:u.geometries.map(c)};case"Point":h=s(u.coordinates);break;case"MultiPoint":h=u.coordinates.map(s);break;case"LineString":h=o(u.arcs);break;case"MultiLineString":h=u.arcs.map(o);break;case"Polygon":h=l(u.arcs);break;case"MultiPolygon":h=u.arcs.map(l);break;default:return null}return{type:f,coordinates:h}}return c(e)}function WI(t,e){var n={},i={},r={},s=[],o=-1;e.forEach(function(c,u){var f=t.arcs[c<0?~c:c],h;f.length<3&&!f[1][0]&&!f[1][1]&&(h=e[++o],e[o]=c,e[u]=h)}),e.forEach(function(c){var u=a(c),f=u[0],h=u[1],A,d;if(A=r[f])if(delete r[A.end],A.push(c),A.end=h,d=i[h]){delete i[d.start];var g=d===A?A:A.concat(d);i[g.start=A.start]=r[g.end=d.end]=g}else i[A.start]=r[A.end]=A;else if(A=i[h])if(delete i[A.start],A.unshift(c),A.start=f,d=r[f]){delete r[d.end];var m=d===A?A:d.concat(A);i[m.start=d.start]=r[m.end=A.end]=m}else i[A.start]=r[A.end]=A;else A=[c],i[A.start=f]=r[A.end=h]=A});function a(c){var u=t.arcs[c<0?~c:c],f=u[0],h;return t.transform?(h=[0,0],u.forEach(function(A){h[0]+=A[0],h[1]+=A[1]})):h=u[u.length-1],c<0?[h,f]:[f,h]}function l(c,u){for(var f in c){var h=c[f];delete u[h.start],delete h.start,delete h.end,h.forEach(function(A){n[A<0?~A:A]=1}),s.push(h)}}return l(r,i),l(i,r),e.forEach(function(c){n[c<0?~c:c]||s.push([c])}),s}function XI(t){return ed(t,ZI.apply(this,arguments))}function ZI(t,e,n){var i,r,s;if(arguments.length>1)i=$I(t,e,n);else for(r=0,i=new Array(s=t.arcs.length);r<s;++r)i[r]=r;return{type:"MultiLineString",arcs:WI(t,i)}}function $I(t,e,n){var i=[],r=[],s;function o(f){var h=f<0?~f:f;(r[h]||(r[h]=[])).push({i:f,g:s})}function a(f){f.forEach(o)}function l(f){f.forEach(a)}function c(f){f.forEach(l)}function u(f){switch(s=f,f.type){case"GeometryCollection":f.geometries.forEach(u);break;case"LineString":a(f.arcs);break;case"MultiLineString":case"Polygon":l(f.arcs);break;case"MultiPolygon":c(f.arcs);break}}return u(e),r.forEach(n==null?function(f){i.push(f[0].i)}:function(f){n(f[0].g,f[f.length-1].g)&&i.push(f[0].i)}),i}function ni(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function e2(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ii(t){let e,n,i;t.length!==2?(e=ni,n=(a,l)=>ni(t(a),l),i=(a,l)=>t(a)-l):(e=t===ni||t===e2?t:t2,n=t,i=t);function r(a,l,c=0,u=a.length){if(c<u){if(e(l,l)!==0)return u;do{const f=c+u>>>1;n(a[f],l)<0?c=f+1:u=f}while(c<u)}return c}function s(a,l,c=0,u=a.length){if(c<u){if(e(l,l)!==0)return u;do{const f=c+u>>>1;n(a[f],l)<=0?c=f+1:u=f}while(c<u)}return c}function o(a,l,c=0,u=a.length){const f=r(a,l,c,u-1);return f>c&&i(a[f-1],l)>-i(a[f],l)?f-1:f}return{left:r,center:o,right:s}}function t2(){return 0}function td(t){return t===null?NaN:+t}function*n2(t,e){if(e===void 0)for(let n of t)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(i=+i)>=i&&(yield i)}}const nd=ii(ni),xn=nd.right;nd.left,ii(td).center;function i2(t,e){let n=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&++n;else{let i=-1;for(let r of t)(r=e(r,++i,t))!=null&&(r=+r)>=r&&++n}return n}function r2(t,e){let n=0,i,r=0,s=0;if(e===void 0)for(let o of t)o!=null&&(o=+o)>=o&&(i=o-r,r+=i/++n,s+=i*(o-r));else{let o=-1;for(let a of t)(a=e(a,++o,t))!=null&&(a=+a)>=a&&(i=a-r,r+=i/++n,s+=i*(a-r))}if(n>1)return s/(n-1)}function s2(t,e){let n,i;for(const r of t)r!=null&&(n===void 0?r>=r&&(n=i=r):(n>r&&(n=r),i<r&&(i=r)));return[n,i]}class Xt extends Map{constructor(e,n=c2){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[i,r]of e)this.set(i,r)}get(e){return super.get(id(this,e))}has(e){return super.has(id(this,e))}set(e,n){return super.set(o2(this,e),n)}delete(e){return super.delete(a2(this,e))}}function id({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function o2({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}function a2({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}function c2(t){return t!==null&&typeof t=="object"?t.valueOf():t}function Cl(t){return t}function Go(t,...e){return rd(t,Cl,Cl,e)}function l2(t,...e){return rd(t,Array.from,Cl,e)}function rd(t,e,n,i){return(function r(s,o){if(o>=i.length)return n(s);const a=new Xt,l=i[o++];let c=-1;for(const u of s){const f=l(u,++c,s),h=a.get(f);h?h.push(u):a.set(f,[u])}for(const[u,f]of a)a.set(u,r(f,o));return e(a)})(t,0)}function u2(t=ni){if(t===ni)return sd;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,n)=>{const i=t(e,n);return i||i===0?i:(t(n,n)===0)-(t(e,e)===0)}}function sd(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(t<e?-1:t>e?1:0)}const f2=Math.sqrt(50),h2=Math.sqrt(10),A2=Math.sqrt(2);function Ho(t,e,n){const i=(e-t)/Math.max(0,n),r=Math.floor(Math.log10(i)),s=i/Math.pow(10,r),o=s>=f2?10:s>=h2?5:s>=A2?2:1;let a,l,c;return r<0?(c=Math.pow(10,-r)/o,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,r)*o,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?Ho(t,e,n*2):[a,l,c]}function Yo(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const i=e<t,[r,s,o]=i?Ho(e,t,n):Ho(t,e,n);if(!(s>=r))return[];const a=s-r+1,l=new Array(a);if(i)if(o<0)for(let c=0;c<a;++c)l[c]=(s-c)/-o;else for(let c=0;c<a;++c)l[c]=(s-c)*o;else if(o<0)for(let c=0;c<a;++c)l[c]=(r+c)/-o;else for(let c=0;c<a;++c)l[c]=(r+c)*o;return l}function bl(t,e,n){return e=+e,t=+t,n=+n,Ho(t,e,n)[2]}function ri(t,e,n){e=+e,t=+t,n=+n;const i=e<t,r=i?bl(e,t,n):bl(t,e,n);return(i?-1:1)*(r<0?1/-r:r)}function El(t,e){let n;if(e===void 0)for(const i of t)i!=null&&(n<i||n===void 0&&i>=i)&&(n=i);else{let i=-1;for(let r of t)(r=e(r,++i,t))!=null&&(n<r||n===void 0&&r>=r)&&(n=r)}return n}function Il(t,e){let n;if(e===void 0)for(const i of t)i!=null&&(n>i||n===void 0&&i>=i)&&(n=i);else{let i=-1;for(let r of t)(r=e(r,++i,t))!=null&&(n>r||n===void 0&&r>=r)&&(n=r)}return n}function od(t,e,n=0,i=1/0,r){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),i=Math.floor(Math.min(t.length-1,i)),!(n<=e&&e<=i))return t;for(r=r===void 0?sd:u2(r);i>n;){if(i-n>600){const l=i-n+1,c=e-n+1,u=Math.log(l),f=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*f*(l-f)/l)*(c-l/2<0?-1:1),A=Math.max(n,Math.floor(e-c*f/l+h)),d=Math.min(i,Math.floor(e+(l-c)*f/l+h));od(t,e,A,d,r)}const s=t[e];let o=n,a=i;for(is(t,n,e),r(t[i],s)>0&&is(t,n,i);o<a;){for(is(t,o,a),++o,--a;r(t[o],s)<0;)++o;for(;r(t[a],s)>0;)--a}r(t[n],s)===0?is(t,n,a):(++a,is(t,a,i)),a<=e&&(n=a+1),e<=a&&(i=a-1)}return t}function is(t,e,n){const i=t[e];t[e]=t[n],t[n]=i}function d2(t,e,n){if(t=Float64Array.from(n2(t,n)),!(!(i=t.length)||isNaN(e=+e))){if(e<=0||i<2)return Il(t);if(e>=1)return El(t);var i,r=(i-1)*e,s=Math.floor(r),o=El(od(t,s).subarray(0,s+1)),a=Il(t.subarray(s+1));return o+(a-o)*(r-s)}}function ad(t,e,n=td){if(!(!(i=t.length)||isNaN(e=+e))){if(e<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,r=(i-1)*e,s=Math.floor(r),o=+n(t[s],s,t),a=+n(t[s+1],s+1,t);return o+(a-o)*(r-s)}}function g2(t,e){let n=0,i=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&(++n,i+=r);else{let r=-1;for(let s of t)(s=e(s,++r,t))!=null&&(s=+s)>=s&&(++n,i+=s)}if(n)return i/n}function p2(t,e){return d2(t,.5,e)}function rs(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;for(var i=-1,r=Math.max(0,Math.ceil((e-t)/n))|0,s=new Array(r);++i<r;)s[i]=t+i*n;return s}function ss(t,e){let n=0;if(e===void 0)for(let i of t)(i=+i)&&(n+=i);else{let i=-1;for(let r of t)(r=+e(r,++i,t))&&(n+=r)}return n}function m2(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Vo(t,e){if(!isFinite(t)||t===0)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function Gi(t){return t=Vo(Math.abs(t)),t?t[1]:NaN}function w2(t,e){return function(n,i){for(var r=n.length,s=[],o=0,a=t[0],l=0;r>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),s.push(n.substring(r-=a,r+a)),!((l+=a+1)>i));)a=t[o=(o+1)%t.length];return s.reverse().join(e)}}function y2(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var C2=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Hi(t){if(!(e=C2.exec(t)))throw new Error("invalid format: "+t);var e;return new xl({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Hi.prototype=xl.prototype;function xl(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}xl.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function b2(t){e:for(var e=t.length,n=1,i=-1,r;n<e;++n)switch(t[n]){case".":i=r=n;break;case"0":i===0&&(i=n),r=n;break;default:if(!+t[n])break e;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(r+1):t}var Jo;function E2(t,e){var n=Vo(t,e);if(!n)return Jo=void 0,t.toPrecision(e);var i=n[0],r=n[1],s=r-(Jo=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,o=i.length;return s===o?i:s>o?i+new Array(s-o+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+Vo(t,Math.max(0,e+s-1))[0]}function cd(t,e){var n=Vo(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}const ld={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:m2,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>cd(t*100,e),r:cd,s:E2,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function ud(t){return t}var fd=Array.prototype.map,hd=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function I2(t){var e=t.grouping===void 0||t.thousands===void 0?ud:w2(fd.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",i=t.currency===void 0?"":t.currency[1]+"",r=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?ud:y2(fd.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",a=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function c(f,h){f=Hi(f);var A=f.fill,d=f.align,g=f.sign,m=f.symbol,p=f.zero,w=f.width,C=f.comma,y=f.precision,I=f.trim,x=f.type;x==="n"?(C=!0,x="g"):ld[x]||(y===void 0&&(y=12),I=!0,x="g"),(p||A==="0"&&d==="=")&&(p=!0,A="0",d="=");var E=(h&&h.prefix!==void 0?h.prefix:"")+(m==="$"?n:m==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():""),S=(m==="$"?i:/[%p]/.test(x)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),D=ld[x],B=/[defgprs%]/.test(x);y=y===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function k(F){var M=E,O=S,_,H,G;if(x==="c")O=D(F)+O,F="";else{F=+F;var q=F<0||1/F<0;if(F=isNaN(F)?l:D(Math.abs(F),y),I&&(F=b2(F)),q&&+F==0&&g!=="+"&&(q=!1),M=(q?g==="("?g:a:g==="-"||g==="("?"":g)+M,O=(x==="s"&&!isNaN(F)&&Jo!==void 0?hd[8+Jo/3]:"")+O+(q&&g==="("?")":""),B){for(_=-1,H=F.length;++_<H;)if(G=F.charCodeAt(_),48>G||G>57){O=(G===46?r+F.slice(_+1):F.slice(_))+O,F=F.slice(0,_);break}}}C&&!p&&(F=e(F,1/0));var Z=M.length+F.length+O.length,Y=Z<w?new Array(w-Z+1).join(A):"";switch(C&&p&&(F=e(Y+F,Y.length?w-O.length:1/0),Y=""),d){case"<":F=M+F+O+Y;break;case"=":F=M+Y+F+O;break;case"^":F=Y.slice(0,Z=Y.length>>1)+M+F+O+Y.slice(Z);break;default:F=Y+M+F+O;break}return s(F)}return k.toString=function(){return f+""},k}function u(f,h){var A=Math.max(-8,Math.min(8,Math.floor(Gi(h)/3)))*3,d=Math.pow(10,-A),g=c((f=Hi(f),f.type="f",f),{suffix:hd[8+A/3]});return function(m){return g(d*m)}}return{format:c,formatPrefix:u}}var qo,He,Ad;x2({thousands:",",grouping:[3],currency:["$",""]});function x2(t){return qo=I2(t),He=qo.format,Ad=qo.formatPrefix,qo}function v2(t){return Math.max(0,-Gi(Math.abs(t)))}function B2(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Gi(e)/3)))*3-Gi(Math.abs(t)))}function S2(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Gi(e)-Gi(t))+1}const vl=new Date,Bl=new Date;function De(t,e,n,i){function r(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return r.floor=s=>(t(s=new Date(+s)),s),r.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),r.round=s=>{const o=r(s),a=r.ceil(s);return s-o<a-s?o:a},r.offset=(s,o)=>(e(s=new Date(+s),o==null?1:Math.floor(o)),s),r.range=(s,o,a)=>{const l=[];if(s=r.ceil(s),a=a==null?1:Math.floor(a),!(s<o)||!(a>0))return l;let c;do l.push(c=new Date(+s)),e(s,a),t(s);while(c<s&&s<o);return l},r.filter=s=>De(o=>{if(o>=o)for(;t(o),!s(o);)o.setTime(o-1)},(o,a)=>{if(o>=o)if(a<0)for(;++a<=0;)for(;e(o,-1),!s(o););else for(;--a>=0;)for(;e(o,1),!s(o););}),n&&(r.count=(s,o)=>(vl.setTime(+s),Bl.setTime(+o),t(vl),t(Bl),Math.floor(n(vl,Bl))),r.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?r.filter(i?o=>i(o)%s===0:o=>r.count(0,o)%s===0):r)),r}const Yi=De(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Yi.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?De(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Yi),Yi.range;const Zt=1e3,gt=Zt*60,$t=gt*60,en=$t*24,Sl=en*7,dd=en*30,Dl=en*365,tn=De(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Zt)},(t,e)=>(e-t)/Zt,t=>t.getUTCSeconds());tn.range;const Ko=De(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Zt)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getMinutes());Ko.range;const jo=De(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCMinutes());jo.range;const Wo=De(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Zt-t.getMinutes()*gt)},(t,e)=>{t.setTime(+t+e*$t)},(t,e)=>(e-t)/$t,t=>t.getHours());Wo.range;const Xo=De(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*$t)},(t,e)=>(e-t)/$t,t=>t.getUTCHours());Xo.range;const vn=De(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*gt)/en,t=>t.getDate()-1);vn.range;const si=De(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/en,t=>t.getUTCDate()-1);si.range;const gd=De(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/en,t=>Math.floor(t/en));gd.range;function oi(t){return De(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*gt)/Sl)}const os=oi(0),Zo=oi(1),D2=oi(2),Q2=oi(3),Vi=oi(4),k2=oi(5),R2=oi(6);os.range,Zo.range,D2.range,Q2.range,Vi.range,k2.range,R2.range;function ai(t){return De(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/Sl)}const as=ai(0),$o=ai(1),F2=ai(2),N2=ai(3),Ji=ai(4),M2=ai(5),T2=ai(6);as.range,$o.range,F2.range,N2.range,Ji.range,M2.range,T2.range;const cs=De(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());cs.range;const ls=De(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());ls.range;const Nt=De(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Nt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:De(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}),Nt.range;const Mt=De(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Mt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:De(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}),Mt.range;function pd(t,e,n,i,r,s){const o=[[tn,1,Zt],[tn,5,5*Zt],[tn,15,15*Zt],[tn,30,30*Zt],[s,1,gt],[s,5,5*gt],[s,15,15*gt],[s,30,30*gt],[r,1,$t],[r,3,3*$t],[r,6,6*$t],[r,12,12*$t],[i,1,en],[i,2,2*en],[n,1,Sl],[e,1,dd],[e,3,3*dd],[t,1,Dl]];function a(c,u,f){const h=u<c;h&&([c,u]=[u,c]);const A=f&&typeof f.range=="function"?f:l(c,u,f),d=A?A.range(c,+u+1):[];return h?d.reverse():d}function l(c,u,f){const h=Math.abs(u-c)/f,A=ii(([,,m])=>m).right(o,h);if(A===o.length)return t.every(ri(c/Dl,u/Dl,f));if(A===0)return Yi.every(Math.max(ri(c,u,f),1));const[d,g]=o[h/o[A-1][2]<o[A][2]/h?A-1:A];return d.every(g)}return[a,l]}const[P2,L2]=pd(Mt,ls,as,gd,Xo,jo),[O2,U2]=pd(Nt,cs,os,vn,Wo,Ko),us="year",fs="quarter",hs="month",As="week",ds="date",ea="day",Ql="dayofyear",gs="hours",ps="minutes",ms="seconds",ta="milliseconds";[us,fs,hs,As,ds,ea,Ql,gs,ps,ms,ta].reduce((t,e,n)=>(t[e]=1+n,t),{});const _2={[us]:Nt,[fs]:cs.every(3),[hs]:cs,[As]:os,[ds]:vn,[ea]:vn,[Ql]:vn,[gs]:Wo,[ps]:Ko,[ms]:tn,[ta]:Yi},z2={[us]:Mt,[fs]:ls.every(3),[hs]:ls,[As]:as,[ds]:si,[ea]:si,[Ql]:si,[gs]:Xo,[ps]:jo,[ms]:tn,[ta]:Yi};function G2(t){return _2[t]}function H2(t){return z2[t]}function kl(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Rl(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ws(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function md(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,s=t.days,o=t.shortDays,a=t.months,l=t.shortMonths,c=ys(r),u=Cs(r),f=ys(s),h=Cs(s),A=ys(o),d=Cs(o),g=ys(a),m=Cs(a),p=ys(l),w=Cs(l),C={a:G,A:q,b:Z,B:Y,c:null,d:Id,e:Id,f:hx,g:Ex,G:xx,H:lx,I:ux,j:fx,L:xd,m:Ax,M:dx,p:we,q:ze,Q:kd,s:Rd,S:gx,u:px,U:mx,V:wx,w:yx,W:Cx,x:null,X:null,y:bx,Y:Ix,Z:vx,"%":Qd},y={a:mn,A:jt,b:wn,B:Oi,c:null,d:Bd,e:Bd,f:Qx,g:Ux,G:zx,H:Bx,I:Sx,j:Dx,L:Sd,m:kx,M:Rx,p:Qo,q:Vr,Q:kd,s:Rd,S:Fx,u:Nx,U:Mx,V:Tx,w:Px,W:Lx,x:null,X:null,y:Ox,Y:_x,Z:Gx,"%":Qd},I={a:B,A:k,b:F,B:M,c:O,d:bd,e:bd,f:sx,g:Cd,G:yd,H:Ed,I:Ed,j:tx,L:rx,m:ex,M:nx,p:D,q:$2,Q:ax,s:cx,S:ix,u:K2,U:j2,V:W2,w:q2,W:X2,x:_,X:H,y:Cd,Y:yd,Z:Z2,"%":ox};C.x=x(n,C),C.X=x(i,C),C.c=x(e,C),y.x=x(n,y),y.X=x(i,y),y.c=x(e,y);function x(U,W){return function($){var N=[],tt=-1,oe=0,st=U.length,nt,yn,ko;for($ instanceof Date||($=new Date(+$));++tt<st;)U.charCodeAt(tt)===37&&(N.push(U.slice(oe,tt)),(yn=wd[nt=U.charAt(++tt)])!=null?nt=U.charAt(++tt):yn=nt==="e"?" ":"0",(ko=W[nt])&&(nt=ko($,yn)),N.push(nt),oe=tt+1);return N.push(U.slice(oe,tt)),N.join("")}}function E(U,W){return function($){var N=ws(1900,void 0,1),tt=S(N,U,$+="",0),oe,st;if(tt!=$.length)return null;if("Q"in N)return new Date(N.Q);if("s"in N)return new Date(N.s*1e3+("L"in N?N.L:0));if(W&&!("Z"in N)&&(N.Z=0),"p"in N&&(N.H=N.H%12+N.p*12),N.m===void 0&&(N.m="q"in N?N.q:0),"V"in N){if(N.V<1||N.V>53)return null;"w"in N||(N.w=1),"Z"in N?(oe=Rl(ws(N.y,0,1)),st=oe.getUTCDay(),oe=st>4||st===0?$o.ceil(oe):$o(oe),oe=si.offset(oe,(N.V-1)*7),N.y=oe.getUTCFullYear(),N.m=oe.getUTCMonth(),N.d=oe.getUTCDate()+(N.w+6)%7):(oe=kl(ws(N.y,0,1)),st=oe.getDay(),oe=st>4||st===0?Zo.ceil(oe):Zo(oe),oe=vn.offset(oe,(N.V-1)*7),N.y=oe.getFullYear(),N.m=oe.getMonth(),N.d=oe.getDate()+(N.w+6)%7)}else("W"in N||"U"in N)&&("w"in N||(N.w="u"in N?N.u%7:"W"in N?1:0),st="Z"in N?Rl(ws(N.y,0,1)).getUTCDay():kl(ws(N.y,0,1)).getDay(),N.m=0,N.d="W"in N?(N.w+6)%7+N.W*7-(st+5)%7:N.w+N.U*7-(st+6)%7);return"Z"in N?(N.H+=N.Z/100|0,N.M+=N.Z%100,Rl(N)):kl(N)}}function S(U,W,$,N){for(var tt=0,oe=W.length,st=$.length,nt,yn;tt<oe;){if(N>=st)return-1;if(nt=W.charCodeAt(tt++),nt===37){if(nt=W.charAt(tt++),yn=I[nt in wd?W.charAt(tt++):nt],!yn||(N=yn(U,$,N))<0)return-1}else if(nt!=$.charCodeAt(N++))return-1}return N}function D(U,W,$){var N=c.exec(W.slice($));return N?(U.p=u.get(N[0].toLowerCase()),$+N[0].length):-1}function B(U,W,$){var N=A.exec(W.slice($));return N?(U.w=d.get(N[0].toLowerCase()),$+N[0].length):-1}function k(U,W,$){var N=f.exec(W.slice($));return N?(U.w=h.get(N[0].toLowerCase()),$+N[0].length):-1}function F(U,W,$){var N=p.exec(W.slice($));return N?(U.m=w.get(N[0].toLowerCase()),$+N[0].length):-1}function M(U,W,$){var N=g.exec(W.slice($));return N?(U.m=m.get(N[0].toLowerCase()),$+N[0].length):-1}function O(U,W,$){return S(U,e,W,$)}function _(U,W,$){return S(U,n,W,$)}function H(U,W,$){return S(U,i,W,$)}function G(U){return o[U.getDay()]}function q(U){return s[U.getDay()]}function Z(U){return l[U.getMonth()]}function Y(U){return a[U.getMonth()]}function we(U){return r[+(U.getHours()>=12)]}function ze(U){return 1+~~(U.getMonth()/3)}function mn(U){return o[U.getUTCDay()]}function jt(U){return s[U.getUTCDay()]}function wn(U){return l[U.getUTCMonth()]}function Oi(U){return a[U.getUTCMonth()]}function Qo(U){return r[+(U.getUTCHours()>=12)]}function Vr(U){return 1+~~(U.getUTCMonth()/3)}return{format:function(U){var W=x(U+="",C);return W.toString=function(){return U},W},parse:function(U){var W=E(U+="",!1);return W.toString=function(){return U},W},utcFormat:function(U){var W=x(U+="",y);return W.toString=function(){return U},W},utcParse:function(U){var W=E(U+="",!0);return W.toString=function(){return U},W}}}var wd={"-":"",_:" ",0:"0"},Ne=/^\s*\d+/,Y2=/^%/,V2=/[\\^$*+?|[\]().{}]/g;function te(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",s=r.length;return i+(s<n?new Array(n-s+1).join(e)+r:r)}function J2(t){return t.replace(V2,"\\$&")}function ys(t){return new RegExp("^(?:"+t.map(J2).join("|")+")","i")}function Cs(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function q2(t,e,n){var i=Ne.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function K2(t,e,n){var i=Ne.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function j2(t,e,n){var i=Ne.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function W2(t,e,n){var i=Ne.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function X2(t,e,n){var i=Ne.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function yd(t,e,n){var i=Ne.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function Cd(t,e,n){var i=Ne.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function Z2(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function $2(t,e,n){var i=Ne.exec(e.slice(n,n+1));return i?(t.q=i[0]*3-3,n+i[0].length):-1}function ex(t,e,n){var i=Ne.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function bd(t,e,n){var i=Ne.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function tx(t,e,n){var i=Ne.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function Ed(t,e,n){var i=Ne.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function nx(t,e,n){var i=Ne.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function ix(t,e,n){var i=Ne.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function rx(t,e,n){var i=Ne.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function sx(t,e,n){var i=Ne.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function ox(t,e,n){var i=Y2.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function ax(t,e,n){var i=Ne.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function cx(t,e,n){var i=Ne.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function Id(t,e){return te(t.getDate(),e,2)}function lx(t,e){return te(t.getHours(),e,2)}function ux(t,e){return te(t.getHours()%12||12,e,2)}function fx(t,e){return te(1+vn.count(Nt(t),t),e,3)}function xd(t,e){return te(t.getMilliseconds(),e,3)}function hx(t,e){return xd(t,e)+"000"}function Ax(t,e){return te(t.getMonth()+1,e,2)}function dx(t,e){return te(t.getMinutes(),e,2)}function gx(t,e){return te(t.getSeconds(),e,2)}function px(t){var e=t.getDay();return e===0?7:e}function mx(t,e){return te(os.count(Nt(t)-1,t),e,2)}function vd(t){var e=t.getDay();return e>=4||e===0?Vi(t):Vi.ceil(t)}function wx(t,e){return t=vd(t),te(Vi.count(Nt(t),t)+(Nt(t).getDay()===4),e,2)}function yx(t){return t.getDay()}function Cx(t,e){return te(Zo.count(Nt(t)-1,t),e,2)}function bx(t,e){return te(t.getFullYear()%100,e,2)}function Ex(t,e){return t=vd(t),te(t.getFullYear()%100,e,2)}function Ix(t,e){return te(t.getFullYear()%1e4,e,4)}function xx(t,e){var n=t.getDay();return t=n>=4||n===0?Vi(t):Vi.ceil(t),te(t.getFullYear()%1e4,e,4)}function vx(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+te(e/60|0,"0",2)+te(e%60,"0",2)}function Bd(t,e){return te(t.getUTCDate(),e,2)}function Bx(t,e){return te(t.getUTCHours(),e,2)}function Sx(t,e){return te(t.getUTCHours()%12||12,e,2)}function Dx(t,e){return te(1+si.count(Mt(t),t),e,3)}function Sd(t,e){return te(t.getUTCMilliseconds(),e,3)}function Qx(t,e){return Sd(t,e)+"000"}function kx(t,e){return te(t.getUTCMonth()+1,e,2)}function Rx(t,e){return te(t.getUTCMinutes(),e,2)}function Fx(t,e){return te(t.getUTCSeconds(),e,2)}function Nx(t){var e=t.getUTCDay();return e===0?7:e}function Mx(t,e){return te(as.count(Mt(t)-1,t),e,2)}function Dd(t){var e=t.getUTCDay();return e>=4||e===0?Ji(t):Ji.ceil(t)}function Tx(t,e){return t=Dd(t),te(Ji.count(Mt(t),t)+(Mt(t).getUTCDay()===4),e,2)}function Px(t){return t.getUTCDay()}function Lx(t,e){return te($o.count(Mt(t)-1,t),e,2)}function Ox(t,e){return te(t.getUTCFullYear()%100,e,2)}function Ux(t,e){return t=Dd(t),te(t.getUTCFullYear()%100,e,2)}function _x(t,e){return te(t.getUTCFullYear()%1e4,e,4)}function zx(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Ji(t):Ji.ceil(t),te(t.getUTCFullYear()%1e4,e,4)}function Gx(){return"+0000"}function Qd(){return"%"}function kd(t){return+t}function Rd(t){return Math.floor(+t/1e3)}var qi,Fl,Fd,Nl,Nd;Hx({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Hx(t){return qi=md(t),Fl=qi.format,Fd=qi.parse,Nl=qi.utcFormat,Nd=qi.utcParse,qi}function na(t){const e={};return n=>e[n]||(e[n]=t(n))}function Md(t,e,n){n=n||{},Ge(n)||xe(`Invalid time multi-format specifier: ${n}`);const i=e(ms),r=e(ps),s=e(gs),o=e(ds),a=e(As),l=e(hs),c=e(fs),u=e(us),f=t(n[ta]||".%L"),h=t(n[ms]||":%S"),A=t(n[ps]||"%I:%M"),d=t(n[gs]||"%I %p"),g=t(n[ds]||n[ea]||"%a %d"),m=t(n[As]||"%b %d"),p=t(n[hs]||"%B"),w=t(n[fs]||"%B"),C=t(n[us]||"%Y");return y=>(i(y)<y?f:r(y)<y?h:s(y)<y?A:o(y)<y?d:l(y)<y?a(y)<y?g:m:u(y)<y?c(y)<y?p:w:C)(y)}function Td(t){const e=na(t.format),n=na(t.utcFormat);return{timeFormat:i=>le(i)?e(i):Md(e,G2,i),utcFormat:i=>le(i)?n(i):Md(n,H2,i),timeParse:na(t.parse),utcParse:na(t.utcParse)}}let Ml;Yx();function Yx(){return Ml=Td({format:Fl,parse:Fd,utcFormat:Nl,utcParse:Nd})}function Vx(t){return Td(md(t))}function Jx(t){return arguments.length?Ml=Vx(t):Ml}const qx=t=>t!=null&&t===t,Kx=t=>t==="true"||t==="false"||t===!0||t===!1,jx=t=>!Number.isNaN(Date.parse(t)),Pd=t=>!Number.isNaN(+t)&&!(t instanceof Date),Wx=t=>Pd(t)&&Number.isInteger(+t),Ld={boolean:gI,integer:Jr,number:Jr,date:mI,string:wI,unknown:No},ia=[Kx,Wx,Pd,jx],Xx=["boolean","integer","number","date"];function Zx(t,e){if(!t||!t.length)return"unknown";const n=t.length,i=ia.length,r=ia.map((s,o)=>o+1);for(let s=0,o=0,a,l;s<n;++s)for(l=e?t[s][e]:t[s],a=0;a<i;++a)if(r[a]&&qx(l)&&!ia[a](l)&&(r[a]=0,++o,o===ia.length))return"string";return Xx[r.reduce((s,o)=>s===0?o:s,0)-1]}function $x(t,e){return e.reduce((n,i)=>(n[i]=Zx(t,i),n),{})}function Od(t){const e=function(n,i){const r={delimiter:t};return Tl(n,i?fI(i,r):r)};return e.responseType="text",e}function Tl(t,e){return e.header&&(t=e.header.map(ul).join(e.delimiter)+`
|
|
8
|
+
`+t),ZA(e.delimiter).parse(t+"")}Tl.responseType="text";function ev(t){return typeof Buffer=="function"&&dt(Buffer.isBuffer)?Buffer.isBuffer(t):!1}function Pl(t,e){const n=e&&e.property?Fo(e.property):No;return Ge(t)&&!ev(t)?tv(n(t),e):n(JSON.parse(t))}Pl.responseType="json";function tv(t,e){return!be(t)&&AI(t)&&(t=[...t]),e&&e.copy?JSON.parse(JSON.stringify(t)):t}const nv={interior:(t,e)=>t!==e,exterior:(t,e)=>t===e};function Ud(t,e){let n,i,r,s;return t=Pl(t,e),e&&e.feature?(n=jI,r=e.feature):e&&e.mesh?(n=XI,r=e.mesh,s=nv[e.filter]):xe("Missing TopoJSON feature or mesh parameter."),i=(i=t.objects[r])?n(t,i,s):xe("Invalid TopoJSON object: "+r),i&&i.features||[i]}Ud.responseType="json";const Ll={dsv:Tl,csv:Od(","),tsv:Od(" "),json:Pl,topojson:Ud};function ci(t,e){return arguments.length>1?(Ll[t]=e,this):Ui(Ll,t)?Ll[t]:null}function Ol(t,e,n,i){e=e||{};const r=ci(e.type||"json");return r||xe("Unknown data format type: "+e.type),t=r(t,e),e.parse&&iv(t,e.parse,n,i),Ui(t,"columns")&&delete t.columns,t}function iv(t,e,n,i){if(!t.length)return;const r=Jx();n=n||r.timeParse,i=i||r.utcParse;let s=t.columns||Object.keys(t[0]),o,a,l,c,u,f;e==="auto"&&(e=$x(t,s)),s=Object.keys(e);const h=s.map(A=>{const d=e[A];let g,m;if(d&&(d.startsWith("date:")||d.startsWith("utc:")))return g=d.split(/:(.+)?/,2),m=g[1],(m[0]==="'"&&m[m.length-1]==="'"||m[0]==='"'&&m[m.length-1]==='"')&&(m=m.slice(1,-1)),(g[0]==="utc"?i:n)(m);if(!Ld[d])throw Error("Illegal format pattern: "+A+":"+d);return Ld[d]});for(l=0,u=t.length,f=s.length;l<u;++l)for(o=t[l],c=0;c<f;++c)a=s[c],o[a]=h[c](o[a])}const rv=`
|
|
9
9
|
:root {
|
|
10
10
|
--genome-spy-basic-spacing: 10px;
|
|
11
11
|
--genome-spy-font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial,
|
|
@@ -28,6 +28,7 @@ overflow: hidden;
|
|
|
28
28
|
|
|
29
29
|
canvas {
|
|
30
30
|
display: block;
|
|
31
|
+
touch-action: none;
|
|
31
32
|
transform: scale(1, 1);
|
|
32
33
|
opacity: 1;
|
|
33
34
|
transition:
|
|
@@ -170,6 +171,13 @@ margin-left: 0.4em;
|
|
|
170
171
|
box-shadow: 0px 0px 3px 1px white;
|
|
171
172
|
}
|
|
172
173
|
|
|
174
|
+
.color-legend-unmapped {
|
|
175
|
+
background-color: transparent;
|
|
176
|
+
border: 1px solid black;
|
|
177
|
+
box-sizing: border-box;
|
|
178
|
+
box-shadow: none;
|
|
179
|
+
}
|
|
180
|
+
|
|
173
181
|
.attributes {
|
|
174
182
|
.hovered {
|
|
175
183
|
background-color: #e0e0e0;
|
|
@@ -249,94 +257,94 @@ flex-basis: content;
|
|
|
249
257
|
font-size: 14px;
|
|
250
258
|
padding: var(--genome-spy-basic-spacing);
|
|
251
259
|
}
|
|
252
|
-
`;function
|
|
260
|
+
`;function sv(t,e){var n=t.getBoundingClientRect();return[e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop]}function Bn(t,e){return t.length==e.length&&t.every((n,i)=>t[i]===e[i])}function Me(t){return Array.isArray(t)?t:typeof t<"u"?[t]:[]}function ra(t){return t[t.length-1]}class ov{#e=!1;#t=!0;#n=void 0;#i=0;#r=void 0;#o=0;#s;#c;#a=[!0];constructor(e){this.#c=e,this.#s=document.createElement("div"),this.#s.className="tooltip",this.#c.appendChild(this.#s),this.clear()}set sticky(e){!e&&this.#e&&this.clear(),this.#e=e,this.#s.classList.toggle("sticky",this.#e)}get sticky(){return this.#e}set visible(e){e!=this.#t&&(this.#s.style.display=e?null:"none",this.#t=e)}get visible(){return this.#t}get enabled(){return ra(this.#a)??!0}pushEnabledState(e){this.#a.push(e),e||(this.visible=!1)}popEnabledState(){this.#a.pop()}handleMouseMove(e){if(this.#e)return;this.mouseCoords=sv(this.#c,e);const n=performance.now();!this.visible&&!this._isPenalty()&&n-this.#o>500&&(this.#i=n+70),this.#r&&av(this.mouseCoords,this.#r)>20&&(this.#i=n+400),this.#r=this.mouseCoords,this.visible&&this.updatePlacement(),this.#o=n}updatePlacement(){const[n,i]=this.mouseCoords;let r=n+20;r>this.#c.clientWidth-this.#s.offsetWidth&&(r=n-20-this.#s.offsetWidth),this.#s.style.left=r+"px",this.#s.style.top=Math.min(i+20,this.#c.clientHeight-this.#s.offsetHeight)+"px"}setContent(e){if(!this.#e){if(!e||!this.enabled||this._isPenalty()){this.visible&&(ts("",this.#s),this.visible=!1),this.#n=void 0;return}ts(e,this.#s),this.visible=!0,this.updatePlacement()}}clear(){this.#n=void 0,this.setContent(void 0)}updateWithDatum(e,n){if(e!==this.#n){this.#n=e,n||(n=r=>Promise.resolve(ae` ${JSON.stringify(r)} `));const i=e;n(e).then(r=>{this.#n===i&&this.setContent(r)}).catch(r=>{if(r!=="debounced")throw r})}}_isPenalty(){return this.#i&&this.#i>performance.now()}}function av(t,e){let n=0;for(let i=0;i<t.length;i++)n+=(t[i]-e[i])**2;return Math.sqrt(n)}function cv(t){t.classList.add("genome-spy");const e=document.createElement("style");e.innerHTML=rv,t.appendChild(e);const n=_d("div",{class:"canvas-wrapper"});t.appendChild(n),n.classList.add("loading");const i=_d("div",{class:"loading-indicators"}),r=new ov(t);return{canvasWrapper:n,loadingIndicatorsElement:i,tooltip:r,styleElement:e}}function lv(t,e){const n=document.createElement("div");n.className="message-box";const i=document.createElement("div");i.textContent=e,n.appendChild(i),t.appendChild(n)}function _d(t,e){const n=document.createElement(t);for(const[i,r]of Object.entries(e))["innerHTML","innerText","className"].includes(i)&&(n[i]=r),n.setAttribute(i,r);return n}const uv={ATTRIBUTE:1},fv=t=>(...e)=>({_$litDirective$:t,values:e});let hv=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,n,i){this._$Ct=e,this._$AM=n,this._$Ci=i}_$AS(e,n){return this.update(e,n)}update(e,n){return this.render(...n)}};const zd="important",Av=" !"+zd,Gd=fv(class extends hv{constructor(t){if(super(t),t.type!==uv.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,n)=>{const i=t[n];return i==null?e:e+`${n=n.includes("-")?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){const{style:n}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?n.removeProperty(i):n[i]=null);for(const i in e){const r=e[i];if(r!=null){this.ft.add(i);const s=typeof r=="string"&&r.endsWith(Av);i.includes("-")||s?n.setProperty(i,s?r.slice(0,-11):r,s?zd:""):n[i]=r}}return ei}}),Hd="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cstyle%3e.spinner_ajPY{transform-origin:center;animation:spinner_AtaB%20.75s%20infinite%20linear}@keyframes%20spinner_AtaB{100%25{transform:rotate(360deg)}}%3c/style%3e%3cpath%20d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z'%20opacity='.25'/%3e%3cpath%20d='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z'%20class='spinner_ajPY'/%3e%3c/svg%3e";class dv{#e;#t;#n=null;constructor(e,n){this.#e=e,this.#t=n,this.#n=this.#t.subscribe(()=>this.updateLayout()),this.updateLayout()}destroy(){this.#n&&(this.#n(),this.#n=null)}updateLayout(){const e=[],n=()=>{for(const[,s]of this.#t.entries())if(s.status=="loading"||s.status=="error")return!0;return!1};let i,r=!1;for(const[s,o]of this.#t.entries()){const a=o.status=="loading"||o.status=="error",l=s.coords;if(!l&&a&&!i&&(i=o),l){a&&(r=!0);const c={left:`${l.x}px`,top:`${l.y}px`,width:`${l.width}px`,height:`${l.height}px`};e.push(ae`<div style=${Gd(c)}>
|
|
253
261
|
<div class=${o.status}>
|
|
254
|
-
${o.status=="error"?
|
|
262
|
+
${o.status=="error"?ae`<span
|
|
255
263
|
>Loading
|
|
256
|
-
failed${o.detail?
|
|
257
|
-
>`:
|
|
258
|
-
<img src="${
|
|
264
|
+
failed${o.detail?ae`: ${o.detail}`:Ie}</span
|
|
265
|
+
>`:ae`
|
|
266
|
+
<img src="${Hd}" alt="" />
|
|
259
267
|
<span>Loading...</span>
|
|
260
268
|
`}
|
|
261
269
|
</div>
|
|
262
|
-
</div>`)}}if(r
|
|
263
|
-
<div class=${
|
|
264
|
-
${
|
|
270
|
+
</div>`)}}if(i&&!r){const s={left:"0px",top:"0px",width:"100%",height:"100%"};e.push(ae`<div style=${Gd(s)}>
|
|
271
|
+
<div class=${i.status}>
|
|
272
|
+
${i.status=="error"?ae`<span
|
|
265
273
|
>Loading
|
|
266
|
-
failed${
|
|
267
|
-
>`:
|
|
268
|
-
<img src="${
|
|
274
|
+
failed${i.detail?ae`: ${i.detail}`:Ie}</span
|
|
275
|
+
>`:ae`
|
|
276
|
+
<img src="${Hd}" alt="" />
|
|
269
277
|
<span>Loading...</span>
|
|
270
278
|
`}
|
|
271
279
|
</div>
|
|
272
|
-
</div>`)}
|
|
280
|
+
</div>`)}n()?this.#e.style.display="block":setTimeout(()=>{n()||(this.#e.style.display="none")},3e3),ts(e,this.#e)}}class Yd{#e=new Map;#t=new Set;set(e,n,i){if(!e)throw new Error("LoadingStatusRegistry.set requires a view.");this.#e.set(e,{status:n,detail:i});const r={view:e,status:n,detail:i};for(const s of this.#t)s(r)}delete(e){const n=this.#e.get(e);if(!n)return;this.#e.delete(e);const i={view:e,status:n.status,detail:n.detail};for(const r of this.#t)r(i)}get(e){return this.#e.get(e)}entries(){return this.#e.entries()}subscribe(e){return this.#t.add(e),()=>{this.#t.delete(e)}}}function gv(t){return e=>{if(t.querySelector(".view-highlight")?.remove(),e){if(!e.isVisible())return;const n=e.coords;if(n){const i=document.createElement("div");i.className="view-highlight",i.style.position="absolute",i.style.left=n.x+"px",i.style.top=n.y+"px",i.style.width=n.width+"px",i.style.height=n.height+"px",i.style.border="1px solid green",i.style.backgroundColor="rgba(0, 255, 0, 0.05)",i.style.pointerEvents="none",t.appendChild(i)}}}}class pv{#e;constructor(){this.#e=new Map}add(e,n){document.addEventListener(e,n);let i=this.#e.get(e);i||(i=[],this.#e.set(e,i)),i.push(n)}removeAll(){for(const[e,n]of this.#e)for(const i of n)document.removeEventListener(e,i);this.#e.clear()}}class Vd{#e;constructor(){this.#e=new Map}add(e,n){let i=this.#e.get(e);i||(i=new Set,this.#e.set(e,i)),i.add(n)}remove(e,n){this.#e.get(e)?.delete(n)}emit(e,n){this.#e.get(e)?.forEach(i=>i(n))}}function sa(t,e,n=!0){let i,r=o=>{};return function(...a){return new Promise((l,c)=>{const u=()=>{clearTimeout(i),r=f=>{},l(t(...a))};n&&r("debounced"),clearTimeout(i),r=c,i=window.setTimeout(u,typeof e=="function"?e():e)})}}const Tt=1,Sn=2,Ul=4;class _l{stats={count:0,first:null};#e=!1;#t=!1;#n=[];paramRuntimeProvider=null;get behavior(){return 0}get label(){return`(${this.constructor.name})`}constructor(e){this.paramRuntimeProvider=e,this.children=[],this.parent=void 0,this.completed=!1}get disposed(){return this.#t}reset(){this.completed=!1;for(const e of this.children)e.reset();this.stats.count=0,this.stats.first=null}initialize(){}initializeOnce(){this.#e||(this.initialize(),this.#e=!0)}#i(){this._propagate=Function("children","stats",rs(this.children.length).map(e=>`const child${e} = children[${e}];`).join(`
|
|
273
281
|
`)+`return function propagate(datum) {
|
|
274
282
|
if (stats.count === 0) {
|
|
275
283
|
stats.first = structuredClone(datum);
|
|
276
284
|
}
|
|
277
285
|
stats.count++;
|
|
278
|
-
${
|
|
286
|
+
${rs(this.children.length).map(e=>`child${e}.handle(datum);`).join(`
|
|
279
287
|
`)}
|
|
280
|
-
};`)(this.children,this.stats)}setParent(e){this.parent=e}addChild(e){if(e.parent)throw new Error("Cannot add the child! It already has a parent.");return this.children.push(e),e.setParent(this),this.#
|
|
281
|
-
${
|
|
288
|
+
};`)(this.children,this.stats)}setParent(e){this.parent=e}addChild(e){if(e.parent)throw new Error("Cannot add the child! It already has a parent.");return this.children.push(e),e.setParent(this),this.#i(),this}adopt(e){e.parent&&e.parent.removeChild(e),this.addChild(e)}adoptChildrenOf(e){for(const n of e.children)this.adopt(n)}insertAsParent(e){if(this.isRoot())throw new Error("Cannot insert a new parent for a root node!");e.parent=this.parent,this.parent.children[this.parent.children.indexOf(this)]=e,this.parent.#i(),this.parent=void 0,e.addChild(this)}removeChild(e){const n=this.children.indexOf(e);if(n>-1)this.children.splice(n,1),e.parent=void 0,this.#i();else throw new Error("Trying to remove an unknown child node!")}excise(){if(this.isRoot())throw new Error("Cannot excise root node!");if(this.isTerminal())this.parent.removeChild(this);else if(this.children.length==1){const e=this.children[0];e.setParent(this.parent),this.parent.children[this.parent.children.indexOf(this)]=e,this.parent.#i(),this.setParent(void 0),this.children.length=0}else throw new Error("Cannot excise a node that has multiple children!")}isRoot(){return!this.parent}isBranching(){return this.children.length>1}isTerminal(){return this.children.length==0}visit(e){e(this);for(const n of this.children)n.visit(e);e.afterChildren&&e.afterChildren(this)}subtreeToString(e=0){const n=this.children.map(i=>i.subtreeToString(e+1)).join("");return`${" ".repeat(e*2)}* ${this.label}${"identifier"in this&&this.identifier?": "+this.identifier:""}
|
|
289
|
+
${n}`}handle(e){this._propagate(e)}complete(){this.completed=!0;for(const e of this.children)e.complete()}registerDisposer(e){this.#t?e():this.#n.push(e)}dispose(){if(!this.#t){this.#t=!0;for(const e of this.#n)e();this.#n.length=0}}disposeSubtree(){const e=()=>{};e.afterChildren=n=>{n.dispose()},this.visit(e)}beginBatch(e){for(const n of this.children)n.beginBatch(e)}get paramRuntime(){if(this.paramRuntimeProvider&&this.paramRuntimeProvider.paramRuntime)return this.paramRuntimeProvider.paramRuntime;if(!this.parent)throw new Error("Cannot find paramRuntime!");return this.parent.paramRuntime}repropagate(){if(this.parent)this.parent.repropagate();else throw new Error("Cannot repropagate data, no FlowNode with stored data found!")}_propagate(e){}}function Jd(t){return t.type=="file"}function mv(t){return t.type=="facet"}class Qe extends _l{#e;constructor(e,n){super(n),this.#e=e.type}get label(){return this.#e}}const pt="_uniqueId",qd=1e4,Kd=[null];class zl extends Qe{get behavior(){return Sn}constructor(e){super(e),this.params=e,this.as=e.as??pt,this._blocks=[],this._usedBlocks=0,this._id=-1}initialize(){}reset(){super.reset(),this._usedBlocks=0,this._id=-1}handle(e){e[this.as]=this._nextId(),this._propagate(e)}_nextId(){return++this._id%qd==0&&(this._id=this._getBlock()*qd),this._id}_getBlock(){return this._usedBlocks<this._blocks.length?this._blocks[this._usedBlocks++]:this._reserveBlock()}_reserveBlock(){const e=Kd.length;return Kd[e]=this,this._blocks.push(e),this._usedBlocks++,e}}function ne(t,e=t){if(/^[A-Za-z0-9_]+$/.test(t)){const n=function(r){t in r||wv(r,t)},i=new Function("validator",`
|
|
282
290
|
let validated = !validator;
|
|
283
291
|
return function accessField(datum) {
|
|
284
292
|
if (!validated) {
|
|
285
293
|
validator(datum);
|
|
286
294
|
validated = true;
|
|
287
295
|
}
|
|
288
|
-
return datum[${JSON.stringify(
|
|
289
|
-
}`)(
|
|
296
|
+
return datum[${JSON.stringify(t)}];
|
|
297
|
+
}`)(n);return At(i,[t],e)}else return Fo(t)}function wv(t,e){throw new Error(`Invalid field "${e}". Available fields or properties: ${Object.keys(t).join(", ")}`)}function jd(t,e,n){if(!t)return;function i(s){const o=s;return o.fields??=[],o.constant=o.fields.length===0,o.channelDef=e,o.channel=t,o.sourceKey=Cv(e),o.scaleChannel=((mt(e)&&e.resolutionChannel)??(ca(t)&&t))||void 0,o.scaleChannel!==void 0&&(o.domainKeyBase=Xd({scaleChannel:o.scaleChannel,source:Gl(e)}).domainKeyBase),"param"in e?(o.predicate=f0(!1),o.predicate.param=e.param,o.predicate.empty=e.empty??!0):(o.predicate=f0(!0),o.predicate.empty=!1),o.equals=a=>a?o===a||o.sourceKey!==void 0&&o.sourceKey===a.sourceKey:!1,o.asNumberAccessor=()=>o,o}function r(s){if(Ee(s)){const o=i(n.createExpression(s.expr));if(o.fields.length>0)throw new Error("Expression in DatumDef/ValueDef cannot access data fields: "+s.expr);return o}else{const o=s;return i(()=>o)}}if(nn(e))try{return i(ne(e.field))}catch(s){throw new Error(`Invalid field definition: ${s.message}`)}else{if(ji(e))return i(n.createExpression(e.expr));if(Ki(e))return r(e.datum);if(ht(e))return r(e.value);throw new Error(`Invalid channel definition: "${t}": ${JSON.stringify(e)}! The channel definition must contain one of the following properties: "field", "datum", "value" or "expr".`)}}function yv(t,e,n){const i=[];if(vv(e)||Hl(e)){const r=Array.isArray(e.condition)?e.condition:[e.condition];for(const s of r)i.push(jd(t,s,n))}if(i.push(jd(t,e,n)),i.filter(r=>!r.constant).length>1)throw new Error("Only one accessor can be non-constant. Channel: "+t);return i}function Wd(t){return t.scaleChannel!==void 0}function Gl(t){if(nn(t))return{kind:"field",value:t.field};if(ji(t))return{kind:"expr",value:t.expr};if(Ki(t))return{kind:"datum",value:t.datum};if(ht(t))return{kind:"value",value:t.value};throw new Error("Cannot derive a domain key from channel definition: "+JSON.stringify(t))}function Cv(t){const e=Gl(t);return e.kind==="datum"||e.kind==="value"?"constant|"+e0(e.value):e.kind+"|"+$d(e)}function Xd({scaleChannel:t,source:e,type:n}){if(!t)throw new Error("Cannot build a domain key without a scale channel.");const i=t+"|"+e.kind+"|"+$d(e),r=n?n+"|"+i:void 0;return{domainKeyBase:i,domainKey:r}}function Zd(t,e){const{domainKey:n,domainKeyBase:i}=Xd({scaleChannel:t.scaleChannel,source:Gl(t.channelDef),type:e});if(!n)throw new Error("Cannot finalize a domain key without a resolved type.");return t.domainKeyBase=i,t.domainKey=n,n}function $d(t){switch(t.kind){case"field":case"expr":return t.value;case"datum":case"value":return e0(t.value);default:throw new Error("Unknown domain key source.")}}function e0(t){return Ee(t)?"expr:"+t.expr:t===void 0?"undefined":JSON.stringify(t)}function bv(t,e){const n={},i=r=>t.getScaleResolution(r)?.getScale();for(const[r,s]of Object.entries(e)){if(!s)continue;const o=r;if(Ev(o))continue;const a=s;n[o]=Iv(yv(o,a,t.paramRuntime),i)}return n}function Ev(t){return t==="key"||t==="search"}function Iv(t,e){if(t.length===1)return t0(t[0],e);const n=t.map(s=>s.predicate),i=t.map(s=>t0(s,e));return Object.assign(s=>{for(let o=0;o<i.length;o++)if(n[o](s))return i[o](s)},{constant:!1,accessors:i.map(s=>s.accessors[0]),dataAccessor:i.map(s=>s.dataAccessor).find(s=>s),scale:i.map(s=>s.scale).find(s=>s),channelDef:t.at(-1).channelDef})}function t0(t,e){const{channel:n,scaleChannel:i,channelDef:r}=t,s=t.scaleChannel?e(i):void 0;if(i&&!s)throw new Error(`Missing scale! "${n}": ${JSON.stringify(r)}`);return Object.assign(s?o=>s(t(o)):o=>t(o),{scale:s,constant:t.constant,accessors:[t],dataAccessor:t.constant?void 0:t,channelDef:r})}function ht(t){return t&&"value"in t}function nn(t){return t&&"field"in t}function Ki(t){return t&&"datum"in t}function mt(t){return nn(t)||Ki(t)||ji(t)||i0(t)}function n0(t){if(Hl(t)){const e=t.condition;if(!Array.isArray(e)&&mt(e))return e}else if(mt(t))return t}function xv(t,e){const n=t.mark.encoding[e];if(!Array.isArray(n)&&mt(n))return n;throw new Error("Not a channel def with scale!")}function i0(t){return t&&"chrom"in t}function ji(t){return t&&"expr"in t}function vv(t){return(nn(t)||Ki(t))&&"condition"in t}function Hl(t){return ht(t)&&"condition"in t}const li=["x","y"],Bv=["x2","y2"],Sv=[...li,...Bv];function oa(t){return li.includes(t)}function bs(t){return Sv.includes(t)}const r0={x:"x2",y:"y2"},s0=Object.fromEntries(Object.entries(r0).map(t=>[t[1],t[0]]));function Yl(t){return t in s0}function Vl(t){const e=r0[t];if(e)return e;throw new Error(`${t} has no secondary channel!`)}function rn(t){return s0[t]??t}function Dn(t){return["color","fill","stroke"].includes(rn(t))}function aa(t){return["shape"].includes(t)}function ca(t){return["x","y","x2","y2","color","fill","stroke","opacity","fillOpacity","strokeOpacity","strokeWidth","size","shape","angle","dx","dy","sample"].includes(t)}function Dv(t){if(t==="shape")return["circle","square","cross","diamond","triangle-up","triangle-right","triangle-down","triangle-left","tick-up","tick-right","tick-down","tick-left"]}function o0(t){if(!aa(t))throw new Error("Not a discrete channel: "+t);const e=new Map(Dv(t).map((n,i)=>[n,i]));return n=>{const i=e.get(n);if(i!==void 0)return i;throw new Error(`Invalid value for "${t}" channel: ${n}`)}}function Jl(t){return{type:"single",datum:t,uniqueId:t?.[pt]}}function ql(t){return t??=[],{type:"multi",data:new Map(t.map(e=>[e[pt],e]))}}function a0(t){return{type:"interval",intervals:Object.fromEntries(t.map(e=>[e,null]))}}function Qv(t,{add:e,remove:n,toggle:i}){const r=t.data;for(const s of e??[])r.set(s[pt],s);for(const s of n??[])r.delete(s[pt]);for(const s of i??[]){const o=s[pt];r.has(o)?r.delete(o):r.set(o,s)}return{type:"multi",data:r}}function kv(t,e){const n=!!(t.empty??!0),i=Pt(t.param),r=t.fields??{};if(c0(e))return`${i}.uniqueId == null ? ${n} : ${i}.uniqueId === datum[${JSON.stringify(pt)}]`;if(jl(e))return`${i}.data.size == 0 ? ${n} : mapHasKey(${i}.data, datum[${JSON.stringify(pt)}])`;if(Kl(e)){const s=Object.keys(e.intervals),o=Object.keys(r).filter(oa);if(o.length===0)throw new Error("Filtering using interval selections requires at least one primary positional channel in the config! "+JSON.stringify(t));if(o.some(c=>!s.includes(c)))throw new Error(`Selection channels (${s.join(", ")}) do not match the fields: ${JSON.stringify(t)}!`);const a=c=>`datum[${JSON.stringify(c)}]`;return s.map(c=>{const u=Vl(c),f=r[c],h=r[u]??r[c],A=`${i}.intervals.${c}[0] <= ${a(h)}`,d=`${a(f)} <= ${i}.intervals.${c}[1]`;return`(${i}.intervals.${c} ? (${A} && ${d}) : ${n})`}).join(" && ")}else throw new Error(`Unrecognized selection type : ${JSON.stringify(e)}`)}function Kl(t){return t.type==="interval"}function c0(t){return t.type==="single"}function jl(t){return t.type==="multi"}function la(t){const e=typeof t=="string"?{type:t}:{...t};return e.on=e.on?Xl(e.on):ua(e)?{type:"click"}:void 0,e.clear=e.clear===!1?void 0:e.clear===!0||e.clear==null?{type:"dblclick"}:Xl(e.clear),ua(e)&&e.on.type==="click"&&(e.toggle=!0),e}function ua(t){return t&&t.type=="point"}function l0(t){return t&&t.type=="interval"}function Wl(t){return Object.values(t.intervals).some(e=>e&&e.length===2)}function Rv(t,e){return Object.entries(t.intervals).every(([n,i])=>(n=="x"||n=="y")&&i&&i[0]<=e[n]&&i[1]>=e[n])}function Xl(t){if(typeof t=="string"){const e=t.match(/^([a-zA-Z]+)(?:\[(.+)\])?$/);if(!e)throw new Error(`Invalid event type string: ${t}`);const[,n,i]=e,r={type:n};return i&&(r.filter=i),r}else return t}function Ee(t){return typeof t=="object"&&t!=null&&"expr"in t&&le(t.expr)}function ve(t){if(Ee(t))throw new Error("ExprRef "+JSON.stringify(t)+" not allowed here. Expected a scalar value.");return t}function u0(t){return("expr"in t||"bind"in t)&&!("select"in t)}function Zl(t){return!("expr"in t||"bind"in t)&&"select"in t}function Pt(t){if(!/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(t))throw new Error("Invalid parameter name: "+t+". Must be a valid JavaScript identifier.");return t}function $l(t,e,n){if("select"in t){const i=la(t.select);if(ua(i))return i.toggle?ql():Jl(null);if(l0(i)){if(!i.encodings)throw new Error('Interval selection "'+t.name+'" must have encodings defined!');return a0(i.encodings)}throw new Error('Unknown selection config for parameter "'+t.name+'".')}if("expr"in t){const i=e?.createExpression(t.expr);if(!i)throw new Error('Cannot evaluate expression for parameter "'+t.name+'".');return i(null)}return"value"in t?t.value:null}function Es(t,e,n,i,r={}){const s={...e},o=new Set;let a=!1,l=!1;const c=r.batchMode??"microtask";i?.(()=>{l=!0,o.clear(),a=!1});const f=()=>{if(l)return;if(!n||o.size===0){a=!1;return}const A=new Set(o);o.clear(),a=!1,n(A)},h=A=>{l||(o.add(A),a||(a=!0,queueMicrotask(()=>{l||(c=="whenPropagated"&&t.whenPropagated?t.whenPropagated().then(f).catch(()=>{f()}):f())})))};for(const[A,d]of Object.entries(e))if(Ee(d))if(n){const g=()=>h(A),m=t.watchExpression?t.watchExpression(d.expr,g,{scopeOwned:!i,registerDisposer:i}):t.createExpression(d.expr);if(!t.watchExpression){const p=m.subscribe(g);i?.(p)}Object.defineProperty(s,A,{enumerable:!0,get(){return m()}})}else{const g=t.createExpression(d.expr);Object.defineProperty(s,A,{enumerable:!0,get(){return g()}})}else s[A]=d;return s}function f0(t){return Object.assign(()=>t,{subscribe:()=>()=>{},invalidate:()=>{},identifier:()=>"constant",fields:[],globals:[],code:JSON.stringify(t)})}function Fv(t){const e=Math.floor(Math.random()*16777215).toString(16),n=[];for(const i of t.paramConfigs.values()){if(!u0(i))continue;const r=i.bind;if(!r||!("input"in r))continue;const s=i.name,o=f=>{t.setValue(s,f)},a=t.getValue(s),l=r.name??s,c=r.debounce?sa(o,r.debounce,!1):o,u=`${e}-param-${s}`;if(r.input=="range")n.push(ae`<label for=${u}>${l}</label>
|
|
290
298
|
<div>
|
|
291
299
|
<input
|
|
292
300
|
id=${u}
|
|
293
301
|
type="range"
|
|
294
|
-
min=${
|
|
295
|
-
max=${
|
|
296
|
-
step=${
|
|
302
|
+
min=${r.min??0}
|
|
303
|
+
max=${r.max??100}
|
|
304
|
+
step=${r.step??ri(r.min,r.max,100)}
|
|
297
305
|
.value=${a}
|
|
298
306
|
@input=${f=>{c(f.target.valueAsNumber),f.target.nextElementSibling.textContent=f.target.valueAsNumber}}
|
|
299
307
|
/><span>${a}</span>
|
|
300
|
-
</div>`);else if(
|
|
308
|
+
</div>`);else if(r.input=="checkbox")n.push(ae`<label for=${u}>${l}</label>
|
|
301
309
|
<input
|
|
302
310
|
id=${u}
|
|
303
311
|
type="checkbox"
|
|
304
312
|
?checked=${a}
|
|
305
313
|
@input=${f=>c(f.target.checked)}
|
|
306
|
-
/>`);else if(
|
|
314
|
+
/>`);else if(r.input=="radio")n.push(ae`<span class="label">${l}</span>
|
|
307
315
|
<div class="radio-group">
|
|
308
|
-
${
|
|
316
|
+
${r.options.map((f,h)=>ae`<label>
|
|
309
317
|
<input
|
|
310
318
|
type="radio"
|
|
311
319
|
name=${s}
|
|
312
320
|
value=${f}
|
|
313
321
|
.checked=${a==f}
|
|
314
322
|
@input=${A=>c(A.target.value)}
|
|
315
|
-
/>${
|
|
323
|
+
/>${r.labels?.[h]??f}</label
|
|
316
324
|
>`)}
|
|
317
|
-
</div>`);else if(
|
|
325
|
+
</div>`);else if(r.input=="select")n.push(ae`<label for=${u}>${l}</label>
|
|
318
326
|
<select
|
|
319
327
|
id=${u}
|
|
320
328
|
@input=${f=>c(f.target.value)}
|
|
321
329
|
>
|
|
322
|
-
${
|
|
330
|
+
${r.options.map((f,h)=>ae`<option
|
|
323
331
|
value=${f}
|
|
324
332
|
?selected=${a==f}
|
|
325
333
|
>
|
|
326
|
-
${
|
|
334
|
+
${r.labels?.[h]??f}
|
|
327
335
|
</option>`)}
|
|
328
|
-
</select> `);else if(
|
|
336
|
+
</select> `);else if(r.input=="text"||r.input=="number"||r.input=="color")n.push(ae`<label for=${u}>${l}</label>
|
|
329
337
|
<div>
|
|
330
338
|
<input
|
|
331
339
|
id=${u}
|
|
332
|
-
type=${
|
|
333
|
-
placeholder=${
|
|
334
|
-
autocomplete=${
|
|
340
|
+
type=${r.input}
|
|
341
|
+
placeholder=${r.placeholder??""}
|
|
342
|
+
autocomplete=${r.autocomplete??"off"}
|
|
335
343
|
.value=${a}
|
|
336
344
|
@focus=${f=>f.target.select()}
|
|
337
|
-
@input=${f=>{c(
|
|
345
|
+
@input=${f=>{c(r.input=="number"?f.target.valueAsNumber:f.target.value)}}
|
|
338
346
|
/>
|
|
339
|
-
</div>`);else throw new Error("Unsupported input type: "+i.input);i.description&&t.push(ce`<div class="description">${i.description}</div>`)}return t}class Yb{#e;#t;#n;constructor(e,t){this.#e=e,this.#t=t,this.#n=void 0}initialize(e){const t=[];e.visit(i=>{const s=i.paramRuntime;t.push(..._b(s))});const r=this.#t.inputBindingContainer;if(!(!r||r=="none"||!t.length)){if(this.#n=document.createElement("div"),this.#n.className="gs-input-bindings",r=="default")this.#e.appendChild(this.#n);else if(r instanceof HTMLElement)r.appendChild(this.#n);else throw new Error("Invalid inputBindingContainer");t.length&&Vi(ce`<div class="gs-input-binding">${t}</div>`,this.#n)}}remove(){this.#n?.remove()}}const Bl=5120,fs=5121,vl=5122,Sl=5123,Ql=5124,Dl=5125,kl=5126,Jb=32819,Kb=32820,qb=33635,jb=5131,Wb=33640,Xb=35899,Zb=35902,$b=36269,ex=34042,Bd={};{const n=Bd;n[Bl]=Int8Array,n[fs]=Uint8Array,n[vl]=Int16Array,n[Sl]=Uint16Array,n[Ql]=Int32Array,n[Dl]=Uint32Array,n[kl]=Float32Array,n[Jb]=Uint16Array,n[Kb]=Uint16Array,n[qb]=Uint16Array,n[jb]=Uint16Array,n[Wb]=Uint32Array,n[Xb]=Uint32Array,n[Zb]=Uint32Array,n[$b]=Uint32Array,n[ex]=Uint32Array}function Fl(n){if(n instanceof Int8Array)return Bl;if(n instanceof Uint8Array||n instanceof Uint8ClampedArray)return fs;if(n instanceof Int16Array)return vl;if(n instanceof Uint16Array)return Sl;if(n instanceof Int32Array)return Ql;if(n instanceof Uint32Array)return Dl;if(n instanceof Float32Array)return kl;throw new Error("unsupported typed array type")}function tx(n){if(n===Int8Array)return Bl;if(n===Uint8Array||n===Uint8ClampedArray)return fs;if(n===Int16Array)return vl;if(n===Uint16Array)return Sl;if(n===Int32Array)return Ql;if(n===Uint32Array)return Dl;if(n===Float32Array)return kl;throw new Error("unsupported typed array type")}function nx(n){const e=Bd[n];if(!e)throw new Error("unknown gl type");return e}const Wo=typeof SharedArrayBuffer<"u"?function(e){return e&&e.buffer&&(e.buffer instanceof ArrayBuffer||e.buffer instanceof SharedArrayBuffer)}:function(e){return e&&e.buffer&&e.buffer instanceof ArrayBuffer};function rx(...n){console.error(...n)}function vd(...n){console.warn(...n)}function ix(n,e){return typeof WebGLBuffer<"u"&&e instanceof WebGLBuffer}function Sd(n,e){return typeof WebGLRenderbuffer<"u"&&e instanceof WebGLRenderbuffer}function Xo(n,e){return typeof WebGLTexture<"u"&&e instanceof WebGLTexture}function sx(n,e){return typeof WebGLSampler<"u"&&e instanceof WebGLSampler}const Qd=35044,Tt=34962,ox=34963,ax=34660,cx=5120,lx=5121,ux=5122,fx=5123,Ax=5124,hx=5125,dx=5126,Dd={attribPrefix:""};function kd(n,e,t,r,i){n.bindBuffer(e,t),n.bufferData(e,r,i||Qd)}function Fd(n,e,t,r){if(ix(n,e))return e;t=t||Tt;const i=n.createBuffer();return kd(n,t,i,e,r),i}function Rd(n){return n==="indices"}function gx(n){return n instanceof Int8Array||n instanceof Uint8Array}function px(n){return n===Int8Array||n===Uint8Array}function mx(n){return n.length?n:n.data}const wx=/coord|texture/i,yx=/color|colour/i;function Md(n,e){let t;if(wx.test(n)?t=2:yx.test(n)?t=4:t=3,e%t>0)throw new Error(`Can not guess numComponents for attribute '${n}'. Tried ${t} but ${e} values is not evenly divisible by ${t}. You should specify it.`);return t}function Cx(n,e){return n.numComponents||n.size||Md(e,mx(n).length)}function Rl(n,e){if(Wo(n))return n;if(Wo(n.data))return n.data;Array.isArray(n)&&(n={data:n});let t=n.type;return t||(Rd(e)?t=Uint16Array:t=Float32Array),new t(n.data)}function Ix(n,e){const t={};return Object.keys(e).forEach(function(r){if(!Rd(r)){const i=e[r],s=i.attrib||i.name||i.attribName||Dd.attribPrefix+r;if(i.value){if(!Array.isArray(i.value)&&!Wo(i.value))throw new Error("array.value is not array or typedarray");t[s]={value:i.value}}else{let o,a,l,c;if(i.buffer&&i.buffer instanceof WebGLBuffer)o=i.buffer,c=i.numComponents||i.size,a=i.type,l=i.normalize;else if(typeof i=="number"||typeof i.data=="number"){const u=i.data||i,f=i.type||Float32Array,h=u*f.BYTES_PER_ELEMENT;a=tx(f),l=i.normalize!==void 0?i.normalize:px(f),c=i.numComponents||i.size||Md(r,u),o=n.createBuffer(),n.bindBuffer(Tt,o),n.bufferData(Tt,h,i.drawType||Qd)}else{const u=Rl(i,r);o=Fd(n,u,void 0,i.drawType),a=Fl(u),l=i.normalize!==void 0?i.normalize:gx(u),c=Cx(i,r)}t[s]={buffer:o,numComponents:c,type:a,normalize:l,stride:i.stride||0,offset:i.offset||0,divisor:i.divisor===void 0?void 0:i.divisor,drawType:i.drawType}}}}),n.bindBuffer(Tt,null),t}function Ex(n,e,t,r){t=Rl(t),r!==void 0?(n.bindBuffer(Tt,e.buffer),n.bufferSubData(Tt,r,t)):kd(n,Tt,e.buffer,t,e.drawType)}function bx(n,e){return e===cx||e===lx?1:e===ux||e===fx?2:e===Ax||e===hx||e===dx?4:0}const Ml=["position","positions","a_position"];function xx(n,e){let t,r;for(r=0;r<Ml.length&&(t=Ml[r],!(t in e||(t=Dd.attribPrefix+t,t in e)));++r);r===Ml.length&&(t=Object.keys(e)[0]);const i=e[t];if(!i.buffer)return 1;n.bindBuffer(Tt,i.buffer);const s=n.getBufferParameter(Tt,ax);n.bindBuffer(Tt,null);const o=bx(n,i.type),a=s/o,l=i.numComponents||i.size,c=a/l;if(c%1!==0)throw new Error(`numComponents ${l} not correct for length ${length}`);return c}function Bx(n,e,t){const r=Ix(n,e),i=Object.assign({},t||{});i.attribs=Object.assign({},t?t.attribs:{},r);const s=e.indices;if(s){const o=Rl(s,"indices");i.indices=Fd(n,o,ox),i.numElements=o.length,i.elementType=Fl(o)}else i.numElements||(i.numElements=xx(n,i.attribs));return i}function Gr(n){return!!n.texStorage2D}const Nl=(function(){const n={},e={};function t(r){const i=r.constructor.name;if(!n[i]){for(const s in r)if(typeof r[s]=="number"){const o=e[r[s]];e[r[s]]=o?`${o} | ${s}`:s}n[i]=!0}}return function(i,s){return t(i),e[s]||(typeof s=="number"?`0x${s.toString(16)}`:s)}})(),En={textureColor:new Uint8Array([128,192,255,255]),textureOptions:{},crossOrigin:void 0},zr=Wo,Nd=(function(){let n;return function(){return n=n||(typeof document<"u"&&document.createElement?document.createElement("canvas").getContext("2d"):null),n}})(),Td=6406,Pt=6407,de=6408,Pd=6409,Ld=6410,As=6402,Od=34041,Zo=33071,vx=9728,Sx=9729,en=3553,tn=34067,bn=32879,xn=35866,$o=34069,Qx=34070,Dx=34071,kx=34072,Fx=34073,Rx=34074,Tl=10241,Pl=10240,ea=10242,ta=10243,Ud=32882,Mx=33082,Nx=33083,Tx=33084,Px=33085,Ll=3317,Gd=3314,zd=32878,Hd=3316,Vd=3315,_d=32877,Lx=37443,Ox=37441,Ux=37440,Gx=33321,zx=36756,Hx=33325,Vx=33326,_x=33330,Yx=33329,Jx=33338,Kx=33337,qx=33340,jx=33339,Wx=33323,Xx=36757,Zx=33327,$x=33328,eB=33336,tB=33335,nB=33332,rB=33331,iB=33334,sB=33333,oB=32849,aB=35905,cB=36194,lB=36758,uB=35898,fB=35901,AB=34843,hB=34837,dB=36221,gB=36239,pB=36215,mB=36233,wB=36209,yB=36227,CB=32856,IB=35907,EB=36759,bB=32855,xB=32854,BB=32857,vB=34842,SB=34836,QB=36220,DB=36238,kB=36975,FB=36214,RB=36232,MB=36226,NB=36208,TB=33189,PB=33190,LB=36012,OB=36013,UB=35056,Bn=5120,ge=5121,na=5122,Hr=5123,ra=5124,tr=5125,Je=5126,Yd=32819,Jd=32820,Kd=33635,xt=5131,hs=36193,Ol=33640,GB=35899,zB=35902,HB=36269,VB=34042,ia=33319,Vr=33320,sa=6403,_r=36244,Yr=36248,nr=36249;let Ul;function oa(n){if(!Ul){const e={};e[Td]={textureFormat:Td,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1,2,2,4],type:[ge,xt,hs,Je]},e[Pd]={textureFormat:Pd,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1,2,2,4],type:[ge,xt,hs,Je]},e[Ld]={textureFormat:Ld,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[2,4,4,8],type:[ge,xt,hs,Je]},e[Pt]={textureFormat:Pt,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3,6,6,12,2],type:[ge,xt,hs,Je,Kd]},e[de]={textureFormat:de,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,8,8,16,2,2],type:[ge,xt,hs,Je,Yd,Jd]},e[As]={textureFormat:As,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2,4],type:[tr,Hr]},e[Gx]={textureFormat:sa,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1],type:[ge]},e[zx]={textureFormat:sa,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[1],type:[Bn]},e[Hx]={textureFormat:sa,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[4,2],type:[Je,xt]},e[Vx]={textureFormat:sa,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[4],type:[Je]},e[_x]={textureFormat:_r,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[1],type:[ge]},e[Yx]={textureFormat:_r,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[1],type:[Bn]},e[nB]={textureFormat:_r,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[Hr]},e[rB]={textureFormat:_r,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[na]},e[iB]={textureFormat:_r,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[tr]},e[sB]={textureFormat:_r,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[ra]},e[Wx]={textureFormat:ia,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[2],type:[ge]},e[Xx]={textureFormat:ia,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[2],type:[Bn]},e[Zx]={textureFormat:ia,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[8,4],type:[Je,xt]},e[$x]={textureFormat:ia,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[8],type:[Je]},e[eB]={textureFormat:Vr,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[ge]},e[tB]={textureFormat:Vr,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[Bn]},e[Jx]={textureFormat:Vr,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Hr]},e[Kx]={textureFormat:Vr,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[na]},e[qx]={textureFormat:Vr,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[tr]},e[jx]={textureFormat:Vr,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[ra]},e[oB]={textureFormat:Pt,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3],type:[ge]},e[aB]={textureFormat:Pt,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[3],type:[ge]},e[cB]={textureFormat:Pt,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3,2],type:[ge,Kd]},e[lB]={textureFormat:Pt,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[3],type:[Bn]},e[uB]={textureFormat:Pt,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6,4],type:[Je,xt,GB]},e[fB]={textureFormat:Pt,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6,4],type:[Je,xt,zB]},e[AB]={textureFormat:Pt,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6],type:[Je,xt]},e[hB]={textureFormat:Pt,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[Je]},e[dB]={textureFormat:Yr,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[3],type:[ge]},e[gB]={textureFormat:Yr,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[3],type:[Bn]},e[pB]={textureFormat:Yr,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[6],type:[Hr]},e[mB]={textureFormat:Yr,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[6],type:[na]},e[wB]={textureFormat:Yr,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[tr]},e[yB]={textureFormat:Yr,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[ra]},e[CB]={textureFormat:de,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[ge]},e[IB]={textureFormat:de,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[ge]},e[EB]={textureFormat:de,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[4],type:[Bn]},e[bB]={textureFormat:de,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,2,4],type:[ge,Jd,Ol]},e[xB]={textureFormat:de,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,2],type:[ge,Yd]},e[BB]={textureFormat:de,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[Ol]},e[vB]={textureFormat:de,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[16,8],type:[Je,xt]},e[SB]={textureFormat:de,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[16],type:[Je]},e[QB]={textureFormat:nr,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[ge]},e[DB]={textureFormat:nr,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Bn]},e[kB]={textureFormat:nr,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Ol]},e[FB]={textureFormat:nr,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[Hr]},e[RB]={textureFormat:nr,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[na]},e[MB]={textureFormat:nr,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[16],type:[ra]},e[NB]={textureFormat:nr,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[16],type:[tr]},e[TB]={textureFormat:As,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2,4],type:[Hr,tr]},e[PB]={textureFormat:As,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[tr]},e[LB]={textureFormat:As,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Je]},e[UB]={textureFormat:Od,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[VB]},e[OB]={textureFormat:Od,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[HB]},Object.keys(e).forEach(function(t){const r=e[t];r.bytesPerElementMap={},r.bytesPerElement.forEach(function(i,s){const o=r.type[s];r.bytesPerElementMap[o]=i})}),Ul=e}return Ul[n]}function _B(n,e){const t=oa(n);if(!t)throw"unknown internal format";const r=t.bytesPerElementMap[e];if(r===void 0)throw"unknown internal format";return r}function Jr(n){const e=oa(n);if(!e)throw"unknown internal format";return{format:e.textureFormat,type:e.type[0]}}function qd(n){return(n&n-1)===0}function YB(n,e,t,r){if(!Gr(n))return qd(e)&&qd(t);const i=oa(r);if(!i)throw"unknown internal format";return i.colorRenderable&&i.textureFilterable}function JB(n){const e=oa(n);if(!e)throw"unknown internal format";return e.textureFilterable}function jd(n,e,t){return zr(e)?Fl(e):t||ge}function aa(n,e,t,r,i){if(i%1!==0)throw"can't guess dimensions";if(!t&&!r){const s=Math.sqrt(i/(e===tn?6:1));s%1===0?(t=s,r=s):(t=i,r=1)}else if(r){if(!t&&(t=i/r,t%1))throw"can't guess dimensions"}else if(r=i/t,r%1)throw"can't guess dimensions";return{width:t,height:r}}function Kr(n,e){e.colorspaceConversion!==void 0&&n.pixelStorei(Lx,e.colorspaceConversion),e.premultiplyAlpha!==void 0&&n.pixelStorei(Ox,e.premultiplyAlpha),e.flipY!==void 0&&n.pixelStorei(Ux,e.flipY)}function Wd(n){n.pixelStorei(Ll,4),Gr(n)&&(n.pixelStorei(Gd,0),n.pixelStorei(zd,0),n.pixelStorei(Hd,0),n.pixelStorei(Vd,0),n.pixelStorei(_d,0))}function KB(n,e,t,r){r.minMag&&(t.call(n,e,Tl,r.minMag),t.call(n,e,Pl,r.minMag)),r.min&&t.call(n,e,Tl,r.min),r.mag&&t.call(n,e,Pl,r.mag),r.wrap&&(t.call(n,e,ea,r.wrap),t.call(n,e,ta,r.wrap),(e===bn||sx(n,e))&&t.call(n,e,Ud,r.wrap)),r.wrapR&&t.call(n,e,Ud,r.wrapR),r.wrapS&&t.call(n,e,ea,r.wrapS),r.wrapT&&t.call(n,e,ta,r.wrapT),r.minLod&&t.call(n,e,Mx,r.minLod),r.maxLod&&t.call(n,e,Nx,r.maxLod),r.baseLevel&&t.call(n,e,Tx,r.baseLevel),r.maxLevel&&t.call(n,e,Px,r.maxLevel)}function Xd(n,e,t){const r=t.target||en;n.bindTexture(r,e),KB(n,r,n.texParameteri,t)}function qB(n){return n=n||En.textureColor,zr(n)?n:new Uint8Array([n[0]*255,n[1]*255,n[2]*255,n[3]*255])}function Gl(n,e,t,r,i,s){t=t||En.textureOptions,s=s||de;const o=t.target||en;if(r=r||t.width,i=i||t.height,n.bindTexture(o,e),YB(n,r,i,s))n.generateMipmap(o);else{const a=JB(s)?Sx:vx;n.texParameteri(o,Tl,a),n.texParameteri(o,Pl,a),n.texParameteri(o,ea,Zo),n.texParameteri(o,ta,Zo)}}function ds(n){return n.auto===!0||n.auto===void 0&&n.level===void 0}function zl(n,e){return e=e||{},e.cubeFaceOrder||[$o,Qx,Dx,kx,Fx,Rx]}function Hl(n,e){const r=zl(n,e).map(function(i,s){return{face:i,ndx:s}});return r.sort(function(i,s){return i.face-s.face}),r}function Zd(n,e,t,r){r=r||En.textureOptions;const i=r.target||en,s=r.level||0;let o=t.width,a=t.height;const l=r.internalFormat||r.format||de,c=Jr(l),u=r.format||c.format,f=r.type||c.type;if(Kr(n,r),n.bindTexture(i,e),i===tn){const h=t.width,A=t.height;let d,g;if(h/6===A)d=A,g=[0,0,1,0,2,0,3,0,4,0,5,0];else if(A/6===h)d=h,g=[0,0,0,1,0,2,0,3,0,4,0,5];else if(h/3===A/2)d=h/3,g=[0,0,1,0,2,0,0,1,1,1,2,1];else if(h/2===A/3)d=h/2,g=[0,0,1,0,0,1,1,1,0,2,1,2];else throw"can't figure out cube map from element: "+(t.src?t.src:t.nodeName);const p=Nd();p?(p.canvas.width=d,p.canvas.height=d,o=d,a=d,Hl(n,r).forEach(function(m){const y=g[m.ndx*2+0]*d,C=g[m.ndx*2+1]*d;p.drawImage(t,y,C,d,d,0,0,d,d),n.texImage2D(m.face,s,l,u,f,p.canvas)}),p.canvas.width=1,p.canvas.height=1):typeof createImageBitmap<"u"&&(o=d,a=d,Hl(n,r).forEach(function(m){const y=g[m.ndx*2+0]*d,C=g[m.ndx*2+1]*d;n.texImage2D(m.face,s,l,d,d,0,u,f,null),createImageBitmap(t,y,C,d,d,{premultiplyAlpha:"none",colorSpaceConversion:"none"}).then(function(w){Kr(n,r),n.bindTexture(i,e),n.texImage2D(m.face,s,l,u,f,w),ds(r)&&Gl(n,e,r,o,a,l)})}))}else if(i===bn||i===xn){const h=Math.min(t.width,t.height),A=Math.max(t.width,t.height),d=A/h;if(d%1!==0)throw"can not compute 3D dimensions of element";const g=t.width===A?1:0,p=t.height===A?1:0;n.pixelStorei(Ll,1),n.pixelStorei(Gd,t.width),n.pixelStorei(zd,0),n.pixelStorei(_d,0),n.texImage3D(i,s,l,h,h,h,0,u,f,null);for(let m=0;m<d;++m){const y=m*h*g,C=m*h*p;n.pixelStorei(Hd,y),n.pixelStorei(Vd,C),n.texSubImage3D(i,s,0,0,m,h,h,1,u,f,t)}Wd(n)}else n.texImage2D(i,s,l,u,f,t);ds(r)&&Gl(n,e,r,o,a,l),Xd(n,e,r)}function gs(){}function jB(n){if(typeof document<"u"){const e=document.createElement("a");return e.href=n,e.hostname===location.hostname&&e.port===location.port&&e.protocol===location.protocol}else{const e=new URL(location.href).origin;return new URL(n,location.href).origin===e}}function WB(n,e){return e===void 0&&!jB(n)?"anonymous":e}function XB(n,e,t){t=t||gs;let r;if(e=e!==void 0?e:En.crossOrigin,e=WB(n,e),typeof Image<"u"){r=new Image,e!==void 0&&(r.crossOrigin=e);const i=function(){r.removeEventListener("error",s),r.removeEventListener("load",o),r=null},s=function(){const l="couldn't load image: "+n;rx(l),t(l,r),i()},o=function(){t(null,r),i()};return r.addEventListener("error",s),r.addEventListener("load",o),r.src=n,r}else if(typeof ImageBitmap<"u"){let i,s;const o=function(){t(i,s)},a={};e&&(a.mode="cors"),fetch(n,a).then(function(l){if(!l.ok)throw l;return l.blob()}).then(function(l){return createImageBitmap(l,{premultiplyAlpha:"none",colorSpaceConversion:"none"})}).then(function(l){s=l,setTimeout(o)}).catch(function(l){i=l,setTimeout(o)}),r=null}return r}function $d(n){return typeof ImageBitmap<"u"&&n instanceof ImageBitmap||typeof ImageData<"u"&&n instanceof ImageData||typeof HTMLElement<"u"&&n instanceof HTMLElement}function Vl(n,e,t){return $d(n)?(setTimeout(function(){t(null,n)}),n):XB(n,e,t)}function _l(n,e,t){t=t||En.textureOptions;const r=t.target||en;if(n.bindTexture(r,e),t.color===!1)return;const i=qB(t.color);if(r===tn)for(let s=0;s<6;++s)n.texImage2D($o+s,0,de,1,1,0,de,ge,i);else r===bn||r===xn?n.texImage3D(r,0,de,1,1,1,0,de,ge,i):n.texImage2D(r,0,de,1,1,0,de,ge,i)}function ZB(n,e,t,r){return r=r||gs,t=t||En.textureOptions,_l(n,e,t),t=Object.assign({},t),Vl(t.src,t.crossOrigin,function(s,o){s?r(s,e,o):(Zd(n,e,o,t),r(null,e,o))})}function $B(n,e,t,r){r=r||gs;const i=t.src;if(i.length!==6)throw"there must be 6 urls for a cubemap";const s=t.level||0,o=t.internalFormat||t.format||de,a=Jr(o),l=t.format||a.format,c=t.type||ge,u=t.target||en;if(u!==tn)throw"target must be TEXTURE_CUBE_MAP";_l(n,e,t),t=Object.assign({},t);let f=6;const h=[],A=zl(n,t);let d;function g(p){return function(m,y){--f,m?h.push(m):y.width!==y.height?h.push("cubemap face img is not a square: "+y.src):(Kr(n,t),n.bindTexture(u,e),f===5?zl().forEach(function(C){n.texImage2D(C,s,o,l,c,y)}):n.texImage2D(p,s,o,l,c,y),ds(t)&&n.generateMipmap(u)),f===0&&r(h.length?h:void 0,e,d)}}d=i.map(function(p,m){return Vl(p,t.crossOrigin,g(A[m]))})}function ev(n,e,t,r){r=r||gs;const i=t.src,s=t.internalFormat||t.format||de,o=Jr(s),a=t.format||o.format,l=t.type||ge,c=t.target||xn;if(c!==bn&&c!==xn)throw"target must be TEXTURE_3D or TEXTURE_2D_ARRAY";_l(n,e,t),t=Object.assign({},t);let u=i.length;const f=[];let h;const A=t.level||0;let d=t.width,g=t.height;const p=i.length;let m=!0;function y(C){return function(w,b){if(--u,w)f.push(w);else{if(Kr(n,t),n.bindTexture(c,e),m){m=!1,d=t.width||b.width,g=t.height||b.height,n.texImage3D(c,A,s,d,g,p,0,a,l,null);for(let x=0;x<p;++x)n.texSubImage3D(c,A,0,0,x,d,g,1,a,l,b)}else{let x=b,E;(b.width!==d||b.height!==g)&&(E=Nd(),x=E.canvas,E.canvas.width=d,E.canvas.height=g,E.drawImage(b,0,0,d,g)),n.texSubImage3D(c,A,0,0,C,d,g,1,a,l,x),E&&x===E.canvas&&(E.canvas.width=0,E.canvas.height=0)}ds(t)&&n.generateMipmap(c)}u===0&&r(f.length?f:void 0,e,h)}}h=i.map(function(C,w){return Vl(C,t.crossOrigin,y(w))})}function e0(n,e,t,r){r=r||En.textureOptions;const i=r.target||en;n.bindTexture(i,e);let s=r.width,o=r.height,a=r.depth;const l=r.level||0,c=r.internalFormat||r.format||de,u=Jr(c),f=r.format||u.format,h=r.type||jd(n,t,u.type);if(zr(t))t instanceof Uint8ClampedArray&&(t=new Uint8Array(t.buffer));else{const p=nx(h);t=new p(t)}const A=_B(c,h),d=t.byteLength/A;if(d%1)throw"length wrong size for format: "+Nl(n,f);let g;if(i===bn||i===xn)if(!s&&!o&&!a){const p=Math.cbrt(d);if(p%1!==0)throw"can't guess cube size of array of numElements: "+d;s=p,o=p,a=p}else s&&(!o||!a)?(g=aa(n,i,o,a,d/s),o=g.width,a=g.height):o&&(!s||!a)?(g=aa(n,i,s,a,d/o),s=g.width,a=g.height):(g=aa(n,i,s,o,d/a),s=g.width,o=g.height);else g=aa(n,i,s,o,d),s=g.width,o=g.height;if(Wd(n),n.pixelStorei(Ll,r.unpackAlignment||1),Kr(n,r),i===tn){const p=A/t.BYTES_PER_ELEMENT,m=d/6*p;Hl(n,r).forEach(y=>{const C=m*y.ndx,w=t.subarray(C,C+m);n.texImage2D(y.face,l,c,s,o,0,f,h,w)})}else i===bn||i===xn?n.texImage3D(i,l,c,s,o,a,0,f,h,t):n.texImage2D(i,l,c,s,o,0,f,h,t);return{width:s,height:o,depth:a,type:h}}function tv(n,e,t){const r=t.target||en;n.bindTexture(r,e);const i=t.level||0,s=t.internalFormat||t.format||de,o=Jr(s),a=t.format||o.format,l=t.type||o.type;if(Kr(n,t),r===tn)for(let c=0;c<6;++c)n.texImage2D($o+c,i,s,t.width,t.height,0,a,l,null);else r===bn||r===xn?n.texImage3D(r,i,s,t.width,t.height,t.depth,0,a,l,null):n.texImage2D(r,i,s,t.width,t.height,0,a,l,null)}function ps(n,e,t){t=t||gs,e=e||En.textureOptions;const r=n.createTexture(),i=e.target||en;let s=e.width||1,o=e.height||1;const a=e.internalFormat||de;n.bindTexture(i,r),i===tn&&(n.texParameteri(i,ea,Zo),n.texParameteri(i,ta,Zo));let l=e.src;if(l)if(typeof l=="function"&&(l=l(n,e)),typeof l=="string")ZB(n,r,e,t);else if(zr(l)||Array.isArray(l)&&(typeof l[0]=="number"||Array.isArray(l[0])||zr(l[0]))){const c=e0(n,r,l,e);s=c.width,o=c.height}else Array.isArray(l)&&(typeof l[0]=="string"||$d(l[0]))?i===tn?$B(n,r,e,t):ev(n,r,e,t):(Zd(n,r,l,e),s=l.width,o=l.height);else tv(n,r,e);return ds(e)&&Gl(n,r,e,s,o,a),Xd(n,r,e),r}function nv(n,e,t,r,i,s){r=r||t.width,i=i||t.height,s=s||t.depth;const o=t.target||en;n.bindTexture(o,e);const a=t.level||0,l=t.internalFormat||t.format||de,c=Jr(l),u=t.format||c.format;let f;const h=t.src;if(h&&(zr(h)||Array.isArray(h)&&typeof h[0]=="number")?f=t.type||jd(n,h,c.type):f=t.type||c.type,o===tn)for(let A=0;A<6;++A)n.texImage2D($o+A,a,l,r,i,0,u,f,null);else o===bn||o===xn?n.texImage3D(o,a,l,r,i,s,0,u,f,null):n.texImage2D(o,a,l,r,i,0,u,f,null)}const rv=vd,ca=33984,iv=35048,la=34962,sv=34963,Yl=35345,t0=35718,ov=35721,av=35971,cv=35382,lv=35396,uv=35398,fv=35392,Av=35395,ua=5126,n0=35664,r0=35665,i0=35666,Jl=5124,s0=35667,o0=35668,a0=35669,c0=35670,l0=35671,u0=35672,f0=35673,A0=35674,h0=35675,d0=35676,hv=35678,dv=35680,gv=35679,pv=35682,mv=35685,wv=35686,yv=35687,Cv=35688,Iv=35689,Ev=35690,bv=36289,xv=36292,Bv=36293,Kl=5125,g0=36294,p0=36295,m0=36296,vv=36298,Sv=36299,Qv=36300,Dv=36303,kv=36306,Fv=36307,Rv=36308,Mv=36311,fa=3553,Aa=34067,ql=32879,ha=35866,K={};function w0(n,e){return K[e].bindPoint}function Nv(n,e){return function(t){n.uniform1f(e,t)}}function Tv(n,e){return function(t){n.uniform1fv(e,t)}}function Pv(n,e){return function(t){n.uniform2fv(e,t)}}function Lv(n,e){return function(t){n.uniform3fv(e,t)}}function Ov(n,e){return function(t){n.uniform4fv(e,t)}}function y0(n,e){return function(t){n.uniform1i(e,t)}}function C0(n,e){return function(t){n.uniform1iv(e,t)}}function I0(n,e){return function(t){n.uniform2iv(e,t)}}function E0(n,e){return function(t){n.uniform3iv(e,t)}}function b0(n,e){return function(t){n.uniform4iv(e,t)}}function Uv(n,e){return function(t){n.uniform1ui(e,t)}}function Gv(n,e){return function(t){n.uniform1uiv(e,t)}}function zv(n,e){return function(t){n.uniform2uiv(e,t)}}function Hv(n,e){return function(t){n.uniform3uiv(e,t)}}function Vv(n,e){return function(t){n.uniform4uiv(e,t)}}function _v(n,e){return function(t){n.uniformMatrix2fv(e,!1,t)}}function Yv(n,e){return function(t){n.uniformMatrix3fv(e,!1,t)}}function Jv(n,e){return function(t){n.uniformMatrix4fv(e,!1,t)}}function Kv(n,e){return function(t){n.uniformMatrix2x3fv(e,!1,t)}}function qv(n,e){return function(t){n.uniformMatrix3x2fv(e,!1,t)}}function jv(n,e){return function(t){n.uniformMatrix2x4fv(e,!1,t)}}function Wv(n,e){return function(t){n.uniformMatrix4x2fv(e,!1,t)}}function Xv(n,e){return function(t){n.uniformMatrix3x4fv(e,!1,t)}}function Zv(n,e){return function(t){n.uniformMatrix4x3fv(e,!1,t)}}function $e(n,e,t,r){const i=w0(n,e);return Gr(n)?function(s){let o,a;Xo(n,s)?(o=s,a=null):(o=s.texture,a=s.sampler),n.uniform1i(r,t),n.activeTexture(ca+t),n.bindTexture(i,o),n.bindSampler(t,a)}:function(s){n.uniform1i(r,t),n.activeTexture(ca+t),n.bindTexture(i,s)}}function et(n,e,t,r,i){const s=w0(n,e),o=new Int32Array(i);for(let a=0;a<i;++a)o[a]=t+a;return Gr(n)?function(a){n.uniform1iv(r,o),a.forEach(function(l,c){n.activeTexture(ca+o[c]);let u,f;Xo(n,l)?(u=l,f=null):(u=l.texture,f=l.sampler),n.bindSampler(t,f),n.bindTexture(s,u)})}:function(a){n.uniform1iv(r,o),a.forEach(function(l,c){n.activeTexture(ca+o[c]),n.bindTexture(s,l)})}}K[ua]={Type:Float32Array,size:4,setter:Nv,arraySetter:Tv},K[n0]={Type:Float32Array,size:8,setter:Pv,cols:2},K[r0]={Type:Float32Array,size:12,setter:Lv,cols:3},K[i0]={Type:Float32Array,size:16,setter:Ov,cols:4},K[Jl]={Type:Int32Array,size:4,setter:y0,arraySetter:C0},K[s0]={Type:Int32Array,size:8,setter:I0,cols:2},K[o0]={Type:Int32Array,size:12,setter:E0,cols:3},K[a0]={Type:Int32Array,size:16,setter:b0,cols:4},K[Kl]={Type:Uint32Array,size:4,setter:Uv,arraySetter:Gv},K[g0]={Type:Uint32Array,size:8,setter:zv,cols:2},K[p0]={Type:Uint32Array,size:12,setter:Hv,cols:3},K[m0]={Type:Uint32Array,size:16,setter:Vv,cols:4},K[c0]={Type:Uint32Array,size:4,setter:y0,arraySetter:C0},K[l0]={Type:Uint32Array,size:8,setter:I0,cols:2},K[u0]={Type:Uint32Array,size:12,setter:E0,cols:3},K[f0]={Type:Uint32Array,size:16,setter:b0,cols:4},K[A0]={Type:Float32Array,size:32,setter:_v,rows:2,cols:2},K[h0]={Type:Float32Array,size:48,setter:Yv,rows:3,cols:3},K[d0]={Type:Float32Array,size:64,setter:Jv,rows:4,cols:4},K[mv]={Type:Float32Array,size:32,setter:Kv,rows:2,cols:3},K[wv]={Type:Float32Array,size:32,setter:jv,rows:2,cols:4},K[yv]={Type:Float32Array,size:48,setter:qv,rows:3,cols:2},K[Cv]={Type:Float32Array,size:48,setter:Xv,rows:3,cols:4},K[Iv]={Type:Float32Array,size:64,setter:Wv,rows:4,cols:2},K[Ev]={Type:Float32Array,size:64,setter:Zv,rows:4,cols:3},K[hv]={Type:null,size:0,setter:$e,arraySetter:et,bindPoint:fa},K[dv]={Type:null,size:0,setter:$e,arraySetter:et,bindPoint:Aa},K[gv]={Type:null,size:0,setter:$e,arraySetter:et,bindPoint:ql},K[pv]={Type:null,size:0,setter:$e,arraySetter:et,bindPoint:fa},K[bv]={Type:null,size:0,setter:$e,arraySetter:et,bindPoint:ha},K[xv]={Type:null,size:0,setter:$e,arraySetter:et,bindPoint:ha},K[Bv]={Type:null,size:0,setter:$e,arraySetter:et,bindPoint:Aa},K[vv]={Type:null,size:0,setter:$e,arraySetter:et,bindPoint:fa},K[Sv]={Type:null,size:0,setter:$e,arraySetter:et,bindPoint:ql},K[Qv]={Type:null,size:0,setter:$e,arraySetter:et,bindPoint:Aa},K[Dv]={Type:null,size:0,setter:$e,arraySetter:et,bindPoint:ha},K[kv]={Type:null,size:0,setter:$e,arraySetter:et,bindPoint:fa},K[Fv]={Type:null,size:0,setter:$e,arraySetter:et,bindPoint:ql},K[Rv]={Type:null,size:0,setter:$e,arraySetter:et,bindPoint:Aa},K[Mv]={Type:null,size:0,setter:$e,arraySetter:et,bindPoint:ha};function da(n,e){return function(t){if(t.value)switch(n.disableVertexAttribArray(e),t.value.length){case 4:n.vertexAttrib4fv(e,t.value);break;case 3:n.vertexAttrib3fv(e,t.value);break;case 2:n.vertexAttrib2fv(e,t.value);break;case 1:n.vertexAttrib1fv(e,t.value);break;default:throw new Error("the length of a float constant value must be between 1 and 4!")}else n.bindBuffer(la,t.buffer),n.enableVertexAttribArray(e),n.vertexAttribPointer(e,t.numComponents||t.size,t.type||ua,t.normalize||!1,t.stride||0,t.offset||0),t.divisor!==void 0&&n.vertexAttribDivisor(e,t.divisor)}}function vn(n,e){return function(t){if(t.value)if(n.disableVertexAttribArray(e),t.value.length===4)n.vertexAttrib4iv(e,t.value);else throw new Error("The length of an integer constant value must be 4!");else n.bindBuffer(la,t.buffer),n.enableVertexAttribArray(e),n.vertexAttribIPointer(e,t.numComponents||t.size,t.type||Jl,t.stride||0,t.offset||0),t.divisor!==void 0&&n.vertexAttribDivisor(e,t.divisor)}}function ga(n,e){return function(t){if(t.value)if(n.disableVertexAttribArray(e),t.value.length===4)n.vertexAttrib4uiv(e,t.value);else throw new Error("The length of an unsigned integer constant value must be 4!");else n.bindBuffer(la,t.buffer),n.enableVertexAttribArray(e),n.vertexAttribIPointer(e,t.numComponents||t.size,t.type||Kl,t.stride||0,t.offset||0),t.divisor!==void 0&&n.vertexAttribDivisor(e,t.divisor)}}function jl(n,e,t){const r=t.size,i=t.count;return function(s){n.bindBuffer(la,s.buffer);const o=s.size||s.numComponents||r,a=o/i,l=s.type||ua,u=K[l].size*o,f=s.normalize||!1,h=s.offset||0,A=u/i;for(let d=0;d<i;++d)n.enableVertexAttribArray(e+d),n.vertexAttribPointer(e+d,a,l,f,u,h+A*d),s.divisor!==void 0&&n.vertexAttribDivisor(e+d,s.divisor)}}const Be={};Be[ua]={size:4,setter:da},Be[n0]={size:8,setter:da},Be[r0]={size:12,setter:da},Be[i0]={size:16,setter:da},Be[Jl]={size:4,setter:vn},Be[s0]={size:8,setter:vn},Be[o0]={size:12,setter:vn},Be[a0]={size:16,setter:vn},Be[Kl]={size:4,setter:ga},Be[g0]={size:8,setter:ga},Be[p0]={size:12,setter:ga},Be[m0]={size:16,setter:ga},Be[c0]={size:4,setter:vn},Be[l0]={size:8,setter:vn},Be[u0]={size:12,setter:vn},Be[f0]={size:16,setter:vn},Be[A0]={size:4,setter:jl,count:2},Be[h0]={size:9,setter:jl,count:3},Be[d0]={size:16,setter:jl,count:4};function x0(n){const e=n.name;return e.startsWith("gl_")||e.startsWith("webgl_")}const $v=/(\.|\[|]|\w+)/g,e3=n=>n>="0"&&n<="9";function B0(n,e,t,r){const i=n.split($v).filter(a=>a!=="");let s=0,o="";for(;;){const a=i[s++];o+=a;const l=e3(a[0]),c=l?parseInt(a):a;if(l&&(o+=i[s++]),s===i.length){t[c]=e;break}else{const f=i[s++],h=f==="[",A=t[c]||(h?[]:{});t[c]=A,t=A,r[o]=r[o]||(function(d){return function(g){k0(d,g)}})(A),o+=f}}}function t3(n,e){let t=0;function r(a,l,c){const u=l.name.endsWith("[0]"),f=l.type,h=K[f];if(!h)throw new Error(`unknown type: 0x${f.toString(16)}`);let A;if(h.bindPoint){const d=t;t+=l.size,u?A=h.arraySetter(n,f,d,c,l.size):A=h.setter(n,f,d,c,l.size)}else h.arraySetter&&u?A=h.arraySetter(n,c):A=h.setter(n,c);return A.location=c,A}const i={},s={},o=n.getProgramParameter(e,t0);for(let a=0;a<o;++a){const l=n.getActiveUniform(e,a);if(x0(l))continue;let c=l.name;c.endsWith("[0]")&&(c=c.substr(0,c.length-3));const u=n.getUniformLocation(e,l.name);if(u){const f=r(e,l,u);i[c]=f,B0(c,f,s,i)}}return i}function n3(n,e){const t={},r=n.getProgramParameter(e,av);for(let i=0;i<r;++i){const s=n.getTransformFeedbackVarying(e,i);t[s.name]={index:i,type:s.type,size:s.size}}return t}function r3(n,e){const t=n.getProgramParameter(e,t0),r=[],i=[];for(let a=0;a<t;++a){i.push(a),r.push({});const l=n.getActiveUniform(e,a);r[a].name=l.name}[["UNIFORM_TYPE","type"],["UNIFORM_SIZE","size"],["UNIFORM_BLOCK_INDEX","blockNdx"],["UNIFORM_OFFSET","offset"]].forEach(function(a){const l=a[0],c=a[1];n.getActiveUniforms(e,i,n[l]).forEach(function(u,f){r[f][c]=u})});const s={},o=n.getProgramParameter(e,cv);for(let a=0;a<o;++a){const l=n.getActiveUniformBlockName(e,a),c={index:n.getUniformBlockIndex(e,l),usedByVertexShader:n.getActiveUniformBlockParameter(e,a,lv),usedByFragmentShader:n.getActiveUniformBlockParameter(e,a,uv),size:n.getActiveUniformBlockParameter(e,a,fv),uniformIndices:n.getActiveUniformBlockParameter(e,a,Av)};c.used=c.usedByVertexShader||c.usedByFragmentShader,s[l]=c}return{blockSpecs:s,uniformData:r}}const v0=/\[\d+\]\.$/,i3=(n,e)=>((n+(e-1))/e|0)*e;function s3(n,e,t,r){if(e||t){r=r||1;const s=n.length/4;return function(o){let a=0,l=0;for(let c=0;c<s;++c){for(let u=0;u<r;++u)n[a++]=o[l++];a+=4-r}}}else return function(i){i.length?n.set(i):n[0]=i}}function o3(n,e,t,r){const i=t.blockSpecs,s=t.uniformData,o=i[r];if(!o)return rv("no uniform block object named:",r),{name:r,uniforms:{}};const a=new ArrayBuffer(o.size),l=n.createBuffer(),c=o.index;n.bindBuffer(Yl,l),n.uniformBlockBinding(e,o.index,c);let u=r+".";v0.test(u)&&(u=u.replace(v0,"."));const f={},h={},A={};return o.uniformIndices.forEach(function(d){const g=s[d];let p=g.name;p.startsWith(u)&&(p=p.substr(u.length));const m=p.endsWith("[0]");m&&(p=p.substr(0,p.length-3));const y=K[g.type],C=y.Type,w=m?i3(y.size,16)*g.size:y.size*g.size,b=new C(a,g.offset,w/C.BYTES_PER_ELEMENT);f[p]=b;const x=s3(b,m,y.rows,y.cols);h[p]=x,B0(p,x,A,h)}),{name:r,array:a,asFloat:new Float32Array(a),buffer:l,uniforms:f,setters:h}}function S0(n,e,t){return o3(n,e.program,e.uniformBlockSpec,t)}function Q0(n,e,t){const i=(e.uniformBlockSpec||e).blockSpecs[t.name];if(i){const s=i.index;return n.bindBufferRange(Yl,s,t.buffer,t.offset||0,t.array.byteLength),!0}return!1}function D0(n,e,t){Q0(n,e,t)&&n.bufferData(Yl,t.array,iv)}function ms(n,e){const t=n.setters;for(const r in e){const i=t[r];if(i){const s=e[r];i(s)}}}function k0(n,e){for(const t in e){const r=n[t];typeof r=="function"?r(e[t]):k0(n[t],e[t])}}function rr(n,...e){const t=n.uniformSetters||n,r=e.length;for(let i=0;i<r;++i){const s=e[i];if(Array.isArray(s)){const o=s.length;for(let a=0;a<o;++a)rr(t,s[a])}else for(const o in s){const a=t[o];a&&a(s[o])}}}function a3(n,e){const t={},r=n.getProgramParameter(e,ov);for(let i=0;i<r;++i){const s=n.getActiveAttrib(e,i);if(x0(s))continue;const o=n.getAttribLocation(e,s.name),a=Be[s.type],l=a.setter(n,o,a);l.location=o,t[s.name]=l}return t}function c3(n,e){for(const t in e){const r=n[t];r&&r(e[t])}}function ir(n,e,t){t.vertexArrayObject?n.bindVertexArray(t.vertexArrayObject):(c3(e.attribSetters||e,t.attribs),t.indices&&n.bindBuffer(sv,t.indices))}function l3(n,e){const t=t3(n,e),r=a3(n,e),i={program:e,uniformSetters:t,attribSetters:r};return Gr(n)&&(i.uniformBlockSpec=r3(n,e),i.transformFeedbackInfo=n3(n,e)),i}const u3=4,F0=5123;function pa(n,e,t,r,i,s){t=t===void 0?u3:t;const o=e.indices,a=e.elementType,l=r===void 0?e.numElements:r;i=i===void 0?0:i,a||o?s!==void 0?n.drawElementsInstanced(t,l,a===void 0?F0:e.elementType,i,s):n.drawElements(t,l,a===void 0?F0:e.elementType,i):s!==void 0?n.drawArraysInstanced(t,i,l,s):n.drawArrays(t,i,l)}const f3=36160,sr=36161,A3=3553,h3=5121,d3=6402,g3=6408,p3=33190,m3=36012,w3=35056,y3=36013,C3=32854,I3=32855,E3=36194,R0=33189,M0=6401,N0=36168,Wl=34041,Xl=36064,ma=36096,T0=36128,Zl=33306,$l=33071,eu=9729,P0=[{format:g3,type:h3,min:eu,wrap:$l},{format:Wl}],Bt={};Bt[Wl]=Zl,Bt[M0]=T0,Bt[N0]=T0,Bt[d3]=ma,Bt[R0]=ma,Bt[p3]=ma,Bt[m3]=ma,Bt[w3]=Zl,Bt[y3]=Zl;function b3(n,e){return Bt[n]||Bt[e]}const Sn={};Sn[C3]=!0,Sn[I3]=!0,Sn[E3]=!0,Sn[Wl]=!0,Sn[R0]=!0,Sn[M0]=!0,Sn[N0]=!0;function x3(n){return Sn[n]}const B3=32;function v3(n){return n>=Xl&&n<Xl+B3}function L0(n,e,t,r){const i=f3,s=n.createFramebuffer();n.bindFramebuffer(i,s),t=t||n.drawingBufferWidth,r=r||n.drawingBufferHeight,e=e||P0;const o=[],a={framebuffer:s,attachments:[],width:t,height:r};return e.forEach(function(l,c){let u=l.attachment;const f=l.samples,h=l.format;let A=l.attachmentPoint||b3(h,l.internalFormat);if(A||(A=Xl+c),v3(A)&&o.push(A),!u)if(f!==void 0||x3(h))u=n.createRenderbuffer(),n.bindRenderbuffer(sr,u),f>1?n.renderbufferStorageMultisample(sr,f,h,t,r):n.renderbufferStorage(sr,h,t,r);else{const d=Object.assign({},l);d.width=t,d.height=r,d.auto===void 0&&(d.auto=!1,d.min=d.min||d.minMag||eu,d.mag=d.mag||d.minMag||eu,d.wrapS=d.wrapS||d.wrap||$l,d.wrapT=d.wrapT||d.wrap||$l),u=ps(n,d)}if(Sd(n,u))n.framebufferRenderbuffer(i,A,sr,u);else if(Xo(n,u))l.layer!==void 0?n.framebufferTextureLayer(i,A,u,l.level||0,l.layer):n.framebufferTexture2D(i,A,l.target||A3,u,l.level||0);else throw new Error("unknown attachment type");a.attachments.push(u)}),n.drawBuffers&&n.drawBuffers(o),a}function S3(n,e,t,r,i){r=r||n.drawingBufferWidth,i=i||n.drawingBufferHeight,e.width=r,e.height=i,t=t||P0,t.forEach(function(s,o){const a=e.attachments[o],l=s.format,c=s.samples;if(c!==void 0||Sd(n,a))n.bindRenderbuffer(sr,a),c>1?n.renderbufferStorageMultisample(sr,c,l,r,i):n.renderbufferStorage(sr,l,r,i);else if(Xo(n,a))nv(n,a,s,r,i);else throw new Error("unknown attachment type")})}function Q3(n,e,t){const r=n.createVertexArray();return n.bindVertexArray(r),e.length||(e=[e]),e.forEach(function(i){ir(n,i,t)}),n.bindVertexArray(null),{numElements:t.numElements,elementType:t.elementType,vertexArrayObject:r}}const D3=/^(.*?)_/;function k3(n,e){Nl(n,0);const t=n.getExtension(e);if(t){const r={},i=D3.exec(e)[1],s="_"+i;for(const o in t){const a=t[o],l=typeof a=="function",c=l?i:s;let u=o;o.endsWith(c)&&(u=o.substring(0,o.length-c.length)),n[u]!==void 0?!l&&n[u]!==a&&vd(u,n[u],a,o):l?n[u]=(function(f){return function(){return f.apply(t,arguments)}})(a):(n[u]=a,r[u]=a)}r.constructor={name:t.constructor.name},Nl(r,0)}return t}const O0=["ANGLE_instanced_arrays","EXT_blend_minmax","EXT_color_buffer_float","EXT_color_buffer_half_float","EXT_disjoint_timer_query","EXT_disjoint_timer_query_webgl2","EXT_frag_depth","EXT_sRGB","EXT_shader_texture_lod","EXT_texture_filter_anisotropic","OES_element_index_uint","OES_standard_derivatives","OES_texture_float","OES_texture_float_linear","OES_texture_half_float","OES_texture_half_float_linear","OES_vertex_array_object","WEBGL_color_buffer_float","WEBGL_compressed_texture_atc","WEBGL_compressed_texture_etc1","WEBGL_compressed_texture_pvrtc","WEBGL_compressed_texture_s3tc","WEBGL_compressed_texture_s3tc_srgb","WEBGL_depth_texture","WEBGL_draw_buffers"];function U0(n){for(let e=0;e<O0.length;++e)k3(n,O0[e])}function F3(n,e){const t=["webgl2","webgl","experimental-webgl"];let r=null;for(let i=0;i<t.length;++i)if(r=n.getContext(t[i],e),r){U0(r);break}return r}function R3(n,e){return F3(n,e)}const M3=`flat out lowp vec4 vFillColor;flat out lowp vec4 vStrokeColor;flat out float vHalfStrokeWidth;flat out vec4 vCornerRadii;
|
|
347
|
+
</div>`);else throw new Error("Unsupported input type: "+r.input);r.description&&n.push(ae`<div class="description">${r.description}</div>`)}return n}class Nv{#e;#t;#n;constructor(e,n){this.#e=e,this.#t=n,this.#n=void 0}initialize(e){const n=[];e.visit(r=>{const s=r.paramRuntime;n.push(...Fv(s))});const i=this.#t.inputBindingContainer;if(!(!i||i=="none"||!n.length)){if(this.#n=document.createElement("div"),this.#n.className="gs-input-bindings",i=="default")this.#e.appendChild(this.#n);else if(i instanceof HTMLElement)i.appendChild(this.#n);else throw new Error("Invalid inputBindingContainer");n.length&&ts(ae`<div class="gs-input-binding">${n}</div>`,this.#n)}}remove(){this.#n?.remove()}}const eu=5120,Is=5121,tu=5122,nu=5123,iu=5124,ru=5125,su=5126,Mv=32819,Tv=32820,Pv=33635,Lv=5131,Ov=33640,Uv=35899,_v=35902,zv=36269,Gv=34042,h0={};{const t=h0;t[eu]=Int8Array,t[Is]=Uint8Array,t[tu]=Int16Array,t[nu]=Uint16Array,t[iu]=Int32Array,t[ru]=Uint32Array,t[su]=Float32Array,t[Mv]=Uint16Array,t[Tv]=Uint16Array,t[Pv]=Uint16Array,t[Lv]=Uint16Array,t[Ov]=Uint32Array,t[Uv]=Uint32Array,t[_v]=Uint32Array,t[zv]=Uint32Array,t[Gv]=Uint32Array}function ou(t){if(t instanceof Int8Array)return eu;if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)return Is;if(t instanceof Int16Array)return tu;if(t instanceof Uint16Array)return nu;if(t instanceof Int32Array)return iu;if(t instanceof Uint32Array)return ru;if(t instanceof Float32Array)return su;throw new Error("unsupported typed array type")}function Hv(t){if(t===Int8Array)return eu;if(t===Uint8Array||t===Uint8ClampedArray)return Is;if(t===Int16Array)return tu;if(t===Uint16Array)return nu;if(t===Int32Array)return iu;if(t===Uint32Array)return ru;if(t===Float32Array)return su;throw new Error("unsupported typed array type")}function Yv(t){const e=h0[t];if(!e)throw new Error("unknown gl type");return e}const fa=typeof SharedArrayBuffer<"u"?function(e){return e&&e.buffer&&(e.buffer instanceof ArrayBuffer||e.buffer instanceof SharedArrayBuffer)}:function(e){return e&&e.buffer&&e.buffer instanceof ArrayBuffer};function Vv(...t){console.error(...t)}function A0(...t){console.warn(...t)}function Jv(t,e){return typeof WebGLBuffer<"u"&&e instanceof WebGLBuffer}function d0(t,e){return typeof WebGLRenderbuffer<"u"&&e instanceof WebGLRenderbuffer}function ha(t,e){return typeof WebGLTexture<"u"&&e instanceof WebGLTexture}function qv(t,e){return typeof WebGLSampler<"u"&&e instanceof WebGLSampler}const g0=35044,Lt=34962,Kv=34963,jv=34660,Wv=5120,Xv=5121,Zv=5122,$v=5123,eB=5124,tB=5125,nB=5126,p0={attribPrefix:""};function m0(t,e,n,i,r){t.bindBuffer(e,n),t.bufferData(e,i,r||g0)}function w0(t,e,n,i){if(Jv(t,e))return e;n=n||Lt;const r=t.createBuffer();return m0(t,n,r,e,i),r}function y0(t){return t==="indices"}function iB(t){return t instanceof Int8Array||t instanceof Uint8Array}function rB(t){return t===Int8Array||t===Uint8Array}function sB(t){return t.length?t:t.data}const oB=/coord|texture/i,aB=/color|colour/i;function C0(t,e){let n;if(oB.test(t)?n=2:aB.test(t)?n=4:n=3,e%n>0)throw new Error(`Can not guess numComponents for attribute '${t}'. Tried ${n} but ${e} values is not evenly divisible by ${n}. You should specify it.`);return n}function cB(t,e){return t.numComponents||t.size||C0(e,sB(t).length)}function au(t,e){if(fa(t))return t;if(fa(t.data))return t.data;Array.isArray(t)&&(t={data:t});let n=t.type;return n||(y0(e)?n=Uint16Array:n=Float32Array),new n(t.data)}function lB(t,e){const n={};return Object.keys(e).forEach(function(i){if(!y0(i)){const r=e[i],s=r.attrib||r.name||r.attribName||p0.attribPrefix+i;if(r.value){if(!Array.isArray(r.value)&&!fa(r.value))throw new Error("array.value is not array or typedarray");n[s]={value:r.value}}else{let o,a,l,c;if(r.buffer&&r.buffer instanceof WebGLBuffer)o=r.buffer,c=r.numComponents||r.size,a=r.type,l=r.normalize;else if(typeof r=="number"||typeof r.data=="number"){const u=r.data||r,f=r.type||Float32Array,h=u*f.BYTES_PER_ELEMENT;a=Hv(f),l=r.normalize!==void 0?r.normalize:rB(f),c=r.numComponents||r.size||C0(i,u),o=t.createBuffer(),t.bindBuffer(Lt,o),t.bufferData(Lt,h,r.drawType||g0)}else{const u=au(r,i);o=w0(t,u,void 0,r.drawType),a=ou(u),l=r.normalize!==void 0?r.normalize:iB(u),c=cB(r,i)}n[s]={buffer:o,numComponents:c,type:a,normalize:l,stride:r.stride||0,offset:r.offset||0,divisor:r.divisor===void 0?void 0:r.divisor,drawType:r.drawType}}}}),t.bindBuffer(Lt,null),n}function uB(t,e,n,i){n=au(n),i!==void 0?(t.bindBuffer(Lt,e.buffer),t.bufferSubData(Lt,i,n)):m0(t,Lt,e.buffer,n,e.drawType)}function fB(t,e){return e===Wv||e===Xv?1:e===Zv||e===$v?2:e===eB||e===tB||e===nB?4:0}const cu=["position","positions","a_position"];function hB(t,e){let n,i;for(i=0;i<cu.length&&(n=cu[i],!(n in e||(n=p0.attribPrefix+n,n in e)));++i);i===cu.length&&(n=Object.keys(e)[0]);const r=e[n];if(!r.buffer)return 1;t.bindBuffer(Lt,r.buffer);const s=t.getBufferParameter(Lt,jv);t.bindBuffer(Lt,null);const o=fB(t,r.type),a=s/o,l=r.numComponents||r.size,c=a/l;if(c%1!==0)throw new Error(`numComponents ${l} not correct for length ${length}`);return c}function AB(t,e,n){const i=lB(t,e),r=Object.assign({},n||{});r.attribs=Object.assign({},n?n.attribs:{},i);const s=e.indices;if(s){const o=au(s,"indices");r.indices=w0(t,o,Kv),r.numElements=o.length,r.elementType=ou(o)}else r.numElements||(r.numElements=hB(t,r.attribs));return r}function Wi(t){return!!t.texStorage2D}const lu=(function(){const t={},e={};function n(i){const r=i.constructor.name;if(!t[r]){for(const s in i)if(typeof i[s]=="number"){const o=e[i[s]];e[i[s]]=o?`${o} | ${s}`:s}t[r]=!0}}return function(r,s){return n(r),e[s]||(typeof s=="number"?`0x${s.toString(16)}`:s)}})(),Qn={textureColor:new Uint8Array([128,192,255,255]),textureOptions:{},crossOrigin:void 0},Xi=fa,b0=(function(){let t;return function(){return t=t||(typeof document<"u"&&document.createElement?document.createElement("canvas").getContext("2d"):null),t}})(),E0=6406,Ot=6407,de=6408,I0=6409,x0=6410,xs=6402,v0=34041,Aa=33071,dB=9728,gB=9729,sn=3553,on=34067,kn=32879,Rn=35866,da=34069,pB=34070,mB=34071,wB=34072,yB=34073,CB=34074,uu=10241,fu=10240,ga=10242,pa=10243,B0=32882,bB=33082,EB=33083,IB=33084,xB=33085,hu=3317,S0=3314,D0=32878,Q0=3316,k0=3315,R0=32877,vB=37443,BB=37441,SB=37440,DB=33321,QB=36756,kB=33325,RB=33326,FB=33330,NB=33329,MB=33338,TB=33337,PB=33340,LB=33339,OB=33323,UB=36757,_B=33327,zB=33328,GB=33336,HB=33335,YB=33332,VB=33331,JB=33334,qB=33333,KB=32849,jB=35905,WB=36194,XB=36758,ZB=35898,$B=35901,eS=34843,tS=34837,nS=36221,iS=36239,rS=36215,sS=36233,oS=36209,aS=36227,cS=32856,lS=35907,uS=36759,fS=32855,hS=32854,AS=32857,dS=34842,gS=34836,pS=36220,mS=36238,wS=36975,yS=36214,CS=36232,bS=36226,ES=36208,IS=33189,xS=33190,vS=36012,BS=36013,SS=35056,Fn=5120,ge=5121,ma=5122,Zi=5123,wa=5124,ui=5125,Ke=5126,F0=32819,N0=32820,M0=33635,Bt=5131,vs=36193,Au=33640,DS=35899,QS=35902,kS=36269,RS=34042,ya=33319,$i=33320,Ca=6403,er=36244,tr=36248,fi=36249;let du;function ba(t){if(!du){const e={};e[E0]={textureFormat:E0,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1,2,2,4],type:[ge,Bt,vs,Ke]},e[I0]={textureFormat:I0,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1,2,2,4],type:[ge,Bt,vs,Ke]},e[x0]={textureFormat:x0,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[2,4,4,8],type:[ge,Bt,vs,Ke]},e[Ot]={textureFormat:Ot,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3,6,6,12,2],type:[ge,Bt,vs,Ke,M0]},e[de]={textureFormat:de,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,8,8,16,2,2],type:[ge,Bt,vs,Ke,F0,N0]},e[xs]={textureFormat:xs,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2,4],type:[ui,Zi]},e[DB]={textureFormat:Ca,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1],type:[ge]},e[QB]={textureFormat:Ca,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[1],type:[Fn]},e[kB]={textureFormat:Ca,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[4,2],type:[Ke,Bt]},e[RB]={textureFormat:Ca,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[4],type:[Ke]},e[FB]={textureFormat:er,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[1],type:[ge]},e[NB]={textureFormat:er,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[1],type:[Fn]},e[YB]={textureFormat:er,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[Zi]},e[VB]={textureFormat:er,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[ma]},e[JB]={textureFormat:er,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[ui]},e[qB]={textureFormat:er,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[wa]},e[OB]={textureFormat:ya,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[2],type:[ge]},e[UB]={textureFormat:ya,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[2],type:[Fn]},e[_B]={textureFormat:ya,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[8,4],type:[Ke,Bt]},e[zB]={textureFormat:ya,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[8],type:[Ke]},e[GB]={textureFormat:$i,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[ge]},e[HB]={textureFormat:$i,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[Fn]},e[MB]={textureFormat:$i,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Zi]},e[TB]={textureFormat:$i,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[ma]},e[PB]={textureFormat:$i,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[ui]},e[LB]={textureFormat:$i,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[wa]},e[KB]={textureFormat:Ot,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3],type:[ge]},e[jB]={textureFormat:Ot,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[3],type:[ge]},e[WB]={textureFormat:Ot,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3,2],type:[ge,M0]},e[XB]={textureFormat:Ot,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[3],type:[Fn]},e[ZB]={textureFormat:Ot,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6,4],type:[Ke,Bt,DS]},e[$B]={textureFormat:Ot,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6,4],type:[Ke,Bt,QS]},e[eS]={textureFormat:Ot,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6],type:[Ke,Bt]},e[tS]={textureFormat:Ot,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[Ke]},e[nS]={textureFormat:tr,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[3],type:[ge]},e[iS]={textureFormat:tr,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[3],type:[Fn]},e[rS]={textureFormat:tr,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[6],type:[Zi]},e[sS]={textureFormat:tr,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[6],type:[ma]},e[oS]={textureFormat:tr,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[ui]},e[aS]={textureFormat:tr,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[wa]},e[cS]={textureFormat:de,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[ge]},e[lS]={textureFormat:de,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[ge]},e[uS]={textureFormat:de,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[4],type:[Fn]},e[fS]={textureFormat:de,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,2,4],type:[ge,N0,Au]},e[hS]={textureFormat:de,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,2],type:[ge,F0]},e[AS]={textureFormat:de,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[Au]},e[dS]={textureFormat:de,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[16,8],type:[Ke,Bt]},e[gS]={textureFormat:de,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[16],type:[Ke]},e[pS]={textureFormat:fi,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[ge]},e[mS]={textureFormat:fi,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Fn]},e[wS]={textureFormat:fi,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Au]},e[yS]={textureFormat:fi,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[Zi]},e[CS]={textureFormat:fi,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[ma]},e[bS]={textureFormat:fi,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[16],type:[wa]},e[ES]={textureFormat:fi,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[16],type:[ui]},e[IS]={textureFormat:xs,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2,4],type:[Zi,ui]},e[xS]={textureFormat:xs,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[ui]},e[vS]={textureFormat:xs,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Ke]},e[SS]={textureFormat:v0,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[RS]},e[BS]={textureFormat:v0,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[kS]},Object.keys(e).forEach(function(n){const i=e[n];i.bytesPerElementMap={},i.bytesPerElement.forEach(function(r,s){const o=i.type[s];i.bytesPerElementMap[o]=r})}),du=e}return du[t]}function FS(t,e){const n=ba(t);if(!n)throw"unknown internal format";const i=n.bytesPerElementMap[e];if(i===void 0)throw"unknown internal format";return i}function nr(t){const e=ba(t);if(!e)throw"unknown internal format";return{format:e.textureFormat,type:e.type[0]}}function T0(t){return(t&t-1)===0}function NS(t,e,n,i){if(!Wi(t))return T0(e)&&T0(n);const r=ba(i);if(!r)throw"unknown internal format";return r.colorRenderable&&r.textureFilterable}function MS(t){const e=ba(t);if(!e)throw"unknown internal format";return e.textureFilterable}function P0(t,e,n){return Xi(e)?ou(e):n||ge}function Ea(t,e,n,i,r){if(r%1!==0)throw"can't guess dimensions";if(!n&&!i){const s=Math.sqrt(r/(e===on?6:1));s%1===0?(n=s,i=s):(n=r,i=1)}else if(i){if(!n&&(n=r/i,n%1))throw"can't guess dimensions"}else if(i=r/n,i%1)throw"can't guess dimensions";return{width:n,height:i}}function ir(t,e){e.colorspaceConversion!==void 0&&t.pixelStorei(vB,e.colorspaceConversion),e.premultiplyAlpha!==void 0&&t.pixelStorei(BB,e.premultiplyAlpha),e.flipY!==void 0&&t.pixelStorei(SB,e.flipY)}function L0(t){t.pixelStorei(hu,4),Wi(t)&&(t.pixelStorei(S0,0),t.pixelStorei(D0,0),t.pixelStorei(Q0,0),t.pixelStorei(k0,0),t.pixelStorei(R0,0))}function TS(t,e,n,i){i.minMag&&(n.call(t,e,uu,i.minMag),n.call(t,e,fu,i.minMag)),i.min&&n.call(t,e,uu,i.min),i.mag&&n.call(t,e,fu,i.mag),i.wrap&&(n.call(t,e,ga,i.wrap),n.call(t,e,pa,i.wrap),(e===kn||qv(t,e))&&n.call(t,e,B0,i.wrap)),i.wrapR&&n.call(t,e,B0,i.wrapR),i.wrapS&&n.call(t,e,ga,i.wrapS),i.wrapT&&n.call(t,e,pa,i.wrapT),i.minLod&&n.call(t,e,bB,i.minLod),i.maxLod&&n.call(t,e,EB,i.maxLod),i.baseLevel&&n.call(t,e,IB,i.baseLevel),i.maxLevel&&n.call(t,e,xB,i.maxLevel)}function O0(t,e,n){const i=n.target||sn;t.bindTexture(i,e),TS(t,i,t.texParameteri,n)}function PS(t){return t=t||Qn.textureColor,Xi(t)?t:new Uint8Array([t[0]*255,t[1]*255,t[2]*255,t[3]*255])}function gu(t,e,n,i,r,s){n=n||Qn.textureOptions,s=s||de;const o=n.target||sn;if(i=i||n.width,r=r||n.height,t.bindTexture(o,e),NS(t,i,r,s))t.generateMipmap(o);else{const a=MS(s)?gB:dB;t.texParameteri(o,uu,a),t.texParameteri(o,fu,a),t.texParameteri(o,ga,Aa),t.texParameteri(o,pa,Aa)}}function Bs(t){return t.auto===!0||t.auto===void 0&&t.level===void 0}function pu(t,e){return e=e||{},e.cubeFaceOrder||[da,pB,mB,wB,yB,CB]}function mu(t,e){const i=pu(t,e).map(function(r,s){return{face:r,ndx:s}});return i.sort(function(r,s){return r.face-s.face}),i}function U0(t,e,n,i){i=i||Qn.textureOptions;const r=i.target||sn,s=i.level||0;let o=n.width,a=n.height;const l=i.internalFormat||i.format||de,c=nr(l),u=i.format||c.format,f=i.type||c.type;if(ir(t,i),t.bindTexture(r,e),r===on){const h=n.width,A=n.height;let d,g;if(h/6===A)d=A,g=[0,0,1,0,2,0,3,0,4,0,5,0];else if(A/6===h)d=h,g=[0,0,0,1,0,2,0,3,0,4,0,5];else if(h/3===A/2)d=h/3,g=[0,0,1,0,2,0,0,1,1,1,2,1];else if(h/2===A/3)d=h/2,g=[0,0,1,0,0,1,1,1,0,2,1,2];else throw"can't figure out cube map from element: "+(n.src?n.src:n.nodeName);const m=b0();m?(m.canvas.width=d,m.canvas.height=d,o=d,a=d,mu(t,i).forEach(function(p){const w=g[p.ndx*2+0]*d,C=g[p.ndx*2+1]*d;m.drawImage(n,w,C,d,d,0,0,d,d),t.texImage2D(p.face,s,l,u,f,m.canvas)}),m.canvas.width=1,m.canvas.height=1):typeof createImageBitmap<"u"&&(o=d,a=d,mu(t,i).forEach(function(p){const w=g[p.ndx*2+0]*d,C=g[p.ndx*2+1]*d;t.texImage2D(p.face,s,l,d,d,0,u,f,null),createImageBitmap(n,w,C,d,d,{premultiplyAlpha:"none",colorSpaceConversion:"none"}).then(function(y){ir(t,i),t.bindTexture(r,e),t.texImage2D(p.face,s,l,u,f,y),Bs(i)&&gu(t,e,i,o,a,l)})}))}else if(r===kn||r===Rn){const h=Math.min(n.width,n.height),A=Math.max(n.width,n.height),d=A/h;if(d%1!==0)throw"can not compute 3D dimensions of element";const g=n.width===A?1:0,m=n.height===A?1:0;t.pixelStorei(hu,1),t.pixelStorei(S0,n.width),t.pixelStorei(D0,0),t.pixelStorei(R0,0),t.texImage3D(r,s,l,h,h,h,0,u,f,null);for(let p=0;p<d;++p){const w=p*h*g,C=p*h*m;t.pixelStorei(Q0,w),t.pixelStorei(k0,C),t.texSubImage3D(r,s,0,0,p,h,h,1,u,f,n)}L0(t)}else t.texImage2D(r,s,l,u,f,n);Bs(i)&&gu(t,e,i,o,a,l),O0(t,e,i)}function Ss(){}function LS(t){if(typeof document<"u"){const e=document.createElement("a");return e.href=t,e.hostname===location.hostname&&e.port===location.port&&e.protocol===location.protocol}else{const e=new URL(location.href).origin;return new URL(t,location.href).origin===e}}function OS(t,e){return e===void 0&&!LS(t)?"anonymous":e}function US(t,e,n){n=n||Ss;let i;if(e=e!==void 0?e:Qn.crossOrigin,e=OS(t,e),typeof Image<"u"){i=new Image,e!==void 0&&(i.crossOrigin=e);const r=function(){i.removeEventListener("error",s),i.removeEventListener("load",o),i=null},s=function(){const l="couldn't load image: "+t;Vv(l),n(l,i),r()},o=function(){n(null,i),r()};return i.addEventListener("error",s),i.addEventListener("load",o),i.src=t,i}else if(typeof ImageBitmap<"u"){let r,s;const o=function(){n(r,s)},a={};e&&(a.mode="cors"),fetch(t,a).then(function(l){if(!l.ok)throw l;return l.blob()}).then(function(l){return createImageBitmap(l,{premultiplyAlpha:"none",colorSpaceConversion:"none"})}).then(function(l){s=l,setTimeout(o)}).catch(function(l){r=l,setTimeout(o)}),i=null}return i}function _0(t){return typeof ImageBitmap<"u"&&t instanceof ImageBitmap||typeof ImageData<"u"&&t instanceof ImageData||typeof HTMLElement<"u"&&t instanceof HTMLElement}function wu(t,e,n){return _0(t)?(setTimeout(function(){n(null,t)}),t):US(t,e,n)}function yu(t,e,n){n=n||Qn.textureOptions;const i=n.target||sn;if(t.bindTexture(i,e),n.color===!1)return;const r=PS(n.color);if(i===on)for(let s=0;s<6;++s)t.texImage2D(da+s,0,de,1,1,0,de,ge,r);else i===kn||i===Rn?t.texImage3D(i,0,de,1,1,1,0,de,ge,r):t.texImage2D(i,0,de,1,1,0,de,ge,r)}function _S(t,e,n,i){return i=i||Ss,n=n||Qn.textureOptions,yu(t,e,n),n=Object.assign({},n),wu(n.src,n.crossOrigin,function(s,o){s?i(s,e,o):(U0(t,e,o,n),i(null,e,o))})}function zS(t,e,n,i){i=i||Ss;const r=n.src;if(r.length!==6)throw"there must be 6 urls for a cubemap";const s=n.level||0,o=n.internalFormat||n.format||de,a=nr(o),l=n.format||a.format,c=n.type||ge,u=n.target||sn;if(u!==on)throw"target must be TEXTURE_CUBE_MAP";yu(t,e,n),n=Object.assign({},n);let f=6;const h=[],A=pu(t,n);let d;function g(m){return function(p,w){--f,p?h.push(p):w.width!==w.height?h.push("cubemap face img is not a square: "+w.src):(ir(t,n),t.bindTexture(u,e),f===5?pu().forEach(function(C){t.texImage2D(C,s,o,l,c,w)}):t.texImage2D(m,s,o,l,c,w),Bs(n)&&t.generateMipmap(u)),f===0&&i(h.length?h:void 0,e,d)}}d=r.map(function(m,p){return wu(m,n.crossOrigin,g(A[p]))})}function GS(t,e,n,i){i=i||Ss;const r=n.src,s=n.internalFormat||n.format||de,o=nr(s),a=n.format||o.format,l=n.type||ge,c=n.target||Rn;if(c!==kn&&c!==Rn)throw"target must be TEXTURE_3D or TEXTURE_2D_ARRAY";yu(t,e,n),n=Object.assign({},n);let u=r.length;const f=[];let h;const A=n.level||0;let d=n.width,g=n.height;const m=r.length;let p=!0;function w(C){return function(y,I){if(--u,y)f.push(y);else{if(ir(t,n),t.bindTexture(c,e),p){p=!1,d=n.width||I.width,g=n.height||I.height,t.texImage3D(c,A,s,d,g,m,0,a,l,null);for(let x=0;x<m;++x)t.texSubImage3D(c,A,0,0,x,d,g,1,a,l,I)}else{let x=I,E;(I.width!==d||I.height!==g)&&(E=b0(),x=E.canvas,E.canvas.width=d,E.canvas.height=g,E.drawImage(I,0,0,d,g)),t.texSubImage3D(c,A,0,0,C,d,g,1,a,l,x),E&&x===E.canvas&&(E.canvas.width=0,E.canvas.height=0)}Bs(n)&&t.generateMipmap(c)}u===0&&i(f.length?f:void 0,e,h)}}h=r.map(function(C,y){return wu(C,n.crossOrigin,w(y))})}function z0(t,e,n,i){i=i||Qn.textureOptions;const r=i.target||sn;t.bindTexture(r,e);let s=i.width,o=i.height,a=i.depth;const l=i.level||0,c=i.internalFormat||i.format||de,u=nr(c),f=i.format||u.format,h=i.type||P0(t,n,u.type);if(Xi(n))n instanceof Uint8ClampedArray&&(n=new Uint8Array(n.buffer));else{const m=Yv(h);n=new m(n)}const A=FS(c,h),d=n.byteLength/A;if(d%1)throw"length wrong size for format: "+lu(t,f);let g;if(r===kn||r===Rn)if(!s&&!o&&!a){const m=Math.cbrt(d);if(m%1!==0)throw"can't guess cube size of array of numElements: "+d;s=m,o=m,a=m}else s&&(!o||!a)?(g=Ea(t,r,o,a,d/s),o=g.width,a=g.height):o&&(!s||!a)?(g=Ea(t,r,s,a,d/o),s=g.width,a=g.height):(g=Ea(t,r,s,o,d/a),s=g.width,o=g.height);else g=Ea(t,r,s,o,d),s=g.width,o=g.height;if(L0(t),t.pixelStorei(hu,i.unpackAlignment||1),ir(t,i),r===on){const m=A/n.BYTES_PER_ELEMENT,p=d/6*m;mu(t,i).forEach(w=>{const C=p*w.ndx,y=n.subarray(C,C+p);t.texImage2D(w.face,l,c,s,o,0,f,h,y)})}else r===kn||r===Rn?t.texImage3D(r,l,c,s,o,a,0,f,h,n):t.texImage2D(r,l,c,s,o,0,f,h,n);return{width:s,height:o,depth:a,type:h}}function HS(t,e,n){const i=n.target||sn;t.bindTexture(i,e);const r=n.level||0,s=n.internalFormat||n.format||de,o=nr(s),a=n.format||o.format,l=n.type||o.type;if(ir(t,n),i===on)for(let c=0;c<6;++c)t.texImage2D(da+c,r,s,n.width,n.height,0,a,l,null);else i===kn||i===Rn?t.texImage3D(i,r,s,n.width,n.height,n.depth,0,a,l,null):t.texImage2D(i,r,s,n.width,n.height,0,a,l,null)}function Ds(t,e,n){n=n||Ss,e=e||Qn.textureOptions;const i=t.createTexture(),r=e.target||sn;let s=e.width||1,o=e.height||1;const a=e.internalFormat||de;t.bindTexture(r,i),r===on&&(t.texParameteri(r,ga,Aa),t.texParameteri(r,pa,Aa));let l=e.src;if(l)if(typeof l=="function"&&(l=l(t,e)),typeof l=="string")_S(t,i,e,n);else if(Xi(l)||Array.isArray(l)&&(typeof l[0]=="number"||Array.isArray(l[0])||Xi(l[0]))){const c=z0(t,i,l,e);s=c.width,o=c.height}else Array.isArray(l)&&(typeof l[0]=="string"||_0(l[0]))?r===on?zS(t,i,e,n):GS(t,i,e,n):(U0(t,i,l,e),s=l.width,o=l.height);else HS(t,i,e);return Bs(e)&&gu(t,i,e,s,o,a),O0(t,i,e),i}function YS(t,e,n,i,r,s){i=i||n.width,r=r||n.height,s=s||n.depth;const o=n.target||sn;t.bindTexture(o,e);const a=n.level||0,l=n.internalFormat||n.format||de,c=nr(l),u=n.format||c.format;let f;const h=n.src;if(h&&(Xi(h)||Array.isArray(h)&&typeof h[0]=="number")?f=n.type||P0(t,h,c.type):f=n.type||c.type,o===on)for(let A=0;A<6;++A)t.texImage2D(da+A,a,l,i,r,0,u,f,null);else o===kn||o===Rn?t.texImage3D(o,a,l,i,r,s,0,u,f,null):t.texImage2D(o,a,l,i,r,0,u,f,null)}const VS=A0,Ia=33984,JS=35048,xa=34962,qS=34963,Cu=35345,G0=35718,KS=35721,jS=35971,WS=35382,XS=35396,ZS=35398,$S=35392,e3=35395,va=5126,H0=35664,Y0=35665,V0=35666,bu=5124,J0=35667,q0=35668,K0=35669,j0=35670,W0=35671,X0=35672,Z0=35673,$0=35674,eg=35675,tg=35676,t3=35678,n3=35680,i3=35679,r3=35682,s3=35685,o3=35686,a3=35687,c3=35688,l3=35689,u3=35690,f3=36289,h3=36292,A3=36293,Eu=5125,ng=36294,ig=36295,rg=36296,d3=36298,g3=36299,p3=36300,m3=36303,w3=36306,y3=36307,C3=36308,b3=36311,Ba=3553,Sa=34067,Iu=32879,Da=35866,j={};function sg(t,e){return j[e].bindPoint}function E3(t,e){return function(n){t.uniform1f(e,n)}}function I3(t,e){return function(n){t.uniform1fv(e,n)}}function x3(t,e){return function(n){t.uniform2fv(e,n)}}function v3(t,e){return function(n){t.uniform3fv(e,n)}}function B3(t,e){return function(n){t.uniform4fv(e,n)}}function og(t,e){return function(n){t.uniform1i(e,n)}}function ag(t,e){return function(n){t.uniform1iv(e,n)}}function cg(t,e){return function(n){t.uniform2iv(e,n)}}function lg(t,e){return function(n){t.uniform3iv(e,n)}}function ug(t,e){return function(n){t.uniform4iv(e,n)}}function S3(t,e){return function(n){t.uniform1ui(e,n)}}function D3(t,e){return function(n){t.uniform1uiv(e,n)}}function Q3(t,e){return function(n){t.uniform2uiv(e,n)}}function k3(t,e){return function(n){t.uniform3uiv(e,n)}}function R3(t,e){return function(n){t.uniform4uiv(e,n)}}function F3(t,e){return function(n){t.uniformMatrix2fv(e,!1,n)}}function N3(t,e){return function(n){t.uniformMatrix3fv(e,!1,n)}}function M3(t,e){return function(n){t.uniformMatrix4fv(e,!1,n)}}function T3(t,e){return function(n){t.uniformMatrix2x3fv(e,!1,n)}}function P3(t,e){return function(n){t.uniformMatrix3x2fv(e,!1,n)}}function L3(t,e){return function(n){t.uniformMatrix2x4fv(e,!1,n)}}function O3(t,e){return function(n){t.uniformMatrix4x2fv(e,!1,n)}}function U3(t,e){return function(n){t.uniformMatrix3x4fv(e,!1,n)}}function _3(t,e){return function(n){t.uniformMatrix4x3fv(e,!1,n)}}function it(t,e,n,i){const r=sg(t,e);return Wi(t)?function(s){let o,a;ha(t,s)?(o=s,a=null):(o=s.texture,a=s.sampler),t.uniform1i(i,n),t.activeTexture(Ia+n),t.bindTexture(r,o),t.bindSampler(n,a)}:function(s){t.uniform1i(i,n),t.activeTexture(Ia+n),t.bindTexture(r,s)}}function rt(t,e,n,i,r){const s=sg(t,e),o=new Int32Array(r);for(let a=0;a<r;++a)o[a]=n+a;return Wi(t)?function(a){t.uniform1iv(i,o),a.forEach(function(l,c){t.activeTexture(Ia+o[c]);let u,f;ha(t,l)?(u=l,f=null):(u=l.texture,f=l.sampler),t.bindSampler(n,f),t.bindTexture(s,u)})}:function(a){t.uniform1iv(i,o),a.forEach(function(l,c){t.activeTexture(Ia+o[c]),t.bindTexture(s,l)})}}j[va]={Type:Float32Array,size:4,setter:E3,arraySetter:I3},j[H0]={Type:Float32Array,size:8,setter:x3,cols:2},j[Y0]={Type:Float32Array,size:12,setter:v3,cols:3},j[V0]={Type:Float32Array,size:16,setter:B3,cols:4},j[bu]={Type:Int32Array,size:4,setter:og,arraySetter:ag},j[J0]={Type:Int32Array,size:8,setter:cg,cols:2},j[q0]={Type:Int32Array,size:12,setter:lg,cols:3},j[K0]={Type:Int32Array,size:16,setter:ug,cols:4},j[Eu]={Type:Uint32Array,size:4,setter:S3,arraySetter:D3},j[ng]={Type:Uint32Array,size:8,setter:Q3,cols:2},j[ig]={Type:Uint32Array,size:12,setter:k3,cols:3},j[rg]={Type:Uint32Array,size:16,setter:R3,cols:4},j[j0]={Type:Uint32Array,size:4,setter:og,arraySetter:ag},j[W0]={Type:Uint32Array,size:8,setter:cg,cols:2},j[X0]={Type:Uint32Array,size:12,setter:lg,cols:3},j[Z0]={Type:Uint32Array,size:16,setter:ug,cols:4},j[$0]={Type:Float32Array,size:32,setter:F3,rows:2,cols:2},j[eg]={Type:Float32Array,size:48,setter:N3,rows:3,cols:3},j[tg]={Type:Float32Array,size:64,setter:M3,rows:4,cols:4},j[s3]={Type:Float32Array,size:32,setter:T3,rows:2,cols:3},j[o3]={Type:Float32Array,size:32,setter:L3,rows:2,cols:4},j[a3]={Type:Float32Array,size:48,setter:P3,rows:3,cols:2},j[c3]={Type:Float32Array,size:48,setter:U3,rows:3,cols:4},j[l3]={Type:Float32Array,size:64,setter:O3,rows:4,cols:2},j[u3]={Type:Float32Array,size:64,setter:_3,rows:4,cols:3},j[t3]={Type:null,size:0,setter:it,arraySetter:rt,bindPoint:Ba},j[n3]={Type:null,size:0,setter:it,arraySetter:rt,bindPoint:Sa},j[i3]={Type:null,size:0,setter:it,arraySetter:rt,bindPoint:Iu},j[r3]={Type:null,size:0,setter:it,arraySetter:rt,bindPoint:Ba},j[f3]={Type:null,size:0,setter:it,arraySetter:rt,bindPoint:Da},j[h3]={Type:null,size:0,setter:it,arraySetter:rt,bindPoint:Da},j[A3]={Type:null,size:0,setter:it,arraySetter:rt,bindPoint:Sa},j[d3]={Type:null,size:0,setter:it,arraySetter:rt,bindPoint:Ba},j[g3]={Type:null,size:0,setter:it,arraySetter:rt,bindPoint:Iu},j[p3]={Type:null,size:0,setter:it,arraySetter:rt,bindPoint:Sa},j[m3]={Type:null,size:0,setter:it,arraySetter:rt,bindPoint:Da},j[w3]={Type:null,size:0,setter:it,arraySetter:rt,bindPoint:Ba},j[y3]={Type:null,size:0,setter:it,arraySetter:rt,bindPoint:Iu},j[C3]={Type:null,size:0,setter:it,arraySetter:rt,bindPoint:Sa},j[b3]={Type:null,size:0,setter:it,arraySetter:rt,bindPoint:Da};function Qa(t,e){return function(n){if(n.value)switch(t.disableVertexAttribArray(e),n.value.length){case 4:t.vertexAttrib4fv(e,n.value);break;case 3:t.vertexAttrib3fv(e,n.value);break;case 2:t.vertexAttrib2fv(e,n.value);break;case 1:t.vertexAttrib1fv(e,n.value);break;default:throw new Error("the length of a float constant value must be between 1 and 4!")}else t.bindBuffer(xa,n.buffer),t.enableVertexAttribArray(e),t.vertexAttribPointer(e,n.numComponents||n.size,n.type||va,n.normalize||!1,n.stride||0,n.offset||0),n.divisor!==void 0&&t.vertexAttribDivisor(e,n.divisor)}}function Nn(t,e){return function(n){if(n.value)if(t.disableVertexAttribArray(e),n.value.length===4)t.vertexAttrib4iv(e,n.value);else throw new Error("The length of an integer constant value must be 4!");else t.bindBuffer(xa,n.buffer),t.enableVertexAttribArray(e),t.vertexAttribIPointer(e,n.numComponents||n.size,n.type||bu,n.stride||0,n.offset||0),n.divisor!==void 0&&t.vertexAttribDivisor(e,n.divisor)}}function ka(t,e){return function(n){if(n.value)if(t.disableVertexAttribArray(e),n.value.length===4)t.vertexAttrib4uiv(e,n.value);else throw new Error("The length of an unsigned integer constant value must be 4!");else t.bindBuffer(xa,n.buffer),t.enableVertexAttribArray(e),t.vertexAttribIPointer(e,n.numComponents||n.size,n.type||Eu,n.stride||0,n.offset||0),n.divisor!==void 0&&t.vertexAttribDivisor(e,n.divisor)}}function xu(t,e,n){const i=n.size,r=n.count;return function(s){t.bindBuffer(xa,s.buffer);const o=s.size||s.numComponents||i,a=o/r,l=s.type||va,u=j[l].size*o,f=s.normalize||!1,h=s.offset||0,A=u/r;for(let d=0;d<r;++d)t.enableVertexAttribArray(e+d),t.vertexAttribPointer(e+d,a,l,f,u,h+A*d),s.divisor!==void 0&&t.vertexAttribDivisor(e+d,s.divisor)}}const Be={};Be[va]={size:4,setter:Qa},Be[H0]={size:8,setter:Qa},Be[Y0]={size:12,setter:Qa},Be[V0]={size:16,setter:Qa},Be[bu]={size:4,setter:Nn},Be[J0]={size:8,setter:Nn},Be[q0]={size:12,setter:Nn},Be[K0]={size:16,setter:Nn},Be[Eu]={size:4,setter:ka},Be[ng]={size:8,setter:ka},Be[ig]={size:12,setter:ka},Be[rg]={size:16,setter:ka},Be[j0]={size:4,setter:Nn},Be[W0]={size:8,setter:Nn},Be[X0]={size:12,setter:Nn},Be[Z0]={size:16,setter:Nn},Be[$0]={size:4,setter:xu,count:2},Be[eg]={size:9,setter:xu,count:3},Be[tg]={size:16,setter:xu,count:4};function fg(t){const e=t.name;return e.startsWith("gl_")||e.startsWith("webgl_")}const z3=/(\.|\[|]|\w+)/g,G3=t=>t>="0"&&t<="9";function hg(t,e,n,i){const r=t.split(z3).filter(a=>a!=="");let s=0,o="";for(;;){const a=r[s++];o+=a;const l=G3(a[0]),c=l?parseInt(a):a;if(l&&(o+=r[s++]),s===r.length){n[c]=e;break}else{const f=r[s++],h=f==="[",A=n[c]||(h?[]:{});n[c]=A,n=A,i[o]=i[o]||(function(d){return function(g){mg(d,g)}})(A),o+=f}}}function H3(t,e){let n=0;function i(a,l,c){const u=l.name.endsWith("[0]"),f=l.type,h=j[f];if(!h)throw new Error(`unknown type: 0x${f.toString(16)}`);let A;if(h.bindPoint){const d=n;n+=l.size,u?A=h.arraySetter(t,f,d,c,l.size):A=h.setter(t,f,d,c,l.size)}else h.arraySetter&&u?A=h.arraySetter(t,c):A=h.setter(t,c);return A.location=c,A}const r={},s={},o=t.getProgramParameter(e,G0);for(let a=0;a<o;++a){const l=t.getActiveUniform(e,a);if(fg(l))continue;let c=l.name;c.endsWith("[0]")&&(c=c.substr(0,c.length-3));const u=t.getUniformLocation(e,l.name);if(u){const f=i(e,l,u);r[c]=f,hg(c,f,s,r)}}return r}function Y3(t,e){const n={},i=t.getProgramParameter(e,jS);for(let r=0;r<i;++r){const s=t.getTransformFeedbackVarying(e,r);n[s.name]={index:r,type:s.type,size:s.size}}return n}function V3(t,e){const n=t.getProgramParameter(e,G0),i=[],r=[];for(let a=0;a<n;++a){r.push(a),i.push({});const l=t.getActiveUniform(e,a);i[a].name=l.name}[["UNIFORM_TYPE","type"],["UNIFORM_SIZE","size"],["UNIFORM_BLOCK_INDEX","blockNdx"],["UNIFORM_OFFSET","offset"]].forEach(function(a){const l=a[0],c=a[1];t.getActiveUniforms(e,r,t[l]).forEach(function(u,f){i[f][c]=u})});const s={},o=t.getProgramParameter(e,WS);for(let a=0;a<o;++a){const l=t.getActiveUniformBlockName(e,a),c={index:t.getUniformBlockIndex(e,l),usedByVertexShader:t.getActiveUniformBlockParameter(e,a,XS),usedByFragmentShader:t.getActiveUniformBlockParameter(e,a,ZS),size:t.getActiveUniformBlockParameter(e,a,$S),uniformIndices:t.getActiveUniformBlockParameter(e,a,e3)};c.used=c.usedByVertexShader||c.usedByFragmentShader,s[l]=c}return{blockSpecs:s,uniformData:i}}const Ag=/\[\d+\]\.$/,J3=(t,e)=>((t+(e-1))/e|0)*e;function q3(t,e,n,i){if(e||n){i=i||1;const s=t.length/4;return function(o){let a=0,l=0;for(let c=0;c<s;++c){for(let u=0;u<i;++u)t[a++]=o[l++];a+=4-i}}}else return function(r){r.length?t.set(r):t[0]=r}}function K3(t,e,n,i){const r=n.blockSpecs,s=n.uniformData,o=r[i];if(!o)return VS("no uniform block object named:",i),{name:i,uniforms:{}};const a=new ArrayBuffer(o.size),l=t.createBuffer(),c=o.index;t.bindBuffer(Cu,l),t.uniformBlockBinding(e,o.index,c);let u=i+".";Ag.test(u)&&(u=u.replace(Ag,"."));const f={},h={},A={};return o.uniformIndices.forEach(function(d){const g=s[d];let m=g.name;m.startsWith(u)&&(m=m.substr(u.length));const p=m.endsWith("[0]");p&&(m=m.substr(0,m.length-3));const w=j[g.type],C=w.Type,y=p?J3(w.size,16)*g.size:w.size*g.size,I=new C(a,g.offset,y/C.BYTES_PER_ELEMENT);f[m]=I;const x=q3(I,p,w.rows,w.cols);h[m]=x,hg(m,x,A,h)}),{name:i,array:a,asFloat:new Float32Array(a),buffer:l,uniforms:f,setters:h}}function dg(t,e,n){return K3(t,e.program,e.uniformBlockSpec,n)}function gg(t,e,n){const r=(e.uniformBlockSpec||e).blockSpecs[n.name];if(r){const s=r.index;return t.bindBufferRange(Cu,s,n.buffer,n.offset||0,n.array.byteLength),!0}return!1}function pg(t,e,n){gg(t,e,n)&&t.bufferData(Cu,n.array,JS)}function Qs(t,e){const n=t.setters;for(const i in e){const r=n[i];if(r){const s=e[i];r(s)}}}function mg(t,e){for(const n in e){const i=t[n];typeof i=="function"?i(e[n]):mg(t[n],e[n])}}function hi(t,...e){const n=t.uniformSetters||t,i=e.length;for(let r=0;r<i;++r){const s=e[r];if(Array.isArray(s)){const o=s.length;for(let a=0;a<o;++a)hi(n,s[a])}else for(const o in s){const a=n[o];a&&a(s[o])}}}function j3(t,e){const n={},i=t.getProgramParameter(e,KS);for(let r=0;r<i;++r){const s=t.getActiveAttrib(e,r);if(fg(s))continue;const o=t.getAttribLocation(e,s.name),a=Be[s.type],l=a.setter(t,o,a);l.location=o,n[s.name]=l}return n}function W3(t,e){for(const n in e){const i=t[n];i&&i(e[n])}}function Ai(t,e,n){n.vertexArrayObject?t.bindVertexArray(n.vertexArrayObject):(W3(e.attribSetters||e,n.attribs),n.indices&&t.bindBuffer(qS,n.indices))}function X3(t,e){const n=H3(t,e),i=j3(t,e),r={program:e,uniformSetters:n,attribSetters:i};return Wi(t)&&(r.uniformBlockSpec=V3(t,e),r.transformFeedbackInfo=Y3(t,e)),r}const Z3=4,wg=5123;function Ra(t,e,n,i,r,s){n=n===void 0?Z3:n;const o=e.indices,a=e.elementType,l=i===void 0?e.numElements:i;r=r===void 0?0:r,a||o?s!==void 0?t.drawElementsInstanced(n,l,a===void 0?wg:e.elementType,r,s):t.drawElements(n,l,a===void 0?wg:e.elementType,r):s!==void 0?t.drawArraysInstanced(n,r,l,s):t.drawArrays(n,r,l)}const $3=36160,di=36161,eD=3553,tD=5121,nD=6402,iD=6408,rD=33190,sD=36012,oD=35056,aD=36013,cD=32854,lD=32855,uD=36194,yg=33189,Cg=6401,bg=36168,vu=34041,Bu=36064,Fa=36096,Eg=36128,Su=33306,Du=33071,Qu=9729,Ig=[{format:iD,type:tD,min:Qu,wrap:Du},{format:vu}],St={};St[vu]=Su,St[Cg]=Eg,St[bg]=Eg,St[nD]=Fa,St[yg]=Fa,St[rD]=Fa,St[sD]=Fa,St[oD]=Su,St[aD]=Su;function fD(t,e){return St[t]||St[e]}const Mn={};Mn[cD]=!0,Mn[lD]=!0,Mn[uD]=!0,Mn[vu]=!0,Mn[yg]=!0,Mn[Cg]=!0,Mn[bg]=!0;function hD(t){return Mn[t]}const AD=32;function dD(t){return t>=Bu&&t<Bu+AD}function xg(t,e,n,i){const r=$3,s=t.createFramebuffer();t.bindFramebuffer(r,s),n=n||t.drawingBufferWidth,i=i||t.drawingBufferHeight,e=e||Ig;const o=[],a={framebuffer:s,attachments:[],width:n,height:i};return e.forEach(function(l,c){let u=l.attachment;const f=l.samples,h=l.format;let A=l.attachmentPoint||fD(h,l.internalFormat);if(A||(A=Bu+c),dD(A)&&o.push(A),!u)if(f!==void 0||hD(h))u=t.createRenderbuffer(),t.bindRenderbuffer(di,u),f>1?t.renderbufferStorageMultisample(di,f,h,n,i):t.renderbufferStorage(di,h,n,i);else{const d=Object.assign({},l);d.width=n,d.height=i,d.auto===void 0&&(d.auto=!1,d.min=d.min||d.minMag||Qu,d.mag=d.mag||d.minMag||Qu,d.wrapS=d.wrapS||d.wrap||Du,d.wrapT=d.wrapT||d.wrap||Du),u=Ds(t,d)}if(d0(t,u))t.framebufferRenderbuffer(r,A,di,u);else if(ha(t,u))l.layer!==void 0?t.framebufferTextureLayer(r,A,u,l.level||0,l.layer):t.framebufferTexture2D(r,A,l.target||eD,u,l.level||0);else throw new Error("unknown attachment type");a.attachments.push(u)}),t.drawBuffers&&t.drawBuffers(o),a}function gD(t,e,n,i,r){i=i||t.drawingBufferWidth,r=r||t.drawingBufferHeight,e.width=i,e.height=r,n=n||Ig,n.forEach(function(s,o){const a=e.attachments[o],l=s.format,c=s.samples;if(c!==void 0||d0(t,a))t.bindRenderbuffer(di,a),c>1?t.renderbufferStorageMultisample(di,c,l,i,r):t.renderbufferStorage(di,l,i,r);else if(ha(t,a))YS(t,a,s,i,r);else throw new Error("unknown attachment type")})}function pD(t,e,n){const i=t.createVertexArray();return t.bindVertexArray(i),e.length||(e=[e]),e.forEach(function(r){Ai(t,r,n)}),t.bindVertexArray(null),{numElements:n.numElements,elementType:n.elementType,vertexArrayObject:i}}const mD=/^(.*?)_/;function wD(t,e){lu(t,0);const n=t.getExtension(e);if(n){const i={},r=mD.exec(e)[1],s="_"+r;for(const o in n){const a=n[o],l=typeof a=="function",c=l?r:s;let u=o;o.endsWith(c)&&(u=o.substring(0,o.length-c.length)),t[u]!==void 0?!l&&t[u]!==a&&A0(u,t[u],a,o):l?t[u]=(function(f){return function(){return f.apply(n,arguments)}})(a):(t[u]=a,i[u]=a)}i.constructor={name:n.constructor.name},lu(i,0)}return n}const vg=["ANGLE_instanced_arrays","EXT_blend_minmax","EXT_color_buffer_float","EXT_color_buffer_half_float","EXT_disjoint_timer_query","EXT_disjoint_timer_query_webgl2","EXT_frag_depth","EXT_sRGB","EXT_shader_texture_lod","EXT_texture_filter_anisotropic","OES_element_index_uint","OES_standard_derivatives","OES_texture_float","OES_texture_float_linear","OES_texture_half_float","OES_texture_half_float_linear","OES_vertex_array_object","WEBGL_color_buffer_float","WEBGL_compressed_texture_atc","WEBGL_compressed_texture_etc1","WEBGL_compressed_texture_pvrtc","WEBGL_compressed_texture_s3tc","WEBGL_compressed_texture_s3tc_srgb","WEBGL_depth_texture","WEBGL_draw_buffers"];function Bg(t){for(let e=0;e<vg.length;++e)wD(t,vg[e])}function yD(t,e){const n=["webgl2","webgl","experimental-webgl"];let i=null;for(let r=0;r<n.length;++r)if(i=t.getContext(n[r],e),i){Bg(i);break}return i}function CD(t,e){return yD(t,e)}const bD=`flat out lowp vec4 vFillColor;flat out lowp vec4 vStrokeColor;flat out float vHalfStrokeWidth;flat out vec4 vCornerRadii;
|
|
340
348
|
#if defined(ROUNDED_CORNERS) || defined(STROKED) || defined(SHADOW)
|
|
341
349
|
out vec2 vPosInPixels;
|
|
342
350
|
#endif
|
|
@@ -344,7 +352,7 @@ flat out vec2 vHalfSizeInPixels;/***Adjusts the vertex position to ensure that t
|
|
|
344
352
|
#if defined(ROUNDED_CORNERS) || defined(STROKED) || defined(SHADOW)
|
|
345
353
|
float aaPadding=1.0/uDevicePixelRatio;float shadowPadding=uShadowBlur+max(abs(uShadowOffsetX),abs(uShadowOffsetY));float strokeWidth=getScaled_strokeWidth();float strokeOpacity=getScaled_strokeOpacity()*opaFactor;vec2 centeredFrac=frac-0.5;vec2 expand=centeredFrac*(strokeWidth+aaPadding+shadowPadding*2.0)/uViewportSize;pos+=expand;vec2 sizeInPixels=size*uViewportSize;vPosInPixels=(centeredFrac+expand/size)*sizeInPixels;vHalfSizeInPixels=sizeInPixels/2.0;vCornerRadii=min(cornerRadii,min(vHalfSizeInPixels.x,vHalfSizeInPixels.y));vHalfStrokeWidth=strokeWidth/2.0;vStrokeColor=vec4(getScaled_stroke()*strokeOpacity,strokeOpacity);
|
|
346
354
|
#endif
|
|
347
|
-
gl_Position=unitToNdc(pos);float fillOpacity=getScaled_fillOpacity()*opaFactor;vFillColor=vec4(getScaled_fill()*fillOpacity,fillOpacity);setupPicking();}`,
|
|
355
|
+
gl_Position=unitToNdc(pos);float fillOpacity=getScaled_fillOpacity()*opaFactor;vFillColor=vec4(getScaled_fill()*fillOpacity,fillOpacity);setupPicking();}`,ED=`#if defined(ROUNDED_CORNERS) || defined(STROKED) || defined(SHADOW)
|
|
348
356
|
in vec2 vPosInPixels;
|
|
349
357
|
#endif
|
|
350
358
|
flat in vec2 vHalfSizeInPixels;flat in lowp vec4 vFillColor;flat in lowp vec4 vStrokeColor;flat in float vHalfStrokeWidth;flat in vec4 vCornerRadii;out lowp vec4 fragColor;
|
|
@@ -370,59 +378,59 @@ if(vHalfStrokeWidth>0.0&&uHatchPattern>0){d=max(d,-pattern());}fragColor=distanc
|
|
|
370
378
|
#else
|
|
371
379
|
fragColor=vFillColor;if(uPickingEnabled){fragColor=vPickingColor;}
|
|
372
380
|
#endif
|
|
373
|
-
}`,
|
|
381
|
+
}`,ID=`layout(std140)uniform Mark{uniform float uMinWidth;uniform float uMinHeight;uniform float uMinOpacity;uniform float uCornerRadiusTopRight;uniform float uCornerRadiusBottomRight;uniform float uCornerRadiusTopLeft;uniform float uCornerRadiusBottomLeft;uniform int uHatchPattern;uniform vec3 uShadowColor;uniform float uShadowOpacity;uniform float uShadowBlur;uniform float uShadowOffsetX;uniform float uShadowOffsetY;
|
|
374
382
|
#pragma markUniforms
|
|
375
|
-
};`,
|
|
376
|
-
`),
|
|
383
|
+
};`,Sg=1e4;class xD{#e=!1;constructor(e){this.size=e,this.arrays={},this.pushers=[],this.dataUpdaters=[],this.vertexCount=0}configure(){if(this.#e)throw new Error("Already configured!");this.#t(),this.#n(),this.#e=!0}addConverter(e,n){const i=this.createUpdater(e,n.numComponents||1,n.targetArrayType??Float32Array,n.arrayReference),r=n.f;this.dataUpdaters.push(n.arrayReference?s=>i(r(s)):s=>i(r(s)))}createUpdater(e,n,i=Float32Array,r=void 0){if(!qe(this.size))throw new Error("The number of vertices must be defined!");let s,o,a=0;const l=new i(this.size*n);if(this.arrays[e]={data:l,numComponents:n},n==1){let c=0;const u=f=>{c=+f};s=()=>{l[a++]=c},o=u}else{let c=r??[0];const u=r?f=>{}:f=>{c=f};switch(n){case 1:break;case 2:s=()=>{l[a++]=c[0],l[a++]=c[1]},o=u;break;case 3:s=()=>{l[a++]=c[0],l[a++]=c[1],l[a++]=c[2]},o=u;break;case 4:s=()=>{l[a++]=c[0],l[a++]=c[1],l[a++]=c[2],l[a++]=c[3]},o=u;break;default:throw new Error("Invalid numComponents: "+n)}}return this.pushers.push(s),o}pushAll(){throw new Error("Call configure() first!")}updateFromDatum(e){throw new Error("Call configure() first!")}#t(){if(this.size>Sg){const e=this.pushers.map((i,r)=>`const p${r} = that.pushers[${r}];`).join(`
|
|
384
|
+
`),n=this.pushers.map((i,r)=>` p${r}();`).join(`
|
|
377
385
|
`);this.pushAll=new Function("that",`${e}
|
|
378
386
|
return function unrolledPushAll() {
|
|
379
|
-
${
|
|
387
|
+
${n}
|
|
380
388
|
that.vertexCount++;
|
|
381
|
-
};`)(this)}else this.pushAll=()=>{for(let e=0;e<this.pushers.length;e++)this.pushers[e]();this.vertexCount++}}#n(){if(this.size>
|
|
382
|
-
`),
|
|
389
|
+
};`)(this)}else this.pushAll=()=>{for(let e=0;e<this.pushers.length;e++)this.pushers[e]();this.vertexCount++}}#n(){if(this.size>Sg){const e=this.dataUpdaters.map((i,r)=>`const u${r} = that.dataUpdaters[${r}];`).join(`
|
|
390
|
+
`),n=this.dataUpdaters.map((i,r)=>` u${r}(datum);`).join(`
|
|
383
391
|
`);this.updateFromDatum=new Function("that","datum",`${e}
|
|
384
392
|
return function unrolledUpdateFromDatum(datum) {
|
|
385
|
-
${
|
|
386
|
-
};`)(this)}else this.updateFromDatum=e=>{for(let t=0;t<this.dataUpdaters.length;t++)this.dataUpdaters[t](e)}}pushFromDatum(e){this.updateFromDatum(e),this.pushAll()}}const qr=5,tu=127;function nu(n){const e=[];for(let d=0;d<=tu;d++)e.push(void 0);const t=new Map;for(const d of n.chars)d.id<=tu?e[d.id]=d:t.set(d.id,d);const r=8722;t.has(r)||t.set(r,e[45]);function i(d){return(d<=tu?e[d]:t.get(d))||e[63]}function s(d){return i(d.charCodeAt(0))}const o=n.common.base,a=s("x"),l=s("X"),c=s("q"),u=a.height-qr*2,f=l.height-qr*2,h=c.height-a.height+c.yoffset-a.yoffset;function A(d,g=1){let p=0;for(let m=0;m<d.length;m++)p+=i(d.charCodeAt(m)).xadvance;return p/o*g}return{measureWidth:A,getCharByCode:i,getChar:s,xHeight:u,capHeight:f,descent:h,common:n.common}}function jr(n,e=0,t=1){return Math.max(e,Math.min(t,n))}const z0=2**31-1,L3=-2147483648;function O3(n,e,t,r=t){const i=new Array(n);i.fill(z0);let s=L3,o=-1/0,a=!1;const l=new Array(n);l.fill(0);const c=e[0],f=(e[1]-e[0])/n,h=(m,y)=>{const C=(m-c)/f,w=Math.floor(C);return jr(y&&w==C?w-1:w,0,n-1)};function A(m,y,C){if(a)return;if(y>s)s=y;else{a=!0;return}const w=t(m);if(w<o){a=!0;return}o=w;const b=h(w,!1);i[b]>y&&(i[b]=y),l[b]<C&&(l[b]=C)}function d(m,y,C){if(a)return;if(y>s)s=y;else{a=!0,console.debug("Items (vertices) are not ordered properly. Disabling binned index.");return}const w=t(m),b=r(m);if(w<o){a=!0;return}else if(b<w){a=!0;return}o=w;const x=h(w,!1),E=h(b,!0);for(let S=x;S<=E;S++)i[S]>y&&(i[S]=y),l[S]<C&&(l[S]=C)}const g=(m,y,C=[0,0])=>{const w=h(m,!1),b=h(y,!0),x=i[w],E=Math.max(l[b],x);return C[0]=x,C[1]=E,C},p=()=>{if(a)return;for(let y=1;y<l.length;y++)l[y]<l[y-1]&&(l[y]=l[y-1]);let m=!0;for(let y=i.length-1;y>0;y--)m&&i[y]==z0?(i[y]=l[y],m=!1):i[y-1]>i[y]&&(i[y-1]=i[y]);return g};return A.getIndex=p,d.getIndex=p,t==r?A:d}function Lt(n,e){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(e).domain(n);break}return this}function Qn(n,e){switch(arguments.length){case 0:break;case 1:{typeof n=="function"?this.interpolator(n):this.range(n);break}default:{this.domain(n),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const wa=Symbol("implicit");function ru(){var n=new qt,e=[],t=[],r=wa;function i(s){let o=n.get(s);if(o===void 0){if(r!==wa)return r;n.set(s,o=e.push(s)-1)}return t[o%t.length]}return i.domain=function(s){if(!arguments.length)return e.slice();e=[],n=new qt;for(const o of s)n.has(o)||n.set(o,e.push(o)-1);return i},i.range=function(s){return arguments.length?(t=Array.from(s),i):t.slice()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return ru(e,t).unknown(r)},Lt.apply(i,arguments),i}function Wr(n,e,t){n.prototype=e.prototype=t,t.constructor=n}function ws(n,e){var t=Object.create(n.prototype);for(var r in e)t[r]=e[r];return t}function Dn(){}var or=.7,Xr=1/or,Zr="\\s*([+-]?\\d+)\\s*",ys="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ot="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",U3=/^#([0-9a-f]{3,8})$/,G3=new RegExp(`^rgb\\(${Zr},${Zr},${Zr}\\)$`),z3=new RegExp(`^rgb\\(${Ot},${Ot},${Ot}\\)$`),H3=new RegExp(`^rgba\\(${Zr},${Zr},${Zr},${ys}\\)$`),V3=new RegExp(`^rgba\\(${Ot},${Ot},${Ot},${ys}\\)$`),_3=new RegExp(`^hsl\\(${ys},${Ot},${Ot}\\)$`),Y3=new RegExp(`^hsla\\(${ys},${Ot},${Ot},${ys}\\)$`),H0={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};Wr(Dn,kn,{copy(n){return Object.assign(new this.constructor,this,n)},displayable(){return this.rgb().displayable()},hex:V0,formatHex:V0,formatHex8:J3,formatHsl:K3,formatRgb:_0,toString:_0});function V0(){return this.rgb().formatHex()}function J3(){return this.rgb().formatHex8()}function K3(){return j0(this).formatHsl()}function _0(){return this.rgb().formatRgb()}function kn(n){var e,t;return n=(n+"").trim().toLowerCase(),(e=U3.exec(n))?(t=e[1].length,e=parseInt(e[1],16),t===6?Y0(e):t===3?new Ne(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):t===8?ya(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):t===4?ya(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=G3.exec(n))?new Ne(e[1],e[2],e[3],1):(e=z3.exec(n))?new Ne(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=H3.exec(n))?ya(e[1],e[2],e[3],e[4]):(e=V3.exec(n))?ya(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=_3.exec(n))?q0(e[1],e[2]/100,e[3]/100,1):(e=Y3.exec(n))?q0(e[1],e[2]/100,e[3]/100,e[4]):H0.hasOwnProperty(n)?Y0(H0[n]):n==="transparent"?new Ne(NaN,NaN,NaN,0):null}function Y0(n){return new Ne(n>>16&255,n>>8&255,n&255,1)}function ya(n,e,t,r){return r<=0&&(n=e=t=NaN),new Ne(n,e,t,r)}function iu(n){return n instanceof Dn||(n=kn(n)),n?(n=n.rgb(),new Ne(n.r,n.g,n.b,n.opacity)):new Ne}function Ca(n,e,t,r){return arguments.length===1?iu(n):new Ne(n,e,t,r??1)}function Ne(n,e,t,r){this.r=+n,this.g=+e,this.b=+t,this.opacity=+r}Wr(Ne,Ca,ws(Dn,{brighter(n){return n=n==null?Xr:Math.pow(Xr,n),new Ne(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?or:Math.pow(or,n),new Ne(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new Ne(ar(this.r),ar(this.g),ar(this.b),Ia(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:J0,formatHex:J0,formatHex8:q3,formatRgb:K0,toString:K0}));function J0(){return`#${cr(this.r)}${cr(this.g)}${cr(this.b)}`}function q3(){return`#${cr(this.r)}${cr(this.g)}${cr(this.b)}${cr((isNaN(this.opacity)?1:this.opacity)*255)}`}function K0(){const n=Ia(this.opacity);return`${n===1?"rgb(":"rgba("}${ar(this.r)}, ${ar(this.g)}, ${ar(this.b)}${n===1?")":`, ${n})`}`}function Ia(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function ar(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function cr(n){return n=ar(n),(n<16?"0":"")+n.toString(16)}function q0(n,e,t,r){return r<=0?n=e=t=NaN:t<=0||t>=1?n=e=NaN:e<=0&&(n=NaN),new vt(n,e,t,r)}function j0(n){if(n instanceof vt)return new vt(n.h,n.s,n.l,n.opacity);if(n instanceof Dn||(n=kn(n)),!n)return new vt;if(n instanceof vt)return n;n=n.rgb();var e=n.r/255,t=n.g/255,r=n.b/255,i=Math.min(e,t,r),s=Math.max(e,t,r),o=NaN,a=s-i,l=(s+i)/2;return a?(e===s?o=(t-r)/a+(t<r)*6:t===s?o=(r-e)/a+2:o=(e-t)/a+4,a/=l<.5?s+i:2-s-i,o*=60):a=l>0&&l<1?0:o,new vt(o,a,l,n.opacity)}function su(n,e,t,r){return arguments.length===1?j0(n):new vt(n,e,t,r??1)}function vt(n,e,t,r){this.h=+n,this.s=+e,this.l=+t,this.opacity=+r}Wr(vt,su,ws(Dn,{brighter(n){return n=n==null?Xr:Math.pow(Xr,n),new vt(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?or:Math.pow(or,n),new vt(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,e=isNaN(n)||isNaN(this.s)?0:this.s,t=this.l,r=t+(t<.5?t:1-t)*e,i=2*t-r;return new Ne(ou(n>=240?n-240:n+120,i,r),ou(n,i,r),ou(n<120?n+240:n-120,i,r),this.opacity)},clamp(){return new vt(W0(this.h),Ea(this.s),Ea(this.l),Ia(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 n=Ia(this.opacity);return`${n===1?"hsl(":"hsla("}${W0(this.h)}, ${Ea(this.s)*100}%, ${Ea(this.l)*100}%${n===1?")":`, ${n})`}`}}));function W0(n){return n=(n||0)%360,n<0?n+360:n}function Ea(n){return Math.max(0,Math.min(1,n||0))}function ou(n,e,t){return(n<60?e+(t-e)*n/60:n<180?t:n<240?e+(t-e)*(240-n)/60:e)*255}const X0=Math.PI/180,Z0=180/Math.PI,ba=18,$0=.96422,eg=1,tg=.82521,ng=4/29,$r=6/29,rg=3*$r*$r,j3=$r*$r*$r;function ig(n){if(n instanceof Ut)return new Ut(n.l,n.a,n.b,n.opacity);if(n instanceof nn)return sg(n);n instanceof Ne||(n=iu(n));var e=fu(n.r),t=fu(n.g),r=fu(n.b),i=cu((.2225045*e+.7168786*t+.0606169*r)/eg),s,o;return e===t&&t===r?s=o=i:(s=cu((.4360747*e+.3850649*t+.1430804*r)/$0),o=cu((.0139322*e+.0971045*t+.7141733*r)/tg)),new Ut(116*i-16,500*(s-i),200*(i-o),n.opacity)}function au(n,e,t,r){return arguments.length===1?ig(n):new Ut(n,e,t,r??1)}function Ut(n,e,t,r){this.l=+n,this.a=+e,this.b=+t,this.opacity=+r}Wr(Ut,au,ws(Dn,{brighter(n){return new Ut(this.l+ba*(n??1),this.a,this.b,this.opacity)},darker(n){return new Ut(this.l-ba*(n??1),this.a,this.b,this.opacity)},rgb(){var n=(this.l+16)/116,e=isNaN(this.a)?n:n+this.a/500,t=isNaN(this.b)?n:n-this.b/200;return e=$0*lu(e),n=eg*lu(n),t=tg*lu(t),new Ne(uu(3.1338561*e-1.6168667*n-.4906146*t),uu(-.9787684*e+1.9161415*n+.033454*t),uu(.0719453*e-.2289914*n+1.4052427*t),this.opacity)}}));function cu(n){return n>j3?Math.pow(n,1/3):n/rg+ng}function lu(n){return n>$r?n*n*n:rg*(n-ng)}function uu(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function fu(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function W3(n){if(n instanceof nn)return new nn(n.h,n.c,n.l,n.opacity);if(n instanceof Ut||(n=ig(n)),n.a===0&&n.b===0)return new nn(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var e=Math.atan2(n.b,n.a)*Z0;return new nn(e<0?e+360:e,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function Au(n,e,t,r){return arguments.length===1?W3(n):new nn(n,e,t,r??1)}function nn(n,e,t,r){this.h=+n,this.c=+e,this.l=+t,this.opacity=+r}function sg(n){if(isNaN(n.h))return new Ut(n.l,0,0,n.opacity);var e=n.h*X0;return new Ut(n.l,Math.cos(e)*n.c,Math.sin(e)*n.c,n.opacity)}Wr(nn,Au,ws(Dn,{brighter(n){return new nn(this.h,this.c,this.l+ba*(n??1),this.opacity)},darker(n){return new nn(this.h,this.c,this.l-ba*(n??1),this.opacity)},rgb(){return sg(this).rgb()}}));var og=-.14861,hu=1.78277,du=-.29227,xa=-.90649,Cs=1.97294,ag=Cs*xa,cg=Cs*hu,lg=hu*du-xa*og;function X3(n){if(n instanceof lr)return new lr(n.h,n.s,n.l,n.opacity);n instanceof Ne||(n=iu(n));var e=n.r/255,t=n.g/255,r=n.b/255,i=(lg*r+ag*e-cg*t)/(lg+ag-cg),s=r-i,o=(Cs*(t-i)-du*s)/xa,a=Math.sqrt(o*o+s*s)/(Cs*i*(1-i)),l=a?Math.atan2(o,s)*Z0-120:NaN;return new lr(l<0?l+360:l,a,i,n.opacity)}function gu(n,e,t,r){return arguments.length===1?X3(n):new lr(n,e,t,r??1)}function lr(n,e,t,r){this.h=+n,this.s=+e,this.l=+t,this.opacity=+r}Wr(lr,gu,ws(Dn,{brighter(n){return n=n==null?Xr:Math.pow(Xr,n),new lr(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?or:Math.pow(or,n),new lr(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=isNaN(this.h)?0:(this.h+120)*X0,e=+this.l,t=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(n),i=Math.sin(n);return new Ne(255*(e+t*(og*r+hu*i)),255*(e+t*(du*r+xa*i)),255*(e+t*(Cs*r)),this.opacity)}}));function ug(n,e,t,r,i){var s=n*n,o=s*n;return((1-3*n+3*s-o)*e+(4-6*s+3*o)*t+(1+3*n+3*s-3*o)*r+o*i)/6}function fg(n){var e=n.length-1;return function(t){var r=t<=0?t=0:t>=1?(t=1,e-1):Math.floor(t*e),i=n[r],s=n[r+1],o=r>0?n[r-1]:2*i-s,a=r<e-1?n[r+2]:2*s-i;return ug((t-r/e)*e,o,i,s,a)}}function Ag(n){var e=n.length;return function(t){var r=Math.floor(((t%=1)<0?++t:t)*e),i=n[(r+e-1)%e],s=n[r%e],o=n[(r+1)%e],a=n[(r+2)%e];return ug((t-r/e)*e,i,s,o,a)}}const Ba=n=>()=>n;function hg(n,e){return function(t){return n+t*e}}function Z3(n,e,t){return n=Math.pow(n,t),e=Math.pow(e,t)-n,t=1/t,function(r){return Math.pow(n+r*e,t)}}function va(n,e){var t=e-n;return t?hg(n,t>180||t<-180?t-360*Math.round(t/360):t):Ba(isNaN(n)?e:n)}function $3(n){return(n=+n)==1?Te:function(e,t){return t-e?Z3(e,t,n):Ba(isNaN(e)?t:e)}}function Te(n,e){var t=e-n;return t?hg(n,t):Ba(isNaN(n)?e:n)}const pu=(function n(e){var t=$3(e);function r(i,s){var o=t((i=Ca(i)).r,(s=Ca(s)).r),a=t(i.g,s.g),l=t(i.b,s.b),c=Te(i.opacity,s.opacity);return function(u){return i.r=o(u),i.g=a(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=n,r})(1);function dg(n){return function(e){var t=e.length,r=new Array(t),i=new Array(t),s=new Array(t),o,a;for(o=0;o<t;++o)a=Ca(e[o]),r[o]=a.r||0,i[o]=a.g||0,s[o]=a.b||0;return r=n(r),i=n(i),s=n(s),a.opacity=1,function(l){return a.r=r(l),a.g=i(l),a.b=s(l),a+""}}}var eS=dg(fg),tS=dg(Ag);function mu(n,e){e||(e=[]);var t=n?Math.min(e.length,n.length):0,r=e.slice(),i;return function(s){for(i=0;i<t;++i)r[i]=n[i]*(1-s)+e[i]*s;return r}}function gg(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function nS(n,e){return(gg(e)?mu:pg)(n,e)}function pg(n,e){var t=e?e.length:0,r=n?Math.min(t,n.length):0,i=new Array(r),s=new Array(t),o;for(o=0;o<r;++o)i[o]=Fn(n[o],e[o]);for(;o<t;++o)s[o]=e[o];return function(a){for(o=0;o<r;++o)s[o]=i[o](a);return s}}function mg(n,e){var t=new Date;return n=+n,e=+e,function(r){return t.setTime(n*(1-r)+e*r),t}}function St(n,e){return n=+n,e=+e,function(t){return n*(1-t)+e*t}}function wg(n,e){var t={},r={},i;(n===null||typeof n!="object")&&(n={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in n?t[i]=Fn(n[i],e[i]):r[i]=e[i];return function(s){for(i in t)r[i]=t[i](s);return r}}var wu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yu=new RegExp(wu.source,"g");function rS(n){return function(){return n}}function iS(n){return function(e){return n(e)+""}}function yg(n,e){var t=wu.lastIndex=yu.lastIndex=0,r,i,s,o=-1,a=[],l=[];for(n=n+"",e=e+"";(r=wu.exec(n))&&(i=yu.exec(e));)(s=i.index)>t&&(s=e.slice(t,s),a[o]?a[o]+=s:a[++o]=s),(r=r[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,l.push({i:o,x:St(r,i)})),t=yu.lastIndex;return t<e.length&&(s=e.slice(t),a[o]?a[o]+=s:a[++o]=s),a.length<2?l[0]?iS(l[0].x):rS(e):(e=l.length,function(c){for(var u=0,f;u<e;++u)a[(f=l[u]).i]=f.x(c);return a.join("")})}function Fn(n,e){var t=typeof e,r;return e==null||t==="boolean"?Ba(e):(t==="number"?St:t==="string"?(r=kn(e))?(e=r,pu):yg:e instanceof kn?pu:e instanceof Date?mg:gg(e)?mu:Array.isArray(e)?pg:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?wg:St)(n,e)}function sS(n){var e=n.length;return function(t){return n[Math.max(0,Math.min(e-1,Math.floor(t*e)))]}}function oS(n,e){var t=va(+n,+e);return function(r){var i=t(r);return i-360*Math.floor(i/360)}}function Is(n,e){return n=+n,e=+e,function(t){return Math.round(n*(1-t)+e*t)}}var Cg=180/Math.PI,Cu={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ig(n,e,t,r,i,s){var o,a,l;return(o=Math.sqrt(n*n+e*e))&&(n/=o,e/=o),(l=n*t+e*r)&&(t-=n*l,r-=e*l),(a=Math.sqrt(t*t+r*r))&&(t/=a,r/=a,l/=a),n*r<e*t&&(n=-n,e=-e,l=-l,o=-o),{translateX:i,translateY:s,rotate:Math.atan2(e,n)*Cg,skewX:Math.atan(l)*Cg,scaleX:o,scaleY:a}}var Sa;function aS(n){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(n+"");return e.isIdentity?Cu:Ig(e.a,e.b,e.c,e.d,e.e,e.f)}function cS(n){return n==null||(Sa||(Sa=document.createElementNS("http://www.w3.org/2000/svg","g")),Sa.setAttribute("transform",n),!(n=Sa.transform.baseVal.consolidate()))?Cu:(n=n.matrix,Ig(n.a,n.b,n.c,n.d,n.e,n.f))}function Eg(n,e,t,r){function i(c){return c.length?c.pop()+" ":""}function s(c,u,f,h,A,d){if(c!==f||u!==h){var g=A.push("translate(",null,e,null,t);d.push({i:g-4,x:St(c,f)},{i:g-2,x:St(u,h)})}else(f||h)&&A.push("translate("+f+e+h+t)}function o(c,u,f,h){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),h.push({i:f.push(i(f)+"rotate(",null,r)-2,x:St(c,u)})):u&&f.push(i(f)+"rotate("+u+r)}function a(c,u,f,h){c!==u?h.push({i:f.push(i(f)+"skewX(",null,r)-2,x:St(c,u)}):u&&f.push(i(f)+"skewX("+u+r)}function l(c,u,f,h,A,d){if(c!==f||u!==h){var g=A.push(i(A)+"scale(",null,",",null,")");d.push({i:g-4,x:St(c,f)},{i:g-2,x:St(u,h)})}else(f!==1||h!==1)&&A.push(i(A)+"scale("+f+","+h+")")}return function(c,u){var f=[],h=[];return c=n(c),u=n(u),s(c.translateX,c.translateY,u.translateX,u.translateY,f,h),o(c.rotate,u.rotate,f,h),a(c.skewX,u.skewX,f,h),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,f,h),c=u=null,function(A){for(var d=-1,g=h.length,p;++d<g;)f[(p=h[d]).i]=p.x(A);return f.join("")}}}var lS=Eg(aS,"px, ","px)","deg)"),uS=Eg(cS,", ",")",")"),fS=1e-12;function bg(n){return((n=Math.exp(n))+1/n)/2}function AS(n){return((n=Math.exp(n))-1/n)/2}function hS(n){return((n=Math.exp(2*n))-1)/(n+1)}const dS=(function n(e,t,r){function i(s,o){var a=s[0],l=s[1],c=s[2],u=o[0],f=o[1],h=o[2],A=u-a,d=f-l,g=A*A+d*d,p,m;if(g<fS)m=Math.log(h/c)/e,p=function(E){return[a+E*A,l+E*d,c*Math.exp(e*E*m)]};else{var y=Math.sqrt(g),C=(h*h-c*c+r*g)/(2*c*t*y),w=(h*h-c*c-r*g)/(2*h*t*y),b=Math.log(Math.sqrt(C*C+1)-C),x=Math.log(Math.sqrt(w*w+1)-w);m=(x-b)/e,p=function(E){var S=E*m,Q=bg(b),v=c/(t*y)*(Q*hS(e*S+b)-AS(b));return[a+v*A,l+v*d,c*Q/bg(e*S+b)]}}return p.duration=m*1e3*e/Math.SQRT2,p}return i.rho=function(s){var o=Math.max(.001,+s),a=o*o,l=a*a;return n(o,a,l)},i})(Math.SQRT2,2,4);function xg(n){return function(e,t){var r=n((e=su(e)).h,(t=su(t)).h),i=Te(e.s,t.s),s=Te(e.l,t.l),o=Te(e.opacity,t.opacity);return function(a){return e.h=r(a),e.s=i(a),e.l=s(a),e.opacity=o(a),e+""}}}const gS=xg(va);var pS=xg(Te);function mS(n,e){var t=Te((n=au(n)).l,(e=au(e)).l),r=Te(n.a,e.a),i=Te(n.b,e.b),s=Te(n.opacity,e.opacity);return function(o){return n.l=t(o),n.a=r(o),n.b=i(o),n.opacity=s(o),n+""}}function Bg(n){return function(e,t){var r=n((e=Au(e)).h,(t=Au(t)).h),i=Te(e.c,t.c),s=Te(e.l,t.l),o=Te(e.opacity,t.opacity);return function(a){return e.h=r(a),e.c=i(a),e.l=s(a),e.opacity=o(a),e+""}}}const wS=Bg(va);var yS=Bg(Te);function vg(n){return(function e(t){t=+t;function r(i,s){var o=n((i=gu(i)).h,(s=gu(s)).h),a=Te(i.s,s.s),l=Te(i.l,s.l),c=Te(i.opacity,s.opacity);return function(u){return i.h=o(u),i.s=a(u),i.l=l(Math.pow(u,t)),i.opacity=c(u),i+""}}return r.gamma=e,r})(1)}const CS=vg(va);var IS=vg(Te);function Iu(n,e){e===void 0&&(e=n,n=Fn);for(var t=0,r=e.length-1,i=e[0],s=new Array(r<0?0:r);t<r;)s[t]=n(i,i=e[++t]);return function(o){var a=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return s[a](o-a)}}function ES(n,e){for(var t=new Array(e),r=0;r<e;++r)t[r]=n(r/(e-1));return t}const bS=Object.freeze(Object.defineProperty({__proto__:null,interpolate:Fn,interpolateArray:nS,interpolateBasis:fg,interpolateBasisClosed:Ag,interpolateCubehelix:CS,interpolateCubehelixLong:IS,interpolateDate:mg,interpolateDiscrete:sS,interpolateHcl:wS,interpolateHclLong:yS,interpolateHsl:gS,interpolateHslLong:pS,interpolateHue:oS,interpolateLab:mS,interpolateNumber:St,interpolateNumberArray:mu,interpolateObject:wg,interpolateRgb:pu,interpolateRgbBasis:eS,interpolateRgbBasisClosed:tS,interpolateRound:Is,interpolateString:yg,interpolateTransformCss:lS,interpolateTransformSvg:uS,interpolateZoom:dS,piecewise:Iu,quantize:ES},Symbol.toStringTag,{value:"Module"}));function xS(n){return function(){return n}}function Eu(n){return+n}var Sg=[0,1];function st(n){return n}function bu(n,e){return(e-=n=+n)?function(t){return(t-n)/e}:xS(isNaN(e)?NaN:.5)}function BS(n,e){var t;return n>e&&(t=n,n=e,e=t),function(r){return Math.max(n,Math.min(e,r))}}function vS(n,e,t){var r=n[0],i=n[1],s=e[0],o=e[1];return i<r?(r=bu(i,r),s=t(o,s)):(r=bu(r,i),s=t(s,o)),function(a){return s(r(a))}}function SS(n,e,t){var r=Math.min(n.length,e.length)-1,i=new Array(r),s=new Array(r),o=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),e=e.slice().reverse());++o<r;)i[o]=bu(n[o],n[o+1]),s[o]=t(e[o],e[o+1]);return function(a){var l=mn(n,a,1,r)-1;return s[l](i[l](a))}}function Es(n,e){return e.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Qa(){var n=Sg,e=Sg,t=Fn,r,i,s,o=st,a,l,c;function u(){var h=Math.min(n.length,e.length);return o!==st&&(o=BS(n[0],n[h-1])),a=h>2?SS:vS,l=c=null,f}function f(h){return h==null||isNaN(h=+h)?s:(l||(l=a(n.map(r),e,t)))(r(o(h)))}return f.invert=function(h){return o(i((c||(c=a(e,n.map(r),St)))(h)))},f.domain=function(h){return arguments.length?(n=Array.from(h,Eu),u()):n.slice()},f.range=function(h){return arguments.length?(e=Array.from(h),u()):e.slice()},f.rangeRound=function(h){return e=Array.from(h),t=Is,u()},f.clamp=function(h){return arguments.length?(o=h?!0:st,u()):o!==st},f.interpolate=function(h){return arguments.length?(t=h,u()):t},f.unknown=function(h){return arguments.length?(s=h,f):s},function(h,A){return r=h,i=A,u()}}function Qg(){return Qa()(st,st)}function Dg(n,e,t,r){var i=Wn(n,e,t),s;switch(r=Rr(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(n),Math.abs(e));return r.precision==null&&!isNaN(s=OI(i,o))&&(r.precision=s),bh(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=UI(i,Math.max(Math.abs(n),Math.abs(e))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=LI(i))&&(r.precision=s-(r.type==="%")*2);break}}return He(r)}function ur(n){var e=n.domain;return n.ticks=function(t){var r=e();return ko(r[0],r[r.length-1],t??10)},n.tickFormat=function(t,r){var i=e();return Dg(i[0],i[i.length-1],t??10,r)},n.nice=function(t){t==null&&(t=10);var r=e(),i=0,s=r.length-1,o=r[i],a=r[s],l,c,u=10;for(a<o&&(c=o,o=a,a=c,c=i,i=s,s=c);u-- >0;){if(c=Kc(o,a,t),c===l)return r[i]=o,r[s]=a,e(r);if(c>0)o=Math.floor(o/c)*c,a=Math.ceil(a/c)*c;else if(c<0)o=Math.ceil(o*c)/c,a=Math.floor(a*c)/c;else break;l=c}return n},n}function kg(){var n=Qg();return n.copy=function(){return Es(n,kg())},Lt.apply(n,arguments),ur(n)}function Fg(n){var e;function t(r){return r==null||isNaN(r=+r)?e:r}return t.invert=t,t.domain=t.range=function(r){return arguments.length?(n=Array.from(r,Eu),t):n.slice()},t.unknown=function(r){return arguments.length?(e=r,t):e},t.copy=function(){return Fg(n).unknown(e)},n=arguments.length?Array.from(n,Eu):[0,1],ur(t)}function Rg(n,e){n=n.slice();var t=0,r=n.length-1,i=n[t],s=n[r],o;return s<i&&(o=t,t=r,r=o,o=i,i=s,s=o),n[t]=e.floor(i),n[r]=e.ceil(s),n}function Mg(n){return Math.log(n)}function Ng(n){return Math.exp(n)}function QS(n){return-Math.log(-n)}function DS(n){return-Math.exp(-n)}function kS(n){return isFinite(n)?+("1e"+n):n<0?0:n}function FS(n){return n===10?kS:n===Math.E?Math.exp:e=>Math.pow(n,e)}function RS(n){return n===Math.E?Math.log:n===10&&Math.log10||n===2&&Math.log2||(n=Math.log(n),e=>Math.log(e)/n)}function Tg(n){return(e,t)=>-n(-e,t)}function xu(n){const e=n(Mg,Ng),t=e.domain;let r=10,i,s;function o(){return i=RS(r),s=FS(r),t()[0]<0?(i=Tg(i),s=Tg(s),n(QS,DS)):n(Mg,Ng),e}return e.base=function(a){return arguments.length?(r=+a,o()):r},e.domain=function(a){return arguments.length?(t(a),o()):t()},e.ticks=a=>{const l=t();let c=l[0],u=l[l.length-1];const f=u<c;f&&([c,u]=[u,c]);let h=i(c),A=i(u),d,g;const p=a==null?10:+a;let m=[];if(!(r%1)&&A-h<p){if(h=Math.floor(h),A=Math.ceil(A),c>0){for(;h<=A;++h)for(d=1;d<r;++d)if(g=h<0?d/s(-h):d*s(h),!(g<c)){if(g>u)break;m.push(g)}}else for(;h<=A;++h)for(d=r-1;d>=1;--d)if(g=h>0?d/s(-h):d*s(h),!(g<c)){if(g>u)break;m.push(g)}m.length*2<p&&(m=ko(c,u,p))}else m=ko(h,A,Math.min(A-h,p)).map(s);return f?m.reverse():m},e.tickFormat=(a,l)=>{if(a==null&&(a=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Rr(l)).precision==null&&(l.trim=!0),l=He(l)),a===1/0)return l;const c=Math.max(1,r*a/e.ticks().length);return u=>{let f=u/s(Math.round(i(u)));return f*r<r-.5&&(f*=r),f<=c?l(u):""}},e.nice=()=>t(Rg(t(),{floor:a=>s(Math.floor(i(a))),ceil:a=>s(Math.ceil(i(a)))})),e}function Bu(){const n=xu(Qa()).domain([1,10]);return n.copy=()=>Es(n,Bu()).base(n.base()),Lt.apply(n,arguments),n}function Pg(n){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/n))}}function Lg(n){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*n}}function vu(n){var e=1,t=n(Pg(e),Lg(e));return t.constant=function(r){return arguments.length?n(Pg(e=+r),Lg(e)):e},ur(t)}function Og(){var n=vu(Qa());return n.copy=function(){return Es(n,Og()).constant(n.constant())},Lt.apply(n,arguments)}function Ug(n){return function(e){return e<0?-Math.pow(-e,n):Math.pow(e,n)}}function MS(n){return n<0?-Math.sqrt(-n):Math.sqrt(n)}function NS(n){return n<0?-n*n:n*n}function Su(n){var e=n(st,st),t=1;function r(){return t===1?n(st,st):t===.5?n(MS,NS):n(Ug(t),Ug(1/t))}return e.exponent=function(i){return arguments.length?(t=+i,r()):t},ur(e)}function Qu(){var n=Su(Qa());return n.copy=function(){return Es(n,Qu()).exponent(n.exponent())},Lt.apply(n,arguments),n}function TS(){return Qu.apply(null,arguments).exponent(.5)}function Gg(){var n=[],e=[],t=[],r;function i(){var o=0,a=Math.max(1,e.length);for(t=new Array(a-1);++o<a;)t[o-1]=mh(n,o/a);return s}function s(o){return o==null||isNaN(o=+o)?r:e[mn(t,o)]}return s.invertExtent=function(o){var a=e.indexOf(o);return a<0?[NaN,NaN]:[a>0?t[a-1]:n[0],a<t.length?t[a]:n[n.length-1]]},s.domain=function(o){if(!arguments.length)return n.slice();n=[];for(let a of o)a!=null&&!isNaN(a=+a)&&n.push(a);return n.sort(qn),i()},s.range=function(o){return arguments.length?(e=Array.from(o),i()):e.slice()},s.unknown=function(o){return arguments.length?(r=o,s):r},s.quantiles=function(){return t.slice()},s.copy=function(){return Gg().domain(n).range(e).unknown(r)},Lt.apply(s,arguments)}function zg(){var n=0,e=1,t=1,r=[.5],i=[0,1],s;function o(l){return l!=null&&l<=l?i[mn(r,l,0,t)]:s}function a(){var l=-1;for(r=new Array(t);++l<t;)r[l]=((l+1)*e-(l-t)*n)/(t+1);return o}return o.domain=function(l){return arguments.length?([n,e]=l,n=+n,e=+e,a()):[n,e]},o.range=function(l){return arguments.length?(t=(i=Array.from(l)).length-1,a()):i.slice()},o.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[n,r[0]]:c>=t?[r[t-1],e]:[r[c-1],r[c]]},o.unknown=function(l){return arguments.length&&(s=l),o},o.thresholds=function(){return r.slice()},o.copy=function(){return zg().domain([n,e]).range(i).unknown(s)},Lt.apply(ur(o),arguments)}function Hg(){var n=[.5],e=[0,1],t,r=1;function i(s){return s!=null&&s<=s?e[mn(n,s,0,r)]:t}return i.domain=function(s){return arguments.length?(n=Array.from(s),r=Math.min(n.length,e.length-1),i):n.slice()},i.range=function(s){return arguments.length?(e=Array.from(s),r=Math.min(n.length,e.length-1),i):e.slice()},i.invertExtent=function(s){var o=e.indexOf(s);return[n[o-1],n[o]]},i.unknown=function(s){return arguments.length?(t=s,i):t},i.copy=function(){return Hg().domain(n).range(e).unknown(t)},Lt.apply(i,arguments)}function PS(n){return new Date(n)}function LS(n){return n instanceof Date?+n:+new Date(+n)}function Du(n,e,t,r,i,s,o,a,l,c){var u=Qg(),f=u.invert,h=u.domain,A=c(".%L"),d=c(":%S"),g=c("%I:%M"),p=c("%I %p"),m=c("%a %d"),y=c("%b %d"),C=c("%B"),w=c("%Y");function b(x){return(l(x)<x?A:a(x)<x?d:o(x)<x?g:s(x)<x?p:r(x)<x?i(x)<x?m:y:t(x)<x?C:w)(x)}return u.invert=function(x){return new Date(f(x))},u.domain=function(x){return arguments.length?h(Array.from(x,LS)):h().map(PS)},u.ticks=function(x){var E=h();return n(E[0],E[E.length-1],x??10)},u.tickFormat=function(x,E){return E==null?b:c(E)},u.nice=function(x){var E=h();return(!x||typeof x.range!="function")&&(x=e(E[0],E[E.length-1],x??10)),x?h(Rg(E,x)):u},u.copy=function(){return Es(u,Du(n,e,t,r,i,s,o,a,l,c))},u}function OS(){return Lt.apply(Du(WI,XI,Ft,Wi,qi,wn,Po,No,Zt,il).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function US(){return Lt.apply(Du(qI,jI,Rt,Xi,ji,Xn,Lo,To,Zt,sl).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Da(){var n=0,e=1,t,r,i,s,o=st,a=!1,l;function c(f){return f==null||isNaN(f=+f)?l:o(i===0?.5:(f=(s(f)-t)*i,a?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([n,e]=f,t=s(n=+n),r=s(e=+e),i=t===r?0:1/(r-t),c):[n,e]},c.clamp=function(f){return arguments.length?(a=!!f,c):a},c.interpolator=function(f){return arguments.length?(o=f,c):o};function u(f){return function(h){var A,d;return arguments.length?([A,d]=h,o=f(A,d),c):[o(0),o(1)]}}return c.range=u(Fn),c.rangeRound=u(Is),c.unknown=function(f){return arguments.length?(l=f,c):l},function(f){return s=f,t=f(n),r=f(e),i=t===r?0:1/(r-t),c}}function Rn(n,e){return e.domain(n.domain()).interpolator(n.interpolator()).clamp(n.clamp()).unknown(n.unknown())}function ku(){var n=ur(Da()(st));return n.copy=function(){return Rn(n,ku())},Qn.apply(n,arguments)}function Vg(){var n=xu(Da()).domain([1,10]);return n.copy=function(){return Rn(n,Vg()).base(n.base())},Qn.apply(n,arguments)}function _g(){var n=vu(Da());return n.copy=function(){return Rn(n,_g()).constant(n.constant())},Qn.apply(n,arguments)}function Fu(){var n=Su(Da());return n.copy=function(){return Rn(n,Fu()).exponent(n.exponent())},Qn.apply(n,arguments)}function GS(){return Fu.apply(null,arguments).exponent(.5)}function ka(){var n=0,e=.5,t=1,r=1,i,s,o,a,l,c=st,u,f=!1,h;function A(g){return isNaN(g=+g)?h:(g=.5+((g=+u(g))-s)*(r*g<r*s?a:l),c(f?Math.max(0,Math.min(1,g)):g))}A.domain=function(g){return arguments.length?([n,e,t]=g,i=u(n=+n),s=u(e=+e),o=u(t=+t),a=i===s?0:.5/(s-i),l=s===o?0:.5/(o-s),r=s<i?-1:1,A):[n,e,t]},A.clamp=function(g){return arguments.length?(f=!!g,A):f},A.interpolator=function(g){return arguments.length?(c=g,A):c};function d(g){return function(p){var m,y,C;return arguments.length?([m,y,C]=p,c=Iu(g,[m,y,C]),A):[c(0),c(.5),c(1)]}}return A.range=d(Fn),A.rangeRound=d(Is),A.unknown=function(g){return arguments.length?(h=g,A):h},function(g){return u=g,i=g(n),s=g(e),o=g(t),a=i===s?0:.5/(s-i),l=s===o?0:.5/(o-s),r=s<i?-1:1,A}}function Yg(){var n=ur(ka()(st));return n.copy=function(){return Rn(n,Yg())},Qn.apply(n,arguments)}function Jg(){var n=xu(ka()).domain([.1,1,10]);return n.copy=function(){return Rn(n,Jg()).base(n.base())},Qn.apply(n,arguments)}function Kg(){var n=vu(ka());return n.copy=function(){return Rn(n,Kg()).constant(n.constant())},Qn.apply(n,arguments)}function Ru(){var n=Su(ka());return n.copy=function(){return Rn(n,Ru()).exponent(n.exponent())},Qn.apply(n,arguments)}function zS(){return Ru.apply(null,arguments).exponent(.5)}function Gt(n){for(var e=n.length/6|0,t=new Array(e),r=0;r<e;)t[r]="#"+n.slice(r*6,++r*6);return t}const HS=Gt("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),VS=Gt("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),_S=Gt("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),YS=Gt("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),JS=Gt("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),KS=Gt("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),qS=Gt("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),jS=Gt("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),WS=Gt("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),XS=Gt("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");function Mu(n,e,t){const r=n-e+t*2;return n?r>0?r:1:0}const ZS="identity",ei="linear",Mn="log",bs="pow",xs="sqrt",Fa="symlog",qg="time",jg="utc",zt="sequential",ti="diverging",Nu="quantile",Wg="quantize",Xg="threshold",Bs="ordinal",Tu="point",Zg="band",Pu="bin-ordinal",De="continuous",vs="discrete",Ss="discretizing",pt="interpolating",$g="temporal";function $S(n){return function(e){let t=e[0],r=e[1],i;return r<t&&(i=t,t=r,r=i),[n.invert(t),n.invert(r)]}}function eQ(n){return function(e){const t=n.range();let r=e[0],i=e[1],s=-1,o,a,l,c;for(i<r&&(a=r,r=i,i=a),l=0,c=t.length;l<c;++l)t[l]>=r&&t[l]<=i&&(s<0&&(s=l),o=l);if(!(s<0))return r=n.invertExtent(t[s]),i=n.invertExtent(t[o]),[r[0]===void 0?r[1]:r[0],i[1]===void 0?i[0]:i[1]]}}function Lu(){const n=ru().unknown(void 0),e=n.domain,t=n.range;let r=[0,1],i,s,o=!1,a=0,l=0,c=.5;delete n.unknown;function u(){const f=e().length,h=r[1]<r[0],A=r[1-h],d=Mu(f,a,l);let g=r[h-0];i=(A-g)/(d||1),o&&(i=Math.floor(i)),g+=(A-g-i*(f-a))*c,s=i*(1-a),o&&(g=Math.round(g),s=Math.round(s));const p=Ji(f).map(m=>g+i*m);return t(h?p.reverse():p)}return n.domain=function(f){return arguments.length?(e(f),u()):e()},n.range=function(f){return arguments.length?(r=[+f[0],+f[1]],u()):r.slice()},n.rangeRound=function(f){return r=[+f[0],+f[1]],o=!0,u()},n.bandwidth=function(){return s},n.step=function(){return i},n.round=function(f){return arguments.length?(o=!!f,u()):o},n.padding=function(f){return arguments.length?(l=Math.max(0,Math.min(1,f)),a=l,u()):a},n.paddingInner=function(f){return arguments.length?(a=Math.max(0,Math.min(1,f)),u()):a},n.paddingOuter=function(f){return arguments.length?(l=Math.max(0,Math.min(1,f)),u()):l},n.align=function(f){return arguments.length?(c=Math.max(0,Math.min(1,f)),u()):c},n.invertRange=function(f){if(f[0]==null||f[1]==null)return;const h=r[1]<r[0],A=h?t().reverse():t(),d=A.length-1;let g=+f[0],p=+f[1],m,y,C;if(!(g!==g||p!==p)&&(p<g&&(C=g,g=p,p=C),!(p<A[0]||g>r[1-h])))return m=Math.max(0,mn(A,g)-1),y=g===p?m:mn(A,p)-1,g-A[m]>s+1e-10&&++m,h&&(C=m,m=d-y,y=d-C),m>y?void 0:e().slice(m,y+1)},n.invert=function(f){const h=n.invertRange([f,f]);return h&&h[0]},n.copy=function(){return Lu().domain(e()).range(r).round(o).paddingInner(a).paddingOuter(l).align(c)},u()}function ep(n){const e=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,n.copy=function(){return ep(e())},n}function tQ(){return ep(Lu().paddingInner(1))}var nQ=Array.prototype.map;function rQ(n){return nQ.call(n,Ni)}const iQ=Array.prototype.slice;function tp(){let n=[],e=[];function t(r){return r==null||r!==r?void 0:e[(mn(n,r)-1)%e.length]}return t.domain=function(r){return arguments.length?(n=rQ(r),t):n.slice()},t.range=function(r){return arguments.length?(e=iQ.call(r),t):e.slice()},t.tickFormat=function(r,i){return Dg(n[0],bt(n),r??10,i)},t.copy=function(){return tp().domain(t.domain()).range(t.range())},t}const Ra=new Map,sQ=Symbol("vega_scale");function oQ(n){return n[sQ]=!0,n}function aQ(n,e,t){const r=function(){const s=e();return s.invertRange||(s.invertRange=s.invert?$S(s):s.invertExtent?eQ(s):void 0),s.type=n,oQ(s)};return r.metadata=Eo(Tc(t)),r}function re(n,e,t){return arguments.length>1?(Ra.set(n,aQ(n,e,t)),this):cQ(n)?Ra.get(n):void 0}re(ZS,Fg),re(ei,kg,De),re(Mn,Bu,[De,Mn]),re(bs,Qu,De),re(xs,TS,De),re(Fa,Og,De),re(qg,OS,[De,$g]),re(jg,US,[De,$g]),re(zt,ku,[De,pt]),re(`${zt}-${ei}`,ku,[De,pt]),re(`${zt}-${Mn}`,Vg,[De,pt,Mn]),re(`${zt}-${bs}`,Fu,[De,pt]),re(`${zt}-${xs}`,GS,[De,pt]),re(`${zt}-${Fa}`,_g,[De,pt]),re(`${ti}-${ei}`,Yg,[De,pt]),re(`${ti}-${Mn}`,Jg,[De,pt,Mn]),re(`${ti}-${bs}`,Ru,[De,pt]),re(`${ti}-${xs}`,zS,[De,pt]),re(`${ti}-${Fa}`,Kg,[De,pt]),re(Nu,Gg,[Ss,Nu]),re(Wg,zg,Ss),re(Xg,Hg,Ss),re(Pu,tp,[vs,Ss]),re(Bs,ru,vs),re(Zg,Lu,vs),re(Tu,tQ,vs);function cQ(n){return Ra.has(n)}function Qs(n,e){const t=Ra.get(n);return t&&t.metadata[e]}function Pe(n){return Qs(n,De)}function rn(n){return Qs(n,vs)}function fr(n){return Qs(n,Ss)}function np(n){return Qs(n,Mn)}function Ma(n){return Qs(n,pt)}function lQ(n,e){const t=e[0],r=bt(e)-t;return function(i){return n(t+i*r)}}function Na(n,e,t){return Iu(rp(e||"rgb",t),n)}function uQ(n,e){const t=new Array(e),r=e+1;for(let i=0;i<e;)t[i]=n(++i/r);return t}function rp(n,e){const t=bS[fQ(n)];return e!=null&&t&&t.gamma?t.gamma(e):t}function fQ(n){return"interpolate"+n.toLowerCase().split("-").map(e=>e[0].toUpperCase()+e.slice(1)).join("")}const AQ={blues:"cfe1f2bed8eca8cee58fc1de74b2d75ba3cf4592c63181bd206fb2125ca40a4a90",greens:"d3eecdc0e6baabdda594d3917bc77d60ba6c46ab5e329a512089430e7735036429",greys:"e2e2e2d4d4d4c4c4c4b1b1b19d9d9d8888887575756262624d4d4d3535351e1e1e",oranges:"fdd8b3fdc998fdb87bfda55efc9244f87f2cf06b18e4580bd14904b93d029f3303",purples:"e2e1efd4d4e8c4c5e0b4b3d6a3a0cc928ec3827cb97566ae684ea25c3696501f8c",reds:"fdc9b4fcb49afc9e80fc8767fa7051f6573fec3f2fdc2a25c81b1db21218970b13",blueGreen:"d5efedc1e8e0a7ddd18bd2be70c6a958ba9144ad77319c5d2089460e7736036429",bluePurple:"ccddecbad0e4a8c2dd9ab0d4919cc98d85be8b6db28a55a6873c99822287730f71",greenBlue:"d3eecec5e8c3b1e1bb9bd8bb82cec269c2ca51b2cd3c9fc7288abd1675b10b60a1",orangeRed:"fddcaffdcf9bfdc18afdad77fb9562f67d53ee6545e24932d32d1ebf130da70403",purpleBlue:"dbdaebc8cee4b1c3de97b7d87bacd15b9fc93a90c01e7fb70b70ab056199045281",purpleBlueGreen:"dbd8eac8cee4b0c3de93b7d872acd1549fc83892bb1c88a3097f8702736b016353",purpleRed:"dcc9e2d3b3d7ce9eccd186c0da6bb2e14da0e23189d91e6fc61159ab07498f023a",redPurple:"fccfccfcbec0faa9b8f98faff571a5ec539ddb3695c41b8aa908808d0179700174",yellowGreen:"e4f4acd1eca0b9e2949ed68880c97c62bb6e47aa5e3297502083440e723b036034",yellowOrangeBrown:"feeaa1fedd84fecc63feb746fca031f68921eb7215db5e0bc54c05ab3d038f3204",yellowOrangeRed:"fee087fed16ffebd59fea849fd903efc7335f9522bee3423de1b20ca0b22af0225",blueOrange:"134b852f78b35da2cb9dcae1d2e5eff2f0ebfce0bafbbf74e8932fc5690d994a07",brownBlueGreen:"704108a0651ac79548e3c78af3e6c6eef1eac9e9e48ed1c74da79e187a72025147",purpleGreen:"5b1667834792a67fb6c9aed3e6d6e8eff0efd9efd5aedda971bb75368e490e5e29",purpleOrange:"4114696647968f83b7b9b4d6dadbebf3eeeafce0bafbbf74e8932fc5690d994a07",redBlue:"8c0d25bf363adf745ef4ae91fbdbc9f2efeed2e5ef9dcae15da2cb2f78b3134b85",redGrey:"8c0d25bf363adf745ef4ae91fcdccbfaf4f1e2e2e2c0c0c0969696646464343434",yellowGreenBlue:"eff9bddbf1b4bde5b594d5b969c5be45b4c22c9ec02182b82163aa23479c1c3185",redYellowBlue:"a50026d4322cf16e43fcac64fedd90faf8c1dcf1ecabd6e875abd04a74b4313695",redYellowGreen:"a50026d4322cf16e43fcac63fedd8df9f7aed7ee8ea4d86e64bc6122964f006837",pinkYellowGreen:"8e0152c0267edd72adf0b3d6faddedf5f3efe1f2cab6de8780bb474f9125276419",spectral:"9e0142d13c4bf0704afcac63fedd8dfbf8b0e0f3a1a9dda269bda94288b55e4fa2",viridis:"440154470e61481a6c482575472f7d443a834144873d4e8a39568c35608d31688e2d708e2a788e27818e23888e21918d1f988b1fa08822a8842ab07f35b77943bf7154c56866cc5d7ad1518fd744a5db36bcdf27d2e21be9e51afde725",magma:"0000040404130b0924150e3720114b2c11603b0f704a107957157e651a80721f817f24828c29819a2e80a8327db6377ac43c75d1426fde4968e95462f1605df76f5cfa7f5efc8f65fe9f6dfeaf78febf84fece91fddea0fcedaffcfdbf",inferno:"0000040403130c0826170c3b240c4f330a5f420a68500d6c5d126e6b176e781c6d86216b932667a12b62ae305cbb3755c73e4cd24644dd513ae65c30ed6925f3771af8850ffb9506fca50afcb519fac62df6d645f2e661f3f484fcffa4",plasma:"0d088723069033059742039d5002a25d01a66a00a87801a88405a7900da49c179ea72198b12a90ba3488c33d80cb4779d35171da5a69e16462e76e5bed7953f2834cf68f44fa9a3dfca636fdb32ffec029fcce25f9dc24f5ea27f0f921",cividis:"00205100235800265d002961012b65042e670831690d346b11366c16396d1c3c6e213f6e26426e2c456e31476e374a6e3c4d6e42506e47536d4c566d51586e555b6e5a5e6e5e616e62646f66676f6a6a706e6d717270717573727976737c79747f7c75827f758682768985778c8877908b78938e789691789a94789e9778a19b78a59e77a9a177aea575b2a874b6ab73bbaf71c0b26fc5b66dc9b96acebd68d3c065d8c462ddc85fe2cb5ce7cf58ebd355f0d652f3da4ff7de4cfae249fce647",rainbow:"6e40aa883eb1a43db3bf3cafd83fa4ee4395fe4b83ff576eff6659ff7847ff8c38f3a130e2b72fcfcc36bee044aff05b8ff4576ff65b52f6673af27828ea8d1ddfa319d0b81cbecb23abd82f96e03d82e14c6edb5a5dd0664dbf6e40aa",sinebow:"ff4040fc582af47218e78d0bd5a703bfbf00a7d5038de70b72f41858fc2a40ff402afc5818f4720be78d03d5a700bfbf03a7d50b8de71872f42a58fc4040ff582afc7218f48d0be7a703d5bf00bfd503a7e70b8df41872fc2a58ff4040",turbo:"23171b32204a3e2a71453493493eae4b49c54a53d7485ee44569ee4074f53c7ff8378af93295f72e9ff42ba9ef28b3e926bce125c5d925cdcf27d5c629dcbc2de3b232e9a738ee9d3ff39347f68950f9805afc7765fd6e70fe667cfd5e88fc5795fb51a1f84badf545b9f140c5ec3cd0e637dae034e4d931ecd12ef4c92bfac029ffb626ffad24ffa223ff9821ff8d1fff821dff771cfd6c1af76118f05616e84b14df4111d5380fcb2f0dc0260ab61f07ac1805a313029b0f00950c00910b00",browns:"eedbbdecca96e9b97ae4a865dc9856d18954c7784cc0673fb85536ad44339f3632",tealBlues:"bce4d89dd3d181c3cb65b3c245a2b9368fae347da0306a932c5985",teals:"bbdfdfa2d4d58ac9c975bcbb61b0af4da5a43799982b8b8c1e7f7f127273006667",warmGreys:"dcd4d0cec5c1c0b8b4b3aaa7a59c9998908c8b827f7e7673726866665c5a59504e",goldGreen:"f4d166d5ca60b6c35c98bb597cb25760a6564b9c533f8f4f33834a257740146c36",goldOrange:"f4d166f8be5cf8aa4cf5983bf3852aef701be2621fd65322c54923b142239e3a26",goldRed:"f4d166f6be59f9aa51fc964ef6834bee734ae56249db5247cf4244c43141b71d3e",lightGreyRed:"efe9e6e1dad7d5cbc8c8bdb9bbaea9cd967ddc7b43e15f19df4011dc000b",lightGreyTeal:"e4eaead6dcddc8ced2b7c2c7a6b4bc64b0bf22a6c32295c11f85be1876bc",lightMulti:"e0f1f2c4e9d0b0de9fd0e181f6e072f6c053f3993ef77440ef4a3c",lightOrange:"f2e7daf7d5baf9c499fab184fa9c73f68967ef7860e8645bde515bd43d5b",lightTealBlue:"e3e9e0c0dccf9aceca7abfc859afc0389fb9328dad2f7ca0276b95255988",darkBlue:"3232322d46681a5c930074af008cbf05a7ce25c0dd38daed50f3faffffff",darkGold:"3c3c3c584b37725e348c7631ae8b2bcfa424ecc31ef9de30fff184ffffff",darkGreen:"3a3a3a215748006f4d048942489e4276b340a6c63dd2d836ffeb2cffffaa",darkMulti:"3737371f5287197d8c29a86995ce3fffe800ffffff",darkRed:"3434347036339e3c38cc4037e75d1eec8620eeab29f0ce32ffeb2c"},hQ={accent:VS,category10:HS,category20:"1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5",category20b:"393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6",category20c:"3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9",dark2:_S,observable10:YS,paired:JS,pastel1:KS,pastel2:qS,set1:jS,set2:WS,set3:XS,tableau10:"4c78a8f58518e4575672b7b254a24beeca3bb279a2ff9da69d755dbab0ac",tableau20:"4c78a89ecae9f58518ffbf7954a24b88d27ab79a20f2cf5b43989483bcb6e45756ff9d9879706ebab0acd67195fcbfd2b279a2d6a5c99e765fd8b5a5"};function ip(n){if(Ce(n))return n;const e=n.length/6|0,t=new Array(e);for(let r=0;r<e;)t[r]="#"+n.slice(r*6,++r*6);return t}function sp(n,e){for(const t in n)Ou(t,e(n[t]))}const op={};sp(hQ,ip),sp(AQ,n=>Na(ip(n)));function Ou(n,e){return n=n&&n.toLowerCase(),arguments.length>1?(op[n]=e,this):op[n]}function Uu(){const n=e=>e;return n.invert=e=>e,n.copy=Uu,n.invertRange=()=>{},n.type="null",n}class dQ{constructor(e,t,r={}){this._container=e,this._sizeSource=t??(()=>({width:void 0,height:void 0})),this._shaderCache=new Map,this.rangeTextures=new WeakMap,this.selectionTextures=new WeakMap;const i=document.createElement("canvas");e.appendChild(i);const s=R3(i,{antialias:!0,depth:!1,premultipliedAlpha:!0,...r});if(!s)throw new Error("Unable to initialize WebGL. Your browser or machine may not support it.");if(!Gr(s))throw new Error("Your web browser does not support WebGL 2.0. Chrome, Firefox, and Safari Tech Preview should work.");U0(s);const o=s.getExtension("WEBGL_provoking_vertex");o&&o.provokingVertexWEBGL(o.FIRST_VERTEX_CONVENTION_WEBGL),s.blendFunc(s.ONE,s.ONE_MINUS_SRC_ALPHA),this.canvas=i,this.gl=s,this._pickingAttachmentOptions=[{format:s.RGBA,type:s.UNSIGNED_BYTE,minMag:s.LINEAR,wrap:s.CLAMP_TO_EDGE}],this._pickingBufferInfo=L0(s,this._pickingAttachmentOptions),s.bindFramebuffer(s.FRAMEBUFFER,null),this.adjustGl()}invalidateSize(){this._logicalCanvasSize=void 0,this.adjustGl()}compileShader(e,t){const r="#version 300 es",i="precision mediump float;";Ce(t)&&(t=t.join(`
|
|
393
|
+
${n}
|
|
394
|
+
};`)(this)}else this.updateFromDatum=e=>{for(let n=0;n<this.dataUpdaters.length;n++)this.dataUpdaters[n](e)}}pushFromDatum(e){this.updateFromDatum(e),this.pushAll()}}const rr=5,ku=127;function Ru(t){const e=[];for(let d=0;d<=ku;d++)e.push(void 0);const n=new Map;for(const d of t.chars)d.id<=ku?e[d.id]=d:n.set(d.id,d);const i=8722;n.has(i)||n.set(i,e[45]);function r(d){return(d<=ku?e[d]:n.get(d))||e[63]}function s(d){return r(d.charCodeAt(0))}const o=t.common.base,a=s("x"),l=s("X"),c=s("q"),u=a.height-rr*2,f=l.height-rr*2,h=c.height-a.height+c.yoffset-a.yoffset;function A(d,g=1){let m=0;for(let p=0;p<d.length;p++)m+=r(d.charCodeAt(p)).xadvance;return m/o*g}return{measureWidth:A,getCharByCode:r,getChar:s,xHeight:u,capHeight:f,descent:h,common:t.common}}function sr(t,e=0,n=1){return Math.max(e,Math.min(n,t))}const Dg=2**31-1,vD=-2147483648;function BD(t,e,n,i=n){const r=new Array(t);r.fill(Dg);let s=vD,o=-1/0,a=!1;const l=new Array(t);l.fill(0);const c=e[0],f=(e[1]-e[0])/t,h=(p,w)=>{const C=(p-c)/f,y=Math.floor(C);return sr(w&&y==C?y-1:y,0,t-1)};function A(p,w,C){if(a)return;if(w>s)s=w;else{a=!0;return}const y=n(p);if(y<o){a=!0;return}o=y;const I=h(y,!1);r[I]>w&&(r[I]=w),l[I]<C&&(l[I]=C)}function d(p,w,C){if(a)return;if(w>s)s=w;else{a=!0,console.debug("Items (vertices) are not ordered properly. Disabling binned index.");return}const y=n(p),I=i(p);if(y<o){a=!0;return}else if(I<y){a=!0;return}o=y;const x=h(y,!1),E=h(I,!0);for(let S=x;S<=E;S++)r[S]>w&&(r[S]=w),l[S]<C&&(l[S]=C)}const g=(p,w,C=[0,0])=>{const y=h(p,!1),I=h(w,!0),x=r[y],E=Math.max(l[I],x);return C[0]=x,C[1]=E,C},m=()=>{if(a)return;for(let w=1;w<l.length;w++)l[w]<l[w-1]&&(l[w]=l[w-1]);let p=!0;for(let w=r.length-1;w>0;w--)p&&r[w]==Dg?(r[w]=l[w],p=!1):r[w-1]>r[w]&&(r[w-1]=r[w]);return g};return A.getIndex=m,d.getIndex=m,n==i?A:d}function Ut(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function Tn(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const Na=Symbol("implicit");function Fu(){var t=new Xt,e=[],n=[],i=Na;function r(s){let o=t.get(s);if(o===void 0){if(i!==Na)return i;t.set(s,o=e.push(s)-1)}return n[o%n.length]}return r.domain=function(s){if(!arguments.length)return e.slice();e=[],t=new Xt;for(const o of s)t.has(o)||t.set(o,e.push(o)-1);return r},r.range=function(s){return arguments.length?(n=Array.from(s),r):n.slice()},r.unknown=function(s){return arguments.length?(i=s,r):i},r.copy=function(){return Fu(e,n).unknown(i)},Ut.apply(r,arguments),r}function or(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function ks(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function Pn(){}var gi=.7,ar=1/gi,cr="\\s*([+-]?\\d+)\\s*",Rs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_t="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",SD=/^#([0-9a-f]{3,8})$/,DD=new RegExp(`^rgb\\(${cr},${cr},${cr}\\)$`),QD=new RegExp(`^rgb\\(${_t},${_t},${_t}\\)$`),kD=new RegExp(`^rgba\\(${cr},${cr},${cr},${Rs}\\)$`),RD=new RegExp(`^rgba\\(${_t},${_t},${_t},${Rs}\\)$`),FD=new RegExp(`^hsl\\(${Rs},${_t},${_t}\\)$`),ND=new RegExp(`^hsla\\(${Rs},${_t},${_t},${Rs}\\)$`),Qg={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};or(Pn,Ln,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:kg,formatHex:kg,formatHex8:MD,formatHsl:TD,formatRgb:Rg,toString:Rg});function kg(){return this.rgb().formatHex()}function MD(){return this.rgb().formatHex8()}function TD(){return Pg(this).formatHsl()}function Rg(){return this.rgb().formatRgb()}function Ln(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=SD.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?Fg(e):n===3?new Te(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Ma(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Ma(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=DD.exec(t))?new Te(e[1],e[2],e[3],1):(e=QD.exec(t))?new Te(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=kD.exec(t))?Ma(e[1],e[2],e[3],e[4]):(e=RD.exec(t))?Ma(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=FD.exec(t))?Tg(e[1],e[2]/100,e[3]/100,1):(e=ND.exec(t))?Tg(e[1],e[2]/100,e[3]/100,e[4]):Qg.hasOwnProperty(t)?Fg(Qg[t]):t==="transparent"?new Te(NaN,NaN,NaN,0):null}function Fg(t){return new Te(t>>16&255,t>>8&255,t&255,1)}function Ma(t,e,n,i){return i<=0&&(t=e=n=NaN),new Te(t,e,n,i)}function Nu(t){return t instanceof Pn||(t=Ln(t)),t?(t=t.rgb(),new Te(t.r,t.g,t.b,t.opacity)):new Te}function Ta(t,e,n,i){return arguments.length===1?Nu(t):new Te(t,e,n,i??1)}function Te(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}or(Te,Ta,ks(Pn,{brighter(t){return t=t==null?ar:Math.pow(ar,t),new Te(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?gi:Math.pow(gi,t),new Te(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Te(pi(this.r),pi(this.g),pi(this.b),Pa(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:Ng,formatHex:Ng,formatHex8:PD,formatRgb:Mg,toString:Mg}));function Ng(){return`#${mi(this.r)}${mi(this.g)}${mi(this.b)}`}function PD(){return`#${mi(this.r)}${mi(this.g)}${mi(this.b)}${mi((isNaN(this.opacity)?1:this.opacity)*255)}`}function Mg(){const t=Pa(this.opacity);return`${t===1?"rgb(":"rgba("}${pi(this.r)}, ${pi(this.g)}, ${pi(this.b)}${t===1?")":`, ${t})`}`}function Pa(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function pi(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function mi(t){return t=pi(t),(t<16?"0":"")+t.toString(16)}function Tg(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Dt(t,e,n,i)}function Pg(t){if(t instanceof Dt)return new Dt(t.h,t.s,t.l,t.opacity);if(t instanceof Pn||(t=Ln(t)),!t)return new Dt;if(t instanceof Dt)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),s=Math.max(e,n,i),o=NaN,a=s-r,l=(s+r)/2;return a?(e===s?o=(n-i)/a+(n<i)*6:n===s?o=(i-e)/a+2:o=(e-n)/a+4,a/=l<.5?s+r:2-s-r,o*=60):a=l>0&&l<1?0:o,new Dt(o,a,l,t.opacity)}function Mu(t,e,n,i){return arguments.length===1?Pg(t):new Dt(t,e,n,i??1)}function Dt(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}or(Dt,Mu,ks(Pn,{brighter(t){return t=t==null?ar:Math.pow(ar,t),new Dt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?gi:Math.pow(gi,t),new Dt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,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 Te(Tu(t>=240?t-240:t+120,r,i),Tu(t,r,i),Tu(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new Dt(Lg(this.h),La(this.s),La(this.l),Pa(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=Pa(this.opacity);return`${t===1?"hsl(":"hsla("}${Lg(this.h)}, ${La(this.s)*100}%, ${La(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Lg(t){return t=(t||0)%360,t<0?t+360:t}function La(t){return Math.max(0,Math.min(1,t||0))}function Tu(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const Og=Math.PI/180,Ug=180/Math.PI,Oa=18,_g=.96422,zg=1,Gg=.82521,Hg=4/29,lr=6/29,Yg=3*lr*lr,LD=lr*lr*lr;function Vg(t){if(t instanceof zt)return new zt(t.l,t.a,t.b,t.opacity);if(t instanceof an)return Jg(t);t instanceof Te||(t=Nu(t));var e=_u(t.r),n=_u(t.g),i=_u(t.b),r=Lu((.2225045*e+.7168786*n+.0606169*i)/zg),s,o;return e===n&&n===i?s=o=r:(s=Lu((.4360747*e+.3850649*n+.1430804*i)/_g),o=Lu((.0139322*e+.0971045*n+.7141733*i)/Gg)),new zt(116*r-16,500*(s-r),200*(r-o),t.opacity)}function Pu(t,e,n,i){return arguments.length===1?Vg(t):new zt(t,e,n,i??1)}function zt(t,e,n,i){this.l=+t,this.a=+e,this.b=+n,this.opacity=+i}or(zt,Pu,ks(Pn,{brighter(t){return new zt(this.l+Oa*(t??1),this.a,this.b,this.opacity)},darker(t){return new zt(this.l-Oa*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=_g*Ou(e),t=zg*Ou(t),n=Gg*Ou(n),new Te(Uu(3.1338561*e-1.6168667*t-.4906146*n),Uu(-.9787684*e+1.9161415*t+.033454*n),Uu(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function Lu(t){return t>LD?Math.pow(t,1/3):t/Yg+Hg}function Ou(t){return t>lr?t*t*t:Yg*(t-Hg)}function Uu(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function _u(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function OD(t){if(t instanceof an)return new an(t.h,t.c,t.l,t.opacity);if(t instanceof zt||(t=Vg(t)),t.a===0&&t.b===0)return new an(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Ug;return new an(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function zu(t,e,n,i){return arguments.length===1?OD(t):new an(t,e,n,i??1)}function an(t,e,n,i){this.h=+t,this.c=+e,this.l=+n,this.opacity=+i}function Jg(t){if(isNaN(t.h))return new zt(t.l,0,0,t.opacity);var e=t.h*Og;return new zt(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}or(an,zu,ks(Pn,{brighter(t){return new an(this.h,this.c,this.l+Oa*(t??1),this.opacity)},darker(t){return new an(this.h,this.c,this.l-Oa*(t??1),this.opacity)},rgb(){return Jg(this).rgb()}}));var qg=-.14861,Gu=1.78277,Hu=-.29227,Ua=-.90649,Fs=1.97294,Kg=Fs*Ua,jg=Fs*Gu,Wg=Gu*Hu-Ua*qg;function UD(t){if(t instanceof wi)return new wi(t.h,t.s,t.l,t.opacity);t instanceof Te||(t=Nu(t));var e=t.r/255,n=t.g/255,i=t.b/255,r=(Wg*i+Kg*e-jg*n)/(Wg+Kg-jg),s=i-r,o=(Fs*(n-r)-Hu*s)/Ua,a=Math.sqrt(o*o+s*s)/(Fs*r*(1-r)),l=a?Math.atan2(o,s)*Ug-120:NaN;return new wi(l<0?l+360:l,a,r,t.opacity)}function Yu(t,e,n,i){return arguments.length===1?UD(t):new wi(t,e,n,i??1)}function wi(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}or(wi,Yu,ks(Pn,{brighter(t){return t=t==null?ar:Math.pow(ar,t),new wi(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?gi:Math.pow(gi,t),new wi(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=isNaN(this.h)?0:(this.h+120)*Og,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),i=Math.cos(t),r=Math.sin(t);return new Te(255*(e+n*(qg*i+Gu*r)),255*(e+n*(Hu*i+Ua*r)),255*(e+n*(Fs*i)),this.opacity)}}));function Xg(t,e,n,i,r){var s=t*t,o=s*t;return((1-3*t+3*s-o)*e+(4-6*s+3*o)*n+(1+3*t+3*s-3*o)*i+o*r)/6}function Zg(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],s=t[i+1],o=i>0?t[i-1]:2*r-s,a=i<e-1?t[i+2]:2*s-r;return Xg((n-i/e)*e,o,r,s,a)}}function $g(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),r=t[(i+e-1)%e],s=t[i%e],o=t[(i+1)%e],a=t[(i+2)%e];return Xg((n-i/e)*e,r,s,o,a)}}const _a=t=>()=>t;function ep(t,e){return function(n){return t+n*e}}function _D(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)}}function za(t,e){var n=e-t;return n?ep(t,n>180||n<-180?n-360*Math.round(n/360):n):_a(isNaN(t)?e:t)}function zD(t){return(t=+t)==1?Pe:function(e,n){return n-e?_D(e,n,t):_a(isNaN(e)?n:e)}}function Pe(t,e){var n=e-t;return n?ep(t,n):_a(isNaN(t)?e:t)}const Vu=(function t(e){var n=zD(e);function i(r,s){var o=n((r=Ta(r)).r,(s=Ta(s)).r),a=n(r.g,s.g),l=n(r.b,s.b),c=Pe(r.opacity,s.opacity);return function(u){return r.r=o(u),r.g=a(u),r.b=l(u),r.opacity=c(u),r+""}}return i.gamma=t,i})(1);function tp(t){return function(e){var n=e.length,i=new Array(n),r=new Array(n),s=new Array(n),o,a;for(o=0;o<n;++o)a=Ta(e[o]),i[o]=a.r||0,r[o]=a.g||0,s[o]=a.b||0;return i=t(i),r=t(r),s=t(s),a.opacity=1,function(l){return a.r=i(l),a.g=r(l),a.b=s(l),a+""}}}var GD=tp(Zg),HD=tp($g);function Ju(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,i=e.slice(),r;return function(s){for(r=0;r<n;++r)i[r]=t[r]*(1-s)+e[r]*s;return i}}function np(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function YD(t,e){return(np(e)?Ju:ip)(t,e)}function ip(t,e){var n=e?e.length:0,i=t?Math.min(n,t.length):0,r=new Array(i),s=new Array(n),o;for(o=0;o<i;++o)r[o]=On(t[o],e[o]);for(;o<n;++o)s[o]=e[o];return function(a){for(o=0;o<i;++o)s[o]=r[o](a);return s}}function rp(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function Qt(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function sp(t,e){var n={},i={},r;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(r in e)r in t?n[r]=On(t[r],e[r]):i[r]=e[r];return function(s){for(r in n)i[r]=n[r](s);return i}}var qu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ku=new RegExp(qu.source,"g");function VD(t){return function(){return t}}function JD(t){return function(e){return t(e)+""}}function op(t,e){var n=qu.lastIndex=Ku.lastIndex=0,i,r,s,o=-1,a=[],l=[];for(t=t+"",e=e+"";(i=qu.exec(t))&&(r=Ku.exec(e));)(s=r.index)>n&&(s=e.slice(n,s),a[o]?a[o]+=s:a[++o]=s),(i=i[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,l.push({i:o,x:Qt(i,r)})),n=Ku.lastIndex;return n<e.length&&(s=e.slice(n),a[o]?a[o]+=s:a[++o]=s),a.length<2?l[0]?JD(l[0].x):VD(e):(e=l.length,function(c){for(var u=0,f;u<e;++u)a[(f=l[u]).i]=f.x(c);return a.join("")})}function On(t,e){var n=typeof e,i;return e==null||n==="boolean"?_a(e):(n==="number"?Qt:n==="string"?(i=Ln(e))?(e=i,Vu):op:e instanceof Ln?Vu:e instanceof Date?rp:np(e)?Ju:Array.isArray(e)?ip:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?sp:Qt)(t,e)}function qD(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}function KD(t,e){var n=za(+t,+e);return function(i){var r=n(i);return r-360*Math.floor(r/360)}}function Ns(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var ap=180/Math.PI,ju={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function cp(t,e,n,i,r,s){var o,a,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(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,o=-o),{translateX:r,translateY:s,rotate:Math.atan2(e,t)*ap,skewX:Math.atan(l)*ap,scaleX:o,scaleY:a}}var Ga;function jD(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?ju:cp(e.a,e.b,e.c,e.d,e.e,e.f)}function WD(t){return t==null||(Ga||(Ga=document.createElementNS("http://www.w3.org/2000/svg","g")),Ga.setAttribute("transform",t),!(t=Ga.transform.baseVal.consolidate()))?ju:(t=t.matrix,cp(t.a,t.b,t.c,t.d,t.e,t.f))}function lp(t,e,n,i){function r(c){return c.length?c.pop()+" ":""}function s(c,u,f,h,A,d){if(c!==f||u!==h){var g=A.push("translate(",null,e,null,n);d.push({i:g-4,x:Qt(c,f)},{i:g-2,x:Qt(u,h)})}else(f||h)&&A.push("translate("+f+e+h+n)}function o(c,u,f,h){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),h.push({i:f.push(r(f)+"rotate(",null,i)-2,x:Qt(c,u)})):u&&f.push(r(f)+"rotate("+u+i)}function a(c,u,f,h){c!==u?h.push({i:f.push(r(f)+"skewX(",null,i)-2,x:Qt(c,u)}):u&&f.push(r(f)+"skewX("+u+i)}function l(c,u,f,h,A,d){if(c!==f||u!==h){var g=A.push(r(A)+"scale(",null,",",null,")");d.push({i:g-4,x:Qt(c,f)},{i:g-2,x:Qt(u,h)})}else(f!==1||h!==1)&&A.push(r(A)+"scale("+f+","+h+")")}return function(c,u){var f=[],h=[];return c=t(c),u=t(u),s(c.translateX,c.translateY,u.translateX,u.translateY,f,h),o(c.rotate,u.rotate,f,h),a(c.skewX,u.skewX,f,h),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,f,h),c=u=null,function(A){for(var d=-1,g=h.length,m;++d<g;)f[(m=h[d]).i]=m.x(A);return f.join("")}}}var XD=lp(jD,"px, ","px)","deg)"),ZD=lp(WD,", ",")",")"),$D=1e-12;function up(t){return((t=Math.exp(t))+1/t)/2}function eQ(t){return((t=Math.exp(t))-1/t)/2}function tQ(t){return((t=Math.exp(2*t))-1)/(t+1)}const nQ=(function t(e,n,i){function r(s,o){var a=s[0],l=s[1],c=s[2],u=o[0],f=o[1],h=o[2],A=u-a,d=f-l,g=A*A+d*d,m,p;if(g<$D)p=Math.log(h/c)/e,m=function(E){return[a+E*A,l+E*d,c*Math.exp(e*E*p)]};else{var w=Math.sqrt(g),C=(h*h-c*c+i*g)/(2*c*n*w),y=(h*h-c*c-i*g)/(2*h*n*w),I=Math.log(Math.sqrt(C*C+1)-C),x=Math.log(Math.sqrt(y*y+1)-y);p=(x-I)/e,m=function(E){var S=E*p,D=up(I),B=c/(n*w)*(D*tQ(e*S+I)-eQ(I));return[a+B*A,l+B*d,c*D/up(e*S+I)]}}return m.duration=p*1e3*e/Math.SQRT2,m}return r.rho=function(s){var o=Math.max(.001,+s),a=o*o,l=a*a;return t(o,a,l)},r})(Math.SQRT2,2,4);function fp(t){return function(e,n){var i=t((e=Mu(e)).h,(n=Mu(n)).h),r=Pe(e.s,n.s),s=Pe(e.l,n.l),o=Pe(e.opacity,n.opacity);return function(a){return e.h=i(a),e.s=r(a),e.l=s(a),e.opacity=o(a),e+""}}}const iQ=fp(za);var rQ=fp(Pe);function sQ(t,e){var n=Pe((t=Pu(t)).l,(e=Pu(e)).l),i=Pe(t.a,e.a),r=Pe(t.b,e.b),s=Pe(t.opacity,e.opacity);return function(o){return t.l=n(o),t.a=i(o),t.b=r(o),t.opacity=s(o),t+""}}function hp(t){return function(e,n){var i=t((e=zu(e)).h,(n=zu(n)).h),r=Pe(e.c,n.c),s=Pe(e.l,n.l),o=Pe(e.opacity,n.opacity);return function(a){return e.h=i(a),e.c=r(a),e.l=s(a),e.opacity=o(a),e+""}}}const oQ=hp(za);var aQ=hp(Pe);function Ap(t){return(function e(n){n=+n;function i(r,s){var o=t((r=Yu(r)).h,(s=Yu(s)).h),a=Pe(r.s,s.s),l=Pe(r.l,s.l),c=Pe(r.opacity,s.opacity);return function(u){return r.h=o(u),r.s=a(u),r.l=l(Math.pow(u,n)),r.opacity=c(u),r+""}}return i.gamma=e,i})(1)}const cQ=Ap(za);var lQ=Ap(Pe);function Wu(t,e){e===void 0&&(e=t,t=On);for(var n=0,i=e.length-1,r=e[0],s=new Array(i<0?0:i);n<i;)s[n]=t(r,r=e[++n]);return function(o){var a=Math.max(0,Math.min(i-1,Math.floor(o*=i)));return s[a](o-a)}}function uQ(t,e){for(var n=new Array(e),i=0;i<e;++i)n[i]=t(i/(e-1));return n}const fQ=Object.freeze(Object.defineProperty({__proto__:null,interpolate:On,interpolateArray:YD,interpolateBasis:Zg,interpolateBasisClosed:$g,interpolateCubehelix:cQ,interpolateCubehelixLong:lQ,interpolateDate:rp,interpolateDiscrete:qD,interpolateHcl:oQ,interpolateHclLong:aQ,interpolateHsl:iQ,interpolateHslLong:rQ,interpolateHue:KD,interpolateLab:sQ,interpolateNumber:Qt,interpolateNumberArray:Ju,interpolateObject:sp,interpolateRgb:Vu,interpolateRgbBasis:GD,interpolateRgbBasisClosed:HD,interpolateRound:Ns,interpolateString:op,interpolateTransformCss:XD,interpolateTransformSvg:ZD,interpolateZoom:nQ,piecewise:Wu,quantize:uQ},Symbol.toStringTag,{value:"Module"}));function hQ(t){return function(){return t}}function Xu(t){return+t}var dp=[0,1];function ct(t){return t}function Zu(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:hQ(isNaN(e)?NaN:.5)}function AQ(t,e){var n;return t>e&&(n=t,t=e,e=n),function(i){return Math.max(t,Math.min(e,i))}}function dQ(t,e,n){var i=t[0],r=t[1],s=e[0],o=e[1];return r<i?(i=Zu(r,i),s=n(o,s)):(i=Zu(i,r),s=n(s,o)),function(a){return s(i(a))}}function gQ(t,e,n){var i=Math.min(t.length,e.length)-1,r=new Array(i),s=new Array(i),o=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<i;)r[o]=Zu(t[o],t[o+1]),s[o]=n(e[o],e[o+1]);return function(a){var l=xn(t,a,1,i)-1;return s[l](r[l](a))}}function Ms(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ha(){var t=dp,e=dp,n=On,i,r,s,o=ct,a,l,c;function u(){var h=Math.min(t.length,e.length);return o!==ct&&(o=AQ(t[0],t[h-1])),a=h>2?gQ:dQ,l=c=null,f}function f(h){return h==null||isNaN(h=+h)?s:(l||(l=a(t.map(i),e,n)))(i(o(h)))}return f.invert=function(h){return o(r((c||(c=a(e,t.map(i),Qt)))(h)))},f.domain=function(h){return arguments.length?(t=Array.from(h,Xu),u()):t.slice()},f.range=function(h){return arguments.length?(e=Array.from(h),u()):e.slice()},f.rangeRound=function(h){return e=Array.from(h),n=Ns,u()},f.clamp=function(h){return arguments.length?(o=h?!0:ct,u()):o!==ct},f.interpolate=function(h){return arguments.length?(n=h,u()):n},f.unknown=function(h){return arguments.length?(s=h,f):s},function(h,A){return i=h,r=A,u()}}function gp(){return Ha()(ct,ct)}function pp(t,e,n,i){var r=ri(t,e,n),s;switch(i=Hi(i??",f"),i.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(s=B2(r,o))&&(i.precision=s),Ad(i,o)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(s=S2(r,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=s-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(s=v2(r))&&(i.precision=s-(i.type==="%")*2);break}}return He(i)}function yi(t){var e=t.domain;return t.ticks=function(n){var i=e();return Yo(i[0],i[i.length-1],n??10)},t.tickFormat=function(n,i){var r=e();return pp(r[0],r[r.length-1],n??10,i)},t.nice=function(n){n==null&&(n=10);var i=e(),r=0,s=i.length-1,o=i[r],a=i[s],l,c,u=10;for(a<o&&(c=o,o=a,a=c,c=r,r=s,s=c);u-- >0;){if(c=bl(o,a,n),c===l)return i[r]=o,i[s]=a,e(i);if(c>0)o=Math.floor(o/c)*c,a=Math.ceil(a/c)*c;else if(c<0)o=Math.ceil(o*c)/c,a=Math.floor(a*c)/c;else break;l=c}return t},t}function mp(){var t=gp();return t.copy=function(){return Ms(t,mp())},Ut.apply(t,arguments),yi(t)}function wp(t){var e;function n(i){return i==null||isNaN(i=+i)?e:i}return n.invert=n,n.domain=n.range=function(i){return arguments.length?(t=Array.from(i,Xu),n):t.slice()},n.unknown=function(i){return arguments.length?(e=i,n):e},n.copy=function(){return wp(t).unknown(e)},t=arguments.length?Array.from(t,Xu):[0,1],yi(n)}function yp(t,e){t=t.slice();var n=0,i=t.length-1,r=t[n],s=t[i],o;return s<r&&(o=n,n=i,i=o,o=r,r=s,s=o),t[n]=e.floor(r),t[i]=e.ceil(s),t}function Cp(t){return Math.log(t)}function bp(t){return Math.exp(t)}function pQ(t){return-Math.log(-t)}function mQ(t){return-Math.exp(-t)}function wQ(t){return isFinite(t)?+("1e"+t):t<0?0:t}function yQ(t){return t===10?wQ:t===Math.E?Math.exp:e=>Math.pow(t,e)}function CQ(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function Ep(t){return(e,n)=>-t(-e,n)}function $u(t){const e=t(Cp,bp),n=e.domain;let i=10,r,s;function o(){return r=CQ(i),s=yQ(i),n()[0]<0?(r=Ep(r),s=Ep(s),t(pQ,mQ)):t(Cp,bp),e}return e.base=function(a){return arguments.length?(i=+a,o()):i},e.domain=function(a){return arguments.length?(n(a),o()):n()},e.ticks=a=>{const l=n();let c=l[0],u=l[l.length-1];const f=u<c;f&&([c,u]=[u,c]);let h=r(c),A=r(u),d,g;const m=a==null?10:+a;let p=[];if(!(i%1)&&A-h<m){if(h=Math.floor(h),A=Math.ceil(A),c>0){for(;h<=A;++h)for(d=1;d<i;++d)if(g=h<0?d/s(-h):d*s(h),!(g<c)){if(g>u)break;p.push(g)}}else for(;h<=A;++h)for(d=i-1;d>=1;--d)if(g=h>0?d/s(-h):d*s(h),!(g<c)){if(g>u)break;p.push(g)}p.length*2<m&&(p=Yo(c,u,m))}else p=Yo(h,A,Math.min(A-h,m)).map(s);return f?p.reverse():p},e.tickFormat=(a,l)=>{if(a==null&&(a=10),l==null&&(l=i===10?"s":","),typeof l!="function"&&(!(i%1)&&(l=Hi(l)).precision==null&&(l.trim=!0),l=He(l)),a===1/0)return l;const c=Math.max(1,i*a/e.ticks().length);return u=>{let f=u/s(Math.round(r(u)));return f*i<i-.5&&(f*=i),f<=c?l(u):""}},e.nice=()=>n(yp(n(),{floor:a=>s(Math.floor(r(a))),ceil:a=>s(Math.ceil(r(a)))})),e}function ef(){const t=$u(Ha()).domain([1,10]);return t.copy=()=>Ms(t,ef()).base(t.base()),Ut.apply(t,arguments),t}function Ip(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function xp(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function tf(t){var e=1,n=t(Ip(e),xp(e));return n.constant=function(i){return arguments.length?t(Ip(e=+i),xp(e)):e},yi(n)}function vp(){var t=tf(Ha());return t.copy=function(){return Ms(t,vp()).constant(t.constant())},Ut.apply(t,arguments)}function Bp(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function bQ(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function EQ(t){return t<0?-t*t:t*t}function nf(t){var e=t(ct,ct),n=1;function i(){return n===1?t(ct,ct):n===.5?t(bQ,EQ):t(Bp(n),Bp(1/n))}return e.exponent=function(r){return arguments.length?(n=+r,i()):n},yi(e)}function rf(){var t=nf(Ha());return t.copy=function(){return Ms(t,rf()).exponent(t.exponent())},Ut.apply(t,arguments),t}function IQ(){return rf.apply(null,arguments).exponent(.5)}function Sp(){var t=[],e=[],n=[],i;function r(){var o=0,a=Math.max(1,e.length);for(n=new Array(a-1);++o<a;)n[o-1]=ad(t,o/a);return s}function s(o){return o==null||isNaN(o=+o)?i:e[xn(n,o)]}return s.invertExtent=function(o){var a=e.indexOf(o);return a<0?[NaN,NaN]:[a>0?n[a-1]:t[0],a<n.length?n[a]:t[t.length-1]]},s.domain=function(o){if(!arguments.length)return t.slice();t=[];for(let a of o)a!=null&&!isNaN(a=+a)&&t.push(a);return t.sort(ni),r()},s.range=function(o){return arguments.length?(e=Array.from(o),r()):e.slice()},s.unknown=function(o){return arguments.length?(i=o,s):i},s.quantiles=function(){return n.slice()},s.copy=function(){return Sp().domain(t).range(e).unknown(i)},Ut.apply(s,arguments)}function Dp(){var t=0,e=1,n=1,i=[.5],r=[0,1],s;function o(l){return l!=null&&l<=l?r[xn(i,l,0,n)]:s}function a(){var l=-1;for(i=new Array(n);++l<n;)i[l]=((l+1)*e-(l-n)*t)/(n+1);return o}return o.domain=function(l){return arguments.length?([t,e]=l,t=+t,e=+e,a()):[t,e]},o.range=function(l){return arguments.length?(n=(r=Array.from(l)).length-1,a()):r.slice()},o.invertExtent=function(l){var c=r.indexOf(l);return c<0?[NaN,NaN]:c<1?[t,i[0]]:c>=n?[i[n-1],e]:[i[c-1],i[c]]},o.unknown=function(l){return arguments.length&&(s=l),o},o.thresholds=function(){return i.slice()},o.copy=function(){return Dp().domain([t,e]).range(r).unknown(s)},Ut.apply(yi(o),arguments)}function Qp(){var t=[.5],e=[0,1],n,i=1;function r(s){return s!=null&&s<=s?e[xn(t,s,0,i)]:n}return r.domain=function(s){return arguments.length?(t=Array.from(s),i=Math.min(t.length,e.length-1),r):t.slice()},r.range=function(s){return arguments.length?(e=Array.from(s),i=Math.min(t.length,e.length-1),r):e.slice()},r.invertExtent=function(s){var o=e.indexOf(s);return[t[o-1],t[o]]},r.unknown=function(s){return arguments.length?(n=s,r):n},r.copy=function(){return Qp().domain(t).range(e).unknown(n)},Ut.apply(r,arguments)}function xQ(t){return new Date(t)}function vQ(t){return t instanceof Date?+t:+new Date(+t)}function sf(t,e,n,i,r,s,o,a,l,c){var u=gp(),f=u.invert,h=u.domain,A=c(".%L"),d=c(":%S"),g=c("%I:%M"),m=c("%I %p"),p=c("%a %d"),w=c("%b %d"),C=c("%B"),y=c("%Y");function I(x){return(l(x)<x?A:a(x)<x?d:o(x)<x?g:s(x)<x?m:i(x)<x?r(x)<x?p:w:n(x)<x?C:y)(x)}return u.invert=function(x){return new Date(f(x))},u.domain=function(x){return arguments.length?h(Array.from(x,vQ)):h().map(xQ)},u.ticks=function(x){var E=h();return t(E[0],E[E.length-1],x??10)},u.tickFormat=function(x,E){return E==null?I:c(E)},u.nice=function(x){var E=h();return(!x||typeof x.range!="function")&&(x=e(E[0],E[E.length-1],x??10)),x?h(yp(E,x)):u},u.copy=function(){return Ms(u,sf(t,e,n,i,r,s,o,a,l,c))},u}function BQ(){return Ut.apply(sf(O2,U2,Nt,cs,os,vn,Wo,Ko,tn,Fl).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function SQ(){return Ut.apply(sf(P2,L2,Mt,ls,as,si,Xo,jo,tn,Nl).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ya(){var t=0,e=1,n,i,r,s,o=ct,a=!1,l;function c(f){return f==null||isNaN(f=+f)?l:o(r===0?.5:(f=(s(f)-n)*r,a?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([t,e]=f,n=s(t=+t),i=s(e=+e),r=n===i?0:1/(i-n),c):[t,e]},c.clamp=function(f){return arguments.length?(a=!!f,c):a},c.interpolator=function(f){return arguments.length?(o=f,c):o};function u(f){return function(h){var A,d;return arguments.length?([A,d]=h,o=f(A,d),c):[o(0),o(1)]}}return c.range=u(On),c.rangeRound=u(Ns),c.unknown=function(f){return arguments.length?(l=f,c):l},function(f){return s=f,n=f(t),i=f(e),r=n===i?0:1/(i-n),c}}function Un(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function of(){var t=yi(Ya()(ct));return t.copy=function(){return Un(t,of())},Tn.apply(t,arguments)}function kp(){var t=$u(Ya()).domain([1,10]);return t.copy=function(){return Un(t,kp()).base(t.base())},Tn.apply(t,arguments)}function Rp(){var t=tf(Ya());return t.copy=function(){return Un(t,Rp()).constant(t.constant())},Tn.apply(t,arguments)}function af(){var t=nf(Ya());return t.copy=function(){return Un(t,af()).exponent(t.exponent())},Tn.apply(t,arguments)}function DQ(){return af.apply(null,arguments).exponent(.5)}function Va(){var t=0,e=.5,n=1,i=1,r,s,o,a,l,c=ct,u,f=!1,h;function A(g){return isNaN(g=+g)?h:(g=.5+((g=+u(g))-s)*(i*g<i*s?a:l),c(f?Math.max(0,Math.min(1,g)):g))}A.domain=function(g){return arguments.length?([t,e,n]=g,r=u(t=+t),s=u(e=+e),o=u(n=+n),a=r===s?0:.5/(s-r),l=s===o?0:.5/(o-s),i=s<r?-1:1,A):[t,e,n]},A.clamp=function(g){return arguments.length?(f=!!g,A):f},A.interpolator=function(g){return arguments.length?(c=g,A):c};function d(g){return function(m){var p,w,C;return arguments.length?([p,w,C]=m,c=Wu(g,[p,w,C]),A):[c(0),c(.5),c(1)]}}return A.range=d(On),A.rangeRound=d(Ns),A.unknown=function(g){return arguments.length?(h=g,A):h},function(g){return u=g,r=g(t),s=g(e),o=g(n),a=r===s?0:.5/(s-r),l=s===o?0:.5/(o-s),i=s<r?-1:1,A}}function Fp(){var t=yi(Va()(ct));return t.copy=function(){return Un(t,Fp())},Tn.apply(t,arguments)}function Np(){var t=$u(Va()).domain([.1,1,10]);return t.copy=function(){return Un(t,Np()).base(t.base())},Tn.apply(t,arguments)}function Mp(){var t=tf(Va());return t.copy=function(){return Un(t,Mp()).constant(t.constant())},Tn.apply(t,arguments)}function cf(){var t=nf(Va());return t.copy=function(){return Un(t,cf()).exponent(t.exponent())},Tn.apply(t,arguments)}function QQ(){return cf.apply(null,arguments).exponent(.5)}function Gt(t){for(var e=t.length/6|0,n=new Array(e),i=0;i<e;)n[i]="#"+t.slice(i*6,++i*6);return n}const kQ=Gt("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),RQ=Gt("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),FQ=Gt("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),NQ=Gt("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),MQ=Gt("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),TQ=Gt("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),PQ=Gt("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),LQ=Gt("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),OQ=Gt("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),UQ=Gt("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");function lf(t,e,n){const i=t-e+n*2;return t?i>0?i:1:0}const _Q="identity",ur="linear",_n="log",Ts="pow",Ps="sqrt",Ja="symlog",Tp="time",Pp="utc",Ht="sequential",fr="diverging",uf="quantile",Lp="quantize",Op="threshold",Ls="ordinal",ff="point",Up="band",hf="bin-ordinal",ke="continuous",Os="discrete",Us="discretizing",wt="interpolating",_p="temporal";function zQ(t){return function(e){let n=e[0],i=e[1],r;return i<n&&(r=n,n=i,i=r),[t.invert(n),t.invert(i)]}}function GQ(t){return function(e){const n=t.range();let i=e[0],r=e[1],s=-1,o,a,l,c;for(r<i&&(a=i,i=r,r=a),l=0,c=n.length;l<c;++l)n[l]>=i&&n[l]<=r&&(s<0&&(s=l),o=l);if(!(s<0))return i=t.invertExtent(n[s]),r=t.invertExtent(n[o]),[i[0]===void 0?i[1]:i[0],r[1]===void 0?r[0]:r[1]]}}function Af(){const t=Fu().unknown(void 0),e=t.domain,n=t.range;let i=[0,1],r,s,o=!1,a=0,l=0,c=.5;delete t.unknown;function u(){const f=e().length,h=i[1]<i[0],A=i[1-h],d=lf(f,a,l);let g=i[h-0];r=(A-g)/(d||1),o&&(r=Math.floor(r)),g+=(A-g-r*(f-a))*c,s=r*(1-a),o&&(g=Math.round(g),s=Math.round(s));const m=rs(f).map(p=>g+r*p);return n(h?m.reverse():m)}return t.domain=function(f){return arguments.length?(e(f),u()):e()},t.range=function(f){return arguments.length?(i=[+f[0],+f[1]],u()):i.slice()},t.rangeRound=function(f){return i=[+f[0],+f[1]],o=!0,u()},t.bandwidth=function(){return s},t.step=function(){return r},t.round=function(f){return arguments.length?(o=!!f,u()):o},t.padding=function(f){return arguments.length?(l=Math.max(0,Math.min(1,f)),a=l,u()):a},t.paddingInner=function(f){return arguments.length?(a=Math.max(0,Math.min(1,f)),u()):a},t.paddingOuter=function(f){return arguments.length?(l=Math.max(0,Math.min(1,f)),u()):l},t.align=function(f){return arguments.length?(c=Math.max(0,Math.min(1,f)),u()):c},t.invertRange=function(f){if(f[0]==null||f[1]==null)return;const h=i[1]<i[0],A=h?n().reverse():n(),d=A.length-1;let g=+f[0],m=+f[1],p,w,C;if(!(g!==g||m!==m)&&(m<g&&(C=g,g=m,m=C),!(m<A[0]||g>i[1-h])))return p=Math.max(0,xn(A,g)-1),w=g===m?p:xn(A,m)-1,g-A[p]>s+1e-10&&++p,h&&(C=p,p=d-w,w=d-C),p>w?void 0:e().slice(p,w+1)},t.invert=function(f){const h=t.invertRange([f,f]);return h&&h[0]},t.copy=function(){return Af().domain(e()).range(i).round(o).paddingInner(a).paddingOuter(l).align(c)},u()}function zp(t){const e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,t.copy=function(){return zp(e())},t}function HQ(){return zp(Af().paddingInner(1))}var YQ=Array.prototype.map;function VQ(t){return YQ.call(t,Jr)}const JQ=Array.prototype.slice;function Gp(){let t=[],e=[];function n(i){return i==null||i!==i?void 0:e[(xn(t,i)-1)%e.length]}return n.domain=function(i){return arguments.length?(t=VQ(i),n):t.slice()},n.range=function(i){return arguments.length?(e=JQ.call(i),n):e.slice()},n.tickFormat=function(i,r){return pp(t[0],vt(t),i??10,r)},n.copy=function(){return Gp().domain(n.domain()).range(n.range())},n}const qa=new Map,qQ=Symbol("vega_scale");function KQ(t){return t[qQ]=!0,t}function jQ(t,e,n){const i=function(){const s=e();return s.invertRange||(s.invertRange=s.invert?zQ(s):s.invertExtent?GQ(s):void 0),s.type=t,KQ(s)};return i.metadata=Po(ll(n)),i}function re(t,e,n){return arguments.length>1?(qa.set(t,jQ(t,e,n)),this):WQ(t)?qa.get(t):void 0}re(_Q,wp),re(ur,mp,ke),re(_n,ef,[ke,_n]),re(Ts,rf,ke),re(Ps,IQ,ke),re(Ja,vp,ke),re(Tp,BQ,[ke,_p]),re(Pp,SQ,[ke,_p]),re(Ht,of,[ke,wt]),re(`${Ht}-${ur}`,of,[ke,wt]),re(`${Ht}-${_n}`,kp,[ke,wt,_n]),re(`${Ht}-${Ts}`,af,[ke,wt]),re(`${Ht}-${Ps}`,DQ,[ke,wt]),re(`${Ht}-${Ja}`,Rp,[ke,wt]),re(`${fr}-${ur}`,Fp,[ke,wt]),re(`${fr}-${_n}`,Np,[ke,wt,_n]),re(`${fr}-${Ts}`,cf,[ke,wt]),re(`${fr}-${Ps}`,QQ,[ke,wt]),re(`${fr}-${Ja}`,Mp,[ke,wt]),re(uf,Sp,[Us,uf]),re(Lp,Dp,Us),re(Op,Qp,Us),re(hf,Gp,[Os,Us]),re(Ls,Fu,Os),re(Up,Af,Os),re(ff,HQ,Os);function WQ(t){return qa.has(t)}function _s(t,e){const n=qa.get(t);return n&&n.metadata[e]}function Le(t){return _s(t,ke)}function cn(t){return _s(t,Os)}function Ci(t){return _s(t,Us)}function Hp(t){return _s(t,_n)}function Ka(t){return _s(t,wt)}function XQ(t,e){const n=e[0],i=vt(e)-n;return function(r){return t(n+r*i)}}function ja(t,e,n){return Wu(Yp(e||"rgb",n),t)}function ZQ(t,e){const n=new Array(e),i=e+1;for(let r=0;r<e;)n[r]=t(++r/i);return n}function Yp(t,e){const n=fQ[$Q(t)];return e!=null&&n&&n.gamma?n.gamma(e):n}function $Q(t){return"interpolate"+t.toLowerCase().split("-").map(e=>e[0].toUpperCase()+e.slice(1)).join("")}const ek={blues:"cfe1f2bed8eca8cee58fc1de74b2d75ba3cf4592c63181bd206fb2125ca40a4a90",greens:"d3eecdc0e6baabdda594d3917bc77d60ba6c46ab5e329a512089430e7735036429",greys:"e2e2e2d4d4d4c4c4c4b1b1b19d9d9d8888887575756262624d4d4d3535351e1e1e",oranges:"fdd8b3fdc998fdb87bfda55efc9244f87f2cf06b18e4580bd14904b93d029f3303",purples:"e2e1efd4d4e8c4c5e0b4b3d6a3a0cc928ec3827cb97566ae684ea25c3696501f8c",reds:"fdc9b4fcb49afc9e80fc8767fa7051f6573fec3f2fdc2a25c81b1db21218970b13",blueGreen:"d5efedc1e8e0a7ddd18bd2be70c6a958ba9144ad77319c5d2089460e7736036429",bluePurple:"ccddecbad0e4a8c2dd9ab0d4919cc98d85be8b6db28a55a6873c99822287730f71",greenBlue:"d3eecec5e8c3b1e1bb9bd8bb82cec269c2ca51b2cd3c9fc7288abd1675b10b60a1",orangeRed:"fddcaffdcf9bfdc18afdad77fb9562f67d53ee6545e24932d32d1ebf130da70403",purpleBlue:"dbdaebc8cee4b1c3de97b7d87bacd15b9fc93a90c01e7fb70b70ab056199045281",purpleBlueGreen:"dbd8eac8cee4b0c3de93b7d872acd1549fc83892bb1c88a3097f8702736b016353",purpleRed:"dcc9e2d3b3d7ce9eccd186c0da6bb2e14da0e23189d91e6fc61159ab07498f023a",redPurple:"fccfccfcbec0faa9b8f98faff571a5ec539ddb3695c41b8aa908808d0179700174",yellowGreen:"e4f4acd1eca0b9e2949ed68880c97c62bb6e47aa5e3297502083440e723b036034",yellowOrangeBrown:"feeaa1fedd84fecc63feb746fca031f68921eb7215db5e0bc54c05ab3d038f3204",yellowOrangeRed:"fee087fed16ffebd59fea849fd903efc7335f9522bee3423de1b20ca0b22af0225",blueOrange:"134b852f78b35da2cb9dcae1d2e5eff2f0ebfce0bafbbf74e8932fc5690d994a07",brownBlueGreen:"704108a0651ac79548e3c78af3e6c6eef1eac9e9e48ed1c74da79e187a72025147",purpleGreen:"5b1667834792a67fb6c9aed3e6d6e8eff0efd9efd5aedda971bb75368e490e5e29",purpleOrange:"4114696647968f83b7b9b4d6dadbebf3eeeafce0bafbbf74e8932fc5690d994a07",redBlue:"8c0d25bf363adf745ef4ae91fbdbc9f2efeed2e5ef9dcae15da2cb2f78b3134b85",redGrey:"8c0d25bf363adf745ef4ae91fcdccbfaf4f1e2e2e2c0c0c0969696646464343434",yellowGreenBlue:"eff9bddbf1b4bde5b594d5b969c5be45b4c22c9ec02182b82163aa23479c1c3185",redYellowBlue:"a50026d4322cf16e43fcac64fedd90faf8c1dcf1ecabd6e875abd04a74b4313695",redYellowGreen:"a50026d4322cf16e43fcac63fedd8df9f7aed7ee8ea4d86e64bc6122964f006837",pinkYellowGreen:"8e0152c0267edd72adf0b3d6faddedf5f3efe1f2cab6de8780bb474f9125276419",spectral:"9e0142d13c4bf0704afcac63fedd8dfbf8b0e0f3a1a9dda269bda94288b55e4fa2",viridis:"440154470e61481a6c482575472f7d443a834144873d4e8a39568c35608d31688e2d708e2a788e27818e23888e21918d1f988b1fa08822a8842ab07f35b77943bf7154c56866cc5d7ad1518fd744a5db36bcdf27d2e21be9e51afde725",magma:"0000040404130b0924150e3720114b2c11603b0f704a107957157e651a80721f817f24828c29819a2e80a8327db6377ac43c75d1426fde4968e95462f1605df76f5cfa7f5efc8f65fe9f6dfeaf78febf84fece91fddea0fcedaffcfdbf",inferno:"0000040403130c0826170c3b240c4f330a5f420a68500d6c5d126e6b176e781c6d86216b932667a12b62ae305cbb3755c73e4cd24644dd513ae65c30ed6925f3771af8850ffb9506fca50afcb519fac62df6d645f2e661f3f484fcffa4",plasma:"0d088723069033059742039d5002a25d01a66a00a87801a88405a7900da49c179ea72198b12a90ba3488c33d80cb4779d35171da5a69e16462e76e5bed7953f2834cf68f44fa9a3dfca636fdb32ffec029fcce25f9dc24f5ea27f0f921",cividis:"00205100235800265d002961012b65042e670831690d346b11366c16396d1c3c6e213f6e26426e2c456e31476e374a6e3c4d6e42506e47536d4c566d51586e555b6e5a5e6e5e616e62646f66676f6a6a706e6d717270717573727976737c79747f7c75827f758682768985778c8877908b78938e789691789a94789e9778a19b78a59e77a9a177aea575b2a874b6ab73bbaf71c0b26fc5b66dc9b96acebd68d3c065d8c462ddc85fe2cb5ce7cf58ebd355f0d652f3da4ff7de4cfae249fce647",rainbow:"6e40aa883eb1a43db3bf3cafd83fa4ee4395fe4b83ff576eff6659ff7847ff8c38f3a130e2b72fcfcc36bee044aff05b8ff4576ff65b52f6673af27828ea8d1ddfa319d0b81cbecb23abd82f96e03d82e14c6edb5a5dd0664dbf6e40aa",sinebow:"ff4040fc582af47218e78d0bd5a703bfbf00a7d5038de70b72f41858fc2a40ff402afc5818f4720be78d03d5a700bfbf03a7d50b8de71872f42a58fc4040ff582afc7218f48d0be7a703d5bf00bfd503a7e70b8df41872fc2a58ff4040",turbo:"23171b32204a3e2a71453493493eae4b49c54a53d7485ee44569ee4074f53c7ff8378af93295f72e9ff42ba9ef28b3e926bce125c5d925cdcf27d5c629dcbc2de3b232e9a738ee9d3ff39347f68950f9805afc7765fd6e70fe667cfd5e88fc5795fb51a1f84badf545b9f140c5ec3cd0e637dae034e4d931ecd12ef4c92bfac029ffb626ffad24ffa223ff9821ff8d1fff821dff771cfd6c1af76118f05616e84b14df4111d5380fcb2f0dc0260ab61f07ac1805a313029b0f00950c00910b00",browns:"eedbbdecca96e9b97ae4a865dc9856d18954c7784cc0673fb85536ad44339f3632",tealBlues:"bce4d89dd3d181c3cb65b3c245a2b9368fae347da0306a932c5985",teals:"bbdfdfa2d4d58ac9c975bcbb61b0af4da5a43799982b8b8c1e7f7f127273006667",warmGreys:"dcd4d0cec5c1c0b8b4b3aaa7a59c9998908c8b827f7e7673726866665c5a59504e",goldGreen:"f4d166d5ca60b6c35c98bb597cb25760a6564b9c533f8f4f33834a257740146c36",goldOrange:"f4d166f8be5cf8aa4cf5983bf3852aef701be2621fd65322c54923b142239e3a26",goldRed:"f4d166f6be59f9aa51fc964ef6834bee734ae56249db5247cf4244c43141b71d3e",lightGreyRed:"efe9e6e1dad7d5cbc8c8bdb9bbaea9cd967ddc7b43e15f19df4011dc000b",lightGreyTeal:"e4eaead6dcddc8ced2b7c2c7a6b4bc64b0bf22a6c32295c11f85be1876bc",lightMulti:"e0f1f2c4e9d0b0de9fd0e181f6e072f6c053f3993ef77440ef4a3c",lightOrange:"f2e7daf7d5baf9c499fab184fa9c73f68967ef7860e8645bde515bd43d5b",lightTealBlue:"e3e9e0c0dccf9aceca7abfc859afc0389fb9328dad2f7ca0276b95255988",darkBlue:"3232322d46681a5c930074af008cbf05a7ce25c0dd38daed50f3faffffff",darkGold:"3c3c3c584b37725e348c7631ae8b2bcfa424ecc31ef9de30fff184ffffff",darkGreen:"3a3a3a215748006f4d048942489e4276b340a6c63dd2d836ffeb2cffffaa",darkMulti:"3737371f5287197d8c29a86995ce3fffe800ffffff",darkRed:"3434347036339e3c38cc4037e75d1eec8620eeab29f0ce32ffeb2c"},tk={accent:RQ,category10:kQ,category20:"1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5",category20b:"393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6",category20c:"3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9",dark2:FQ,observable10:NQ,paired:MQ,pastel1:TQ,pastel2:PQ,set1:LQ,set2:OQ,set3:UQ,tableau10:"4c78a8f58518e4575672b7b254a24beeca3bb279a2ff9da69d755dbab0ac",tableau20:"4c78a89ecae9f58518ffbf7954a24b88d27ab79a20f2cf5b43989483bcb6e45756ff9d9879706ebab0acd67195fcbfd2b279a2d6a5c99e765fd8b5a5"};function Vp(t){if(be(t))return t;const e=t.length/6|0,n=new Array(e);for(let i=0;i<e;)n[i]="#"+t.slice(i*6,++i*6);return n}function Jp(t,e){for(const n in t)df(n,e(t[n]))}const qp={};Jp(tk,Vp),Jp(ek,t=>ja(Vp(t)));function df(t,e){return t=t&&t.toLowerCase(),arguments.length>1?(qp[t]=e,this):qp[t]}function gf(){const t=e=>e;return t.invert=e=>e,t.copy=gf,t.invertRange=()=>{},t.type="null",t}const pf=4294967295,nk=.6,ik=4294967295;function rk(t){let e=t>>>0;return e^=e>>>16,e=Math.imul(e,2146121005),e^=e>>>15,e=Math.imul(e,2221713035),e^=e>>>16,e>>>0}function sk(t,e={}){const n=Array.from(t,l=>ak(l,"key")),i=n.length,r=e.maxLoadFactor??nk;if(!(r>0&&r<1))throw new Error("maxLoadFactor must be between 0 and 1.");const s=e.capacity??ck(Math.ceil(i/r));if(!Number.isSafeInteger(s)||s<1)throw new Error("capacity must be a positive power of two.");if((s&s-1)!==0)throw new Error("capacity must be a power of two.");const o=new Uint32Array(s);o.fill(pf);const a=s-1;for(const l of n){if(l===pf)throw new Error("Hash table keys must not equal the empty sentinel (0xffffffff).");let c=rk(l)&a,u=!1;for(let f=0;f<s;f+=1){const h=o[c];if(h===pf||h===l){o[c]=l,u=!0;break}c=c+1&a}if(!u)throw new Error("Hash table insertion failed. Increase capacity or lower load factor.")}return{table:o,capacity:s,size:i}}function ok(t,e){if(!Number.isSafeInteger(t)||t<1)throw new Error("capacity must be a positive integer.");if((t&t-1)!==0)throw new Error("capacity must be a power of two.");if(!Number.isSafeInteger(e)||e<1)throw new Error("maxTextureSize must be a positive integer.");const n=e*e;if(t>n)throw new Error("Selection hash table exceeds maximum texture capacity.");const i=1<<Math.floor(Math.log2(e)),r=Math.min(t,i),s=t/r;if(s>e)throw new Error("Selection hash table dimensions exceed maximum texture size.");return{width:r,height:s}}function ak(t,e){if(!Number.isSafeInteger(t)||t<0||t>ik)throw new Error(e+" must be a non-negative u32.");return t>>>0}function ck(t){let e=Math.max(1,t);return e-=1,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1}class lk{constructor(e,n,i,r){this._container=e,this._canvas=n,this._sizeSource=i,this._onPhysicalSizeChange=r??(()=>{}),this._logicalCanvasSize=void 0,this._devicePixelContentBoxSize=void 0,this._devicePixelContentBoxObserver=void 0,this._observeDevicePixelContentBox()}invalidate(){this._logicalCanvasSize=void 0,this._devicePixelContentBoxSize=void 0}finalize(){this._devicePixelContentBoxObserver&&this._devicePixelContentBoxObserver.disconnect()}getPhysicalCanvasSize(e){if(this._devicePixelContentBoxSize)return this._devicePixelContentBoxSize;const n=window.devicePixelRatio??1;return e=e||this.getLogicalCanvasSize(),{width:Math.round(e.width*n),height:Math.round(e.height*n)}}getDevicePixelRatio(e){e=e||this.getLogicalCanvasSize();const n=this.getPhysicalCanvasSize(e),i=e.width>0?n.width/e.width:void 0,r=e.height>0?n.height/e.height:void 0;return i!==void 0&&r!==void 0?(i+r)/2:i!==void 0?i:r!==void 0?r:window.devicePixelRatio??1}getLogicalCanvasSize(){if(this._logicalCanvasSize)return this._logicalCanvasSize;const e=this._sizeSource(),n=window.getComputedStyle(this._container,null),i=this._container.getBoundingClientRect(),r=parseFloat(n.paddingLeft),s=parseFloat(n.paddingRight),o=parseFloat(n.paddingTop),a=parseFloat(n.paddingBottom),l=parseFloat(n.borderLeftWidth),c=parseFloat(n.borderRightWidth),u=parseFloat(n.borderTopWidth),f=parseFloat(n.borderBottomWidth),h=e.width??i.width-r-s-l-c,A=e.height??i.height-o-a-u-f;return this._logicalCanvasSize={width:h,height:A},this._logicalCanvasSize}_observeDevicePixelContentBox(){if(typeof ResizeObserver!="function")return;const e=new ResizeObserver(n=>{const i=n.find(a=>a.target==this._canvas);if(!i)return;const r=i.devicePixelContentBoxSize;if(!r)return;const s=Array.isArray(r)?r[0]:r;if(!s)return;const o={width:s.inlineSize,height:s.blockSize};this._devicePixelContentBoxSize&&this._devicePixelContentBoxSize.width==o.width&&this._devicePixelContentBoxSize.height==o.height||(this._devicePixelContentBoxSize=o,this._onPhysicalSizeChange())});try{e.observe(this._canvas,{box:"device-pixel-content-box"}),this._devicePixelContentBoxObserver=e}catch{e.disconnect()}}}class uk{constructor(e,n,i={}){const r=n??(()=>({width:void 0,height:void 0}));this._canvasSizeHelper=void 0,this._appliedCanvasSize=void 0,this._shaderCache=new Map,this.rangeTextures=new WeakMap,this.selectionTextures=new WeakMap;const s=document.createElement("canvas");e.appendChild(s);const o=CD(s,{antialias:!0,depth:!1,premultipliedAlpha:!0,...i});if(!o)throw new Error("Unable to initialize WebGL. Your browser or machine may not support it.");if(!Wi(o))throw new Error("Your web browser does not support WebGL 2.0. Chrome, Firefox, and Safari Tech Preview should work.");Bg(o);const a=o.getExtension("WEBGL_provoking_vertex");a&&a.provokingVertexWEBGL(a.FIRST_VERTEX_CONVENTION_WEBGL),o.blendFunc(o.ONE,o.ONE_MINUS_SRC_ALPHA),this.canvas=s,this.gl=o,this._pickingAttachmentOptions=[{format:o.RGBA,type:o.UNSIGNED_BYTE,minMag:o.LINEAR,wrap:o.CLAMP_TO_EDGE}],this._pickingBufferInfo=xg(o,this._pickingAttachmentOptions),o.bindFramebuffer(o.FRAMEBUFFER,null),this._canvasSizeHelper=new lk(e,s,r,()=>this.adjustGl()),this.adjustGl()}invalidateSize(){this._canvasSizeHelper.invalidate(),this.adjustGl()}compileShader(e,n){const i="#version 300 es",r="precision mediump float;";be(n)&&(n=n.join(`
|
|
387
395
|
|
|
388
|
-
`));const s=this.gl,o=
|
|
396
|
+
`));const s=this.gl,o=n.replaceAll(/ {2,}|^\s*\/\/.*$/gm,"");let a=this._shaderCache.get(o);if(!a){const l=[i,r,n].join(`
|
|
389
397
|
|
|
390
|
-
`);a=s.createShader(e),s.shaderSource(a,l),s.compileShader(a),this._shaderCache.set(o,a)}return a}adjustGl(){const e=this.getLogicalCanvasSize();this.canvas.style.width=`${e.width}px`,this.canvas.style.height=`${e.height}px
|
|
391
|
-
`).map((o,a)=>{const l=s.get(a);return`${a+1+
|
|
398
|
+
`);a=s.createShader(e),s.shaderSource(a,l),s.compileShader(a),this._shaderCache.set(o,a)}return a}adjustGl(){const e=this.getLogicalCanvasSize(),n=this.getPhysicalCanvasSize(e);this._appliedCanvasSize&&this._appliedCanvasSize.logicalWidth==e.width&&this._appliedCanvasSize.logicalHeight==e.height&&this._appliedCanvasSize.physicalWidth==n.width&&this._appliedCanvasSize.physicalHeight==n.height||(this.canvas.style.width=`${e.width}px`,this.canvas.style.height=`${e.height}px`,this.canvas.width=n.width,this.canvas.height=n.height,gD(this.gl,this._pickingBufferInfo,this._pickingAttachmentOptions),this._appliedCanvasSize={logicalWidth:e.width,logicalHeight:e.height,physicalWidth:n.width,physicalHeight:n.height})}finalize(){this._canvasSizeHelper.finalize(),this.canvas.remove()}getPhysicalCanvasSize(e){return this._canvasSizeHelper.getPhysicalCanvasSize(e)}getDevicePixelRatio(e){return this._canvasSizeHelper.getDevicePixelRatio(e)}getLogicalCanvasSize(){return this._canvasSizeHelper.getLogicalCanvasSize()}createRangeTexture(e,n=!1){const i=this.rangeTextures.get(e.getScale());if(!n&&i)return;function r(o,a){return cn(a.type)?a.domain().length:a.type=="threshold"?a.domain().length+1:a.type=="quantize"||a.type=="quantile"?o??4:o}const s=e.channel;if(Dn(s)){const o=e.getScale(),a=o.props,l=o.range();let c;if(a.scheme)if(o.type=="threshold"&&l)c=mf(l,this.gl,o.domain().length,i);else{let u=le(a.scheme)?void 0:a.scheme.count;u=r(u,o),c=gk(a.scheme,this.gl,u,i,!!a.reverse)}else Ka(o.type)||Le(o.type)&&l.length>1?c=pk(l,a.interpolate,this.gl,i):c=mf(l,this.gl,o.domain().length,i);this.rangeTextures.set(o,c)}else{const o=e.getScale();if(o.type==="ordinal"||Ci(o.type)){const a=aa(s)?o0(s):c=>c,l=o.range();this.rangeTextures.set(o,mk(l.map(a),this.gl,o.domain().length,i))}}}createSelectionTexture(e,n=!0){if(!jl(e))throw new Error("Not a multi-point selection, cannot create texture");const{table:i,capacity:r}=sk(e.data.keys()),{width:s,height:o}=ok(r,this.gl.getParameter(this.gl.MAX_TEXTURE_SIZE)),a=this.selectionTextures.get(e),l=this.gl,c=zs(this.gl,{auto:!1,level:0,min:l.NEAREST,mag:l.NEAREST,format:l.RED_INTEGER,internalFormat:l.R32UI,width:s,height:o},i,n?a:!1);l.bindTexture(l.TEXTURE_2D,c),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_BASE_LEVEL,0),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAX_LEVEL,0),l.bindTexture(l.TEXTURE_2D,null),this.selectionTextures.set(e,c)}}function fk(t,e="",n=0){const i=/ERROR:\s*\d+:(\d+)/gi,r=[...e.matchAll(i)],s=new Map(r.map((o,a)=>{const l=parseInt(o[1]),c=r[a+1],u=c?c.index:e.length,f=e.substring(o.index,u);return[l-1,f]}));return t.split(`
|
|
399
|
+
`).map((o,a)=>{const l=s.get(a);return`${a+1+n}: ${o}${l?`
|
|
392
400
|
|
|
393
401
|
^^^ ${l}`:""}`}).join(`
|
|
394
|
-
`)}function
|
|
395
|
-
Error compiling: ${s}`,
|
|
396
|
-
${
|
|
402
|
+
`)}function hk(t,e,n){const i=t.createProgram();t.attachShader(i,e),t.attachShader(i,n),t.linkProgram(i);function r(){let s,o;if(!t.getProgramParameter(i,t.LINK_STATUS)){s=t.getProgramInfoLog(i);for(const l of[e,n])t.getShaderParameter(l,t.COMPILE_STATUS)||(s=t.getShaderInfoLog(l),o=fk(t.getShaderSource(l),s,0)+`
|
|
403
|
+
Error compiling: ${s}`,t.deleteShader(l));t.deleteProgram(i)}if(s)return{message:s,detail:o}}return{program:i,getProgramErrors:r}}function zs(t,e,n,i){return i?z0(t,i,n,e):i=Ds(t,{...e,src:n}),i}function Ak(t,e,n,i){const{height:r,framebuffer:s}=e,o=new Uint8Array(4);return t.bindFramebuffer(t.FRAMEBUFFER,s),t.readPixels(n,r-i-1,1,1,t.RGBA,t.UNSIGNED_BYTE,o),t.bindFramebuffer(t.FRAMEBUFFER,null),o}function dk(t,e,n="image/png"){const{width:i,height:r}=e,s=new Uint8Array(i*r*4);t.bindFramebuffer(t.FRAMEBUFFER,e.framebuffer),t.readPixels(0,0,i,r,t.RGBA,t.UNSIGNED_BYTE,s),t.bindFramebuffer(t.FRAMEBUFFER,null);const o=document.createElement("canvas");o.width=i,o.height=r;const a=o.getContext("2d"),l=a.createImageData(i,r);for(let c=0;c<r;c++){const u=(r-1-c)*i*4,f=c*i*4;l.data.set(s.subarray(u,u+i*4),f)}return a.putImageData(l,0,0),o.toDataURL(n)}function gk(t,e,n,i,r=!1){const s=le(t)?t:t.name,o=!le(t)&&t.extent||[0,1];if(n===void 0&&!le(t)&&(n=t.count),s){const a=df(s);if(dt(a)){const l=Kp(a,{extent:o,count:n,reverse:r});return zs(e,{minMag:e.LINEAR,format:e.RGB,height:1,wrap:e.CLAMP_TO_EDGE},l,i)}else{if(be(a))return mf(r?Array.from(a).reverse():a,e,n,i);throw new Error("Unknown scheme: "+s)}}}function pk(t,e="rgb",n,i){const r=ja(t,le(e)?e:e.type,le(e)?void 0:e.gamma),s=Kp(r);return zs(n,{minMag:n.LINEAR,format:n.RGB,height:1,wrap:n.CLAMP_TO_EDGE},s,i)}function mk(t,e,n,i){const r=Math.max(t.length,n||0),s=new Float32Array(r);for(let o=0;o<r;o++)s[o]=t[o%t.length];return zs(e,{minMag:e.NEAREST,format:e.RED,internalFormat:e.R32F,height:1},s,i)}function mf(t,e,n,i){const r=jp(t,n);return zs(e,{minMag:e.NEAREST,format:e.RGB,height:1},r,i)}function Kp(t,{extent:e=[0,1],reverse:n=!1,count:i=256}={}){const r=e[0],s=ra(e)-r,o=rs(i).map(a=>a/(i-1)).map(a=>r+a/s).map(t);return n&&o.reverse(),jp(o)}function jp(t,e){const n=Math.max(t.length,e||0),i=new Uint8Array(n*3);for(let r=0;r<n;r++){const s=t[r%t.length],o=Ln(s);if(!o)throw new Error(`Invalid color "${s}" in the scheme ${JSON.stringify(t)}!`);const a=o.rgb();i[r*3+0]=a.r,i[r*3+1]=a.g,i[r*3+2]=a.b}return i}function wf(t){const e=Ln(t).rgb();return[e.r,e.g,e.b].map(n=>n/255)}const wk="attr_",yk="uDomain_",Ck="range_",bk="accessor_",Wp="scale_",Ek="getScaled_",yf="uRangeTexture_",Wa="uParam_",Gs="checkSelection_",Xp=3402823466e29;function Ik(t){const e=t.match(/^(?:(\w+)-)?(\w+)$/);if(!e)throw new Error("Not a scale type: "+t);return{family:e[1]||"continuous",transform:e[2]}}function Hs(t,e){return`${bk}${t}_${e}`}function xk(t,e,n){let i;if(aa(t))i=bi(o0(t)(n));else if(le(n))if(Dn(t))i=Qk(n);else throw new Error(`String values are not supported on the "${t}" channel: ${n}`);else if(qr(n))i=bi(n?1:0);else if(n===null)if(Dn(t))i=bi([0,0,0]);else throw new Error(`null value is not supported on the "${t}" chanel.`);else i=bi(n);const r=Hs(t,e),s=`
|
|
404
|
+
${i.type} ${r}() {
|
|
397
405
|
// Constant value
|
|
398
|
-
return ${r};
|
|
399
|
-
}`;return{channel:n,accessorGlsl:s,accessorFunctionName:i}}function DQ(n,e){let t="float",r=l=>l;In(n)&&(t="vec3",r=l=>zu(l));const i=`u${OQ(n)}_${e}`,s=` // Dynamic value
|
|
400
|
-
uniform ${t} ${i};`,o=Fs(n,e);let a=`
|
|
401
|
-
${t} ${o}() {
|
|
402
|
-
// Dynamic value
|
|
403
406
|
return ${i};
|
|
404
|
-
}`;return{channel:
|
|
405
|
-
${
|
|
407
|
+
}`;return{channel:t,accessorGlsl:s,accessorFunctionName:r}}function vk(t,e){let n="float",i=l=>l;Dn(t)&&(n="vec3",i=l=>wf(l));const r=`u${Mk(t)}_${e}`,s=` // Dynamic value
|
|
408
|
+
uniform ${n} ${r};`,o=Hs(t,e);let a=`
|
|
409
|
+
${n} ${o}() {
|
|
410
|
+
// Dynamic value
|
|
411
|
+
return ${r};
|
|
412
|
+
}`;return{channel:t,uniformName:r,uniformGlsl:s,accessorGlsl:a,accessorFunctionName:o,adjuster:i}}function Zp(t,e,n,i=[t]){const{attributeType:r}=hr(e,t),s=Ar(i),o=`in highp ${r} ${s};`,a=Hs(t,n),l=`
|
|
413
|
+
${r} ${a}() {
|
|
406
414
|
return ${s};
|
|
407
|
-
}`;return{channel:
|
|
408
|
-
${
|
|
409
|
-
return ${
|
|
410
|
-
}`;return{channel:
|
|
411
|
-
${
|
|
412
|
-
${
|
|
415
|
+
}`;return{channel:t,attributeName:s,attributeGlsl:o,accessorGlsl:l,accessorFunctionName:a}}function Bk(t,e,n){const{attributeType:i}=hr(e,t),r=Ar(t),s=` uniform highp ${i} ${r};`,o=Hs(t,n),a=`
|
|
416
|
+
${i} ${o}() {
|
|
417
|
+
return ${r};
|
|
418
|
+
}`;return{channel:t,uniformName:r,uniformGlsl:s,accessorGlsl:a,accessorFunctionName:o}}function Sk(t,e,n){e??=gf();const i=rn(t),r=yk+i,s=Ck+i,{hp:o,attributeType:a}=hr(e,t),l=e.domain?e.domain().length:void 0;let c;const u=[];u.push(""),u.push("/".repeat(70)),u.push(`// Channel: ${t}`),u.push("");const{transform:f}=Ik(e.type),h=(E,...S)=>kk.apply(null,[E,"value",...S]);let A;switch(f){case"linear":A=h("scaleLinear","domain",s);break;case"log":A=h("scaleLog","domain",s,e.base());break;case"symlog":A=h("scaleSymlog","domain",s,e.constant());break;case"pow":case"sqrt":A=h("scalePow","domain",s,e.exponent());break;case"index":case"locus":A=h("scaleBandHp","domain",s,e.paddingInner(),e.paddingOuter(),e.align(),n.band??.5);break;case"point":case"band":A=h("scaleBand","domain",s,e.paddingInner(),e.paddingOuter(),e.align(),n.band??.5);break;case"ordinal":case"null":case"identity":A=h("scaleIdentity");break;case"threshold":break;default:throw new Error(`Unsupported scale type: ${e.type}! ${t}: ${JSON.stringify(n)}`)}const d=om(e,t);let g;if(d&&t==i){const E=e.props.range??[];if(Ee(E)||E.some(Ee)){if(d.length<1||d.length>4)throw new Error(`A range with ExprRefs must have 1-4 elements, not ${d.length}! Range: ${JSON.stringify(d)}`);g=` uniform ${em(d.length)} ${s};`}else if(d.length&&d.every(qe)){const S=nm(d);u.push(`const ${S.type} ${s} = ${S};`)}}const m=tm(t);let p;if(Dn(t)){const E=yf+i;if(t==i&&u.push(`uniform sampler2D ${E};`),Le(e.type))p=`getInterpolatedColor(${E}, transformed)`;else if(cn(e.type)||Ci(e.type))p=`getDiscreteColor(${E}, int(transformed))`;else throw new Error("Problem with color scale!")}else if(e.type==="ordinal"||Ci(e.type)){const E=yf+i;t==i&&u.push(`uniform sampler2D ${E};`),p=`getDiscreteColor(${E}, int(transformed)).r`}const w=[],C=Le(e.type)&&l>2,y=Ci(e.type)||C;if(w.push("int slot = 0;"),y){const E=r;w.push(C?`while (slot < ${E}.length() - 2 && value >= ${E}[slot + 1]) { slot++; }`:`while (slot < ${E}.length() && value >= ${E}[slot]) { slot++; }`)}const I=Le(e.type)||Ci(e.type)||["band","point"].includes(e.type);if(A){const E=r;I&&(o?w.push(`vec3 domain = ${E};`):w.push(`vec2 domain = vec2(${E}[slot], ${E}[slot + 1]);`)),w.push(`float transformed = ${A};`),C&&w.push(`transformed = (float(slot) + transformed) / (float(${E}.length() - 1));`)}else w.push("float transformed = float(slot);");"clamp"in e&&e.clamp()&&w.push(`transformed = clampToRange(transformed, ${nm(d)});`),w.push(`return ${p??"transformed"};`),u.push(`
|
|
419
|
+
${m} ${Wp}${t}(${a} value) {
|
|
420
|
+
${w.map(E=>` ${E}
|
|
413
421
|
`).join("")}
|
|
414
422
|
}`);const x=u.join(`
|
|
415
|
-
`);if(
|
|
416
|
-
${
|
|
423
|
+
`);if(I&&t==i){const E=Le(e.type)||Ci(e.type)?l:2;c=o?` highp vec3 ${r};`:` mediump float ${r}[${E}];`}return{glsl:x,domainUniformName:r,domainUniform:c,rangeUniformName:s,rangeUniform:g}}function Dk(t,e){const n=tm(t),i=[],r=[];for(let s=0;s<e.length;s++){const o=e[s],a=Hs(t,s),{param:l,empty:c}=o.predicate;i.push(l?`${Gs}${l}(${!!c})`:null),r.push(o.scaleChannel?`return ${Wp}${t}(${a}());`:`return ${a}();`)}return`${n} ${Ek}${t}() {
|
|
424
|
+
${Tk(i,r)}
|
|
417
425
|
}
|
|
418
426
|
|
|
419
|
-
#define ${
|
|
420
|
-
${e[
|
|
421
|
-
}`)}return
|
|
422
|
-
`)}function
|
|
427
|
+
#define ${t}_DEFINED`}function $p(t){if(!qe(t))throw new Error(`Not a number: ${t}`);if(t==1/0)return""+Xp;if(t==-1/0)return""+-Xp;{let e=`${t}`;return/^(-)?\d+$/.test(e)&&(e+=".0"),e}}function bi(t){typeof t=="number"&&(t=[t]);const e=t.length;if(e<1||e>4)throw new Error("Invalid number of components: "+e);const n=em(e),i=`${n}(${t.map($p).join(", ")})`;return Object.assign(i,{type:n,numComponents:e})}function em(t){switch(t){case 1:return"float";case 2:return"vec2";case 3:return"vec3";case 4:return"vec4";default:throw new Error("Invalid number of components: "+t)}}function tm(t){return Dn(t)?"vec3":t=="uniqueId"?"uint":"float"}function Qk(t){return bi(wf(t))}function nm(t){return bi([t[0],ra(t)])}function kk(t,...e){const n=[];for(const i of e)qe(i)?n.push($p(i)):be(i)?n.push(bi(i)):n.push(i);return`${t}(${n.join(", ")})`}function hr(t,e){const n=t&&cn(t.type),i=t&&im(t.type),r=i&&Rk(t.domain()),s=r?{attributeType:"uvec2",arrayConstructor:Uint32Array}:i?{attributeType:"uint",arrayConstructor:Uint32Array}:n?{attributeType:"uint",arrayConstructor:Uint16Array}:e=="uniqueId"?{attributeType:"uint",arrayConstructor:Uint32Array}:{attributeType:"float",arrayConstructor:Float32Array};return Object.assign(s,{numComponents:+(s.attributeType.match(/^vec([234])$/)?.[1]??1),discrete:n,hp:i,largeHp:r})}function im(t){return t=="index"||t=="locus"}function Rk(t){return t[1]>2**32}const Cf=2**12;function rm(t,e=[]){const n=t%Cf,i=(t-n)/Cf;return e[0]=i,e[1]=n,e}function Fk(t){const e=t%Cf;return[t-e,e]}function Nk(t){return[...Fk(t[0]),t[1]-t[0]]}function sm(t){const e=new Xt([],JSON.stringify);for(const[n,i]of Object.entries(t)){const r=i.channelDef;if(nn(r)){const o=[r.field,i.scale?(Le(i.scale.type)||Ci(i.scale.type))??!1:!1];e.set(o,[...e.get(o)??[],n])}}return e}function Ar(t){return wk+Me(t).toSorted().join("_")}function Mk(t){return t[0].toUpperCase()+t.slice(1)}const om=(t,e)=>Ka(t.type)||Le(t.type)&&Dn(e)?[0,1]:t.range?t.range():void 0;function Tk(t,e){if(t.length!=e.length)throw new Error("Unequal array lengths");const n=t.length;if(n==0)return"";if(n==1&&t[0]==null)return e[0];const i=[];for(let r=0;r<n;r++){const s=t[r],o=r==0?`if (${s})`:s==null&&r==n-1?"else":`else if (${s})`;i.push(` ${o} {
|
|
428
|
+
${e[r]}
|
|
429
|
+
}`)}return i.join(`
|
|
430
|
+
`)}function am(){let t=0,e,n=0;const i=new Map,r=s=>(s===e||(n=i.get(s),n===void 0&&(n=t++,i.set(s,n)),e=s),n);return r.addAll=s=>{for(const o of s)r(o)},r.invert=s=>{for(const o of i.entries())if(o[1]==s)return o[0]},r.domain=()=>[...i.keys()],r}class Ys{constructor({encoders:e,numVertices:n=void 0,attributes:i=[]}){this.encoders=e,this.variableEncoders=Object.fromEntries(Object.entries(e).filter(([s,o])=>i.includes(s)&&o&&!o.constant));const r=[...sm(e).entries()].filter(([s,o])=>s[1]&&o.length>1).map(([s,o])=>o);this.allocatedVertices=n,this.variableBuilder=new xD(n);for(const[s,o]of Object.entries(this.variableEncoders)){const a=o.dataAccessor;if(!a)continue;const l=r.find(C=>C.find(y=>y==s));if(l&&s!=l[0])continue;const c=a.asNumberAccessor(),u=o.scale,{largeHp:f,arrayConstructor:h,discrete:A,numComponents:d}=hr(u,s),g=[0,0];let m;if(u&&A)if("props"in u&&u.props.domainIndexer)m=u.props.domainIndexer;else if("domain"in u)m=am(),m.addAll(u.domain());else throw new Error("Missing domain indexer for discrete scale.");const p=m?C=>m(a(C)):f?C=>rm(c(C),g):c,w=Ar(l??s);this.variableBuilder.addConverter(w,{f:p,numComponents:d,arrayReference:f?g:void 0,targetArrayType:h})}this.lastOffset=0,this.rangeMap=new Xt([],JSON.stringify)}registerBatch(e){const n=this.lastOffset,i=this.variableBuilder.vertexCount,r=i-n;r&&this.rangeMap.set(e,{offset:n,count:r,xIndex:this.xIndexer?.getIndex()}),this.lastOffset=i}addBatches(e){for(const[n,i]of e)this.addBatch(n,i)}addBatch(e,n,i=0,r=n.length){this.prepareXIndexer(n,i,r);for(let s=i;s<r;s++){const o=n[s];this.variableBuilder.pushFromDatum(o),this.addToXIndex(o)}this.registerBatch(e)}prepareXIndexer(e,n=0,i=n+e.length){const r=()=>{this.addToXIndex=c=>{},this.xIndexer=void 0},s=this.encoders.x?.channelDef;if(!("buildIndex"in s)||!s.buildIndex||!e.length||i-n<0){r();return}const o=c=>c&&Le(c.scale?.type)&&c,a=o(this.variableEncoders.x),l=o(this.variableEncoders.x2);if(a&&!a.constant&&(!l||!l.constant)){const c=a.dataAccessor.asNumberAccessor(),u=l?l.dataAccessor.asNumberAccessor():c,f=[c(e[n]),u(e[i-1])];if(f[1]>f[0]){this.xIndexer=BD(50,f,c,u);let h=this.variableBuilder.vertexCount;this.addToXIndex=A=>{let d=this.variableBuilder.vertexCount;this.xIndexer(A,h,d),h=d}}else r()}else r()}addToXIndex(e){}toArrays(){return{arrays:this.variableBuilder.arrays,vertexCount:this.variableBuilder.vertexCount,allocatedVertices:this.allocatedVertices,rangeMap:this.rangeMap}}}class Pk extends Ys{constructor({encoders:e,attributes:n,numItems:i}){super({encoders:e,attributes:n,numVertices:i*6}),this.variableBuilder.configure();const r=this.variableBuilder.pushAll;this.pushAllSixTimes=i>500?new Function("pushAll",`return function unrolledPushAllSixTimes() {
|
|
423
431
|
pushAll(); pushAll(); pushAll(); pushAll(); pushAll(); pushAll();
|
|
424
|
-
};`)(
|
|
425
|
-
uniform View{mediump vec2 uViewOffset;mediump vec2 uViewScale;mediump vec2 uViewportSize;lowp float uDevicePixelRatio;lowp float uViewOpacity;bool uPickingEnabled;};/***Maps a coordinate on the unit scale to a normalized device coordinate.*(0,0)is at the bottom left corner.*/vec4 unitToNdc(vec2 coord){return vec4((coord*uViewScale+uViewOffset)*2.0-1.0,0.0,1.0);}vec4 unitToNdc(float x,float y){return unitToNdc(vec2(x,y));}vec4 pixelsToNdc(vec2 coord){return unitToNdc(coord/uViewportSize);}vec4 pixelsToNdc(float x,float y){return pixelsToNdc(vec2(x,y));}float linearstep(float edge0,float edge1,float x){return clamp((x-edge0)/(edge1-edge0),0.0,1.0);}bool
|
|
432
|
+
};`)(r):function(){r(),r(),r(),r(),r(),r()}}addBatch(e,n,i=0,r=n.length){if(!(r<=i)){this.prepareXIndexer(n,i,r);for(let s=i;s<r;s++){const o=n[s];this.variableBuilder.updateFromDatum(o),this.pushAllSixTimes(),this.addToXIndex(o)}this.registerBatch(e)}}}class Lk extends Ys{constructor({encoders:e,attributes:n,tessellationThreshold:i=1/0,visibleRange:r=[-1/0,1/0],numItems:s}){super({encoders:e,attributes:n,numVertices:i==1/0?s*6:void 0}),this.visibleRange=r,this.tessellationThreshold=i||1/0,this.updateSide=this.variableBuilder.createUpdater("side",1),this.updatePos=this.variableBuilder.createUpdater("pos",1),this.variableBuilder.configure()}addBatch(e,n,i=0,r=n.length){this.prepareXIndexer(n,i,r);for(let s=i;s<r;s++){const o=n[s];this.variableBuilder.updateFromDatum(o),this.updateSide(-.5),this.updatePos(0),this.variableBuilder.pushAll();const a=1;for(let l=0;l<=a;l++)this.updatePos(l/a),this.updateSide(-.5),this.variableBuilder.pushAll(),this.updateSide(.5),this.variableBuilder.pushAll();this.variableBuilder.pushAll(),this.addToXIndex(o)}this.registerBatch(e)}}class Ok extends Ys{constructor({encoders:e,attributes:n,numItems:i=void 0}){super({encoders:e,attributes:n,numVertices:i}),this.variableBuilder.configure()}}class Uk extends Ys{constructor({encoders:e,attributes:n,numItems:i=void 0}){super({encoders:e,attributes:n,numVertices:i}),this.variableBuilder.configure()}toArrays(){const e=this.variableBuilder.arrays;for(let n of Object.values(e))n.divisor=1;return super.toArrays()}}class _k extends Ys{constructor({encoders:e,attributes:n,fontMetrics:i,properties:r,numCharacters:s=void 0}){super({encoders:e,attributes:n,numVertices:s*6}),this.metadata=i,this.metrics=i,this.properties=r;const a=e.text.channelDef;this.numberFormat=!ht(a)&&"format"in a&&a.format?He(a.format):l=>l,this.updateVertexCoord=this.variableBuilder.createUpdater("vertexCoord",2),this.updateTextureCoord=this.variableBuilder.createUpdater("textureCoord",2),this.updateWidth=this.variableBuilder.createUpdater("width",1),this.variableBuilder.configure()}addBatch(e,n,i=0,r=n.length){const s=this.properties.align||"left",o=this.properties.logoLetters??!1,a=this.metadata.common.base,l=this.metadata.common.scaleH;let c=-rr;switch(this.properties.baseline){case"top":c+=this.metrics.capHeight;break;case"middle":c+=this.metrics.capHeight/2;break;case"bottom":c-=this.metrics.descent;break}const u=this.encoders.text,f=[0,0];this.updateVertexCoord(f);const h=[0,0];this.updateTextureCoord(h),this.prepareXIndexer(n,i,r);for(let A=i;A<r;A++){const d=n[A],g=this.numberFormat(u(d)),m=le(g)?g:g===null?"":""+g;if(m.length==0)continue;this.variableBuilder.updateFromDatum(d);const p=o?m.length:this.metrics.measureWidth(m);this.updateWidth(p);let w=s=="right"?-p:s=="center"?-p/2:0;if(!o){const x=this.metrics.getCharByCode(m.charCodeAt(0));w-=(x.width-x.xadvance)/a/2}let C=-.5,y=1,I=1;for(let x=0;x<m.length;x++){const E=this.metrics.getCharByCode(m.charCodeAt(x)),S=o?1:E.xadvance/a;if(E.id==32){w+=S;continue}o?(I=(E.width+rr*2)/E.width,w=-I/2,y=(E.height+rr*2)/E.height,C=-.5-rr/E.height):(y=E.height/a,C=-(E.height+E.yoffset+c)/a,I=E.width/a);const D=E.x,B=E.y;f[0]=w,f[1]=C+y,h[0]=D/l,h[1]=B/l,this.variableBuilder.pushAll(),f[0]=w+I,f[1]=C+y,h[0]=(D+E.width)/l,h[1]=B/l,this.variableBuilder.pushAll(),f[0]=w,f[1]=C,h[0]=D/l,h[1]=(B+E.height)/l,this.variableBuilder.pushAll(),f[0]=w+I,f[1]=C+y,h[0]=(D+E.width)/l,h[1]=B/l,this.variableBuilder.pushAll(),f[0]=w,f[1]=C,h[0]=D/l,h[1]=(B+E.height)/l,this.variableBuilder.pushAll(),f[0]=w+I,f[1]=C,h[0]=(D+E.width)/l,h[1]=(B+E.height)/l,this.variableBuilder.pushAll(),w+=S}this.addToXIndex(d)}this.registerBatch(e)}}const cm=`#define PI 3.141593
|
|
433
|
+
uniform View{mediump vec2 uViewOffset;mediump vec2 uViewScale;mediump vec2 uViewportSize;lowp float uDevicePixelRatio;lowp float uViewOpacity;bool uPickingEnabled;};/***Maps a coordinate on the unit scale to a normalized device coordinate.*(0,0)is at the bottom left corner.*/vec4 unitToNdc(vec2 coord){return vec4((coord*uViewScale+uViewOffset)*2.0-1.0,0.0,1.0);}vec4 unitToNdc(float x,float y){return unitToNdc(vec2(x,y));}vec4 pixelsToNdc(vec2 coord){return unitToNdc(coord/uViewportSize);}vec4 pixelsToNdc(float x,float y){return pixelsToNdc(vec2(x,y));}float linearstep(float edge0,float edge1,float x){return clamp((x-edge0)/(edge1-edge0),0.0,1.0);}const highp uint HASH_EMPTY_KEY=0xffffffffu;highp uint hash32(highp uint key){highp uint v=key;v ^=v>>16u;v*=0x7feb352du;v ^=v>>15u;v*=0x846ca68bu;v ^=v>>16u;return v;}bool isEmptyHashTexture(highp usampler2D s){ivec2 texSize=textureSize(s,0);return texSize.x==1&&texSize.y==1&&texelFetch(s,ivec2(0,0),0).r==HASH_EMPTY_KEY;}bool hashContainsTexture(highp usampler2D s,highp uint value){ivec2 texSize=textureSize(s,0);highp uint width=uint(texSize.x);highp uint size=width*uint(texSize.y);highp uint mask=size-1u;highp uint index=hash32(value)&mask;for(highp uint probe=0u;probe<size;probe+=1u){ivec2 coord=ivec2(int(index % width),int(index/width));highp uint entry=texelFetch(s,coord,0).r;if(entry==value){return true;}if(entry==HASH_EMPTY_KEY){return false;}index=(index+1u)&mask;}return false;}/***Calculates a gamma for antialiasing opacity based on the color.*/float getGammaForColor(vec3 rgb){return mix(1.25,0.75,smoothstep(0.0,1.0,dot(rgb,vec3(0.299,0.587,0.114))));}/***Specialized linearstep for doing antialiasing*/float distanceToRatio(float d){return clamp(d*uDevicePixelRatio+0.5,0.0,1.0);}vec4 distanceToColor(float d,vec4 fill,vec4 stroke,vec4 background,float halfStrokeWidth){if(halfStrokeWidth>0.0){float sd=abs(d)-halfStrokeWidth;return mix(stroke,d<=0.0 ? fill : background,distanceToRatio(sd));}else{return mix(background,fill,distanceToRatio(-d));}}`,zk="uniform highp float uZero;vec3 getDiscreteColor(sampler2D s,int index){return texelFetch(s,ivec2(index % textureSize(s,0).x,0),0).rgb;}vec3 getInterpolatedColor(sampler2D s,float unitValue){return texture(s,vec2(unitValue,0.0)).rgb;}float clampToRange(float value,vec2 range){return clamp(value,min(range[0],range[1]),max(range[0],range[1]));}float scaleIdentity(float value){return value;}float scaleIdentity(uint value){return float(value);}float scaleLinear(float value,vec2 domain,vec2 range){float domainSpan=domain[1]-domain[0];float rangeSpan=range[1]-range[0];return(value-domain[0])/domainSpan*rangeSpan+range[0];}float scaleLog(float value,vec2 domain,vec2 range,float base){return scaleLinear(log(value)/log(base),log(domain)/log(base),range);}float symlog(float value,float constant){return sign(value)*log(abs(value/constant)+1.0);}float scaleSymlog(float value,vec2 domain,vec2 range,float constant){return scaleLinear(symlog(value,constant),vec2(symlog(domain[0],constant),symlog(domain[1],constant)),range);}float scalePow(float value,vec2 domain,vec2 range,float exponent){return scaleLinear(pow(abs(value),exponent)*sign(value),pow(abs(domain),vec2(exponent))*sign(domain),range);}float scaleBand(uint value,vec2 domainExtent,vec2 range,float paddingInner,float paddingOuter,float align,float band){float start=range[0];float stop=range[1];float rangeSpan=stop-start;float n=domainExtent[1]-domainExtent[0];paddingInner=int(n)>1 ? paddingInner : 0.0;float step=rangeSpan/max(1.0,n-paddingInner+paddingOuter*2.0);start+=(rangeSpan-step*(n-paddingInner))*align;float bandwidth=step*(1.0-paddingInner);return start+(float(value)-domainExtent[0])*step+bandwidth*band;}const int lowBits=12;const float lowDivisor=pow(2.0,float(lowBits));const uint lowMask=uint(lowDivisor-1.0);vec2 splitUint(uint value){uint valueLo=value&lowMask;uint valueHi=value-valueLo;return vec2(float(valueHi),float(valueLo));}/***High precision variant of scaleBand for index/locus scales*/float scaleBandHp(uint value,vec3 domainExtent,vec2 range,float paddingInner,float paddingOuter,float align,float band){float start=range[0];float stop=range[1];float rangeSpan=stop-start;vec2 domainStart=domainExtent.xy;float n=domainExtent[2];float step=rangeSpan/max(1.0,n-paddingInner+paddingOuter*2.0);start+=(rangeSpan-step*(n-paddingInner))*align;float bandwidth=step*(1.0-paddingInner);vec2 splitValue=splitUint(value);float inf=1.0/uZero;float hi=max(splitValue[0]-domainStart[0],-inf);float lo=max(splitValue[1]-domainStart[1],-inf);return dot(vec4(start,hi,lo,bandwidth),vec4(1.0,step,step,band));}/***High precision variant of scaleBand for index/locus scales for large*domains where 32bit uints are not sufficient to represent the domain.*/float scaleBandHp(uvec2 value,vec3 domainExtent,vec2 range,float paddingInner,float paddingOuter,float align,float band){float start=range[0];float stop=range[1];float rangeSpan=stop-start;vec2 domainStart=domainExtent.xy;float n=domainExtent[2];float step=rangeSpan/max(1.0,n-paddingInner+paddingOuter*2.0);start+=(rangeSpan-step*(n-paddingInner))*align;float bandwidth=step*(1.0-paddingInner);vec2 splitValue=vec2(float(value[0])*lowDivisor,float(value[1]));float inf=1.0/uZero;float hi=max(splitValue[0]-domainStart[0],-inf);float lo=max(splitValue[1]-domainStart[1],-inf);return dot(vec4(start,hi,lo,bandwidth),vec4(1.0,step,step,band));}",Gk=`/***Describes where a sample facet should be shown. Interpolating between the*current and target positions/heights allows for transitioning between facet*configurations.*/struct SampleFacetPosition{float pos;float height;float targetPos;float targetHeight;};/***Trasition fraction[0,1]between the current and target configurations.*/uniform float uTransitionOffset;
|
|
426
434
|
#if !defined(SAMPLE_FACET_UNIFORM) && !defined(SAMPLE_FACET_TEXTURE)
|
|
427
435
|
SampleFacetPosition getSampleFacetPos(){return SampleFacetPosition(0.0,1.0,0.0,1.0);}
|
|
428
436
|
#elif defined(SAMPLE_FACET_UNIFORM)
|
|
@@ -430,37 +438,37 @@ SampleFacetPosition getSampleFacetPos(){return SampleFacetPosition(0.0,1.0,0.0,1
|
|
|
430
438
|
#elif defined(SAMPLE_FACET_TEXTURE)
|
|
431
439
|
uniform sampler2D uSampleFacetTexture;SampleFacetPosition getSampleFacetPos(){vec4 texel=texelFetch(uSampleFacetTexture,ivec2(int(attr_facetIndex),0),0);return SampleFacetPosition(1.0-texel.r-texel.g,texel.g,1.0-texel.r-texel.g,texel.g);}
|
|
432
440
|
#endif
|
|
433
|
-
bool isFacetedSamples(SampleFacetPosition facetPos){return facetPos!=SampleFacetPosition(0.0,1.0,0.0,1.0);}bool isFacetedSamples(){return isFacetedSamples(getSampleFacetPos());}bool isInTransit(){return uTransitionOffset>0.0;}float getTransitionFraction(float xPos){return smoothstep(0.0,0.7+uTransitionOffset,(xPos-uTransitionOffset)*2.0);}vec2 applySampleFacet(vec2 pos){SampleFacetPosition facetPos=getSampleFacetPos();if(!isFacetedSamples(facetPos)){return pos;}else if(isInTransit()){vec2 interpolated=mix(vec2(facetPos.pos,facetPos.height),vec2(facetPos.targetPos,facetPos.targetHeight),getTransitionFraction(pos.x));return vec2(pos.x,interpolated[0]+pos.y*interpolated[1]);}else{return vec2(pos.x,facetPos.pos+pos.y*facetPos.height);}}float getSampleFacetHeight(vec2 pos){SampleFacetPosition facetPos=getSampleFacetPos();if(!isFacetedSamples(facetPos)){return 1.0;}else if(isInTransit()){return mix(facetPos.height,facetPos.targetHeight,getTransitionFraction(pos.x));}else{return facetPos.height;}}`,
|
|
441
|
+
bool isFacetedSamples(SampleFacetPosition facetPos){return facetPos!=SampleFacetPosition(0.0,1.0,0.0,1.0);}bool isFacetedSamples(){return isFacetedSamples(getSampleFacetPos());}bool isInTransit(){return uTransitionOffset>0.0;}float getTransitionFraction(float xPos){return smoothstep(0.0,0.7+uTransitionOffset,(xPos-uTransitionOffset)*2.0);}vec2 applySampleFacet(vec2 pos){SampleFacetPosition facetPos=getSampleFacetPos();if(!isFacetedSamples(facetPos)){return pos;}else if(isInTransit()){vec2 interpolated=mix(vec2(facetPos.pos,facetPos.height),vec2(facetPos.targetPos,facetPos.targetHeight),getTransitionFraction(pos.x));return vec2(pos.x,interpolated[0]+pos.y*interpolated[1]);}else{return vec2(pos.x,facetPos.pos+pos.y*facetPos.height);}}float getSampleFacetHeight(vec2 pos){SampleFacetPosition facetPos=getSampleFacetPos();if(!isFacetedSamples(facetPos)){return 1.0;}else if(isInTransit()){return mix(facetPos.height,facetPos.targetHeight,getTransitionFraction(pos.x));}else{return facetPos.height;}}`,Hk=`/**Based on concepts presented at:*https:*https:*/out highp vec4 vPickingColor;/***Passes the unique id to the fragment shader as a color if picking is enabled.*Returns true if picking is enabled.*/bool setupPicking(){if(uPickingEnabled){
|
|
434
442
|
#ifdef uniqueId_DEFINED
|
|
435
443
|
uint id=attr_uniqueId;vPickingColor=vec4(ivec4(id>>0,id>>8,id>>16,id>>24)&0xFF)/float(0xFF);
|
|
436
444
|
#else
|
|
437
445
|
vPickingColor=vec4(1.0);
|
|
438
446
|
#endif
|
|
439
|
-
return true;}return false;}`,
|
|
440
|
-
return ${
|
|
441
|
-
}`)}}else if(
|
|
442
|
-
uniform highp usampler2D ${
|
|
443
|
-
return
|
|
444
|
-
}`),
|
|
445
|
-
return ${
|
|
446
|
-
}`)}}const d=(
|
|
447
|
+
return true;}return false;}`,Yk="in highp vec4 vPickingColor;",Xa=Symbol("cacheMap");function Za(t,e,n){let i=Js(t).get(e);return i===void 0&&(i=n(e),Js(t).set(e,i)),i}function bf(t,e){Js(t).delete(e)}function Vs(t,e){const n=Js(t);for(const i of n.keys())i.startsWith(e)&&n.delete(i);Js(t).delete(e)}function lm(t){t[Xa]=new Map}function Js(t){return t[Xa]||lm(t),t[Xa]}function um(...t){const e={get(n,i,r){for(const s of t){const a=s()[i];if(a!==void 0)return a}},has(n,i,r){for(const s of t){const o=s();if(i in o)return!0}return!1}};return new Proxy({},e)}function Vk(t){return le(t)||qe(t)||qr(t)}class Ye extends Error{constructor(e,n){super(e),this.name="ViewError",this.view=n}}const Jk="SAMPLE_FACET_UNIFORM",fm="SAMPLE_FACET_TEXTURE",hm="uSelectionTexture_";class qs{#e=[];constructor(e){this.unitView=e,this.encoders=void 0,this.bufferInfo=void 0,this.bytesPerElement=new Map,this.programInfo=void 0,this.vertexArrayInfo=void 0,this.viewUniformInfo=void 0,this.markUniformInfo=void 0,this.markUniformsAltered=!0,this.selectionTextureOps=[],this.rangeMap=new qk,this.defaultProperties={get clip(){return["x","y"].map(n=>e.getScaleResolution(n)).some(n=>n?.isZoomable()??!1)},xOffset:0,yOffset:0,minBufferSize:0},this.properties=um(typeof this.unitView.spec.mark=="object"?()=>this.unitView.spec.mark:()=>({}),()=>this.defaultProperties)}augmentDefaultProperties(e){Object.defineProperties(this.defaultProperties,Object.getOwnPropertyDescriptors(e))}get opaque(){return!1}get defaultHitTestMode(){return"intersects"}getAttributes(){throw new Error("Not implemented!")}getSupportedChannels(){return["sample","facetIndex","x","y","color","opacity","search","uniqueId"]}getDefaultEncoding(){const e={sample:void 0,uniqueId:void 0};return this.isPickingParticipant()&&(e.uniqueId={field:pt}),e}fixEncoding(e){return e}setupExprRefsNeedingGraphicsUpdate(e){const n=this.getSupportedChannels(),i={};for(const s of e){const o=this.properties[s];if(o&&Ee(o)){const a=this.unitView.paramRuntime.watchExpression(o.expr,()=>{this.updateGraphicsData(),this.unitView.context.animator.requestRender()});n.includes(s)||Object.defineProperty(i,s,{get(){return a()}})}}const r=this.properties;this.properties=um(()=>i,()=>r)}get encoding(){return Za(this,"encoding",()=>{const e=this.getDefaultEncoding(),n=this.unitView.getEncoding(),i=o=>{const a=this.properties[o];return Vk(a)||Ee(a)?{value:a}:void 0},r=Object.fromEntries(this.getSupportedChannels().map(o=>[o,i(o)]).filter(o=>ht(o[1]))),s=this.fixEncoding({...e,...r,...n});for(const o of Object.keys(s))this.getSupportedChannels().includes(o)||delete s[o];return s.x&&(s.x.buildIndex??=!0),s})}getContext(){return this.unitView.context}getType(){return this.unitView.getMarkType()}initializeData(){}initializeEncoders(){this.encoders=bv(this.unitView,this.encoding)}async initializeGraphics(){}updateGraphicsData(){}getSampleFacetMode(){if(this.encoders.facetIndex)return fm;if(this.unitView.getLayoutAncestors().find(e=>"samples"in e.spec))return Jk}createAndLinkShaders(e,n,i=[]){const r=this.getAttributes(),s=this.encoders,o=this.getSampleFacetMode();o&&i.push(`#define ${o}`);const a="// view: "+this.unitView.getPathString();let l=[];const c=new Set,u=sm(s),f=[],h=Object.values(s).flatMap(I=>I.accessors).map(I=>I.predicate).filter(I=>I.param),A=new Map;for(const I of h){const x=I.param,E=this.unitView.paramRuntime,S=E.findValue(x);if(!S)throw new Error(`Cannot infer selection type as the parameter "${x}" has no value. Please ensure that the parameter is properly defined!`);const D=Ar("uniqueId");if(c0(S)){if(!A.has(x)){A.set(x,"single");const B=Wa+Pt(x);f.push(" // Selection parameter"),f.push(` uniform highp uint ${B};`),this.#e.push(()=>{this.registerMarkUniformValue(B,{expr:x},k=>k.uniqueId??0)}),l.push(`bool ${Gs}${x}(bool empty) {
|
|
448
|
+
return ${Wa}${x} == ${D} || (empty && ${Wa}${x} == 0u);
|
|
449
|
+
}`)}}else if(jl(S)){if(!A.has(x)){A.set(x,"multi");const B=hm+Pt(x);l.push(`// Selection texture
|
|
450
|
+
uniform highp usampler2D ${B};`);const k=this.getContext().glHelper,F=k.selectionTextures;this.selectionTextureOps.push(()=>{const O=E.getValue(x),_=F.get(O);if(!_)throw new Error(`Bug: no selection texture found for "${x}"!`);hi(this.programInfo,{[B]:_})});const M=hm+x;l.push(`bool ${Gs}${x}(bool empty) {
|
|
451
|
+
return hashContainsTexture(${M}, ${D}) || (empty && isEmptyHashTexture(${M}));
|
|
452
|
+
}`),k.createSelectionTexture(S),E.watchExpression(x,()=>{const O=E.getValue(x);k.createSelectionTexture(O),this.getContext().animator.requestRender()})}}else if(Kl(S)&&!A.has(x)){A.set(x,"interval");const B=[],k=[];for(const F of Object.keys(S.intervals)){if(!["x","y"].includes(F))continue;const M=Wa+Pt(x)+`_${F}`,{attributeType:O}=hr(this.unitView.getScaleResolution(F).getScale(),F);f.push(" // Selection parameter"),f.push(` uniform highp ${O}[2] ${M};`),this.#e.push(()=>{this.registerMarkUniformValue(M,{expr:x},Y=>Y.intervals[F]??[1,0])});const _=Y=>{for(const[we,ze]of u.entries())if(we[1]&&ze.includes(Y))return Ar(ze);return Ar(Y)},H=_(F),G=M+"[0]",q=M+"[1]",Z=Vl(F);if(this.encoding[Z]){const Y=_(Z),we=this.defaultHitTestMode;if(we=="endpoints")B.push(`((${G} <= ${H} && ${H} <= ${q}) || (${G} <= ${Y} && ${Y} <= ${q}))`);else if(we=="encloses")B.push(`(${G} <= ${H} && ${Y} <= ${q})`);else if(we=="intersects")B.push(`(${G} <= ${Y} && ${H} <= ${q})`);else throw new Ye(`Unsupported hit test mode "${we}" for interval selection!`,this.unitView)}else B.push(`(${G} <= ${H} && ${H} <= ${q})`);k.push(`${G} > ${q}`)}l.push(`bool ${Gs}${x}(bool empty) {
|
|
453
|
+
return ${B.join(" && ")} || (empty && (${k.join(" || ")}));
|
|
454
|
+
}`)}}const d=(I,x,E,S)=>{const D=x.channelDef;if(ht(D))if(Ee(D.value)){const{uniformName:B,uniformGlsl:k,accessorGlsl:F,adjuster:M}=vk(I,E);l.push(F),f.push(k),this.#e.push(()=>{this.registerMarkUniformValue(B,D.value,M)})}else l.push(xk(I,E,D.value).accessorGlsl);else if(Ki(D)){const{uniformName:B,uniformGlsl:k,accessorGlsl:F}=Bk(I,S,E);f.push(k),l.push(F);const{largeHp:M,discrete:O}=hr(S,I),_=O&&"domain"in S?H=>S.domain().indexOf(H):M?rm:H=>+H;this.#e.push(()=>{this.registerMarkUniformValue(B,D.datum,_)})}else if(nn(D)){const B=u.get([D.field,!0]),{attributeGlsl:k,accessorGlsl:F}=Zp(I,S,E,B?.includes(I)?B:void 0);c.add(k),l.push(F)}else if(ji(D)){const{attributeGlsl:B,accessorGlsl:k}=Zp(I,S,E);c.add(B),l.push(k)}else throw new Ye(`Unsupported channel definition: ${JSON.stringify(D)}`,this.unitView)};for(const[I,x]of Object.entries(s)){if(!r.includes(I))continue;const{channelDef:E,accessors:S,scale:D}=x;for(let B=0;B<S.length;B++)d(I,S[B],B,D);if(D){const B=n0(E),k=B&&B.resolutionChannel||I,F=ca(k)?this.unitView.getScaleResolution(k):null,{glsl:M,domainUniform:O,domainUniformName:_,rangeUniform:H,rangeUniformName:G}=Sk(I,D,E);l.push(M),f.push(O),f.push(H),H&&this.#e.push(()=>{const q=this.createMarkUniformSetter(G),Z=()=>q(om(D,I));F.addEventListener("range",Z),Z()}),O&&this.#e.push(()=>{const q=this.createMarkUniformSetter(_),Z=()=>{const Y=cn(D.type)?[0,D.domain().length]:D.domain();q(im(D.type)?Nk(Y):Y)};F.addEventListener("domain",Z),Z()})}l.push(Dk(I,S))}const g=[...A.keys()].map(I=>`${Gs}${I}(false)`);l.push(`bool isPointSelected() {
|
|
447
455
|
`+(this.encoders.uniqueId&&g.length>0?` return ${g.join(" || ")};`:" return false;")+`
|
|
448
|
-
}`);const
|
|
449
|
-
precision highp int;`,
|
|
450
|
-
`));
|
|
451
|
-
`),...l,JQ,KQ,e],C=[p,a,...r,Ip,qQ,t],w=this.gl;this.programStatus=pQ(w,this.glHelper.compileShader(w.VERTEX_SHADER,y),this.glHelper.compileShader(w.FRAGMENT_SHADER,C))}finalizeGraphicsInitialization(){if(this.programInfo)return;if(!this.programStatus)throw new Error("No program status found! "+this.unitView.getPathString());const e=this.programStatus.getProgramErrors();if(e){e.detail&&console.warn(e.detail);const t=new Error("Cannot create shader program: "+e.message);throw t.view=this.unitView,t}this.programInfo=l3(this.gl,this.programStatus.program),delete this.programStatus,this.viewUniformInfo=S0(this.gl,this.programInfo,"View"),this.markUniformInfo=S0(this.gl,this.programInfo,"Mark"),this.gl.useProgram(this.programInfo.program),rr(this.programInfo,{uSampleFacet:[0,1,0,1],uTransitionOffset:0,uZero:0});for(const t of this.#e)t();this.#e=void 0}createMarkUniformSetter(e){const t=this.markUniformInfo.setters[e];if(!t)throw new Error(`Uniform "${e}" not found int the Mark block!`);return r=>{t(r),this.markUniformsAltered=!0,this.unitView.context.animator.requestRender()}}registerMarkUniformValue(e,t,r=i=>i){const i=this.createMarkUniformSetter(e),s=o=>{if(o==null)throw new Error(`Trying to set null/undefined value for uniform: ${e}${Ie(t)?`Expr: ${t.expr}`:""}`);i(o)};if(Ie(t)){let o;const a=()=>s(r(o(null)));o=this.unitView.paramRuntime.watchExpression(t.expr,a),a()}else s(r(t))}deleteGraphicsData(){const e=this.glHelper;if(!e){this.vertexArrayInfo=void 0,this.bufferInfo=void 0;return}const t=e.gl;if(this.vertexArrayInfo&&(this.gl.bindVertexArray(null),t.deleteVertexArray(this.vertexArrayInfo.vertexArrayObject),this.vertexArrayInfo=void 0),this.bufferInfo){for(let r=0;r<8;r++)t.disableVertexAttribArray(r);Object.values(this.bufferInfo.attribs).forEach(r=>this.gl.deleteBuffer(r.buffer)),this.bufferInfo.indices&&this.gl.deleteBuffer(this.bufferInfo.indices),this.bufferInfo=void 0}}dispose(){this.deleteGraphicsData()}updateBufferInfo(e){if(this.gl.bindVertexArray(null),this.bufferInfo&&e.vertexCount<=this.bufferInfo.allocatedVertices)for(const[t,r]of Object.entries(e.arrays))r.data&&Ex(this.gl,this.bufferInfo.attribs[t],r.data,0);else{this.deleteGraphicsData(),this.bufferInfo=Bx(this.gl,e.arrays,{numElements:e.vertexCount}),this.bufferInfo.allocatedVertices=e.allocatedVertices;for(const[t,r]of Object.entries(e.arrays))this.bytesPerElement.set(t,r.data.BYTES_PER_ELEMENT)}}get glHelper(){return this.getContext().glHelper}get gl(){return this.glHelper.gl}isReady(){return this.bufferInfo&&this.programInfo}isPickingParticipant(){if(this.properties.tooltip===null&&!this.unitView.paramRuntime.hasPointSelections())return!1;for(const e of this.unitView.getLayoutAncestors())if(!e.isPickingSupported())return!1;return!0}bindOrSetMarkUniformBlock(){this.markUniformsAltered?(D0(this.gl,this.programInfo,this.markUniformInfo),this.markUniformsAltered=!1):Q0(this.gl,this.programInfo,this.markUniformInfo)}prepareRender(e){const t=this.glHelper,r=this.gl,i=[];i.push(()=>{this.vertexArrayInfo||(this.vertexArrayInfo=Q3(this.gl,this.programInfo,this.bufferInfo)),r.useProgram(this.programInfo.program)});for(const[o,a]of Object.entries(this.encoders)){const l=t.rangeTextures.get(a.scale);l&&i.push(()=>rr(this.programInfo,{[Hu+o]:l}))}i.push(...this.selectionTextureOps),this.getSampleFacetMode()==xp&&i.push(()=>{let o;for(const a of this.unitView.getLayoutAncestors())if(o=a.getSampleFacetTexture(),o)break;if(!o)throw new Error("No facet texture available. This is bug.");rr(this.programInfo,{uSampleFacetTexture:o})});const s=(e.picking??!1)&&this.isPickingParticipant();return i.push(()=>ms(this.viewUniformInfo,{uViewOpacity:this.unitView.getEffectiveOpacity(),uPickingEnabled:s})),this.opaque||e.picking?i.push(()=>r.disable(r.BLEND)):i.push(()=>r.enable(r.BLEND)),i}prepareSampleFacetRendering(e){const t=e.sampleFacetRenderingOptions,r=this.programInfo.uniformSetters.uSampleFacet;if(t&&r){const i=t.pixelToUnit,s=t.locSize.location*i,o=t.locSize.size*i;if(s>1||s+o<0)return!1;this.gl.uniform4f(r.location,s,o,s,o)}return!0}render(e){}createRenderCallback(e,t){if(!this.bufferInfo)return()=>{};const r=this;let i;const s=this.unitView.getScaleResolution("x")?.getScale(),o=s&&Pe(s.type),a=["index","locus"].includes(s?.type)?-1:0,l=[0,0];i=f=>{if(o&&f.xIndex){const h=s.domain(),A=f.xIndex(h[0]+a,h[1],l),d=A[0],g=A[1]-d;g>0&&e(d,g)}else e(f.offset,f.count)};const c=this.rangeMap.get(void 0).count==0?t.facetId:void 0,u=this.rangeMap.get(c);return t.sampleFacetRenderingOptions?function(){u.count&&r.prepareSampleFacetRendering(t)&&i(u)}:function(){u.count&&i(u)}}setViewport(e,t,r,i){r=r.flatten();const s=this.gl,o=this.properties,a=.5,l=(o.xOffset??0)+a,c=(o.yOffset??0)+a;let u,f=r;if(o.clip!=="never"&&(o.clip||i)){let h=0,A=0,d;if(i){if(f=r.intersect(i).flatten(),!f.isDefined())return!1;d=[r.width/f.width,r.height/f.height],A=Math.max(0,r.y2-i.y2),h=Math.min(0,r.x-i.x)}else d=[1,1];const g=[f.x,e.height-f.y2,f.width,f.height].map(C=>C*t),p=g.map(C=>Math.floor(C)),m=g[0]-p[0],y=g[1]-p[1];s.viewport(...p),s.scissor(...p),s.enable(s.SCISSOR_TEST),u={uViewOffset:[(l+h+m/t)/f.width,-(c+A-y/t)/f.height],uViewScale:d}}else{if(!r.isDefined())return!1;s.viewport(0,0,e.width*t,e.height*t),s.disable(s.SCISSOR_TEST),u={uViewOffset:[(r.x+l)/e.width,(e.height-r.y-c-r.height)/e.height],uViewScale:[r.width/e.width,r.height/e.height]}}return ms(this.viewUniformInfo,{...u,uViewportSize:[r.width,r.height],uDevicePixelRatio:t}),D0(this.gl,this.programInfo,this.viewUniformInfo),!0}findDatumAt(e,t){}}class XQ extends qt{constructor(){super([],JSON.stringify)}get(e){let t=super.get(e);return t===void 0&&(t={offset:0,count:0,xIndex:void 0},super.set(e,t)),t}migrateEntries(e){for(const[t,r]of this.entries())e.has(t)||(r.offset=0,r.count=0,r.xIndex=void 0);for(const[t,r]of e.entries())Object.assign(this.get(t),r)}}function Yu(n,e){const t=yl(e);let r=n[e]&&{...n[e]},i=n[t]&&{...n[t]};if(!(ut(r)||ut(i))){if(r){if(!gt(n[e]))return;if(i){if(r.type!="quantitative"){const s=(1-(r.band||1))/2;r.band=s,i.band=-s}}else if(r.type=="quantitative")i={datum:0,domainInert:!0};else{i={...r};const s=(1-(r.band??1))/2;r.band=0+s,i.band=1-s}}else r={value:0},i={value:1};n[e]=r,n[t]=i}}function Oa(n,e){const t=Ad(n);t&&(t.resolutionChannel=e)}function vp(n,e){n.stroke||(e?n.stroke={value:null}:(n.stroke=structuredClone(n.color),Oa(n.stroke,"color"))),ut(n.stroke)&&n.stroke.value===null&&(n.strokeWidth={value:0}),n.strokeOpacity||(n.strokeOpacity=structuredClone(n.opacity),Oa(n.strokeOpacity,"opacity"))}function Sp(n,e){ut(n.fill)&&n.fill.value===null?n.fillOpacity={value:0}:n.fill||(n.fill=structuredClone(n.color),Oa(n.fill,"color"),!e&&!n.fillOpacity&&(n.fillOpacity={value:0})),n.fillOpacity||(e?(n.fillOpacity=structuredClone(n.opacity),Oa(n.fillOpacity,"opacity")):n.fillOpacity={value:0})}const ZQ=["none","diagonal","antiDiagonal","cross","vertical","horizontal","grid","dots","rings","ringsLarge"];class $Q extends Ts{constructor(e){super(e),this.augmentDefaultProperties({x2:void 0,y2:void 0,filled:!0,color:"#4c78a8",opacity:1,strokeWidth:3,cornerRadius:0,minWidth:.5,minHeight:.5,minOpacity:1})}getAttributes(){return["uniqueId","facetIndex","x","x2","y","y2","fill","stroke","fillOpacity","strokeOpacity","strokeWidth"]}getSupportedChannels(){return[...super.getSupportedChannels(),"x2","y2","fill","stroke","fillOpacity","strokeOpacity","strokeWidth"]}get opaque(){return La(this,"opaque",()=>!this.#e()&&!this.#t()&&!this.properties.shadowOpacity&&ut(this.encoding.fillOpacity)&&this.encoding.fillOpacity.value==1&&this.properties.minOpacity==1)&&this.unitView.getEffectiveOpacity()==1}fixEncoding(e){return Yu(e,"x"),Yu(e,"y"),vp(e,this.properties.filled),Sp(e,this.properties.filled),delete e.color,delete e.opacity,e}#e(){const e=this.properties;return e.cornerRadius||e.cornerRadiusBottomLeft||e.cornerRadiusBottomRight||e.cornerRadiusTopLeft||e.cornerRadiusTopRight}#t(){const e=this.encoding.strokeWidth;return!(ut(e)&&!e.value)||"condition"in e}async initializeGraphics(){await super.initializeGraphics();const e=[];this.#e()&&e.push("ROUNDED_CORNERS"),this.#t()&&e.push("STROKED"),this.properties.shadowOpacity&&e.push("SHADOW"),this.createAndLinkShaders(M3,N3,[T3,...e.map(t=>"#define "+t)])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const e=this.properties;this.registerMarkUniformValue("uMinWidth",e.minWidth),this.registerMarkUniformValue("uMinHeight",e.minHeight),this.registerMarkUniformValue("uMinOpacity",e.minOpacity),this.registerMarkUniformValue("uCornerRadiusTopRight",e.cornerRadiusTopRight??e.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusBottomRight",e.cornerRadiusBottomRight??e.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusTopLeft",e.cornerRadiusTopLeft??e.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusBottomLeft",e.cornerRadiusBottomLeft??e.cornerRadius??0),this.registerMarkUniformValue("uHatchPattern",e.hatch,t=>Math.max(0,ZQ.indexOf(t??"none"))),this.registerMarkUniformValue("uShadowBlur",e.shadowBlur??0),this.registerMarkUniformValue("uShadowOpacity",e.shadowOpacity??0),this.registerMarkUniformValue("uShadowOffsetX",e.shadowOffsetX??0),this.registerMarkUniformValue("uShadowOffsetY",e.shadowOffsetY??0),this.registerMarkUniformValue("uShadowColor",e.shadowColor??"black",zu)}updateGraphicsData(){const e=this.unitView.getCollector();if(!e){console.debug("No collector");return}const t=e.getItemCount(),r=new GQ({encoders:this.encoders,attributes:this.getAttributes(),numItems:t});r.addBatches(e.facetBatches);const i=r.toArrays();this.rangeMap.migrateEntries(i.rangeMap),this.updateBufferInfo(i)}prepareRender(e){const t=super.prepareRender(e);return t.push(()=>this.bindOrSetMarkUniformBlock()),t.push(()=>ir(this.gl,this.programInfo,this.vertexArrayInfo)),t}render(e){const t=this.gl;return this.createRenderCallback((r,i)=>{pa(t,this.vertexArrayInfo,t.TRIANGLE_STRIP,i,r)},e)}findDatumAt(e,t){e=Me(e);const r=this.unitView.getCollector().facetBatches.get(e);if(!r)return;const i=this.encoders,s=i.x.scale.type;if(rn(s)){const o=i.x.dataAccessor;return r.find(a=>t==o(a))}else{const o=i.x.dataAccessor,a=i.x2.dataAccessor;return r.find(l=>t>=o(l)&&t<a(l))}}}const eD=`flat out float vRadius;flat out float vRadiusWithPadding;flat out lowp vec4 vFillColor;flat out lowp vec4 vStrokeColor;flat out lowp float vShape;flat out lowp float vHalfStrokeWidth;flat out mat2 vRotationMatrix;const float CIRCLE=0.0;const float SQUARE=1.0;const float CROSS=2.0;const float DIAMOND=3.0;const float TRIANGLE_UP=4.0;const float TRIANGLE_RIGHT=5.0;const float TRIANGLE_DOWN=6.0;const float TRIANGLE_LEFT=7.0;const float TICK_UP=8.0;const float TICK_RIGHT=9.0;const float TICK_DOWN=10.0;const float TICK_LEFT=11.0;float computeSemanticThresholdFactor(){return getScaled_semanticScore()>=uSemanticThreshold ? 1.0 : 0.0;}vec2 getDxDy(){
|
|
456
|
+
}`);const m=`precision highp float;
|
|
457
|
+
precision highp int;`,p=I=>I.replace("#pragma markUniforms",f.join(`
|
|
458
|
+
`));i=i.map(p),e=p(e),n=p(n);const w=[m,a,...i,cm,zk,[...c].join(`
|
|
459
|
+
`),...l,Gk,Hk,e],C=[m,a,...i,cm,Yk,n],y=this.gl;this.programStatus=hk(y,this.glHelper.compileShader(y.VERTEX_SHADER,w),this.glHelper.compileShader(y.FRAGMENT_SHADER,C))}finalizeGraphicsInitialization(){if(this.programInfo)return;if(!this.programStatus)throw new Error("No program status found! "+this.unitView.getPathString());const e=this.programStatus.getProgramErrors();if(e){e.detail&&console.warn(e.detail);const n=new Error("Cannot create shader program: "+e.message);throw n.view=this.unitView,n}this.programInfo=X3(this.gl,this.programStatus.program),delete this.programStatus,this.viewUniformInfo=dg(this.gl,this.programInfo,"View"),this.markUniformInfo=dg(this.gl,this.programInfo,"Mark"),this.gl.useProgram(this.programInfo.program),hi(this.programInfo,{uSampleFacet:[0,1,0,1],uTransitionOffset:0,uZero:0});for(const n of this.#e)n();this.#e=void 0}createMarkUniformSetter(e){const n=this.markUniformInfo.setters[e];if(!n)throw new Error(`Uniform "${e}" not found int the Mark block!`);return i=>{n(i),this.markUniformsAltered=!0,this.unitView.context.animator.requestRender()}}registerMarkUniformValue(e,n,i=r=>r){const r=this.createMarkUniformSetter(e),s=o=>{if(o==null)throw new Error(`Trying to set null/undefined value for uniform: ${e}${Ee(n)?`Expr: ${n.expr}`:""}`);r(o)};if(Ee(n)){let o;const a=()=>s(i(o(null)));o=this.unitView.paramRuntime.watchExpression(n.expr,a),a()}else s(i(n))}deleteGraphicsData(){const e=this.glHelper;if(!e){this.vertexArrayInfo=void 0,this.bufferInfo=void 0;return}const n=e.gl;if(this.vertexArrayInfo&&(this.gl.bindVertexArray(null),n.deleteVertexArray(this.vertexArrayInfo.vertexArrayObject),this.vertexArrayInfo=void 0),this.bufferInfo){for(let i=0;i<8;i++)n.disableVertexAttribArray(i);Object.values(this.bufferInfo.attribs).forEach(i=>this.gl.deleteBuffer(i.buffer)),this.bufferInfo.indices&&this.gl.deleteBuffer(this.bufferInfo.indices),this.bufferInfo=void 0}}dispose(){this.deleteGraphicsData()}updateBufferInfo(e){if(this.gl.bindVertexArray(null),this.bufferInfo&&e.vertexCount<=this.bufferInfo.allocatedVertices)for(const[n,i]of Object.entries(e.arrays))i.data&&uB(this.gl,this.bufferInfo.attribs[n],i.data,0);else{this.deleteGraphicsData(),this.bufferInfo=AB(this.gl,e.arrays,{numElements:e.vertexCount}),this.bufferInfo.allocatedVertices=e.allocatedVertices;for(const[n,i]of Object.entries(e.arrays))this.bytesPerElement.set(n,i.data.BYTES_PER_ELEMENT)}}get glHelper(){return this.getContext().glHelper}get gl(){return this.glHelper.gl}isReady(){return this.bufferInfo&&this.programInfo}isPickingParticipant(){if(this.properties.tooltip===null&&!this.unitView.paramRuntime.hasPointSelections())return!1;for(const e of this.unitView.getLayoutAncestors())if(!e.isPickingSupported())return!1;return!0}bindOrSetMarkUniformBlock(){this.markUniformsAltered?(pg(this.gl,this.programInfo,this.markUniformInfo),this.markUniformsAltered=!1):gg(this.gl,this.programInfo,this.markUniformInfo)}prepareRender(e){const n=this.glHelper,i=this.gl,r=[];r.push(()=>{this.vertexArrayInfo||(this.vertexArrayInfo=pD(this.gl,this.programInfo,this.bufferInfo)),i.useProgram(this.programInfo.program)});for(const[o,a]of Object.entries(this.encoders)){const l=n.rangeTextures.get(a.scale);l&&r.push(()=>hi(this.programInfo,{[yf+o]:l}))}r.push(...this.selectionTextureOps),this.getSampleFacetMode()==fm&&r.push(()=>{let o;for(const a of this.unitView.getLayoutAncestors())if(o=a.getSampleFacetTexture(),o)break;if(!o)throw new Error("No facet texture available. This is bug.");hi(this.programInfo,{uSampleFacetTexture:o})});const s=(e.picking??!1)&&this.isPickingParticipant();return r.push(()=>Qs(this.viewUniformInfo,{uViewOpacity:this.unitView.getEffectiveOpacity(),uPickingEnabled:s})),this.opaque||e.picking?r.push(()=>i.disable(i.BLEND)):r.push(()=>i.enable(i.BLEND)),r}prepareSampleFacetRendering(e){const n=e.sampleFacetRenderingOptions,i=this.programInfo.uniformSetters.uSampleFacet;if(n&&i){const r=n.pixelToUnit,s=n.locSize.location*r,o=n.locSize.size*r;if(s>1||s+o<0)return!1;this.gl.uniform4f(i.location,s,o,s,o)}return!0}render(e){}createRenderCallback(e,n){if(!this.bufferInfo)return()=>{};const i=this;let r;const s=this.unitView.getScaleResolution("x")?.getScale(),o=s&&Le(s.type),a=["index","locus"].includes(s?.type)?-1:0,l=[0,0];r=f=>{if(o&&f.xIndex){const h=s.domain(),A=f.xIndex(h[0]+a,h[1],l),d=A[0],g=A[1]-d;g>0&&e(d,g)}else e(f.offset,f.count)};const c=this.rangeMap.get(void 0).count==0?n.facetId:void 0,u=this.rangeMap.get(c);return n.sampleFacetRenderingOptions?function(){u.count&&i.prepareSampleFacetRendering(n)&&r(u)}:function(){u.count&&r(u)}}setViewport(e,n,i,r){i=i.flatten();const s=this.gl,o=this.properties,a=.5,l=(o.xOffset??0)+a,c=(o.yOffset??0)+a;let u,f=i;if(o.clip!=="never"&&(o.clip||r)){let h=0,A=0,d;if(r){if(f=i.intersect(r).flatten(),!f.isDefined())return!1;d=[i.width/f.width,i.height/f.height],A=Math.max(0,i.y2-r.y2),h=Math.min(0,i.x-r.x)}else d=[1,1];const g=[f.x,e.height-f.y2,f.width,f.height].map(C=>C*n),m=g.map(C=>Math.floor(C)),p=g[0]-m[0],w=g[1]-m[1];s.viewport(...m),s.scissor(...m),s.enable(s.SCISSOR_TEST),u={uViewOffset:[(l+h+p/n)/f.width,-(c+A-w/n)/f.height],uViewScale:d}}else{if(!i.isDefined())return!1;s.viewport(0,0,Math.round(e.width*n),Math.round(e.height*n)),s.disable(s.SCISSOR_TEST),u={uViewOffset:[(i.x+l)/e.width,(e.height-i.y-c-i.height)/e.height],uViewScale:[i.width/e.width,i.height/e.height]}}return Qs(this.viewUniformInfo,{...u,uViewportSize:[i.width,i.height],uDevicePixelRatio:n}),pg(this.gl,this.programInfo,this.viewUniformInfo),!0}findDatumAt(e,n){}}class qk extends Xt{constructor(){super([],JSON.stringify)}get(e){let n=super.get(e);return n===void 0&&(n={offset:0,count:0,xIndex:void 0},super.set(e,n)),n}migrateEntries(e){for(const[n,i]of this.entries())e.has(n)||(i.offset=0,i.count=0,i.xIndex=void 0);for(const[n,i]of e.entries())Object.assign(this.get(n),i)}}function Ef(t,e){const n=Vl(e);let i=t[e]&&{...t[e]},r=t[n]&&{...t[n]};if(!(ht(i)||ht(r))){if(i){if(!mt(t[e]))return;if(r){if(i.type!="quantitative"){const s=(1-(i.band||1))/2;i.band=s,r.band=-s}}else if(i.type=="quantitative")r={datum:0,domainInert:!0};else{r={...i};const s=(1-(i.band??1))/2;i.band=0+s,r.band=1-s}}else i={value:0},r={value:1};t[e]=i,t[n]=r}}function $a(t,e){const n=n0(t);n&&(n.resolutionChannel=e)}function Am(t,e){t.stroke||(e?t.stroke={value:null}:(t.stroke=structuredClone(t.color),$a(t.stroke,"color"))),ht(t.stroke)&&t.stroke.value===null&&(t.strokeWidth={value:0}),t.strokeOpacity||(t.strokeOpacity=structuredClone(t.opacity),$a(t.strokeOpacity,"opacity"))}function dm(t,e){ht(t.fill)&&t.fill.value===null?t.fillOpacity={value:0}:t.fill||(t.fill=structuredClone(t.color),$a(t.fill,"color"),!e&&!t.fillOpacity&&(t.fillOpacity={value:0})),t.fillOpacity||(e?(t.fillOpacity=structuredClone(t.opacity),$a(t.fillOpacity,"opacity")):t.fillOpacity={value:0})}const Kk=["none","diagonal","antiDiagonal","cross","vertical","horizontal","grid","dots","rings","ringsLarge"];class jk extends qs{constructor(e){super(e),this.augmentDefaultProperties({x2:void 0,y2:void 0,filled:!0,color:"#4c78a8",opacity:1,strokeWidth:3,cornerRadius:0,minWidth:.5,minHeight:.5,minOpacity:1})}getAttributes(){return["uniqueId","facetIndex","x","x2","y","y2","fill","stroke","fillOpacity","strokeOpacity","strokeWidth"]}getSupportedChannels(){return[...super.getSupportedChannels(),"x2","y2","fill","stroke","fillOpacity","strokeOpacity","strokeWidth"]}get opaque(){return Za(this,"opaque",()=>!this.#e()&&!this.#t()&&!this.properties.shadowOpacity&&ht(this.encoding.fillOpacity)&&this.encoding.fillOpacity.value==1&&this.properties.minOpacity==1)&&this.unitView.getEffectiveOpacity()==1}fixEncoding(e){return Ef(e,"x"),Ef(e,"y"),Am(e,this.properties.filled),dm(e,this.properties.filled),delete e.color,delete e.opacity,e}#e(){const e=this.properties;return e.cornerRadius||e.cornerRadiusBottomLeft||e.cornerRadiusBottomRight||e.cornerRadiusTopLeft||e.cornerRadiusTopRight}#t(){const e=this.encoding.strokeWidth;return!(ht(e)&&!e.value)||"condition"in e}async initializeGraphics(){await super.initializeGraphics();const e=[];this.#e()&&e.push("ROUNDED_CORNERS"),this.#t()&&e.push("STROKED"),this.properties.shadowOpacity&&e.push("SHADOW"),this.createAndLinkShaders(bD,ED,[ID,...e.map(n=>"#define "+n)])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const e=this.properties;this.registerMarkUniformValue("uMinWidth",e.minWidth),this.registerMarkUniformValue("uMinHeight",e.minHeight),this.registerMarkUniformValue("uMinOpacity",e.minOpacity),this.registerMarkUniformValue("uCornerRadiusTopRight",e.cornerRadiusTopRight??e.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusBottomRight",e.cornerRadiusBottomRight??e.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusTopLeft",e.cornerRadiusTopLeft??e.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusBottomLeft",e.cornerRadiusBottomLeft??e.cornerRadius??0),this.registerMarkUniformValue("uHatchPattern",e.hatch,n=>Math.max(0,Kk.indexOf(n??"none"))),this.registerMarkUniformValue("uShadowBlur",e.shadowBlur??0),this.registerMarkUniformValue("uShadowOpacity",e.shadowOpacity??0),this.registerMarkUniformValue("uShadowOffsetX",e.shadowOffsetX??0),this.registerMarkUniformValue("uShadowOffsetY",e.shadowOffsetY??0),this.registerMarkUniformValue("uShadowColor",e.shadowColor??"black",wf)}updateGraphicsData(){const e=this.unitView.getCollector();if(!e){console.debug("No collector");return}const n=e.getItemCount(),i=new Pk({encoders:this.encoders,attributes:this.getAttributes(),numItems:n});i.addBatches(e.facetBatches);const r=i.toArrays();this.rangeMap.migrateEntries(r.rangeMap),this.updateBufferInfo(r)}prepareRender(e){const n=super.prepareRender(e);return n.push(()=>this.bindOrSetMarkUniformBlock()),n.push(()=>Ai(this.gl,this.programInfo,this.vertexArrayInfo)),n}render(e){const n=this.gl;return this.createRenderCallback((i,r)=>{Ra(n,this.vertexArrayInfo,n.TRIANGLE_STRIP,r,i)},e)}findDatumAt(e,n){e=Me(e);const i=this.unitView.getCollector().facetBatches.get(e);if(!i)return;const r=this.encoders,s=r.x.scale.type;if(cn(s)){const o=r.x.dataAccessor;return i.find(a=>n==o(a))}else{const o=r.x.dataAccessor,a=r.x2.dataAccessor;return i.find(l=>n>=o(l)&&n<a(l))}}}const Wk=`flat out float vRadius;flat out float vRadiusWithPadding;flat out lowp vec4 vFillColor;flat out lowp vec4 vStrokeColor;flat out lowp float vShape;flat out lowp float vHalfStrokeWidth;flat out mat2 vRotationMatrix;const float CIRCLE=0.0;const float SQUARE=1.0;const float CROSS=2.0;const float DIAMOND=3.0;const float TRIANGLE_UP=4.0;const float TRIANGLE_RIGHT=5.0;const float TRIANGLE_DOWN=6.0;const float TRIANGLE_LEFT=7.0;const float TICK_UP=8.0;const float TICK_RIGHT=9.0;const float TICK_DOWN=10.0;const float TICK_LEFT=11.0;float computeSemanticThresholdFactor(){return getScaled_semanticScore()>=uSemanticThreshold ? 1.0 : 0.0;}vec2 getDxDy(){
|
|
452
460
|
#if defined(dx_DEFINED) || defined(dy_DEFINED)
|
|
453
461
|
return vec2(getScaled_dx(),getScaled_dy())/uViewportSize;
|
|
454
462
|
#else
|
|
455
463
|
return vec2(0.0,0.0);
|
|
456
464
|
#endif
|
|
457
|
-
}void main(void){float shapeAngle=0.0;float semanticThresholdFactor=isPointSelected()? 1.0: computeSemanticThresholdFactor();if(semanticThresholdFactor<=0.0){gl_PointSize=0.0;gl_Position=vec4(100.0,0.0,0.0,0.0);return;}float size=getScaled_size();vec2 pos=vec2(getScaled_x(),getScaled_y())+getDxDy();gl_Position=unitToNdc(applySampleFacet(pos));float strokeWidth=getScaled_strokeWidth();float diameter=sqrt(size)*uScaleFactor*semanticThresholdFactor;float opacity=uViewOpacity;if(strokeWidth<=0.0||uInwardStroke){float minDiameter=1.0/uDevicePixelRatio;if(diameter<minDiameter){opacity*=pow(diameter/minDiameter,2.5);diameter=minDiameter;}}float fillOpa=getScaled_fillOpacity()*opacity;float strokeOpa=getScaled_strokeOpacity()*opacity;vShape=getScaled_shape();bool circle=vShape==0.0;if(vShape>TICK_UP&&vShape<=TICK_LEFT){shapeAngle=(vShape-TICK_UP)*90.0;vShape=TICK_UP;}else if(vShape>TRIANGLE_UP&&vShape<=TRIANGLE_LEFT){shapeAngle=(vShape-TRIANGLE_UP)*90.0;vShape=TRIANGLE_UP;}float angleInDegrees=getScaled_angle();float angle=-(shapeAngle+angleInDegrees)*PI/180.0;float sinTheta=sin(angle);float cosTheta=cos(angle);vRotationMatrix=mat2(cosTheta,sinTheta,-sinTheta,cosTheta);float roomForRotation=circle ? 1.0 : sin(mod(angle,PI/2.0)+PI/4.0)/sin(PI/4.0);float aaPadding=1.0/uDevicePixelRatio;float rotationPadding=(diameter*roomForRotation)-diameter;float strokePadding=uInwardStroke ? 0.0 : strokeWidth*(circle ? 1.0 : sqrt(3.0));float padding=rotationPadding+strokePadding+aaPadding;gl_PointSize=max((diameter+padding),uPickingEnabled ? uMinPickingSize : 0.0)*uDevicePixelRatio;vRadius=diameter/2.0;vRadiusWithPadding=vRadius+padding/2.0;vHalfStrokeWidth=strokeWidth/2.0;vFillColor=vec4(getScaled_fill()*fillOpa,fillOpa);vStrokeColor=vec4(getScaled_stroke()*strokeOpa,strokeOpa);setupPicking();}`,
|
|
465
|
+
}void main(void){float shapeAngle=0.0;float semanticThresholdFactor=isPointSelected()? 1.0: computeSemanticThresholdFactor();if(semanticThresholdFactor<=0.0){gl_PointSize=0.0;gl_Position=vec4(100.0,0.0,0.0,0.0);return;}float size=getScaled_size();vec2 pos=vec2(getScaled_x(),getScaled_y())+getDxDy();gl_Position=unitToNdc(applySampleFacet(pos));float strokeWidth=getScaled_strokeWidth();float diameter=sqrt(size)*uScaleFactor*semanticThresholdFactor;float opacity=uViewOpacity;if(strokeWidth<=0.0||uInwardStroke){float minDiameter=1.0/uDevicePixelRatio;if(diameter<minDiameter){opacity*=pow(diameter/minDiameter,2.5);diameter=minDiameter;}}float fillOpa=getScaled_fillOpacity()*opacity;float strokeOpa=getScaled_strokeOpacity()*opacity;vShape=getScaled_shape();bool circle=vShape==0.0;if(vShape>TICK_UP&&vShape<=TICK_LEFT){shapeAngle=(vShape-TICK_UP)*90.0;vShape=TICK_UP;}else if(vShape>TRIANGLE_UP&&vShape<=TRIANGLE_LEFT){shapeAngle=(vShape-TRIANGLE_UP)*90.0;vShape=TRIANGLE_UP;}float angleInDegrees=getScaled_angle();float angle=-(shapeAngle+angleInDegrees)*PI/180.0;float sinTheta=sin(angle);float cosTheta=cos(angle);vRotationMatrix=mat2(cosTheta,sinTheta,-sinTheta,cosTheta);float roomForRotation=circle ? 1.0 : sin(mod(angle,PI/2.0)+PI/4.0)/sin(PI/4.0);float aaPadding=1.0/uDevicePixelRatio;float rotationPadding=(diameter*roomForRotation)-diameter;float strokePadding=uInwardStroke ? 0.0 : strokeWidth*(circle ? 1.0 : sqrt(3.0));float padding=rotationPadding+strokePadding+aaPadding;gl_PointSize=max((diameter+padding),uPickingEnabled ? uMinPickingSize : 0.0)*uDevicePixelRatio;vRadius=diameter/2.0;vRadiusWithPadding=vRadius+padding/2.0;vHalfStrokeWidth=strokeWidth/2.0;vFillColor=vec4(getScaled_fill()*fillOpa,fillOpa);vStrokeColor=vec4(getScaled_stroke()*strokeOpa,strokeOpa);setupPicking();}`,Xk="const lowp vec4 white=vec4(1.0);const lowp vec4 black=vec4(0.0,0.0,0.0,1.0);flat in float vRadius;flat in float vRadiusWithPadding;flat in lowp vec4 vFillColor;flat in lowp vec4 vStrokeColor;flat in lowp float vShape;flat in lowp float vHalfStrokeWidth;flat in mat2 vRotationMatrix;out lowp vec4 fragColor;const float CIRCLE=0.0;const float SQUARE=1.0;const float CROSS=2.0;const float DIAMOND=3.0;const float TRIANGLE_UP=4.0;const float TICK_UP=8.0;float circle(vec2 p,float r){return length(p)-r;}float square(vec2 p,float r){p=abs(p);return max(p.x,p.y)-r;}float tickUp(vec2 p,float r){float halfR=r*0.5;p.y+=halfR;p=abs(p);return max(p.x-r*0.15,p.y-halfR);}float equilateralTriangle(vec2 p,float r){p.y=-p.y;float k=sqrt(3.0);float kr=k*r;p.y-=kr/2.0;return max((abs(p.x)*k+p.y)/2.0,-p.y-kr);}float crossShape(vec2 p,float r){p=abs(p);vec2 b=vec2(0.4,1.0)*r;vec2 v=abs(p)-b.xy;vec2 h=abs(p)-b.yx;return min(max(v.x,v.y),max(h.x,h.y));}float diamond(vec2 p,float r){p=abs(p);return(max(abs(p.x-p.y),abs(p.x+p.y))-r)/sqrt(2.0);}void main(){float d;vec2 p=vRotationMatrix*(2.0*gl_PointCoord-1.0)*vRadiusWithPadding;float r=vRadius;if(vShape==CIRCLE){d=circle(p,r);}else if(vShape==SQUARE){d=square(p,r);}else if(vShape==CROSS){d=crossShape(p,r);}else if(vShape==DIAMOND){d=diamond(p,r);}else if(vShape==TRIANGLE_UP){d=equilateralTriangle(p,r);}else if(vShape==TICK_UP){d=tickUp(p,r);}else{d=0.0;}if(!uPickingEnabled){lowp vec4 fillColor=mix(vFillColor,white,-d*uGradientStrength/vRadius);fragColor=distanceToColor(d+(uInwardStroke ? vHalfStrokeWidth : 0.0),fillColor,vStrokeColor,vec4(0.0),vHalfStrokeWidth);}else if(d-vHalfStrokeWidth<=0.0){fragColor=vPickingColor;}else{discard;}}",Zk=`layout(std140)uniform Mark{/***The stroke should only grow inwards,e.g,the diameter/outline is not affected by the stroke width.*Thus,a point that has a zero size has no visible stroke. This allows strokes to be used with*geometric zoom,etc.*/uniform bool uInwardStroke;uniform float uMinPickingSize;uniform mediump float uScaleFactor;uniform mediump float uZoomLevel;uniform highp float uSemanticThreshold;uniform mediump float uGradientStrength;
|
|
458
466
|
#pragma markUniforms
|
|
459
|
-
};`;class
|
|
467
|
+
};`;class gm extends Qe{constructor(e){super(e),this.params=e,this.k=e.size||500,this.reset()}reset(){super.reset(),this.reservoir=[],this.W=void 0,this.ingester=this._initialIngester}_initialIngester(e){this.reservoir.push(e),this.reservoir.length==this.k&&(this.W=Math.exp(Math.log(Math.random())/this.k),this.i=this.k,this.next=this.i,this.ingester=this._finalIngester,this._setNextStop())}_finalIngester(e){++this.i==this.next&&(this.reservoir[Math.floor(Math.random()*this.k)]=e,this.W*=Math.exp(Math.log(Math.random())/this.k),this._setNextStop())}_setNextStop(){this.next+=Math.floor(Math.log(Math.random())/Math.log(1-this.W))+1}handle(e){this.ingester(e)}complete(){for(const e of this.reservoir)this._propagate(e);super.complete()}}function $k(t,e,n){const i=new gm({type:"sample",size:t});for(const r of e)i.handle(n(r));return i.complete(),i.reservoir}const e4={};class t4 extends qs{#e=()=>0;constructor(e){super(e),this.augmentDefaultProperties({x:.5,y:.5,color:"#4c78a8",filled:!0,opacity:1,size:100,semanticScore:0,shape:"circle",strokeWidth:2,fillGradientStrength:0,dx:0,dy:0,angle:0,sampleFacetPadding:.1,semanticZoomFraction:.02,minPickingSize:2});const n=this.properties.semanticZoomFraction;if(n!=null)if(Ee(n)){const i=this.unitView.paramRuntime.watchExpression(n.expr,()=>this.getContext().animator.requestRender());this.#e=i}else this.#e=()=>n;"geometricZoomBound"in this.properties&&console.warn('geometricZoomBound is deprecated. Use something like the following instead: "size": { "expr": "min(0.5 * pow(zoomLevel, 2), 200)" }.')}getAttributes(){return["uniqueId","facetIndex","x","y","size","semanticScore","shape","strokeWidth","dx","dy","fill","stroke","fillOpacity","strokeOpacity","angle"]}getSupportedChannels(){return[...super.getSupportedChannels(),"size","semanticScore","shape","strokeWidth","dx","dy","fill","stroke","fillOpacity","strokeOpacity","angle"]}getDefaultEncoding(){return{...super.getDefaultEncoding(),...e4}}fixEncoding(e){return Am(e,this.properties.filled),dm(e,this.properties.filled),delete e.color,delete e.opacity,e}initializeData(){super.initializeData();const e=this.encoders.semanticScore?.dataAccessor?.asNumberAccessor();e&&(this.sampledSemanticScores=Float32Array.from($k(1e4,this.unitView.getCollector().getData(),e)),this.sampledSemanticScores.sort((n,i)=>n-i))}async initializeGraphics(){await super.initializeGraphics(),this.createAndLinkShaders(Wk,Xk,[Zk])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const e=this.properties;this.registerMarkUniformValue("uInwardStroke",e.inwardStroke,n=>!!n),this.registerMarkUniformValue("uGradientStrength",e.fillGradientStrength),this.registerMarkUniformValue("uMinPickingSize",e.minPickingSize)}updateGraphicsData(){const e=this.unitView.getCollector();if(!e){console.debug("No collector");return}const n=e.getItemCount(),i=new Ok({encoders:this.encoders,attributes:this.getAttributes(),numItems:Math.max(n,this.properties.minBufferSize||0)});i.addBatches(e.facetBatches);const r=i.toArrays();this.rangeMap.migrateEntries(r.rangeMap),this.updateBufferInfo(r)}#t(){const e=Math.pow(2,this.properties.geometricZoomBound||0);return Math.pow(Math.min(1,this.unitView.getZoomLevel()/e),1/3)}getSemanticThreshold(){if(this.sampledSemanticScores){const e=Math.max(0,1-this.#e()*this.unitView.getZoomLevel());if(e<=0)return-1/0;if(e>=1)return 1/0;{const n=this.sampledSemanticScores;return ad(n,e)}}else return-1}prepareRender(e){const n=super.prepareRender(e);return n.push(()=>{Qs(this.markUniformInfo,{uScaleFactor:this.#t(),uSemanticThreshold:this.getSemanticThreshold()}),this.markUniformsAltered=!0}),n.push(()=>this.bindOrSetMarkUniformBlock()),n.push(()=>Ai(this.gl,this.programInfo,this.vertexArrayInfo)),n}render(e){const n=this.gl;return this.createRenderCallback((i,r)=>{r&&Ra(n,this.vertexArrayInfo,n.POINTS,r,i)},e)}}const n4="const int BUTT=0;const int SQUARE=1;const int ROUND=2;in float pos;in float side;flat out vec4 vColor;flat out float vSize;out float vNormalLengthInPixels;out highp vec2 vPosInPixels;void main(void){float pixelSize=1.0/uDevicePixelRatio;float size=getScaled_size();float opacity=getScaled_opacity()*uViewOpacity;if(size<pixelSize){opacity*=size/pixelSize;size=pixelSize;}vec2 a=applySampleFacet(vec2(getScaled_x(),getScaled_y()));vec2 b=applySampleFacet(vec2(getScaled_x2(),getScaled_y2()));vec2 tangent=b-a;float offset=0.0;float relativeDiff=0.0;if(uMinLength>0.0||uStrokeCap!=BUTT){float len=length(tangent*uViewportSize);float diff=max(0.0,uMinLength-len);if(uStrokeCap!=BUTT){diff+=size;}relativeDiff=diff/len;offset=relativeDiff*(pos-0.5);}vec2 p=pos<1.0? a+tangent*(pos+offset): b+tangent*offset;float aaPadding=pixelSize;vec2 normal=normalize(vec2(-tangent.y,tangent.x)/uViewportSize);p+=normal*side*(size+aaPadding)/uViewportSize;gl_Position=unitToNdc(p);vColor=vec4(getScaled_color()*opacity,opacity);vSize=size;vNormalLengthInPixels=side*(size+aaPadding);vPosInPixels=vec2(pos,(1.0-pos))*(1.0+relativeDiff)*length(tangent*uViewportSize)-vec2(uStrokeCap!=BUTT ? size/2.0 : 0.0);setupPicking();}",i4="const int BUTT=0;const int SQUARE=1;const int ROUND=2;uniform sampler2D uDashTexture;flat in vec4 vColor;flat in float vSize;in vec2 vPosInPixels;in float vNormalLengthInPixels;out lowp vec4 fragColor;void main(void){float dpr=uDevicePixelRatio;float distanceFromEnd=-min(vPosInPixels[0],vPosInPixels[1]);float distance;if(distanceFromEnd>0.0&&uStrokeCap==ROUND){distance=length(vec2(distanceFromEnd,vNormalLengthInPixels));}else{distance=abs(vNormalLengthInPixels);}float opacity=clamp(((vSize/2.0-distance)*dpr),-0.5,0.5)+0.5;if(uDashTextureSize>0.0){float pos=(vPosInPixels[0]+uStrokeDashOffset)*dpr;float floored=floor(pos);vec2 texelPositions=(floored+vec2(0.5,1.5))/dpr/uDashTextureSize;opacity*=mix(texture(uDashTexture,vec2(texelPositions[0],0)).r,texture(uDashTexture,vec2(texelPositions[1],0)).r,clamp((pos-floored),0.0,1.0));}fragColor=vColor*opacity;if(uPickingEnabled){fragColor=vPickingColor;}}",r4=`layout(std140)uniform Mark{uniform mediump float uMinLength;uniform mediump float uDashTextureSize;uniform lowp int uStrokeCap;uniform mediump float uStrokeDashOffset;
|
|
460
468
|
#pragma markUniforms
|
|
461
|
-
};`;class
|
|
469
|
+
};`;class s4 extends qs{constructor(e){super(e),this.dashTextureSize=0,this.augmentDefaultProperties({x2:void 0,y2:void 0,size:1,color:"black",opacity:1,minLength:0,strokeDash:null,strokeDashOffset:0,strokeCap:"butt"})}getAttributes(){return["uniqueId","facetIndex","x","x2","y","y2","size","color","opacity"]}getSupportedChannels(){return[...super.getSupportedChannels(),"x2","y2","size"]}fixEncoding(e){if(!(e.x&&e.y&&e.x2&&e.y2))if(e.x&&e.x2&&!e.y)e.y={value:.5},e.y2=e.y;else if(e.y&&e.y2&&!e.x)e.x={value:.5},e.x2=e.x;else if(e.x&&!e.y)e.y={value:0},e.y2={value:1},e.x2=e.x;else if(e.y&&!e.x)e.x={value:0},e.x2={value:1},e.y2=e.y;else if(e.x&&e.y&&e.y2)e.x2=e.x;else if(e.y&&e.x&&e.x2)e.y2=e.y;else if(e.y&&e.x)if(!e.x2&&mt(e.y)&&e.y.type=="quantitative")e.x2=e.x,e.y2={datum:0};else if(!e.y2&&mt(e.x)&&e.x.type=="quantitative")e.y2=e.y,e.x2={datum:0};else throw new Error("A bug!");else throw new Error("At a minimum, either the x or y channel must be defined in the rule mark's encoding: "+JSON.stringify(e));return e}async initializeGraphics(){await super.initializeGraphics();const e=this.gl,n=o4(this.properties.strokeDash);this.dashTexture=Ds(e,{level:0,mag:e.NEAREST,min:e.NEAREST,internalFormat:e.R8,format:e.RED,src:n,height:1}),this.dashTextureSize=n.length,this.createAndLinkShaders(n4,i4,[r4])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const e=this.properties;this.registerMarkUniformValue("uMinLength",e.minLength),this.registerMarkUniformValue("uStrokeCap",e.strokeCap??"butt",n=>["butt","square","round"].indexOf(n)),Qs(this.markUniformInfo,{uDashTextureSize:+this.dashTextureSize}),this.markUniformsAltered=!0}updateGraphicsData(){const e=this.unitView.getCollector();if(!e){console.debug("No collector");return}const n=e.getItemCount(),i=new Lk({encoders:this.encoders,attributes:this.getAttributes(),numItems:Math.max(n,this.properties.minBufferSize||0)});i.addBatches(e.facetBatches);const r=i.toArrays();this.rangeMap.migrateEntries(r.rangeMap),this.updateBufferInfo(r)}prepareRender(e){const n=super.prepareRender(e);return n.push(()=>this.bindOrSetMarkUniformBlock()),n.push(()=>hi(this.programInfo,{uDashTexture:this.dashTexture})),n.push(()=>Ai(this.gl,this.programInfo,this.vertexArrayInfo)),n}render(e){const n=this.gl;return this.createRenderCallback((i,r)=>Ra(n,this.vertexArrayInfo,n.TRIANGLE_STRIP,r,i),e)}}function o4(t){if(!t)return new Uint8Array(0);if(t.length==0||t.length%2||t.findIndex(s=>Math.round(s)!=s||s<1||s>1e3)>=0)throw new Error("Invalid stroke dash pattern: "+JSON.stringify(t));const e=t.reduce((s,o)=>s+o),n=new Uint8Array(e);let i=!0,r=0;for(let s of t){for(;s;)n[r++]=i&&255||0,s--;i=!i}return n}const a4="flat out vec4 vColor;flat out float vSize;out float vNormalLengthInPixels;flat out float vGamma;const int SHAPE_ARC=0;const int SHAPE_DOME=1;const int SHAPE_DIAGONAL=2;const int SHAPE_LINE=3;const int ORIENT_VERTICAL=0;const int ORIENT_HORIZONTAL=1;float distanceFromLine(vec2 pointOnLine1,vec2 pointOnLine2,vec2 point){vec2 a=point-pointOnLine1;vec2 b=pointOnLine2-pointOnLine1;vec2 proj=dot(a,b)/dot(b,b)*b;return length(a-proj);}bool isInsideViewport(vec2 point,float marginFactor){vec2 margin=uViewportSize*vec2(marginFactor);return point.x>=-margin.x&&point.x<=uViewportSize.x+margin.x&&point.y>=-margin.y&&point.y<=uViewportSize.y+margin.y;}void main(void){float pixelSize=1.0/uDevicePixelRatio;float opacity=getScaled_opacity()*uViewOpacity;vec2 p1,p2,p3,p4;vec2 a=applySampleFacet(vec2(getScaled_x(),getScaled_y()))*uViewportSize;vec2 b=applySampleFacet(vec2(getScaled_x2(),getScaled_y2()))*uViewportSize;if(uShape<=SHAPE_DOME){if(uShape==SHAPE_DOME){vec2 height=vec2(0.0);if(uOrient==ORIENT_VERTICAL){p1=vec2(min(a.x,b.x),b.y);p4=vec2(max(a.x,b.x),b.y);height=vec2(0.0,a.y-b.y);if(uClampApex){if(p4.x>0.0){p1.x=max(p1.x,-p4.x);}if(p1.x<uViewportSize.x){p4.x=min(p4.x,2.0*uViewportSize.x-p1.x);}}}else{p1=vec2(b.x,min(a.y,b.y));p4=vec2(b.x,max(a.y,b.y));height=vec2(a.x-b.x,0.0);if(uClampApex){if(p4.y>0.0){p1.y=max(p1.y,-p4.y);}if(p1.y<uViewportSize.y){p4.y=min(p4.y,2.0*uViewportSize.y-p1.y);}}}vec2 controlOffset=height/0.75;p2=p1+controlOffset;p3=p4+controlOffset;}if(uShape==SHAPE_ARC){p1=a;p4=b;vec2 chordVector=p4-p1;vec2 unitChordVector=normalize(chordVector);vec2 chordNormal=vec2(-unitChordVector.y,unitChordVector.x);float chordLength=length(chordVector);if(chordLength>uMaxChordLength){if(isInsideViewport(p1,2.0)){chordLength=uMaxChordLength;p4=p1+unitChordVector*uMaxChordLength;}else if(isInsideViewport(p4,2.0)){chordLength=uMaxChordLength;p1=p4-unitChordVector*uMaxChordLength;}}float height=max(chordLength/2.0*uArcHeightFactor,uMinArcHeight);vec2 controlOffset=chordNormal*height/0.75;p2=p1+controlOffset;p3=p4+controlOffset;}}else if(uShape==SHAPE_DIAGONAL){if(uOrient==ORIENT_VERTICAL){p1=a;p2=vec2(a.x,(a.y+b.y)/2.0);p3=vec2(b.x,(a.y+b.y)/2.0);p4=b;}else{p1=a;p2=vec2((a.x+b.x)/2.0,a.y);p3=vec2((a.x+b.x)/2.0,b.y);p4=b;}}else if(uShape==SHAPE_LINE){p1=a;p2=(a+b)/2.0;p3=p2;p4=b;}vec2 strip=vec2(float(gl_VertexID/2)/float(uSegmentBreaks),float(gl_VertexID % 2)-0.5);float t=smoothstep(0.0,1.0,strip.x);vec2 C1=p4-3.0*p3+3.0*p2-p1;vec2 C2=3.0*p3-6.0*p2+3.0*p1;vec2 C3=3.0*p2-3.0*p1;vec2 C4=p1;vec2 p;if(t==0.0){p=p1;}else if(t==1.0){p=p4;}else{p=C1*t*t*t+C2*t*t+C3*t+C4;}vec2 tangent=normalize(3.0*C1*t*t+2.0*C2*t+C3);vec2 normal=vec2(-tangent.y,tangent.x);float size=getScaled_size();if(size<pixelSize){opacity*=size/pixelSize;size=pixelSize;}float paddedSize=uPickingEnabled? max(size,uMinPickingSize): size+pixelSize;vNormalLengthInPixels=strip.y*paddedSize;if(uShape==SHAPE_ARC&&uArcFadingDistance[0]>0.0&&uArcFadingDistance[1]>0.0&&(!uNoFadingOnPointSelection||!isPointSelected())){float d=distanceFromLine(p1,p4,p);float distanceOpacity=smoothstep(uArcFadingDistance[1],uArcFadingDistance[0],d);opacity*=distanceOpacity;if(distanceOpacity<=0.0){vNormalLengthInPixels=0.0;}}p+=normal*vNormalLengthInPixels;gl_Position=pixelsToNdc(p);vec3 color=getScaled_color();vColor=vec4(color*opacity,opacity);vGamma=getGammaForColor(color);vSize=paddedSize;setupPicking();}",c4="flat in vec4 vColor;flat in float vSize;in float vNormalLengthInPixels;flat in float vGamma;out lowp vec4 fragColor;void main(void){float dpr=uDevicePixelRatio;float distance=abs(vNormalLengthInPixels);float opacity=clamp(((vSize/2.0-distance)*dpr),0.0,1.0);opacity=pow(opacity,vGamma);fragColor=vColor*opacity;if(uPickingEnabled){fragColor=vPickingColor;}}",l4=`layout(std140)uniform Mark{uniform float uArcHeightFactor;uniform float uMinArcHeight;uniform float uMinPickingSize;uniform int uShape;uniform int uOrient;uniform bool uClampApex;uniform float uMaxChordLength;uniform vec2 uArcFadingDistance;uniform bool uNoFadingOnPointSelection;uniform int uSegmentBreaks;
|
|
462
470
|
#pragma markUniforms
|
|
463
|
-
};`,
|
|
471
|
+
};`,u4=["arc","dome","diagonal","line"],f4=["vertical","horizontal"];class h4 extends qs{constructor(e){super(e),this.augmentDefaultProperties({x:0,x2:void 0,y:0,y2:void 0,size:1,color:"black",opacity:1,segments:101,arcHeightFactor:1,minArcHeight:1.5,minPickingSize:3,clampApex:!1,maxChordLength:5e4,arcFadingDistance:!1,noFadingOnPointSelection:!0,linkShape:"arc",orient:"vertical"}),this._baseInstanceExt=void 0}get defaultHitTestMode(){return"endpoints"}getAttributes(){return["uniqueId","facetIndex","x","x2","y","y2","size","color","opacity"]}getSupportedChannels(){return[...super.getSupportedChannels(),"x2","y2","size"]}fixEncoding(e){return e.x2||(mt(e.x)?e.x2={datum:0}:e.x2=e.x),e.y2||(mt(e.y)?e.y2={datum:0}:e.y2=e.y),e}async initializeGraphics(){await super.initializeGraphics(),this._baseInstanceExt=this.gl.getExtension("WEBGL_draw_instanced_base_vertex_base_instance"),this.createAndLinkShaders(a4,c4,[l4])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const e=this.properties;this.registerMarkUniformValue("uArcFadingDistance",e.arcFadingDistance,n=>n||[0,0]),this.registerMarkUniformValue("uArcHeightFactor",e.arcHeightFactor),this.registerMarkUniformValue("uMinArcHeight",e.minArcHeight),this.registerMarkUniformValue("uMinPickingSize",e.minPickingSize),this.registerMarkUniformValue("uShape",e.linkShape,n=>u4.indexOf(n)),this.registerMarkUniformValue("uOrient",e.orient,n=>f4.indexOf(n)),this.registerMarkUniformValue("uClampApex",e.clampApex,n=>!!n),this.registerMarkUniformValue("uMaxChordLength",e.maxChordLength),this.registerMarkUniformValue("uSegmentBreaks",e.segments,n=>n),this.registerMarkUniformValue("uNoFadingOnPointSelection",e.noFadingOnPointSelection,n=>!!n)}updateGraphicsData(){const e=this.unitView.getCollector();if(!e){console.debug("No collector");return}const n=e.getItemCount(),i=new Uk({encoders:this.encoders,attributes:this.getAttributes(),numItems:n});i.addBatches(e.facetBatches);const r=i.toArrays();this.rangeMap.migrateEntries(r.rangeMap),this.arrays=Object.fromEntries(Object.entries(r.arrays).map(([s,o])=>[s,{...o,data:void 0}])),this.updateBufferInfo(r)}prepareRender(e){const n=super.prepareRender(e);return n.push(()=>this.bindOrSetMarkUniformBlock()),this._baseInstanceExt?n.push(()=>Ai(this.gl,this.programInfo,this.vertexArrayInfo)):n.push(()=>this.gl.bindVertexArray(null)),n}render(e){const n=this.gl,i=()=>(this.markUniformInfo.uniforms.uSegmentBreaks[0]+1)*2;return this._baseInstanceExt?this.createRenderCallback((r,s)=>{this._baseInstanceExt.drawArraysInstancedBaseInstanceWEBGL(n.TRIANGLE_STRIP,0,i(),s,r)},e):this.createRenderCallback((r,s)=>{for(const o of Object.entries(this.bufferInfo.attribs)){const[a,l]=o;l.buffer&&l.numComponents&&l.divisor&&(l.offset=r*this.arrays[a].numComponents*this.bytesPerElement.get(a))}Ai(n,this.programInfo,this.bufferInfo),n.drawArraysInstanced(n.TRIANGLE_STRIP,0,i(),s)},e)}}const A4=`in mediump vec2 vertexCoord;in lowp vec2 textureCoord;in float width;out vec2 vTexCoord;out float vEdgeFadeOpacity;flat out vec4 vColor;flat out float vSlope;flat out float vGamma;struct RangeResult{float pos;float scale;};float minValue(vec4 v){return min(min(v.x,v.y),min(v.z,v.w));}float maxValue(vec4 v){return max(max(v.x,v.y),max(v.z,v.w));}/***All measures are in[0,1]*/RangeResult positionInsideRange(float a,float b,float width,float padding,int align,bool flush){float span=b-a;float paddedWidth=width+2.0*padding;if(a>1.0||b<0.0){return RangeResult(0.0,0.0);}float extra=max(0.0,span-paddedWidth);float pos;if(align==0){float centre=a+b;if(flush){float leftOver=max(0.0,paddedWidth-centre);centre+=min(leftOver,extra);float rightOver=max(0.0,paddedWidth+centre-2.0);centre-=min(rightOver,extra);}pos=centre/2.0;}else if(align<0){float edge=a;if(flush){float over=max(0.0,-edge);edge+=min(over,extra);}pos=edge+padding;}else{float edge=b;if(flush){float over=max(0.0,edge-1.0);edge-=min(over,extra);}pos=edge-padding;}float scale=clamp((span-padding)/paddedWidth,0.0,1.0);return RangeResult(pos,scale);}vec2 calculateRotatedDimensions(float width,mat2 rotationMatrix){vec2 a=abs(rotationMatrix*vec2(width/2.0,0.5));vec2 b=abs(rotationMatrix*vec2(width/2.0,-0.5));return vec2(max(a.x,b.x),max(a.y,b.y))*2.0;}ivec2 fixAlignForAngle(ivec2 align,float angleInDegrees){float a=mod(angleInDegrees+45.0,360.0);int x=align.x;int y=-align.y;if(a<90.0){return ivec2(x,y);}else if(a<180.0){return ivec2(y,-x);}else if(a<270.0){return ivec2(-x,y);}else{return ivec2(-y,x);}}void main(void){float opacity=getScaled_opacity()*uViewOpacity;vec2 size=vec2(getScaled_size());float x=getScaled_x();float y=getScaled_y();float scale=1.0;float angleInDegrees=getScaled_angle();float angle=-angleInDegrees*PI/180.0;float sinTheta=sin(angle);float cosTheta=cos(angle);mat2 rotationMatrix=mat2(cosTheta,sinTheta,-sinTheta,cosTheta);vec2 flushSize=calculateRotatedDimensions(width,rotationMatrix);
|
|
464
472
|
#if defined(x2_DEFINED) || defined(y2_DEFINED)
|
|
465
473
|
ivec2 align=fixAlignForAngle(uAlign,angleInDegrees);
|
|
466
474
|
#else
|
|
@@ -473,9 +481,9 @@ vec2 pos=applySampleFacet(vec2(x,y));
|
|
|
473
481
|
#ifdef y2_DEFINED
|
|
474
482
|
float y2=getScaled_y2();vec2 pos2=applySampleFacet(vec2(x,y2));if(uLogoLetter){size.y=(pos2.y-pos.y)*uViewportSize.y;pos.y+=(pos2.y-pos.y)/2.0;}else{RangeResult result=positionInsideRange(min(pos.y,pos2.y),max(pos.y,pos2.y),size.y*scale*flushSize.y/uViewportSize.y,uPaddingY/uViewportSize.y,align.y,uFlushY);pos.y=result.pos;scale*=result.scale;}
|
|
475
483
|
#endif
|
|
476
|
-
if(scale<1.0){if(uSqueeze){vec2 scaleFadeExtent=vec2(3.0,6.0)/size;if(scale<scaleFadeExtent[0]){gl_Position=vec4(0.0);return;}size*=scale;opacity*=linearstep(scaleFadeExtent[0],scaleFadeExtent[1],scale);}else if(scale<1.0){gl_Position=vec4(0.0);return;}}vec2 charPos=rotationMatrix*(vertexCoord*size+uD);vec2 unitPos=pos+charPos/uViewportSize;gl_Position=unitToNdc(unitPos);vSlope=max(1.0,min(size.x,size.y)/uSdfNumerator*uDevicePixelRatio);vec3 color=getScaled_color();vColor=vec4(color*opacity,opacity);vGamma=getGammaForColor(color);vTexCoord=textureCoord;if(maxValue(uViewportEdgeFadeDistance)>-pow(10.0,10.0)){vEdgeFadeOpacity=minValue(((vec4(1.0,1.0,0.0,0.0)+vec4(-1.0,-1.0,1.0,1.0)*unitPos.yxyx)*uViewportSize.yxyx-uViewportEdgeFadeDistance)/uViewportEdgeFadeWidth);}else{vEdgeFadeOpacity=1.0;}setupPicking();}`,
|
|
484
|
+
if(scale<1.0){if(uSqueeze){vec2 scaleFadeExtent=vec2(3.0,6.0)/size;if(scale<scaleFadeExtent[0]){gl_Position=vec4(0.0);return;}size*=scale;opacity*=linearstep(scaleFadeExtent[0],scaleFadeExtent[1],scale);}else if(scale<1.0){gl_Position=vec4(0.0);return;}}vec2 charPos=rotationMatrix*(vertexCoord*size+uD);vec2 unitPos=pos+charPos/uViewportSize;gl_Position=unitToNdc(unitPos);vSlope=max(1.0,min(size.x,size.y)/uSdfNumerator*uDevicePixelRatio);vec3 color=getScaled_color();vColor=vec4(color*opacity,opacity);vGamma=getGammaForColor(color);vTexCoord=textureCoord;if(maxValue(uViewportEdgeFadeDistance)>-pow(10.0,10.0)){vEdgeFadeOpacity=minValue(((vec4(1.0,1.0,0.0,0.0)+vec4(-1.0,-1.0,1.0,1.0)*unitPos.yxyx)*uViewportSize.yxyx-uViewportEdgeFadeDistance)/uViewportEdgeFadeWidth);}else{vEdgeFadeOpacity=1.0;}setupPicking();}`,d4="uniform sampler2D uTexture;in vec2 vTexCoord;in float vEdgeFadeOpacity;flat in vec4 vColor;flat in float vSlope;flat in float vGamma;out lowp vec4 fragColor;float median(float r,float g,float b){return max(min(r,g),min(max(r,g),b));}float getDist(vec2 uv){vec3 c=texture(uTexture,uv).rgb;return 1.0-median(c.r,c.g,c.b);}/***Calculates the super-sampled distance to the edge.*This is used to avoid aliasing when rendering small text,*as mip-mapping cannot be used here.*The distance is averaged over a grid of n x n samples.*/float getSuperDist(vec2 uv){vec2 dx=dFdx(uv);vec2 dy=dFdy(uv);float n=2.0;float sum=0.0;for(float x=0.5;x<n;x++){for(float y=0.5;y<n;y++){sum+=getDist(uv+x/n*dx+y/n*dy);}}return sum/(n*n);}void main(){float sigDist=getSuperDist(vTexCoord);float slope=vSlope;if(uLogoLetter){slope=0.7/length(vec2(dFdy(sigDist),dFdx(sigDist)));}float opa=clamp((sigDist-0.5)*slope+0.5,0.0,1.0);opa*=clamp(vEdgeFadeOpacity,0.0,1.0);opa=pow(opa,vGamma);fragColor=vColor*opa;if(uPickingEnabled){fragColor=vPickingColor;}}",g4=`layout(std140)uniform Mark{uniform mediump float uSdfNumerator;uniform mediump vec2 uD;uniform mediump vec4 uViewportEdgeFadeWidth;uniform mediump vec4 uViewportEdgeFadeDistance;uniform bool uSqueeze;uniform bool uLogoLetter;uniform lowp ivec2 uAlign;uniform mediump float uPaddingX;uniform bool uFlushX;uniform mediump float uPaddingY;uniform bool uFlushY;
|
|
477
485
|
#pragma markUniforms
|
|
478
|
-
};`,
|
|
486
|
+
};`,p4={left:-1,center:0,right:1},m4={top:-1,middle:0,bottom:1,alphabetic:1};class w4 extends qs{constructor(e){super(e),this.augmentDefaultProperties({x:.5,y:.5,x2:void 0,y2:void 0,text:"",size:11,color:"black",opacity:1,font:void 0,fontStyle:void 0,fontWeight:void 0,align:"center",baseline:"middle",dx:0,dy:0,angle:0,fitToBand:!1,squeeze:!0,paddingX:0,paddingY:0,flushX:!0,flushY:!0,logoLetters:!1,viewportEdgeFadeWidthTop:0,viewportEdgeFadeWidthRight:0,viewportEdgeFadeWidthBottom:0,viewportEdgeFadeWidthLeft:0,viewportEdgeFadeDistanceTop:-1/0,viewportEdgeFadeDistanceRight:-1/0,viewportEdgeFadeDistanceBottom:-1/0,viewportEdgeFadeDistanceLeft:-1/0}),this.font=this.properties.font?e.context.fontManager.getFont(this.properties.font,this.properties.fontStyle,this.properties.fontWeight):e.context.fontManager.getDefaultFont(),this.setupExprRefsNeedingGraphicsUpdate(["text","fitToBand","logoLetters"])}getAttributes(){return["uniqueId","facetIndex","x","x2","y","y2","color","size","opacity","angle"]}getSupportedChannels(){return[...super.getSupportedChannels(),"x2","y2","size","text","angle"]}fixEncoding(e){for(const n of li)this.properties.fitToBand&&Ef(e,n);return e}async initializeGraphics(){await super.initializeGraphics(),this.createAndLinkShaders(A4,d4,[g4])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const e=this.properties,n=this.font.metrics.common.base*.35*(this.properties.logoLetters?.5:1);this.registerMarkUniformValue("uPaddingX",e.paddingX),this.registerMarkUniformValue("uPaddingY",e.paddingY),this.registerMarkUniformValue("uFlushX",e.flushX,i=>!!i),this.registerMarkUniformValue("uFlushY",e.flushY,i=>!!i),this.registerMarkUniformValue("uSqueeze",e.squeeze,i=>!!i),Qs(this.markUniformInfo,{uAlign:[p4[e.align],m4[e.baseline]],uD:[e.dx,-e.dy],uLogoLetter:!!e.logoLetters,uSdfNumerator:n,uViewportEdgeFadeWidth:[e.viewportEdgeFadeWidthTop,e.viewportEdgeFadeWidthRight,e.viewportEdgeFadeWidthBottom,e.viewportEdgeFadeWidthLeft],uViewportEdgeFadeDistance:[e.viewportEdgeFadeDistanceTop,e.viewportEdgeFadeDistanceRight,e.viewportEdgeFadeDistanceBottom,e.viewportEdgeFadeDistanceLeft]})}updateGraphicsData(){const e=this.unitView.getCollector();if(!e){console.debug("No collector");return}const n=e.getData(),i=this.encoding,r=this.encoders.text;let s=0;const o="format"in i.text?He(i.text.format):c=>c;for(const c of n){const u=o(r(c)),f=le(u)?u:u===null?"":""+u;s+=f&&f.length||0}const a=new _k({encoders:this.encoders,attributes:this.getAttributes(),properties:this.properties,fontMetrics:this.font.metrics,numCharacters:Math.max(s,this.properties.minBufferSize||1024)});a.addBatches(e.facetBatches);const l=a.toArrays();this.rangeMap.migrateEntries(l.rangeMap),this.updateBufferInfo(l)}prepareRender(e){const n=super.prepareRender(e);return n.push(()=>{hi(this.programInfo,{uTexture:this.font.texture})}),n.push(()=>this.bindOrSetMarkUniformBlock()),n.push(()=>Ai(this.gl,this.programInfo,this.vertexArrayInfo)),n}render(e){const n=this.gl;return this.createRenderCallback((i,r)=>Ra(n,this.vertexArrayInfo,n.TRIANGLES,r,i),e)}}const pm=1;function If(){let t=[0,1],e=[0,1],n=1,i=1,r=0,s=0,o=.5,a=0;const c=u=>(u+o-t[0])/n*i+e[0];return c.invert=u=>(u-e[0])/i*n+t[0]-o,c.domain=function(u){if(arguments.length){t=s2(u),n=t[1]-t[0];const f=t[0]===0&&t[0]===0;if(n<pm&&!f){n=pm;const h=(t[0]+t[1])/2;t[0]=h-n/2,t[1]=h+n/2}return c}else return t.slice()},c.range=function(u){return arguments.length?(e=[...u],i=e[1]-e[0],c):e},c.numberingOffset=function(u){return arguments.length?(a=u,c):a},c.padding=function(u){return arguments.length?(s=u,r=Math.min(1,u),c):r},c.paddingInner=function(u){return arguments.length?(r=Math.min(1,u),c):r},c.paddingOuter=function(u){return arguments.length?(s=u,c):s},c.align=function(u){return arguments.length?(o=Math.max(0,Math.min(1,u)),c):o},c.step=()=>i/n,c.bandwidth=()=>c.step(),c.ticks=u=>{const f=c.align(),h=c.numberingOffset();return Yo(t[0]-f+h,t[1]-f+h,Math.min(u,Math.ceil(n))).filter(Number.isInteger).map(A=>A-a)},c.tickFormat=(u,f)=>{if(f)throw new Error("Index scale's tickFormat does not support a specifier!");const A=ri(t[0],t[1],Math.min(u,Math.ceil(n)))<1e5?He(","):He(".3s");return d=>A(d+a)},c.copy=()=>If().domain(t).range(e).paddingInner(r).paddingOuter(s).numberingOffset(a),c}const xf=He(",d");function y4(t){return t.chrom+":"+xf(Math.floor(t.pos+1))}function C4(t,e){return t.chrom+":"+xf(Math.floor(t.pos+1))+"-"+(t.chrom!=e.chrom?e.chrom+":":"")+xf(Math.ceil(e.pos))}const mm={dm6:`chr3R 32079331
|
|
479
487
|
chr3L 28110227
|
|
480
488
|
chr2R 25286936
|
|
481
489
|
chrX 23542271
|
|
@@ -596,24 +604,24 @@ chr18 90702639
|
|
|
596
604
|
chr19 61431566
|
|
597
605
|
chrX 171031299
|
|
598
606
|
chrY 91744698
|
|
599
|
-
chrM 16299`};function
|
|
600
|
-
`).map(e=>{const t=e.split(" ");return{name:t[0],size:parseInt(t[1])}})}const vD=/^([A-Za-z]+:)?\/\//;function hr(n,e){if(e&&vD.test(e))return e;const t=typeof n=="function"?n():n;if(!t)return e;if(!e)return t;if(/[#?]/.test(t))throw new Error(`Cannot append to a url with query or hash. Append: ${e}, base: ${t}`);return Fp(t)+e}function Fp(n){const e=n.replace(/[^/]*$/,"");return e===""?void 0:e.endsWith("://")?n+"/":e}class SD{constructor(e){if(this.config={name:"custom",...e},"baseUrl"in e)throw new Error("The `baseUrl` property in genome config has been removed in GenomeSpy v0.52.0. Use `url` instead. See https://genomespy.app/docs/genomic-data/genomic-coordinates/.");if(!qu(e))throw new Error("Not a genome configuration: "+JSON.stringify(e));if(this.chromosomes=[],this.cumulativeChromPositions=new Map,this.chromosomesByName=new Map,this.startByIndex=[],this.totalSize=0,Mp(this.config))this.setChromSizes(this.config.contigs);else if(!ju(this.config)){const t=BD(this.config.name);if(t)this.setChromSizes(t);else throw new Error(`Unknown genome: ${this.config.name}. Please provide contigs or a URL. See https://genomespy.app/docs/genomic-data/genomic-coordinates/.`)}}get name(){return this.config.name}async load(e){if(ju(this.config))try{const t=hr(e,this.config.url),r=await fetch(t);if(!r.ok)throw new Error(`${r.status} ${r.statusText}`);this.setChromSizes(QD(await r.text()))}catch(t){throw new Error(`Could not load chrom sizes: ${this.config.url}. Reason: ${t.message}`)}}hasChrPrefix(){return this.chromosomes.some(e=>e.name.startsWith("chr"))}setChromSizes(e){let t=0;this.startByIndex=[0];for(let r=0;r<e.length;r++){this.startByIndex.push(t);const i=e[r].size,s={...e[r],continuousStart:t,continuousEnd:t+i,continuousInterval:[t,t+i],index:r,number:r+1,odd:!(r&1)};this.chromosomes.push(s);const o=s.name.replace(/^chr/i,"");for(const a of["chr"+o,"CHR"+o,"Chr"+o,s.number,""+s.number,o,s.name])this.cumulativeChromPositions.set(a,t),this.chromosomesByName.set(a,s);t+=s.size}this.totalSize=t}getExtent(){return[0,this.totalSize]}toContinuous(e,t){let r=this.cumulativeChromPositions.get(e);if(r===void 0)throw new Error("Unknown chromosome/contig: "+e);return r+ +t}toChromosome(e){if(e>this.totalSize)return;e=Math.floor(e);const t=mn(this.startByIndex,e)-1;if(t>0&&t<=this.chromosomes.length)return this.chromosomes[t-1]}toChromosomal(e){const t=this.toChromosome(e);if(t)return{chrom:t.name,pos:Math.floor(e)-t.continuousStart}}getChromosome(e){return this.chromosomesByName.get(e)}formatInterval(e){return xD(...this.toChromosomalInterval(e))}formatLocus(e){const t=this.toChromosomal(e);if(t)return bD(t)}toChromosomalInterval(e){const t=this.toChromosomal(e[0]+.5),r=this.toChromosomal(e[1]-.5);return r.pos+=1,[t,r]}toContinuousInterval(e){let[t,r]=e;return r||(r=t),[this.toContinuous(t.chrom,t.pos??0),this.toContinuous(r.chrom,r.pos??this.chromosomesByName.get(r.chrom)?.size)]}toDiscreteChromosomeIntervals(e){const t=e[0],r=e[1],i=[];if(t.chrom===r.chrom)i.push({chrom:t.chrom,startPos:t.pos,endPos:r.pos});else{const s=this.chromosomes.findIndex(a=>a.name===t.chrom),o=this.chromosomes.findIndex(a=>a.name===r.chrom);i.push({chrom:t.chrom,startPos:t.pos,endPos:this.chromosomes[s].size});for(let a=s+1;a<o;a++)i.push({chrom:this.chromosomes[a].name,startPos:0,endPos:this.chromosomes[a].size});i.push({chrom:r.chrom,startPos:0,endPos:r.pos})}return i}continuousToDiscreteChromosomeIntervals(e){return this.toDiscreteChromosomeIntervals([this.toChromosomal(e[0]),this.toChromosomal(e[1])])}parseInterval(e){const t=e.match(/^(chr[0-9A-Z]+)(?::([0-9,]+)(?:-(?:(chr[0-9A-Z]+):)?([0-9,]+))?)?$/);if(t){const r=t[1];if(t.slice(2).every(a=>a===void 0)){const a=this.getChromosome(r);return a?[a.continuousStart,a.continuousEnd]:void 0}const i=t[3]||r,s=parseInt(t[2].replace(/,/g,"")),o=t[4]!==void 0?parseInt(t[4].replace(/,/g,"")):s;return[this.toContinuous(r,s-1),this.toContinuous(i,o)]}}}function QD(n){return rI(n).map(([e,t])=>({name:e,size:parseInt(t)}))}function Rp(n){return ze(n)&&"chrom"in n}function DD(n){return n.every(Rp)}function qu(n){return ze(n)&&("name"in n||ju(n)||Mp(n))}function ju(n){return qu(n)&&"url"in n}function Mp(n){return qu(n)&&"contigs"in n}function kD(){const n=Ju().numberingOffset(1);let e;n.genome=function(r){return arguments.length?(e=r,n):e},n.ticks=r=>{if(!e)return[];const i=n.domain(),s=n.numberingOffset(),[o,a]=[Math.max(i[0],0),Math.min(i[1],e.totalSize-1)].map(u=>e.toChromosome(u)),l=Math.max(1,Wn(i[0],i[1],r)),c=[];for(let u=o.index;u<=a.index;u++){const f=e.chromosomes[u],h=Math.max(f.continuousStart+l,i[0]-(i[0]-f.continuousStart)%l),A=Math.min(f.continuousEnd-l/4,i[1]+1);for(let d=h;d<=A;d+=l){const g=d-s;g>=i[0]&&g<i[1]&&c.push(g)}}return c},n.tickFormat=(r,i)=>{if(!e)return;if(i)throw new Error("Locus scale's tickFormat does not support a specifier!");const s=n.domain(),o=s[1]-s[0],a=n.numberingOffset(),c=Wn(s[0],s[1],Math.min(r,Math.ceil(o)))<1e6?He(","):He(".3s"),u=f=>f-e.toChromosome(f).continuousStart;return f=>c(u(f)+a)};const t=n.copy;return n.copy=()=>{const r=t();let i=e;return r.genome=function(s){return arguments.length?(i=s,r):i},r.genome(e)},n}function FD(n){return n.type=="locus"}function RD(n,e){const t=Ps(n);return t?t.toChromosomal(e):e}function MD(n,e){const t=Ps(n);return t&&Rp(e)?t.toContinuous(e.chrom,e.pos):e}function ND(n,e){const t=Ps(n);return t&&DD(e)?t.toContinuousInterval(e):e}function TD(n,e){const t=Ps(n);return t?t.toChromosomalInterval(e):e}function PD(n){const e=Ps(n);if(!e)throw new Error("No genome has been defined!");return e.getExtent()}function Ps(n){if(n&&"toChromosomal"in n)return n;if(n&&"genome"in n)return n.genome()}function Np(n,e,t){return Ye(e)&&t!=null&&(e=Math.min(e,~~(Pi(n.domain())/t)||1)),ze(e)&&(e.step,e=e.interval),e}function Tp(n,e,t){var r=n.range(),i=Math.floor(r[0]),s=Math.ceil(bt(r));if(i>s&&(r=s,s=i,i=r),e=e.filter(function(a){return a=n(a),i<=a&&a<=s}),t>0&&e.length>1){for(var o=[e[0],bt(e)];e.length>t&&e.length>=3;)e=e.filter(function(a,l){return!(l%2)});e.length<3&&(e=o)}return e}function LD(n,e){return n.bins?Tp(n,OD(n.bins,e)):n.ticks?n.ticks(e):n.domain()}function OD(n,e){var t=n.length,r=~~(t/(e||t));return r<2?n.slice():n.filter(function(i,s){return!(s%r)})}function UD(n,e,t){var r=n.tickFormat?n.tickFormat(e,t):t?He(t):String;if(np(n.type)){var i=zD(t);r=n.bins?i:GD(r,i)}return r}function GD(n,e){return function(t){return n(t)?e(t):""}}function zD(n){var e=Rr(n||",");if(e.precision==null){switch(e.precision=12,e.type){case"%":e.precision-=2;break;case"e":e.precision-=1;break}return HD(He(e),He(".1f")(1)[1])}else return He(e)}function HD(n,e){return function(t){var r=n(t),i=r.indexOf(e),s,o;if(i<0)return r;for(s=VD(r,i),o=s<r.length?r.slice(s):"";--s>i;)if(r[s]!=="0"){++s;break}return r.slice(0,s)+o}}function VD(n,e){var t=n.lastIndexOf("e"),r;if(t>0)return t;for(t=n.length;--t>e;)if(r=n.charCodeAt(t),r>=48&&r<=57)return t+1}const _D="locus",YD="index";var JD=5;function KD(n){const e=n.type;return!n.bins&&(e===ei||e===bs||e===xs)}function Pp(n){return Pe(n)&&![zt,YD,_D].includes(n)}function Lp(n){return n||{warn:(e,...t)=>console.warn(e,...t)}}var qD=Eo(["set","modified","clear","type","scheme","schemeExtent","schemeCount","domain","domainMin","domainMid","domainMax","domainRaw","domainImplicit","nice","zero","bins","range","rangeStep","round","reverse","interpolate","interpolateGamma","zoom","fp64","name"]);function Op(n,e,t){t=Lp(t);for(const i in n)if(!qD[i]){if(i==="padding"&&Pp(e.type))continue;At(e[i])?e[i](n[i]):t.warn("Unsupported scale property: "+i)}const r=Up(e,n,t);r.domain&&e.domain(r.domain),r.applyOrdinalUnknown&&e.unknown(r.ordinalUnknown),nk(e,n,tk(e,n,r.count))}function jD(n,e){const t=WD(n),r=re(t);if(!r)throw new Error("Unknown scale type: "+t);const i=r();return!n.domain&&Pe(i.type)&&(n.domain=[0,0]),Op(n,i,e),i}function WD(n){var e=n.type,t="",r;return e===zt?zt+"-"+ei:(XD(n)&&(r=n.rawDomain?n.rawDomain.length:n.domain?n.domain.length+ +(n.domainMid!=null):0,t=r===2?zt+"-":r===3?ti+"-":""),(t+e||ei).toLowerCase())}function XD(n){const e=n.type;return Pe(e)&&e!==qg&&e!==jg&&(n.scheme||n.range&&n.range.length&&n.range.every(le))}function ZD(n){if(!n.copy)return n;const e=n.copy();return e.type==null&&n.type!=null&&(e.type=n.type),e}function Up(n,e,t){if(!n.domain)return{domain:null,count:0,ordinalUnknown:void 0,applyOrdinalUnknown:!1};t=Lp(t);const r=ZD(n);var i=$D(r,e.domainRaw,t);if(i>-1)return{domain:r.domain(),count:i,ordinalUnknown:r.type===Bs&&e.domainImplicit?wa:void 0,applyOrdinalUnknown:!1};var s=e.domain,o=r.type,a=e.zero||e.zero===void 0&&KD(r),l,c;return s?(Pp(o)&&e.padding&&s[0]!==bt(s)&&(s=ek(o,s,e.range,e.padding,e.exponent,e.constant)),(a||e.domainMin!=null||e.domainMax!=null||e.domainMid!=null)&&(l=(s=s.slice()).length-1||1,a&&(s[0]>0&&(s[0]=0),s[l]<0&&(s[l]=0)),e.domainMin!=null&&(s[0]=e.domainMin),e.domainMax!=null&&(s[l]=e.domainMax),e.domainMid!=null&&(c=e.domainMid,(c<s[0]||c>s[l])&&t.warn("Scale domainMid exceeds domain min or max.",c),s.splice(l,0,c))),r.domain(Gp(o,s,t)),e.nice&&r.nice&&r.nice(e.nice!==!0&&Np(r,e.nice)||null),{domain:r.domain(),count:s.length,ordinalUnknown:o===Bs&&e.domainImplicit?wa:void 0,applyOrdinalUnknown:o===Bs}):{domain:null,count:0,ordinalUnknown:void 0,applyOrdinalUnknown:!1}}function $D(n,e,t){return e?(n.domain(Gp(n.type,e,t)),e.length):-1}function ek(n,e,t,r,i,s){t??=[0,1];var o=Math.abs(bt(t)-t[0]),a=o/(o-2*r),l=n===Mn?OA(e,null,a):n===xs?Nc(e,null,a,.5):n===bs?Nc(e,null,a,i||1):n===Fa?m2(e,null,a,s||1):LA(e,null,a);return e=e.slice(),e[0]=l[0],e[e.length-1]=l[1],e}function Gp(n,e,t){if(np(n)){var r=Math.abs(e.reduce(function(i,s){return i+(s<0?-1:s>0?1:0)},0));r!==e.length&&t.warn("Log scale domain includes zero: "+Pc(e))}return e}function tk(n,e,t){let r=e.bins;if(r&&!Ce(r)){const i=(r.start==null||r.stop==null)&&n.domain(),s=r.start==null?i[0]:r.start,o=r.stop==null?bt(i):r.stop,a=r.step;a||be("Scale bins parameter missing step property."),r=Ji(s,o+a,a)}return r?n.bins=r:n.bins&&delete n.bins,n.type===Pu&&(r?!e.domain&&!e.domainRaw&&(n.domain(r),t=r.length):n.bins=n.domain()),t}function nk(n,e,t){var r=n.type,i=e.round||!1,s=e.range;if(e.rangeStep!=null)s=rk(r,e,t);else if(e.scheme&&(s=ik(r,e,t),At(s))){if(n.interpolator)return n.interpolator(s);be(`Scale type ${r} does not support interpolating color schemes.`)}if(s&&Ma(r))return n.interpolator(Na(Wu(s,e.reverse),e.interpolate,e.interpolateGamma));s&&e.interpolate&&n.interpolate?n.interpolate(rp(e.interpolate,e.interpolateGamma)):At(n.round)?n.round(i):At(n.rangeRound)&&n.interpolate(i?Is:Fn),s&&n.range(Wu(s,e.reverse))}function rk(n,e,t){n!==Zg&&n!==Tu&&be("Only band and point scales support rangeStep.");var r=(e.paddingOuter!=null?e.paddingOuter:e.padding)||0,i=n===Tu?1:(e.paddingInner!=null?e.paddingInner:e.padding)||0;return[0,e.rangeStep*Mu(t,i,r)]}function ik(n,e,t){var r=e.schemeExtent,i,s;return Ce(e.scheme)?s=Na(e.scheme,e.interpolate,e.interpolateGamma):(i=e.scheme.toLowerCase(),s=Ou(i),s||be(`Unrecognized scheme name: ${e.scheme}`)),t=n===Xg?t+1:n===Pu?t-1:n===Nu||n===Wg?+e.schemeCount||JD:t,Ma(n)?zp(s,r,e.reverse):At(s)?uQ(zp(s,r),t):n===Bs?s:s.slice(0,t)}function zp(n,e,t){return At(n)&&(e||t)?lQ(n,Wu(e||[0,1],t)):n}function Wu(n,e){return e?n.slice().reverse():n}class sk{#e;#t=new Set;#n;#r;#s;#o;#i=0;constructor({getParamRuntime:e,onRangeChange:t,onDomainChange:r,getGenomeStore:i}){this.#n=e,this.#r=t,this.#s=r,this.#o=i}get scale(){return this.#e}getLocusGenome(){const t=this.#o?.()?.getGenome();if(!t)throw new Error("No genome has been defined!");return t}createScale(e){const t=jD({...this.#c(e),range:void 0});return t.props=e,"unknown"in t&&t.unknown(null),this.#e=t,this.#a(e),this.#l(),this.#u(),this.#e}#a(e){const t=this.#e;if(!t||!FD(t))return;const i=this.#o?.()?.getGenome(e.assembly);if(!i)throw new Error("No genome has been defined!");t.genome(i)}reconfigureScale(e){const t=this.#e;!t||t.type=="null"||(Op({...this.#c(e),range:void 0},t),t.props=e,this.#l())}withDomainNotificationsSuppressed(e){this.#i+=1;try{e()}finally{this.#i-=1}}#c(e){const t=e,{assembly:r,domainIndexer:i,...s}=t;return s}#l(){const e=this.#e;if(!e)return;const t=e.props;this.#t.forEach(s=>s.invalidate()),this.#t.clear();const r=ak({range:t.range,reverse:t.reverse,createExpression:s=>this.#n().createExpression(s),registerExpr:s=>this.#t.add(s)});if(!r)return;if("values"in r){e.range(r.values);return}const i=()=>e.range(r.evaluate());r.setup(i),i()}#u(){const e=this.#e;if(!e)return;const t=e.range,r=e.domain,i=()=>this.#r?.();ok(e,{onRangeChange:i,onDomainChange:()=>{this.#i>0||this.#s?.()},range:t,domain:r}),i()}dispose(){this.#t.forEach(e=>e.invalidate()),this.#t.clear()}}function ok(n,{onRangeChange:e,onDomainChange:t,range:r,domain:i}){typeof r=="function"&&(n.range=(function(s){if(arguments.length)r(s),e?.();else return r()})),typeof i=="function"&&(n.domain=(function(s){if(arguments.length)i(s),t?.();else return i()}))}function ak({range:n,reverse:e,createExpression:t,registerExpr:r}){if(!n||!Ce(n))return null;const i=(s,o)=>o?s.slice().reverse():s;if(n.some(Ie)){let s;return{dynamic:!0,evaluate:()=>i(s.map(l=>l()),e),setup:l=>{s=n.map(c=>{if(Ie(c)){const u=t(c.expr);return u.subscribe(l),r(u),()=>u(null)}return()=>c})}}}return{dynamic:!1,values:i(n,e)}}function Ua(n,e,t){if(t=t||[],n.some(o=>o===null)){if(n.every(o=>o===null))return null;throw console.warn(n),new Error("Cannot merge objects with nulls!")}const r={},i=(o,a)=>o===a||ii(o)&&ii(a)||ii(o)&&a===!0||o===!0&&ze(a)||Array.isArray(o)&&Array.isArray(a)&&o.length===a.length&&o.every((l,c)=>l===a[c]),s=o=>{for(let a in o){const l=o[a];if(!t.includes(a)&&l!==void 0)if(r[a]!==void 0&&!i(r[a],l))console.warn(`Conflicting property ${a} of ${e}: (${JSON.stringify(r[a])} and ${JSON.stringify(o[a])}). Using ${JSON.stringify(r[a])}.`);else{const c=r[a];if(ii(c))ii(l)&&(r[a]=Ua([c,l],a));else if(ii(l)){if(!(c===!0||c===void 0))throw new Error("Bug in merge! Target is: "+c);r[a]=Ua([{},l],a)}else r[a]=l}}};for(const o of n)s(o);return r}function ii(n){return ze(n)&&!Array.isArray(n)}const Hp="quantitative",Vp="ordinal",_p="nominal",Ls="locus",Yp="index";function ck(n,e,t){const r={};return t&&(r.zero=!1),ls(n)?r.nice=!t:In(n)?r.scheme=e==_p?"tableau10":e==Vp?"blues":"viridis":Jo(n)?r.range=n=="shape"?["circle","square","triangle-up","cross","diamond"]:[]:n=="size"?r.range=[0,400]:n=="angle"&&(r.range=[0,360]),r}function lk(n,e){if(e==Yp||e==Ls){if(ml(n))return e;throw new Error(n+" does not support "+e+" data type. Only positional channels do.")}const t={x:["band","band","linear"],y:["band","band","linear"],size:[void 0,"point","linear"],opacity:[void 0,"point","linear"],fillOpacity:[void 0,"point","linear"],strokeOpacity:[void 0,"point","linear"],color:["ordinal","ordinal","linear"],fill:["ordinal","ordinal","linear"],stroke:["ordinal","ordinal","linear"],strokeWidth:[void 0,void 0,"linear"],shape:["ordinal","ordinal",void 0],dx:[void 0,void 0,"null"],dy:[void 0,void 0,"null"],angle:[void 0,void 0,"linear"],sample:["null",void 0,void 0]},i=["sample"].includes(n)?"null":t[n]?t[n][[_p,Vp,Hp].indexOf(e)]:e==Hp?"linear":"ordinal";if(i===void 0)throw new Error('Channel "'+n+'" is not compatible with "'+e+'" data type. Use of a proper scale may be needed.');return i}function uk(n,e){ls(e)&&n.type!=="ordinal"&&(n.range=[0,1]),e=="opacity"&&Pe(n.type)&&(n.clamp=!0)}function fk({channel:n,dataType:e,members:t,isExplicitDomain:r}){const i=Array.from(t).map(a=>a.channelDef.scale).filter(a=>a!==void 0),s=Ua(i,"scale",["domain"]);if(s===null||s.type=="null")return{type:"null"};const o={...ck(n,e,r),...s};return o.type||(o.type=lk(n,e)),n=="y"&&rn(o.type)&&o.reverse==null&&(o.reverse=!0),o.range&&o.scheme&&delete o.scheme,!("zoom"in o)&&[Yp,Ls].includes(o.type)&&(o.zoom=!0),uk(o,n),o}class Os extends Array{constructor(){super(),this.type=void 0}extend(e){return this}extendAll(e){if(e instanceof Os&&e.type!=this.type)throw new Error(`Cannot combine different types of domains: ${this.type} and ${e.type}`);for(const t of e)this.extend(t);return this}extendAllWithAccessor(e,t){for(const r of e)this.extend(t(r));return this}}class Xu extends Os{constructor(){super(),this.type="quantitative"}extend(e){return e==null||Number.isNaN(e)?this:(e=+e,this.length?e<this[0]?this[0]=e:e>this[1]&&(this[1]=e):(this.push(e),this.push(e)),this)}}class Jp extends Os{constructor(){super(),this.type="ordinal",this.uniqueValues=new Set}extend(e){return e==null||Number.isNaN(e)?this:(this.uniqueValues.has(e)||(this.uniqueValues.add(e),this.push(e)),this)}}class Zu extends Jp{constructor(){super(),this.type="nominal"}}class Ak extends Os{constructor(e){super();let t=0;for(let r=1;r<e.length;r++)t+=Math.sign(e[r]-e[r-1]);if(Math.abs(t)!=e.length-1)throw new Error("Piecewise domain must be strictly increasing or decreasing: "+JSON.stringify(e));e.forEach(r=>this.push(r))}extend(e){if(this.includes(e))return this;throw new Error("Piecewise domains are immutable and cannot be unioned!")}}const Kp={quantitative:Xu,index:Xu,locus:Xu,nominal:Zu,ordinal:Jp};function Ga(n,e){if(n=="quantitative"&&hk(e)){const t=new Ak(e);return t.type=n,t}else if(Kp[n]){const t=new Kp[n];return t.type=n,e&&t.extendAll(e),t}throw new Error("Unknown type: "+n)}function hk(n){return n&&n.length>0&&n.length!=2&&n.every(e=>typeof e=="number")}class dk{#e;#t;#n;#r;#s;#o;#i;#a=!0;#c=new WeakMap;constructor({getMembers:e,getDataMembers:t,getType:r,getLocusExtent:i,fromComplexInterval:s}){this.#e=e,this.#t=t??e,this.#n=r,this.#r=i,this.#s=s}get initialDomainSnapshot(){return this.#o}hasConfiguredDomain(){return!!this.getConfiguredDomain()}invalidateConfiguredDomain(){this.#a=!0}getConfiguredOrDefaultDomain(e=!1){return this.getConfiguredDomain()??mk(this.#n(),this.#r,e?this.getDataDomain():void 0)}getConfiguredDomain(){if(!this.#a)return this.#i;const e=gk(this.#e(),this.#s);return this.#i=e,this.#a=!1,e}getDataDomain(){return pk(this.#t(),this.#n,e=>this.#l(e))}captureInitialDomain(e,t){if(!this.#o&&Pe(e.type)){const r=e.domain();Pi(r)>0&&(this.#o=r)}return t?!1:(this.#o=e.domain(),!0)}#l(e){const t=this.#c.get(e);if(t)return t;const r=e.view.mark.encoders;if(!r)return[];const i=r[e.channel];if(!i)return[];const s=i.accessors??[];if(s.length===0)return[];const o=s.filter(od).filter(a=>!a.channelDef.domainInert);return this.#c.set(e,o),o}}function gk(n,e){const t=Array.from(n).filter(r=>r.contributesToDomain).map(r=>r.channelDef).filter(r=>r.scale?.domain).map(r=>Ga(r.type,e(r.scale.domain)));if(t.length>0)return t.reduce((r,i)=>r.extendAll(i))}function pk(n,e,t){const r=e(),i=new Map;for(const o of n){if(!o.contributesToDomain)continue;const a=t(o);if(a.length===0)continue;const l=o.view.getCollector();for(const c of a){const u=cd(c,r),f=l??null;let h=i.get(f);if(h||(h=new Map,i.set(f,h)),h.has(u))continue;let A;if(l)A=l.getDomain(u,r,c);else if(c.constant)A=Ga(r),A.extend(c({}));else continue;h.set(u,A)}}if(i.size===0)return;const s=Ga(r);for(const o of i.values())for(const a of o.values())s.extendAll(a);return s}function mk(n,e,t){return n==Ls?e():t??[]}function wk(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}function yk(n,e,t){return n*Math.pow(e/n,t)}const Ck=n=>new Promise(e=>setTimeout(e,n));function Ik(){return{canceled:!1}}function Ek(n){const e=n.requestAnimationFrame||window.requestAnimationFrame,t=n.signal,r=n.cancelToken,i=()=>new Promise((s,o)=>{if(r?.canceled)return s();if(t?.aborted)return o("aborted");const a=performance.now(),l=a+(n.duration||1e3),c=typeof n.from=="number"?n.from:0,u=typeof n.to=="number"?n.to:1,f=n.easingFunction||(p=>p),h=p=>(p-a)/(l-a),A=p=>p*(u-c)+c,d=p=>Math.max(0,Math.min(1,p)),g=p=>{if(r?.canceled){s();return}t?.aborted?o("aborted"):(n.onUpdate(A(f(d(h(p))))),p<l?e(g):(n.onUpdate(A(f(1))),s()))};e(g)});return n.delay?r?.canceled?Promise.resolve():t?.aborted?Promise.reject("aborted"):Ck(n.delay).then(i):i()}class bk{#e;#t;#n;#r;#s;#o;#i=null;constructor({getScale:e,getAnimator:t,getInitialDomainSnapshot:r,getResetDomain:i,fromComplexInterval:s,getGenomeExtent:o}){this.#e=e,this.#t=t,this.#n=r,this.#r=i,this.#s=s,this.#o=o}getZoomExtent(){const e=this.#e(),t=e.props.zoom;return xk(e,t,this.#s,this.#o,this.#n)}isZoomable(){return this.isZoomingSupported()&&!!this.#e().props.zoom}isZoomingSupported(){const e=this.#e().type;return Pe(e)&&!rn(e)}getDomainChangeAction(e,t){return Lr(t,e)?"none":this.isZoomable()?"restore":this.isZoomingSupported()?"animate":"notify"}isZoomed(){return this.isZoomingSupported()&&Lr(this.#r(),this.#e().domain())}zoom(e,t,r){if(!this.isZoomingSupported())return!1;const i=this.#e(),s=i.domain();let o=Bk(i,s,e,t,r);const a=this.getZoomExtent();return o=w2(o,a[0],a[1]),[0,1].some(l=>o[l]!=s[l])?(i.domain(o),!0):!1}async zoomTo(e,t=!1){if(Ti(t)&&(t=t?700:0),!this.isZoomingSupported())throw new Error("Not a zoomable scale!");const r=this.#s(e),i=this.#t(),s=this.#e(),o=s.domain();if(t>0&&o.length==2){const a=o[1]-o[0],l=r[1]-r[0],c=o[0]+a/2,u=r[0]+l/2,f=o[0]==r[0],h=o[1]==r[1];this.#a();const A=Ik();this.#i=A,await i.transition({duration:t,easingFunction:wk,cancelToken:A,onUpdate:d=>{const g=yk(a,l,d),p=a==l?d:(a-g)/(a-l),m=p*u+(1-p)*c,y=[f?o[0]:m-g/2,h?o[1]:m+g/2];s.domain(y)}}),this.#i===A&&(this.#i=null),s.domain(r)}else this.#a(),s.domain(r),i?.requestRender()}#a(){this.#i&&(this.#i.canceled=!0,this.#i=null)}resetZoom(){if(!this.isZoomingSupported())throw new Error("Not a zoomable scale!");const e=this.#e(),t=e.domain(),r=this.#r();return[0,1].some(i=>r[i]!=t[i])?(e.domain(r),!0):!1}getZoomLevel(){return this.isZoomable()?Pi(this.getZoomExtent())/Pi(this.#e().domain()):1}}function xk(n,e,t,r,i){return vk(e)&&Ce(e.extent)?t(e.extent):e&&n.props.type=="locus"?r():i()}function Bk(n,e,t,r,i){let s=[...e],o=n.invert(r);switch(n.props.reverse&&(i=-i),"align"in n&&(o+=n.align()),n.type){case"linear":case"index":case"locus":s=d2(s,i||0),s=LA(s,o,t);break;case"log":s=g2(s,i||0),s=OA(s,o,t);break;case"pow":case"sqrt":{const a=n;s=p2(s,i||0,a.exponent()),s=Nc(s,o,t,a.exponent());break}default:throw new Error("Zooming is not implemented for: "+n.type)}return s}function vk(n){return ze(n)}re("index",Ju,["continuous"]),re("locus",kD,["continuous"]),re("null",Uu,[]);class Sk{#e=new Set;#t=new Set;#n={domain:new Set,range:new Set};#r;#s;#o;#i;#a=!1;constructor(e){this.channel=e,this.type=null,this.name=void 0,this.#s=new dk({getMembers:()=>this.#l(),getDataMembers:()=>this.#l(this.#t),getType:()=>this.type,getLocusExtent:()=>this.#f(),fromComplexInterval:this.fromComplexInterval.bind(this)}),this.#r=new sk({getParamRuntime:()=>this.#c.paramRuntime,onRangeChange:()=>this.#h("range"),onDomainChange:()=>this.#h("domain"),getGenomeStore:()=>this.#u.genomeStore}),this.#o=new bk({getScale:()=>this.getScale(),getAnimator:()=>this.#u.animator,getInitialDomainSnapshot:()=>this.#s.initialDomainSnapshot,getResetDomain:()=>this.#s.getConfiguredOrDefaultDomain(),fromComplexInterval:this.fromComplexInterval.bind(this),getGenomeExtent:()=>this.#f()})}get#c(){const e=this.#e.values().next().value;if(!e)throw new Error("ScaleResolution has no members!");return e.view}#l(e=this.#e){const t=new Set;for(const r of e){const i=r.view;i.isConfiguredVisible()&&(!i.isDataInitialized()&&!r.channelDef?.scale?.domain||t.add(r))}return t}get#u(){return this.#c.context}get zoomExtent(){return(this.#r.scale&&Pe(this.#r.scale.type)&&this.#o.getZoomExtent())??[-1/0,1/0]}#f(){return PD(this.#A())}#A(){if(this.type===Ls)return this.#r.scale??this.#r.getLocusGenome()}addEventListener(e,t){this.#n[e].add(t)}removeEventListener(e,t){this.#n[e].delete(t)}#h(e){for(const t of this.#n[e].values())t({type:e,scaleResolution:this})}#d(e){const{channel:t,channelDef:r}=e,i=r.type==null&&this.type;if(t!="sample"&&!r.type&&!wl(t)&&!i)throw new Error(`The "type" property must be defined in channel definition: "${t}": ${JSON.stringify(r)}. Must be one of: "quantitative", "ordinal", "nominal", "locus", "index"`);const s=t=="sample"?"nominal":r.type,o=r?.scale?.name;if(o){if(this.name!==void 0&&o!=this.name)throw new Error(`Shared scales have conflicting names: "${o}" vs. "${this.name}"!`);this.name=o}if(!i){if(!this.type)this.type=s;else if(s!==this.type&&!wl(t))throw new Error(`Can not use shared scale for different data types: ${this.type} vs. ${s}. Use "resolve: independent" for channel ${this.channel}`)}this.#e.add(e),e.contributesToDomain&&this.#t.add(e),this.#s.invalidateConfiguredDomain()}registerMember(e){return this.#d(e),()=>{const t=this.#e.delete(e);return t&&(this.#t.delete(e),this.#s.invalidateConfiguredDomain()),t&&this.#e.size===0}}dispose(){this.#n.domain.clear(),this.#n.range.clear(),this.#r.dispose()}#g(){for(const e of this.#e)if(e.view.hasRendered())return!0;return!1}registerCollectorSubscriptions(e,t){const r=new Set;for(const o of t)o.channelDef.domainInert||r.add(cd(o,this.type));if(r.size===0)return()=>{};const i=()=>{this.reconfigureDomain()},s=[];for(const o of r)s.push(e.subscribeDomainChanges(o,i));return()=>{for(const o of s)o()}}#p(){return this.#s.hasConfiguredDomain()}#w(){const e=this.#r.scale;if(!e)return!1;const t=e.domain();return Pe(e.type)?t.length>2||t.length==2&&(t[0]!==0||t[1]!==0):t.length>0}#y(){return fk({channel:this.channel,dataType:this.type,members:this.#e,isExplicitDomain:this.#p()})}#m(e=!1){const t=this.#y();if(t===null||t.type=="null")return{type:"null"};const r=this.#s.getConfiguredOrDefaultDomain(e);if(rn(t.type)){const i=this.#p(),s=this.#C(i);if(r!=null){if(i&&s.domain().length>0&&!Lr(s.domain(),r))return this.#i=void 0,this.#m(e);s.addAll(r);const o=new Set(r),a=s.domain().filter(l=>o.has(l));t.domain=a.length>0?a:new Zu}else{const o=s.domain();t.domain=o.length>0?o:new Zu}t.domainIndexer=s}else r&&r.length>0&&(t.domain=r);return!t.domain&&t.domainMid!==void 0&&(t.domain=[t.domainMin??0,t.domainMax??1]),t}#C(e){return(!this.#i||this.#a!==e)&&(this.#i=Cp(),this.#a=e),this.#i}reconfigure(){this.#s.invalidateConfiguredDomain();const e=this.#I(!0);e&&(this.#E(e,(t,r)=>this.#r.reconfigureScale(r)),this.#b(e))}reconfigureDomain(){const e=this.#I(!0,!0);if(!e)return;const{domainConfig:t,targetDomain:r}=e,i=r!=null&&Lr(r,e.scale.domain());r!=null&&!i&&this.#E(e,s=>{s.domain(r),t.applyOrdinalUnknown&&s.unknown(t.ordinalUnknown)}),this.#b(e)}#I(e,t=!1){const r=this.#r.scale;if(!r||r.type=="null")return;const i={scale:r,props:this.#m(e),previousDomain:r.domain(),domainWasInitialized:this.#w()};if(t){const s=Up(r,i.props);return{...i,domainConfig:s,targetDomain:s.domain}}return i}#E(e,t){this.#r.withDomainNotificationsSuppressed(()=>{t(e.scale,e.props)})}#b(e){const{scale:t,previousDomain:r,domainWasInitialized:i}=e;if(this.#s.captureInitialDomain(t,i)){this.#h("domain");return}const s=t.domain(),o=this.#o.getDomainChangeAction(r,s);o==="restore"?this.#r.withDomainNotificationsSuppressed(()=>{t.domain(r)}):o==="animate"?this.#g()?(this.#r.withDomainNotificationsSuppressed(()=>{t.domain(r)}),this.zoomTo(s,500)):this.#h("domain"):o==="notify"&&this.#h("domain")}get scale(){if(this.#r.scale)return this.#r.scale;throw new Error("ScaleResolution.scale accessed before initialization. Call initializeScale().")}getScale(){return this.#r.scale??this.initializeScale()}initializeScale(){if(this.#r.scale)return this.#r.scale;const e=this.#m();return this.#r.createScale(e)}getDomain(){return this.getScale().domain()}getDataDomain(){return this.#s.getDataDomain()}getComplexDomain(){return TD(this.#A(),this.getDomain())}isZoomed(){return this.#o.isZoomed()}isZoomable(){return this.#o.isZoomable()}zoom(e,t,r){return this.#o.zoom(e,t,r)}async zoomTo(e,t=!1){return this.#o.zoomTo(e,t)}resetZoom(){return this.#o.resetZoom()}getZoomLevel(){return this.#o.getZoomLevel()}getAxisLength(){if(this.channel!=="x"&&this.channel!=="y")throw new Error("Axis length is only defined for x and y channels!");const e=Array.from(this.#e).map(t=>t.view.coords?.[this.channel==="x"?"width":"height"]).filter(t=>t>0);return e.length?e.reduce((t,r)=>Math.min(t,r),1e4):0}invertToComplex(e){const t=this.getScale();if("invert"in t){const r=t.invert(e);return this.toComplex(r)}else throw new Error("The scale does not support inverting!")}toComplex(e){return RD(this.#A(),e)}fromComplex(e){return MD(this.#A(),e)}fromComplexInterval(e){return this.type==Ls?ND(this.#A(),e):e}}function $u(...n){for(const e of n)if(e!==void 0)return e}class Qk{#e=new Set;constructor(e){this.channel=e}get scaleResolution(){return this.#e.values().next().value?.view.getScaleResolution(this.channel)}#t(e){const{view:t}=e,r=t.getScaleResolution(this.channel);if(!r)throw new Error("Cannot find a scale resolution!");if(this.scaleResolution&&r!==this.scaleResolution)throw new Error(`Shared axes must have a shared scale! Channel: ${this.channel}, existing views: [${Array.from(this.#e).map(i=>i.view.getPathString()).join(", ")}], new view: ${t.getPathString()}.`);this.#e.add(e),_u(this,"axisProps")}registerMember(e){return this.#t(e),()=>this.removeMember(e)&&this.#e.size===0}removeMember(e){const t=this.#e.delete(e);return t&&_u(this,"axisProps"),t}getAxisProps(){return La(this,"axisProps",()=>{const e=Array.from(this.#e).map(t=>{const r=t.view.mark.encoding[t.channel];return"axis"in r&&r.axis});return e.length>0&&e.some(t=>t===null)?null:Ua(e.filter(t=>t!==void 0),"axis",["title"])})}getTitle(){const e=o=>{const a=Pb(o.view,o.channel);if(!ut(a))return{member:o,axisTitle:"axis"in a?a.axis?.title:void 0,explicitTitle:$u("axis"in a?a.axis?.title:void 0,a.title),implicitTitle:$u($t(a)?a.field:void 0,Ur(a)?a.expr:void 0)}},t=Array.from(this.#e).map(e),r=t.map(o=>o.axisTitle).find(o=>o!==void 0);if(r!==void 0)return r;const i=t.filter(o=>{if(wl(o.member.channel)&&!o.explicitTitle){const a=Cn(o.member.channel);return t.find(l=>l.member.view==o.member.view&&l.member.channel==a)?.explicitTitle===void 0}return!0}),s=new Set(i.map(o=>$u(o.explicitTitle,o.implicitTitle)).filter(le));return s.size?[...s].join(", "):null}}function qp(n,e,{spacing:t,devicePixelRatio:r,offset:i,reverse:s}={}){t=t||0,i=i||0;let o=0,a=0;for(const d of n)o+=za(d.px)+(ef(d)?0:t),a+=za(d.grow);o-=t;const l=Math.max(0,e-o),c=r!==void 0?d=>Math.round(d*r)/r:d=>d,u=[],f=[],h=d=>{const g=u.length;if(!g)return;const p=(d?t:0)*(s?-1:1);A-=p;for(let m=0;m<g;m++)f.push({location:A+(m+1)/(g+1)*p,size:0});A+=p,u.length=0};let A=s?Math.max(e,o):0+i;if(n.length==1&&ef(n[0]))return[{location:A,size:0}];for(let d=0;d<n.length;d++){const g=n[d];if(ef(g))u.push(g);else{h(f.length>0);const p=za(g.px)+(a?za(g.grow)/a*l:0);s&&(A-=p),f.push({location:c(A),size:c(p)}),s?A-=t:A+=p+t}}return A+=s?t:-t,h(!1),f}function Dk(n){let e=0,t=0;for(const r of n)e=Math.max(e,r.px??0),t=Math.max(t,r.grow??0);return{px:e,grow:t}}class Nn{constructor(e,t){this.width=e,this.height=t}addPadding(e){return this.#e(e.width,e.height)}subtractPadding(e){return this.#e(-e.width,-e.height)}#e(e,t){return new Nn({px:(this.width.px??0)+e,grow:this.width.grow},{px:(this.height.px??0)+t,grow:this.height.grow})}isGrowing(){return!!(this.width.grow||this.height.grow)}}const Us=Object.freeze({px:0,grow:0}),jp=new Nn(Us,Us);function ef(n){return!n.px&&!n.grow}function za(n){return n||0}function kk(n){return n&&(Ye(n.px)||Ye(n.grow))}function Wp(n){if(ff(n))throw new Error("parseSizeDef does not accept step-based sizes.");if(kk(n))return n;if(Ye(n))return{px:n,grow:0};if(n==="container")return{px:0,grow:1};if(!n)return{px:0,grow:1};throw new Error(`Invalid sizeDef: ${n}`)}class Ke{constructor(e,t,r,i){this.top=e||0,this.right=t||0,this.bottom=r||0,this.left=i||0}get width(){return this.left+this.right}get height(){return this.top+this.bottom}expand(e){return e<=0?this:new Ke(this.top+e,this.right+e,this.bottom+e,this.left+e)}add(e){return new Ke(this.top+e.top,this.right+e.right,this.bottom+e.bottom,this.left+e.left)}subtract(e){return new Ke(this.top-e.top,this.right-e.right,this.bottom-e.bottom,this.left-e.left)}union(e){return new Ke(Math.max(this.top,e.top),Math.max(this.right,e.right),Math.max(this.bottom,e.bottom),Math.max(this.left,e.left))}getHorizontal(){return new Ke(0,this.right,0,this.left)}getVertical(){return new Ke(this.top,0,this.bottom,0)}get horizontalTotal(){return this.left+this.right}get verticalTotal(){return this.top+this.bottom}static createFromConfig(e){return typeof e=="number"?this.createUniformPadding(e):e?this.createFromRecord(e):tf}static createFromRecord(e){return new Ke(e.top,e.right,e.bottom,e.left)}static zero(){return tf}static createUniformPadding(e){return new Ke(e,e,e,e)}}const tf=Ke.createUniformPadding(0);Object.freeze(tf);class si{constructor(){this.ids=[],this.values=[],this.length=0}clear(){this.length=0}push(e,t){let r=this.length++;for(;r>0;){const i=r-1>>1,s=this.values[i];if(t>=s)break;this.ids[r]=this.ids[i],this.values[r]=s,r=i}this.ids[r]=e,this.values[r]=t}pop(){if(this.length===0)return;const e=this.ids,t=this.values,r=e[0],i=--this.length;if(i>0){const s=e[i],o=t[i];let a=0;const l=i>>1;for(;a<l;){const c=(a<<1)+1,u=c+1,f=c+(+(u<i)&+(t[u]<t[c]));if(t[f]>=o)break;e[a]=e[f],t[a]=t[f],a=f}e[a]=s,t[a]=o}return r}peek(){return this.length>0?this.ids[0]:void 0}peekValue(){return this.length>0?this.values[0]:void 0}shrink(){this.ids.length=this.values.length=this.length}}const Xp=Symbol("runtimeNode"),Zp=1e6;function Fk(n){return n?(e,t)=>{n.addDisposer(e,t)}:()=>{}}function $p(n,e){const t={id:n.id,name:n.name,kind:n.kind,get(){return n.value},subscribe(r){return n.listeners.add(r),()=>{n.listeners.delete(r)}}};return Object.defineProperty(t,Xp,{enumerable:!1,configurable:!1,writable:!1,value:n}),e?Object.assign(t,{set(r){e(r)}}):t}function em(n){const e=n[Xp];if(!e)throw new Error("ParamRef is not bound to this graph runtime. Expected runtime-created ref.");return e}function tm(n){for(const e of n)e()}class Rk{#e=1;#t=1;#n=0;#r=!1;#s=!1;#o=new Set;#i=new Set;#a=new si;#c=new si;#l=new Set;#u;constructor(e={}){this.#u=Fk(e.lifecycleRegistry)}createWritable(e,t,r,i,s={}){const o="n"+this.#e++,a=s.notify??!0,l={id:o,name:t,kind:r,value:i,rank:0,disposed:!1,listeners:new Set,subscribe(u){return l.listeners.add(u),()=>{l.listeners.delete(u)}}},c=u=>{if(l.disposed)throw new Error('Cannot set disposed parameter "'+t+'" ('+o+").");u!==l.value&&(l.value=u,a&&(tm(l.listeners),this.#d()))};return this.#u(e,()=>{l.disposed=!0,l.listeners.clear()}),$p(l,c)}computed(e,t,r,i){const o=r.map(em).reduce((h,A)=>Math.max(h,A.rank),0),l={id:"n"+this.#e++,name:t,kind:"derived",rank:o+1,value:i(),disposed:!1,listeners:new Set,fn:i,subscribe(h){return l.listeners.add(h),()=>{l.listeners.delete(h)}}},c=()=>{l.disposed||this.#f(l)},u=r.map(h=>h.subscribe(c)),f=()=>{l.disposed||(l.disposed=!0,u.forEach(h=>h()),l.listeners.clear(),this.#o.delete(l))};return this.#u(e,f),$p(l)}effect(e,t,r){const s=t.map(em).reduce((f,h)=>Math.max(f,h.rank),0),a={id:"n"+this.#e++,rank:s+1,disposed:!1,fn:r},l=()=>{a.disposed||this.#A(a)},c=t.map(f=>f.subscribe(l)),u=()=>{a.disposed||(a.disposed=!0,c.forEach(f=>f()),this.#i.delete(a))};return this.#u(e,u),u}runInTransaction(e){this.#n+=1;try{return e()}finally{this.#n-=1,this.#n===0&&this.#d()}}flushNow(){if(!(this.#n>0||this.#s)){this.#r=!1,this.#s=!0;try{let e=!0;for(;e;){for(e=!1;this.#a.length>0;){e=!0;const t=this.#a.pop();if(this.#o.delete(t),t.disposed)continue;const r=t.value,i=t.fn();i!==r&&(t.value=i,tm(t.listeners))}for(;this.#c.length>0;){e=!0;const t=this.#c.pop();this.#i.delete(t),!t.disposed&&t.fn()}}}finally{this.#s=!1,this.#p()}}}whenPropagated(e={}){if(this.#g())return Promise.resolve();const{signal:t,timeoutMs:r}=e;return t?.aborted?Promise.reject(new Error("whenPropagated aborted")):new Promise((i,s)=>{const o={resolve:i,reject:s};t&&(o.abortHandler=()=>{this.#l.delete(o),s(new Error("whenPropagated aborted"))},t.addEventListener("abort",o.abortHandler,{once:!0})),r!=null&&(o.timeoutId=setTimeout(()=>{this.#l.delete(o),o.abortHandler&&t?.removeEventListener("abort",o.abortHandler),s(new Error("whenPropagated timeout after "+r+" ms"))},r)),this.#l.add(o)})}#f(e){this.#o.has(e)||(this.#o.add(e),this.#a.push(e,this.#h(e.rank)),this.#d())}#A(e){this.#i.has(e)||(this.#i.add(e),this.#c.push(e,this.#h(e.rank)),this.#d())}#h(e){const t=this.#t%Zp;return this.#t+=1,e*Zp+t}#d(){this.#n>0||this.#r||this.#s||(this.#r=!0,queueMicrotask(()=>{this.flushNow()}))}#g(){return this.#n===0&&!this.#r&&!this.#s&&this.#a.length===0&&this.#c.length===0&&this.#o.size===0&&this.#i.size===0}#p(){if(this.#g()){for(const e of this.#l)e.timeoutId&&clearTimeout(e.timeoutId),e.resolve();this.#l.clear()}}}class Mk{#e=1;#t=new Map;createOwner(e,t){const r=e+":"+t+":"+this.#e++;return this.#t.set(r,new Set),r}addDisposer(e,t){const r=this.#t.get(e);if(!r)throw new Error("Unknown owner: "+e);r.add(t)}disposeOwner(e){const t=this.#t.get(e);if(t){for(const r of t)r();t.clear(),this.#t.delete(e)}}}class Nk{#e=1;#t=new Map;createRootScope(e){const t="scope:"+this.#e++;return this.#t.set(t,{params:new Map,ownerId:e}),t}createChildScope(e,t){if(!this.#t.has(t))throw new Error("Unknown parent scope: "+t);const r="scope:"+this.#e++;return this.#t.set(r,{parentScope:t,params:new Map,ownerId:e}),r}getOwnerId(e){const t=this.#t.get(e);if(!t)throw new Error("Unknown scope: "+e);return t.ownerId}clearScope(e){const t=this.#t.get(e);if(!t)throw new Error("Unknown scope: "+e);t.params.clear()}register(e,t,r){Nt(t);const i=this.#t.get(e);if(!i)throw new Error("Unknown scope: "+e);if(i.params.has(t))throw new Error('Parameter "'+t+'" already exists in scope '+e);return i.params.set(t,r),r}resolve(e,t){Nt(t);let r=e;for(;r;){const i=this.#t.get(r);if(!i)throw new Error("Unknown scope: "+r);const s=i.params.get(t);if(s)return s;r=i.parentScope}}}const Tk="RawCode",Pk="Literal",Lk="Property",Ok="Identifier",Uk="ArrayExpression",Gk="BinaryExpression",zk="CallExpression",Hk="ConditionalExpression",Vk="LogicalExpression",_k="MemberExpression",Yk="ObjectExpression",Jk="UnaryExpression";function Qt(n){this.type=n}Qt.prototype.visit=function(n){let e,t,r;if(n(this))return 1;for(e=Kk(this),t=0,r=e.length;t<r;++t)if(e[t].visit(n))return 1};function Kk(n){switch(n.type){case Uk:return n.elements;case Gk:case Vk:return[n.left,n.right];case zk:return[n.callee].concat(n.arguments);case Hk:return[n.test,n.consequent,n.alternate];case _k:return[n.object,n.property];case Yk:return n.properties;case Lk:return[n.key,n.value];case Jk:return[n.argument];case Ok:case Pk:case Tk:default:return[]}}var Ht,z,k,qe,ie,Ha=1,Gs=2,dr=3,Tn=4,Va=5,gr=6,ot=7,zs=8,qk=9;Ht={},Ht[Ha]="Boolean",Ht[Gs]="<end>",Ht[dr]="Identifier",Ht[Tn]="Keyword",Ht[Va]="Null",Ht[gr]="Numeric",Ht[ot]="Punctuator",Ht[zs]="String",Ht[qk]="RegularExpression";var jk="ArrayExpression",Wk="BinaryExpression",Xk="CallExpression",Zk="ConditionalExpression",nm="Identifier",$k="Literal",e4="LogicalExpression",t4="MemberExpression",n4="ObjectExpression",r4="Property",i4="UnaryExpression",Le="Unexpected token %0",s4="Unexpected number",o4="Unexpected string",a4="Unexpected identifier",c4="Unexpected reserved word",l4="Unexpected end of input",nf="Invalid regular expression",rf="Invalid regular expression: missing /",rm="Octal literals are not allowed in strict mode.",u4="Duplicate data property in object literal not allowed in strict mode",_e="ILLEGAL",Hs="Disabled.",f4=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),A4=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0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E3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");function _a(n,e){if(!n)throw new Error("ASSERT: "+e)}function sn(n){return n>=48&&n<=57}function sf(n){return"0123456789abcdefABCDEF".includes(n)}function Vs(n){return"01234567".includes(n)}function h4(n){return n===32||n===9||n===11||n===12||n===160||n>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(n)}function _s(n){return n===10||n===13||n===8232||n===8233}function Ys(n){return n===36||n===95||n>=65&&n<=90||n>=97&&n<=122||n===92||n>=128&&f4.test(String.fromCharCode(n))}function Ya(n){return n===36||n===95||n>=65&&n<=90||n>=97&&n<=122||n>=48&&n<=57||n===92||n>=128&&A4.test(String.fromCharCode(n))}const d4={if:1,in:1,do:1,var:1,for:1,new:1,try:1,let:1,this:1,else:1,case:1,void:1,with:1,enum:1,while:1,break:1,catch:1,throw:1,const:1,yield:1,class:1,super:1,return:1,typeof:1,delete:1,switch:1,export:1,import:1,public:1,static:1,default:1,finally:1,extends:1,package:1,private:1,function:1,continue:1,debugger:1,interface:1,protected:1,instanceof:1,implements:1};function im(){for(;k<qe;){const n=z.charCodeAt(k);if(h4(n)||_s(n))++k;else break}}function of(n){var e,t,r,i=0;for(t=n==="u"?4:2,e=0;e<t;++e)k<qe&&sf(z[k])?(r=z[k++],i=i*16+"0123456789abcdef".indexOf(r.toLowerCase())):ee({},Le,_e);return String.fromCharCode(i)}function g4(){var n,e,t,r;for(n=z[k],e=0,n==="}"&&ee({},Le,_e);k<qe&&(n=z[k++],!!sf(n));)e=e*16+"0123456789abcdef".indexOf(n.toLowerCase());return(e>1114111||n!=="}")&&ee({},Le,_e),e<=65535?String.fromCharCode(e):(t=(e-65536>>10)+55296,r=(e-65536&1023)+56320,String.fromCharCode(t,r))}function sm(){var n,e;for(n=z.charCodeAt(k++),e=String.fromCharCode(n),n===92&&(z.charCodeAt(k)!==117&&ee({},Le,_e),++k,n=of("u"),(!n||n==="\\"||!Ys(n.charCodeAt(0)))&&ee({},Le,_e),e=n);k<qe&&(n=z.charCodeAt(k),!!Ya(n));)++k,e+=String.fromCharCode(n),n===92&&(e=e.substr(0,e.length-1),z.charCodeAt(k)!==117&&ee({},Le,_e),++k,n=of("u"),(!n||n==="\\"||!Ya(n.charCodeAt(0)))&&ee({},Le,_e),e+=n);return e}function p4(){var n,e;for(n=k++;k<qe;){if(e=z.charCodeAt(k),e===92)return k=n,sm();if(Ya(e))++k;else break}return z.slice(n,k)}function m4(){var n,e,t;return n=k,e=z.charCodeAt(k)===92?sm():p4(),e.length===1?t=dr:d4.hasOwnProperty(e)?t=Tn:e==="null"?t=Va:e==="true"||e==="false"?t=Ha:t=dr,{type:t,value:e,start:n,end:k}}function af(){var n=k,e=z.charCodeAt(k),t,r=z[k],i,s,o;switch(e){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++k,{type:ot,value:String.fromCharCode(e),start:n,end:k};default:if(t=z.charCodeAt(k+1),t===61)switch(e){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return k+=2,{type:ot,value:String.fromCharCode(e)+String.fromCharCode(t),start:n,end:k};case 33:case 61:return k+=2,z.charCodeAt(k)===61&&++k,{type:ot,value:z.slice(n,k),start:n,end:k}}}if(o=z.substr(k,4),o===">>>=")return k+=4,{type:ot,value:o,start:n,end:k};if(s=o.substr(0,3),s===">>>"||s==="<<="||s===">>=")return k+=3,{type:ot,value:s,start:n,end:k};if(i=s.substr(0,2),r===i[1]&&"+-<>&|".includes(r)||i==="=>")return k+=2,{type:ot,value:i,start:n,end:k};if(i==="//"&&ee({},Le,_e),"<>=!+-*%&|^/".includes(r))return++k,{type:ot,value:r,start:n,end:k};ee({},Le,_e)}function w4(n){let e="";for(;k<qe&&sf(z[k]);)e+=z[k++];return e.length===0&&ee({},Le,_e),Ys(z.charCodeAt(k))&&ee({},Le,_e),{type:gr,value:parseInt("0x"+e,16),start:n,end:k}}function y4(n){let e="0"+z[k++];for(;k<qe&&Vs(z[k]);)e+=z[k++];return(Ys(z.charCodeAt(k))||sn(z.charCodeAt(k)))&&ee({},Le,_e),{type:gr,value:parseInt(e,8),octal:!0,start:n,end:k}}function om(){var n,e,t;if(t=z[k],_a(sn(t.charCodeAt(0))||t===".","Numeric literal must start with a decimal digit or a decimal point"),e=k,n="",t!=="."){if(n=z[k++],t=z[k],n==="0"){if(t==="x"||t==="X")return++k,w4(e);if(Vs(t))return y4(e);t&&sn(t.charCodeAt(0))&&ee({},Le,_e)}for(;sn(z.charCodeAt(k));)n+=z[k++];t=z[k]}if(t==="."){for(n+=z[k++];sn(z.charCodeAt(k));)n+=z[k++];t=z[k]}if(t==="e"||t==="E")if(n+=z[k++],t=z[k],(t==="+"||t==="-")&&(n+=z[k++]),sn(z.charCodeAt(k)))for(;sn(z.charCodeAt(k));)n+=z[k++];else ee({},Le,_e);return Ys(z.charCodeAt(k))&&ee({},Le,_e),{type:gr,value:parseFloat(n),start:e,end:k}}function C4(){var n="",e,t,r,i,s=!1;for(e=z[k],_a(e==="'"||e==='"',"String literal must starts with a quote"),t=k,++k;k<qe;)if(r=z[k++],r===e){e="";break}else if(r==="\\")if(r=z[k++],!r||!_s(r.charCodeAt(0)))switch(r){case"u":case"x":z[k]==="{"?(++k,n+=g4()):n+=of(r);break;case"n":n+=`
|
|
601
|
-
`;break;case"r":
|
|
602
|
-
`&&++k;else{if(_s(r.charCodeAt(0)))break;n+=r}return e!==""&&ee({},Le,_e),{type:zs,value:n,octal:s,start:t,end:k}}function I4(n,e){let t=n;e.includes("u")&&(t=t.replace(/\\u\{([0-9a-fA-F]+)\}/g,(r,i)=>{if(parseInt(i,16)<=1114111)return"x";ee({},nf)}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"));try{new RegExp(t)}catch{ee({},nf)}try{return new RegExp(n,e)}catch{return null}}function E4(){var n,e,t,r,i;for(n=z[k],_a(n==="/","Regular expression literal must start with a slash"),e=z[k++],t=!1,r=!1;k<qe;)if(n=z[k++],e+=n,n==="\\")n=z[k++],_s(n.charCodeAt(0))&&ee({},rf),e+=n;else if(_s(n.charCodeAt(0)))ee({},rf);else if(t)n==="]"&&(t=!1);else if(n==="/"){r=!0;break}else n==="["&&(t=!0);return r||ee({},rf),i=e.substr(1,e.length-2),{value:i,literal:e}}function b4(){var n,e,t;for(e="",t="";k<qe&&(n=z[k],!!Ya(n.charCodeAt(0)));)++k,n==="\\"&&k<qe?ee({},Le,_e):(t+=n,e+=n);return t.search(/[^gimuy]/g)>=0&&ee({},nf,t),{value:t,literal:e}}function x4(){var n,e,t,r;return ie=null,im(),n=k,e=E4(),t=b4(),r=I4(e.value,t.value),{literal:e.literal+t.literal,value:r,regex:{pattern:e.value,flags:t.value},start:n,end:k}}function B4(n){return n.type===dr||n.type===Tn||n.type===Ha||n.type===Va}function am(){if(im(),k>=qe)return{type:Gs,start:k,end:k};const n=z.charCodeAt(k);return Ys(n)?m4():n===40||n===41||n===59?af():n===39||n===34?C4():n===46?sn(z.charCodeAt(k+1))?om():af():sn(n)?om():af()}function at(){const n=ie;return k=n.end,ie=am(),k=n.end,n}function cm(){const n=k;ie=am(),k=n}function v4(n){const e=new Qt(jk);return e.elements=n,e}function lm(n,e,t){const r=new Qt(n==="||"||n==="&&"?e4:Wk);return r.operator=n,r.left=e,r.right=t,r}function S4(n,e){const t=new Qt(Xk);return t.callee=n,t.arguments=e,t}function Q4(n,e,t){const r=new Qt(Zk);return r.test=n,r.consequent=e,r.alternate=t,r}function cf(n){const e=new Qt(nm);return e.name=n,e}function Js(n){const e=new Qt($k);return e.value=n.value,e.raw=z.slice(n.start,n.end),n.regex&&(e.raw==="//"&&(e.raw="/(?:)/"),e.regex=n.regex),e}function um(n,e,t){const r=new Qt(t4);return r.computed=n==="[",r.object=e,r.property=t,r.computed||(t.member=!0),r}function D4(n){const e=new Qt(n4);return e.properties=n,e}function fm(n,e,t){const r=new Qt(r4);return r.key=e,r.value=t,r.kind=n,r}function k4(n,e){const t=new Qt(i4);return t.operator=n,t.argument=e,t.prefix=!0,t}function ee(n,e){var t,r=Array.prototype.slice.call(arguments,2),i=e.replace(/%(\d)/g,(s,o)=>(_a(o<r.length,"Message reference must be in range"),r[o]));throw t=new Error(i),t.index=k,t.description=i,t}function Ja(n){n.type===Gs&&ee(n,l4),n.type===gr&&ee(n,s4),n.type===zs&&ee(n,o4),n.type===dr&&ee(n,a4),n.type===Tn&&ee(n,c4),ee(n,Le,n.value)}function je(n){const e=at();(e.type!==ot||e.value!==n)&&Ja(e)}function he(n){return ie.type===ot&&ie.value===n}function lf(n){return ie.type===Tn&&ie.value===n}function F4(){const n=[];for(k=ie.start,je("[");!he("]");)he(",")?(at(),n.push(null)):(n.push(pr()),he("]")||je(","));return at(),v4(n)}function Am(){k=ie.start;const n=at();return n.type===zs||n.type===gr?(n.octal&&ee(n,rm),Js(n)):cf(n.value)}function R4(){var n,e,t,r;if(k=ie.start,n=ie,n.type===dr)return t=Am(),je(":"),r=pr(),fm("init",t,r);if(n.type===Gs||n.type===ot)Ja(n);else return e=Am(),je(":"),r=pr(),fm("init",e,r)}function M4(){var n=[],e,t,r,i={},s=String;for(k=ie.start,je("{");!he("}");)e=R4(),e.key.type===nm?t=e.key.name:t=s(e.key.value),r="$"+t,Object.prototype.hasOwnProperty.call(i,r)?ee({},u4):i[r]=!0,n.push(e),he("}")||je(",");return je("}"),D4(n)}function N4(){je("(");const n=uf();return je(")"),n}const T4={if:1};function P4(){var n,e,t;if(he("("))return N4();if(he("["))return F4();if(he("{"))return M4();if(n=ie.type,k=ie.start,n===dr||T4[ie.value])t=cf(at().value);else if(n===zs||n===gr)ie.octal&&ee(ie,rm),t=Js(at());else{if(n===Tn)throw new Error(Hs);n===Ha?(e=at(),e.value=e.value==="true",t=Js(e)):n===Va?(e=at(),e.value=null,t=Js(e)):he("/")||he("/=")?(t=Js(x4()),cm()):Ja(at())}return t}function L4(){const n=[];if(je("("),!he(")"))for(;k<qe&&(n.push(pr()),!he(")"));)je(",");return je(")"),n}function O4(){k=ie.start;const n=at();return B4(n)||Ja(n),cf(n.value)}function U4(){return je("."),O4()}function G4(){je("[");const n=uf();return je("]"),n}function z4(){var n,e,t;for(n=P4();;)if(he("."))t=U4(),n=um(".",n,t);else if(he("("))e=L4(),n=S4(n,e);else if(he("["))t=G4(),n=um("[",n,t);else break;return n}function hm(){const n=z4();if(ie.type===ot&&(he("++")||he("--")))throw new Error(Hs);return n}function Ka(){var n,e;if(ie.type!==ot&&ie.type!==Tn)e=hm();else{if(he("++")||he("--"))throw new Error(Hs);if(he("+")||he("-")||he("~")||he("!"))n=at(),e=Ka(),e=k4(n.value,e);else{if(lf("delete")||lf("void")||lf("typeof"))throw new Error(Hs);e=hm()}}return e}function dm(n){let e=0;if(n.type!==ot&&n.type!==Tn)return 0;switch(n.value){case"||":e=1;break;case"&&":e=2;break;case"|":e=3;break;case"^":e=4;break;case"&":e=5;break;case"==":case"!=":case"===":case"!==":e=6;break;case"<":case">":case"<=":case">=":case"instanceof":case"in":e=7;break;case"<<":case">>":case">>>":e=8;break;case"+":case"-":e=9;break;case"*":case"/":case"%":e=11;break}return e}function H4(){var n,e,t,r,i,s,o,a,l,c;if(n=ie,l=Ka(),r=ie,i=dm(r),i===0)return l;for(r.prec=i,at(),e=[n,ie],o=Ka(),s=[l,r,o];(i=dm(ie))>0;){for(;s.length>2&&i<=s[s.length-2].prec;)o=s.pop(),a=s.pop().value,l=s.pop(),e.pop(),t=lm(a,l,o),s.push(t);r=at(),r.prec=i,s.push(r),e.push(ie),t=Ka(),s.push(t)}for(c=s.length-1,t=s[c],e.pop();c>1;)e.pop(),t=lm(s[c-1].value,s[c-2],t),c-=2;return t}function pr(){var n,e,t;return n=H4(),he("?")&&(at(),e=pr(),je(":"),t=pr(),n=Q4(n,e,t)),n}function uf(){const n=pr();if(he(","))throw new Error(Hs);return n}function gm(n){z=n,k=0,qe=z.length,ie=null,cm();const e=uf();if(ie.type!==Gs)throw new Error("Unexpect token after expression.");return e}var V4={NaN:"NaN",E:"Math.E",LN2:"Math.LN2",LN10:"Math.LN10",LOG2E:"Math.LOG2E",LOG10E:"Math.LOG10E",PI:"Math.PI",SQRT1_2:"Math.SQRT1_2",SQRT2:"Math.SQRT2",MIN_VALUE:"Number.MIN_VALUE",MAX_VALUE:"Number.MAX_VALUE"};function pm(n){function e(o,a,l,c){let u=n(a[0]);return l&&(u=l+"("+u+")",l.lastIndexOf("new ",0)===0&&(u="("+u+")")),u+"."+o+(c<0?"":c===0?"()":"("+a.slice(1).map(n).join(",")+")")}function t(o,a,l){return c=>e(o,c,a,l)}const r="new Date",i="String",s="RegExp";return{isNaN:"Number.isNaN",isFinite:"Number.isFinite",abs:"Math.abs",acos:"Math.acos",asin:"Math.asin",atan:"Math.atan",atan2:"Math.atan2",ceil:"Math.ceil",cos:"Math.cos",exp:"Math.exp",floor:"Math.floor",hypot:"Math.hypot",log:"Math.log",max:"Math.max",min:"Math.min",pow:"Math.pow",random:"Math.random",round:"Math.round",sin:"Math.sin",sqrt:"Math.sqrt",tan:"Math.tan",clamp:function(o){o.length<3&&be("Missing arguments to clamp function."),o.length>3&&be("Too many arguments to clamp function.");const a=o.map(n);return"Math.max("+a[1]+", Math.min("+a[2]+","+a[0]+"))"},now:"Date.now",utc:"Date.UTC",datetime:r,date:t("getDate",r,0),day:t("getDay",r,0),year:t("getFullYear",r,0),month:t("getMonth",r,0),hours:t("getHours",r,0),minutes:t("getMinutes",r,0),seconds:t("getSeconds",r,0),milliseconds:t("getMilliseconds",r,0),time:t("getTime",r,0),timezoneoffset:t("getTimezoneOffset",r,0),utcdate:t("getUTCDate",r,0),utcday:t("getUTCDay",r,0),utcyear:t("getUTCFullYear",r,0),utcmonth:t("getUTCMonth",r,0),utchours:t("getUTCHours",r,0),utcminutes:t("getUTCMinutes",r,0),utcseconds:t("getUTCSeconds",r,0),utcmilliseconds:t("getUTCMilliseconds",r,0),length:t("length",null,-1),parseFloat:"parseFloat",parseInt:"parseInt",upper:t("toUpperCase",i,0),lower:t("toLowerCase",i,0),substring:t("substring",i),split:t("split",i),trim:t("trim",i,0),btoa:"btoa",atob:"atob",regexp:s,test:t("test",s),if:function(o){o.length<3&&be("Missing arguments to if function."),o.length>3&&be("Too many arguments to if function.");const a=o.map(n);return"("+a[0]+"?"+a[1]+":"+a[2]+")"}}}function _4(n){const e=n&&n.length-1;return e&&(n[0]==='"'&&n[e]==='"'||n[0]==="'"&&n[e]==="'")?n.slice(1,-1):n}function mm(n){n=n||{};const e=n.allowed?Eo(n.allowed):{},t=n.forbidden?Eo(n.forbidden):{},r=n.constants||V4,i=(n.functions||pm)(f),s=n.globalvar,o=n.fieldvar,a=At(s)?s:d=>`${s}["${d}"]`;[...Object.getOwnPropertyNames(Object.prototype).filter(d=>typeof Object.prototype[d]=="function")];let l={},c={},u=0;function f(d){if(le(d))return d;const g=h[d.type];return g==null&&be("Unsupported type: "+d.type),g(d)}const h={Literal:d=>d.raw,Identifier:d=>{const g=d.name;return u>0?g:Qr(t,g)?be("Illegal identifier: "+g):Qr(r,g)?r[g]:Qr(e,g)?g:(l[g]=1,a(g))},MemberExpression:d=>{const g=!d.computed,p=f(d.object);g&&(u+=1);const m=f(d.property);return p===o&&(c[_4(m)]=1),g&&(u-=1),p+(g?"."+m:"["+m+"]")},CallExpression:d=>{d.callee.type!=="Identifier"&&be("Illegal callee type: "+d.callee.type);const g=d.callee.name,p=d.arguments,m=Qr(i,g)&&i[g];return m||be("Unrecognized function: "+g),At(m)?m(p):m+"("+p.map(f).join(",")+")"},ArrayExpression:d=>"["+d.elements.map(f).join(",")+"]",BinaryExpression:d=>"("+f(d.left)+" "+d.operator+" "+f(d.right)+")",UnaryExpression:d=>"("+d.operator+f(d.argument)+")",ConditionalExpression:d=>"("+f(d.test)+"?"+f(d.consequent)+":"+f(d.alternate)+")",LogicalExpression:d=>"("+f(d.left)+d.operator+f(d.right)+")",ObjectExpression:d=>{for(const g of d.properties){const p=g.key.name;f2.has(p)&&be("Illegal property: "+p)}return"{"+d.properties.map(f).join(",")+"}"},Property:d=>{u+=1;const g=f(d.key);return u-=1,g+":"+f(d.value)}};function A(d){const g={code:f(d),globals:Object.keys(l),fields:Object.keys(c)};return l={},c={},g}return A.functions=i,A.constants=r,A}function wm(n,e,t){return t=(t-n)/(e-n),t=Math.max(0,Math.min(1,t)),t*t*(3-2*t)}function Y4(n,e,t){return jr((t-n)/(e-n),0,1)}const ym={clamp:jr,format(n,e){return He(e)(n)},mapHasKey(n,e){return n.has(e)},isArray:Ce,isBoolean:Ti,isDefined(n){return n!==void 0},isNumber:Ye,isObject:ze,isRegExp:v2,isString:le,isValid(n){return n!=null&&n===n},lerp:zA,linearstep:Y4,replace(n,e,t){return String(n).replace(e,t)},smoothstep:wm};function J4(n){const e=pm(n);for(const t in ym)e[t]=`this.${t}`;return e}const K4=mm({forbidden:[],allowed:["datum","undefined"],globalvar:"globalObject",fieldvar:"datum",functions:J4});function q4(n,e={}){try{const t=gm(n),r=K4(t),i=Function("datum","globalObject",`"use strict";
|
|
607
|
+
chrM 16299`};function wm(t){if(!(t in mm))throw new Error(`Unknown assembly: ${t}`);return mm[t].split(`
|
|
608
|
+
`).map(e=>{const n=e.split(" ");return{name:n[0],size:parseInt(n[1])}})}const b4=/^([A-Za-z]+:)?\/\//;function zn(t,e){if(e&&b4.test(e))return e;const n=typeof t=="function"?t():t;if(!n)return e;if(!e)return n;if(/[#?]/.test(n))throw new Error(`Cannot append to a url with query or hash. Append: ${e}, base: ${n}`);return ym(n)+e}function E4(t,e,n=I4()){const i=typeof t=="function"?t():t;if(!e)return i;try{if(i){const r=n?new URL(i,n).href:new URL(i).href;return new URL(e,r).href}else if(n)return new URL(e,n).href}catch{}return zn(i,e)}function ym(t){const e=t.replace(/[^/]*$/,"");return e===""?void 0:e.endsWith("://")?t+"/":e}function I4(){if(typeof document<"u"&&document.baseURI)return document.baseURI;if(typeof window<"u"&&window.location?.href)return window.location.href}class Ks{constructor(e){if(this.config={name:"custom",...e},"baseUrl"in e)throw new Error("The `baseUrl` property in genome config has been removed in GenomeSpy v0.52.0. Use `url` instead. See https://genomespy.app/docs/genomic-data/genomic-coordinates/.");if(!vf(e))throw new Error("Not a genome configuration: "+JSON.stringify(e));if(this.chromosomes=[],this.cumulativeChromPositions=new Map,this.chromosomesByName=new Map,this.startByIndex=[],this.totalSize=0,bm(this.config))this.setChromSizes(this.config.contigs);else if(!Bf(this.config)){const n=wm(this.config.name);if(n)this.setChromSizes(n);else throw new Error(`Unknown genome: ${this.config.name}. Please provide contigs or a URL. See https://genomespy.app/docs/genomic-data/genomic-coordinates/.`)}}get name(){return this.config.name}async load(e){if(Bf(this.config))try{const n=zn(e,this.config.url),i=await fetch(n);if(!i.ok)throw new Error(`${i.status} ${i.statusText}`);this.setChromSizes(x4(await i.text()))}catch(n){throw new Error(`Could not load chrom sizes: ${this.config.url}. Reason: ${n.message}`)}}hasChrPrefix(){return this.chromosomes.some(e=>e.name.startsWith("chr"))}setChromSizes(e){this.chromosomes=[],this.cumulativeChromPositions=new Map,this.chromosomesByName=new Map;let n=0;this.startByIndex=[0];for(let i=0;i<e.length;i++){this.startByIndex.push(n);const r=e[i].size,s={...e[i],continuousStart:n,continuousEnd:n+r,continuousInterval:[n,n+r],index:i,number:i+1,odd:!(i&1)};this.chromosomes.push(s);const o=s.name.replace(/^chr/i,"");for(const a of["chr"+o,"CHR"+o,"Chr"+o,s.number,""+s.number,o,s.name])this.cumulativeChromPositions.set(a,n),this.chromosomesByName.set(a,s);n+=s.size}this.totalSize=n}getExtent(){return[0,this.totalSize]}toContinuous(e,n){let i=this.cumulativeChromPositions.get(e);if(i===void 0)throw new Error("Unknown chromosome/contig: "+e);return i+ +n}toChromosome(e){if(e>this.totalSize)return;e=Math.floor(e);const n=xn(this.startByIndex,e)-1;if(n>0&&n<=this.chromosomes.length)return this.chromosomes[n-1]}toChromosomal(e){const n=this.toChromosome(e);if(n)return{chrom:n.name,pos:Math.floor(e)-n.continuousStart}}getChromosome(e){return this.chromosomesByName.get(e)}formatInterval(e){return C4(...this.toChromosomalInterval(e))}formatLocus(e){const n=this.toChromosomal(e);if(n)return y4(n)}toChromosomalInterval(e){const n=this.toChromosomal(e[0]+.5),i=this.toChromosomal(e[1]-.5);return i.pos+=1,[n,i]}toContinuousInterval(e){let[n,i]=e;return i||(i=n),[this.toContinuous(n.chrom,n.pos??0),this.toContinuous(i.chrom,i.pos??this.chromosomesByName.get(i.chrom)?.size)]}toDiscreteChromosomeIntervals(e){const n=e[0],i=e[1],r=[];if(n.chrom===i.chrom)r.push({chrom:n.chrom,startPos:n.pos,endPos:i.pos});else{const s=this.chromosomes.findIndex(a=>a.name===n.chrom),o=this.chromosomes.findIndex(a=>a.name===i.chrom);r.push({chrom:n.chrom,startPos:n.pos,endPos:this.chromosomes[s].size});for(let a=s+1;a<o;a++)r.push({chrom:this.chromosomes[a].name,startPos:0,endPos:this.chromosomes[a].size});r.push({chrom:i.chrom,startPos:0,endPos:i.pos})}return r}continuousToDiscreteChromosomeIntervals(e){return this.toDiscreteChromosomeIntervals([this.toChromosomal(e[0]),this.toChromosomal(e[1])])}parseInterval(e){const n=e.match(/^(chr[0-9A-Z]+)(?::([0-9,]+)(?:-(?:(chr[0-9A-Z]+):)?([0-9,]+))?)?$/);if(n){const i=n[1];if(n.slice(2).every(a=>a===void 0)){const a=this.getChromosome(i);return a?[a.continuousStart,a.continuousEnd]:void 0}const r=n[3]||i,s=parseInt(n[2].replace(/,/g,"")),o=n[4]!==void 0?parseInt(n[4].replace(/,/g,"")):s;return[this.toContinuous(i,s-1),this.toContinuous(r,o)]}}}function x4(t){return VI(t).map(([e,n])=>({name:e,size:parseInt(n)}))}function Cm(t){return Ge(t)&&"chrom"in t}function v4(t){return t.every(Cm)}function vf(t){return Ge(t)&&("name"in t||Bf(t)||bm(t))}function Bf(t){return vf(t)&&"url"in t}function bm(t){return vf(t)&&"contigs"in t}function B4(){const t=If().numberingOffset(1);let e;t.genome=function(i){return arguments.length?(e=i,t):e},t.ticks=i=>{if(!e)return[];const r=t.domain(),s=t.numberingOffset(),[o,a]=[Math.max(r[0],0),Math.min(r[1],e.totalSize-1)].map(u=>e.toChromosome(u)),l=Math.max(1,ri(r[0],r[1],i)),c=[];for(let u=o.index;u<=a.index;u++){const f=e.chromosomes[u],h=Math.max(f.continuousStart+l,r[0]-(r[0]-f.continuousStart)%l),A=Math.min(f.continuousEnd-l/4,r[1]+1);for(let d=h;d<=A;d+=l){const g=d-s;g>=r[0]&&g<r[1]&&c.push(g)}}return c},t.tickFormat=(i,r)=>{if(!e)return;if(r)throw new Error("Locus scale's tickFormat does not support a specifier!");const s=t.domain(),o=s[1]-s[0],a=t.numberingOffset(),c=ri(s[0],s[1],Math.min(i,Math.ceil(o)))<1e6?He(","):He(".3s"),u=f=>f-e.toChromosome(f).continuousStart;return f=>c(u(f)+a)};const n=t.copy;return t.copy=()=>{const i=n();let r=e;return i.genome=function(s){return arguments.length?(r=s,i):r},i.genome(e)},t}function S4(t){return t.type=="locus"}function D4(t,e){const n=js(t);return n?n.toChromosomal(e):e}function Q4(t,e){const n=js(t);return n&&Cm(e)?n.toContinuous(e.chrom,e.pos):e}function k4(t,e){const n=js(t);return n&&v4(e)?n.toContinuousInterval(e):e}function R4(t,e){const n=js(t);return n?n.toChromosomalInterval(e):e}function F4(t){const e=js(t);if(!e)throw new Error("No genome has been defined!");return e.getExtent()}function js(t){if(t&&"toChromosomal"in t)return t;if(t&&"genome"in t)return t.genome()}function Em(t,e,n){return qe(e)&&n!=null&&(e=Math.min(e,~~(Kr(t.domain())/n)||1)),Ge(e)&&(e.step,e=e.interval),e}function Im(t,e,n){var i=t.range(),r=Math.floor(i[0]),s=Math.ceil(vt(i));if(r>s&&(i=s,s=r,r=i),e=e.filter(function(a){return a=t(a),r<=a&&a<=s}),n>0&&e.length>1){for(var o=[e[0],vt(e)];e.length>n&&e.length>=3;)e=e.filter(function(a,l){return!(l%2)});e.length<3&&(e=o)}return e}function N4(t,e){return t.bins?Im(t,M4(t.bins,e)):t.ticks?t.ticks(e):t.domain()}function M4(t,e){var n=t.length,i=~~(n/(e||n));return i<2?t.slice():t.filter(function(r,s){return!(s%i)})}function T4(t,e,n){var i=t.tickFormat?t.tickFormat(e,n):n?He(n):String;if(Hp(t.type)){var r=L4(n);i=t.bins?r:P4(i,r)}return i}function P4(t,e){return function(n){return t(n)?e(n):""}}function L4(t){var e=Hi(t||",");if(e.precision==null){switch(e.precision=12,e.type){case"%":e.precision-=2;break;case"e":e.precision-=1;break}return O4(He(e),He(".1f")(1)[1])}else return He(e)}function O4(t,e){return function(n){var i=t(n),r=i.indexOf(e),s,o;if(r<0)return i;for(s=U4(i,r),o=s<i.length?i.slice(s):"";--s>r;)if(i[s]!=="0"){++s;break}return i.slice(0,s)+o}}function U4(t,e){var n=t.lastIndexOf("e"),i;if(n>0)return n;for(n=t.length;--n>e;)if(i=t.charCodeAt(n),i>=48&&i<=57)return n+1}const _4="locus",z4="index";var G4=5;function H4(t){const e=t.type;return!t.bins&&(e===ur||e===Ts||e===Ps)}function xm(t){return Le(t)&&![Ht,z4,_4].includes(t)}function vm(t){return t||{warn:(e,...n)=>console.warn(e,...n)}}var Y4=Po(["set","modified","clear","type","scheme","schemeExtent","schemeCount","domain","domainMin","domainMid","domainMax","domainRaw","domainImplicit","nice","zero","bins","range","rangeStep","round","reverse","interpolate","interpolateGamma","zoom","fp64","name"]);function Bm(t,e,n){n=vm(n);for(const r in t)if(!Y4[r]){if(r==="padding"&&xm(e.type))continue;dt(e[r])?e[r](t[r]):n.warn("Unsupported scale property: "+r)}const i=Sm(e,t,n);i.domain&&e.domain(i.domain),i.applyOrdinalUnknown&&e.unknown(i.ordinalUnknown),Z4(e,t,X4(e,t,i.count))}function V4(t,e){const n=J4(t),i=re(n);if(!i)throw new Error("Unknown scale type: "+n);const r=i();return!t.domain&&Le(r.type)&&(t.domain=[0,0]),Bm(t,r,e),r}function J4(t){var e=t.type,n="",i;return e===Ht?Ht+"-"+ur:(q4(t)&&(i=t.rawDomain?t.rawDomain.length:t.domain?t.domain.length+ +(t.domainMid!=null):0,n=i===2?Ht+"-":i===3?fr+"-":""),(n+e||ur).toLowerCase())}function q4(t){const e=t.type;return Le(e)&&e!==Tp&&e!==Pp&&(t.scheme||t.range&&t.range.length&&t.range.every(le))}function K4(t){if(!t.copy)return t;const e=t.copy();return e.type==null&&t.type!=null&&(e.type=t.type),e}function Sm(t,e,n){if(!t.domain)return{domain:null,count:0,ordinalUnknown:void 0,applyOrdinalUnknown:!1};n=vm(n);const i=K4(t);var r=j4(i,e.domainRaw,n);if(r>-1)return{domain:i.domain(),count:r,ordinalUnknown:i.type===Ls&&e.domainImplicit?Na:void 0,applyOrdinalUnknown:!1};var s=e.domain,o=i.type,a=e.zero||e.zero===void 0&&H4(i),l,c;return s?(xm(o)&&e.padding&&s[0]!==vt(s)&&(s=W4(o,s,e.range,e.padding,e.exponent,e.constant)),(a||e.domainMin!=null||e.domainMax!=null||e.domainMid!=null)&&(l=(s=s.slice()).length-1||1,a&&(s[0]>0&&(s[0]=0),s[l]<0&&(s[l]=0)),e.domainMin!=null&&(s[0]=e.domainMin),e.domainMax!=null&&(s[l]=e.domainMax),e.domainMid!=null&&(c=e.domainMid,(c<s[0]||c>s[l])&&n.warn("Scale domainMid exceeds domain min or max.",c),s.splice(l,0,c))),i.domain(Dm(o,s,n)),e.nice&&i.nice&&i.nice(e.nice!==!0&&Em(i,e.nice)||null),{domain:i.domain(),count:s.length,ordinalUnknown:o===Ls&&e.domainImplicit?Na:void 0,applyOrdinalUnknown:o===Ls}):{domain:null,count:0,ordinalUnknown:void 0,applyOrdinalUnknown:!1}}function j4(t,e,n){return e?(t.domain(Dm(t.type,e,n)),e.length):-1}function W4(t,e,n,i,r,s){n??=[0,1];var o=Math.abs(vt(n)-n[0]),a=o/(o-2*i),l=t===_n?SA(e,null,a):t===Ps?cl(e,null,a,.5):t===Ts?cl(e,null,a,r||1):t===Ja?DA(e,null,a,s||1):BA(e,null,a);return e=e.slice(),e[0]=l[0],e[e.length-1]=l[1],e}function Dm(t,e,n){if(Hp(t)){var i=Math.abs(e.reduce(function(r,s){return r+(s<0?-1:s>0?1:0)},0));i!==e.length&&n.warn("Log scale domain includes zero: "+ul(e))}return e}function X4(t,e,n){let i=e.bins;if(i&&!be(i)){const r=(i.start==null||i.stop==null)&&t.domain(),s=i.start==null?r[0]:i.start,o=i.stop==null?vt(r):i.stop,a=i.step;a||xe("Scale bins parameter missing step property."),i=rs(s,o+a,a)}return i?t.bins=i:t.bins&&delete t.bins,t.type===hf&&(i?!e.domain&&!e.domainRaw&&(t.domain(i),n=i.length):t.bins=t.domain()),n}function Z4(t,e,n){var i=t.type,r=e.round||!1,s=e.range;if(e.rangeStep!=null)s=$4(i,e,n);else if(e.scheme&&(s=e8(i,e,n),dt(s))){if(t.interpolator)return t.interpolator(s);xe(`Scale type ${i} does not support interpolating color schemes.`)}if(s&&Ka(i))return t.interpolator(ja(Sf(s,e.reverse),e.interpolate,e.interpolateGamma));s&&e.interpolate&&t.interpolate?t.interpolate(Yp(e.interpolate,e.interpolateGamma)):dt(t.round)?t.round(r):dt(t.rangeRound)&&t.interpolate(r?Ns:On),s&&t.range(Sf(s,e.reverse))}function $4(t,e,n){t!==Up&&t!==ff&&xe("Only band and point scales support rangeStep.");var i=(e.paddingOuter!=null?e.paddingOuter:e.padding)||0,r=t===ff?1:(e.paddingInner!=null?e.paddingInner:e.padding)||0;return[0,e.rangeStep*lf(n,r,i)]}function e8(t,e,n){var i=e.schemeExtent,r,s;return be(e.scheme)?s=ja(e.scheme,e.interpolate,e.interpolateGamma):(r=e.scheme.toLowerCase(),s=df(r),s||xe(`Unrecognized scheme name: ${e.scheme}`)),n=t===Op?n+1:t===hf?n-1:t===uf||t===Lp?+e.schemeCount||G4:n,Ka(t)?Qm(s,i,e.reverse):dt(s)?ZQ(Qm(s,i),n):t===Ls?s:s.slice(0,n)}function Qm(t,e,n){return dt(t)&&(e||n)?XQ(t,Sf(e||[0,1],n)):t}function Sf(t,e){return e?t.slice().reverse():t}class t8{#e;#t=new Set;#n;#i;#r;#o;#s=0;constructor({getParamRuntime:e,onRangeChange:n,onDomainChange:i,getGenomeStore:r}){this.#n=e,this.#i=n,this.#r=i,this.#o=r}get scale(){return this.#e}getLocusGenome(e){const n=this.#o?.();if(!n)throw new Error("No genome has been defined!");return e?n.getGenome(e):n.getGenome()}createScale(e){const n=V4({...this.#a(e),range:void 0});return n.props=e,"unknown"in n&&n.unknown(null),this.#e=n,this.#c(e),this.#l(),this.#u(),this.#e}#c(e){const n=this.#e;!n||!S4(n)||n.genome(this.getLocusGenome(e.assembly))}reconfigureScale(e){const n=this.#e;!n||n.type=="null"||(Bm({...this.#a(e),range:void 0},n),n.props=e,this.#l())}withDomainNotificationsSuppressed(e){this.#s+=1;try{e()}finally{this.#s-=1}}#a(e){const n=e,{assembly:i,domainIndexer:r,...s}=n;return s}#l(){const e=this.#e;if(!e)return;const n=e.props;this.#t.forEach(s=>s.invalidate()),this.#t.clear();const i=i8({range:n.range,reverse:n.reverse,createExpression:s=>this.#n().createExpression(s),registerExpr:s=>this.#t.add(s)});if(!i)return;if("values"in i){e.range(i.values);return}const r=()=>e.range(i.evaluate());i.setup(r),r()}#u(){const e=this.#e;if(!e)return;const n=e.range,i=e.domain,r=()=>this.#i?.();n8(e,{onRangeChange:r,onDomainChange:()=>{this.#s>0||this.#r?.()},range:n,domain:i}),r()}dispose(){this.#t.forEach(e=>e.invalidate()),this.#t.clear()}}function n8(t,{onRangeChange:e,onDomainChange:n,range:i,domain:r}){typeof i=="function"&&(t.range=(function(s){if(arguments.length)i(s),e?.();else return i()})),typeof r=="function"&&(t.domain=(function(s){if(arguments.length)r(s),n?.();else return r()}))}function i8({range:t,reverse:e,createExpression:n,registerExpr:i}){if(!t||!be(t))return null;const r=(s,o)=>o?s.slice().reverse():s;if(t.some(Ee)){let s;return{dynamic:!0,evaluate:()=>r(s.map(l=>l()),e),setup:l=>{s=t.map(c=>{if(Ee(c)){const u=n(c.expr);return u.subscribe(l),i(u),()=>u(null)}return()=>c})}}}return{dynamic:!1,values:r(t,e)}}function ec(t,e,n){if(n=n||[],t.some(o=>o===null)){if(t.every(o=>o===null))return null;throw console.warn(t),new Error("Cannot merge objects with nulls!")}const i={},r=(o,a)=>o===a||dr(o)&&dr(a)||dr(o)&&a===!0||o===!0&&Ge(a)||Array.isArray(o)&&Array.isArray(a)&&o.length===a.length&&o.every((l,c)=>l===a[c]),s=o=>{for(let a in o){const l=o[a];if(!n.includes(a)&&l!==void 0)if(i[a]!==void 0&&!r(i[a],l))console.warn(`Conflicting property ${a} of ${e}: (${JSON.stringify(i[a])} and ${JSON.stringify(o[a])}). Using ${JSON.stringify(i[a])}.`);else{const c=i[a];if(dr(c))dr(l)&&(i[a]=ec([c,l],a));else if(dr(l)){if(!(c===!0||c===void 0))throw new Error("Bug in merge! Target is: "+c);i[a]=ec([{},l],a)}else i[a]=l}}};for(const o of t)s(o);return i}function dr(t){return Ge(t)&&!Array.isArray(t)}const km="quantitative",Rm="ordinal",Fm="nominal",ln="locus",tc="index";function r8(t,e,n){const i={};return n&&(i.zero=!1),bs(t)?i.nice=!n:Dn(t)?i.scheme=e==Fm?"tableau10":e==Rm?"blues":"viridis":aa(t)?i.range=t=="shape"?["circle","square","triangle-up","cross","diamond"]:[]:t=="size"?i.range=[0,400]:t=="angle"&&(i.range=[0,360]),i}function s8(t,e){if(e==tc||e==ln){if(oa(t))return e;throw new Error(t+" does not support "+e+" data type. Only positional channels do.")}const n={x:["band","band","linear"],y:["band","band","linear"],size:[void 0,"point","linear"],opacity:[void 0,"point","linear"],fillOpacity:[void 0,"point","linear"],strokeOpacity:[void 0,"point","linear"],color:["ordinal","ordinal","linear"],fill:["ordinal","ordinal","linear"],stroke:["ordinal","ordinal","linear"],strokeWidth:[void 0,void 0,"linear"],shape:["ordinal","ordinal",void 0],dx:[void 0,void 0,"null"],dy:[void 0,void 0,"null"],angle:[void 0,void 0,"linear"],sample:["null",void 0,void 0]},r=["sample"].includes(t)?"null":n[t]?n[t][[Fm,Rm,km].indexOf(e)]:e==km?"linear":"ordinal";if(r===void 0)throw new Error('Channel "'+t+'" is not compatible with "'+e+'" data type. Use of a proper scale may be needed.');return r}function o8(t,e){bs(e)&&t.type!=="ordinal"&&(t.range=[0,1]),e=="opacity"&&Le(t.type)&&(t.clamp=!0)}function a8({channel:t,dataType:e,members:n,isExplicitDomain:i}){const r=Array.from(n).map(a=>a.channelDef.scale).filter(a=>a!==void 0),s=ec(r,"scale",["domain"]);if(s===null||s.type=="null")return{type:"null"};const o={...r8(t,e,i),...s};return o.type||(o.type=s8(t,e)),t=="y"&&cn(o.type)&&o.reverse==null&&(o.reverse=!0),o.range&&o.scheme&&delete o.scheme,!("zoom"in o)&&[tc,ln].includes(o.type)&&(o.zoom=!0),o8(o,t),o}function Nm(t,e){const n=t.findRuntimeForParam(e);if(!n)throw new Error(`Selection domain parameter "${e}" was not found.`);return n}function Mm(t,e){if(!t)throw new Error(`Selection domain parameter "${e}" was not found.`);if(!Kl(t))throw new Error(`Selection domain parameter "${e}" must be an interval selection.`);return t}function Tm(t,e,n={}){if(!t||t.length!==2)return;const i=Number(t[0]),r=Number(t[1]);if(!Number.isFinite(i)||!Number.isFinite(r))return;let s=Math.min(i,r),o=Math.max(i,r);if(s=Math.max(e[0],s),o=Math.min(e[1],o),!(s>o)&&!(n.roundToIntegers&&(s=Math.ceil(s),o=Math.ceil(o),s=Math.max(e[0],s),o=Math.min(e[1],o),s>o)))return[s,o]}class Ws extends Array{constructor(){super(),this.type=void 0}extend(e){return this}extendAll(e){if(e instanceof Ws&&e.type!=this.type)throw new Error(`Cannot combine different types of domains: ${this.type} and ${e.type}`);for(const n of e)this.extend(n);return this}extendAllWithAccessor(e,n){for(const i of e)this.extend(n(i));return this}}class Df extends Ws{constructor(){super(),this.type="quantitative"}extend(e){return e==null||Number.isNaN(e)?this:(e=+e,this.length?e<this[0]?this[0]=e:e>this[1]&&(this[1]=e):(this.push(e),this.push(e)),this)}}class Pm extends Ws{constructor(){super(),this.type="ordinal",this.uniqueValues=new Set}extend(e){return e==null||Number.isNaN(e)?this:(this.uniqueValues.has(e)||(this.uniqueValues.add(e),this.push(e)),this)}}class Qf extends Pm{constructor(){super(),this.type="nominal"}}class c8 extends Ws{constructor(e){super();let n=0;for(let i=1;i<e.length;i++)n+=Math.sign(e[i]-e[i-1]);if(Math.abs(n)!=e.length-1)throw new Error("Piecewise domain must be strictly increasing or decreasing: "+JSON.stringify(e));e.forEach(i=>this.push(i))}extend(e){if(this.includes(e))return this;throw new Error("Piecewise domains are immutable and cannot be unioned!")}}const Lm={quantitative:Df,index:Df,locus:Df,nominal:Qf,ordinal:Pm};function Xs(t,e){if(t=="quantitative"&&l8(e)){const n=new c8(e);return n.type=t,n}else if(Lm[t]){const n=new Lm[t];return n.type=t,e&&n.extendAll(e),n}throw new Error("Unknown type: "+t)}function l8(t){return t&&t.length>0&&t.length!=2&&t.every(e=>typeof e=="number")}class u8{#e;#t;#n;#i;#r;#o;#s;#c=void 0;#a=!0;#l=new WeakMap;constructor({getMembers:e,getDataMembers:n,getType:i,getLocusExtent:r,fromComplexInterval:s}){this.#e=e,this.#t=n??e,this.#n=i,this.#i=r,this.#r=s}get initialDomainSnapshot(){return this.#o}hasConfiguredDomain(){return!!this.getConfiguredDomain()}hasSelectionConfiguredDomain(){return this.getConfiguredDomain(),!!this.#c}getSelectionConfiguredDomainInfo(){return this.getConfiguredDomain(),this.#c}invalidateConfiguredDomain(){this.#a=!0}getDefaultDomain(e=!1,n){return p8(this.#n(),this.#i,e?this.getDataDomain():void 0,n)}getConfiguredOrDefaultDomain(e=!1,n){return this.getConfiguredDomain()??this.getDefaultDomain(e,n)}getConfiguredDomain(){if(!this.#a)return this.#s;const e=f8(this.#e(),this.#r);return this.#s=e.domain,this.#c=e.selectionRef,this.#a=!1,e.domain}getDataDomain(){return g8(this.#t(),this.#n,e=>this.#u(e))}captureInitialDomain(e,n){if(!this.#o&&Le(e.type)){const i=e.domain();Kr(i)>0&&(this.#o=i)}return n?!1:(this.#o=e.domain(),!0)}#u(e){const n=this.#l.get(e);if(n)return n;const i=e.view.mark.encoders;if(!i)return[];const r=i[e.channel];if(!r)return[];const s=r.accessors??[];if(s.length===0)return[];const o=s.filter(Wd).filter(a=>!a.channelDef.domainInert);return this.#l.set(e,o),o}}function f8(t,e){const n=Array.from(t).filter(c=>c.contributesToDomain).filter(c=>c.channelDef.scale?.domain),i=[];let r,s,o,a,l=!1;for(const c of n){const u=c.channelDef.scale.domain;if(d8(u)){if(l)throw new Error("Cannot mix selection-driven and literal configured domains on a shared scale.");const f=h8(c,u,e);if(r&&r!==f.key)throw new Error("Conflicting selection domain references on a shared scale: "+s+" vs "+f.description+".");if(!o)o=f.sync;else if(o==="auto")o=f.sync;else if(f.sync!=="auto"&&o!==f.sync)throw new Error("Conflicting selection domain sync modes on a shared scale: "+o+" vs "+f.sync+".");r=f.key,s=f.description,a={param:f.param,encoding:f.encoding,sync:o},f.domain&&i.push(f.domain);continue}if(r)throw new Error("Cannot mix literal configured domains with selection-driven domains on a shared scale.");l=!0,i.push(Xs(c.channelDef.type,e(u)))}return i.length>0?{domain:i.reduce((c,u)=>c.extendAll(u)),selectionRef:a}:r?{domain:void 0,selectionRef:a}:{domain:void 0,selectionRef:void 0}}function h8(t,e,n){const i=e.param,r=e.sync??"auto";if(r!=="auto"&&r!=="oneWay"&&r!=="twoWay")throw new Error(`Invalid selection domain sync mode "${r}" for parameter "${i}".`);const s=A8(t.channel,e,i),o=t.view.paramRuntime,l=Mm(o?.findValue(i),i).intervals[s],c=[i,s].join("|"),u=i+"."+s;return!l||l.length!==2?{domain:void 0,key:c,description:u,param:i,encoding:s,sync:r}:{domain:Xs(t.channelDef.type,n(l)),key:c,description:u,param:i,encoding:s,sync:r}}function A8(t,e,n){if(e.encoding)return e.encoding;const i=rn(t);if(i==="x"||i==="y")return i;throw new Error(`Selection domain reference "${n}" on channel "${t}" requires an explicit "encoding" ("x" or "y").`)}function d8(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&typeof t.param=="string"}function g8(t,e,n){const i=e(),r=new Map;for(const o of t){if(!o.contributesToDomain)continue;const a=n(o);if(a.length===0)continue;const l=o.view.getCollector();for(const c of a){const u=Zd(c,i),f=l??null;let h=r.get(f);if(h||(h=new Map,r.set(f,h)),h.has(u))continue;let A;if(l)A=l.getDomain(u,i,c);else if(c.constant)A=Xs(i),A.extend(c({}));else continue;h.set(u,A)}}if(r.size===0)return;const s=Xs(i);for(const o of r.values())for(const a of o.values())s.extendAll(a);return s}function p8(t,e,n,i){return t==ln?e(i):n??[]}function m8(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function w8(t,e,n){return t*Math.pow(e/t,n)}const y8=t=>new Promise(e=>setTimeout(e,t));function C8(){return{canceled:!1}}function b8(t){const e=t.requestAnimationFrame||window.requestAnimationFrame,n=t.signal,i=t.cancelToken,r=()=>new Promise((s,o)=>{if(i?.canceled)return s();if(n?.aborted)return o("aborted");const a=performance.now(),l=a+(t.duration||1e3),c=typeof t.from=="number"?t.from:0,u=typeof t.to=="number"?t.to:1,f=t.easingFunction||(m=>m),h=m=>(m-a)/(l-a),A=m=>m*(u-c)+c,d=m=>Math.max(0,Math.min(1,m)),g=m=>{if(i?.canceled){s();return}n?.aborted?o("aborted"):(t.onUpdate(A(f(d(h(m))))),m<l?e(g):(t.onUpdate(A(f(1))),s()))};e(g)});return t.delay?i?.canceled?Promise.resolve():n?.aborted?Promise.reject("aborted"):y8(t.delay).then(r):r()}function Om(t,e,n,i,r={}){const s=r.onUnsupported??"throw";switch(t.type){case"linear":case"index":case"locus":return BA(e,n,i);case"log":return SA(e,n,i);case"pow":case"sqrt":return cl(e,n,i,t.exponent());case"symlog":return DA(e,n,i,t.constant());default:if(s==="identity")return e;throw new Error("Zooming is not implemented for: "+t.type)}}class E8{#e;#t;#n;#i;#r;#o;#s=null;constructor({getScale:e,getAnimator:n,getInitialDomainSnapshot:i,getResetDomain:r,fromComplexInterval:s,getGenomeExtent:o}){this.#e=e,this.#t=n,this.#n=i,this.#i=r,this.#r=s,this.#o=o}getZoomExtent(){const e=this.#e(),n=e.props.zoom;return I8(e,n,this.#r,this.#o,this.#n)}isZoomable(){return this.isZoomingSupported()&&!!this.#e().props.zoom}isZoomingSupported(){const e=this.#e().type;return Le(e)&&!cn(e)}getDomainChangeAction(e,n){return Bn(n,e)?"none":this.isZoomable()?"restore":this.isZoomingSupported()?"animate":"notify"}isZoomed(){return this.isZoomingSupported()&&!Bn(this.#i(),this.#e().domain())}zoom(e,n,i){if(!this.isZoomingSupported())return!1;const r=this.#e(),s=r.domain();let o=x8(r,s,e,n,i);const a=this.getZoomExtent();return o=oI(o,a[0],a[1]),[0,1].some(l=>o[l]!=s[l])?(r.domain(o),!0):!1}async zoomTo(e,n=!1){if(qr(n)&&(n=n?700:0),!this.isZoomingSupported())throw new Error("Not a zoomable scale!");const i=this.#r(e),r=this.#t(),s=this.#e(),o=s.domain();if(n>0&&o.length==2){const a=o[1]-o[0],l=i[1]-i[0],c=o[0]+a/2,u=i[0]+l/2,f=o[0]==i[0],h=o[1]==i[1];this.#c();const A=C8();this.#s=A,await r.transition({duration:n,easingFunction:m8,cancelToken:A,onUpdate:d=>{const g=w8(a,l,d),m=a==l?d:(a-g)/(a-l),p=m*u+(1-m)*c,w=[f?o[0]:p-g/2,h?o[1]:p+g/2];s.domain(w)}}),this.#s===A&&(this.#s=null),s.domain(i)}else this.#c(),s.domain(i),r?.requestRender()}#c(){this.#s&&(this.#s.canceled=!0,this.#s=null)}resetZoom(){if(!this.isZoomingSupported())throw new Error("Not a zoomable scale!");const e=this.#e(),n=e.domain(),i=this.#i();return[0,1].some(r=>i[r]!=n[r])?(e.domain(i),!0):!1}getZoomLevel(){return this.isZoomable()?Kr(this.getZoomExtent())/Kr(this.#e().domain()):1}}function I8(t,e,n,i,r){return v8(e)&&be(e.extent)?n(e.extent):e&&t.props.type=="locus"?i():r()}function x8(t,e,n,i,r){let s=[...e],o=t.invert(i);switch(t.props.reverse&&(r=-r),"align"in t&&(o+=t.align()),t.type){case"linear":case"index":case"locus":s=iI(s,r||0);break;case"log":s=rI(s,r||0);break;case"pow":case"sqrt":{s=sI(s,r||0,t.exponent());break}case"symlog":{if(r!==0)throw new Error("Panning is not implemented for: "+t.type);break}default:throw new Error("Zooming is not implemented for: "+t.type)}return Om(t,s,o,n)}function v8(t){return Ge(t)}re("index",If,["continuous"]),re("locus",B4,["continuous"]),re("null",gf,[]);class B8{#e=new Set;#t=new Set;#n={domain:new Set,range:new Set};#i;#r;#o;#s;#c=!1;#a=[];#l=0;constructor(e){this.channel=e,this.type=null,this.name=void 0,this.#r=new u8({getMembers:()=>this.#f(),getDataMembers:()=>this.#f(this.#t),getType:()=>this.type,getLocusExtent:n=>this.#g(n),fromComplexInterval:this.fromComplexInterval.bind(this)}),this.#i=new t8({getParamRuntime:()=>this.#u.paramRuntime,onRangeChange:()=>this.#d("range"),onDomainChange:()=>this.#d("domain"),getGenomeStore:()=>this.#A.genomeStore}),this.#o=new E8({getScale:()=>this.getScale(),getAnimator:()=>this.#A.animator,getInitialDomainSnapshot:()=>this.#r.initialDomainSnapshot,getResetDomain:()=>this.#r.getConfiguredOrDefaultDomain(),fromComplexInterval:this.fromComplexInterval.bind(this),getGenomeExtent:()=>this.#g()})}get#u(){const e=this.#e.values().next().value;if(!e)throw new Error("ScaleResolution has no members!");return e.view}#f(e=this.#e){const n=new Set;for(const i of e){const r=i.view;r.isConfiguredVisible()&&(!r.isDataInitialized()&&!i.channelDef?.scale?.domain||n.add(i))}return n}get#A(){return this.#u.context}get zoomExtent(){return(this.#i.scale&&Le(this.#i.scale.type)&&this.#o.getZoomExtent())??[-1/0,1/0]}#g(e){return F4(this.#h(e))}#h(e){if(this.type===ln)return this.#i.scale??this.#i.getLocusGenome(e)}addEventListener(e,n){this.#n[e].add(n)}removeEventListener(e,n){this.#n[e].delete(n)}#d(e){e==="domain"&&this.#l===0&&this.#y();for(const n of this.#n[e].values())n({type:e,scaleResolution:this})}#p(e){this.#l+=1;try{e()}finally{this.#l-=1}}#y(){const e=this.#r.getSelectionConfiguredDomainInfo();if(!e||!(e.sync==="twoWay"||e.sync==="auto"&&this.isZoomable()))return;const i=Nm(this.#u.paramRuntime,e.param),r=Mm(i.getValue(e.param),e.param),s=this.#m(this.getScale().domain());if(!s)return;const o=this.#m(this.#r.getDefaultDomain(!0)),a=o&&Bn(s,o)?null:s,l=r.intervals[e.encoding]??null;S8(l,a)||i.setValue(e.param,{...r,type:"interval",intervals:{...r.intervals,[e.encoding]:a}})}#m(e){return Tm(e,this.zoomExtent)}#C(e){const n=D8(e),{channel:i,channelDef:r}=n,s=r.type==null&&this.type;if(i!="sample"&&!r.type&&!Yl(i)&&!s)throw new Error(`The "type" property must be defined in channel definition: "${i}": ${JSON.stringify(r)}. Must be one of: "quantitative", "ordinal", "nominal", "locus", "index"`);const o=i=="sample"?"nominal":r.type,a=r?.scale?.name,c=r.scale?.type??(o===tc||o===ln?o:void 0);if(c&&[tc,ln].includes(c)&&!oa(this.channel))throw new Error(`Index and locus scales are only supported on positional channels (x/y). Channel "${this.channel}" resolves to scale type "${c}".`);if(a){if(this.name!==void 0&&a!=this.name)throw new Error(`Shared scales have conflicting names: "${a}" vs. "${this.name}"!`);this.name=a}if(!s){if(!this.type)this.type=o;else if(o!==this.type&&!Yl(i))throw new Error(`Can not use shared scale for different data types: ${this.type} vs. ${o}. Use "resolve: independent" for channel ${this.channel}`)}return this.#e.add(n),n.contributesToDomain&&this.#t.add(n),this.#r.invalidateConfiguredDomain(),this.#E(),n}registerMember(e){const n=this.#C(e);return()=>{const i=this.#e.delete(n);return i&&(this.#t.delete(n),this.#r.invalidateConfiguredDomain(),this.#E()),i&&this.#e.size===0}}dispose(){this.#w(),this.#n.domain.clear(),this.#n.range.clear(),this.#i.dispose()}#w(){for(const e of this.#a)e();this.#a=[]}#E(){if(this.#w(),this.#e.size===0)return;const e=this.#r.getSelectionConfiguredDomainInfo();if(!e)return;const n=Nm(this.#u.paramRuntime,e.param);this.#a.push(n.subscribe(e.param,()=>{this.#r.invalidateConfiguredDomain(),this.reconfigureDomain()}))}#D(){for(const e of this.#e)if(e.view.hasRendered())return!0;return!1}registerCollectorSubscriptions(e,n){const i=new Set;for(const o of n)o.channelDef.domainInert||i.add(Zd(o,this.type));if(i.size===0)return()=>{};const r=()=>{this.reconfigureDomain()},s=[];for(const o of i)s.push(e.subscribeDomainChanges(o,r));return()=>{for(const o of s)o()}}#I(){return this.#r.hasConfiguredDomain()}#Q(){const e=this.#i.scale;if(!e)return!1;const n=e.domain();return Le(e.type)?n.length>2||n.length==2&&(n[0]!==0||n[1]!==0):n.length>0}#x(){return a8({channel:this.channel,dataType:this.type,members:this.#e,isExplicitDomain:this.#I()})}getAssemblyRequirement(){const e=this.#x();return e===null||e.type==="null"||e.type!==ln?{assembly:void 0,needsDefaultAssembly:!1}:{assembly:e.assembly,needsDefaultAssembly:e.assembly===void 0}}#b(e=!1){const n=this.#x();if(n===null||n.type=="null")return{type:"null"};const i=this.#r.getConfiguredOrDefaultDomain(e,n.type===ln?n.assembly:void 0);if(cn(n.type)){const r=this.#I(),s=this.#k(r);if(i!=null){if(r&&s.domain().length>0&&!Bn(s.domain(),i))return this.#s=void 0,this.#b(e);s.addAll(i);const o=new Set(i),a=s.domain().filter(l=>o.has(l));n.domain=a.length>0?a:new Qf}else{const o=s.domain();n.domain=o.length>0?o:new Qf}n.domainIndexer=s}else i&&i.length>0&&(n.domain=i);return!n.domain&&n.domainMid!==void 0&&(n.domain=[n.domainMin??0,n.domainMax??1]),n}#k(e){return(!this.#s||this.#c!==e)&&(this.#s=am(),this.#c=e),this.#s}reconfigure(){this.#p(()=>{this.#r.invalidateConfiguredDomain();const e=this.#v(!0);e&&(this.#B(e,(n,i)=>this.#i.reconfigureScale(i)),this.#S(e))})}reconfigureDomain(){this.#p(()=>{const e=this.#v(!0,!0);if(!e)return;const{domainConfig:n,targetDomain:i}=e,r=i!=null&&Bn(i,e.scale.domain());i!=null&&!r&&this.#B(e,s=>{s.domain(i),n.applyOrdinalUnknown&&s.unknown(n.ordinalUnknown)}),this.#S(e)})}#v(e,n=!1){const i=this.#i.scale;if(!i||i.type=="null")return;const r={scale:i,props:this.#b(e),previousDomain:i.domain(),domainWasInitialized:this.#Q(),hasSelectionConfiguredDomain:this.#r.hasSelectionConfiguredDomain()};if(n){const s=Sm(i,r.props);return{...r,domainConfig:s,targetDomain:s.domain}}return r}#B(e,n){this.#i.withDomainNotificationsSuppressed(()=>{n(e.scale,e.props)})}#S(e){const{scale:n,previousDomain:i,domainWasInitialized:r,hasSelectionConfiguredDomain:s}=e;if(this.#r.captureInitialDomain(n,r)){this.#d("domain");return}const o=n.domain(),a=this.#o.getDomainChangeAction(i,o);a==="restore"?s?this.#d("domain"):this.#i.withDomainNotificationsSuppressed(()=>{n.domain(i)}):a==="animate"?s?this.#d("domain"):this.#D()?(this.#i.withDomainNotificationsSuppressed(()=>{n.domain(i)}),this.zoomTo(o,500)):this.#d("domain"):a==="notify"&&this.#d("domain")}get scale(){if(this.#i.scale)return this.#i.scale;throw new Error("ScaleResolution.scale accessed before initialization. Call initializeScale().")}getScale(){return this.#i.scale??this.initializeScale()}initializeScale(){if(this.#i.scale)return this.#i.scale;const e=this.#b();return this.#i.createScale(e)}getDomain(){return this.getScale().domain()}getDataDomain(){return this.#r.getDataDomain()}getComplexDomain(){return R4(this.#h(),this.getDomain())}isZoomed(){return this.#o.isZoomed()}isZoomable(){return this.#o.isZoomable()}zoom(e,n,i){return this.#o.zoom(e,n,i)}async zoomTo(e,n=!1){return this.#o.zoomTo(e,n)}resetZoom(){return this.#o.resetZoom()}getZoomLevel(){return this.#o.getZoomLevel()}getAxisLength(){if(this.channel!=="x"&&this.channel!=="y")throw new Error("Axis length is only defined for x and y channels!");const e=Array.from(this.#e).map(n=>n.view.coords?.[this.channel==="x"?"width":"height"]).filter(n=>n>0);return e.length?e.reduce((n,i)=>Math.min(n,i),1e4):0}invertToComplex(e){const n=this.getScale();if("invert"in n){const i=n.invert(e);return this.toComplex(i)}else throw new Error("The scale does not support inverting!")}toComplex(e){return D4(this.#h(),e)}fromComplex(e){return Q4(this.#h(),e)}fromComplexInterval(e){return this.type==ln?k4(this.#h(),e):e}}function S8(t,e){return t===e?!0:!t||!e?!1:t.length===e.length&&Bn(t,e)}function D8(t){const e=t.channelDef.scale,n=e?.assembly;if(!e||!n||typeof n!="object"||!("url"in n))return t;const i=E4(t.view.getBaseUrl(),n.url);return i===n.url?t:{...t,channelDef:{...t.channelDef,scale:{...e,assembly:{...n,url:i}}}}}function kf(...t){for(const e of t)if(e!==void 0)return e}class Q8{#e=new Set;constructor(e){this.channel=e}get scaleResolution(){return this.#e.values().next().value?.view.getScaleResolution(this.channel)}#t(e){const{view:n}=e,i=n.getScaleResolution(this.channel);if(!i)throw new Error("Cannot find a scale resolution!");if(this.scaleResolution&&i!==this.scaleResolution)throw new Error(`Shared axes must have a shared scale! Channel: ${this.channel}, existing views: [${Array.from(this.#e).map(r=>r.view.getPathString()).join(", ")}], new view: ${n.getPathString()}.`);this.#e.add(e),bf(this,"axisProps")}registerMember(e){return this.#t(e),()=>this.removeMember(e)&&this.#e.size===0}removeMember(e){const n=this.#e.delete(e);return n&&bf(this,"axisProps"),n}getAxisProps(){return Za(this,"axisProps",()=>{const e=Array.from(this.#e).map(n=>{const i=n.view.mark.encoding[n.channel];return"axis"in i&&i.axis});return e.length>0&&e.some(n=>n===null)?null:ec(e.filter(n=>n!==void 0),"axis",["title"])})}getTitle(){const e=o=>{const a=xv(o.view,o.channel);if(!ht(a))return{member:o,axisTitle:"axis"in a?a.axis?.title:void 0,explicitTitle:kf("axis"in a?a.axis?.title:void 0,a.title),implicitTitle:kf(nn(a)?a.field:void 0,ji(a)?a.expr:void 0)}},n=Array.from(this.#e).map(e),i=n.map(o=>o.axisTitle).find(o=>o!==void 0);if(i!==void 0)return i;const r=n.filter(o=>{if(Yl(o.member.channel)&&!o.explicitTitle){const a=rn(o.member.channel);return n.find(l=>l.member.view==o.member.view&&l.member.channel==a)?.explicitTitle===void 0}return!0}),s=new Set(r.map(o=>kf(o.explicitTitle,o.implicitTitle)).filter(le));return s.size?[...s].join(", "):null}}function Um(t,e,{spacing:n,devicePixelRatio:i,offset:r,reverse:s}={}){n=n||0,r=r||0;let o=0,a=0;for(const d of t)o+=nc(d.px)+(Rf(d)?0:n),a+=nc(d.grow);o-=n;const l=Math.max(0,e-o),c=i!==void 0?d=>Math.round(d*i)/i:d=>d,u=[],f=[],h=d=>{const g=u.length;if(!g)return;const m=(d?n:0)*(s?-1:1);A-=m;for(let p=0;p<g;p++)f.push({location:A+(p+1)/(g+1)*m,size:0});A+=m,u.length=0};let A=s?Math.max(e,o):0+r;if(t.length==1&&Rf(t[0]))return[{location:A,size:0}];for(let d=0;d<t.length;d++){const g=t[d];if(Rf(g))u.push(g);else{h(f.length>0);const m=nc(g.px)+(a?nc(g.grow)/a*l:0);s&&(A-=m),f.push({location:c(A),size:c(m)}),s?A-=n:A+=m+n}}return A+=s?n:-n,h(!1),f}function k8(t){let e=0,n=0;for(const i of t)e=Math.max(e,i.px??0),n=Math.max(n,i.grow??0);return{px:e,grow:n}}class Gn{constructor(e,n){this.width=e,this.height=n}addPadding(e){return this.#e(e.width,e.height)}subtractPadding(e){return this.#e(-e.width,-e.height)}#e(e,n){return new Gn({px:(this.width.px??0)+e,grow:this.width.grow},{px:(this.height.px??0)+n,grow:this.height.grow})}isGrowing(){return!!(this.width.grow||this.height.grow)}}const Zs=Object.freeze({px:0,grow:0}),_m=new Gn(Zs,Zs);function Rf(t){return!t.px&&!t.grow}function nc(t){return t||0}function R8(t){return t&&(qe(t.px)||qe(t.grow))}function zm(t){if(zf(t))throw new Error("parseSizeDef does not accept step-based sizes.");if(R8(t))return t;if(qe(t))return{px:t,grow:0};if(t==="container")return{px:0,grow:1};if(!t)return{px:0,grow:1};throw new Error(`Invalid sizeDef: ${t}`)}class je{constructor(e,n,i,r){this.top=e||0,this.right=n||0,this.bottom=i||0,this.left=r||0}get width(){return this.left+this.right}get height(){return this.top+this.bottom}expand(e){return e<=0?this:new je(this.top+e,this.right+e,this.bottom+e,this.left+e)}add(e){return new je(this.top+e.top,this.right+e.right,this.bottom+e.bottom,this.left+e.left)}subtract(e){return new je(this.top-e.top,this.right-e.right,this.bottom-e.bottom,this.left-e.left)}union(e){return new je(Math.max(this.top,e.top),Math.max(this.right,e.right),Math.max(this.bottom,e.bottom),Math.max(this.left,e.left))}getHorizontal(){return new je(0,this.right,0,this.left)}getVertical(){return new je(this.top,0,this.bottom,0)}get horizontalTotal(){return this.left+this.right}get verticalTotal(){return this.top+this.bottom}static createFromConfig(e){return typeof e=="number"?this.createUniformPadding(e):e?this.createFromRecord(e):Ff}static createFromRecord(e){return new je(e.top,e.right,e.bottom,e.left)}static zero(){return Ff}static createUniformPadding(e){return new je(e,e,e,e)}}const Ff=je.createUniformPadding(0);Object.freeze(Ff);class gr{constructor(){this.ids=[],this.values=[],this.length=0}clear(){this.length=0}push(e,n){let i=this.length++;for(;i>0;){const r=i-1>>1,s=this.values[r];if(n>=s)break;this.ids[i]=this.ids[r],this.values[i]=s,i=r}this.ids[i]=e,this.values[i]=n}pop(){if(this.length===0)return;const e=this.ids,n=this.values,i=e[0],r=--this.length;if(r>0){const s=e[r],o=n[r];let a=0;const l=r>>1;for(;a<l;){const c=(a<<1)+1,u=c+1,f=c+(+(u<r)&+(n[u]<n[c]));if(n[f]>=o)break;e[a]=e[f],n[a]=n[f],a=f}e[a]=s,n[a]=o}return i}peek(){return this.length>0?this.ids[0]:void 0}peekValue(){return this.length>0?this.values[0]:void 0}shrink(){this.ids.length=this.values.length=this.length}}const Gm=Symbol("runtimeNode"),Hm=1e6;function F8(t){return t?(e,n)=>{t.addDisposer(e,n)}:()=>{}}function Ym(t,e){const n={id:t.id,name:t.name,kind:t.kind,get(){return t.value},subscribe(i){return t.listeners.add(i),()=>{t.listeners.delete(i)}}};return Object.defineProperty(n,Gm,{enumerable:!1,configurable:!1,writable:!1,value:t}),e?Object.assign(n,{set(i){e(i)}}):n}function Vm(t){const e=t[Gm];if(!e)throw new Error("ParamRef is not bound to this graph runtime. Expected runtime-created ref.");return e}function Jm(t){for(const e of t)e()}class N8{#e=1;#t=1;#n=0;#i=!1;#r=!1;#o=new Set;#s=new Set;#c=new gr;#a=new gr;#l=new Set;#u;constructor(e={}){this.#u=F8(e.lifecycleRegistry)}createWritable(e,n,i,r,s={}){const o="n"+this.#e++,a=s.notify??!0,l={id:o,name:n,kind:i,value:r,rank:0,disposed:!1,listeners:new Set,subscribe(u){return l.listeners.add(u),()=>{l.listeners.delete(u)}}},c=u=>{if(l.disposed)throw new Error('Cannot set disposed parameter "'+n+'" ('+o+").");u!==l.value&&(l.value=u,a&&(Jm(l.listeners),this.#h()))};return this.#u(e,()=>{l.disposed=!0,l.listeners.clear()}),Ym(l,c)}computed(e,n,i,r){const o=i.map(Vm).reduce((h,A)=>Math.max(h,A.rank),0),l={id:"n"+this.#e++,name:n,kind:"derived",rank:o+1,value:r(),disposed:!1,listeners:new Set,fn:r,subscribe(h){return l.listeners.add(h),()=>{l.listeners.delete(h)}}},c=()=>{l.disposed||this.#f(l)},u=i.map(h=>h.subscribe(c)),f=()=>{l.disposed||(l.disposed=!0,u.forEach(h=>h()),l.listeners.clear(),this.#o.delete(l))};return this.#u(e,f),Ym(l)}effect(e,n,i){const s=n.map(Vm).reduce((f,h)=>Math.max(f,h.rank),0),a={id:"n"+this.#e++,rank:s+1,disposed:!1,fn:i},l=()=>{a.disposed||this.#A(a)},c=n.map(f=>f.subscribe(l)),u=()=>{a.disposed||(a.disposed=!0,c.forEach(f=>f()),this.#s.delete(a))};return this.#u(e,u),u}runInTransaction(e){this.#n+=1;try{return e()}finally{this.#n-=1,this.#n===0&&this.#h()}}flushNow(){if(!(this.#n>0||this.#r)){this.#i=!1,this.#r=!0;try{let e=!0;for(;e;){for(e=!1;this.#c.length>0;){e=!0;const n=this.#c.pop();if(this.#o.delete(n),n.disposed)continue;const i=n.value,r=n.fn();r!==i&&(n.value=r,Jm(n.listeners))}for(;this.#a.length>0;){e=!0;const n=this.#a.pop();this.#s.delete(n),!n.disposed&&n.fn()}}}finally{this.#r=!1,this.#p()}}}whenPropagated(e={}){if(this.#d())return Promise.resolve();const{signal:n,timeoutMs:i}=e;return n?.aborted?Promise.reject(new Error("whenPropagated aborted")):new Promise((r,s)=>{const o={resolve:r,reject:s};n&&(o.abortHandler=()=>{this.#l.delete(o),s(new Error("whenPropagated aborted"))},n.addEventListener("abort",o.abortHandler,{once:!0})),i!=null&&(o.timeoutId=setTimeout(()=>{this.#l.delete(o),o.abortHandler&&n?.removeEventListener("abort",o.abortHandler),s(new Error("whenPropagated timeout after "+i+" ms"))},i)),this.#l.add(o)})}#f(e){this.#o.has(e)||(this.#o.add(e),this.#c.push(e,this.#g(e.rank)),this.#h())}#A(e){this.#s.has(e)||(this.#s.add(e),this.#a.push(e,this.#g(e.rank)),this.#h())}#g(e){const n=this.#t%Hm;return this.#t+=1,e*Hm+n}#h(){this.#n>0||this.#i||this.#r||(this.#i=!0,queueMicrotask(()=>{this.flushNow()}))}#d(){return this.#n===0&&!this.#i&&!this.#r&&this.#c.length===0&&this.#a.length===0&&this.#o.size===0&&this.#s.size===0}#p(){if(this.#d()){for(const e of this.#l)e.timeoutId&&clearTimeout(e.timeoutId),e.resolve();this.#l.clear()}}}class M8{#e=1;#t=new Map;createOwner(e,n){const i=e+":"+n+":"+this.#e++;return this.#t.set(i,new Set),i}addDisposer(e,n){const i=this.#t.get(e);if(!i)throw new Error("Unknown owner: "+e);i.add(n)}disposeOwner(e){const n=this.#t.get(e);if(n){for(const i of n)i();n.clear(),this.#t.delete(e)}}}class T8{#e=1;#t=new Map;createRootScope(e){const n="scope:"+this.#e++;return this.#t.set(n,{params:new Map,ownerId:e}),n}createChildScope(e,n){if(!this.#t.has(n))throw new Error("Unknown parent scope: "+n);const i="scope:"+this.#e++;return this.#t.set(i,{parentScope:n,params:new Map,ownerId:e}),i}getOwnerId(e){const n=this.#t.get(e);if(!n)throw new Error("Unknown scope: "+e);return n.ownerId}clearScope(e){const n=this.#t.get(e);if(!n)throw new Error("Unknown scope: "+e);n.params.clear()}register(e,n,i){Pt(n);const r=this.#t.get(e);if(!r)throw new Error("Unknown scope: "+e);if(r.params.has(n))throw new Error('Parameter "'+n+'" already exists in scope '+e);return r.params.set(n,i),i}resolve(e,n){Pt(n);let i=e;for(;i;){const r=this.#t.get(i);if(!r)throw new Error("Unknown scope: "+i);const s=r.params.get(n);if(s)return s;i=r.parentScope}}}const P8="RawCode",L8="Literal",O8="Property",U8="Identifier",_8="ArrayExpression",z8="BinaryExpression",G8="CallExpression",H8="ConditionalExpression",Y8="LogicalExpression",V8="MemberExpression",J8="ObjectExpression",q8="UnaryExpression";function kt(t){this.type=t}kt.prototype.visit=function(t){let e,n,i;if(t(this))return 1;for(e=K8(this),n=0,i=e.length;n<i;++n)if(e[n].visit(t))return 1};function K8(t){switch(t.type){case _8:return t.elements;case z8:case Y8:return[t.left,t.right];case G8:return[t.callee].concat(t.arguments);case H8:return[t.test,t.consequent,t.alternate];case V8:return[t.object,t.property];case J8:return t.properties;case O8:return[t.key,t.value];case q8:return[t.argument];case U8:case L8:case P8:default:return[]}}var Yt,z,R,We,se,ic=1,$s=2,Ei=3,Hn=4,rc=5,Ii=6,lt=7,eo=8,j8=9;Yt={},Yt[ic]="Boolean",Yt[$s]="<end>",Yt[Ei]="Identifier",Yt[Hn]="Keyword",Yt[rc]="Null",Yt[Ii]="Numeric",Yt[lt]="Punctuator",Yt[eo]="String",Yt[j8]="RegularExpression";var W8="ArrayExpression",X8="BinaryExpression",Z8="CallExpression",$8="ConditionalExpression",qm="Identifier",eR="Literal",tR="LogicalExpression",nR="MemberExpression",iR="ObjectExpression",rR="Property",sR="UnaryExpression",Oe="Unexpected token %0",oR="Unexpected number",aR="Unexpected string",cR="Unexpected identifier",lR="Unexpected reserved word",uR="Unexpected end of input",Nf="Invalid regular expression",Mf="Invalid regular expression: missing /",Km="Octal literals are not allowed in strict mode.",fR="Duplicate data property in object literal not allowed in strict mode",Ve="ILLEGAL",to="Disabled.",hR=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\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D\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),AR=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0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\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");function sc(t,e){if(!t)throw new Error("ASSERT: "+e)}function un(t){return t>=48&&t<=57}function Tf(t){return"0123456789abcdefABCDEF".includes(t)}function no(t){return"01234567".includes(t)}function dR(t){return t===32||t===9||t===11||t===12||t===160||t>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(t)}function io(t){return t===10||t===13||t===8232||t===8233}function ro(t){return t===36||t===95||t>=65&&t<=90||t>=97&&t<=122||t===92||t>=128&&hR.test(String.fromCharCode(t))}function oc(t){return t===36||t===95||t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===92||t>=128&&AR.test(String.fromCharCode(t))}const gR={if:1,in:1,do:1,var:1,for:1,new:1,try:1,let:1,this:1,else:1,case:1,void:1,with:1,enum:1,while:1,break:1,catch:1,throw:1,const:1,yield:1,class:1,super:1,return:1,typeof:1,delete:1,switch:1,export:1,import:1,public:1,static:1,default:1,finally:1,extends:1,package:1,private:1,function:1,continue:1,debugger:1,interface:1,protected:1,instanceof:1,implements:1};function jm(){for(;R<We;){const t=z.charCodeAt(R);if(dR(t)||io(t))++R;else break}}function Pf(t){var e,n,i,r=0;for(n=t==="u"?4:2,e=0;e<n;++e)R<We&&Tf(z[R])?(i=z[R++],r=r*16+"0123456789abcdef".indexOf(i.toLowerCase())):ie({},Oe,Ve);return String.fromCharCode(r)}function pR(){var t,e,n,i;for(t=z[R],e=0,t==="}"&&ie({},Oe,Ve);R<We&&(t=z[R++],!!Tf(t));)e=e*16+"0123456789abcdef".indexOf(t.toLowerCase());return(e>1114111||t!=="}")&&ie({},Oe,Ve),e<=65535?String.fromCharCode(e):(n=(e-65536>>10)+55296,i=(e-65536&1023)+56320,String.fromCharCode(n,i))}function Wm(){var t,e;for(t=z.charCodeAt(R++),e=String.fromCharCode(t),t===92&&(z.charCodeAt(R)!==117&&ie({},Oe,Ve),++R,t=Pf("u"),(!t||t==="\\"||!ro(t.charCodeAt(0)))&&ie({},Oe,Ve),e=t);R<We&&(t=z.charCodeAt(R),!!oc(t));)++R,e+=String.fromCharCode(t),t===92&&(e=e.substr(0,e.length-1),z.charCodeAt(R)!==117&&ie({},Oe,Ve),++R,t=Pf("u"),(!t||t==="\\"||!oc(t.charCodeAt(0)))&&ie({},Oe,Ve),e+=t);return e}function mR(){var t,e;for(t=R++;R<We;){if(e=z.charCodeAt(R),e===92)return R=t,Wm();if(oc(e))++R;else break}return z.slice(t,R)}function wR(){var t,e,n;return t=R,e=z.charCodeAt(R)===92?Wm():mR(),e.length===1?n=Ei:gR.hasOwnProperty(e)?n=Hn:e==="null"?n=rc:e==="true"||e==="false"?n=ic:n=Ei,{type:n,value:e,start:t,end:R}}function Lf(){var t=R,e=z.charCodeAt(R),n,i=z[R],r,s,o;switch(e){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++R,{type:lt,value:String.fromCharCode(e),start:t,end:R};default:if(n=z.charCodeAt(R+1),n===61)switch(e){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return R+=2,{type:lt,value:String.fromCharCode(e)+String.fromCharCode(n),start:t,end:R};case 33:case 61:return R+=2,z.charCodeAt(R)===61&&++R,{type:lt,value:z.slice(t,R),start:t,end:R}}}if(o=z.substr(R,4),o===">>>=")return R+=4,{type:lt,value:o,start:t,end:R};if(s=o.substr(0,3),s===">>>"||s==="<<="||s===">>=")return R+=3,{type:lt,value:s,start:t,end:R};if(r=s.substr(0,2),i===r[1]&&"+-<>&|".includes(i)||r==="=>")return R+=2,{type:lt,value:r,start:t,end:R};if(r==="//"&&ie({},Oe,Ve),"<>=!+-*%&|^/".includes(i))return++R,{type:lt,value:i,start:t,end:R};ie({},Oe,Ve)}function yR(t){let e="";for(;R<We&&Tf(z[R]);)e+=z[R++];return e.length===0&&ie({},Oe,Ve),ro(z.charCodeAt(R))&&ie({},Oe,Ve),{type:Ii,value:parseInt("0x"+e,16),start:t,end:R}}function CR(t){let e="0"+z[R++];for(;R<We&&no(z[R]);)e+=z[R++];return(ro(z.charCodeAt(R))||un(z.charCodeAt(R)))&&ie({},Oe,Ve),{type:Ii,value:parseInt(e,8),octal:!0,start:t,end:R}}function Xm(){var t,e,n;if(n=z[R],sc(un(n.charCodeAt(0))||n===".","Numeric literal must start with a decimal digit or a decimal point"),e=R,t="",n!=="."){if(t=z[R++],n=z[R],t==="0"){if(n==="x"||n==="X")return++R,yR(e);if(no(n))return CR(e);n&&un(n.charCodeAt(0))&&ie({},Oe,Ve)}for(;un(z.charCodeAt(R));)t+=z[R++];n=z[R]}if(n==="."){for(t+=z[R++];un(z.charCodeAt(R));)t+=z[R++];n=z[R]}if(n==="e"||n==="E")if(t+=z[R++],n=z[R],(n==="+"||n==="-")&&(t+=z[R++]),un(z.charCodeAt(R)))for(;un(z.charCodeAt(R));)t+=z[R++];else ie({},Oe,Ve);return ro(z.charCodeAt(R))&&ie({},Oe,Ve),{type:Ii,value:parseFloat(t),start:e,end:R}}function bR(){var t="",e,n,i,r,s=!1;for(e=z[R],sc(e==="'"||e==='"',"String literal must starts with a quote"),n=R,++R;R<We;)if(i=z[R++],i===e){e="";break}else if(i==="\\")if(i=z[R++],!i||!io(i.charCodeAt(0)))switch(i){case"u":case"x":z[R]==="{"?(++R,t+=pR()):t+=Pf(i);break;case"n":t+=`
|
|
609
|
+
`;break;case"r":t+="\r";break;case"t":t+=" ";break;case"b":t+="\b";break;case"f":t+="\f";break;case"v":t+="\v";break;default:no(i)?(r="01234567".indexOf(i),r!==0&&(s=!0),R<We&&no(z[R])&&(s=!0,r=r*8+"01234567".indexOf(z[R++]),"0123".includes(i)&&R<We&&no(z[R])&&(r=r*8+"01234567".indexOf(z[R++]))),t+=String.fromCharCode(r)):t+=i;break}else i==="\r"&&z[R]===`
|
|
610
|
+
`&&++R;else{if(io(i.charCodeAt(0)))break;t+=i}return e!==""&&ie({},Oe,Ve),{type:eo,value:t,octal:s,start:n,end:R}}function ER(t,e){let n=t;e.includes("u")&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}/g,(i,r)=>{if(parseInt(r,16)<=1114111)return"x";ie({},Nf)}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"));try{new RegExp(n)}catch{ie({},Nf)}try{return new RegExp(t,e)}catch{return null}}function IR(){var t,e,n,i,r;for(t=z[R],sc(t==="/","Regular expression literal must start with a slash"),e=z[R++],n=!1,i=!1;R<We;)if(t=z[R++],e+=t,t==="\\")t=z[R++],io(t.charCodeAt(0))&&ie({},Mf),e+=t;else if(io(t.charCodeAt(0)))ie({},Mf);else if(n)t==="]"&&(n=!1);else if(t==="/"){i=!0;break}else t==="["&&(n=!0);return i||ie({},Mf),r=e.substr(1,e.length-2),{value:r,literal:e}}function xR(){var t,e,n;for(e="",n="";R<We&&(t=z[R],!!oc(t.charCodeAt(0)));)++R,t==="\\"&&R<We?ie({},Oe,Ve):(n+=t,e+=t);return n.search(/[^gimuy]/g)>=0&&ie({},Nf,n),{value:n,literal:e}}function vR(){var t,e,n,i;return se=null,jm(),t=R,e=IR(),n=xR(),i=ER(e.value,n.value),{literal:e.literal+n.literal,value:i,regex:{pattern:e.value,flags:n.value},start:t,end:R}}function BR(t){return t.type===Ei||t.type===Hn||t.type===ic||t.type===rc}function Zm(){if(jm(),R>=We)return{type:$s,start:R,end:R};const t=z.charCodeAt(R);return ro(t)?wR():t===40||t===41||t===59?Lf():t===39||t===34?bR():t===46?un(z.charCodeAt(R+1))?Xm():Lf():un(t)?Xm():Lf()}function ut(){const t=se;return R=t.end,se=Zm(),R=t.end,t}function $m(){const t=R;se=Zm(),R=t}function SR(t){const e=new kt(W8);return e.elements=t,e}function ew(t,e,n){const i=new kt(t==="||"||t==="&&"?tR:X8);return i.operator=t,i.left=e,i.right=n,i}function DR(t,e){const n=new kt(Z8);return n.callee=t,n.arguments=e,n}function QR(t,e,n){const i=new kt($8);return i.test=t,i.consequent=e,i.alternate=n,i}function Of(t){const e=new kt(qm);return e.name=t,e}function so(t){const e=new kt(eR);return e.value=t.value,e.raw=z.slice(t.start,t.end),t.regex&&(e.raw==="//"&&(e.raw="/(?:)/"),e.regex=t.regex),e}function tw(t,e,n){const i=new kt(nR);return i.computed=t==="[",i.object=e,i.property=n,i.computed||(n.member=!0),i}function kR(t){const e=new kt(iR);return e.properties=t,e}function nw(t,e,n){const i=new kt(rR);return i.key=e,i.value=n,i.kind=t,i}function RR(t,e){const n=new kt(sR);return n.operator=t,n.argument=e,n.prefix=!0,n}function ie(t,e){var n,i=Array.prototype.slice.call(arguments,2),r=e.replace(/%(\d)/g,(s,o)=>(sc(o<i.length,"Message reference must be in range"),i[o]));throw n=new Error(r),n.index=R,n.description=r,n}function ac(t){t.type===$s&&ie(t,uR),t.type===Ii&&ie(t,oR),t.type===eo&&ie(t,aR),t.type===Ei&&ie(t,cR),t.type===Hn&&ie(t,lR),ie(t,Oe,t.value)}function Xe(t){const e=ut();(e.type!==lt||e.value!==t)&&ac(e)}function Ae(t){return se.type===lt&&se.value===t}function Uf(t){return se.type===Hn&&se.value===t}function FR(){const t=[];for(R=se.start,Xe("[");!Ae("]");)Ae(",")?(ut(),t.push(null)):(t.push(xi()),Ae("]")||Xe(","));return ut(),SR(t)}function iw(){R=se.start;const t=ut();return t.type===eo||t.type===Ii?(t.octal&&ie(t,Km),so(t)):Of(t.value)}function NR(){var t,e,n,i;if(R=se.start,t=se,t.type===Ei)return n=iw(),Xe(":"),i=xi(),nw("init",n,i);if(t.type===$s||t.type===lt)ac(t);else return e=iw(),Xe(":"),i=xi(),nw("init",e,i)}function MR(){var t=[],e,n,i,r={},s=String;for(R=se.start,Xe("{");!Ae("}");)e=NR(),e.key.type===qm?n=e.key.name:n=s(e.key.value),i="$"+n,Object.prototype.hasOwnProperty.call(r,i)?ie({},fR):r[i]=!0,t.push(e),Ae("}")||Xe(",");return Xe("}"),kR(t)}function TR(){Xe("(");const t=_f();return Xe(")"),t}const PR={if:1};function LR(){var t,e,n;if(Ae("("))return TR();if(Ae("["))return FR();if(Ae("{"))return MR();if(t=se.type,R=se.start,t===Ei||PR[se.value])n=Of(ut().value);else if(t===eo||t===Ii)se.octal&&ie(se,Km),n=so(ut());else{if(t===Hn)throw new Error(to);t===ic?(e=ut(),e.value=e.value==="true",n=so(e)):t===rc?(e=ut(),e.value=null,n=so(e)):Ae("/")||Ae("/=")?(n=so(vR()),$m()):ac(ut())}return n}function OR(){const t=[];if(Xe("("),!Ae(")"))for(;R<We&&(t.push(xi()),!Ae(")"));)Xe(",");return Xe(")"),t}function UR(){R=se.start;const t=ut();return BR(t)||ac(t),Of(t.value)}function _R(){return Xe("."),UR()}function zR(){Xe("[");const t=_f();return Xe("]"),t}function GR(){var t,e,n;for(t=LR();;)if(Ae("."))n=_R(),t=tw(".",t,n);else if(Ae("("))e=OR(),t=DR(t,e);else if(Ae("["))n=zR(),t=tw("[",t,n);else break;return t}function rw(){const t=GR();if(se.type===lt&&(Ae("++")||Ae("--")))throw new Error(to);return t}function cc(){var t,e;if(se.type!==lt&&se.type!==Hn)e=rw();else{if(Ae("++")||Ae("--"))throw new Error(to);if(Ae("+")||Ae("-")||Ae("~")||Ae("!"))t=ut(),e=cc(),e=RR(t.value,e);else{if(Uf("delete")||Uf("void")||Uf("typeof"))throw new Error(to);e=rw()}}return e}function sw(t){let e=0;if(t.type!==lt&&t.type!==Hn)return 0;switch(t.value){case"||":e=1;break;case"&&":e=2;break;case"|":e=3;break;case"^":e=4;break;case"&":e=5;break;case"==":case"!=":case"===":case"!==":e=6;break;case"<":case">":case"<=":case">=":case"instanceof":case"in":e=7;break;case"<<":case">>":case">>>":e=8;break;case"+":case"-":e=9;break;case"*":case"/":case"%":e=11;break}return e}function HR(){var t,e,n,i,r,s,o,a,l,c;if(t=se,l=cc(),i=se,r=sw(i),r===0)return l;for(i.prec=r,ut(),e=[t,se],o=cc(),s=[l,i,o];(r=sw(se))>0;){for(;s.length>2&&r<=s[s.length-2].prec;)o=s.pop(),a=s.pop().value,l=s.pop(),e.pop(),n=ew(a,l,o),s.push(n);i=ut(),i.prec=r,s.push(i),e.push(se),n=cc(),s.push(n)}for(c=s.length-1,n=s[c],e.pop();c>1;)e.pop(),n=ew(s[c-1].value,s[c-2],n),c-=2;return n}function xi(){var t,e,n;return t=HR(),Ae("?")&&(ut(),e=xi(),Xe(":"),n=xi(),t=QR(t,e,n)),t}function _f(){const t=xi();if(Ae(","))throw new Error(to);return t}function ow(t){z=t,R=0,We=z.length,se=null,$m();const e=_f();if(se.type!==$s)throw new Error("Unexpect token after expression.");return e}var YR={NaN:"NaN",E:"Math.E",LN2:"Math.LN2",LN10:"Math.LN10",LOG2E:"Math.LOG2E",LOG10E:"Math.LOG10E",PI:"Math.PI",SQRT1_2:"Math.SQRT1_2",SQRT2:"Math.SQRT2",MIN_VALUE:"Number.MIN_VALUE",MAX_VALUE:"Number.MAX_VALUE"};function aw(t){function e(o,a,l,c){let u=t(a[0]);return l&&(u=l+"("+u+")",l.lastIndexOf("new ",0)===0&&(u="("+u+")")),u+"."+o+(c<0?"":c===0?"()":"("+a.slice(1).map(t).join(",")+")")}function n(o,a,l){return c=>e(o,c,a,l)}const i="new Date",r="String",s="RegExp";return{isNaN:"Number.isNaN",isFinite:"Number.isFinite",abs:"Math.abs",acos:"Math.acos",asin:"Math.asin",atan:"Math.atan",atan2:"Math.atan2",ceil:"Math.ceil",cos:"Math.cos",exp:"Math.exp",floor:"Math.floor",hypot:"Math.hypot",log:"Math.log",max:"Math.max",min:"Math.min",pow:"Math.pow",random:"Math.random",round:"Math.round",sin:"Math.sin",sqrt:"Math.sqrt",tan:"Math.tan",clamp:function(o){o.length<3&&xe("Missing arguments to clamp function."),o.length>3&&xe("Too many arguments to clamp function.");const a=o.map(t);return"Math.max("+a[1]+", Math.min("+a[2]+","+a[0]+"))"},now:"Date.now",utc:"Date.UTC",datetime:i,date:n("getDate",i,0),day:n("getDay",i,0),year:n("getFullYear",i,0),month:n("getMonth",i,0),hours:n("getHours",i,0),minutes:n("getMinutes",i,0),seconds:n("getSeconds",i,0),milliseconds:n("getMilliseconds",i,0),time:n("getTime",i,0),timezoneoffset:n("getTimezoneOffset",i,0),utcdate:n("getUTCDate",i,0),utcday:n("getUTCDay",i,0),utcyear:n("getUTCFullYear",i,0),utcmonth:n("getUTCMonth",i,0),utchours:n("getUTCHours",i,0),utcminutes:n("getUTCMinutes",i,0),utcseconds:n("getUTCSeconds",i,0),utcmilliseconds:n("getUTCMilliseconds",i,0),length:n("length",null,-1),parseFloat:"parseFloat",parseInt:"parseInt",upper:n("toUpperCase",r,0),lower:n("toLowerCase",r,0),substring:n("substring",r),split:n("split",r),trim:n("trim",r,0),btoa:"btoa",atob:"atob",regexp:s,test:n("test",s),if:function(o){o.length<3&&xe("Missing arguments to if function."),o.length>3&&xe("Too many arguments to if function.");const a=o.map(t);return"("+a[0]+"?"+a[1]+":"+a[2]+")"}}}function VR(t){const e=t&&t.length-1;return e&&(t[0]==='"'&&t[e]==='"'||t[0]==="'"&&t[e]==="'")?t.slice(1,-1):t}function cw(t){t=t||{};const e=t.allowed?Po(t.allowed):{},n=t.forbidden?Po(t.forbidden):{},i=t.constants||YR,r=(t.functions||aw)(f),s=t.globalvar,o=t.fieldvar,a=dt(s)?s:d=>`${s}["${d}"]`;[...Object.getOwnPropertyNames(Object.prototype).filter(d=>typeof Object.prototype[d]=="function")];let l={},c={},u=0;function f(d){if(le(d))return d;const g=h[d.type];return g==null&&xe("Unsupported type: "+d.type),g(d)}const h={Literal:d=>d.raw,Identifier:d=>{const g=d.name;return u>0?g:Ui(n,g)?xe("Illegal identifier: "+g):Ui(i,g)?i[g]:Ui(e,g)?g:(l[g]=1,a(g))},MemberExpression:d=>{const g=!d.computed,m=f(d.object);g&&(u+=1);const p=f(d.property);return m===o&&(c[VR(p)]=1),g&&(u-=1),m+(g?"."+p:"["+p+"]")},CallExpression:d=>{d.callee.type!=="Identifier"&&xe("Illegal callee type: "+d.callee.type);const g=d.callee.name,m=d.arguments,p=Ui(r,g)&&r[g];return p||xe("Unrecognized function: "+g),dt(p)?p(m):p+"("+m.map(f).join(",")+")"},ArrayExpression:d=>"["+d.elements.map(f).join(",")+"]",BinaryExpression:d=>"("+f(d.left)+" "+d.operator+" "+f(d.right)+")",UnaryExpression:d=>"("+d.operator+f(d.argument)+")",ConditionalExpression:d=>"("+f(d.test)+"?"+f(d.consequent)+":"+f(d.alternate)+")",LogicalExpression:d=>"("+f(d.left)+d.operator+f(d.right)+")",ObjectExpression:d=>{for(const g of d.properties){const m=g.key.name;eI.has(m)&&xe("Illegal property: "+m)}return"{"+d.properties.map(f).join(",")+"}"},Property:d=>{u+=1;const g=f(d.key);return u-=1,g+":"+f(d.value)}};function A(d){const g={code:f(d),globals:Object.keys(l),fields:Object.keys(c)};return l={},c={},g}return A.functions=r,A.constants=i,A}function lw(t,e,n){return n=(n-t)/(e-t),n=Math.max(0,Math.min(1,n)),n*n*(3-2*n)}function JR(t,e,n){return sr((n-t)/(e-t),0,1)}const uw={clamp:sr,format(t,e){return He(e)(t)},mapHasKey(t,e){return t.has(e)},isArray:be,isBoolean:qr,isDefined(t){return t!==void 0},isNumber:qe,isObject:Ge,isRegExp:dI,isString:le,isValid(t){return t!=null&&t===t},lerp:RA,linearstep:JR,replace(t,e,n){return String(t).replace(e,n)},smoothstep:lw};function qR(t){const e=aw(t);for(const n in uw)e[n]=`this.${n}`;return e}const KR=cw({forbidden:[],allowed:["datum","undefined"],globalvar:"globalObject",fieldvar:"datum",functions:qR});function jR(t,e={}){try{const n=ow(t),i=KR(n),r=Function("datum","globalObject",`"use strict";
|
|
603
611
|
try {
|
|
604
|
-
return (${
|
|
612
|
+
return (${i.code});
|
|
605
613
|
} catch (e) {
|
|
606
|
-
throw new Error("Error evaluating expression: " + ${JSON.stringify(
|
|
607
|
-
}`).bind(
|
|
614
|
+
throw new Error("Error evaluating expression: " + ${JSON.stringify(t)} + ", " + e.message, e);
|
|
615
|
+
}`).bind(uw),s=(o=>r(o,e));return s.fields=i.fields,s.globals=i.globals,s.code=i.code,s}catch(n){throw new Error(`Invalid expression: ${t}, ${n.message}`)}}const WR=cw({forbidden:[],allowed:["event"],globalvar:"globalObject"});function lc(t){try{const e=ow(t),n=WR(e);return Function("event","globalObject",`"use strict";
|
|
608
616
|
try {
|
|
609
|
-
return !!(${
|
|
617
|
+
return !!(${n.code});
|
|
610
618
|
} catch (e) {
|
|
611
|
-
throw new Error("Error evaluating expression: " + ${JSON.stringify(
|
|
612
|
-
}`)}catch(e){throw new Error(`Invalid expression: ${n}, ${e.message}`)}}function W4(n,e={}){return q4(n,e)}function Im(n,e){const t={},r=W4(n,t),i=new Map;for(const o of r.globals){if(i.has(o))continue;const a=e(o);if(!a)throw new Error('Unknown variable "'+o+'" in expression: '+n);i.set(o,a),Object.defineProperty(t,o,{enumerable:!0,get(){return a.get()}})}const s=new Set;return r.subscribe=o=>{const a=[];for(const u of i.values())a.push(u.subscribe(o));let l=!0;const c=()=>{l&&(l=!1,s.delete(c),a.forEach(u=>u()))};return s.add(c),c},r.invalidate=()=>{for(const o of s)o();s.clear()},r.identifier=()=>r.code+"|"+Array.from(i.values()).map(o=>o.id).join(","),{expression:r,dependencies:Array.from(i.values())}}class X4{#e=new Mk;#t=new Rk({lifecycleRegistry:this.#e});#n=new Nk;createScope(e){const t=this.#e.createOwner("scope",e??"root");return e?this.#n.createChildScope(t,e):this.#n.createRootScope(t)}disposeScope(e){const t=this.#n.getOwnerId(e);this.#e.disposeOwner(t),this.#n.clearScope(e)}addScopeDisposer(e,t){const r=this.#n.getOwnerId(e);this.#e.addDisposer(r,t)}registerBase(e,t,r,i){const s=this.#n.getOwnerId(e),o=this.#t.createWritable(s,t,"base",r,i);return this.#n.register(e,t,o)}registerSelection(e,t,r,i){const s=this.#n.getOwnerId(e),o=this.#t.createWritable(s,t,"selection",r,i);return this.#n.register(e,t,o)}registerDerived(e,t,r){const{expression:i,dependencies:s}=Im(r,l=>this.resolve(e,l)),o=this.#n.getOwnerId(e),a=this.#t.computed(o,t,s,()=>i(null));return this.#n.register(e,t,a)}createExpression(e,t){const{expression:r}=Im(t,i=>this.resolve(e,i));return r}resolve(e,t){return this.#n.resolve(e,t)}runInTransaction(e){return this.#t.runInTransaction(e)}flushNow(){this.#t.flushNow()}whenPropagated(e){return this.#t.whenPropagated(e)}}class Z4{#e;#t;#n=new Map;#r=new Map;#s=new Map;#o;#i=!1;constructor(e){this.#o=e??(()=>{});const t=this.#o();t?(this.#e=t.#e,this.#t=this.#e.createScope(t.#t)):(this.#e=new X4,this.#t=this.#e.createScope())}registerParam(e){const t=e.name;if(Nt(t),this.#s.has(t))throw new Error('Parameter "'+t+'" already registered in this scope.');if("value"in e&&"expr"in e)throw new Error(`The parameter "${t}" must not have both value and expr properties!`);let r,i;if(e.push=="outer"){const s=this.findRuntimeForParam(t);if(!s)throw new Error(`Parameter "${t}" not found in outer scope!`);const o=s.paramConfigs.get(t);if(!o)throw new Error(`Outer parameter "${t}" exists as a value but has no registered config.`);if("expr"in o||"select"in o)throw new Error(`The outer parameter "${t}" must not have expr or select properties!`);r=a=>{s.setValue(t,a)},this.#n.set(t,r)}else if("value"in e)i=xl(e,this),r=this.#a(t,i);else if("expr"in e){const s=this.#e.registerDerived(this.#t,t,e.expr);this.#r.set(t,s),r=()=>{throw new Error('Cannot set derived parameter "'+t+'".')}}else i=xl(e,this),r=this.#a(t,i);if("select"in e){if(i??=xl(e,this),!this.#n.has(t)){const s=this.#e.registerSelection(this.#t,t,i);this.#r.set(t,s),this.#n.set(t,o=>{s.set(o),this.#e.flushNow()}),r=this.#n.get(t)}r(i)}return this.#s.set(t,e),r}allocateSetter(e,t,r=!1){if(Nt(e),this.#n.has(e))throw new Error("Setter already allocated for parameter: "+e);const i=this.#e.registerBase(this.#t,e,t,{notify:!r});this.#r.set(e,i);const s=o=>{i.set(o),this.#e.flushNow()};return this.#n.set(e,s),s}setValue(e,t){Nt(e);const r=this.#n.get(e);if(!r)throw new Error("Writable parameter not found in this scope: "+e);r(t)}getValue(e){return this.#r.get(e)?.get()}subscribe(e,t){Nt(e);const r=this.findRuntimeForParam(e);if(!r)throw new Error("Parameter not found: "+e);const i=r.#r.get(e);if(!i)throw new Error("Parameter found without local reference: "+e);return i.subscribe(t)}findValue(e){return this.findRuntimeForParam(e)?.getValue(e)}get paramConfigs(){return this.#s}findRuntimeForParam(e){return this.#r.has(e)?this:this.#o()?.findRuntimeForParam(e)}createExpression(e){return this.#e.createExpression(this.#t,e)}watchExpression(e,t,r={}){const i=this.createExpression(e),s=i.subscribe(t);return(r.scopeOwned??!0)&&this.#e.addScopeDisposer(this.#t,s),r.registerDisposer?.(s),i}#a(e,t){const r=this.#e.registerBase(this.#t,e,t);this.#r.set(e,r);const i=s=>{r.set(s),this.#e.flushNow()};return this.#n.set(e,i),i}evaluateAndGet(e){return this.createExpression(e)()}runInTransaction(e){return this.#e.runInTransaction(e)}flushNow(){this.#e.flushNow()}whenPropagated(e){return this.#e.whenPropagated(e)}dispose(){this.#i||(this.#i=!0,this.#e.disposeScope(this.#t),this.#n.clear(),this.#r.clear(),this.#s.clear())}hasPointSelections(){for(const e of this.#s.values())if(bl(e)){const t=e.select;if(le(t)){if(t=="point")return!0}else if(t.type=="point")return!0}return!1}}function Ks(n,e){return!e||/^(data:|([A-Za-z]+:)?\/\/)/.test(n)||n.startsWith("/")?n:(e.endsWith("/")||(e+="/"),e+n)}function $4(n){if(!n)return n;if(/[?#]/.test(n))throw new Error(`Invalid base URL: ${n} - cannot contain query or hash.`);return n.endsWith("/")?n:n+"/"}const Pn="VISIT_SKIP",oi="VISIT_STOP",Em=n=>n;class bm{spec;#e;#t={};#n={};#r={};#s;#o;#i=!1;opacityFunction=Em;#a=[];#c="none";facetCoords=new qt([],JSON.stringify);constructor(e,t,r,i,s,o={}){if(!e)throw new Error("View spec must be defined!");if(this.context=t,this.layoutParent=r,this.dataParent=i,this.#e=s,this.spec=e,this.resolutions={scale:{},axis:{}},Ep(this),this.options={blockEncodingInheritance:!1,...o},this.flowHandle=void 0,this.needsAxes={x:!1,y:!1},this.paramRuntime=new Z4(()=>this.dataParent?.paramRuntime),e.params)for(const a of e.params)this.paramRuntime.registerParam(a);if(!this.layoutParent?.options.layeredChildren){const a=l=>this.paramRuntime.findRuntimeForParam(l)?void 0:this.paramRuntime.allocateSetter(l,0);this.#o=a("height"),this.#s=a("width")}}get name(){return this.spec.name??this.#e}get explicitName(){return this.spec.name}get defaultName(){return this.#e}get coords(){return this.facetCoords.values().next().value}getPadding(){return this._cache("size/padding",()=>Ke.createFromConfig(this.spec.padding))}getOverhang(){return Ke.zero()}isScrollable(){return this.spec.viewportWidth!=null||this.spec.viewportHeight!=null}getSize(){return this._cache("size/size",()=>this.isConfiguredVisible()?new Nn(this.#l("width"),this.#l("height")):jp)}getViewportSize(){if(!this.isScrollable())return this.getSize();if(!this.isConfiguredVisible())return jp;const e=this.getSize();return new Nn(this.#l("viewportWidth")??e.width,this.#l("viewportHeight")??e.height)}#l(e){let t=this.spec[e];const r=ff(t),i=e=="viewportWidth"||e=="viewportHeight";if(r){if(i)throw new Ve(`Cannot use step-based size with "${e}"!`,this);const s=t.step,o=this.getScaleResolution(e=="width"?"x":"y")?.getScale();if(o){let a=0;if(rn(o.type))a=o.domain().length;else if(["locus","index"].includes(o.type)){const c=o.domain();a=_o(c)-c[0]}else throw new Ve(`Cannot use step-based size with "${o.type}" scale!`,this);const l=o;return a=Mu(a,l.paddingInner(),l.paddingOuter()),{px:a*s,grow:0}}else throw new Ve(`Cannot use step-based size with "${e}"!`,this)}else return(t&&Wp(t))??(i?void 0:{px:0,grow:1})}registerStepSizeInvalidation(){this.#u("width","x"),this.#u("height","y")}#u(e,t){const r=this.spec[e];if(!ff(r))return;const i=this.getScaleResolution(t);if(!i)throw new Ve("Cannot use 'step' size without a scale!",this);const s=()=>this.invalidateSizeCache();i.addEventListener("domain",s),this.registerDisposer(()=>i.removeEventListener("domain",s))}isConfiguredVisible(){return this.context.isViewConfiguredVisible(this)}isVisibleInSpec(){return this.spec.visible??!0}isVisible(){return this.getLayoutAncestors().every(e=>e.isConfiguredVisible())}isDomainInert(){if(this.spec.domainInert)return!0;const e=this.dataParent;return e?e.isDomainInert():!1}getDataInitializationState(){return this.#c}_setDataInitializationState(e){this.#c=e}isDataInitialized(){return this.#c==="ready"}getEffectiveOpacity(){return this.opacityFunction(this.layoutParent?.getEffectiveOpacity()??1)}getPathString(){return this.getLayoutAncestors().map(e=>e.name).reverse().join("/")}#f(e){const t=[];let r=this;do t.push(r),r=r[e];while(r);return t}getLayoutAncestors(){return this.#f("layoutParent")}getDataAncestors(){return this.#f("dataParent")}handleBroadcast(e){for(const t of this.#t[e.type]||[])t(e)}_addBroadcastHandler(e,t){let r=this.#t[e];return r||(r=[],this.#t[e]=r),r.push(t),()=>{const i=this.#t[e];if(!i)return;const s=i.indexOf(t);s>=0&&i.splice(s,1)}}handleInteractionEvent(e,t,r){const i=r?this.#n:this.#r;for(const s of i[t.type]||[])s(e,t)}addInteractionEventListener(e,t,r){const i=r?this.#n:this.#r;let s=i[e];s||(s=[],i[e]=s),s.push(t)}removeInteractionEventListener(e,t,r){let s=(r?this.#n:this.#r)?.[e];if(s){const o=s.indexOf(t);o>=0&&s.splice(o,1)}}visit(e){try{const t=e(this);if(e.postOrder&&e.postOrder(this),t!==oi)return t}catch(t){throw t.view=this,t}}getDescendants(){const e=[];return this.visit(t=>{e.push(t)}),e}dispose(){for(const t of this.#a)t();this.#a.length=0;const e=this.flowHandle;e?.collector&&(this.context.dataFlow.pruneCollectorBranch(e.collector),this.context.dataFlow.removeCollector(e.collector)),e?.dataSource&&e.dataSource.view===this&&!e.dataSource.identifier&&this.context.dataFlow.removeDataSource(e.dataSource),this.paramRuntime.dispose(),this.context.dataFlow.loadingStatusRegistry.delete(this),this.flowHandle=void 0}registerDisposer(e){this.#a.push(e)}disposeSubtree(){const e=()=>{};e.postOrder=t=>{t.dispose()},this.visit(e)}configureViewOpacity(){(!this.opacityFunction||this.opacityFunction===Em)&&(this.opacityFunction=t8(this))}onBeforeRender(){this.#i||(this.#i=!0)}hasRendered(){return this.#i}render(e,t,r={}){r.firstFacet&&this.facetCoords.clear(),this.facetCoords.set(r.facetId,r.clipRect?t.intersect(r.clipRect):t),this.#s?.(t.width),this.#o?.(t.height)}getEncoding(){const e=this.dataParent&&!this.options.blockEncodingInheritance?this.dataParent.getEncoding():{},t=this.spec.encoding||{},r={...e,...t};for(const[i,s]of Object.entries(r))s===null&&delete r[i];return r}getFacetAccessor(e){if(this.layoutParent)return this.layoutParent.getFacetAccessor(this)}getFacetFields(e){const t=this.getEncoding().sample;return $t(t)?[t.field]:this.layoutParent?.getFacetFields(this)}getSampleFacetTexture(){}getScaleResolution(e){const t=Cn(e);return this.getDataAncestors().map(r=>r.resolutions.scale[t]).find(r=>r)}getAxisResolution(e){const t=Cn(e);return this.getDataAncestors().map(r=>r.resolutions.axis[t]).find(r=>r)}getConfiguredResolution(e,t){return this.spec.resolve?.[t]?.[e]}getConfiguredOrDefaultResolution(e,t){return this.getConfiguredResolution(e,t)??this.getConfiguredResolution("default",t)??this.getDefaultResolution(e,t)}getDefaultResolution(e,t){return"independent"}getBaseUrl(){return hr(()=>this.dataParent?.getBaseUrl(),$4(this.spec.baseUrl))}isPickingSupported(){return!0}getTitleText(){const e=this.spec.title;if(e)return le(e)?e:Ie(e.text)?this.paramRuntime.evaluateAndGet(e.text.expr):e.text}_cache(e,t){return La(this,e,t)}_invalidateCacheByPrefix(e,t="self"){switch(t){case"self":Ms(this,e);break;case"ancestors":for(const r of this.getLayoutAncestors())Ms(r,e);break;case"progeny":this.visit(r=>Ms(r,e));break}}invalidateSizeCache(){Ms(this,"size"),this._invalidateCacheByPrefix("size","ancestors")}propagateInteractionEvent(e){}}function e8(n){return"unitsPerPixel"in n}function t8(n){const e="opacity"in n.spec?n.spec.opacity:void 0;if(e!==void 0){if(Ye(e))return t=>t*e;if(e8(e)){const t=c=>{const u=n.getScaleResolution(c),f=u?.getScale();if(["linear","index","locus"].includes(f?.type))return{scale:f,scaleResolution:u}},r=xm(e.values,"opacity.values",n);if(!Ce(e.unitsPerPixel))throw new Ve('"opacity.unitsPerPixel" must be an array.',n);let i=()=>1,s=[];const o=()=>{const c=xm(s.map(h=>h()),"opacity.unitsPerPixel",n),u=n8(c,r,n),f=Bu().domain(u.unitsPerPixel).range(u.values).clamp(!0);i=h=>f(h)};s=e.unitsPerPixel.map(c=>{if(Ie(c)){const u=n.paramRuntime.watchExpression(c.expr,()=>{o(),n.context.animator.requestRender()});return()=>u(null)}else return()=>c}),o();const a=c=>{const f=c.scaleResolution.getAxisLength()||1e3;return Pi(c.scale.domain())/f};let l;if(e.channel==="auto"){const c=t("x"),u=t("y");if(c&&u)l=()=>(a(c)+a(u))/2;else if(c)l=()=>a(c);else if(u)l=()=>a(u);else throw new Ve("Cannot find a resolved quantitative x or y scale for dynamic opacity!",n)}else{const c=e.channel?t(e.channel):t("x")??t("y");if(!c)throw new Ve("Cannot find a resolved quantitative scale for dynamic opacity!",n);l=()=>a(c)}return c=>i(l())*c}else if(Ie(e)){const t=n.paramRuntime.watchExpression(e.expr,()=>n.context.animator.requestRender());return r=>t(null)*r}}return t=>t}function n8(n,e,t){if(!n.length)throw new Ve('"opacity.unitsPerPixel" must contain at least one stop.',t);if(n.length!==e.length)throw new Ve('"opacity.unitsPerPixel" and "opacity.values" must have the same length.',t);n.forEach((o,a)=>{if(o<=0)throw new Ve("Invalid opacity.unitsPerPixel value at index "+a+". Stop values must be positive.",t)});const r=n.map((o,a)=>({stop:o,value:e[a]}));r.sort((o,a)=>a.stop-o.stop);const i=r.map(o=>o.stop),s=r.map(o=>o.value);for(let o=1;o<n.length;o++)if(i[o-1]<=i[o])throw new Ve('"opacity.unitsPerPixel" must be strictly decreasing.',t);return{unitsPerPixel:i,values:s}}function xm(n,e,t){if(!Ce(n))throw new Ve('"'+e+'" must evaluate to an array.',t);return n.map((r,i)=>{if(!Ye(r)||!Number.isFinite(r))throw new Ve("Invalid "+e+" value at index "+i+". Expected a finite number.",t);return r})}const ff=n=>!!n?.step;function r8(n){return i8(n?.search,"search")}function i8(n,e){if(!n)return;const t=Array.isArray(n)?n:[n];if(t.length===0)throw new Error("The "+e+" channel array must not be empty.");const r=[];for(const i of t){if(!i||typeof i!="object"||!("field"in i))throw new Error("The "+e+" channel must be a field definition or an array of field definitions.");const s=i.field;if(typeof s!="string")throw new Error("The "+e+" channel field definition must include a string field name.");r.push(s)}return r}const s8={point:sD,rect:$Q,rule:lD,link:pD,text:ED};class tt extends bm{#e;#t=!1;#n=null;constructor(e,t,r,i,s,o){super(e,t,r,i,s,o),this.spec=e;const a=s8[this.getMarkType()];if(a)this.mark=new a(this);else throw new Error(`No such mark: ${this.getMarkType()}`);this.resolve(),this.#e=this.paramRuntime.allocateSetter("zoomLevel",1);for(const l of["x","y"]){const c=this.getScaleResolution(l);if(c){const u=()=>{this.#e(Math.sqrt(this.getZoomLevel()))};c.addEventListener("domain",u),this.registerDisposer(()=>c.removeEventListener("domain",u))}}this.needsAxes={x:!0,y:!0},this.#r()}#r(){for(const[e,t]of this.paramRuntime.paramConfigs){if(!("select"in t))continue;const r=qo(t.select),i=r.on,s=r.clear;if(jo(r)){let a=0;const l=h=>{this.paramRuntime.setValue(e,h)},c=()=>{const h=this.context.getCurrentHover();return h?.mark?.unitView===this?h.datum:null},u=i.filter?Cm(i.filter):()=>!0,f=(h,A)=>{if(!u(A.proxiedMouseEvent))return;const d=c(),g=d?d[dt]:0;let p;if(r.toggle)if(A.mouseEvent.shiftKey){if(d){const y=this.paramRuntime.getValue(e);p=zb(y,{toggle:[d]})}}else p=Il(d?[d]:null);else g!=a&&(a=g,p=Cl(d));p!==void 0&&l(p)};if(this.addInteractionEventListener(["mouseover","pointerover"].includes(i.type)?"mousemove":i.type,f),s){const h=s.filter?Cm(s.filter):()=>!0,A=(d,g)=>{if(!h(g.proxiedMouseEvent))return;a=0;const p=r.toggle?Il():Cl(null);l(p)};this.addInteractionEventListener(s.type,A)}}}}render(e,t,r={}){super.render(e,t,r),this.isConfiguredVisible()&&(e.pushView(this,t),e.renderMark(this.mark,r),e.popView(this))}getMarkType(){return typeof this.spec.mark=="object"?this.spec.mark.type:this.spec.mark}getEncoding(){const e=super.getEncoding(),t=this.mark.getSupportedChannels();for(const r of Object.keys(e))r!=="key"&&(t.includes(r)||delete e[r]);return e}resolve(e){if(!e){this.resolve("scale"),this.resolve("axis");return}const t=this.mark.encoding;for(const[r,i]of Object.entries(t)){if(!i||Array.isArray(i))continue;let s;if(gt(i))s=i;else if(pl(i)){const l=i.condition;if(!Array.isArray(l)&>(l))s=l;else continue}else continue;const o=Cn(s.resolutionChannel??r);if(!Ko(o)||e=="axis"&&!ls(o))continue;let a=this;for(;(a.getConfiguredOrDefaultResolution(o,e)=="forced"||a.dataParent&&["shared","excluded","forced"].includes(a.dataParent.getConfiguredOrDefaultResolution(o,e)))&&a.getConfiguredOrDefaultResolution(o,e)!="excluded";)a=a.dataParent;if(e=="axis"&&ls(r)&&ml(o)){a.resolutions[e][o]||(a.resolutions[e][o]=new Qk(o));const l=a.resolutions[e][o],c=l.registerMember({view:this,channel:r,channelDef:s});this.registerDisposer(()=>{c()&&a.resolutions[e][o]===l&&delete a.resolutions[e][o]})}else if(e=="scale"&&Ko(r)){if(!a.resolutions[e][o]){const f=new Sk(o);a.resolutions[e][o]=f;const h=A=>{this.context.glHelper?.createRangeTexture(A.scaleResolution,!0)};f.addEventListener("range",h),f.addEventListener("domain",h),this.registerDisposer(()=>{f.removeEventListener("range",h),f.removeEventListener("domain",h)})}const l=!this.isDomainInert(),c=a.resolutions[e][o],u=c.registerMember({view:this,channel:r,channelDef:s,contributesToDomain:l});this.registerDisposer(()=>{u()&&a.resolutions[e][o]===c&&(c.dispose(),delete a.resolutions[e][o])})}}}dispose(){super.dispose(),this.mark.dispose()}getDataAccessor(e){const t=this.mark.encoders;if(t)return t[e]?.dataAccessor}getSearchAccessors(){if(!this.#n){const e=r8(this.getEncoding())??[];this.#n=e.map(t=>$(t))}return this.#n}getFacetAccessor(e){const t=this.getDataAccessor("sample");return t||super.getFacetAccessor(this)}getCollector(){return this.flowHandle?.collector}registerDomainSubscriptions(){if(this.#t||this.isDomainInert())return;const e=this.getCollector();if(!e)return;const t=this.mark.encoders;if(!t)throw new Error("Encoders are not initialized!");this.#t=!0;const r=new Map;for(const i of Object.values(t)){if(!i)continue;const s=i.accessors??[];if(s.length!==0)for(const o of s){if(!od(o)||o.channelDef.domainInert)continue;const a=this.getScaleResolution(o.scaleChannel);if(!a)throw new Error("Missing scale resolution for channel: "+o.scaleChannel);let l=r.get(a);l||(l=new Set,r.set(a,l)),l.add(o)}}for(const[i,s]of r){if(s.size===0)continue;const o=i.registerCollectorSubscriptions(e,s);this.registerDisposer(o)}}getZoomLevel(){const e=t=>this.getScaleResolution(t)?.getZoomLevel()??1;return er.map(e).reduce((t,r)=>t*r,1)}propagateInteractionEvent(e){this.handleInteractionEvent(void 0,e,!0),e.target=this,!e.stopped&&this.handleInteractionEvent(void 0,e,!1)}getDefaultResolution(e,t){return e=="x"?"shared":"independent"}}class Af extends Error{constructor(e,t){super(t),this.kind=e}}async function Bm(n,e={}){let t;try{t=await fetch(n,{signal:e.signal})}catch(r){throw new Af("network",String(r))}if(!t.ok)throw new Af("http",String(t.status)+" "+t.statusText);try{return await t.json()}catch(r){throw new Af("json",String(r))}}function o8(n){const e=new Set;n.visit(t=>{for(const r of Object.values(t.resolutions.scale)){const i=r.name;if(i&&e.has(i))throw new Error(`The same scale name "${i}" occurs in multiple scale resolutions!`);e.add(i)}})}function a8(n){for(const e of er){const t=n.getScaleResolution(e);t&&!t.name&&t.isZoomable()&&(t.name=`${e}_at_root`)}}function hf(n,e=()=>!0){return Promise.allSettled(n).then(t=>{if(e())for(const r of t)"value"in r?r.value.finalizeGraphicsInitialization():"reason"in r&&console.error(r.reason)})}async function c8(n,e,t){const r=n.import;if(!("url"in r))throw new Error("Not an url import: "+JSON.stringify(r));const i=hr(e,r.url);let s;try{s=await Bm(i)}catch(o){throw new Error(`Could not load imported view spec: ${i}. Reason: ${o.message}`)}if(t.isViewSpec(s))return s.baseUrl=hr(Fp(r.url),s.baseUrl),s;throw new Error(`The imported spec "${i}" is not a view spec: ${JSON.stringify(n)}`)}function l8(n){const e=n.getSize(),t=n.getPadding(),r=(i,s)=>i.grow>0?void 0:i.px+s;return{width:r(e.width,t.horizontalTotal),height:r(e.height,t.verticalTotal)}}function*df(n,e=[]){for(const[t,r]of n.entries())if(r instanceof Map)for(const i of df(r,[...e,t]))yield i;else yield[[...e,t],r]}const vm=2147483647,u8=Sm([vm]);function Sm(n){let e=0;for(let t=0,r=n.length;t<r;t++)e=Math.max(e,n[t]);return Math.floor(Math.log2(e)/4)+1}function f8(n){const e=Sm(n);let t=Array.from({length:n.length},(s,o)=>o),r=new Array(n.length);const i=new Array(16);for(let s=0;s<e;s++){i.fill(0);const o=s*4,a=Math.pow(16,s),l=c=>{const u=n[t[c]];return s>=u8?u>vm?Math.floor(u/a)%16:0:u>>o&15};for(let c=0;c<n.length;c++)i[l(c)]++;for(let c=1;c<16;c++)i[c]+=i[c-1];for(let c=n.length-1;c>=0;c--)r[--i[l(c)]]=t[c];[t,r]=[r,t]}return t}const qa="|",gf="\\";class A8{#e=null;#t=null;#n=!1;invalidate(){this.#e=null,this.#t=null,this.#n=!1}findDatum(e,t,r){if(!e||e.length===0)return;const i=e.join(", ");if(e.length!==t.length)throw new Error(`Key tuple length ${t.length} does not match fields [${i}]`);(!this.#e||!this.#s(e))&&this.#r(e,r);const s=this.#t;let o;if(this.#n){let a="";for(let l=0;l<t.length;l++){l>0&&(a+=qa);const c=s[l],u=ja(t[l],c);a+=Qm(u)}o=a}else{const a=s[0];o=ja(t[0],a)}return this.#e.get(o)}#r(e,t){const r=e.map(a=>$(a)),i=new Map,s=e.join(", "),o=e.length!==1;if(o)for(const a of t)for(let l=0,c=a.length;l<c;l++){const u=a[l];let f="";for(let A=0;A<r.length;A++){A>0&&(f+=qa);const d=e[A],g=ja(r[A](u),d);f+=Qm(g)}if(i.get(f)!==void 0){const A=r.map(d=>d(u));throw new Error(`Duplicate key detected for fields [${s}]: ${JSON.stringify(A)}`)}i.set(f,u)}else{const a=r[0],l=e[0];for(const c of t)for(let u=0,f=c.length;u<f;u++){const h=c[u],A=ja(a(h),l);if(i.get(A)!==void 0)throw new Error(`Duplicate key detected for fields [${s}]: ${JSON.stringify(A)}`);i.set(A,h)}}this.#e=i,this.#t=[...e],this.#n=o}#s(e){if(!this.#t||this.#t.length!==e.length)return!1;for(let t=0;t<e.length;t++)if(this.#t[t]!==e[t])return!1;return!0}}function ja(n,e){if(n===void 0)throw new Error(`Key field "${e}" is undefined. Ensure all key fields are present in the data.`);if(n===null)throw new Error(`Key field "${e}" is null. Ensure all key fields are present in the data.`);if(typeof n!="string"&&typeof n!="number"&&typeof n!="boolean")throw new Error(`Key field "${e}" must be a scalar value (string, number, or boolean).`);return n}function h8(n){if(!(n.indexOf(gf)!==-1||n.indexOf(qa)!==-1))return n;let t="";for(let r=0;r<n.length;r++){const i=n[r];(i===gf||i===qa)&&(t+=gf),t+=i}return t}function Qm(n){return typeof n=="string"?h8(n):String(n)}class Dm extends hl{#e=[];#t=$(dt);#n=[];#r=new A8;#s;#o;#i=new d8;get behavior(){return Al}get label(){return"collect"}constructor(e){super(),this.params=e??{type:"collect"},this.observers=new Set,this.facetBatches=new qt([],JSON.stringify),this.#o=p8(this.params?.sort),this.#a()}#a(){this.#e=[],this.#n=[],this.#r.invalidate(),this.facetBatches.clear(),this.facetBatches.set(void 0,this.#e)}reset(){super.reset(),this.#a()}handle(e){this.#e.push(e)}beginBatch(e){this.#r.invalidate(),Db(e)&&(this.#e=[],this.facetBatches.set(Me(e.facetId),this.#e))}complete(){if(this.#e=[],this.params.groupby?.length){if(this.facetBatches.size>1)throw new Error("TODO: Support faceted data!");const e=this.facetBatches.get(void 0),t=this.params.groupby.map(i=>$(i)),r=t.length>1?Qo(e,...t):g8(e,t[0]);this.facetBatches.clear();for(const[i,s]of df(r))this.facetBatches.set(i,s)}if(this.#o)for(const e of this.facetBatches.values())e.sort(this.#o);this.#f(),this.#c(),super.complete(),this.#u();for(const e of this.observers)e(this)}observe(e){return this.observers.add(e),()=>{this.observers.delete(e)}}#c(){if(this.children.length)for(const[e,t]of this.facetBatches.entries()){if(e){const r={type:"facet",facetId:e};for(const i of this.children)i.beginBatch(r)}for(let r=0,i=t.length;r<i;r++)this._propagate(t[r])}}repropagate(){for(const e of this.children)e.reset();this.#c();for(const e of this.children)e.complete();this.#u()}getDomain(e,t,r){return this.#i.getDomain(e,()=>{const i=Ga(t);if(r.constant)i.extend(r({}));else if(this.completed)for(const s of this.facetBatches.values())for(let o=0,a=s.length;o<a;o++)i.extend(r(s[o]));return i})}subscribeDomainChanges(e,t){return this.#i.subscribe(e,t)}getData(){switch(this.#l(),this.facetBatches.size){case 0:return[];case 1:return[...this.facetBatches.values()][0];default:{const e=this.facetBatches;return{[Symbol.iterator]:function*(){for(const r of e.values())yield*r}}}}}visitData(e){this.#l();for(const t of this.facetBatches.values())for(let r=0;r<t.length;r++)e(t[r])}getItemCount(){let e=0;for(const t of this.facetBatches.values())e+=t.length;return e}#l(){if(!this.completed)throw new Error("Data propagation is not completed! No data are available.")}#u(){this.#i.hasCachedDomains()&&this.#i.clear(),this.#i.notify()}#f(){this.#s=[];const e=this.facetBatches.values().next().value?.[0];if(e==null||!(dt in e))return;let t=0;const r=[],i=this.#t;for(const[s,o]of this.facetBatches){this.#s.push({start:t,stop:t+o.length,facetId:s}),t+=o.length;for(let a=0,l=o.length;a<l;a++)r.push(i(o[a]))}this.#n=f8(r)}findDatumByUniqueId(e){if(!this.#n.length)return;const t=jn(a=>a.start).right,r=this.#t,i=jn(a=>r(s(a))).left,s=a=>{const l=t(this.#s,a),c=this.#s[l-1];return!c||a>=c.stop?void 0:this.facetBatches.get(c.facetId)[a-c.start]},o=i(this.#n,e);if(o>=0){const a=s(this.#n[o]);if(a&&r(a)===e)return a}}findDatumByKey(e,t){return this.#l(),this.#r.findDatum(e,t,this.facetBatches.values())}}class d8{#e=new Map;#t=new Map;hasCachedDomains(){return this.#e.size>0}clear(){this.#e.clear()}getDomain(e,t){const r=this.#e.get(e);if(r)return r;{const i=t();return this.#e.set(e,i),i}}subscribe(e,t){let r=this.#t.get(e);return r||(r=new Set,this.#t.set(e,r)),r.add(t),()=>{const i=this.#t.get(e);i&&(i.delete(t),i.size===0&&this.#t.delete(e))}}notify(){if(this.#t.size===0)return;const e=new Set;for(const t of this.#t.values())for(const r of t)e.add(r);for(const t of e)t()}}function g8(n,e){const t=new Map;for(let r=0,i=n.length;r<i;r++){const s=n[r],o=e(s);let a=t.get(o);a||(a=[],t.set(o,a)),a.push(s)}return t}function p8(n){if(n?.field){const e=Me(n.field);if(e.length==1&&!e[0].includes(".")){const t=Me(n.order)[0]??"ascending",r=JSON.stringify(e[0]);return new Function("a","b",`return a[${r}] ${t==="ascending"?"-":"+"} b[${r}];`)}return UA(n.field,n.order)}}class m8 extends Qe{get behavior(){return Mt}constructor(e){super(e),this.params=e,this.startAccessor=$(e.start),this.endAccessor=$(e.end),this.chromAccessor=e.chrom?$(e.chrom):t=>{},this.weightAccessor=e.weight?$(e.weight):t=>1,this.as={coverage:e.as??"coverage",start:e.asStart??e.start,end:e.asEnd??e.end,chrom:e.asChrom??e.chrom},this.createSegment=new Function("start","end","coverage","chrom","return {"+Object.entries(this.as).filter(([t,r])=>r).map(([t,r])=>`${JSON.stringify(r)}: ${t}`).join(", ")+"};"),this.ends=new si}reset(){super.reset(),this.initialize()}initialize(){const e=this.as.coverage,t=this.as.end,r=this.as.chrom,i=this.startAccessor,s=this.endAccessor,o=this.chromAccessor,a=this.weightAccessor;let l,c,u,f=0,h=NaN;const A=this.ends;A.clear();const d=m=>{this._propagate(m),l=null},g=(m,y,C)=>{if(m==y)return;let w=!1;l&&(l[e]===C?(l[t]=y,w=!0):l[e]!=0&&d(l)),w||(l=this.createSegment(m,y,C,u))},p=()=>{let m=0;for(;(m=A.peekValue())!==void 0;)g(h,m,f),h=m,f-=A.pop();h=NaN,l&&d(l)};this.handle=m=>{const y=i(m);let C=0;for(;(C=A.peekValue())!==void 0&&C<y;)g(h,C,f),h=C,f-=A.pop();if(r){let b=o(m);b!==c&&(p(),u=b,c=u)}isNaN(h)||g(h,y,f),h=y;const w=a(m);f+=w,A.push(w,s(m))},this.complete=()=>{p(),super.complete()},this.beginBatch=m=>{p(),c=null,super.beginBatch(m)}}}function w8(n,e,t=s=>+s,r=0,i=n.length){const s=new si,o=i-r;let a;for(a=0;a<e&&a<o;a++)s.push(a,t(n[r+a]));for(;a<o;a++){const u=t(n[r+a]);u>=s.peekValue()&&(s.push(a,u),s.pop())}const l=[];let c;for(;(c=s.pop())!==void 0;)l.push(n[r+c]);return l.reverse()}class y8{constructor(e,t=-1/0,r=1/0){this.maxSize=e,this.lowerLimit=t,this.upperLimit=r;const i=this.maxSize*2+1;this.lowerLimits=new Float64Array(i),this.upperLimits=new Float64Array(i),this.lowerChildren=new Int32Array(i),this.upperChildren=new Int32Array(i),this.reset()}reset(){this.lowerLimits.fill(0),this.upperLimits.fill(0),this.lowerChildren.fill(0),this.upperChildren.fill(0),this.n=1,this.lowerLimits[0]=this.lowerLimit,this.upperLimits[0]=this.upperLimit}_findSlot(e,t,r=0){if(e>=this.lowerLimits[r]&&t<=this.upperLimits[r]){const i=this.lowerChildren[r];if(i){const s=this._findSlot(e,t,i);return s>=0?s:this._findSlot(e,t,this.upperChildren[r])}else return r}else return-1}reserve(e,t){if(t-e<=0)throw new Error("Cannot reserve an empty or negative-size slot!");if(this.n+1>this.lowerLimits.length)return!1;const r=this._findSlot(e,t);if(r<0)return!1;const i=this.n++,s=this.n++;return this.lowerLimits[i]=this.lowerLimits[r],this.upperLimits[i]=e,this.lowerLimits[s]=t,this.upperLimits[s]=this.upperLimits[r],this.lowerChildren[r]=i,this.upperChildren[r]=s,!0}}class C8 extends Qe{get behavior(){return Al}constructor(e,t){if(super(e),this.params=e,this._data=[],this.channel=e.channel??"x",!["x","y"].includes(this.channel))throw new Error("Invalid channel: "+this.channel);this.startPosAccessor=$(this.params.pos),this.endPosAccessor=$(this.params.pos2??this.params.pos),this.startPosBisector=jn(this.startPosAccessor),this.endPosBisector=jn(this.endPosAccessor),this.scoreAccessor=$(this.params.score),this.widthAccessor=$(this.params.width),this.laneAccessor=this.params.lane?$(this.params.lane):o=>0,this.padding=this.params.padding??0,this.reservationMaps=new Map,this.resolution=t.getScaleResolution(this.channel);const r=()=>this._filterAndPropagate();this.schedule=()=>t.context.animator.requestTransition(r);const i=()=>this.schedule();this.resolution.addEventListener("domain",i),this.registerDisposer(()=>this.resolution.removeEventListener("domain",i));const s=t._addBroadcastHandler("layoutComputed",()=>this.schedule());this.registerDisposer(s)}complete(){const e=this.startPosAccessor;this._data.sort((t,r)=>e(t)-e(r));for(const t of new Set(this._data.map(this.laneAccessor)))this.reservationMaps.set(t,new y8(200));this.schedule(),super.complete()}_filterAndPropagate(){super.reset();const e=this.resolution.getScale(),t=this.resolution.getAxisLength();if(!t)return;for(const o of this.reservationMaps.values())o.reset();const r=e.domain(),s=w8(this._data,70,this.scoreAccessor,this.endPosBisector.left(this._data,r[0]),this.startPosBisector.right(this._data,r[1]));for(const o of s){let a=e(this.startPosAccessor(o))*t,l=e(this.endPosAccessor(o))*t;const c=l-a,u=this.widthAccessor(o)+this.padding*2;let f=(a+l)/2;const h=Math.max(0,(c-u)/2);if(h>0){const A=Math.max(0,u/2-f);f+=Math.min(A,h);const d=Math.max(0,u/2+f-t);f-=Math.min(d,h)}if(this.reservationMaps.get(this.laneAccessor(o)).reserve(f-u/2,f+u/2))if(this.params.asMidpoint){const A=Object.assign({},o);A[this.params.asMidpoint]=e.invert(f/t),this._propagate(A)}else this._propagate(o)}super.complete()}reset(){super.reset(),this._data=[],this.groups=new Map}handle(e){this._data.push(e)}}class I8 extends Qe{constructor(e,t){super(e,t),this.params=e,this.predicate=void 0}initialize(){let e="";if(E8(this.params))e=this.params.expr;else if(b8(this.params)){const t=this.paramRuntime.findValue(this.params.param);if(!t)throw new Error(`Cannot initialize filter transform. Selection parameter "${this.params.param}" not found!`);e=Hb(this.params,t)}else throw new Error("Invalid filter params: "+JSON.stringify(this.params));this.predicate=this.paramRuntime.watchExpression(e,()=>this.repropagate(),{scopeOwned:!1,registerDisposer:t=>this.registerDisposer(t)})}handle(e){this.predicate(e)&&this._propagate(e)}}function E8(n){return"expr"in n}function b8(n){return"param"in n}class x8 extends Qe{get behavior(){return Mt}constructor(e){super(e),this.params=e;const t=e.index;if(e.fields){const r=Me(e.fields).map(s=>$(s)),i=Me(e.as||e.fields);if(r.length!==i.length)throw new Error(`Lengths of "fields" (${r.length}), and "as" (${i.length}) do not match!`);this.handle=s=>{const o=r.map((l,c)=>l(s)??[]),a=o[0].length;for(let l=0;l<a;l++){const c=Object.assign({},s);for(let u=0;u<r.length;u++)c[i[u]]=l<o[u].length?o[u][l]:null;t&&(c[t]=l),this._propagate(c)}}}else this.handle=r=>{for(let i=0;i<r.length;i++){const s=Object.assign({},r[i]);t&&(s[t]=i),this._propagate(s)}}}}const B8=48;function*v8(n,e=","){const t=e.charCodeAt(0);let r=0;for(let i=0;i<n.length;i++){const s=n.charCodeAt(i);s==t?(yield r,r=0):r=r*10+s-B8}yield r}class S8 extends Qe{get behavior(){return Mt}constructor(e){super(e);const t=$(e.exons??"exons"),r=$(e.start??"start"),[i,s]=e.as||["exonStart","exonEnd"];this.handle=o=>{let a=r(o),l=a,c=!0;const u=t(o);for(const f of v8(u)){if(c)l=a+f;else{a=l+f;const h=Object.assign({},o);h[i]=l,h[s]=a,this._propagate(h)}c=!c}}}}class Q8 extends Qe{get behavior(){return Mt}constructor(e){super(e);const t=Me(e.field).map(s=>$(s)),r=Me(e.separator),i=Me(e.as||e.field);if(t.length!==r.length||t.length!==i.length)throw new Error(`Lengths of "separator" (${r.length}), "fields" (${t.length}), and "as" (${i.length}) do not match!`);this.handle=s=>{if(t.some(l=>!l(s)))return;const o=t.map((l,c)=>l(s).split(r[c]));D8(o,s);const a=o[0].length;for(let l=0;l<a;l++){const c=Object.assign({},s);for(let u=0;u<t.length;u++)c[i[u]]=o[u][l];this._propagate(c)}}}}function D8(n,e){const t=n.map(r=>r.length);if(!t.every(r=>r==t[0]))throw new Error("Mismatching number of elements in the fields to be split: "+JSON.stringify(e))}class k8 extends Qe{get behavior(){return yn}constructor(e,t){super(e,t),this.params=e,this.as=e.as,this.fn=void 0}initialize(){this.fn=this.paramRuntime.watchExpression(this.params.expr,()=>this.repropagate(),{scopeOwned:!1,registerDisposer:e=>this.registerDisposer(e)})}handle(e){e[this.as]=this.fn(e),this._propagate(e)}}class km extends Qe{get behavior(){return yn}constructor(e,t){e={channel:"x",...e},super(e),this.params=e;const r=e.channel;if(!["x","y"].includes(r))throw new Error("Invalid channel: "+r);const i=t.getScaleResolution(r).getScale(),s="genome"in i?i.genome():void 0;if(!s)throw new Error("LinearizeGenomicCoordinate transform requires a locus scale!");const o=$(e.chrom),a=Me(e.pos).map(g=>$(g)),l=Me(e.as);if(a.length!=l.length)throw new Error('The number of "pos" and "as" elements must be equal!');const c=Me(e.offset);let u;if(c.length==0)u=new Array(a.length).fill(0);else if(c.length==1)u=new Array(a.length).fill(c[0]);else if(c.length==a.length)u=c;else throw new Error(`Invalid "offset" parameter: ${JSON.stringify(e.offset)}!`);const f=new Function("datum","chromOffset","posAccessors",l.map((g,p)=>`datum[${JSON.stringify(g)}] = chromOffset + +posAccessors[${p}](datum) - ${u[p]};`).join(`
|
|
613
|
-
`));let h,A=0;const d=g=>{if(g!==h){if(A=s.cumulativeChromPositions.get(g),A===void 0)return;h=g}return A};this.handle=g=>{const p=o(g),m=d(p);if(m===void 0)throw new Error(`Unknown chromosome/contig "${p}" in datum: ${JSON.stringify(g)}`);f(g,m,a),this._propagate(g)}}}const Fm={chars:JSON.parse('[{"id":87,"width":53,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":43.491,"chnl":15,"x":0,"y":0,"page":0},{"id":124,"width":17,"height":50,"xoffset":0,"yoffset":-32.193000000000005,"xadvance":10.521,"chnl":15,"x":0,"y":42,"page":0},{"id":40,"width":20,"height":49,"xoffset":0,"yoffset":-32.571000000000005,"xadvance":11.214,"chnl":15,"x":0,"y":94,"page":0},{"id":41,"width":19,"height":49,"xoffset":0,"yoffset":-32.571000000000005,"xadvance":11.214,"chnl":15,"x":0,"y":145,"page":0},{"id":36,"width":32,"height":49,"xoffset":0,"yoffset":-34.419000000000004,"xadvance":24.360000000000003,"chnl":15,"x":0,"y":196,"page":0},{"id":125,"width":21,"height":48,"xoffset":0,"yoffset":-32.193000000000005,"xadvance":12.642000000000001,"chnl":15,"x":0,"y":247,"page":0},{"id":91,"width":22,"height":48,"xoffset":0,"yoffset":-32.193000000000005,"xadvance":12.852,"chnl":15,"x":0,"y":297,"page":0},{"id":93,"width":19,"height":48,"xoffset":0,"yoffset":-32.193000000000005,"xadvance":12.852,"chnl":15,"x":0,"y":347,"page":0},{"id":123,"width":21,"height":48,"xoffset":0,"yoffset":-32.193000000000005,"xadvance":12.642000000000001,"chnl":15,"x":0,"y":397,"page":0},{"id":106,"width":19,"height":48,"xoffset":0,"yoffset":-30.639000000000003,"xadvance":10.08,"chnl":15,"x":0,"y":447,"page":0},{"id":81,"width":43,"height":47,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":33.621,"chnl":15,"x":21,"y":447,"page":0},{"id":77,"width":45,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":38.997,"chnl":15,"x":66,"y":447,"page":0},{"id":64,"width":43,"height":44,"xoffset":0,"yoffset":-28.539,"xadvance":35.133,"chnl":15,"x":23,"y":397,"page":0},{"id":92,"width":28,"height":43,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":18.984,"chnl":15,"x":68,"y":397,"page":0},{"id":47,"width":28,"height":43,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":18.984,"chnl":15,"x":98,"y":397,"page":0},{"id":109,"width":42,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":34.545,"chnl":15,"x":113,"y":447,"page":0},{"id":119,"width":42,"height":31,"xoffset":0,"yoffset":-21.315,"xadvance":32.991,"chnl":15,"x":157,"y":447,"page":0},{"id":42,"width":25,"height":42,"xoffset":0,"yoffset":-31.626,"xadvance":17.85,"chnl":15,"x":128,"y":397,"page":0},{"id":37,"width":42,"height":41,"xoffset":0,"yoffset":-30.387,"xadvance":33.663000000000004,"chnl":15,"x":155,"y":397,"page":0},{"id":79,"width":42,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":33.621,"chnl":15,"x":199,"y":397,"page":0},{"id":102,"width":24,"height":41,"xoffset":0,"yoffset":-30.534000000000002,"xadvance":14.721,"chnl":15,"x":243,"y":397,"page":0},{"id":100,"width":31,"height":41,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":23.520000000000003,"chnl":15,"x":269,"y":397,"page":0},{"id":98,"width":32,"height":41,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":23.520000000000003,"chnl":15,"x":302,"y":397,"page":0},{"id":56,"width":32,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":24.360000000000003,"chnl":15,"x":336,"y":397,"page":0},{"id":38,"width":40,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":29.904000000000003,"chnl":15,"x":370,"y":397,"page":0},{"id":108,"width":17,"height":41,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":9.912,"chnl":15,"x":412,"y":397,"page":0},{"id":107,"width":31,"height":41,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":21.336000000000002,"chnl":15,"x":431,"y":397,"page":0},{"id":48,"width":33,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":24.360000000000003,"chnl":15,"x":464,"y":397,"page":0},{"id":71,"width":38,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":30.681,"chnl":15,"x":21,"y":347,"page":0},{"id":83,"width":31,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":22.785,"chnl":15,"x":61,"y":347,"page":0},{"id":63,"width":27,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":18.795,"chnl":15,"x":94,"y":347,"page":0},{"id":105,"width":18,"height":41,"xoffset":0,"yoffset":-30.639000000000003,"xadvance":10.08,"chnl":15,"x":123,"y":347,"page":0},{"id":51,"width":32,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":24.360000000000003,"chnl":15,"x":143,"y":347,"page":0},{"id":104,"width":31,"height":41,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":23.436,"chnl":15,"x":177,"y":347,"page":0},{"id":67,"width":37,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":28.056,"chnl":15,"x":210,"y":347,"page":0},{"id":88,"width":37,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":27.258000000000003,"chnl":15,"x":249,"y":347,"page":0},{"id":68,"width":40,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":31.941000000000003,"chnl":15,"x":288,"y":347,"page":0},{"id":70,"width":32,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":23.751,"chnl":15,"x":330,"y":347,"page":0},{"id":34,"width":23,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":15.561000000000002,"chnl":15,"x":364,"y":347,"page":0},{"id":72,"width":38,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":32.067,"chnl":15,"x":389,"y":347,"page":0},{"id":73,"width":18,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":11.760000000000002,"chnl":15,"x":429,"y":347,"page":0},{"id":74,"width":24,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":17.745,"chnl":15,"x":449,"y":347,"page":0},{"id":75,"width":38,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":27.825000000000003,"chnl":15,"x":24,"y":297,"page":0},{"id":76,"width":31,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":21.567,"chnl":15,"x":475,"y":347,"page":0},{"id":66,"width":35,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":27.153000000000002,"chnl":15,"x":64,"y":297,"page":0},{"id":78,"width":38,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":32.067,"chnl":15,"x":101,"y":297,"page":0},{"id":33,"width":18,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":11.298,"chnl":15,"x":141,"y":297,"page":0},{"id":80,"width":34,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":25.221,"chnl":15,"x":161,"y":297,"page":0},{"id":65,"width":38,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":28.434,"chnl":15,"x":197,"y":297,"page":0},{"id":82,"width":36,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":26.313000000000002,"chnl":15,"x":237,"y":297,"page":0},{"id":35,"width":33,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":275,"y":297,"page":0},{"id":84,"width":34,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.801000000000002,"chnl":15,"x":310,"y":297,"page":0},{"id":85,"width":37,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":30.891000000000002,"chnl":15,"x":346,"y":297,"page":0},{"id":86,"width":38,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":28.434,"chnl":15,"x":385,"y":297,"page":0},{"id":39,"width":16,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":8.568000000000001,"chnl":15,"x":425,"y":297,"page":0},{"id":69,"width":32,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.255000000000003,"chnl":15,"x":443,"y":297,"page":0},{"id":89,"width":36,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":26.208000000000002,"chnl":15,"x":23,"y":247,"page":0},{"id":90,"width":34,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":25.284000000000002,"chnl":15,"x":477,"y":297,"page":0},{"id":49,"width":31,"height":40,"xoffset":0,"yoffset":-30.156000000000002,"xadvance":24.360000000000003,"chnl":15,"x":61,"y":247,"page":0},{"id":50,"width":32,"height":40,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":24.360000000000003,"chnl":15,"x":94,"y":247,"page":0},{"id":57,"width":32,"height":40,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":24.360000000000003,"chnl":15,"x":128,"y":247,"page":0},{"id":94,"width":32,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":162,"y":247,"page":0},{"id":96,"width":21,"height":40,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":16.8,"chnl":15,"x":196,"y":247,"page":0},{"id":55,"width":33,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":219,"y":247,"page":0},{"id":54,"width":33,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":254,"y":247,"page":0},{"id":53,"width":32,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":289,"y":247,"page":0},{"id":52,"width":33,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":323,"y":247,"page":0},{"id":103,"width":31,"height":39,"xoffset":0,"yoffset":-21.630000000000003,"xadvance":21.84,"chnl":15,"x":358,"y":247,"page":0},{"id":112,"width":32,"height":39,"xoffset":0,"yoffset":-21.651,"xadvance":23.541,"chnl":15,"x":391,"y":247,"page":0},{"id":113,"width":31,"height":39,"xoffset":0,"yoffset":-21.651,"xadvance":23.520000000000003,"chnl":15,"x":425,"y":247,"page":0},{"id":116,"width":25,"height":39,"xoffset":0,"yoffset":-28.182000000000002,"xadvance":15.057,"chnl":15,"x":458,"y":247,"page":0},{"id":121,"width":31,"height":38,"xoffset":0,"yoffset":-21.273,"xadvance":21.651,"chnl":15,"x":34,"y":196,"page":0},{"id":59,"width":18,"height":36,"xoffset":0,"yoffset":-20.706,"xadvance":10.983,"chnl":15,"x":485,"y":247,"page":0},{"id":43,"width":32,"height":34,"xoffset":0,"yoffset":-24.486,"xadvance":24.360000000000003,"chnl":15,"x":67,"y":196,"page":0},{"id":60,"width":30,"height":33,"xoffset":0,"yoffset":-23.331000000000003,"xadvance":24.360000000000003,"chnl":15,"x":101,"y":196,"page":0},{"id":62,"width":31,"height":33,"xoffset":0,"yoffset":-23.331000000000003,"xadvance":24.360000000000003,"chnl":15,"x":133,"y":196,"page":0},{"id":117,"width":30,"height":32,"xoffset":0,"yoffset":-21.273,"xadvance":23.415000000000003,"chnl":15,"x":166,"y":196,"page":0},{"id":99,"width":29,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":20.055,"chnl":15,"x":198,"y":196,"page":0},{"id":110,"width":31,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":23.436,"chnl":15,"x":229,"y":196,"page":0},{"id":111,"width":32,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":23.814,"chnl":15,"x":262,"y":196,"page":0},{"id":126,"width":32,"height":26,"xoffset":0,"yoffset":-16.128,"xadvance":24.360000000000003,"chnl":15,"x":201,"y":447,"page":0},{"id":101,"width":31,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":22.176000000000002,"chnl":15,"x":296,"y":196,"page":0},{"id":114,"width":25,"height":32,"xoffset":0,"yoffset":-21.651,"xadvance":15.288,"chnl":15,"x":329,"y":196,"page":0},{"id":115,"width":27,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":18.186,"chnl":15,"x":356,"y":196,"page":0},{"id":97,"width":28,"height":32,"xoffset":0,"yoffset":-21.651,"xadvance":20.874000000000002,"chnl":15,"x":385,"y":196,"page":0},{"id":118,"width":31,"height":31,"xoffset":0,"yoffset":-21.273,"xadvance":21.672,"chnl":15,"x":415,"y":196,"page":0},{"id":61,"width":31,"height":29,"xoffset":0,"yoffset":-19.089000000000002,"xadvance":24.360000000000003,"chnl":15,"x":448,"y":196,"page":0},{"id":120,"width":30,"height":31,"xoffset":0,"yoffset":-21.273,"xadvance":20.916,"chnl":15,"x":21,"y":145,"page":0},{"id":58,"width":18,"height":31,"xoffset":0,"yoffset":-20.706,"xadvance":10.5,"chnl":15,"x":53,"y":145,"page":0},{"id":122,"width":28,"height":31,"xoffset":0,"yoffset":-21.273,"xadvance":18.984,"chnl":15,"x":73,"y":145,"page":0},{"id":95,"width":28,"height":16,"xoffset":0,"yoffset":0,"xadvance":19.278000000000002,"chnl":15,"x":235,"y":447,"page":0},{"id":45,"width":23,"height":24,"xoffset":0,"yoffset":-14.175,"xadvance":15.603000000000002,"chnl":15,"x":481,"y":196,"page":0},{"id":44,"width":17,"height":21,"xoffset":0,"yoffset":-4.956,"xadvance":9.534,"chnl":15,"x":103,"y":145,"page":0},{"id":46,"width":18,"height":15,"xoffset":0,"yoffset":-4.956,"xadvance":9.912,"chnl":15,"x":0,"y":497,"page":0},{"id":32,"width":0,"height":0,"xoffset":0,"yoffset":0,"xadvance":10.752,"chnl":15,"x":20,"y":497,"page":0}]'),common:{lineHeight:50.400000000000006,base:41.454,scaleW:512,scaleH:512,pages:1,packed:0,alphaChnl:0,redChnl:0,greenChnl:0,blueChnl:0}};class F8 extends Qe{get behavior(){return yn}constructor(e,t){super(e,t),this.params=e;const r=nu(Fm),i=$(e.field),s=e.as;let o=0;if(Ie(e.fontSize)){const a=t.paramRuntime.watchExpression(e.fontSize.expr,()=>{o=a(),this.repropagate()},{scopeOwned:!1,registerDisposer:l=>this.registerDisposer(l)});o=a()}else o=e.fontSize;this.handle=a=>{const l=i(a);l!==void 0?a[s]=r.measureWidth(l,o):a[s]=0,this._propagate(a)}}}const R8=65536;class M8 extends Qe{get behavior(){return yn}constructor(e){super(e),this.params=e}reset(){super.reset(),this.initialize()}initialize(){const e=this.params,t=e.as||"lane",r=Ye(e.spacing)?e.spacing:1,i=$(e.start),s=$(e.end);if(!e.preference!=!e.preferredOrder)throw new Error('Must specify both "preference" and "preferredOrder"');if(e.preference){const o=new Float64Array(R8),a=$(e.preference),l=e.preferredOrder;let c=1/0;this.handle=u=>{const f=i(u);f<c&&o.fill(-1/0),c=f;const h=l.indexOf(a(u));let A=-1;if(h>=0&&o[h]<f)A=h;else{const d=i(u);for(A=0;A<o.length&&!(o[A]<d);A++);if(A>=o.length)throw new Error("Out of lanes!")}o[A]=s(u)+r,u[t]=A,this._propagate(u)}}else{const o=new si,a=new si;let l=-1/0,c=0;this.handle=u=>{const f=i(u);for(;o.length&&(o.peekValue()<=f||f<l);){const A=o.pop();a.push(A,A)}l=f;let h=a.pop();h===void 0&&(h=c++),u[t]=h,this._propagate(u),o.push(h,s(u)+r)}}}}class N8 extends Qe{get behavior(){return Mt}constructor(e){if(super(e),this.params=e,e.as&&e.as.length!=e.fields.length)throw new Error('"fields" and "as" have unequal lengths!');const t=e.fields.map(i=>$(i)),r=e.as?e.as:t.map(s2);this.handle=i=>{const s={};for(let o=0;o<t.length;o++)s[r[o]]=t[o](i);this._propagate(s)}}}class T8 extends Qe{get behavior(){return yn}constructor(e){super(e),this.params=e;const t=new RegExp(e.regex),r=typeof e.as=="string"?[e.as]:e.as,i=$(e.field);this.handle=s=>{const o=i(s);if(le(o)){const a=o.match(t);if(a){if(a.length-1!=r.length)throw new Error('The number of RegEx groups and the length of "as" do not match!');for(let l=0;l<r.length;l++)s[r[l]]=a[l+1]}else if(e.skipInvalidInput)for(let l=0;l<r.length;l++)s[r[l]]=void 0;else throw new Error(`"${o}" does not match the given regex: ${t.toString()}`)}else if(!e.skipInvalidInput)throw new Error(`Trying to match a non-string field. Encountered type: ${typeof o}, field content: "${o}".`);this._propagate(s)}}}class P8 extends Qe{get behavior(){return Mt}constructor(e){super(e),this.params=e;const t=Me(e.columnRegex).map(h=>new RegExp(h));for(const h of t)if(RegExp("|"+h.source).exec("").length-1!=1)throw new Error(`Regex ${h.toString()} must have exactly one capturing group!`);const r=Me(e.asValue);if(t.length!=r.length)throw new Error('Lengths of "columnRegex" and "as" are not equal!');const i=e.skipRegex?new RegExp(e.skipRegex):void 0,s=e.asKey||"sample";let o,a,l;const c=h=>{const A=Object.keys(h);for(const p of t)if(!A.some(m=>p.test(m)))throw new Error(`No columns matching the regex ${p.toString()} found in the data!`);const d=new Map;for(const[p,m]of t.entries())for(const y of A){const C=m.exec(y)?.[1];if(C!==void 0){let w=d.get(C);w||(w=[],d.set(C,w)),w[p]=y}}o=[...d.entries()],a=A.filter(p=>!t.some(m=>m.test(p))&&!(i&&i.test(p)));const g=[...a.map(p=>JSON.stringify(p)+": datum["+JSON.stringify(p)+"]"),JSON.stringify(s)+": sampleId",...r.map((p,m)=>JSON.stringify(p)+`: datum[attrs[${m}]]`)];l=new Function("datum","sampleId","attrs",`return {
|
|
619
|
+
throw new Error("Error evaluating expression: " + ${JSON.stringify(t)} + ", " + e.message, e);
|
|
620
|
+
}`)}catch(e){throw new Error(`Invalid expression: ${t}, ${e.message}`)}}function XR(t,e={}){return jR(t,e)}function fw(t,e){const n={},i=XR(t,n),r=new Map;for(const o of i.globals){if(r.has(o))continue;const a=e(o);if(!a)throw new Error('Unknown variable "'+o+'" in expression: '+t);r.set(o,a),Object.defineProperty(n,o,{enumerable:!0,get(){return a.get()}})}const s=new Set;return i.subscribe=o=>{const a=[];for(const u of r.values())a.push(u.subscribe(o));let l=!0;const c=()=>{l&&(l=!1,s.delete(c),a.forEach(u=>u()))};return s.add(c),c},i.invalidate=()=>{for(const o of s)o();s.clear()},i.identifier=()=>i.code+"|"+Array.from(r.values()).map(o=>o.id).join(","),{expression:i,dependencies:Array.from(r.values())}}class ZR{#e=new M8;#t=new N8({lifecycleRegistry:this.#e});#n=new T8;createScope(e){const n=this.#e.createOwner("scope",e??"root");return e?this.#n.createChildScope(n,e):this.#n.createRootScope(n)}disposeScope(e){const n=this.#n.getOwnerId(e);this.#e.disposeOwner(n),this.#n.clearScope(e)}addScopeDisposer(e,n){const i=this.#n.getOwnerId(e);this.#e.addDisposer(i,n)}registerBase(e,n,i,r){const s=this.#n.getOwnerId(e),o=this.#t.createWritable(s,n,"base",i,r);return this.#n.register(e,n,o)}registerSelection(e,n,i,r){const s=this.#n.getOwnerId(e),o=this.#t.createWritable(s,n,"selection",i,r);return this.#n.register(e,n,o)}registerDerived(e,n,i){const{expression:r,dependencies:s}=fw(i,l=>this.resolve(e,l)),o=this.#n.getOwnerId(e),a=this.#t.computed(o,n,s,()=>r(null));return this.#n.register(e,n,a)}createExpression(e,n){const{expression:i}=fw(n,r=>this.resolve(e,r));return i}resolve(e,n){return this.#n.resolve(e,n)}runInTransaction(e){return this.#t.runInTransaction(e)}flushNow(){this.#t.flushNow()}whenPropagated(e){return this.#t.whenPropagated(e)}}class $R{#e;#t;#n=new Map;#i=new Map;#r=new Map;#o;#s=!1;constructor(e){this.#o=e??(()=>{});const n=this.#o();n?(this.#e=n.#e,this.#t=this.#e.createScope(n.#t)):(this.#e=new ZR,this.#t=this.#e.createScope())}registerParam(e){const n=e.name;if(Pt(n),this.#r.has(n))throw new Error('Parameter "'+n+'" already registered in this scope.');if("value"in e&&"expr"in e)throw new Error(`The parameter "${n}" must not have both value and expr properties!`);let i,r;if(e.push=="outer"){const s=this.findRuntimeForParam(n);if(!s)throw new Error(`Parameter "${n}" not found in outer scope!`);const o=s.paramConfigs.get(n);if(!o)throw new Error(`Outer parameter "${n}" exists as a value but has no registered config.`);if("expr"in o||"select"in o)throw new Error(`The outer parameter "${n}" must not have expr or select properties!`);i=a=>{s.setValue(n,a)},this.#n.set(n,i)}else if("value"in e)r=$l(e,this),i=this.#c(n,r);else if("expr"in e){const s=this.#e.registerDerived(this.#t,n,e.expr);this.#i.set(n,s),i=()=>{throw new Error('Cannot set derived parameter "'+n+'".')}}else r=$l(e,this),i=this.#c(n,r);if("select"in e){if(r??=$l(e,this),!this.#n.has(n)){const s=this.#e.registerSelection(this.#t,n,r);this.#i.set(n,s),this.#n.set(n,o=>{s.set(o),this.#e.flushNow()}),i=this.#n.get(n)}i(r)}return this.#r.set(n,e),i}allocateSetter(e,n,i=!1){if(Pt(e),this.#n.has(e))throw new Error("Setter already allocated for parameter: "+e);const r=this.#e.registerBase(this.#t,e,n,{notify:!i});this.#i.set(e,r);const s=o=>{r.set(o),this.#e.flushNow()};return this.#n.set(e,s),s}setValue(e,n){Pt(e);const i=this.#n.get(e);if(!i)throw new Error("Writable parameter not found in this scope: "+e);i(n)}getValue(e){return this.#i.get(e)?.get()}subscribe(e,n){Pt(e);const i=this.findRuntimeForParam(e);if(!i)throw new Error("Parameter not found: "+e);const r=i.#i.get(e);if(!r)throw new Error("Parameter found without local reference: "+e);return r.subscribe(n)}findValue(e){return this.findRuntimeForParam(e)?.getValue(e)}get paramConfigs(){return this.#r}findRuntimeForParam(e){return this.#i.has(e)?this:this.#o()?.findRuntimeForParam(e)}createExpression(e){return this.#e.createExpression(this.#t,e)}watchExpression(e,n,i={}){const r=this.createExpression(e),s=r.subscribe(n);return(i.scopeOwned??!0)&&this.#e.addScopeDisposer(this.#t,s),i.registerDisposer?.(s),r}#c(e,n){const i=this.#e.registerBase(this.#t,e,n);this.#i.set(e,i);const r=s=>{i.set(s),this.#e.flushNow()};return this.#n.set(e,r),r}evaluateAndGet(e){return this.createExpression(e)()}runInTransaction(e){return this.#e.runInTransaction(e)}flushNow(){this.#e.flushNow()}whenPropagated(e){return this.#e.whenPropagated(e)}dispose(){this.#s||(this.#s=!0,this.#e.disposeScope(this.#t),this.#n.clear(),this.#i.clear(),this.#r.clear())}hasPointSelections(){for(const e of this.#r.values())if(Zl(e)){const n=e.select;if(le(n)){if(n=="point")return!0}else if(n.type=="point")return!0}return!1}}function oo(t,e){return!e||/^(data:|([A-Za-z]+:)?\/\/)/.test(t)||t.startsWith("/")?t:(e.endsWith("/")||(e+="/"),e+t)}function eF(t){if(!t)return t;if(/[?#]/.test(t))throw new Error(`Invalid base URL: ${t} - cannot contain query or hash.`);return t.endsWith("/")?t:t+"/"}const fn="VISIT_SKIP",pr="VISIT_STOP",hw=t=>t;class Aw{spec;#e;#t={};#n={};#i={};#r;#o;#s=!1;opacityFunction=hw;#c=[];#a="none";facetCoords=new Xt([],JSON.stringify);constructor(e,n,i,r,s,o={}){if(!e)throw new Error("View spec must be defined!");if(this.context=n,this.layoutParent=i,this.dataParent=r,this.#e=s,this.spec=e,this.resolutions={scale:{},axis:{}},lm(this),this.options={blockEncodingInheritance:!1,...o},this.flowHandle=void 0,this.needsAxes={x:!1,y:!1},this.paramRuntime=new $R(()=>this.dataParent?.paramRuntime),e.params)for(const a of e.params)this.paramRuntime.registerParam(a);if(!this.layoutParent?.options.layeredChildren){const a=l=>this.paramRuntime.findRuntimeForParam(l)?void 0:this.paramRuntime.allocateSetter(l,0);this.#o=a("height"),this.#r=a("width")}}get name(){return this.spec.name??this.#e}get explicitName(){return this.spec.name}get defaultName(){return this.#e}get coords(){return this.facetCoords.values().next().value}getPadding(){return this._cache("size/padding",()=>je.createFromConfig(this.spec.padding))}getOverhang(){return je.zero()}isScrollable(){return this.spec.viewportWidth!=null||this.spec.viewportHeight!=null}getSize(){return this._cache("size/size",()=>this.isConfiguredVisible()?new Gn(this.#l("width"),this.#l("height")):_m)}getViewportSize(){if(!this.isScrollable())return this.getSize();if(!this.isConfiguredVisible())return _m;const e=this.getSize();return new Gn(this.#l("viewportWidth")??e.width,this.#l("viewportHeight")??e.height)}#l(e){let n=this.spec[e];const i=zf(n),r=e=="viewportWidth"||e=="viewportHeight";if(i){if(r)throw new Ye(`Cannot use step-based size with "${e}"!`,this);const s=n.step,o=this.getScaleResolution(e=="width"?"x":"y")?.getScale();if(o){let a=0;if(cn(o.type))a=o.domain().length;else if(["locus","index"].includes(o.type)){const c=o.domain();a=ra(c)-c[0]}else throw new Ye(`Cannot use step-based size with "${o.type}" scale!`,this);const l=o;return a=lf(a,l.paddingInner(),l.paddingOuter()),{px:a*s,grow:0}}else throw new Ye(`Cannot use step-based size with "${e}"!`,this)}else return(n&&zm(n))??(r?void 0:{px:0,grow:1})}registerStepSizeInvalidation(){this.#u("width","x"),this.#u("height","y")}#u(e,n){const i=this.spec[e];if(!zf(i))return;const r=this.getScaleResolution(n);if(!r)throw new Ye("Cannot use 'step' size without a scale!",this);const s=()=>this.invalidateSizeCache();r.addEventListener("domain",s),this.registerDisposer(()=>r.removeEventListener("domain",s))}isConfiguredVisible(){return this.context.isViewConfiguredVisible(this)}isVisibleInSpec(){return this.spec.visible??!0}isVisible(){return this.getLayoutAncestors().every(e=>e.isConfiguredVisible())}isDomainInert(){if(this.spec.domainInert)return!0;const e=this.dataParent;return e?e.isDomainInert():!1}getDataInitializationState(){return this.#a}_setDataInitializationState(e){this.#a=e}isDataInitialized(){return this.#a==="ready"}getEffectiveOpacity(){return this.opacityFunction(this.layoutParent?.getEffectiveOpacity()??1)}getPathString(){return this.getLayoutAncestors().map(e=>e.name).reverse().join("/")}#f(e){const n=[];let i=this;do n.push(i),i=i[e];while(i);return n}getLayoutAncestors(){return this.#f("layoutParent")}getDataAncestors(){return this.#f("dataParent")}handleBroadcast(e){for(const n of this.#t[e.type]||[])n(e)}_addBroadcastHandler(e,n){let i=this.#t[e];return i||(i=[],this.#t[e]=i),i.push(n),()=>{const r=this.#t[e];if(!r)return;const s=r.indexOf(n);s>=0&&r.splice(s,1)}}handleInteractionEvent(e,n,i){const r=i?this.#n:this.#i;for(const s of r[n.type]||[])s(e,n)}addInteractionEventListener(e,n,i){const r=i?this.#n:this.#i;let s=r[e];s||(s=[],r[e]=s),s.push(n)}removeInteractionEventListener(e,n,i){let s=(i?this.#n:this.#i)?.[e];if(s){const o=s.indexOf(n);o>=0&&s.splice(o,1)}}visit(e){try{const n=e(this);if(e.postOrder&&e.postOrder(this),n!==pr)return n}catch(n){throw n.view=this,n}}getDescendants(){const e=[];return this.visit(n=>{e.push(n)}),e}dispose(){for(const n of this.#c)n();this.#c.length=0;const e=this.flowHandle;e?.collector&&(this.context.dataFlow.pruneCollectorBranch(e.collector),this.context.dataFlow.removeCollector(e.collector)),e?.dataSource&&e.dataSource.view===this&&!e.dataSource.identifier&&this.context.dataFlow.removeDataSource(e.dataSource),this.paramRuntime.dispose(),this.context.dataFlow.loadingStatusRegistry.delete(this),this.flowHandle=void 0}registerDisposer(e){this.#c.push(e)}disposeSubtree(){const e=()=>{};e.postOrder=n=>{n.dispose()},this.visit(e)}configureViewOpacity(){(!this.opacityFunction||this.opacityFunction===hw)&&(this.opacityFunction=nF(this))}onBeforeRender(){this.#s||(this.#s=!0)}hasRendered(){return this.#s}render(e,n,i={}){i.firstFacet&&this.facetCoords.clear(),this.facetCoords.set(i.facetId,i.clipRect?n.intersect(i.clipRect):n),this.#r?.(n.width),this.#o?.(n.height)}getEncoding(){const e=this.dataParent&&!this.options.blockEncodingInheritance?this.dataParent.getEncoding():{},n=this.spec.encoding||{},i={...e,...n};for(const[r,s]of Object.entries(i))s===null&&delete i[r];return i}getFacetAccessor(e){if(this.layoutParent)return this.layoutParent.getFacetAccessor(this)}getFacetFields(e){const n=this.getEncoding().sample;return nn(n)?[n.field]:this.layoutParent?.getFacetFields(this)}getSampleFacetTexture(){}getScaleResolution(e){const n=rn(e);return this.getDataAncestors().map(i=>i.resolutions.scale[n]).find(i=>i)}getAxisResolution(e){const n=rn(e);return this.getDataAncestors().map(i=>i.resolutions.axis[n]).find(i=>i)}getConfiguredResolution(e,n){return this.spec.resolve?.[n]?.[e]}getConfiguredOrDefaultResolution(e,n){return this.getConfiguredResolution(e,n)??this.getConfiguredResolution("default",n)??this.getDefaultResolution(e,n)}getDefaultResolution(e,n){return"independent"}getBaseUrl(){return zn(()=>this.dataParent?.getBaseUrl(),eF(this.spec.baseUrl))}isPickingSupported(){return!0}getTitleText(){const e=this.spec.title;if(e)return le(e)?e:Ee(e.text)?this.paramRuntime.evaluateAndGet(e.text.expr):e.text}_cache(e,n){return Za(this,e,n)}_invalidateCacheByPrefix(e,n="self"){switch(n){case"self":Vs(this,e);break;case"ancestors":for(const i of this.getLayoutAncestors())Vs(i,e);break;case"progeny":this.visit(i=>Vs(i,e));break}}invalidateSizeCache(){Vs(this,"size"),this._invalidateCacheByPrefix("size","ancestors")}propagateInteractionEvent(e){}}function tF(t){return"unitsPerPixel"in t}function nF(t){const e="opacity"in t.spec?t.spec.opacity:void 0;if(e!==void 0){if(qe(e))return n=>n*e;if(tF(e)){const n=c=>{const u=t.getScaleResolution(c),f=u?.getScale();if(["linear","index","locus"].includes(f?.type))return{scale:f,scaleResolution:u}},i=dw(e.values,"opacity.values",t);if(!be(e.unitsPerPixel))throw new Ye('"opacity.unitsPerPixel" must be an array.',t);let r=()=>1,s=[];const o=()=>{const c=dw(s.map(h=>h()),"opacity.unitsPerPixel",t),u=iF(c,i,t),f=ef().domain(u.unitsPerPixel).range(u.values).clamp(!0);r=h=>f(h)};s=e.unitsPerPixel.map(c=>{if(Ee(c)){const u=t.paramRuntime.watchExpression(c.expr,()=>{o(),t.context.animator.requestRender()});return()=>u(null)}else return()=>c}),o();const a=c=>{const f=c.scaleResolution.getAxisLength()||1e3;return Kr(c.scale.domain())/f};let l;if(e.channel==="auto"){const c=n("x"),u=n("y");if(c&&u)l=()=>(a(c)+a(u))/2;else if(c)l=()=>a(c);else if(u)l=()=>a(u);else throw new Ye("Cannot find a resolved quantitative x or y scale for dynamic opacity!",t)}else{const c=e.channel?n(e.channel):n("x")??n("y");if(!c)throw new Ye("Cannot find a resolved quantitative scale for dynamic opacity!",t);l=()=>a(c)}return c=>r(l())*c}else if(Ee(e)){const n=t.paramRuntime.watchExpression(e.expr,()=>t.context.animator.requestRender());return i=>n(null)*i}}return n=>n}function iF(t,e,n){if(!t.length)throw new Ye('"opacity.unitsPerPixel" must contain at least one stop.',n);if(t.length!==e.length)throw new Ye('"opacity.unitsPerPixel" and "opacity.values" must have the same length.',n);t.forEach((o,a)=>{if(o<=0)throw new Ye("Invalid opacity.unitsPerPixel value at index "+a+". Stop values must be positive.",n)});const i=t.map((o,a)=>({stop:o,value:e[a]}));i.sort((o,a)=>a.stop-o.stop);const r=i.map(o=>o.stop),s=i.map(o=>o.value);for(let o=1;o<t.length;o++)if(r[o-1]<=r[o])throw new Ye('"opacity.unitsPerPixel" must be strictly decreasing.',n);return{unitsPerPixel:r,values:s}}function dw(t,e,n){if(!be(t))throw new Ye('"'+e+'" must evaluate to an array.',n);return t.map((i,r)=>{if(!qe(i)||!Number.isFinite(i))throw new Ye("Invalid "+e+" value at index "+r+". Expected a finite number.",n);return i})}const zf=t=>!!t?.step;function rF(t){return sF(t?.search,"search")}function sF(t,e){if(!t)return;const n=Array.isArray(t)?t:[t];if(n.length===0)throw new Error("The "+e+" channel array must not be empty.");const i=[];for(const r of n){if(!r||typeof r!="object"||!("field"in r))throw new Error("The "+e+" channel must be a field definition or an array of field definitions.");const s=r.field;if(typeof s!="string")throw new Error("The "+e+" channel field definition must include a string field name.");i.push(s)}return i}const oF={point:t4,rect:jk,rule:s4,link:h4,text:w4};class Je extends Aw{#e;#t=!1;#n=null;constructor(e,n,i,r,s,o){super(e,n,i,r,s,o),this.spec=e;const a=oF[this.getMarkType()];if(a)this.mark=new a(this);else throw new Error(`No such mark: ${this.getMarkType()}`);this.resolve(),this.#e=this.paramRuntime.allocateSetter("zoomLevel",1);for(const l of["x","y"]){const c=this.getScaleResolution(l);if(c){const u=()=>{this.#e(Math.sqrt(this.getZoomLevel()))};c.addEventListener("domain",u),this.registerDisposer(()=>c.removeEventListener("domain",u))}}this.needsAxes={x:!0,y:!0},this.#i()}#i(){for(const[e,n]of this.paramRuntime.paramConfigs){if(!("select"in n))continue;const i=la(n.select),r=i.on,s=i.clear;if(ua(i)){let a=0;const l=h=>{this.paramRuntime.setValue(e,h)},c=()=>{const h=this.context.getCurrentHover();return h?.mark?.unitView===this?h.datum:null},u=r.filter?lc(r.filter):()=>!0,f=(h,A)=>{if(!u(A.proxiedMouseEvent))return;const d=c(),g=d?d[pt]:0;let m;if(i.toggle)if(A.mouseEvent.shiftKey){if(d){const w=this.paramRuntime.getValue(e);m=Qv(w,{toggle:[d]})}}else m=ql(d?[d]:null);else g!=a&&(a=g,m=Jl(d));m!==void 0&&l(m)};if(this.addInteractionEventListener(["mouseover","pointerover"].includes(r.type)?"mousemove":r.type,f),s){const h=s.filter?lc(s.filter):()=>!0,A=(d,g)=>{if(!h(g.proxiedMouseEvent))return;a=0;const m=i.toggle?ql():Jl(null);l(m)};this.addInteractionEventListener(s.type,A)}}}}render(e,n,i={}){super.render(e,n,i),this.isConfiguredVisible()&&(e.pushView(this,n),e.renderMark(this.mark,i),e.popView(this))}getMarkType(){return typeof this.spec.mark=="object"?this.spec.mark.type:this.spec.mark}getEncoding(){const e=super.getEncoding(),n=this.mark.getSupportedChannels();for(const i of Object.keys(e))i!=="key"&&(n.includes(i)||delete e[i]);return e}resolve(e){if(!e){this.resolve("scale"),this.resolve("axis");return}const n=this.mark.encoding;for(const[i,r]of Object.entries(n)){if(!r||Array.isArray(r))continue;let s;if(mt(r))s=r;else if(Hl(r)){const l=r.condition;if(!Array.isArray(l)&&mt(l))s=l;else continue}else continue;const o=rn(s.resolutionChannel??i);if(!ca(o)||e=="axis"&&!bs(o))continue;let a=this;for(;(a.getConfiguredOrDefaultResolution(o,e)=="forced"||a.dataParent&&["shared","excluded","forced"].includes(a.dataParent.getConfiguredOrDefaultResolution(o,e)))&&a.getConfiguredOrDefaultResolution(o,e)!="excluded";)a=a.dataParent;if(e=="axis"&&bs(i)&&oa(o)){a.resolutions[e][o]||(a.resolutions[e][o]=new Q8(o));const l=a.resolutions[e][o],c=l.registerMember({view:this,channel:i,channelDef:s});this.registerDisposer(()=>{c()&&a.resolutions[e][o]===l&&delete a.resolutions[e][o]})}else if(e=="scale"&&ca(i)){if(!a.resolutions[e][o]){const f=new B8(o);a.resolutions[e][o]=f;const h=A=>{this.context.glHelper?.createRangeTexture(A.scaleResolution,!0)};f.addEventListener("range",h),f.addEventListener("domain",h),this.registerDisposer(()=>{f.removeEventListener("range",h),f.removeEventListener("domain",h)})}const l=!this.isDomainInert(),c=a.resolutions[e][o],u=c.registerMember({view:this,channel:i,channelDef:s,contributesToDomain:l});this.registerDisposer(()=>{u()&&a.resolutions[e][o]===c&&(c.dispose(),delete a.resolutions[e][o])})}}}dispose(){super.dispose(),this.mark.dispose()}getDataAccessor(e){const n=this.mark.encoders;if(n)return n[e]?.dataAccessor}getSearchAccessors(){if(!this.#n){const e=rF(this.getEncoding())??[];this.#n=e.map(n=>ne(n))}return this.#n}getFacetAccessor(e){const n=this.getDataAccessor("sample");return n||super.getFacetAccessor(this)}getCollector(){return this.flowHandle?.collector}registerDomainSubscriptions(){if(this.#t||this.isDomainInert())return;const e=this.getCollector();if(!e)return;const n=this.mark.encoders;if(!n)throw new Error("Encoders are not initialized!");this.#t=!0;const i=new Map;for(const r of Object.values(n)){if(!r)continue;const s=r.accessors??[];if(s.length!==0)for(const o of s){if(!Wd(o)||o.channelDef.domainInert)continue;const a=this.getScaleResolution(o.scaleChannel);if(!a)throw new Error("Missing scale resolution for channel: "+o.scaleChannel);let l=i.get(a);l||(l=new Set,i.set(a,l)),l.add(o)}}for(const[r,s]of i){if(s.size===0)continue;const o=r.registerCollectorSubscriptions(e,s);this.registerDisposer(o)}}getZoomLevel(){const e=n=>this.getScaleResolution(n)?.getZoomLevel()??1;return li.map(e).reduce((n,i)=>n*i,1)}propagateInteractionEvent(e){this.handleInteractionEvent(void 0,e,!0),e.target=this,!e.stopped&&this.handleInteractionEvent(void 0,e,!1)}getDefaultResolution(e,n){return e=="x"?"shared":"independent"}}class Gf extends Error{constructor(e,n){super(n),this.kind=e}}async function gw(t,e={}){let n;try{n=await fetch(t,{signal:e.signal})}catch(i){throw new Gf("network",String(i))}if(!n.ok)throw new Gf("http",String(n.status)+" "+n.statusText);try{return await n.json()}catch(i){throw new Gf("json",String(i))}}function aF(t){const e=new Set;t.visit(n=>{for(const i of Object.values(n.resolutions.scale)){const r=i.name;if(r&&e.has(r))throw new Error(`The same scale name "${r}" occurs in multiple scale resolutions!`);e.add(r)}})}function cF(t){for(const e of li){const n=t.getScaleResolution(e);n&&!n.name&&n.isZoomable()&&(n.name=`${e}_at_root`)}}function Hf(t,e=()=>!0){return Promise.allSettled(t).then(n=>{if(e())for(const i of n)"value"in i?i.value.finalizeGraphicsInitialization():"reason"in i&&console.error(i.reason)})}async function lF(t,e,n){const i=t.import;if(!("url"in i))throw new Error("Not an url import: "+JSON.stringify(i));const r=zn(e,i.url);let s;try{s=await gw(r)}catch(o){throw new Error(`Could not load imported view spec: ${r}. Reason: ${o.message}`)}if(n.isViewSpec(s))return s.baseUrl=zn(ym(i.url),s.baseUrl),s;throw new Error(`The imported spec "${r}" is not a view spec: ${JSON.stringify(t)}`)}function uF(t){const e=t.getSize(),n=t.getPadding(),i=(r,s)=>r.grow>0?void 0:r.px+s;return{width:i(e.width,n.horizontalTotal),height:i(e.height,n.verticalTotal)}}function*Yf(t,e=[]){for(const[n,i]of t.entries())if(i instanceof Map)for(const r of Yf(i,[...e,n]))yield r;else yield[[...e,n],i]}const pw=2147483647,fF=mw([pw]);function hF(t){for(let e=1;e<t.length;e++)if(t[e]<t[e-1])return!1;return!0}function mw(t){let e=0;for(let n=0,i=t.length;n<i;n++)t[n]>e&&(e=t[n]);return Math.floor(Math.log2(e)/4)+1}function AF(t){const e=mw(t);let n=Array.from({length:t.length},(s,o)=>o);if(hF(t))return n;let i=new Array(t.length);const r=new Array(16);for(let s=0;s<e;s++){r.fill(0);const o=s*4,a=Math.pow(16,s),l=c=>{const u=t[n[c]];return s>=fF?u>pw?Math.floor(u/a)%16:0:u>>o&15};for(let c=0;c<t.length;c++)r[l(c)]++;for(let c=1;c<16;c++)r[c]+=r[c-1];for(let c=t.length-1;c>=0;c--)i[--r[l(c)]]=n[c];[n,i]=[i,n]}return n}const uc="|",Vf="\\";class dF{#e=null;#t=null;#n=!1;invalidate(){this.#e=null,this.#t=null,this.#n=!1}findDatum(e,n,i){if(!e||e.length===0)return;const r=e.join(", ");if(e.length!==n.length)throw new Error(`Key tuple length ${n.length} does not match fields [${r}]`);(!this.#e||!this.#r(e))&&this.#i(e,i);const s=this.#t;let o;if(this.#n){let a="";for(let l=0;l<n.length;l++){l>0&&(a+=uc);const c=s[l],u=fc(n[l],c);a+=ww(u)}o=a}else{const a=s[0];o=fc(n[0],a)}return this.#e.get(o)}#i(e,n){const i=e.map(a=>ne(a)),r=new Map,s=e.join(", "),o=e.length!==1;if(o)for(const a of n)for(let l=0,c=a.length;l<c;l++){const u=a[l];let f="";for(let A=0;A<i.length;A++){A>0&&(f+=uc);const d=e[A],g=fc(i[A](u),d);f+=ww(g)}if(r.get(f)!==void 0){const A=i.map(d=>d(u));throw new Error(`Duplicate key detected for fields [${s}]: ${JSON.stringify(A)}`)}r.set(f,u)}else{const a=i[0],l=e[0];for(const c of n)for(let u=0,f=c.length;u<f;u++){const h=c[u],A=fc(a(h),l);if(r.get(A)!==void 0)throw new Error(`Duplicate key detected for fields [${s}]: ${JSON.stringify(A)}`);r.set(A,h)}}this.#e=r,this.#t=[...e],this.#n=o}#r(e){if(!this.#t||this.#t.length!==e.length)return!1;for(let n=0;n<e.length;n++)if(this.#t[n]!==e[n])return!1;return!0}}function fc(t,e){if(t===void 0)throw new Error(`Key field "${e}" is undefined. Ensure all key fields are present in the data.`);if(t===null)throw new Error(`Key field "${e}" is null. Ensure all key fields are present in the data.`);if(typeof t!="string"&&typeof t!="number"&&typeof t!="boolean")throw new Error(`Key field "${e}" must be a scalar value (string, number, or boolean).`);return t}function gF(t){if(!(t.indexOf(Vf)!==-1||t.indexOf(uc)!==-1))return t;let n="";for(let i=0;i<t.length;i++){const r=t[i];(r===Vf||r===uc)&&(n+=Vf),n+=r}return n}function ww(t){return typeof t=="string"?gF(t):String(t)}class yw extends _l{#e=[];#t=ne(pt);#n=[];#i=new dF;#r;#o;#s=new pF;get behavior(){return Ul}get label(){return"collect"}constructor(e){super(),this.params=e??{type:"collect"},this.observers=new Set,this.facetBatches=new Xt([],JSON.stringify),this.#o=wF(this.params?.sort),this.#c()}#c(){this.#e=[],this.#n=[],this.#i.invalidate(),this.facetBatches.clear(),this.facetBatches.set(void 0,this.#e)}reset(){super.reset(),this.#c()}handle(e){this.#e.push(e)}beginBatch(e){this.#i.invalidate(),mv(e)&&(this.#e=[],this.facetBatches.set(Me(e.facetId),this.#e))}complete(){if(this.#e=[],this.params.groupby?.length){if(this.facetBatches.size>1)throw new Error("TODO: Support faceted data!");const e=this.facetBatches.get(void 0),n=this.params.groupby.map(r=>ne(r)),i=n.length>1?Go(e,...n):mF(e,n[0]);this.facetBatches.clear();for(const[r,s]of Yf(i))this.facetBatches.set(r,s)}if(this.#o)for(const e of this.facetBatches.values())e.sort(this.#o);this.#f(),this.#a(),super.complete(),this.#u();for(const e of this.observers)e(this)}observe(e){return this.observers.add(e),()=>{this.observers.delete(e)}}#a(){if(this.children.length)for(const[e,n]of this.facetBatches.entries()){if(e){const i={type:"facet",facetId:e};for(const r of this.children)r.beginBatch(i)}for(let i=0,r=n.length;i<r;i++)this._propagate(n[i])}}repropagate(){for(const e of this.children)e.reset();this.#a();for(const e of this.children)e.complete();this.#u()}getDomain(e,n,i){return this.#s.getDomain(e,()=>{const r=Xs(n);if(i.constant)r.extend(i({}));else if(this.completed)for(const s of this.facetBatches.values())for(let o=0,a=s.length;o<a;o++)r.extend(i(s[o]));return r})}subscribeDomainChanges(e,n){return this.#s.subscribe(e,n)}getData(){switch(this.#l(),this.facetBatches.size){case 0:return[];case 1:return[...this.facetBatches.values()][0];default:{const e=this.facetBatches;return{[Symbol.iterator]:function*(){for(const i of e.values())yield*i}}}}}visitData(e){this.#l();for(const n of this.facetBatches.values())for(let i=0;i<n.length;i++)e(n[i])}getItemCount(){let e=0;for(const n of this.facetBatches.values())e+=n.length;return e}#l(){if(!this.completed)throw new Error("Data propagation is not completed! No data are available.")}#u(){this.#s.hasCachedDomains()&&this.#s.clear(),this.#s.notify()}#f(){this.#r=[];const e=this.facetBatches.values().next().value?.[0];if(e==null||!(pt in e))return;let n=0;const i=[],r=this.#t;for(const[s,o]of this.facetBatches){this.#r.push({start:n,stop:n+o.length,facetId:s}),n+=o.length;for(let a=0,l=o.length;a<l;a++)i.push(r(o[a]))}this.#n=AF(i)}findDatumByUniqueId(e){if(!this.#n.length)return;const n=ii(a=>a.start).right,i=this.#t,r=ii(a=>i(s(a))).left,s=a=>{const l=n(this.#r,a),c=this.#r[l-1];return!c||a>=c.stop?void 0:this.facetBatches.get(c.facetId)[a-c.start]},o=r(this.#n,e);if(o>=0){const a=s(this.#n[o]);if(a&&i(a)===e)return a}}findDatumByKey(e,n){return this.#l(),this.#i.findDatum(e,n,this.facetBatches.values())}}class pF{#e=new Map;#t=new Map;hasCachedDomains(){return this.#e.size>0}clear(){this.#e.clear()}getDomain(e,n){const i=this.#e.get(e);if(i)return i;{const r=n();return this.#e.set(e,r),r}}subscribe(e,n){let i=this.#t.get(e);return i||(i=new Set,this.#t.set(e,i)),i.add(n),()=>{const r=this.#t.get(e);r&&(r.delete(n),r.size===0&&this.#t.delete(e))}}notify(){if(this.#t.size===0)return;const e=new Set;for(const n of this.#t.values())for(const i of n)e.add(i);for(const n of e)n()}}function mF(t,e){const n=new Map;for(let i=0,r=t.length;i<r;i++){const s=t[i],o=e(s);let a=n.get(o);a||(a=[],n.set(o,a)),a.push(s)}return n}function wF(t){if(t?.field){const e=Me(t.field);if(e.length==1&&!e[0].includes(".")){const n=Me(t.order)[0]??"ascending",i=JSON.stringify(e[0]);return new Function("a","b",`return a[${i}] ${n==="ascending"?"-":"+"} b[${i}];`)}return QA(t.field,t.order)}}class yF extends Qe{get behavior(){return Tt}constructor(e){super(e),this.params=e,this.startAccessor=ne(e.start),this.endAccessor=ne(e.end),this.chromAccessor=e.chrom?ne(e.chrom):n=>{},this.weightAccessor=e.weight?ne(e.weight):n=>1,this.as={coverage:e.as??"coverage",start:e.asStart??e.start,end:e.asEnd??e.end,chrom:e.asChrom??e.chrom},this.createSegment=new Function("start","end","coverage","chrom","return {"+Object.entries(this.as).filter(([n,i])=>i).map(([n,i])=>`${JSON.stringify(i)}: ${n}`).join(", ")+"};"),this.ends=new gr}reset(){super.reset(),this.initialize()}initialize(){const e=this.as.coverage,n=this.as.end,i=this.as.chrom,r=this.startAccessor,s=this.endAccessor,o=this.chromAccessor,a=this.weightAccessor;let l,c,u,f=0,h=NaN;const A=this.ends;A.clear();const d=p=>{this._propagate(p),l=null},g=(p,w,C)=>{if(p==w)return;let y=!1;l&&(l[e]===C?(l[n]=w,y=!0):l[e]!=0&&d(l)),y||(l=this.createSegment(p,w,C,u))},m=()=>{let p=0;for(;(p=A.peekValue())!==void 0;)g(h,p,f),h=p,f-=A.pop();h=NaN,l&&d(l)};this.handle=p=>{const w=r(p);let C=0;for(;(C=A.peekValue())!==void 0&&C<w;)g(h,C,f),h=C,f-=A.pop();if(i){let I=o(p);I!==c&&(m(),u=I,c=u)}isNaN(h)||g(h,w,f),h=w;const y=a(p);f+=y,A.push(y,s(p))},this.complete=()=>{m(),super.complete()},this.beginBatch=p=>{m(),c=null,super.beginBatch(p)}}}function CF(t,e,n=s=>+s,i=0,r=t.length){const s=new gr,o=r-i;let a;for(a=0;a<e&&a<o;a++)s.push(a,n(t[i+a]));for(;a<o;a++){const u=n(t[i+a]);u>=s.peekValue()&&(s.push(a,u),s.pop())}const l=[];let c;for(;(c=s.pop())!==void 0;)l.push(t[i+c]);return l.reverse()}class bF{constructor(e,n=-1/0,i=1/0){this.maxSize=e,this.lowerLimit=n,this.upperLimit=i;const r=this.maxSize*2+1;this.lowerLimits=new Float64Array(r),this.upperLimits=new Float64Array(r),this.lowerChildren=new Int32Array(r),this.upperChildren=new Int32Array(r),this.reset()}reset(){this.lowerLimits.fill(0),this.upperLimits.fill(0),this.lowerChildren.fill(0),this.upperChildren.fill(0),this.n=1,this.lowerLimits[0]=this.lowerLimit,this.upperLimits[0]=this.upperLimit}_findSlot(e,n,i=0){if(e>=this.lowerLimits[i]&&n<=this.upperLimits[i]){const r=this.lowerChildren[i];if(r){const s=this._findSlot(e,n,r);return s>=0?s:this._findSlot(e,n,this.upperChildren[i])}else return i}else return-1}reserve(e,n){if(n-e<=0)throw new Error("Cannot reserve an empty or negative-size slot!");if(this.n+1>this.lowerLimits.length)return!1;const i=this._findSlot(e,n);if(i<0)return!1;const r=this.n++,s=this.n++;return this.lowerLimits[r]=this.lowerLimits[i],this.upperLimits[r]=e,this.lowerLimits[s]=n,this.upperLimits[s]=this.upperLimits[i],this.lowerChildren[i]=r,this.upperChildren[i]=s,!0}}class EF extends Qe{get behavior(){return Ul}constructor(e,n){if(super(e),this.params=e,this._data=[],this.channel=e.channel??"x",!["x","y"].includes(this.channel))throw new Error("Invalid channel: "+this.channel);this.startPosAccessor=ne(this.params.pos),this.endPosAccessor=ne(this.params.pos2??this.params.pos),this.startPosBisector=ii(this.startPosAccessor),this.endPosBisector=ii(this.endPosAccessor),this.scoreAccessor=ne(this.params.score),this.widthAccessor=ne(this.params.width),this.laneAccessor=this.params.lane?ne(this.params.lane):o=>0,this.padding=this.params.padding??0,this.reservationMaps=new Map,this.resolution=n.getScaleResolution(this.channel);const i=()=>this._filterAndPropagate();this.schedule=()=>n.context.animator.requestTransition(i);const r=()=>this.schedule();this.resolution.addEventListener("domain",r),this.registerDisposer(()=>this.resolution.removeEventListener("domain",r));const s=n._addBroadcastHandler("layoutComputed",()=>this.schedule());this.registerDisposer(s)}complete(){const e=this.startPosAccessor;this._data.sort((n,i)=>e(n)-e(i));for(const n of new Set(this._data.map(this.laneAccessor)))this.reservationMaps.set(n,new bF(200));this.schedule(),super.complete()}_filterAndPropagate(){super.reset();const e=this.resolution.getScale(),n=this.resolution.getAxisLength();if(!n)return;for(const o of this.reservationMaps.values())o.reset();const i=e.domain(),s=CF(this._data,70,this.scoreAccessor,this.endPosBisector.left(this._data,i[0]),this.startPosBisector.right(this._data,i[1]));for(const o of s){let a=e(this.startPosAccessor(o))*n,l=e(this.endPosAccessor(o))*n;const c=l-a,u=this.widthAccessor(o)+this.padding*2;let f=(a+l)/2;const h=Math.max(0,(c-u)/2);if(h>0){const A=Math.max(0,u/2-f);f+=Math.min(A,h);const d=Math.max(0,u/2+f-n);f-=Math.min(d,h)}if(this.reservationMaps.get(this.laneAccessor(o)).reserve(f-u/2,f+u/2))if(this.params.asMidpoint){const A=Object.assign({},o);A[this.params.asMidpoint]=e.invert(f/n),this._propagate(A)}else this._propagate(o)}super.complete()}reset(){super.reset(),this._data=[],this.groups=new Map}handle(e){this._data.push(e)}}class IF extends Qe{constructor(e,n){super(e,n),this.params=e,this.predicate=void 0}initialize(){let e="";if(xF(this.params))e=this.params.expr;else if(vF(this.params)){const n=this.paramRuntime.findValue(this.params.param);if(!n)throw new Error(`Cannot initialize filter transform. Selection parameter "${this.params.param}" not found!`);e=kv(this.params,n)}else throw new Error("Invalid filter params: "+JSON.stringify(this.params));this.predicate=this.paramRuntime.watchExpression(e,()=>this.repropagate(),{scopeOwned:!1,registerDisposer:n=>this.registerDisposer(n)})}handle(e){this.predicate(e)&&this._propagate(e)}}function xF(t){return"expr"in t}function vF(t){return"param"in t}class BF extends Qe{get behavior(){return Tt}constructor(e){super(e),this.params=e;const n=e.index;if(e.fields){const i=Me(e.fields).map(s=>ne(s)),r=Me(e.as||e.fields);if(i.length!==r.length)throw new Error(`Lengths of "fields" (${i.length}), and "as" (${r.length}) do not match!`);this.handle=s=>{const o=i.map((l,c)=>l(s)??[]),a=o[0].length;for(let l=0;l<a;l++){const c=Object.assign({},s);for(let u=0;u<i.length;u++)c[r[u]]=l<o[u].length?o[u][l]:null;n&&(c[n]=l),this._propagate(c)}}}else this.handle=i=>{for(let r=0;r<i.length;r++){const s=Object.assign({},i[r]);n&&(s[n]=r),this._propagate(s)}}}}const SF=48;function*DF(t,e=","){const n=e.charCodeAt(0);let i=0;for(let r=0;r<t.length;r++){const s=t.charCodeAt(r);s==n?(yield i,i=0):i=i*10+s-SF}yield i}class QF extends Qe{get behavior(){return Tt}constructor(e){super(e);const n=ne(e.exons??"exons"),i=ne(e.start??"start"),[r,s]=e.as||["exonStart","exonEnd"];this.handle=o=>{let a=i(o),l=a,c=!0;const u=n(o);for(const f of DF(u)){if(c)l=a+f;else{a=l+f;const h=Object.assign({},o);h[r]=l,h[s]=a,this._propagate(h)}c=!c}}}}class kF extends Qe{get behavior(){return Tt}constructor(e){super(e);const n=Me(e.field).map(s=>ne(s)),i=Me(e.separator),r=Me(e.as||e.field);if(n.length!==i.length||n.length!==r.length)throw new Error(`Lengths of "separator" (${i.length}), "fields" (${n.length}), and "as" (${r.length}) do not match!`);this.handle=s=>{if(n.some(l=>!l(s)))return;const o=n.map((l,c)=>l(s).split(i[c]));RF(o,s);const a=o[0].length;for(let l=0;l<a;l++){const c=Object.assign({},s);for(let u=0;u<n.length;u++)c[r[u]]=o[u][l];this._propagate(c)}}}}function RF(t,e){const n=t.map(i=>i.length);if(!n.every(i=>i==n[0]))throw new Error("Mismatching number of elements in the fields to be split: "+JSON.stringify(e))}class FF extends Qe{get behavior(){return Sn}constructor(e,n){super(e,n),this.params=e,this.as=e.as,this.fn=void 0}initialize(){this.fn=this.paramRuntime.watchExpression(this.params.expr,()=>this.repropagate(),{scopeOwned:!1,registerDisposer:e=>this.registerDisposer(e)})}handle(e){e[this.as]=this.fn(e),this._propagate(e)}}class Cw extends Qe{get behavior(){return Sn}constructor(e,n){e={channel:"x",...e},super(e),this.params=e;const i=e.channel;if(!["x","y"].includes(i))throw new Error("Invalid channel: "+i);const r=n.getScaleResolution(i).getScale(),s="genome"in r?r.genome():void 0;if(!s)throw new Error("LinearizeGenomicCoordinate transform requires a locus scale!");const o=ne(e.chrom),a=Me(e.pos).map(g=>ne(g)),l=Me(e.as);if(a.length!=l.length)throw new Error('The number of "pos" and "as" elements must be equal!');const c=Me(e.offset);let u;if(c.length==0)u=new Array(a.length).fill(0);else if(c.length==1)u=new Array(a.length).fill(c[0]);else if(c.length==a.length)u=c;else throw new Error(`Invalid "offset" parameter: ${JSON.stringify(e.offset)}!`);const f=new Function("datum","chromOffset","posAccessors",l.map((g,m)=>`datum[${JSON.stringify(g)}] = chromOffset + +posAccessors[${m}](datum) - ${u[m]};`).join(`
|
|
621
|
+
`));let h,A=0;const d=g=>{if(g!==h){if(A=s.cumulativeChromPositions.get(g),A===void 0)return;h=g}return A};this.handle=g=>{const m=o(g),p=d(m);if(p===void 0)throw new Error(`Unknown chromosome/contig "${m}" in datum: ${JSON.stringify(g)}`);f(g,p,a),this._propagate(g)}}}const bw={chars:JSON.parse('[{"id":87,"width":53,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":43.491,"chnl":15,"x":0,"y":0,"page":0},{"id":124,"width":17,"height":50,"xoffset":0,"yoffset":-32.193000000000005,"xadvance":10.521,"chnl":15,"x":0,"y":42,"page":0},{"id":40,"width":20,"height":49,"xoffset":0,"yoffset":-32.571000000000005,"xadvance":11.214,"chnl":15,"x":0,"y":94,"page":0},{"id":41,"width":19,"height":49,"xoffset":0,"yoffset":-32.571000000000005,"xadvance":11.214,"chnl":15,"x":0,"y":145,"page":0},{"id":36,"width":32,"height":49,"xoffset":0,"yoffset":-34.419000000000004,"xadvance":24.360000000000003,"chnl":15,"x":0,"y":196,"page":0},{"id":125,"width":21,"height":48,"xoffset":0,"yoffset":-32.193000000000005,"xadvance":12.642000000000001,"chnl":15,"x":0,"y":247,"page":0},{"id":91,"width":22,"height":48,"xoffset":0,"yoffset":-32.193000000000005,"xadvance":12.852,"chnl":15,"x":0,"y":297,"page":0},{"id":93,"width":19,"height":48,"xoffset":0,"yoffset":-32.193000000000005,"xadvance":12.852,"chnl":15,"x":0,"y":347,"page":0},{"id":123,"width":21,"height":48,"xoffset":0,"yoffset":-32.193000000000005,"xadvance":12.642000000000001,"chnl":15,"x":0,"y":397,"page":0},{"id":106,"width":19,"height":48,"xoffset":0,"yoffset":-30.639000000000003,"xadvance":10.08,"chnl":15,"x":0,"y":447,"page":0},{"id":81,"width":43,"height":47,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":33.621,"chnl":15,"x":21,"y":447,"page":0},{"id":77,"width":45,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":38.997,"chnl":15,"x":66,"y":447,"page":0},{"id":64,"width":43,"height":44,"xoffset":0,"yoffset":-28.539,"xadvance":35.133,"chnl":15,"x":23,"y":397,"page":0},{"id":92,"width":28,"height":43,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":18.984,"chnl":15,"x":68,"y":397,"page":0},{"id":47,"width":28,"height":43,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":18.984,"chnl":15,"x":98,"y":397,"page":0},{"id":109,"width":42,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":34.545,"chnl":15,"x":113,"y":447,"page":0},{"id":119,"width":42,"height":31,"xoffset":0,"yoffset":-21.315,"xadvance":32.991,"chnl":15,"x":157,"y":447,"page":0},{"id":42,"width":25,"height":42,"xoffset":0,"yoffset":-31.626,"xadvance":17.85,"chnl":15,"x":128,"y":397,"page":0},{"id":37,"width":42,"height":41,"xoffset":0,"yoffset":-30.387,"xadvance":33.663000000000004,"chnl":15,"x":155,"y":397,"page":0},{"id":79,"width":42,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":33.621,"chnl":15,"x":199,"y":397,"page":0},{"id":102,"width":24,"height":41,"xoffset":0,"yoffset":-30.534000000000002,"xadvance":14.721,"chnl":15,"x":243,"y":397,"page":0},{"id":100,"width":31,"height":41,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":23.520000000000003,"chnl":15,"x":269,"y":397,"page":0},{"id":98,"width":32,"height":41,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":23.520000000000003,"chnl":15,"x":302,"y":397,"page":0},{"id":56,"width":32,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":24.360000000000003,"chnl":15,"x":336,"y":397,"page":0},{"id":38,"width":40,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":29.904000000000003,"chnl":15,"x":370,"y":397,"page":0},{"id":108,"width":17,"height":41,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":9.912,"chnl":15,"x":412,"y":397,"page":0},{"id":107,"width":31,"height":41,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":21.336000000000002,"chnl":15,"x":431,"y":397,"page":0},{"id":48,"width":33,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":24.360000000000003,"chnl":15,"x":464,"y":397,"page":0},{"id":71,"width":38,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":30.681,"chnl":15,"x":21,"y":347,"page":0},{"id":83,"width":31,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":22.785,"chnl":15,"x":61,"y":347,"page":0},{"id":63,"width":27,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":18.795,"chnl":15,"x":94,"y":347,"page":0},{"id":105,"width":18,"height":41,"xoffset":0,"yoffset":-30.639000000000003,"xadvance":10.08,"chnl":15,"x":123,"y":347,"page":0},{"id":51,"width":32,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":24.360000000000003,"chnl":15,"x":143,"y":347,"page":0},{"id":104,"width":31,"height":41,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":23.436,"chnl":15,"x":177,"y":347,"page":0},{"id":67,"width":37,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":28.056,"chnl":15,"x":210,"y":347,"page":0},{"id":88,"width":37,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":27.258000000000003,"chnl":15,"x":249,"y":347,"page":0},{"id":68,"width":40,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":31.941000000000003,"chnl":15,"x":288,"y":347,"page":0},{"id":70,"width":32,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":23.751,"chnl":15,"x":330,"y":347,"page":0},{"id":34,"width":23,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":15.561000000000002,"chnl":15,"x":364,"y":347,"page":0},{"id":72,"width":38,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":32.067,"chnl":15,"x":389,"y":347,"page":0},{"id":73,"width":18,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":11.760000000000002,"chnl":15,"x":429,"y":347,"page":0},{"id":74,"width":24,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":17.745,"chnl":15,"x":449,"y":347,"page":0},{"id":75,"width":38,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":27.825000000000003,"chnl":15,"x":24,"y":297,"page":0},{"id":76,"width":31,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":21.567,"chnl":15,"x":475,"y":347,"page":0},{"id":66,"width":35,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":27.153000000000002,"chnl":15,"x":64,"y":297,"page":0},{"id":78,"width":38,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":32.067,"chnl":15,"x":101,"y":297,"page":0},{"id":33,"width":18,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":11.298,"chnl":15,"x":141,"y":297,"page":0},{"id":80,"width":34,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":25.221,"chnl":15,"x":161,"y":297,"page":0},{"id":65,"width":38,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":28.434,"chnl":15,"x":197,"y":297,"page":0},{"id":82,"width":36,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":26.313000000000002,"chnl":15,"x":237,"y":297,"page":0},{"id":35,"width":33,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":275,"y":297,"page":0},{"id":84,"width":34,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.801000000000002,"chnl":15,"x":310,"y":297,"page":0},{"id":85,"width":37,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":30.891000000000002,"chnl":15,"x":346,"y":297,"page":0},{"id":86,"width":38,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":28.434,"chnl":15,"x":385,"y":297,"page":0},{"id":39,"width":16,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":8.568000000000001,"chnl":15,"x":425,"y":297,"page":0},{"id":69,"width":32,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.255000000000003,"chnl":15,"x":443,"y":297,"page":0},{"id":89,"width":36,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":26.208000000000002,"chnl":15,"x":23,"y":247,"page":0},{"id":90,"width":34,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":25.284000000000002,"chnl":15,"x":477,"y":297,"page":0},{"id":49,"width":31,"height":40,"xoffset":0,"yoffset":-30.156000000000002,"xadvance":24.360000000000003,"chnl":15,"x":61,"y":247,"page":0},{"id":50,"width":32,"height":40,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":24.360000000000003,"chnl":15,"x":94,"y":247,"page":0},{"id":57,"width":32,"height":40,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":24.360000000000003,"chnl":15,"x":128,"y":247,"page":0},{"id":94,"width":32,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":162,"y":247,"page":0},{"id":96,"width":21,"height":40,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":16.8,"chnl":15,"x":196,"y":247,"page":0},{"id":55,"width":33,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":219,"y":247,"page":0},{"id":54,"width":33,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":254,"y":247,"page":0},{"id":53,"width":32,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":289,"y":247,"page":0},{"id":52,"width":33,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":323,"y":247,"page":0},{"id":103,"width":31,"height":39,"xoffset":0,"yoffset":-21.630000000000003,"xadvance":21.84,"chnl":15,"x":358,"y":247,"page":0},{"id":112,"width":32,"height":39,"xoffset":0,"yoffset":-21.651,"xadvance":23.541,"chnl":15,"x":391,"y":247,"page":0},{"id":113,"width":31,"height":39,"xoffset":0,"yoffset":-21.651,"xadvance":23.520000000000003,"chnl":15,"x":425,"y":247,"page":0},{"id":116,"width":25,"height":39,"xoffset":0,"yoffset":-28.182000000000002,"xadvance":15.057,"chnl":15,"x":458,"y":247,"page":0},{"id":121,"width":31,"height":38,"xoffset":0,"yoffset":-21.273,"xadvance":21.651,"chnl":15,"x":34,"y":196,"page":0},{"id":59,"width":18,"height":36,"xoffset":0,"yoffset":-20.706,"xadvance":10.983,"chnl":15,"x":485,"y":247,"page":0},{"id":43,"width":32,"height":34,"xoffset":0,"yoffset":-24.486,"xadvance":24.360000000000003,"chnl":15,"x":67,"y":196,"page":0},{"id":60,"width":30,"height":33,"xoffset":0,"yoffset":-23.331000000000003,"xadvance":24.360000000000003,"chnl":15,"x":101,"y":196,"page":0},{"id":62,"width":31,"height":33,"xoffset":0,"yoffset":-23.331000000000003,"xadvance":24.360000000000003,"chnl":15,"x":133,"y":196,"page":0},{"id":117,"width":30,"height":32,"xoffset":0,"yoffset":-21.273,"xadvance":23.415000000000003,"chnl":15,"x":166,"y":196,"page":0},{"id":99,"width":29,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":20.055,"chnl":15,"x":198,"y":196,"page":0},{"id":110,"width":31,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":23.436,"chnl":15,"x":229,"y":196,"page":0},{"id":111,"width":32,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":23.814,"chnl":15,"x":262,"y":196,"page":0},{"id":126,"width":32,"height":26,"xoffset":0,"yoffset":-16.128,"xadvance":24.360000000000003,"chnl":15,"x":201,"y":447,"page":0},{"id":101,"width":31,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":22.176000000000002,"chnl":15,"x":296,"y":196,"page":0},{"id":114,"width":25,"height":32,"xoffset":0,"yoffset":-21.651,"xadvance":15.288,"chnl":15,"x":329,"y":196,"page":0},{"id":115,"width":27,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":18.186,"chnl":15,"x":356,"y":196,"page":0},{"id":97,"width":28,"height":32,"xoffset":0,"yoffset":-21.651,"xadvance":20.874000000000002,"chnl":15,"x":385,"y":196,"page":0},{"id":118,"width":31,"height":31,"xoffset":0,"yoffset":-21.273,"xadvance":21.672,"chnl":15,"x":415,"y":196,"page":0},{"id":61,"width":31,"height":29,"xoffset":0,"yoffset":-19.089000000000002,"xadvance":24.360000000000003,"chnl":15,"x":448,"y":196,"page":0},{"id":120,"width":30,"height":31,"xoffset":0,"yoffset":-21.273,"xadvance":20.916,"chnl":15,"x":21,"y":145,"page":0},{"id":58,"width":18,"height":31,"xoffset":0,"yoffset":-20.706,"xadvance":10.5,"chnl":15,"x":53,"y":145,"page":0},{"id":122,"width":28,"height":31,"xoffset":0,"yoffset":-21.273,"xadvance":18.984,"chnl":15,"x":73,"y":145,"page":0},{"id":95,"width":28,"height":16,"xoffset":0,"yoffset":0,"xadvance":19.278000000000002,"chnl":15,"x":235,"y":447,"page":0},{"id":45,"width":23,"height":24,"xoffset":0,"yoffset":-14.175,"xadvance":15.603000000000002,"chnl":15,"x":481,"y":196,"page":0},{"id":44,"width":17,"height":21,"xoffset":0,"yoffset":-4.956,"xadvance":9.534,"chnl":15,"x":103,"y":145,"page":0},{"id":46,"width":18,"height":15,"xoffset":0,"yoffset":-4.956,"xadvance":9.912,"chnl":15,"x":0,"y":497,"page":0},{"id":32,"width":0,"height":0,"xoffset":0,"yoffset":0,"xadvance":10.752,"chnl":15,"x":20,"y":497,"page":0}]'),common:{lineHeight:50.400000000000006,base:41.454,scaleW:512,scaleH:512,pages:1,packed:0,alphaChnl:0,redChnl:0,greenChnl:0,blueChnl:0}};class NF extends Qe{get behavior(){return Sn}constructor(e,n){super(e,n),this.params=e;const i=Ru(bw),r=ne(e.field),s=e.as;let o=0;if(Ee(e.fontSize)){const a=n.paramRuntime.watchExpression(e.fontSize.expr,()=>{o=a(),this.repropagate()},{scopeOwned:!1,registerDisposer:l=>this.registerDisposer(l)});o=a()}else o=e.fontSize;this.handle=a=>{const l=r(a);l!==void 0?a[s]=i.measureWidth(l,o):a[s]=0,this._propagate(a)}}}const MF=65536;class TF extends Qe{get behavior(){return Sn}constructor(e){super(e),this.params=e}reset(){super.reset(),this.initialize()}initialize(){const e=this.params,n=e.as||"lane",i=qe(e.spacing)?e.spacing:1,r=ne(e.start),s=ne(e.end);if(!e.preference!=!e.preferredOrder)throw new Error('Must specify both "preference" and "preferredOrder"');if(e.preference){const o=new Float64Array(MF),a=ne(e.preference),l=e.preferredOrder;let c=1/0;this.handle=u=>{const f=r(u);f<c&&o.fill(-1/0),c=f;const h=l.indexOf(a(u));let A=-1;if(h>=0&&o[h]<f)A=h;else{const d=r(u);for(A=0;A<o.length&&!(o[A]<d);A++);if(A>=o.length)throw new Error("Out of lanes!")}o[A]=s(u)+i,u[n]=A,this._propagate(u)}}else{const o=new gr,a=new gr;let l=-1/0,c=0;this.handle=u=>{const f=r(u);for(;o.length&&(o.peekValue()<=f||f<l);){const A=o.pop();a.push(A,A)}l=f;let h=a.pop();h===void 0&&(h=c++),u[n]=h,this._propagate(u),o.push(h,s(u)+i)}}}}class PF extends Qe{get behavior(){return Tt}constructor(e){if(super(e),this.params=e,e.as&&e.as.length!=e.fields.length)throw new Error('"fields" and "as" have unequal lengths!');const n=e.fields.map(r=>ne(r)),i=e.as?e.as:n.map(jE);this.handle=r=>{const s={};for(let o=0;o<n.length;o++)s[i[o]]=n[o](r);this._propagate(s)}}}class LF extends Qe{get behavior(){return Sn}constructor(e){super(e),this.params=e;const n=new RegExp(e.regex),i=typeof e.as=="string"?[e.as]:e.as,r=ne(e.field);this.handle=s=>{const o=r(s);if(le(o)){const a=o.match(n);if(a){if(a.length-1!=i.length)throw new Error('The number of RegEx groups and the length of "as" do not match!');for(let l=0;l<i.length;l++)s[i[l]]=a[l+1]}else if(e.skipInvalidInput)for(let l=0;l<i.length;l++)s[i[l]]=void 0;else throw new Error(`"${o}" does not match the given regex: ${n.toString()}`)}else if(!e.skipInvalidInput)throw new Error(`Trying to match a non-string field. Encountered type: ${typeof o}, field content: "${o}".`);this._propagate(s)}}}class OF extends Qe{get behavior(){return Tt}constructor(e){super(e),this.params=e;const n=Me(e.columnRegex).map(h=>new RegExp(h));for(const h of n)if(RegExp("|"+h.source).exec("").length-1!=1)throw new Error(`Regex ${h.toString()} must have exactly one capturing group!`);const i=Me(e.asValue);if(n.length!=i.length)throw new Error('Lengths of "columnRegex" and "as" are not equal!');const r=e.skipRegex?new RegExp(e.skipRegex):void 0,s=e.asKey||"sample";let o,a,l;const c=h=>{const A=Object.keys(h);for(const m of n)if(!A.some(p=>m.test(p)))throw new Error(`No columns matching the regex ${m.toString()} found in the data!`);const d=new Map;for(const[m,p]of n.entries())for(const w of A){const C=p.exec(w)?.[1];if(C!==void 0){let y=d.get(C);y||(y=[],d.set(C,y)),y[m]=w}}o=[...d.entries()],a=A.filter(m=>!n.some(p=>p.test(m))&&!(r&&r.test(m)));const g=[...a.map(m=>JSON.stringify(m)+": datum["+JSON.stringify(m)+"]"),JSON.stringify(s)+": sampleId",...i.map((m,p)=>JSON.stringify(m)+`: datum[attrs[${p}]]`)];l=new Function("datum","sampleId","attrs",`return {
|
|
614
622
|
`+g.join(`,
|
|
615
623
|
`)+`
|
|
616
|
-
};`)},u=h=>{o||c(h);for(let A=0;A<o.length;A++){const[d,g]=o[A],p=l(h,d,g);this._propagate(p)}},f=h=>{c(h),u(h),this.handle=u};this.handle=f,this.beginBatch=h=>{nd(h)&&(this.handle=f),super.beginBatch(h)}}}class L8 extends Qe{get behavior(){return yn}constructor(e){super(e),this.params=e,this.buffer=[]}reset(){super.reset(),this.buffer=[]}handle(e){this.buffer.push(e)}complete(){const e=this.params,t=e.as||["y0","y1"],r=e.sort?UA(e.sort.field,e.sort.order):void 0,i=e.field?$(e.field):()=>1,s=e.groupby.map(u=>$(u)),o=II(this.buffer,u=>s.map(f=>f(u)).join()).map(u=>u[1]);let a=u=>!0;if(e.baseField){const u=$(e.baseField);a=f=>u(f)!==null}let l,c;switch(e.offset){case"normalize":l=(u,f)=>u/f,c=(u,f)=>Ki(u,f);break;case"center":l=(u,f)=>u-f/2,c=(u,f)=>Ki(u,f);break;case"information":{const u=Math.log2(e.cardinality??4);l=(f,h)=>f/h,c=(f,h)=>{const d=Ki(f,y=>+!a(y)),g=Ki(f,h),p=g-d;let m=0;for(let y=0;y<f.length;y++){const C=f[y];if(a(C)){const w=h(C)/p;m-=w*Math.log2(w)}}return p/(u-(m+0))*(p/g)}}break;default:l=(u,f)=>u,c=(u,f)=>1}for(const u of o){r&&u.sort(r);const f=c(u,i);let h=0;for(const A of u){const d=h+i(A);a(A)&&(A[t[0]]=l(h,f),A[t[1]]=l(d,f),this._propagate(A),h=d)}}super.complete()}}class O8 extends Qe{get behavior(){return Mt}constructor(e){super(e),this.params=e;const t=$(e.field??"sequence"),[r,i]=e.as??["pos","sequence"];this.handle=s=>{const o=Object.assign({},s,{[i]:"",[r]:0}),a=t(s);for(let l=0;l<a.length;l++){const c=Object.assign({},o);c[r]=l,c[i]=a.charAt(l),this._propagate(c)}}}}const Rm={count:n=>n.length,valid:gI,sum:Ki,min:jc,max:qc,mean:SI,median:QI,variance:pI};class U8 extends Qe{get behavior(){return Mt}constructor(e){if(super(e),this.params=e,this.buffer=[],this.ops=[],this.as=[],e.fields){if(e.fields.length!=e.ops.length)throw new Error("Fields and ops must have the same length!");if(e.as&&e.as.length!=e.ops.length)throw new Error('If "as" is defined, "fields" and "as" must have the same length!');e.fields.forEach((t,r)=>{const i=$(t),s=Rm[e.ops[r]];this.ops.push(o=>s(o,i)),this.as.push(e.as?e.as[r]:`${e.ops[r]}_${e.fields[r]}`)})}else this.ops.push(t=>Rm.count(t)),this.as.push("count")}reset(){super.reset(),this.buffer=[]}handle(e){this.buffer.push(e)}complete(){const t=this.params?.groupby;if(t?.length>0){const r=t.map(s=>$(s)),i=Qo(this.buffer,...r);for(const[s,o]of df(i)){const a={};for(let l=0;l<t.length;l++)a[t[l]]=s[l];this.ops.forEach((l,c)=>{a[this.as[c]]=l(o)}),this._propagate(a)}}else{const r={};this.ops.forEach((i,s)=>{r[this.as[s]]=i(this.buffer)}),this._propagate(r)}super.complete()}}const G8={aggregate:U8,collect:Dm,coverage:m8,filterScoredLabels:C8,filter:I8,flatten:x8,flattenCompressedExons:S8,flattenDelimited:Q8,flattenSequence:O8,formula:k8,identifier:dl,linearizeGenomicCoordinate:km,measureText:F8,pileup:M8,project:N8,regexExtract:T8,regexFold:P8,sample:Qp,stack:L8};function z8(n,e){const t=G8[n.type];if(t)return new t(n,e);throw new Error("Unknown transform: "+n.type)}function Mm(n,e=[]){if(!Pm(n)&&!Tm(n))return;const t={...n.format};if(t.type??=Tm(n)&&V8(e),t.parse??="auto",!t.type)throw new Error("Format for the data source was not defined and it could not be inferred: "+JSON.stringify(n));return t}function H8(n){return ul(n)?.responseType??"text"}function V8(n){if(Array.isArray(n)&&(n=n[0]),n)return n.match(/\.(csv|tsv|json)/)?.[1]}const Nm=n=>typeof n!="object"?_8:Y8,_8=n=>({data:n}),Y8=n=>n;function Tm(n){return"url"in n}class mr extends hl{view;constructor(e){super(),this.view=e}get identifier(){}setLoadingStatus(e,t){this.view.context.dataFlow.loadingStatusRegistry.set(this.view,e,t)}get paramRuntime(){return this.view.paramRuntime}handle(e){throw new Error("Source does not handle incoming data!")}async load(){}repropagate(){this.load()}}function Pm(n){return"values"in n}class J8 extends mr{constructor(e,t){if(super(t),this.params=e,typeof e.values=="string"&&!e?.format?.type)throw new Error("Data format type (csv, dsv, ...) must be specified if a string is provided!")}get label(){return"inlineSource"}isTrivial(){const e=this.params.values,t=Array.isArray(e)?e[0]:e;return!!(t&&Object.keys(t).length==0&&t.constructor===Object)}updateDynamicData(e){this.#e(e)}loadSynchronously(){this.#e(this.params.values)}#e(e){let t=[],r=i=>i;if(Array.isArray(e))e.length>0&&(t=e,r=Nm(e[0]));else if(typeof e=="object")t=[e];else if(typeof e=="string")t=fl(e,Mm(this.params));else throw new Error('"values" in data configuration is not an array, object, or a string!');this.reset(),this.beginBatch({type:"file"});for(const i of t)this._propagate(r(i));this.complete()}async load(){this.loadSynchronously()}}function K8(n){return"url"in n}class q8 extends mr{constructor(e,t){super(t),this.params=us(t.paramRuntime,e,()=>this.load(),r=>this.registerDisposer(r),{batchMode:"whenPropagated"}),this.baseUrl=t?.getBaseUrl()}get identifier(){return JSON.stringify({params:this.params,baseUrl:this.baseUrl})}get label(){return"urlSource"}async#e(e){const t=hr(this.baseUrl,e.urlsFromFile),r=await fetch(t);if(!r.ok)throw new Error(`Cannot load "${t}": ${r.status} ${r.statusText}`);const i=await r.text();return fl(i,{type:e.type??"tsv"}).map(o=>typeof o=="string"?o:o.url).map(o=>hr(t,o))}async load(){const e=xe(this.params.url),t=typeof e=="object"&&"urlsFromFile"in e?await this.#e(e):(Array.isArray(e)?e:[e]).map(a=>hr(this.baseUrl,a)),r=Mm(this.params,t),i=H8(r.type);if(t.length===0||!t[0]){this.reset(),this.complete();return}const s=async a=>{try{const l=await fetch(a);if(!l.ok)throw new Error(`${l.status} ${l.statusText}`);return typeof l[i]=="function"?l[i]():l.text()}catch(l){throw new Error(`Could not load data: ${a}. Reason: ${l.message}`)}},o=(a,l)=>{try{const c=fl(a,r);this.beginBatch({type:"file",url:l});for(const u of c)this._propagate(u)}catch(c){throw new Error(`Cannot parse: ${l}: ${c.message}`)}};this.setLoadingStatus("loading"),this.reset();try{await Promise.all(t.map(a=>s(a).then(o))),this.setLoadingStatus("complete")}catch(a){this.setLoadingStatus("error",a.message)}this.complete()}}function j8(n){return"sequence"in n}class W8 extends mr{constructor(e,t){if(super(t),this.sequence=us(t.paramRuntime,e.sequence,()=>this.loadSynchronously(),r=>this.registerDisposer(r),{batchMode:"whenPropagated"}),!("start"in this.sequence))throw new Error("'start' is missing from sequence parameters!");if(!("stop"in this.sequence))throw new Error("'stop' is missing from sequence parameters!")}get label(){return"sequenceSource"}loadSynchronously(){const e=xe(this.sequence.as)??"data",t=xe(this.sequence.start)??0,r=xe(this.sequence.step)??1,i=xe(this.sequence.stop);this.reset(),this.beginBatch({type:"file"});for(let s=t;s<i;s+=r)this._propagate({[e]:s});this.complete()}async load(){this.loadSynchronously()}}class pf extends mr{initializedPromise=Promise.resolve();_lastLoadedDomain;constructor(e,t){if(super(e),t){if(t!=="x"&&t!=="y")throw new Error(`Invalid channel specified for the lazy data source: ${t}. Must be either "x" or "y"`)}else throw new Error('No channel has been specified for the lazy data source. Must be either "x" or "y".');if(this.channel=t,this.scaleResolution=this.view.getScaleResolution(t),!this.scaleResolution){const i=[`The lazy data source cannot find a resolved scale for channel "${t}".`];throw this.view instanceof tt||i.push('Make sure the view has a "shared" scale resolution as it is not a unit view.'),new Error(i.join(" "))}const r=()=>{this.view.isVisible()&&this.onDomainChanged(this.scaleResolution.getDomain(),this.scaleResolution.getComplexDomain())};this.scaleResolution.addEventListener("domain",r),this.view.context.addBroadcastListener("layoutComputed",r)}get genome(){const e=this.scaleResolution.getScale();if("genome"in e){const t=e.genome();if(t)return t}throw new Error("No genome has been defined!")}onDomainChanged(e,t){}requestRender(){this.view.context.animator.requestRender()}async load(){this.reset(),this.complete()}publishData(e){this._lastLoadedDomain=Array.from(this.scaleResolution.getDomain()),this.reset(),this.beginBatch({type:"file"});for(const t of e)for(const r of t)this._propagate(r);this.complete()}isDataReadyForDomain(e){const t=e[this.channel];if(!t||!this._lastLoadedDomain)return!1;const[r,i]=t[0]<=t[1]?t:[t[1],t[0]],[s,o]=this._lastLoadedDomain[0]<=this._lastLoadedDomain[1]?this._lastLoadedDomain:[this._lastLoadedDomain[1],this._lastLoadedDomain[0]];return r>=s&&i<=o}}class X8 extends pf{ticks=[];constructor(e,t){const r={...e};super(t,r.channel),this.params=e}get label(){return"axisTickSource"}async load(){this.ticks=null,this.onDomainChanged()}onDomainChanged(){const e=this.scaleResolution.getScale(),t=this.scaleResolution.getAxisLength(),r=this.params.axis,i=l=>25+60*wm(100,700,l),s=Ye(r.tickCount)?r.tickCount:Math.round(t/i(t)),o=Np(e,s,r.tickMinStep),a=r.values?Tp(e,r.values,o):LD(e,o);if(this.ticks==null||!Lr(a,this.ticks)){this.ticks=a;const l=UD(e,s,r.format);this.publishData([a.map(c=>({value:c,label:l(c)}))])}}}class Z8 extends pf{constructor(e,t){super(t,e.channel)}get label(){return"axisGenomeSource"}async load(){this.publishData([this.genome.chromosomes])}}class qs extends pf{#e=new AbortController;#t=[0,0];#n=[0,0];#r=0;params;setupDebouncing(e){const t=()=>xe(e.debounce),r=e.debounceMode;if(r=="domain")this.onDomainChanged=Yo(this.onDomainChanged.bind(this),t,!1);else if(r=="window")this.loadInterval=Yo(this.loadInterval.bind(this),t,!1);else throw new Error("Invalid debounceMode: "+r)}onDomainChanged(e){this.#n=e;const t=xe(this.params?.windowSize)??-1;e[1]-e[0]>t||this.callIfWindowsChanged(e,t,async r=>{await this.initializedPromise,this.loadInterval(r)})}reloadLastDomain(){const e=this.#n;this.#n=[0,0],this.#t=[0,0],this._lastLoadedDomain=void 0,this.onDomainChanged(e)}async loadInterval(e){}publishData(e){const t=this._lastLoadedDomain;super.publishData(e),t&&(this._lastLoadedDomain=t)}async discretizeAndLoad(e,t){this.#e.abort(),this.setLoadingStatus("loading"),this.#e=new AbortController;const r=this.#e.signal,i=this.genome.continuousToDiscreteChromosomeIntervals(e);try{const s=await Promise.all(i.map(async o=>t(o,r)));if(!r.aborted)return this.setLoadingStatus("complete"),this._lastLoadedDomain=Array.from(e),s}catch(s){if(!r.aborted)throw this.setLoadingStatus("error",s.message),s}}callIfWindowsChanged(e,t,r){const i=[Math.max(Math.floor(e[0]/t)*t,0),Math.min(Math.ceil(e[1]/t)*t,this.genome.totalSize)],s=this.#t;(t!==this.#r||i[0]<s[0]||i[1]>s[1])&&(this.#t=i,this.#r=t,r(i))}}class $8 extends qs{constructor(e,t){const r={channel:"x",windowSize:7e3,debounce:200,debounceMode:"window",...e};if(super(t,r.channel),this.params=r,!this.params.url)throw new Error("No URL provided for IndexedFastaSource");this.setupDebouncing(this.params),this.initializedPromise=new Promise(i=>{Promise.all([Promise.resolve().then(()=>dM),Promise.resolve().then(()=>Zs)]).then(([{IndexedFasta:s},{RemoteFile:o}])=>{const a=l=>new o(Ks(l,this.view.getBaseUrl()));this.fasta=new s({fasta:a(this.params.url),fai:a(this.params.indexUrl??this.params.url+".fai")}),i()})})}get label(){return"bigWigSource"}async loadInterval(e){const t=await this.discretizeAndLoad(e,async(r,i)=>this.fasta.getSequence(r.chrom,r.startPos,r.endPos,{signal:i}).then(s=>{if(s!=null)return{chrom:r.chrom,start:r.startPos,sequence:s};console.log(`No sequence found for interval ${r.chrom}:${r.startPos}-${r.endPos}`)}));this.publishData([t.filter(r=>r!==void 0)])}}class eF extends qs{#e=[];#t;constructor(e,t){const r={pixelsPerBin:2,channel:"x",debounce:200,debounceMode:"window",...e},i=xe(r.channel);if(super(t,i),this.params=us(t.paramRuntime,r,s=>{s.has("url")?this.#n().then(()=>this.reloadLastDomain()):s.has("pixelsPerBin")&&this.reloadLastDomain()},s=>this.registerDisposer(s),{batchMode:"whenPropagated"}),!this.params.url)throw new Error("No URL provided for BigWigSource");this.setupDebouncing(this.params),this.#n()}get label(){return"bigWigSource"}#n(){return this.initializedPromise=new Promise((e,t)=>{Promise.all([Promise.resolve().then(()=>hy),Promise.resolve().then(()=>Zs)]).then(([{BigWig:r},{RemoteFile:i}])=>{this.#t=new r({filehandle:new i(Ks(xe(this.params.url),this.view.getBaseUrl()))}),this.setLoadingStatus("loading"),this.#t.getHeader().then(s=>{this.#e=s.zoomLevels.map(o=>o.reductionLevel).reverse(),this.#e.push(1),this.setLoadingStatus("complete"),e()}).catch(s=>{this.load(),this.setLoadingStatus("error",`${xe(this.params.url)}: ${s.message}`),t(s)})})}),this.initializedPromise}async onDomainChanged(e){await this.initializedPromise;const t=this.scaleResolution.getAxisLength()||700,r=tF(e,t,this.#e),i=Math.max(r*t,5e3);this.callIfWindowsChanged(e,i,s=>this.loadInterval(s,r))}async loadInterval(e,t){const r=.5/t/xe(this.params.pixelsPerBin),i=await this.discretizeAndLoad(e,(s,o)=>this.#t.getFeatures(s.chrom,s.startPos,s.endPos,{scale:r,signal:o}).then(a=>a.map(l=>({chrom:s.chrom,start:l.start,end:l.end,score:l.score}))));i&&this.publishData(i)}}function tF(n,e,t){const r=(n[1]-n[0])/e;return t.find(i=>i<r)??t.at(-1)}class nF extends qs{parser;bbi;parseLine;constructor(e,t){const r={channel:"x",windowSize:1e6,debounce:200,debounceMode:"window",...e},i=xe(r.channel);if(super(t,i),this.params=us(t.paramRuntime,r,s=>{s.has("url")?this.#e().then(()=>this.reloadLastDomain()):s.has("windowSize")&&this.reloadLastDomain()},s=>this.registerDisposer(s),{batchMode:"whenPropagated"}),!this.params.url)throw new Error("No URL provided for BigBedSource");this.setupDebouncing(this.params),this.#e()}get label(){return"bigBedSource"}#e(){return this.initializedPromise=new Promise((e,t)=>{Promise.all([Promise.resolve().then(()=>I5),Promise.resolve().then(()=>hy),Promise.resolve().then(()=>Zs)]).then(([r,{BigBed:i},{RemoteFile:s}])=>{const o=r.default;this.bbi=new i({filehandle:new s(Ks(xe(this.params.url),this.view.getBaseUrl()))}),this.setLoadingStatus("loading"),this.bbi.getHeader().then(async a=>{this.parser=new o({autoSql:a.autoSql});try{const l=rF(this.parser);this.parseLine=(c,u)=>l(c,u.start,u.end,u.rest)}catch{this.parseLine=(c,u)=>this.parser.parseLine(`${c} ${u.start} ${u.end} ${u.rest}`)}this.setLoadingStatus("complete"),e()}).catch(a=>{this.load(),this.setLoadingStatus("error",`${xe(this.params.url)}: ${a.message}`),t(a)})})}),this.initializedPromise}async loadInterval(e){const t=await this.discretizeAndLoad(e,async(r,i)=>this.bbi.getFeatures(r.chrom,r.startPos,r.endPos,{signal:i}).then(s=>s.map(o=>this.parseLine(r.chrom,o))));t&&this.publishData(t)}}function rF(n){const e=n.autoSql.fields.filter(y=>y.type).slice(3);let t=0,r="",i=0,s={};const o=" ",a=o.charCodeAt(0),l=48,c=45;function u(){let y=r.indexOf(o,t);y<0&&(y=i);const C=r.substring(t,y);return t=y+1,C}function f(){let y=0,C=r.charCodeAt(t),w=1;C===c&&(w=-1,t++,C=r.charCodeAt(t));do{if(C===a){t++;break}y=y*10+C-l,C=r.charCodeAt(++t)}while(t<i);return y*w}const h=e.map(y=>`${JSON.stringify(y.name)}: ${y.isNumeric?"0":"emptyString"}`),A=new Function(`
|
|
624
|
+
};`)},u=h=>{o||c(h);for(let A=0;A<o.length;A++){const[d,g]=o[A],m=l(h,d,g);this._propagate(m)}},f=h=>{c(h),u(h),this.handle=u};this.handle=f,this.beginBatch=h=>{Jd(h)&&(this.handle=f),super.beginBatch(h)}}}class UF extends Qe{get behavior(){return Sn}constructor(e){super(e),this.params=e,this.buffer=[]}reset(){super.reset(),this.buffer=[]}handle(e){this.buffer.push(e)}complete(){const e=this.params,n=e.as||["y0","y1"],i=e.sort?QA(e.sort.field,e.sort.order):void 0,r=e.field?ne(e.field):()=>1,s=e.groupby.map(u=>ne(u)),o=l2(this.buffer,u=>s.map(f=>f(u)).join()).map(u=>u[1]);let a=u=>!0;if(e.baseField){const u=ne(e.baseField);a=f=>u(f)!==null}let l,c;switch(e.offset){case"normalize":l=(u,f)=>u/f,c=(u,f)=>ss(u,f);break;case"center":l=(u,f)=>u-f/2,c=(u,f)=>ss(u,f);break;case"information":{const u=Math.log2(e.cardinality??4);l=(f,h)=>f/h,c=(f,h)=>{const d=ss(f,w=>+!a(w)),g=ss(f,h),m=g-d;let p=0;for(let w=0;w<f.length;w++){const C=f[w];if(a(C)){const y=h(C)/m;p-=y*Math.log2(y)}}return m/(u-(p+0))*(m/g)}}break;default:l=(u,f)=>u,c=(u,f)=>1}for(const u of o){i&&u.sort(i);const f=c(u,r);let h=0;for(const A of u){const d=h+r(A);a(A)&&(A[n[0]]=l(h,f),A[n[1]]=l(d,f),this._propagate(A),h=d)}}super.complete()}}class _F extends Qe{get behavior(){return Tt}constructor(e){super(e),this.params=e;const n=ne(e.field??"sequence"),[i,r]=e.as??["pos","sequence"];this.handle=s=>{const o=Object.assign({},s,{[r]:"",[i]:0}),a=n(s);for(let l=0;l<a.length;l++){const c=Object.assign({},o);c[i]=l,c[r]=a.charAt(l),this._propagate(c)}}}}const Ew={count:t=>t.length,valid:i2,sum:ss,min:Il,max:El,mean:g2,median:p2,variance:r2};class zF extends Qe{get behavior(){return Tt}constructor(e){if(super(e),this.params=e,this.buffer=[],this.ops=[],this.as=[],e.fields){if(e.fields.length!=e.ops.length)throw new Error("Fields and ops must have the same length!");if(e.as&&e.as.length!=e.ops.length)throw new Error('If "as" is defined, "fields" and "as" must have the same length!');e.fields.forEach((n,i)=>{const r=ne(n),s=Ew[e.ops[i]];this.ops.push(o=>s(o,r)),this.as.push(e.as?e.as[i]:`${e.ops[i]}_${e.fields[i]}`)})}else this.ops.push(n=>Ew.count(n)),this.as.push("count")}reset(){super.reset(),this.buffer=[]}handle(e){this.buffer.push(e)}complete(){const n=this.params?.groupby;if(n?.length>0){const i=n.map(s=>ne(s)),r=Go(this.buffer,...i);for(const[s,o]of Yf(r)){const a={};for(let l=0;l<n.length;l++)a[n[l]]=s[l];this.ops.forEach((l,c)=>{a[this.as[c]]=l(o)}),this._propagate(a)}}else{const i={};this.ops.forEach((r,s)=>{i[this.as[s]]=r(this.buffer)}),this._propagate(i)}super.complete()}}const GF={aggregate:zF,collect:yw,coverage:yF,filterScoredLabels:EF,filter:IF,flatten:BF,flattenCompressedExons:QF,flattenDelimited:kF,flattenSequence:_F,formula:FF,identifier:zl,linearizeGenomicCoordinate:Cw,measureText:NF,pileup:TF,project:PF,regexExtract:LF,regexFold:OF,sample:gm,stack:UF};function HF(t,e){const n=GF[t.type];if(n)return new n(t,e);throw new Error("Unknown transform: "+t.type)}const YF=new Set(["csv","tsv","dsv"]),Iw=new Set(["gz","bgz","bgzf"]);function xw(t,e=[]){if(!Qw(t)&&!Dw(t))return;const n={...t.format};if(n.type??=Dw(t)&&VF(e),n.parse===void 0&&jF(n.type)&&(n.parse="auto"),!n.type)throw new Error("Format for the data source was not defined and it could not be inferred: "+JSON.stringify(t));return n}function vw(t){return ci(t)?.responseType??"text"}function VF(t){if(Array.isArray(t)&&(t=t[0]),t){const e=Bw(t).split("/").pop()?.toLowerCase();if(!e)return;const n=e.split(".");for(;n.length>1&&Iw.has(n.at(-1));)n.pop();const i=n.at(-1);if(i&&ci(i))return i}}function JF(t){const e=Bw(t).split("/").pop()?.toLowerCase();if(!e)return!1;const n=e.split(".").at(-1);return!!n&&Iw.has(n)}function Bw(t){return t.replace(/[?#].*$/,"")}const Sw=t=>typeof t!="object"?qF:KF,qF=t=>({data:t}),KF=t=>t;function Dw(t){return"url"in t}function jF(t){return YF.has(t)}class vi extends _l{view;constructor(e){super(),this.view=e}get identifier(){}setLoadingStatus(e,n){this.view.context.dataFlow.loadingStatusRegistry.set(this.view,e,n)}get paramRuntime(){return this.view.paramRuntime}handle(e){throw new Error("Source does not handle incoming data!")}async load(){}repropagate(){this.load()}}function Qw(t){return"values"in t}class WF extends vi{constructor(e,n){if(super(n),this.params=e,typeof e.values=="string"&&!e?.format?.type)throw new Error("Data format type (csv, dsv, ...) must be specified if a string is provided!")}get label(){return"inlineSource"}isTrivial(){const e=this.params.values,n=Array.isArray(e)?e[0]:e;return!!(n&&Object.keys(n).length==0&&n.constructor===Object)}updateDynamicData(e){this.#e(e)}loadSynchronously(){this.#e(this.params.values)}#e(e){let n=[],i=r=>r;if(Array.isArray(e))e.length>0&&(n=e,i=Sw(e[0]));else if(typeof e=="object")n=[e];else if(typeof e=="string")n=Ol(e,xw(this.params));else throw new Error('"values" in data configuration is not an array, object, or a string!');this.reset(),this.beginBatch({type:"file"});for(const r of n)this._propagate(i(r));this.complete()}async load(){this.loadSynchronously()}}const XF=new Set(["application/gzip","application/x-gzip"]),ZF=new TextDecoder;class $F extends vi{constructor(e,n){super(n),this.params=Es(n.paramRuntime,e,()=>this.load(),i=>this.registerDisposer(i),{batchMode:"whenPropagated"}),this.baseUrl=n?.getBaseUrl()}get identifier(){return JSON.stringify({params:this.params,baseUrl:this.baseUrl})}get label(){return"urlSource"}async#e(e){const n=zn(this.baseUrl,e.urlsFromFile),i={type:e.type??"tsv"},r=await fetch(n);if(!r.ok)throw new Error(`Cannot load "${n}": ${r.status} ${r.statusText}`);const s=await Rw(r,n,vw(i.type));return Ol(s,i).map(a=>typeof a=="string"?a:a.url).map(a=>zn(n,a))}async load(){const e=ve(this.params.url),n=typeof e=="object"&&"urlsFromFile"in e?await this.#e(e):(Array.isArray(e)?e:[e]).map(a=>zn(this.baseUrl,a)),i=xw(this.params,n),r=vw(i.type);if(n.length===0||!n[0]){this.reset(),this.complete();return}const s=async a=>{try{const l=await fetch(a);if(!l.ok)throw new Error(`${l.status} ${l.statusText}`);return await Rw(l,a,r)}catch(l){throw new Error(`Could not load data: ${a}. Reason: ${l.message}`)}},o=async(a,l)=>{try{const c=Ol(a,i),u=c instanceof Promise?await c:c;this.beginBatch({type:"file",url:l});for(const f of u)this._propagate(f)}catch(c){throw console.warn(c),new Error(`Cannot parse: ${l}: ${c.message}`)}};this.setLoadingStatus("loading"),this.reset();try{await Promise.all(n.map(a=>s(a).then(o))),this.setLoadingStatus("complete")}catch(a){this.setLoadingStatus("error",a.message)}this.complete()}}function eN(t){return"url"in t}function tN(t){return t.length>=10&&t[0]==31&&t[1]==139&&t[2]==8&&(t[3]&224)==0}function nN(t){return t?XF.has(t.split(";")[0].trim().toLowerCase()):!1}function iN(t){return t?t.toLowerCase().split(",").some(e=>e.trim()=="gzip"):!1}function kw(t){return new Uint8Array(t).buffer}async function rN(t){if(typeof DecompressionStream!="function")throw new Error("Gzip-compressed URL data requires DecompressionStream support.");const e=new Response(kw(t)).body;if(!e)throw new Error("Cannot create a readable stream for gzip decompression.");const n=e.pipeThrough(new DecompressionStream("gzip"));return new Uint8Array(await new Response(n).arrayBuffer())}async function Rw(t,e,n){if(!(JF(e)||nN(t.headers.get("content-type"))||iN(t.headers.get("content-encoding"))))return sN(t,n);const r=new Uint8Array(await t.arrayBuffer()),s=tN(r)?await rN(r):r;return oN(s,n)}function sN(t,e){return typeof t[e]=="function"?t[e]():t.text()}function oN(t,e){return e=="arrayBuffer"?kw(t):ZF.decode(t)}function aN(t){return"sequence"in t}class cN extends vi{constructor(e,n){if(super(n),this.sequence=Es(n.paramRuntime,e.sequence,()=>this.loadSynchronously(),i=>this.registerDisposer(i),{batchMode:"whenPropagated"}),!("start"in this.sequence))throw new Error("'start' is missing from sequence parameters!");if(!("stop"in this.sequence))throw new Error("'stop' is missing from sequence parameters!")}get label(){return"sequenceSource"}loadSynchronously(){const e=ve(this.sequence.as)??"data",n=ve(this.sequence.start)??0,i=ve(this.sequence.step)??1,r=ve(this.sequence.stop);this.reset(),this.beginBatch({type:"file"});for(let s=n;s<r;s+=i)this._propagate({[e]:s});this.complete()}async load(){this.loadSynchronously()}}class hc extends vi{initializedPromise=Promise.resolve();_lastLoadedDomain;constructor(e,n){if(super(e),n){if(n!=="x"&&n!=="y")throw new Error(`Invalid channel specified for the lazy data source: ${n}. Must be either "x" or "y"`)}else throw new Error('No channel has been specified for the lazy data source. Must be either "x" or "y".');if(this.channel=n,this.scaleResolution=this.view.getScaleResolution(n),!this.scaleResolution){const r=[`The lazy data source cannot find a resolved scale for channel "${n}".`];throw this.view instanceof Je||r.push('Make sure the view has a "shared" scale resolution as it is not a unit view.'),new Error(r.join(" "))}const i=()=>{this.view.isVisible()&&this.onDomainChanged(this.scaleResolution.getDomain(),this.scaleResolution.getComplexDomain())};this.scaleResolution.addEventListener("domain",i),this.view.context.addBroadcastListener("layoutComputed",i)}get genome(){const e=this.scaleResolution.getScale();if("genome"in e){const n=e.genome();if(n)return n}throw new Error("No genome has been defined!")}onDomainChanged(e,n){}requestRender(){this.view.context.animator.requestRender()}async load(){this.reset(),this.complete()}publishData(e){this._lastLoadedDomain=Array.from(this.scaleResolution.getDomain()),this.reset(),this.beginBatch({type:"file"});for(const n of e)for(const i of n)this._propagate(i);this.complete()}isDataReadyForDomain(e){const n=e[this.channel];if(!n||!this._lastLoadedDomain)return!1;const[i,r]=n[0]<=n[1]?n:[n[1],n[0]],[s,o]=this._lastLoadedDomain[0]<=this._lastLoadedDomain[1]?this._lastLoadedDomain:[this._lastLoadedDomain[1],this._lastLoadedDomain[0]];return i>=s&&r<=o}}class lN extends hc{ticks=[];constructor(e,n){const i={...e};super(n,i.channel),this.params=e}get label(){return"axisTickSource"}async load(){this.ticks=null,this.onDomainChanged()}onDomainChanged(){const e=this.scaleResolution.getScale(),n=this.scaleResolution.getAxisLength(),i=this.params.axis,r=l=>25+60*lw(100,700,l),s=qe(i.tickCount)?i.tickCount:Math.round(n/r(n)),o=Em(e,s,i.tickMinStep),a=i.values?Im(e,i.values,o):N4(e,o);if(this.ticks==null||!Bn(a,this.ticks)){this.ticks=a;const l=T4(e,s,i.format);this.publishData([a.map(c=>({value:c,label:l(c)}))])}}}class uN extends hc{constructor(e,n){super(n,e.channel)}get label(){return"axisGenomeSource"}async load(){this.publishData([this.genome.chromosomes])}}class mr extends hc{#e=new AbortController;#t=[0,0];#n=[0,0];#i=0;params;setupDebouncing(e){const n=()=>ve(e.debounce),i=e.debounceMode;if(i=="domain")this.onDomainChanged=sa(this.onDomainChanged.bind(this),n,!1);else if(i=="window")this.loadInterval=sa(this.loadInterval.bind(this),n,!1);else throw new Error("Invalid debounceMode: "+i)}onDomainChanged(e){this.#n=e;const n=ve(this.params?.windowSize)??-1;e[1]-e[0]>n||this.callIfWindowsChanged(e,n,async i=>{await this.initializedPromise,this.loadInterval(i)})}reloadLastDomain(){const e=this.#n;this.#n=[0,0],this.#t=[0,0],this._lastLoadedDomain=void 0,this.onDomainChanged(e)}async loadInterval(e){}publishData(e){const n=this._lastLoadedDomain;super.publishData(e),n&&(this._lastLoadedDomain=n)}async discretizeAndLoad(e,n){this.#e.abort(),this.setLoadingStatus("loading"),this.#e=new AbortController;const i=this.#e.signal,r=this.genome.continuousToDiscreteChromosomeIntervals(e);try{const s=await Promise.all(r.map(async o=>n(o,i)));if(!i.aborted)return this.setLoadingStatus("complete"),this._lastLoadedDomain=Array.from(e),s}catch(s){if(!i.aborted)throw this.setLoadingStatus("error",s.message),s}}callIfWindowsChanged(e,n,i){const r=[Math.max(Math.floor(e[0]/n)*n,0),Math.min(Math.ceil(e[1]/n)*n,this.genome.totalSize)],s=this.#t;(n!==this.#i||r[0]<s[0]||r[1]>s[1])&&(this.#t=r,this.#i=n,i(r))}}class fN extends mr{constructor(e,n){const i={channel:"x",windowSize:7e3,debounce:200,debounceMode:"window",...e};if(super(n,i.channel),this.params=i,!this.params.url)throw new Error("No URL provided for IndexedFastaSource");this.setupDebouncing(this.params),this.initializedPromise=new Promise(r=>{Promise.all([Promise.resolve().then(()=>r5),Promise.resolve().then(()=>uo)]).then(([{IndexedFasta:s},{RemoteFile:o}])=>{const a=l=>new o(oo(l,this.view.getBaseUrl()));this.fasta=new s({fasta:a(this.params.url),fai:a(this.params.indexUrl??this.params.url+".fai")}),r()})})}get label(){return"bigWigSource"}async loadInterval(e){const n=await this.discretizeAndLoad(e,async(i,r)=>this.fasta.getSequence(i.chrom,i.startPos,i.endPos,{signal:r}).then(s=>{if(s!=null)return{chrom:i.chrom,start:i.startPos,sequence:s};console.log(`No sequence found for interval ${i.chrom}:${i.startPos}-${i.endPos}`)}));this.publishData([n.filter(i=>i!==void 0)])}}class hN extends mr{#e=[];#t;constructor(e,n){const i={pixelsPerBin:2,channel:"x",debounce:200,debounceMode:"window",...e},r=ve(i.channel);if(super(n,r),this.params=Es(n.paramRuntime,i,s=>{s.has("url")?this.#n().then(()=>this.reloadLastDomain()):s.has("pixelsPerBin")&&this.reloadLastDomain()},s=>this.registerDisposer(s),{batchMode:"whenPropagated"}),!this.params.url)throw new Error("No URL provided for BigWigSource");this.setupDebouncing(this.params),this.#n()}get label(){return"bigWigSource"}#n(){return this.initializedPromise=new Promise((e,n)=>{Promise.all([Promise.resolve().then(()=>vC),Promise.resolve().then(()=>uo)]).then(([{BigWig:i},{RemoteFile:r}])=>{this.#t=new i({filehandle:new r(oo(ve(this.params.url),this.view.getBaseUrl()))}),this.setLoadingStatus("loading"),this.#t.getHeader().then(s=>{this.#e=s.zoomLevels.map(o=>o.reductionLevel).reverse(),this.#e.push(1),this.setLoadingStatus("complete"),e()}).catch(s=>{this.load(),this.setLoadingStatus("error",`${ve(this.params.url)}: ${s.message}`),n(s)})})}),this.initializedPromise}async onDomainChanged(e){await this.initializedPromise;const n=this.scaleResolution.getAxisLength()||700,i=AN(e,n,this.#e),r=Math.max(i*n,5e3);this.callIfWindowsChanged(e,r,s=>this.loadInterval(s,i))}async loadInterval(e,n){const i=.5/n/ve(this.params.pixelsPerBin),r=await this.discretizeAndLoad(e,(s,o)=>this.#t.getFeatures(s.chrom,s.startPos,s.endPos,{scale:i,signal:o}).then(a=>a.map(l=>({chrom:s.chrom,start:l.start,end:l.end,score:l.score}))));r&&this.publishData(r)}}function AN(t,e,n){const i=(t[1]-t[0])/e;return n.find(r=>r<i)??n.at(-1)}class dN extends mr{parser;bbi;parseLine;constructor(e,n){const i={channel:"x",windowSize:1e6,debounce:200,debounceMode:"window",...e},r=ve(i.channel);if(super(n,r),this.params=Es(n.paramRuntime,i,s=>{s.has("url")?this.#e().then(()=>this.reloadLastDomain()):s.has("windowSize")&&this.reloadLastDomain()},s=>this.registerDisposer(s),{batchMode:"whenPropagated"}),!this.params.url)throw new Error("No URL provided for BigBedSource");this.setupDebouncing(this.params),this.#e()}get label(){return"bigBedSource"}#e(){return this.initializedPromise=new Promise((e,n)=>{Promise.all([Promise.resolve().then(()=>SC),Promise.resolve().then(()=>vC),Promise.resolve().then(()=>uo)]).then(([i,{BigBed:r},{RemoteFile:s}])=>{const o=i.default;this.bbi=new r({filehandle:new s(oo(ve(this.params.url),this.view.getBaseUrl()))}),this.setLoadingStatus("loading"),this.bbi.getHeader().then(async a=>{this.parser=new o({autoSql:a.autoSql});try{const l=gN(this.parser);this.parseLine=(c,u)=>l(c,u.start,u.end,u.rest)}catch{this.parseLine=(c,u)=>this.parser.parseLine(`${c} ${u.start} ${u.end} ${u.rest}`)}this.setLoadingStatus("complete"),e()}).catch(a=>{this.load(),this.setLoadingStatus("error",`${ve(this.params.url)}: ${a.message}`),n(a)})})}),this.initializedPromise}async loadInterval(e){const n=await this.discretizeAndLoad(e,async(i,r)=>this.bbi.getFeatures(i.chrom,i.startPos,i.endPos,{signal:r}).then(s=>s.map(o=>this.parseLine(i.chrom,o))));n&&this.publishData(n)}}function gN(t){const e=t.autoSql.fields.filter(w=>w.type).slice(3);let n=0,i="",r=0,s={};const o=" ",a=o.charCodeAt(0),l=48,c=45;function u(){let w=i.indexOf(o,n);w<0&&(w=r);const C=i.substring(n,w);return n=w+1,C}function f(){let w=0,C=i.charCodeAt(n),y=1;C===c&&(y=-1,n++,C=i.charCodeAt(n));do{if(C===a){n++;break}w=w*10+C-l,C=i.charCodeAt(++n)}while(n<r);return w*y}const h=e.map(w=>`${JSON.stringify(w.name)}: ${w.isNumeric?"0":"emptyString"}`),A=new Function(`
|
|
617
625
|
const emptyString = "";
|
|
618
626
|
return function makeTemplate(chrom, chromStart, chromEnd) {
|
|
619
627
|
return {
|
|
@@ -623,43 +631,47 @@ chrM 16299`};function BD(n){if(!(n in kp))throw new Error(`Unknown assembly: ${n
|
|
|
623
631
|
${h.join(`,
|
|
624
632
|
`)}
|
|
625
633
|
}
|
|
626
|
-
};`)(),d=e.map(
|
|
627
|
-
${
|
|
634
|
+
};`)(),d=e.map(w=>{const C=w.type,y=JSON.stringify(w.name);if(["ubyte","int","uint"].includes(C))return`d[${y}] = parseInt();`;if(w.isNumeric)return`d[${y}] = Number(parseString());`;if(["char","string","lstring"].includes(C))return`d[${y}] = parseString();`;throw new Error("Unsupported type: "+C)}),g=pN(d,50).map((w,C)=>Function("parseInt","parseString",`return function parseFieldChunk${C}(d) {
|
|
635
|
+
${w.join(`
|
|
628
636
|
`)}
|
|
629
|
-
}`)(f,u));function
|
|
630
|
-
`)+" };");return t.properties=e,t}function Om(n){let e=[];do e=e.concat(Object.keys(n)),n=Object.getPrototypeOf(n);while(n&&n!==Object.prototype);return Array.from(new Set(e))}class Wa extends Qe{get behavior(){return Mt}#e;#t=e=>e;constructor(){super({type:"clone"});const e=t=>{const r=Om(t);(!this.#e||!Lr(r,this.#e))&&(this.#e=r,this.#t=IF(t));const i=this.#t;this.handle=s=>this._propagate(i(s)),this.handle(t)};this.handle=e,this.beginBatch=t=>{nd(t)&&(this.handle=e),super.beginBatch(t)}}}function EF(n){return"name"in n}class Um extends mr{#e;constructor(e,t,r){super(t),this.provider=r,this.params=e}get identifier(){return this.params.name}get label(){return"namedSource"}updateDynamicData(e){this.#e=e,this.loadSynchronously()}loadSynchronously(){const e=this.#e??this.provider(this.params.name)??[];let t=r=>r;if(Array.isArray(e))e.length>0&&(t=Nm(e[0]));else throw new Error(`Named data "${this.params.name}" is not an array!`);this.reset(),this.beginBatch({type:"file"});for(const r of e)this._propagate(t(r));this.complete()}async load(){this.loadSynchronously()}}class Gm{#e;#t;loadingStatusRegistry;constructor(){this.#e=new Set,this.#t=new Set,this.loadingStatusRegistry=new ed}get dataSources(){return[...this.#e]}get collectors(){return[...this.#t]}replaceDataSources(e){this.#e=new Set(e)}addDataSource(e){this.#e.add(e)}removeDataSource(e){e.disposeSubtree(),this.#e.delete(e)}addCollector(e){this.#t.add(e)}removeCollector(e){e.parent&&e.parent.removeChild(e),e.disposeSubtree(),e.observers.clear(),this.#t.delete(e)}pruneCollectorBranch(e){let t=e.parent;for(t&&t.removeChild(e),e.disposeSubtree();t&&t.children.length===0;){const r=t;t=r.parent,t?(t.removeChild(r),r.dispose()):r instanceof mr?this.removeDataSource(r):r.dispose()}}findNamedDataSource(e){let t;for(const r of this.#e.values())if(r instanceof Um&&e==r.identifier){if(t&&t!==r)throw new Error(`Found multiple instances of named data: ${e}. Data flow optimization is broken (it's a bug).`);t=r}if(t)return{dataSource:t}}}function bF(n,e){const t=new Map,r=[];for(const i of n)t.set(i,{ref:i,children:[]});for(const i of t.values()){const s=t.get(e(i.ref));s?s.children.push(i):r.push(i)}return r}function zm(n,e,t){const r=e.preOrder?.(n);if(r)return r;for(const i of t(n)){const s=zm(i,e,t);if(s==="stop")return s}return e.postOrder?.(n)}function xF(n,e){return zm(n,e,t=>t.children)}function BF(n,e,t,r){const i=[],s=[];let o;const a=e??new Gm,l=[],c=r??(()=>!0);function u(m,y=()=>{}){if(!o)throw y()||new Error("Cannot append data flow node, no parent exist!");return o.addChild(m),o=m,i.push(m),m}function f(m,y){return u(m,()=>new Error("Cannot append a transform because no (inherited) data are available! "))}function h(m,y){for(const C of m){let w;try{w=z8(C,y)}catch(b){throw console.warn(b),new Error(`Cannot initialize "${C.type}" transform: ${b}`)}w.behavior&yn&&f(new Wa),f(w)}}function A(){return i.findLastIndex(m=>m instanceof dl)>i.findLastIndex(m=>m instanceof mr)}const d=m=>{if(!c(m)){const y=m.flowHandle?.node;if(y){y!==o&&(o=y,i.push(y));return}if(m.spec.data||m.spec.transform||m instanceof tt)throw new Error("Cannot reuse missing flow nodes for "+m.getPathString());return}if(m.spec.data){const y=m.flowHandle?.dataSource;y&&y.view===m&&!y.identifier&&a.removeDataSource(y);const C=EF(m.spec.data)?new Um(m.spec.data,m,m.context.getNamedDataFromProvider):lF(m.spec.data,m);o=C,i.push(C),a.addDataSource(C),m.flowHandle??={},m.flowHandle.dataSource=C}if(m.spec.transform&&h(m.spec.transform,m),m instanceof tt){if(!o)throw new Error(`A unit view (${m.getPathString()}) has no (inherited) data source`);const y=SF(m);if(y){l.push(y.rewrite);for(const b of y.transforms)f(b)}m.mark.isPickingParticipant()&&!A()&&(f(new Wa),f(new dl({type:"identifier"})));const C=new Dm({type:"collect",groupby:m.getFacetFields(),sort:QF(m,y?.rewrittenEncoding)});u(C);const w=m.flowHandle?.collector;w&&a.removeCollector(w),a.addCollector(C),m.flowHandle??={},m.flowHandle.collector=C}o&&(m.flowHandle??={},m.flowHandle.node=o)},g=vF(n,t),p=bF(g,m=>m.dataParent);for(const m of p)xF(m,{preOrder:y=>{s.push({view:y.ref,nodeStackDepth:i.length}),d(y.ref)},postOrder:()=>{const{nodeStackDepth:y}=s.pop();i.length=y,o=i.at(-1)}});return l.forEach(m=>m()),a}function vF(n,e){if(!e)return n.getDescendants();const t=[];return n.visit(r=>{if(!e(r))return Pn;t.push(r)}),t}function SF(n){const e=[],t={},r=n.mark.encoding,i=n.getEncoding(),s=[];for(const[a,l]of Object.entries(r)){const c=a;Cn(c)!==c&&!(c in i)||ls(c)&&!Array.isArray(l)&&hd(l)&&s.push({channel:c,chromPosDef:l})}const o=Qo(s,a=>Cn(a.channel),a=>a.chromPosDef.chrom);for(const[a,l]of o.entries())for(const[c,u]of l.entries()){const f=[],h=[],A=[];for(const{channel:d,chromPosDef:g}of u){const p=C=>C.replace(/[^A-Za-z0-9_]/g,""),m=["_linearized_",p(g.chrom),"_",p(g.pos)].join(""),y={...n.spec.encoding?.[d]??i[d]??r[d]??{},field:m};delete y.chrom,delete y.pos,!y.type&&g.type&&(y.type=g.type),t[d]=y,f.push(g.pos),A.push(g.offset??0),h.push(m)}e.push(new Wa),e.push(new km({type:"linearizeGenomicCoordinate",channel:a,chrom:c,pos:f,offset:A,as:h},n))}return e.length?{transforms:e,rewrittenEncoding:t,rewrite:()=>{n.spec.encoding={...n.spec.encoding,...t},_u(n.mark,"encoding")}}:void 0}function QF(n,e){const t={...n.getEncoding(),...e}.x;if(gt(t)&&n.getScaleResolution("x")?.isZoomable()){if($t(t))return"buildIndex"in t&&t.buildIndex?{field:t.field}:null;if(!Or(t)){if(Ur(t))throw new Error("A zoomable x channel must be mapped to a field.")}}}function Hm(n,e=void 0){if(n.parent!==e)return!1;for(const t of n.children)if(!Hm(t,n))return!1;return!0}function mf(n,e=!1){if(n.behavior&Al&&(e=!0),n instanceof Wa)if(e)e=!1;else{const t=n.children[0];n.excise(),t&&mf(t,e);return}n.behavior&Mt&&(e=!1);for(let t=0,r=n.children.length;t<r;t++)mf(n.children[t],e||r>1)}function DF(n){const e=n.dataSources,t=new Map;for(const s of e)s.identifier&&!t.has(s.identifier)&&t.set(s.identifier,s);const r=new Set,i=new Map;for(const s of e)if(s.identifier){const o=t.get(s.identifier);o&&(o!==s&&o.adoptChildrenOf(s),r.add(o),i.set(s,o))}else r.add(s),i.set(s,s);return n.replaceDataSources(r),i}function kF(n){if(mf(n),!Hm(n))throw new Error("Encountered a bug! There's a problem in the data flow structure.")}function FF(n){const e=DF(n);for(const t of n.dataSources)kF(t);return e}const wf=new WeakMap,yf=new WeakMap;function Vm(n,e){const t=wf.get(n);if(t){if(!e?.queueReload)return t;const i=yf.get(n);if(i)return i;const s=t.catch(()=>{}).then(()=>Vm(n)).finally(()=>{yf.delete(n)});return yf.set(n,s),s}const r=Promise.resolve().then(()=>n.load()).finally(()=>{wf.delete(n)});return wf.set(n,r),r}function RF(n,e){for(const t of n.getDescendants()){const r=t.flowHandle;if(!r)continue;const i=r.dataSource;i&&(r.dataSource=e.get(i)??i)}}function Cf(n,e,t,r){const i=r??(()=>!0),o=_m(n,t).filter(i);if(o.length===0)return{dataFlow:e,unitViews:[],dataSources:new Set,graphicsPromises:[]};const a=new Set(o);for(const A of o)A._setDataInitializationState("pending");let l;try{l=BF(n,e,t,d=>a.has(d));const A=FF(l);RF(n,A)}catch(A){for(const d of o)d._setDataInitializationState("none");throw A}const c=MF(o);for(const A of c)A.visit(d=>d.initializeOnce());const u=o.filter(A=>A instanceof tt),f=[],h=!!n.context.glHelper;for(const A of u){const d=A.mark;d.initializeEncoders(),A.registerDomainSubscriptions(),h&&f.push(d.initializeGraphics().then(()=>d));const g=p=>{if(d.initializeData(),h)try{d.updateGraphicsData()}catch(m){throw m.view=A,m}A.context.animator.requestRender()};A.registerDisposer(A.flowHandle.collector.observe(g))}for(const A of o)A._setDataInitializationState("ready");return{dataFlow:l,unitViews:u,dataSources:c,graphicsPromises:f}}function MF(n,e){const t=Array.isArray(n)?n:_m(n,e),r=new Set;for(const i of t){let s=i;for(;s&&!s.flowHandle?.dataSource;)s=s.dataParent;s?.flowHandle?.dataSource&&r.add(s.flowHandle.dataSource)}return r}function NF(n,e){const t=new Set;return n.visit(r=>{if(e&&!e(r))return Pn;if(r.flowHandle?.dataSource)return t.add(r.flowHandle.dataSource),Pn}),t}function If(n,e,t,r){return e||(e=NF(n,t)),Promise.all(Array.from(e).map(i=>Vm(i,r))).then(i=>(TF(n),i))}function _m(n,e){const t=[];return e?(n.visit(r=>{if(!e(r))return Pn;t.push(r)}),t):n.getDescendants()}function TF(n){const e={type:"subtreeDataReady",payload:{subtreeRoot:n}};n.visit(t=>t.handleBroadcast(e))}async function PF(n,e,t,r){const i=a=>a.isConfiguredVisible(),{dataFlow:s,graphicsPromises:o}=Cf(n,e,i);return r(s),await t.waitUntilReady(),await If(n,new Set(s.dataSources),i),await hf(o),s}async function LF(n,e,t){const r=h=>h.isConfiguredVisible(),s=OF(n,r).filter(h=>h.getDataInitializationState()==="none");if(s.length===0)return e;const o=new Set(s),a=h=>o.has(h),l=new Set,c=[];for(const h of s){if(h.spec.data){c.push(h);continue}const A=GF(h);A?l.add(A):c.push(h)}const{dataFlow:u,graphicsPromises:f}=Cf(n,e,r,a);await t.waitUntilReady();for(const h of l)h.repropagate();if(c.length){const h=UF(c);await Promise.all(Array.from(h.entries()).map(([A,d])=>If(A,d,void 0,{queueReload:!0})))}return await hf(f),u}function OF(n,e){const t=[];return n.visit(r=>{if(!e(r))return Pn;t.push(r)}),t}function UF(n){const e=new Map;for(const t of n){let r=t;for(;r&&!r.flowHandle?.dataSource;)r=r.dataParent;if(!r?.flowHandle?.dataSource){if(t.spec.data)throw new Error("No data source found for view "+t.getPathString());continue}let i=e.get(r);i||(i=new Set,e.set(r,i)),i.add(r.flowHandle.dataSource)}return e}function GF(n){let e=n.dataParent;for(;e;){const t=e.flowHandle?.collector;if(t)return t.completed?t:void 0;e=e.dataParent}}class zF{constructor(e){this._renderCallback=e,this._renderRequested=!1,this._warn=!1,this.transitions=[]}requestTransition(e){this.cancelTransition(e),this.transitions.push(e),this.requestRender()}cancelTransition(e){const t=this.transitions.indexOf(e);t>=0&&this.transitions.splice(t,1)}requestRender(){this._renderRequested?this._warn&&console.warn("Render already requested!"):(this._renderRequested=!0,window.requestAnimationFrame(e=>{this._renderRequested=!1;const t=this.transitions;this.transitions=[];let r;for(;r=t.shift();)r(e);this._renderCallback(e)}))}transition(e){return Ek({requestAnimationFrame:t=>this.requestTransition(t),...e})}}function Ef(n,e,t,r,i){let s=0,o=!0,a=structuredClone(i),l=a;function c(h,A,d,g){return A+(h-A)*Math.pow(2,-d/g)}function u(h){if(o)return;const A=h-s;s=h;for(const g of Object.keys(l))a[g]=c(a[g],l[g],A,t);e(a);let d=-1/0;for(const g of Object.keys(l))d=Math.max(d,Math.abs(l[g]-a[g]));d<r?(a=l,e(a),o=!0,d!=0&&n.requestRender()):n.requestTransition(g=>u(g))}function f(h){l=h,o&&(o=!1,s=+document.timeline.currentTime,u(s))}return f.stop=()=>{o=!0},f}class HF{constructor(e){this.genomes=new Map,this.baseUrl=e}async initialize(e){const t=new SD(e);return this.genomes.set(t.name,t),Promise.all([...this.genomes.values()].map(r=>r.load(this.baseUrl)))}getGenome(e){if(!this.genomes.size)throw new Error("No genomes have been configured!");if(e){const t=this.genomes.get(e);if(!t)throw new Error(`No genome with the name ${e} has been configured!`);return t}else{if(this.genomes.size>1)throw new Error("Cannot pick a default genome! More than one have been configured!");return this.genomes.values().next().value}}}const VF="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEFzklEQVR4AezcRXjr2BnG8b8SQ+gJOiA5d1NmZuZVuU133Zf3++6XxW27Ku7LzIzDrMgByxQGaxwfWVFGMly088z7e76Zi5bu6nvP+Y4sKwgC2n4KP4QfgEcvAVdZGHfuM++Fj8HHwUZERO6aMTocsMGhl4C7bbrzr7C5N0REFAC30nct7qwhdH8REQXAfKf7FrjTLPpJ7EPuMhERycB36XD+hX0/DuzSlsnw3OfyilcwAA/vn/yzQQMoUHg9r59hhn7Oz/njH9ncJAiAXNj9P2qTxdhARETufgDYNs4fsH/Cv2jL53nzm1lcZH2dngKCP/Gnn/LTEiXg+Tw/Q+btvJ1+/vlPfvYz/v1vEwA26w4fs8lm4R4GgIiIAmB5GdvGnmbuh9Rq8MIXcuMGpVJ6AFhEXNwneOI//OfnSz8fL49/jI+9lJcecjjJJD15Ho8+yo9/TKUCb7J5vY1tcw+JiOgMILYJcDpNuFQKq5+neMrFbRXLnI+fu7im6KlSCS9fqXDBccLb31siIgqARBOu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AAAAABAAA8yVeyLNvtdpfLRSnV7/dns1mj0ZC4AQAByPPcObderw+HQ61WG4/H3vvVaiVxAwACsN/vt9utc26z2dTr9cVi0W63n0sCIGIgAN77JEmOx2NeOp1OYQ2HAiBu4BK42WwaY6y1tzV8CGs4FABxA98AhsPhZDK5Xq+9Xk9rPZ1OwzoajQRA3EAArLXL5dIYcz6flVKDwWA+n7daLQHwCMBjcOE8TVOtdbfbFQAAr4ECAPgnMACAAAAA7s0HoDFhsamH/bcAAAAASUVORK5CYII=",_F={thin:100,light:300,regular:400,normal:400,medium:500,bold:700,black:900};class YF{constructor(e){this._webGLHelper=e,this.fontRepository="https://raw.githubusercontent.com/etiennepinchon/aframe-fonts/master/fonts/",this._fonts=new qt([],JSON.stringify),this._metadataPromises=new Map,this._fontPromises=new Map,this._promises=[],this._defaultFontEntry={metrics:nu(Fm),texture:e?this._createTextureNow(VF):void 0}}async waitUntilReady(){await Promise.all(this._promises)}getFont(e,t="normal",r="regular"){if(le(r)&&(r=_F[r.toLowerCase()],!r))throw new Error("Unknown font weight: "+r);const i={family:e,style:t,weight:r};let s=this._fonts.get(i);return s||(s={metrics:void 0,texture:void 0},this._fonts.set(i,s),this._promises.push(this._loadFontEntry(s,i))),s}async _loadFontEntry(e,t){try{const r=await this._loadMetadata(t.family),i=KF(r,t),s=this.fontRepository+Ym(t.family)+"/"+i.replace(/\.\w+/,""),o=this._createTexture(s+".png"),a=this._loadFont(s+".json");e.texture=await o,e.metrics=await a}catch{console.warn(`Cannot load font: "${t.family}". Using the embedded default font.`),e.metrics=this._defaultFontEntry.metrics,e.texture=this._defaultFontEntry.texture}}_loadFont(e){let t=this._fontPromises.get(e);return t||(t=fetch(e).then(r=>{if(!r.ok)throw new Error("Could not load font: "+r.status);return r}).then(r=>r.json()).then(r=>nu(r)),this._fontPromises.set(e,t)),t}_loadMetadata(e){const t=Ym(e);let r=this._metadataPromises.get(t);if(!r){const i=this.fontRepository+t+"/METADATA.pb";r=fetch(i).then(s=>{if(!s.ok)throw new Error("Could not load font metadata. Response status: "+s.status+", url: "+i);return s}).then(s=>s.text()).then(s=>JF(s)).catch(s=>{console.warn(s.message)}),this._metadataPromises.set(t,r)}return r}getDefaultFont(){return this._defaultFontEntry}_createTexture(e){const t=this._webGLHelper.gl;return new Promise((r,i)=>{ps(t,{src:e,min:t.LINEAR},(s,o,a)=>{s?i(s):r(o)})})}_createTextureNow(e){const t=this._webGLHelper.gl;let r;const i=new Promise((s,o)=>{r=ps(t,{src:e,min:t.LINEAR},(a,l,c)=>{a?o(a):s(l)})});return this._promises.push(i),r}}function Ym(n){return n.toLowerCase().replaceAll(/[^\w]/g,"")}function JF(n){const e=n.split(`
|
|
631
|
-
`),
|
|
632
|
-
`))if(
|
|
637
|
+
}`)(f,u));function m(w){i=w,r=w.length,n=0}function p(w,C,y,I){m(I),s=A(w,C,y);for(const x of g)x(s);return s}return p}function pN(t,e){return Array.from({length:Math.ceil(t.length/e)},(n,i)=>t.slice(i*e,i*e+e))}class mN extends mr{#e;chrPrefixFixer=e=>e;constructor(e,n){const i={channel:"x",windowSize:2e4,debounce:200,debounceMode:"domain",...e};if(super(n,i.channel),this.params=i,!this.params.url)throw new Error("No URL provided for BamSource");this.setupDebouncing(this.params),this.initializedPromise=new Promise(r=>{Promise.all([Promise.resolve().then(()=>D9),Promise.resolve().then(()=>uo)]).then(([{BamFile:s},{RemoteFile:o}])=>{const a=l=>new o(oo(l,this.view.getBaseUrl()));this.#e=new s({bamFilehandle:a(this.params.url),baiFilehandle:a(this.params.indexUrl??this.params.url+".bai")}),this.#e.getHeader().then(l=>{const c=this.genome.hasChrPrefix(),u=this.#e.indexToChr?.[0]?.refName.startsWith("chr");c&&!u?this.chrPrefixFixer=f=>f.replace("chr",""):!c&&u&&(this.chrPrefixFixer=f=>"chr"+f),r()})})})}get label(){return"bamSource"}async loadInterval(e){const n=await this.discretizeAndLoad(e,async(i,r)=>this.#e.getRecordsForRange(this.chrPrefixFixer(i.chrom),i.startPos,i.endPos,{signal:r}).then(s=>s.map(o=>({chrom:i.chrom,start:o.start,end:o.end,name:o.name,cigar:o.CIGAR,mapq:o.mq,strand:o.strand===1?"+":"-"}))));n&&this.publishData(n)}}class Fw extends mr{#e;constructor(e,n){const i={channel:"x",windowSize:3e6,debounce:200,debounceMode:"domain",addChrPrefix:!1,...e},r=ve(i.channel);if(super(n,r),this.params=Es(n.paramRuntime,i,s=>{s.has("url")||s.has("indexUrl")||s.has("addChrPrefix")?this.#t().then(()=>this.reloadLastDomain()):s.has("windowSize")&&this.reloadLastDomain()},s=>this.registerDisposer(s),{batchMode:"whenPropagated"}),!ve(this.params.url))throw new Error("No URL provided for TabixSource");this.setupDebouncing(this.params),this.#t()}#t(){return this.initializedPromise=new Promise((e,n)=>{Promise.all([Promise.resolve().then(()=>O9),Promise.resolve().then(()=>uo)]).then(async([{TabixIndexedFile:i},{RemoteFile:r}])=>{const s=c=>new r(oo(c,this.view.getBaseUrl())),o=ve(this.params.url),a=ve(this.params.indexUrl)??o+".tbi",l=ve(this.params.addChrPrefix);this.#e=new i({filehandle:s(o),tbiFilehandle:s(a),renameRefSeqs:l===!0?c=>"chr"+c:l?c=>l+c:void 0});try{this.setLoadingStatus("loading");const c=await this.#e.getHeader();await this._handleHeader(c),this.setLoadingStatus("complete"),e()}catch(c){this.load(),this.setLoadingStatus("error",`${ve(this.params.url)}: ${c.message}`),n(c)}})}),this.initializedPromise}async loadInterval(e){await this.initializedPromise;const n=await this.discretizeAndLoad(e,async(i,r)=>{const s=[];return await this.#e.getLines(i.chrom,i.startPos,i.endPos,{lineCallback:o=>{s.push(o)},signal:r}),this._parseFeatures(s)});n&&this.publishData(n)}async _handleHeader(e){}_parseFeatures(e){return[]}}class wN extends Fw{#e;get label(){return"gff3Source"}async _handleHeader(e){this.#e=await Promise.resolve().then(()=>nL)}_parseFeatures(e){return this.#e?.parseArraySync(e)}}class yN extends Fw{#e;get label(){return"vcfSource"}async _handleHeader(e){const n=(await Promise.resolve().then(()=>lL)).default;this.#e=new n({header:e})}_parseFeatures(e){return e.map(n=>{const i=this.#e.parseLine(n);return delete i.GENOTYPES,i.SAMPLES=i.SAMPLES(),i})}}const CN=[];function bN(t,e){if(Qw(t))return new WF(t,e);if(eN(t))return new $F(t,e);if(aN(t))return new cN(t,e);if(EN(t))return FN(t.lazy,e);throw new Error("Cannot figure out the data source type: "+JSON.stringify(t))}function EN(t){return"lazy"in t}function IN(t){return t?.type=="axisTicks"}function xN(t){return t?.type=="axisGenome"}function vN(t){return t?.type=="indexedFasta"}function BN(t){return t?.type=="bigwig"}function SN(t){return t?.type=="bigbed"}function DN(t){return t?.type=="bam"}function QN(t){return t?.type=="gff3"}function kN(t){return t?.type=="vcf"}const RN=[{guard:IN,Source:lN},{guard:xN,Source:uN},{guard:vN,Source:fN},{guard:BN,Source:hN},{guard:SN,Source:dN},{guard:DN,Source:mN},{guard:QN,Source:wN},{guard:kN,Source:yN}];function FN(t,e){for(const n of CN)if(n.guard(t))return new n.Source(t,e);for(const n of RN)if(n.guard(t))return new n.Source(t,e);throw new Error("Cannot figure out the data source type: "+JSON.stringify(t))}function NN(t){const e=Nw(t).filter(i=>typeof i=="string"),n=new Function("source","return { "+e.map(i=>JSON.stringify(i)).map(i=>`${i}: source[${i}]`).join(`,
|
|
638
|
+
`)+" };");return n.properties=e,n}function Nw(t){let e=[];do e=e.concat(Object.keys(t)),t=Object.getPrototypeOf(t);while(t&&t!==Object.prototype);return Array.from(new Set(e))}class Ac extends Qe{get behavior(){return Tt}#e;#t=e=>e;constructor(){super({type:"clone"});const e=n=>{const i=Nw(n);(!this.#e||!Bn(i,this.#e))&&(this.#e=i,this.#t=NN(n));const r=this.#t;this.handle=s=>this._propagate(r(s)),this.handle(n)};this.handle=e,this.beginBatch=n=>{Jd(n)&&(this.handle=e),super.beginBatch(n)}}}function MN(t){return"name"in t}class Mw extends vi{#e;constructor(e,n,i){super(n),this.provider=i,this.params=e}get identifier(){return this.params.name}get label(){return"namedSource"}updateDynamicData(e){this.#e=e,this.loadSynchronously()}loadSynchronously(){const e=this.#e??this.provider(this.params.name)??[];let n=i=>i;if(Array.isArray(e))e.length>0&&(n=Sw(e[0]));else throw new Error(`Named data "${this.params.name}" is not an array!`);this.reset(),this.beginBatch({type:"file"});for(const i of e)this._propagate(n(i));this.complete()}async load(){this.loadSynchronously()}}class Tw{#e;#t;loadingStatusRegistry;constructor(){this.#e=new Set,this.#t=new Set,this.loadingStatusRegistry=new Yd}get dataSources(){return[...this.#e]}get collectors(){return[...this.#t]}replaceDataSources(e){this.#e=new Set(e)}addDataSource(e){this.#e.add(e)}removeDataSource(e){e.disposeSubtree(),this.#e.delete(e)}addCollector(e){this.#t.add(e)}removeCollector(e){e.parent&&e.parent.removeChild(e),e.disposeSubtree(),e.observers.clear(),this.#t.delete(e)}pruneCollectorBranch(e){let n=e.parent;for(n&&n.removeChild(e),e.disposeSubtree();n&&n.children.length===0;){const i=n;n=i.parent,n?(n.removeChild(i),i.dispose()):i instanceof vi?this.removeDataSource(i):i.dispose()}}findNamedDataSource(e){let n;for(const i of this.#e.values())if(i instanceof Mw&&e==i.identifier){if(n&&n!==i)throw new Error(`Found multiple instances of named data: ${e}. Data flow optimization is broken (it's a bug).`);n=i}if(n)return{dataSource:n}}}function TN(t,e){const n=new Map,i=[];for(const r of t)n.set(r,{ref:r,children:[]});for(const r of n.values()){const s=n.get(e(r.ref));s?s.children.push(r):i.push(r)}return i}function Pw(t,e,n){const i=e.preOrder?.(t);if(i)return i;for(const r of n(t)){const s=Pw(r,e,n);if(s==="stop")return s}return e.postOrder?.(t)}function PN(t,e){return Pw(t,e,n=>n.children)}function LN(t,e,n,i){const r=[],s=[];let o;const a=e??new Tw,l=[],c=i??(()=>!0);function u(p,w=()=>{}){if(!o)throw w()||new Error("Cannot append data flow node, no parent exist!");return o.addChild(p),o=p,r.push(p),p}function f(p,w){return u(p,()=>new Error("Cannot append a transform because no (inherited) data are available! "))}function h(p,w){for(const C of p){let y;try{y=HF(C,w)}catch(I){throw console.warn(I),new Error(`Cannot initialize "${C.type}" transform: ${I}`)}y.behavior&Sn&&f(new Ac),f(y)}}function A(){return r.findLastIndex(p=>p instanceof zl)>r.findLastIndex(p=>p instanceof vi)}const d=p=>{if(!c(p)){const w=p.flowHandle?.node;if(w){w!==o&&(o=w,r.push(w));return}if(p.spec.data||p.spec.transform||p instanceof Je)throw new Error("Cannot reuse missing flow nodes for "+p.getPathString());return}if(p.spec.data){const w=p.flowHandle?.dataSource;w&&w.view===p&&!w.identifier&&a.removeDataSource(w);const C=MN(p.spec.data)?new Mw(p.spec.data,p,p.context.getNamedDataFromProvider):bN(p.spec.data,p);o=C,r.push(C),a.addDataSource(C),p.flowHandle??={},p.flowHandle.dataSource=C}if(p.spec.transform&&h(p.spec.transform,p),p instanceof Je){if(!o)throw new Error(`A unit view (${p.getPathString()}) has no (inherited) data source`);const w=UN(p);if(w){l.push(w.rewrite);for(const I of w.transforms)f(I)}p.mark.isPickingParticipant()&&!A()&&(f(new Ac),f(new zl({type:"identifier"})));const C=new yw({type:"collect",groupby:p.getFacetFields(),sort:_N(p,w?.rewrittenEncoding)});u(C);const y=p.flowHandle?.collector;y&&a.removeCollector(y),a.addCollector(C),p.flowHandle??={},p.flowHandle.collector=C}o&&(p.flowHandle??={},p.flowHandle.node=o)},g=ON(t,n),m=TN(g,p=>p.dataParent);for(const p of m)PN(p,{preOrder:w=>{s.push({view:w.ref,nodeStackDepth:r.length}),d(w.ref)},postOrder:()=>{const{nodeStackDepth:w}=s.pop();r.length=w,o=r.at(-1)}});return l.forEach(p=>p()),a}function ON(t,e){if(!e)return t.getDescendants();const n=[];return t.visit(i=>{if(!e(i))return fn;n.push(i)}),n}function UN(t){const e=[],n={},i=t.mark.encoding,r=t.getEncoding(),s=[];for(const[a,l]of Object.entries(i)){const c=a;rn(c)!==c&&!(c in r)||bs(c)&&!Array.isArray(l)&&i0(l)&&s.push({channel:c,chromPosDef:l})}const o=Go(s,a=>rn(a.channel),a=>a.chromPosDef.chrom);for(const[a,l]of o.entries())for(const[c,u]of l.entries()){const f=[],h=[],A=[];for(const{channel:d,chromPosDef:g}of u){const m=C=>C.replace(/[^A-Za-z0-9_]/g,""),p=["_linearized_",m(g.chrom),"_",m(g.pos)].join(""),w={...t.spec.encoding?.[d]??r[d]??i[d]??{},field:p};delete w.chrom,delete w.pos,!w.type&&g.type&&(w.type=g.type),n[d]=w,f.push(g.pos),A.push(g.offset??0),h.push(p)}e.push(new Ac),e.push(new Cw({type:"linearizeGenomicCoordinate",channel:a,chrom:c,pos:f,offset:A,as:h},t))}return e.length?{transforms:e,rewrittenEncoding:n,rewrite:()=>{t.spec.encoding={...t.spec.encoding,...n},bf(t.mark,"encoding")}}:void 0}function _N(t,e){const n={...t.getEncoding(),...e}.x;if(mt(n)&&t.getScaleResolution("x")?.isZoomable()){if(nn(n))return"buildIndex"in n&&n.buildIndex?{field:n.field}:null;if(!Ki(n)){if(ji(n))throw new Error("A zoomable x channel must be mapped to a field.")}}}function Lw(t,e=void 0){if(t.parent!==e)return!1;for(const n of t.children)if(!Lw(n,t))return!1;return!0}function Jf(t,e=!1){if(t.behavior&Ul&&(e=!0),t instanceof Ac)if(e)e=!1;else{const n=t.children[0];t.excise(),n&&Jf(n,e);return}t.behavior&Tt&&(e=!1);for(let n=0,i=t.children.length;n<i;n++)Jf(t.children[n],e||i>1)}function zN(t){const e=t.dataSources,n=new Map;for(const s of e)s.identifier&&!n.has(s.identifier)&&n.set(s.identifier,s);const i=new Set,r=new Map;for(const s of e)if(s.identifier){const o=n.get(s.identifier);o&&(o!==s&&o.adoptChildrenOf(s),i.add(o),r.set(s,o))}else i.add(s),r.set(s,s);return t.replaceDataSources(i),r}function GN(t){if(Jf(t),!Lw(t))throw new Error("Encountered a bug! There's a problem in the data flow structure.")}function HN(t){const e=zN(t);for(const n of t.dataSources)GN(n);return e}const qf=new WeakMap,Kf=new WeakMap;function Ow(t,e){const n=qf.get(t);if(n){if(!e?.queueReload)return n;const r=Kf.get(t);if(r)return r;const s=n.catch(()=>{}).then(()=>Ow(t)).finally(()=>{Kf.delete(t)});return Kf.set(t,s),s}const i=Promise.resolve().then(()=>t.load()).finally(()=>{qf.delete(t)});return qf.set(t,i),i}function YN(t,e){for(const n of t.getDescendants()){const i=n.flowHandle;if(!i)continue;const r=i.dataSource;r&&(i.dataSource=e.get(r)??r)}}function jf(t,e,n,i){const r=i??(()=>!0),o=Uw(t,n).filter(r);if(o.length===0)return{dataFlow:e,unitViews:[],dataSources:new Set,graphicsPromises:[]};const a=new Set(o);for(const A of o)A._setDataInitializationState("pending");let l;try{l=LN(t,e,n,d=>a.has(d));const A=HN(l);YN(t,A)}catch(A){for(const d of o)d._setDataInitializationState("none");throw A}const c=VN(o);for(const A of c)A.visit(d=>d.initializeOnce());const u=o.filter(A=>A instanceof Je),f=[],h=!!t.context.glHelper;for(const A of u){const d=A.mark;d.initializeEncoders(),A.registerDomainSubscriptions(),h&&f.push(d.initializeGraphics().then(()=>d));const g=m=>{if(d.initializeData(),h)try{d.updateGraphicsData()}catch(p){throw p.view=A,p}A.context.animator.requestRender()};A.registerDisposer(A.flowHandle.collector.observe(g))}for(const A of o)A._setDataInitializationState("ready");return{dataFlow:l,unitViews:u,dataSources:c,graphicsPromises:f}}function VN(t,e){const n=Array.isArray(t)?t:Uw(t,e),i=new Set;for(const r of n){let s=r;for(;s&&!s.flowHandle?.dataSource;)s=s.dataParent;s?.flowHandle?.dataSource&&i.add(s.flowHandle.dataSource)}return i}function JN(t,e){const n=new Set;return t.visit(i=>{if(e&&!e(i))return fn;if(i.flowHandle?.dataSource)return n.add(i.flowHandle.dataSource),fn}),n}function Wf(t,e,n,i){return e||(e=JN(t,n)),Promise.all(Array.from(e).map(r=>Ow(r,i))).then(r=>(qN(t),r))}function Uw(t,e){const n=[];return e?(t.visit(i=>{if(!e(i))return fn;n.push(i)}),n):t.getDescendants()}function qN(t){const e={type:"subtreeDataReady",payload:{subtreeRoot:t}};t.visit(n=>n.handleBroadcast(e))}async function KN(t,e,n,i){const r=a=>a.isConfiguredVisible(),{dataFlow:s,graphicsPromises:o}=jf(t,e,r);return i(s),await n.waitUntilReady(),await Wf(t,new Set(s.dataSources),r),await Hf(o),s}async function jN(t,e,n){const i=h=>h.isConfiguredVisible(),s=WN(t,i).filter(h=>h.getDataInitializationState()==="none");if(s.length===0)return e;const o=new Set(s),a=h=>o.has(h),l=new Set,c=[];for(const h of s){if(h.spec.data){c.push(h);continue}const A=ZN(h);A?l.add(A):c.push(h)}const{dataFlow:u,graphicsPromises:f}=jf(t,e,i,a);await n.waitUntilReady();for(const h of l)h.repropagate();if(c.length){const h=XN(c);await Promise.all(Array.from(h.entries()).map(([A,d])=>Wf(A,d,void 0,{queueReload:!0})))}return await Hf(f),u}function WN(t,e){const n=[];return t.visit(i=>{if(!e(i))return fn;n.push(i)}),n}function XN(t){const e=new Map;for(const n of t){let i=n;for(;i&&!i.flowHandle?.dataSource;)i=i.dataParent;if(!i?.flowHandle?.dataSource){if(n.spec.data)throw new Error("No data source found for view "+n.getPathString());continue}let r=e.get(i);r||(r=new Set,e.set(i,r)),r.add(i.flowHandle.dataSource)}return e}function ZN(t){let e=t.dataParent;for(;e;){const n=e.flowHandle?.collector;if(n)return n.completed?n:void 0;e=e.dataParent}}class $N{constructor(e){this._renderCallback=e,this._renderRequested=!1,this._warn=!1,this.transitions=[]}requestTransition(e){this.cancelTransition(e),this.transitions.push(e),this.requestRender()}cancelTransition(e){const n=this.transitions.indexOf(e);n>=0&&this.transitions.splice(n,1)}requestRender(){this._renderRequested?this._warn&&console.warn("Render already requested!"):(this._renderRequested=!0,window.requestAnimationFrame(e=>{this._renderRequested=!1;const n=this.transitions;this.transitions=[];let i;for(;i=n.shift();)i(e);this._renderCallback(e)}))}transition(e){return b8({requestAnimationFrame:n=>this.requestTransition(n),...e})}}function Xf(t,e,n,i,r){let s=0,o=!0,a=structuredClone(r),l=a;function c(h,A,d,g){return A+(h-A)*Math.pow(2,-d/g)}function u(h){if(o)return;const A=h-s;s=h;for(const g of Object.keys(l))a[g]=c(a[g],l[g],A,n);e(a);let d=-1/0;for(const g of Object.keys(l))d=Math.max(d,Math.abs(l[g]-a[g]));d<i?(a=l,e(a),o=!0,d!=0&&t.requestRender()):t.requestTransition(g=>u(g))}function f(h){l=h,o&&(o=!1,s=+document.timeline.currentTime,u(s))}return f.stop=()=>{o=!0},f}class e6{constructor(e){this.genomes=new Map,this.#e=new Map,this.#t=new Map,this.#n=new Map,this.#i=0,this.#r=void 0,this.baseUrl=e}#e;#t;#n;#i;#r;async initialize(e){const{name:n,...i}=e;this.configureGenomes(new Map([[n,i]]),n),await this.ensureAssembly(n)}configureGenomes(e,n){this.genomes.clear(),this.#t.clear(),this.#n.clear(),this.#i=0,this.#e=new Map(e),this.#r=n}getDefaultAssemblyName(){if(this.#r)return this.#r;if(this.#e.size===1)return this.#e.keys().next().value;if(this.#e.size===0&&this.genomes.size===1)return this.genomes.keys().next().value}async ensureAssemblies(e){const n=[],i=new Set;for(const r of e){if(!r)continue;const s=t6(r);i.has(s)||(i.add(s),n.push(this.ensureAssembly(r)))}await Promise.all(n)}async ensureAssembly(e){if(typeof e=="object")return this.#f(e);const n=this.genomes.get(e);if(n)return n;const i=this.#e.get(e);if(i)return this.#u(e,i);const r=this.#c(e);if(r)return r;throw this.#s(e)}getGenome(e){if(e&&typeof e=="object")return this.#A(e);if(typeof e=="string"){const i=this.genomes.get(e);if(i)return i;if(this.#e.has(e))throw new Error(`Genome ${e} has not been loaded yet. Call ensureAssembly("${e}") before accessing it.`);const r=this.#c(e);if(r)return r;throw this.#s(e)}const n=this.getDefaultAssemblyName();if(n)return this.getGenome(n);if(this.#e.size>1)throw new Error("Cannot pick a default genome! More than one have been configured!");if(this.genomes.size===0&&this.#e.size)throw new Error("Default genome is not loaded. Define root `assembly` or call ensureAssembly() first.");if(this.genomes.size>1)throw new Error("Cannot pick a default genome! More than one have been configured!");if(this.genomes.size===0)throw new Error("No genomes have been configured!");return this.genomes.values().next().value}#o(e){try{return new Ks({name:e})}catch{return}}#s(e){return new Error(`No genome with the name ${e} has been configured!`)}#c(e){const n=this.#o(e);if(n)return this.genomes.set(e,n),n}async#a(e,n){const i=this.#t.get(e);if(!i)throw new Error(`No pending genome load for ${e}.`);await i;const r=this.genomes.get(e);if(!r)throw new Error(n);return r}async#l(e,n){const i=n.load(this.baseUrl);this.#t.set(e,i);try{await i}catch(r){throw this.genomes.delete(e),r}finally{this.#t.delete(e)}return n}async#u(e,n){const i=this.genomes.get(e);if(i)return this.#t.has(e)?this.#a(e,`Loading genome ${e} failed before it became available.`):i;if(this.#t.has(e))return this.#a(e,`Loading genome ${e} failed before it became available.`);const r=new Ks({name:e,...n});return this.genomes.set(e,r),"url"in n?this.#l(e,r):r}async#f(e){this.#g(e);const n=this.#h(e),i=this.genomes.get(n);if(i)return this.#t.has(n)?this.#a(n,`Loading inline assembly ${n} failed before it became available.`):i;if(this.#t.has(n))return this.#a(n,`Loading inline assembly ${n} failed before it became available.`);if("contigs"in e){const s=new Ks({name:n,contigs:e.contigs});return this.genomes.set(n,s),s}const r=new Ks({name:n,url:e.url});return this.genomes.set(n,r),this.#l(n,r)}#A(e){this.#g(e);const n=this.#h(e),i=this.genomes.get(n);if(i){if(this.#t.has(n))throw new Error(`Inline URL assembly ${n} has not been loaded yet. Call ensureAssembly() before accessing it.`);return i}if("url"in e)throw new Error("Inline URL assemblies must be loaded first. Call ensureAssembly() before accessing it.");const r=new Ks({name:n,contigs:e.contigs});return this.genomes.set(n,r),r}#g(e){const n="contigs"in e,i="url"in e;if(n===i)throw new Error("Inline `scale.assembly` objects must define exactly one of `contigs` or `url`.")}#h(e){const n=JSON.stringify(e),i=this.#n.get(n);if(i)return i;let r=`inline_assembly_${this.#i}`;for(this.#i+=1;this.genomes.has(r)||this.#e.has(r)||this.#t.has(r);)r=`inline_assembly_${this.#i}`,this.#i+=1;return this.#n.set(n,r),r}}function t6(t){return typeof t=="string"?`name:${t}`:`inline:${JSON.stringify(t)}`}const n6="data:image/png;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4ODBTa8G23zAMBgMJgK4eTMxNZUAxse5cYNgkEQCnvFSXs7OnZvodNMpK5MG6OUdG+nrkwa49YB9+9gwzJ0/BoPBCMDwcOLllxOBQAKYnOTmTS5cgPx8mpupq8Pn4xHj9bq5IHn9QDicmguqryczSuAfIdtAGuG/IDMYDFsEIwCz44noaOLPv5GYgOlpgkGorKSzjWPHlHbZLAGwH9a0RBpgWehBNNoPebK+pAbU1LAeDAaDwZDLKzBEYiiRCCTiTZU3pjsRh4upqmL/fo4epaODR4vFMs88Q1kZgQCxGLZ9DXIdGbhDZy579mAwGAyGrMnloxAhPhSPBw4n7lYjV2tZFBWhCKC+Xsv/x5xuLy1FtsxlRwAgF05BBevBYDAYTAqojETZc4m25xLRKDMzSAC2b6ekhCeS88sCoOMp/rKdO+BQIIgCOP5mupRGYQpQxSEFEZAAhPvcg44OKAClQGkXxoJb2BubAw539txp+v889OYL/GVqpCMVAAB3APltOh0J8wcKqeLtMwBhXgQAUD0A8v+UfMvrbwUAAAjAezk/VtzlL/EBAKooCnk8AAAtAIBoEAAAAAEAABAAAAABAAA8yVeyLNvtdpfLRSnV7/dns1mj0ZC4AQAByPPcObderw+HQ61WG4/H3vvVaiVxAwACsN/vt9utc26z2dTr9cVi0W63n0sCIGIgAN77JEmOx2NeOp1OYQ2HAiBu4BK42WwaY6y1tzV8CGs4FABxA98AhsPhZDK5Xq+9Xk9rPZ1OwzoajQRA3EAArLXL5dIYcz6flVKDwWA+n7daLQHwCMBjcOE8TVOtdbfbFQAAr4ECAPgnMACAAAAA7s0HoDFhsamH/bcAAAAASUVORK5CYII=",i6={thin:100,light:300,regular:400,normal:400,medium:500,bold:700,black:900};class r6{constructor(e){this._webGLHelper=e,this.fontRepository="https://raw.githubusercontent.com/etiennepinchon/aframe-fonts/master/fonts/",this._fonts=new Xt([],JSON.stringify),this._metadataPromises=new Map,this._fontPromises=new Map,this._promises=[],this._defaultFontEntry={metrics:Ru(bw),texture:e?this._createTextureNow(n6):void 0}}async waitUntilReady(){await Promise.all(this._promises)}getFont(e,n="normal",i="regular"){if(le(i)&&(i=i6[i.toLowerCase()],!i))throw new Error("Unknown font weight: "+i);const r={family:e,style:n,weight:i};let s=this._fonts.get(r);return s||(s={metrics:void 0,texture:void 0},this._fonts.set(r,s),this._promises.push(this._loadFontEntry(s,r))),s}async _loadFontEntry(e,n){try{const i=await this._loadMetadata(n.family),r=o6(i,n),s=this.fontRepository+_w(n.family)+"/"+r.replace(/\.\w+/,""),o=this._createTexture(s+".png"),a=this._loadFont(s+".json");e.texture=await o,e.metrics=await a}catch{console.warn(`Cannot load font: "${n.family}". Using the embedded default font.`),e.metrics=this._defaultFontEntry.metrics,e.texture=this._defaultFontEntry.texture}}_loadFont(e){let n=this._fontPromises.get(e);return n||(n=fetch(e).then(i=>{if(!i.ok)throw new Error("Could not load font: "+i.status);return i}).then(i=>i.json()).then(i=>Ru(i)),this._fontPromises.set(e,n)),n}_loadMetadata(e){const n=_w(e);let i=this._metadataPromises.get(n);if(!i){const r=this.fontRepository+n+"/METADATA.pb";i=fetch(r).then(s=>{if(!s.ok)throw new Error("Could not load font metadata. Response status: "+s.status+", url: "+r);return s}).then(s=>s.text()).then(s=>s6(s)).catch(s=>{console.warn(s.message)}),this._metadataPromises.set(n,i)}return i}getDefaultFont(){return this._defaultFontEntry}_createTexture(e){const n=this._webGLHelper.gl;return new Promise((i,r)=>{Ds(n,{src:e,min:n.LINEAR},(s,o,a)=>{s?r(s):i(o)})})}_createTextureNow(e){const n=this._webGLHelper.gl;let i;const r=new Promise((s,o)=>{i=Ds(n,{src:e,min:n.LINEAR},(a,l,c)=>{a?o(a):s(l)})});return this._promises.push(r),i}}function _w(t){return t.toLowerCase().replaceAll(/[^\w]/g,"")}function s6(t){const e=t.split(`
|
|
639
|
+
`),n=[];let i;for(const r of e)if(r.startsWith("fonts {")&&(i={name:void 0,style:void 0,weight:void 0,filename:void 0,post_script_name:void 0,full_name:void 0,copyright:void 0}),r.startsWith("}")&&(n.push(i),i=void 0),i){let s=r.match(/^\s*([A-Za-z_]+):[ ]?"(.*)"$/);if(s){const o=s[1];i[o]=s[2]}if(s=r.match(/^\s*([A-Za-z_]+):[ ]?(\d+)$/),s){const o=s[1];i[o]=+s[2]}}return n}function o6(t,e){let n,i=Number.POSITIVE_INFINITY;for(const r of t)if(e.family.localeCompare(r.name,void 0,{sensitivity:"accent"})==0&&e.style==r.style){const s=Math.abs(e.weight-r.weight);s<i&&(i=s,n=r)}return n?.filename}function a6(t,e){const n=[];let i;for(const r of t.split(`
|
|
640
|
+
`))if(r.startsWith(">"))i={identifier:r.match(/>(\S+)/)[1],sequence:""},n.push(i);else if(i)i.sequence+=r.trim();else throw new Error("Invalid fasta file!");return n}const zw=new Map,c6={Organism:"Homo sapiens"};async function l6(t,e,n={}){const i=t.symbol,r={...c6,GENE:i};for(const[o,a]of Object.entries(n))typeof a=="string"&&(r[o]=a);let s=zw.get(i)??await h6(r);return s?(zw.set(i,s),ae`
|
|
633
641
|
<div class="title">
|
|
634
642
|
<strong>${s.name}</strong>
|
|
635
643
|
${s.description}
|
|
636
644
|
</div>
|
|
637
645
|
<p class="summary">${s.summary}</p>
|
|
638
646
|
<p class="source">Source: NCBI RefSeq Gene</p>
|
|
639
|
-
`):null}async function
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
647
|
+
`):null}async function u6(t){const e={mode:"cors"},n=new URL("https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi");n.search=new URLSearchParams({db:"gene",term:A6(t),sort:"relevance",retmax:"1",retmode:"json"}).toString();const r=(await fetch(n.toString(),e).then(s=>s.json())).esearchresult.idlist[0];if(r){const s=new URL("https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi");return s.search=new URLSearchParams({db:"gene",id:r,retmode:"json"}).toString(),(await fetch(s.toString(),e).then(l=>l.json())).result[r]}else return null}const f6=sa(u6,500);function h6(t){return f6(t)}function A6(t){return Object.entries(t).filter(([e,n])=>n&&n.length>0).map(([e,n])=>`("${n}"[${e}])`).join(" AND ")}const d6=He(".4~r"),g6=He(".4~e");function Gw(t){return t==null?ae` <span class="na">NA</span> `:le(t)?t.substring(0,30):Number.isInteger(t)?""+t:qe(t)?Math.abs(t)>Math.pow(10,8)||Math.abs(t)<Math.pow(10,-8)?g6(t):d6(t):qr(t)?t?"True":"False":be(t)?ae`${t.map((e,n)=>[Gw(e),n<t.length-1?", ":Ie])}`:"?"+typeof t+" "+t}function Hw(t){const e=[];return Yw(Object.entries(t),e),e}function Yw(t,e,n){for(const[i,r]of t)i.startsWith("_")||(r!==null&&typeof r=="object"&&!Array.isArray(r)?Yw(Object.entries(r),e,(n||"")+i+"."):e.push({key:(n||"")+i,value:r}))}const p6={x:"x2",y:"y2"},m6=new Set(["auto","locus","interval","endpoints","disabled"]),Vw=new WeakMap;function Jw(t,e,n){const i=w6(e),r=Kw("x",t,e,i,$w(n,"x")),s=Kw("y",t,e,i,$w(n,"y")),o=r.rows.length>0&&s.rows.length>0,a=[...o?qw("x",r.rows):r.rows,...o?qw("y",s.rows):s.rows],l=new Set;for(const c of[r,s])for(const u of c.usedLinearizedFields){const f=i.get(u);if(!f||f.ambiguous)continue;x6(t,u,f,e)&&(l.add(f.chrom),l.add(f.pos))}return{hiddenRowKeys:[...l],genomicRows:a,flattenDatumRows:()=>Hw(t),formatGenomicLocus:(c,u)=>dc(e,c,u),formatGenomicInterval:(c,u)=>Zw(e,c,u)}}function w6(t){const e=Vw.get(t);if(e)return e;const n=E6(t);return Vw.set(t,n),n}function qw(t,e){const n=t.toUpperCase()+" ";return e.map(i=>({key:n+i.key,value:i.value}))}function Kw(t,e,n,i,r){const s=new Set;if(r==="disabled")return{rows:[],usedLinearizedFields:s};const o=Xw(n,t,e);if(!o)return{rows:[],usedLinearizedFields:s};o.field&&s.add(o.field);const a=Xw(n,p6[t],e);a?.field&&s.add(a.field);const l=r==="auto"?y6(o,a,i):r;if(l==="endpoints"&&a){const[c,u]=C6(o,a,i);return{rows:[{key:"Endpoint 1",value:dc(n,t,c.value)??String(c.value)},{key:"Endpoint 2",value:dc(n,t,u.value)??String(u.value)}],usedLinearizedFields:s}}return l==="interval"&&a?{rows:[{key:"Interval",value:Zw(n,t,[o.value,a.value])??o.value+" - "+a.value}],usedLinearizedFields:s}:{rows:[{key:"Coordinate",value:dc(n,t,o.value)??String(o.value)}],usedLinearizedFields:s}}function y6(t,e,n){if(!e)return"locus";const i=jw(t.field,n),r=jw(e.field,n);return i&&r&&i!==r?"endpoints":"interval"}function jw(t,e){const n=t?e.get(t):void 0;return n&&!n.ambiguous?n.groupId:void 0}function C6(t,e,n){const i=Ww(t.field,n),r=Ww(e.field,n);return i===2&&r!==2?[e,t]:r===1&&i!==1?[e,t]:i===2&&r===1?[e,t]:[t,e]}function Ww(t,e){const n=t?e.get(t):void 0,i=[n?.pos,n?.chrom,t];let r;for(const s of i){const o=b6(s);if(o!==void 0){if(r===void 0)r=o;else if(r!==o)return}}return r}function b6(t){if(!t)return;const e=t.toLowerCase(),n=e.match(/(?:^|[^0-9])(1|2)$/);if(n)return n[1]==="1"?1:2;const i=e.match(/(?:^|[_-])(first|second)(?:[_-]|$)/);if(i)return i[1]==="first"?1:2}function Xw(t,e,n){const i=t.encoders?.[e];if(i?.scale?.type!=="locus")return;const r=i.dataAccessor;if(!r)return;const s=+r(n);if(Number.isFinite(s))return{value:s,field:r.fields?.length===1?r.fields[0]:void 0}}function E6(t){const e=new Map;let n=0,r=t.unitView?.getCollector?.()?.parent;for(;r;){const s=r.params;if(s?.type==="linearizeGenomicCoordinate"){const o=Me(s.as),a=Me(s.pos),l=I6(s.offset,a.length),c="g"+n++,u=s.channel==="y"?"y":"x";for(let f=0;f<o.length;f++){if(f>=a.length)continue;const h=e.get(o[f]);h?h.ambiguous=!0:e.set(o[f],{groupId:c,chrom:s.chrom,pos:a[f],offset:l[f],channel:u,ambiguous:!1})}}r=r.parent}return e}function I6(t,e){const n=Me(t);return n.length===0?new Array(e).fill(0):n.length===1?new Array(e).fill(n[0]):n.length===e?n:new Array(e).fill(0)}function dc(t,e,n){return Zf(t,e)?.formatLocus(n)}function Zw(t,e,n){return Zf(t,e)?.formatInterval(n)}function Zf(t,e){const n=t.encoders?.[e]?.scale;return n?.type==="locus"&&"genome"in n?n.genome():void 0}function $w(t,e){const n=t?.genomicCoordinates?.[e],i=typeof n=="string"?n:n?.mode??"auto";if(!m6.has(i))throw new Error('Unknown genomic coordinate display mode: "'+i+'"');return i}function x6(t,e,n,i){const r=Zf(i,n.channel);if(!r)return!1;const s=t[n.chrom],o=t[n.pos],a=t[e];if(s===void 0||o===void 0||a===void 0)return!1;const l=+o,c=+a;if(!Number.isFinite(l)||!Number.isFinite(c))return!1;let u;try{u=r.toContinuous(s,l-n.offset)}catch{return!1}return Math.abs(u-c)<1e-6}async function v6(t,e,n,i){const r=p=>IA(p).join("."),s=p=>p!=null&&!(typeof p=="number"&&Number.isNaN(p)),o=(p,w,C)=>{for(const[y,I]of Object.entries(e.encoders)){const x=I?.dataAccessor?.fields;if(x&&x.some(E=>E===p||r(E)===p))switch(y){case"color":case"fill":case"stroke":{const E=I(C);return E!=null?ae`
|
|
648
|
+
<span
|
|
649
|
+
class="color-legend"
|
|
650
|
+
style=${"background-color: "+String(E)}
|
|
651
|
+
></span>
|
|
652
|
+
`:s(w)?ae`
|
|
653
|
+
<span
|
|
654
|
+
class="color-legend color-legend-unmapped"
|
|
655
|
+
></span>
|
|
656
|
+
`:""}}}return""},a=i??Jw(t,e,n),l=a.flattenDatumRows?a.flattenDatumRows():Hw(t),c=a.genomicRows??[],u=new Set(a.hiddenRowKeys??[]),f=l.filter(p=>!u.has(p.key)),h=[...c,...f];if(!h.length)return;const A=h.map(p=>{const w=Gw(p.value),C=o(p.key,p.value,t);return ae`
|
|
645
657
|
<tr>
|
|
646
|
-
<th>${
|
|
647
|
-
<td>${
|
|
658
|
+
<th>${p.key}</th>
|
|
659
|
+
<td>${w} ${C}</td>
|
|
648
660
|
</tr>
|
|
649
|
-
`}),
|
|
661
|
+
`}),d=ae`
|
|
650
662
|
<table class="attributes">
|
|
651
|
-
${
|
|
663
|
+
${A}
|
|
652
664
|
</table>
|
|
653
|
-
`,
|
|
665
|
+
`,g=e.unitView.getTitleText(),m=g?ae`
|
|
654
666
|
<div class="title">
|
|
655
|
-
<strong>${
|
|
667
|
+
<strong>${g}</strong>
|
|
656
668
|
</div>
|
|
657
|
-
`:"";return ce`${d}${h}`}class js extends bm{#e=new Map;constructor(e,t,r,i,s,o){super(e,t,r,i,s,o),this.spec=e}async initializeChildren(){}getNextAutoName(e){const t=this.#e.get(e)??0;return this.#e.set(e,t+1),e+t}*[Symbol.iterator](){}visit(e){let t;try{t=e(this)}catch(r){throw r.view=this,r}if(t===oi)return t;if(t!==Pn){e.beforeChildren&&e.beforeChildren(this);for(const r of this){const i=r.visit(e);if(i===oi)return i}e.afterChildren&&e.afterChildren(this),e.postOrder&&e.postOrder(this)}}findDescendantByPath(e){let t=this;for(let r=0;r<e.length;r++){if(!(t instanceof js))return;const i=t.#t(e[r]);if(!i)return;if(r===e.length-1)return i;t=i}}#t(e){for(const t of this)if(t.name===e)return t}findDescendantByName(e){let t;return this.visit(r=>{if(r.name==e)return t=r,oi}),t}getDefaultResolution(e,t){return"shared"}}function hR(n){o8(n),a8(n)}function s1(n){n.getDescendants().forEach(e=>e.configureViewOpacity())}class o1{constructor(e,t){this.container=e,this.options=t}async addChildSpec(e,t){const{specs:r,insertAt:i}=this.options.getChildSpecs(),s=t??r.length,o=this.options.defaultName?.(s,e)??this.container.getNextAutoName("child"),a=await this.container.context.createOrImportView(e,this.container,this.container,o);i(s,e);const l=this.options.insertView(a,s);this.options.prepareView&&await this.options.prepareView(a,s,l),s1(a);const c=h=>h.isConfiguredVisible(),{dataSources:u,graphicsPromises:f}=Cf(a,this.container.context.dataFlow,c);return await If(a,u),await hf(f),this.options.requestLayout!==!1&&(this.container.invalidateSizeCache(),this.container.context.requestLayoutReflow()),a}async removeChildAt(e){const{removeAt:t}=this.options.getChildSpecs();this.options.removeView(e),t(e),this.options.afterRemove&&await this.options.afterRemove(e),this.options.requestLayout!==!1&&(this.container.invalidateSizeCache(),this.container.context.requestLayoutReflow())}}const a1=.5;function xf(n){return"multiscale"in n&&Ce(n.multiscale)}function dR(n){if(!n.multiscale.length)throw new Error('"multiscale" must contain at least one child view.');const e=gR(n.stops,n.multiscale.length),t=n.multiscale.map((i,s)=>n.multiscale.length===1?i:{opacity:pR(s,n.multiscale.length,e),layer:[i]}),r={...n};return delete r.multiscale,delete r.stops,{...r,layer:t}}function gR(n,e){let t="unitsPerPixel",r,i="auto",s=a1;if(Ce(n))r=c1(n,e,"stops");else if(ze(n))t=n.metric??"unitsPerPixel",r=c1(n.values,e,"stops.values"),i=n.channel??"auto",s=n.fade??a1;else throw new Error('"stops" must be an array or an object with "values".');if(t!=="unitsPerPixel")throw new Error('Only "unitsPerPixel" is supported for "stops.metric" in multiscale.');if(!["x","y","auto"].includes(i))throw new Error('"stops.channel" must be one of "x", "y", or "auto".');if(!Number.isFinite(s)||s<0||s>.5)throw new Error('"stops.fade" must be a finite number in range [0, 0.5].');if(r.forEach((o,a)=>{if(!Ie(o)&&(!Number.isFinite(o)||o<=0))throw new Error("Invalid stop value at index "+a+". Stop values must be positive finite numbers.")}),!r.some(Ie)){const o=r;for(let a=1;a<o.length;a++)if(o[a-1]<=o[a])throw new Error('"stops.values" must be strictly decreasing for "unitsPerPixel".');for(let a=0;a<o.length-1;a++){const l=o[a]*(1-s),c=o[a+1]*(1+s);if(l<=c)throw new Error("Adjacent transitions overlap. Reduce fade or increase stop spacing.")}}return{metric:t,values:r,channel:i,fade:s}}function c1(n,e,t){if(!Ce(n))throw new Error('"'+t+'" must be an array of numbers or ExprRefs.');const r=e-1;if(n.length!==r)throw new Error("Invalid stop count for multiscale. Expected "+r+", got "+n.length+".");for(const i of n)if(!Ie(i)&&!Number.isFinite(i))throw new Error('"'+t+'" must contain only numbers or ExprRefs.');return n}function pR(n,e,t){let r,i;const s=t.values.map(o=>({hi:l1(o,1+t.fade),lo:l1(o,1-t.fade)}));if(n===0)r=[s[0].hi,s[0].lo];else if(n===e-1){const o=s.at(-1);r=[o.hi,o.lo]}else{const o=s[n-1],a=s[n];r=[o.hi,o.lo,a.hi,a.lo]}return n===0?i=[1,0]:n===e-1?i=[0,1]:i=[0,1,1,0],{channel:t.channel,unitsPerPixel:r,values:i}}function l1(n,e){return Ie(n)?{expr:"("+n.expr+") * "+e}:n*e}function Bf(n){return"mark"in n&&(le(n.mark)||ze(n.mark))}function vf(n){return"layer"in n&&ze(n.layer)}function u1(n){return"import"in n}function Ws(n){return"vconcat"in n&&Ce(n.vconcat)}function f1(n){return"hconcat"in n&&Ce(n.hconcat)}function Za(n){return"concat"in n&&Ce(n.concat)}class wr extends js{#e=[];constructor(e,t,r,i,s,o){super(e,t,r,i,s,{layersChildren:!0,...o}),this.spec=e,this.needsAxes={x:!0,y:!0}}async initializeChildren(){this.#e=await Promise.all(this.spec.layer.map(e=>this.context.createOrImportView(e,this,this,this.getNextAutoName("layer"),t=>{if(!vf(t)&&!Bf(t)&&!xf(t))throw new Ve("LayerView accepts only unit, layer, or multiscale specs as children!",this)})))}async addChildSpec(e,t){return this.#t().addChildSpec(e,t)}async removeChildAt(e){await this.#t().removeChildAt(e)}#t(){return new o1(this,{getChildSpecs:()=>({specs:this.spec.layer,insertAt:(e,t)=>{this.spec.layer.splice(e,0,t)},removeAt:e=>{this.spec.layer.splice(e,1)}}),insertView:(e,t)=>(e.layoutParent??=this,this.#e.splice(t,0,e),e),removeView:e=>{const t=this.#e[e];if(!t)throw new Error("Child index out of range!");t.disposeSubtree(),this.#e.splice(e,1)},defaultName:()=>this.getNextAutoName("layer")})}get children(){return this.#e.slice()}*[Symbol.iterator](){for(const e of this.#e)yield e}render(e,t,r={}){if(super.render(e,t,r),!!this.isConfiguredVisible()){e.pushView(this,t);for(const i of this.#e)i.render(e,t,r);e.popView(this)}}propagateInteractionEvent(e){this.handleInteractionEvent(void 0,e,!0);for(let t=this.#e.length-1;t>=0;t--)if(this.#e[t].propagateInteractionEvent(e),e.stopped)return;this.handleInteractionEvent(void 0,e,!1)}}class A1{constructor(e,t){this.n=e,this.maxCols=t??1/0}get nRows(){return this.maxCols==1/0?1:Math.ceil(this.n/this.maxCols)}get nCols(){return Math.min(this.n,this.maxCols)}get rowIndices(){const e=[],t=this.nCols,r=this.nRows;for(let i=0;i<r;i++){const s=[];e.push(s);for(let o=0;o<t;o++){const a=i*t+o;a<this.n&&s.push(a)}}return e}get colIndices(){const e=[],t=this.nCols,r=this.nRows;for(let i=0;i<t;i++){const s=[];e.push(s);for(let o=0;o<r;o++){const a=o*t+i;a<this.n&&s.push(a)}}return e}getCellIndex(e,t){let r=0;if(this.maxCols==1/0)r=t==0?e:void 0;else{if(e>=this.maxCols)return;r=t*this.nCols+e}return r<this.n?r:void 0}getCellCoords(e){if(!(e<0||e>=this.n))return[e%this.nCols,Math.floor(e/this.nCols)]}}function on(n){return()=>n}class ve{static create(e,t,r,i){return new ve(on(e),on(t),on(r),on(i))}static ZERO=ve.create(0,0,0,0);_offset(e,t){const r=this["_"+e];if(t===0)return r;switch(typeof t){case"number":return()=>r()+t;case"function":return()=>r()+t();default:throw new Error("Not a number of function")}}_passThrough(e){return this._offset(e,0)}constructor(e,t,r,i){this._x=e,this._y=t,this._width=r,this._height=i}get x(){return this._x()}get y(){return this._y()}get width(){return this._width()}get height(){return this._height()}get x2(){return this._x()+this._width()}get y2(){return this._y()+this._height()}equals(e){return e?this===e||this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height:!1}modify(e){if(!Object.keys(e).length)return this;const t=r=>{const i=e[r];return typeof i=="number"?on(i):typeof i=="function"?i:this._passThrough(r)};return new ve(t("x"),t("y"),t("width"),t("height"))}translate(e,t){return e===0&&t===0?this:new ve(this._offset("x",e),this._offset("y",t),this._passThrough("width"),this._passThrough("height"))}translateBy(e){return this.translate(e.x,e.y)}expand(e,t=1){return e.left==0&&e.top==0&&e.right==0&&e.bottom==0?this:new ve(e.left?this._offset("x",-e.left*t):this._passThrough("x"),e.top?this._offset("y",-e.top*t):this._passThrough("y"),e.width?this._offset("width",e.width*t):this._passThrough("width"),e.height?this._offset("height",e.height*t):this._passThrough("height"))}shrink(e){return this.expand(e,-1)}intersect(e){return this===e||e==null?this:new ve(()=>Math.max(this.x,e.x),()=>Math.max(this.y,e.y),()=>Math.min(this.x2,e.x2)-Math.max(this.x,e.x),()=>Math.min(this.y2,e.y2)-Math.max(this.y,e.y))}union(e){return this===e||e==null?this:new ve(()=>Math.min(this.x,e.x),()=>Math.min(this.y,e.y),()=>Math.max(this.x2,e.x2)-Math.min(this.x,e.x),()=>Math.max(this.y2,e.y2)-Math.min(this.y,e.y))}isDefined(){return this.width>=0&&this.height>=0}flatten(){return new ve(on(this.x),on(this.y),on(this.width),on(this.height))}containsPoint(e,t){return e>=this.x&&e<this.x2&&t>=this.y&&t<this.y2}normalizePoint(e,t,r=!1){const i={x:(e-this.x)/this.width,y:(t-this.y)/this.height};return r&&(i.y=1-i.y),i}denormalizePoint(e,t,r=!1){return r&&(t=1-t),{x:this.x+e*this.width,y:this.y+t*this.height}}toString(){return`Rectangle: x: ${this.x}, y: ${this.y}, width: ${this.width}, height: ${this.height}`}toRoundedString(){return`Rectangle: x: ${Math.round(this.x)}, y: ${Math.round(this.y)}, width: ${Math.round(this.width)}, height: ${Math.round(this.height)}`}}const ai=new WeakMap,Sf=new WeakMap;function mR(n,e){if(e!==null&&typeof e!="string")throw new Error("Import scope name must be a string or null.");ai.set(n,{name:e})}function an(n,e={}){const r=e.skipSubtree??!1?"excludeSubtree":"exclude";Sf.set(n,r)}function Qf(n){const e=n.getDataAncestors(),t=[];for(let r=e.length-1;r>=0;r-=1){const i=ai.get(e[r]);i&&typeof i.name=="string"&&t.push(i.name)}return t}function wR(n){const e=[];for(const t of yR(n)){const r=CR(t);IR(n,r,e),ER(n,r,e)}return e}function h1(n){return n.persist===!1?!1:bl(n)?!0:bd(n)?!!n.bind:!1}function yR(n){const e=new Set([n]);return n.visit(t=>{const r=ai.get(t);r&&typeof r.name=="string"&&e.add(t)}),Array.from(e)}function CR(n){return Qf(n)}function d1(n){return n.length?"import scope ["+n.join(" / ")+"]":"import scope (root)"}function IR(n,e,t){const r=new Map;g1(n,e,i=>{for(const[s,o]of i.paramRuntime.paramConfigs){if(!h1(o))continue;const a=r.get(s);a?a.push(i):r.set(s,[i])}});for(const[i,s]of r){if(s.length<=1)continue;const o=s.map(a=>a.getPathString()).join(", ");t.push({message:'Bookmarkable parameter "'+i+'" is not unique within '+d1(e)+". Found in: "+o+".",scope:e})}}function ER(n,e,t){const r=bR(n,e);if(!r.length)return;const i=r.filter(o=>xR(o));if(i.length<=1)return;const s=new Map;for(const o of i){const a=ai.get(o),l=a?a.name:void 0;typeof l!="string"||!l.length||s.set(l,(s.get(l)??0)+1)}for(const[o,a]of s)a>1&&t.push({message:'Import instance name "'+o+'" is used multiple times for addressable instances in '+d1(e)+".",scope:e})}function bR(n,e){const t=[];return g1(n,e,r=>{if(Qf(r).length!==e.length+1)return;const s=ai.get(r);!s||typeof s.name!="string"||t.push(r)},{includeNamedImportRoots:!0}),t}function xR(n){let e=!1;return n.visit(t=>{const r=Sf.get(t);if(r==="excludeSubtree")return Pn;if(r!=="exclude"){for(const i of t.paramRuntime.paramConfigs.values())if(h1(i))return e=!0,oi}}),e}function g1(n,e,t,r={}){const i=r.includeNamedImportRoots??!1;n.visit(s=>{const o=ai.get(s),a=Sf.get(s);if(a==="excludeSubtree")return Pn;if(a!=="exclude"&&BR(s,e,o,i))return t(s)})}function BR(n,e,t,r){const i=Qf(n);return vR(i,e)?!0:!r||!t||typeof t.name!="string"||i.length!==e.length+1?!1:p1(e,i)}function vR(n,e){return n.length!==e.length?!1:p1(n,e)}function p1(n,e){if(n.length>e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}const SR="chromosome_ticks_and_labels",QR={x:"width",y:"height"};function Df(n){return n=="x"?"y":"x"}const $a={x:["bottom","top"],y:["left","right"]},kf=Object.fromEntries(Object.entries($a).map(([n,e])=>e.map(t=>[t,n])).flat(1));function Ln(n){return kf[n]}class m1 extends wr{constructor(e,t,r,i,s,o){const a=t=="locus",l={...a?kR:w1,...DR(t,e),...e};super(a?FR(l,t):y1(l,t),r,i,s,`axis_${e.orient}`,{blockEncodingInheritance:!0,...o}),this.axisProps=l,an(this,{skipSubtree:!0})}getSize(){const e={px:this.getPerpendicularSize()},t={grow:1};return kf[this.axisProps.orient]=="x"?new Nn(t,e):new Nn(e,t)}getPerpendicularSize(){return Ff(this.axisProps)}isPickingSupported(){return!1}}function Ff(n){const e=Ln(n.orient);let t=n.ticks&&n.tickSize||0;return n.labels&&(t+=n.labelPadding,e=="x"?t+=n.labelFontSize:t+=30),n.title&&(t+=n.titlePadding+n.titleFontSize),t=Math.min(n.maxExtent||1/0,Math.max(n.minExtent||0,t)),t}const w1={values:null,minExtent:20,maxExtent:1/0,offset:0,domain:!0,domainWidth:1,domainColor:"gray",domainDash:null,domainDashOffset:0,domainCap:"square",ticks:!0,tickSize:5,tickWidth:1,tickColor:"gray",tickDash:null,tickDashOffset:0,tickCap:"square",tickCount:null,tickMinStep:null,labels:!0,labelAlign:"center",labelBaseline:"middle",labelPadding:4,labelFontSize:10,labelLimit:180,labelColor:"black",format:null,titleColor:"black",titleFont:"sans-serif",titleFontSize:10,titlePadding:3};function DR(n,e){const t=e.orient,r=n=="nominal"||n=="ordinal";let i="center",s="middle",o=e.labelAngle??((t=="top"||t=="bottom")&&r?-90:0);switch(t){case"left":i="right";break;case"right":i="left";break;case"top":case"bottom":Math.abs(o)>30?(i=o>0==(t=="bottom")?"left":"right",s="middle"):s=t=="top"?"alphabetic":"top";break}return{labelAlign:i,labelAngle:o,labelBaseline:s}}function y1(n,e){const t={...n,extent:Ff(n)},r=Ln(t.orient),i=Df(r),s=t.orient=="bottom"||t.orient=="right"?1:-1,o=t.orient=="bottom"||t.orient=="left"?1:0,a=()=>({field:"value",type:e}),l=()=>({name:"domain",data:{values:[{}]},mark:{type:"rule",clip:!1,strokeDash:t.domainDash,strokeCap:t.domainCap,color:t.domainColor,[i]:o,size:t.domainWidth}}),c=()=>({name:"labels",mark:{type:"text",clip:!1,align:t.labelAlign,angle:t.labelAngle,baseline:t.labelBaseline,[i+"Offset"]:(t.tickSize+t.labelPadding)*s,[i]:o,size:t.labelFontSize,color:t.labelColor,minBufferSize:1500},encoding:{[r]:a(),text:{field:"label"}}}),u=()=>({name:"ticks",mark:{type:"rule",clip:!1,strokeDash:t.tickDash,strokeCap:t.tickCap,color:t.tickColor,size:t.tickWidth,minBufferSize:300},encoding:{[i]:{value:o},[i+"2"]:{value:o-t.tickSize/t.extent*(o?1:-1)}}}),f=()=>({name:"title",data:{values:[{}]},mark:{type:"text",clip:!1,align:"center",baseline:t.orient=="bottom"?"bottom":"top",angle:[0,90,0,-90][["top","right","bottom","left"].indexOf(t.orient)],text:t.title,color:t.titleColor,[r]:.5,[i]:1-o}}),h=()=>{const d={name:"ticks_and_labels",encoding:{[r]:a()},layer:[]};return t.ticks&&d.layer.push(u()),t.labels&&d.layer.push(c()),d},A={resolve:{scale:{[r]:"forced"}},domainInert:!0,[QR[Df(r)]]:t.extent,data:{lazy:{type:"axisTicks",channel:r,axis:n}},layer:[]};return t.domain&&A.layer.push(l()),(t.ticks||t.labels)&&A.layer.push(h()),t.title&&A.layer.push(f()),A}const kR={...w1,chromTicks:!0,chromTickSize:18,chromTickWidth:1,chromTickColor:"#989898",chromTickDash:[4,2],chromTickDashOffset:1,chromLabels:!0,chromLabelFontSize:13,chromLabelFontWeight:"normal",chromLabelFontStyle:"normal",chromLabelColor:"black",chromLabelAlign:"left",chromLabelPadding:7};function FR(n,e){const t={...n,extent:Ff(n)},r=Ln(t.orient),i=Df(r),s=t.orient=="bottom"||t.orient=="left"?1:0,o=()=>({name:"chromosome_ticks",mark:{type:"rule",strokeDash:n.chromTickDash,strokeDashOffset:n.chromTickDashOffset,[i]:s,[i+"2"]:s-t.chromTickSize/t.extent*(s?1:-1),color:n.chromTickColor,size:t.chromTickWidth}}),a=()=>{let u;switch(t.orient){case"top":u={y:0,angle:0,paddingX:4,dy:-t.chromLabelPadding,viewportEdgeFadeWidthLeft:20,viewportEdgeFadeWidthRight:20,viewportEdgeFadeDistanceRight:-10,viewportEdgeFadeDistanceLeft:-20};break;case"bottom":u={y:1,angle:0,paddingX:4,dy:t.chromLabelPadding+t.chromLabelFontSize*.73,viewportEdgeFadeWidthLeft:20,viewportEdgeFadeWidthRight:20,viewportEdgeFadeDistanceRight:-10,viewportEdgeFadeDistanceLeft:-20};break;case"left":u={x:1,angle:-90,paddingY:4,dy:-t.chromLabelPadding,viewportEdgeFadeWidthBottom:20,viewportEdgeFadeWidthTop:20,viewportEdgeFadeDistanceBottom:-20,viewportEdgeFadeDistanceTop:-10};break;case"right":u={x:0,angle:90,align:"right",paddingY:4,dy:-t.chromLabelPadding};break;default:u={}}return{name:"chromosome_labels",mark:{type:"text",size:t.chromLabelFontSize,font:t.chromLabelFont,fontWeight:t.chromLabelFontWeight,fontStyle:t.chromLabelFontStyle,color:t.chromLabelColor,align:n.chromLabelAlign,baseline:"alphabetic",clip:!1,...u},encoding:{[r+"2"]:{field:"continuousEnd",type:e},text:{field:"name"}}}};let l;switch(t.orient){case"bottom":case"top":l={};break;case"left":l={labelAngle:-90,labelAlign:"center",labelPadding:6};break;case"right":l={labelAngle:90,labelAlign:"center",labelPadding:6};break;default:l={}}const c=y1({...n,...l},e);if(n.chromTicks||n.chromLabels){const u={name:SR,data:{lazy:{type:"axisGenome",channel:Ln(t.orient)}},encoding:{[r]:{field:"continuousStart",type:e,band:0}},layer:[]};if(n.chromTicks&&u.layer.push(o()),n.chromLabels){u.layer.push(a());let f;c.layer.filter(h=>h.name=="ticks_and_labels").forEach(h=>h.layer.filter(A=>A.name=="labels").forEach(A=>{f=A.mark})),f&&(t.orient=="top"||t.orient=="bottom"?(f.viewportEdgeFadeWidthLeft=30,f.viewportEdgeFadeDistanceLeft=40):(f.viewportEdgeFadeWidthBottom=30,f.viewportEdgeFadeDistanceBottom=40))}c.layer.push(u)}return c}class RR{#e;#t=0;#n=0;constructor(e){this.#e=new Array(e)}push(e){this.#e[this.#t]=e,this.#t=(this.#t+1)%this.size,this.#n=Math.min(this.#n+1,this.size)}get(){const e=this.#e;return this.#n<this.size?e.slice(0,this.#n):e.slice(this.#t,this.size).concat(e.slice(0,this.#t))}get size(){return this.#e.length}get length(){return this.#n}}class ct{static fromMouseEvent(e){return new ct(e.clientX,e.clientY)}constructor(e,t){this.x=e,this.y=t}subtract(e){return new ct(this.x-e.x,this.y-e.y)}add(e){return new ct(this.x-e.x,this.y-e.y)}multiply(e){return new ct(this.x*e,this.y*e)}get length(){return Math.sqrt(this.x**2+this.y**2)}equals(e){return e?e===this||e.x===this.x&&e.y===this.y:!1}}let Xs,C1=0;function I1(){C1=performance.now()}function E1(){return performance.now()-C1<50}function MR(n){return function(...e){I1(),n(...e)}}function NR(n,e,t,r,i){if(t=MR(t),n.type=="wheel"){n.uiEvent.preventDefault();const s=n.uiEvent,o=s.deltaMode?120:1;if(!s.deltaX&&!s.deltaY)return;Xs?.stop();let{x:a,y:l}=n.point;if(r){const c=r.mark.encoders;c.x&&!c.x2&&!c.x.constant&&(a=+c.x(r.datum)*e.width+e.x),c.y&&!c.y2&&!c.y.constant&&(l=(1-+c.y(r.datum))*e.height+e.y)}Math.abs(s.deltaX)<Math.abs(s.deltaY)?t({x:a,y:l,xDelta:0,yDelta:0,zDelta:s.deltaY*o/300}):t({x:a,y:l,xDelta:-s.deltaX*o,yDelta:0,zDelta:0})}else if(n.type=="mousedown"&&n.mouseEvent.button===0){Xs&&Xs.stop();const s=new RR(30),o=n.mouseEvent;o.preventDefault();let a=ct.fromMouseEvent(o);const l=f=>{const h=ct.fromMouseEvent(f);s.push({point:h,timestamp:performance.now()});const A=h.subtract(a);t({x:a.x,y:a.y,xDelta:A.x,yDelta:A.y,zDelta:0}),a=h},c=()=>{const h=performance.now(),A=s.get().filter(C=>h-C.timestamp<160);if(A.length<5||!i||TR(A))return;const d=A.at(-1),g=A[0],p=d.point.subtract(g.point).multiply(1/(d.timestamp-g.timestamp));let m=a.x,y=a.y;Xs=Ef(i,C=>{t({x:C.x,y:C.y,xDelta:m-C.x,yDelta:y-C.y,zDelta:0}),m=C.x,y=C.y},150,.5,{x:m,y}),Xs({x:a.x-p.x*250,y:a.y-p.y*250})},u=()=>{document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",u),c()};document.addEventListener("mouseup",u,!1),document.addEventListener("mousemove",l,!1)}}function TR(n){const e=n[Math.floor(n.length/2)],t=e.point.subtract(n[0].point).multiply(e.timestamp-n[0].timestamp),r=n.at(-1).point.subtract(e.point).multiply(n.at(-1).timestamp-e.timestamp),i=t.length;return r.length/i<.4}class PR extends wr{constructor(e,t,r,i,s,o){const l={...t=="locus"?LR:b1,...e};super(zR(l,t),r,i,s,`axisGrid_${e.orient}`,{blockEncodingInheritance:!0,...o}),this.axisProps=l,an(this,{skipSubtree:!0})}getOrient(){return this.axisProps.orient}isPickingSupported(){return!1}}const b1={values:null,grid:!1,gridCap:"butt",gridColor:"lightgray",gridDash:null,gridOpacity:1,gridWidth:1,tickCount:null,tickMinStep:null},LR={...b1,chromGrid:!1,chromGridCap:"butt",chromGridColor:"gray",chromGridDash:[1,5],chromGridOpacity:1,chromGridWidth:1};function OR(n,e){const t=n,r=Ln(t.orient);return{name:"grid_lines",data:{lazy:{type:"axisTicks",channel:r,axis:n}},mark:{type:"rule",strokeDash:t.gridDash,strokeCap:t.gridCap,color:t.gridColor,size:t.gridWidth,opacity:t.gridOpacity,minBufferSize:300},encoding:{[r]:{field:"value",type:e}}}}function UR(n,e){const t=n,r=Ln(t.orient);return{name:"chromosome_lines",data:{lazy:{type:"axisGenome",channel:r}},mark:{type:"rule",strokeDash:t.chromGridDash,strokeCap:t.chromGridCap,color:t.chromGridColor,size:t.chromGridWidth,opacity:t.chromGridOpacity},encoding:{[r]:{field:"continuousStart",type:e,band:0}}}}function GR(n,e){const t=n,r=Ln(t.orient);return{name:"chromosome_fill",data:{lazy:{type:"axisGenome",channel:r}},mark:{type:"rect"},encoding:{[r]:{field:"continuousStart",type:e,band:0},[r+"2"]:{field:"continuousEnd",band:0},fill:{field:"odd",type:"nominal",scale:{domain:[!1,!0],range:[t.chromGridFillEven??"white",t.chromGridFillOdd??"white"]}},opacity:{field:"odd",type:"nominal",scale:{type:"ordinal",domain:[!1,!0],range:[t.chromGridFillEven?1:0,t.chromGridFillOdd?1:0]}}}}}function zR(n,e){const t={...n},r=[];return t.chromGrid&&(t.chromGridFillOdd||t.chromGridFillEven)&&r.push(GR(t,e)),t.chromGrid&&t.chromGridOpacity>0&&r.push(UR(t,e)),t.grid&&t.gridOpacity>0&&r.push(OR(t,e)),{name:"grid_layers",resolve:{scale:{[Ln(n.orient)]:"forced",fill:"independent",opacity:"independent"}},domainInert:!0,layer:r}}const x1={anchor:"middle",frame:"group",offset:10,orient:"top",align:void 0,angle:0,baseline:"alphabetic",dx:0,dy:0,color:void 0,font:void 0,fontSize:12,fontStyle:"normal",fontWeight:"normal"},HR={orient:"left",anchor:"middle",align:"right",baseline:"middle",angle:0,fontSize:12},VR={orient:"top",anchor:"start",align:"left",baseline:"top",offset:-10,dx:10,fontSize:12},_R={start:0,middle:.5,end:1},YR={start:"left",middle:"center",end:"right"};function JR(n){if(!n)return;const e=le(n)?{text:n}:n;if(!e.text||e.orient=="none")return;const t={"track-title":HR,overlay:VR}[e.style]??{},r={...x1,...t,...e};let i={},s={x:0,y:0};const o=_R[r.anchor??"middle"];switch(r.orient){case"top":s={x:o,y:1},i={baseline:"alphabetic",angle:0};break;case"right":s={x:1,y:1-o},i={baseline:"alphabetic",angle:90};break;case"bottom":s={x:o,y:0},i={baseline:"top",angle:0};break;case"left":s={x:0,y:o},i={baseline:"alphabetic",angle:-90};break}const a={...x1,...i,...t,...e},l={xOffset:0,yOffset:0};switch(r.orient){case"top":l.yOffset=-a.offset;break;case"right":l.xOffset=a.offset;break;case"bottom":l.yOffset=a.offset;break;case"left":l.xOffset=-a.offset;break}return{data:{values:[{}]},mark:{type:"text",tooltip:null,clip:!1,...s,...l,text:a.text,align:a.align??YR[a.anchor],angle:a.angle,baseline:a.baseline,dx:a.dx,dy:a.dy,color:a.color,font:a.font,size:a.fontSize,fontStyle:a.fontStyle,fontWeight:a.fontWeight}}}class B1 extends tt{#e;#t=ve.ZERO;#n=ve.ZERO;#r=ve.ZERO;viewportOffset=0;#s;constructor(e,t,r={}){const i={scrollbarSize:8,scrollbarPadding:2,scrollbarMinLength:20};super({params:[{name:"scrollbarOpacity",value:1}],opacity:{expr:"scrollbarOpacity"},data:{values:[{}]},mark:{type:"rect",fill:"#b0b0b0",fillOpacity:.6,stroke:"white",strokeWidth:1,strokeOpacity:1,cornerRadius:5,clip:!1}},e.layoutParent.context,e.layoutParent,e.view,"scrollbar-"+t,{blockEncodingInheritance:!0}),an(this,{skipSubtree:!0}),this.config=i,this.#e=t,this.#s=r.onViewportOffsetChange;const s=this.config.scrollbarPadding,o=this.config.scrollbarSize;this.#t=this.#e=="vertical"?new ve(()=>this.#n.x+this.#n.width-o-s,()=>this.#n.y+s+this.scrollOffset,()=>o,()=>this.#a()):new ve(()=>this.#n.x+s+this.scrollOffset,()=>this.#n.y+this.#n.height-o-s,()=>this.#a(),()=>o),this.#A(this.viewportOffset),this.addInteractionEventListener("mousedown",(a,l)=>{if(l.stopPropagation(),this.#c()<=0)return;const c=d=>t=="vertical"?d.clientY:d.clientX;l.mouseEvent.preventDefault();const u=this.scrollOffset,f=c(l.mouseEvent),h=d=>{const g=this.#c();if(g<=0)return;const p=jr(c(d)-f+u,0,g);this.interpolateViewportOffset({x:this.#u(p)})},A=()=>{document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",A)};document.addEventListener("mouseup",A,!1),document.addEventListener("mousemove",h,!1)})}get scrollOffset(){return this.#l(this.viewportOffset)}setViewportOffset(e,{notify:t=!0,syncSmoother:r=!1}={}){this.viewportOffset=jr(e,0,this.#f()),r&&this.#A(this.viewportOffset),t&&this.#s&&this.#s(this.viewportOffset)}#o(){const e=this.#e=="horizontal"?"width":"height",t=this.#n[e],r=this.#r[e];return r>0?Math.min(1,t/r):1}#i(){const e=this.#e=="horizontal"?"width":"height";return Math.max(0,this.#n[e]-2*this.config.scrollbarPadding)}#a(){const e=this.#i(),t=this.#o()*e,r=this.config.scrollbarMinLength;return Math.min(e,Math.max(r,t))}#c(){return Math.max(0,this.#i()-this.#a())}#l(e){const t=this.#f(),r=this.#c();return t<=0||r<=0?0:e/t*r}#u(e){const t=this.#f(),r=this.#c();return t<=0||r<=0?0:e/r*t}#f(){const e=this.#e=="horizontal"?"width":"height";return Math.max(0,this.#r[e]-this.#n[e])}render(e,t,r){super.render(e,this.#t,r)}updateScrollbar(e,t){this.#n=e.flatten(),this.#r=t,this.setViewportOffset(this.viewportOffset,{notify:!1,syncSmoother:!0})}#A(e){this.interpolateViewportOffset=Ef(this.context.animator,t=>{this.setViewportOffset(t.x,{notify:!0,syncSmoother:!1})},35,.4,{x:e})}}class KR extends wr{constructor(e,t,r={}){const i=t(),s=Object.keys(i.intervals);if(er.every(u=>!s.includes(u)))throw new Error("SelectionRect requires at least one of the channels 'x' or 'y' to be present in the selection.");const o={name:"selectionRect",domainInert:!0,resolve:{scale:{x:"forced",y:"forced"}},data:{values:v1(t())},encoding:{},layer:[]};s.includes("x")&&(o.encoding.x={field:"_x",type:null,title:null},o.encoding.x2={field:"_x2"}),s.includes("y")&&(o.encoding.y={field:"_y",type:null,title:null},o.encoding.y2={field:"_y2"}),o.layer.push({name:"selectionRectRect",mark:{type:"rect",clip:!0,fill:"#808080",fillOpacity:.05,stroke:"black",strokeWidth:1,strokeOpacity:.2,...r}});const a=u=>{const f=e.view.getScaleResolution(u);return`format(datum._${u}2 - datum._${u}, '.3s')`+(f.type==="locus"?" + 'b'":"")},l=r.measure=="inside"?9:r.measure=="outside"?-9:0;s.includes("x")&&l!=0&&o.layer.push({name:"selectionRectTextX",mark:{type:"text",align:"center",paddingX:5,dy:l,tooltip:null},encoding:{text:{expr:a("x")},y:s.includes("y")?{field:"_y2",type:null,title:null}:{value:1},y2:null}}),s.includes("y")&&l!=0&&o.layer.push({name:"selectionRectTextY",mark:{type:"text",align:"center",paddingY:5,dy:l,tooltip:null,angle:-90},encoding:{text:{expr:a("y")},x2:null}}),super(o,e.layoutParent.context,e.layoutParent,e.view,"selectionRect",{blockEncodingInheritance:!0}),an(this,{skipSubtree:!0});const c=()=>{const u=t(),f=this.flowHandle?.dataSource;if(!f)throw new Error("Cannot find selection rect data source handle!");f.updateDynamicData(v1(u))};this.registerDisposer(t.subscribe(c))}}function v1(n){const e=n.intervals.x,t=n.intervals.y;return!e&&!t?[]:[{_x:e?.[0],_x2:e?.[1],_y:t?.[0],_y2:t?.[1]}]}class qR{constructor(e,t,r){if(this.layoutParent=t,this.view=e,this.serial=r,this.background=void 0,this.backgroundStroke=void 0,this.axes={},this.gridLines={},this.scrollbars={},this.selectionRect=void 0,this.title=void 0,this.coords=ve.ZERO,e.needsAxes.x||e.needsAxes.y){const i=e.spec,s="view"in i?i?.view:void 0,o=jR(s);o&&(this.background=new tt(o,t.context,t,e,"background"+r,{blockEncodingInheritance:!0}),an(this.background,{skipSubtree:!0}));const a=WR(s);a&&(this.backgroundStroke=new tt(a,t.context,t,e,"backgroundStroke"+r,{blockEncodingInheritance:!0}),an(this.backgroundStroke,{skipSubtree:!0}));const l=JR(e.spec.title);if(l){const c=new tt(l,t.context,t,e,"title"+r,{blockEncodingInheritance:!0});this.title=c,an(this.title,{skipSubtree:!0})}}e.spec.viewportWidth!=null&&(this.scrollbars.horizontal=new B1(this,"horizontal")),e.spec.viewportHeight!=null&&(this.scrollbars.vertical=new B1(this,"vertical")),this.#e()}#e(){const e=this.view,t=r=>{this.view.context.glHelper.canvas.style.cursor=r};for(const[r,i]of e.paramRuntime.paramConfigs){if(!("select"in i))continue;const s=qo(i.select);if(!Cd(s))continue;const o=s.encodings,a=Object.fromEntries(o.map(C=>{const w=this.view.getScaleResolution(C),b=w?.getScale();if(!b||!Pe(b.type))throw new Error(`No continuous scale found for interval selection param "${r}" on channel "${C}"! Scale type is "${b?.type??"none"}".`);return[C,w]}));if(this.selectionRect)throw new Error("Only one interval selection per container is currently allowed!");let l=!1,c=!1,u=!1,f=null;const h=(C,w)=>Object.fromEntries(o.map(b=>[b,[Math.min(C[b],w[b]),Math.max(C[b],w[b])]])),A=e.paramRuntime.createExpression(r),d=C=>{e.paramRuntime.setValue(r,C)};i.value&&d({type:"interval",intervals:i.value});const g=()=>{d(md(o)),t(null)};this.selectionRect=new KR(this,A,s.mark),this.selectionRect.initializeChildren();const p=C=>{const w={x:0,y:0},b=e.coords.normalizePoint(C.x,C.y,!0);for(const x of o){const E=a[x].getScale(),S=E.invert(x=="x"?b.x:b.y);w[x]=S+(["index","locus"].includes(E.type)?.5:0)}return w},m=C=>{const{intervals:w}=C,b=(S,Q,v)=>{const F=(O,H)=>H==null?null:a[O].getScale()(H),R=F("x",S)??v,N=F("y",Q)??v;return e.coords.denormalizePoint(R,N,!0)},x=b(w.x?.[0],w.y?.[0],0),E=b(w.x?.[1],w.y?.[1],1);return ve.create(x.x,x.y,E.x-x.x,E.y-x.y)};e.addInteractionEventListener("mousedown",(C,w)=>{if(w.mouseEvent.button!=0)return;if(f=l?m(A()):null,f)t("grabbing"),c=!0;else{const Q=w.point;if(Id(A())&&(c=!0),w.mouseEvent.shiftKey)g(),u=!0;else if(Id(A())){const F=(R,N)=>{e.removeInteractionEventListener("mouseup",F);const O=N.point;Q.subtract(O).length<2&&g()};e.addInteractionEventListener("mouseup",F);return}else return}w.stopPropagation();const b=w.point,x=ct.fromMouseEvent(w.mouseEvent).subtract(b),E=Q=>{const v=ct.fromMouseEvent(Q).subtract(x);let F;if(f){const R=v.subtract(b),N=f.translate(R.x,R.y);F=h(p(new ct(N.x,N.y)),p(new ct(N.x2,N.y2)))}else F=h(p(b),p(v));for(const R of o){const N=a[R],{zoomExtent:O,scale:H}=N,G=F[R];if(["index","locus"].includes(H.type)&&(G[0]=Math.ceil(G[0]),G[1]=Math.ceil(G[1])),f){const _=G[1]-G[0],te=O[0],oe=O[1];G[0]<te&&(G[0]=te,G[1]=te+_),G[1]>oe&&(G[1]=oe,G[0]=oe-_)}else G[0]=Math.max(O[0],G[0]),G[1]=Math.min(O[1],G[1]);G[1]=Math.min(O[1],G[1])}d({type:"interval",intervals:F})},S=()=>{document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",S),u=!1,f&&(t("move"),f=null)};document.addEventListener("mousemove",E),document.addEventListener("mouseup",S)}),e.addInteractionEventListener("click",(C,w)=>{w.mouseEvent.button==0&&c&&(w.stopPropagation(),c=!1)},!0);const y=C=>Vb(A(),p(C));e.addInteractionEventListener("dblclick",(C,w)=>{y(w.point)&&(g(),w.stopPropagation())},!0),e.addInteractionEventListener("mousemove",(C,w)=>{y(w.point)?u||(l=!0,f||t("move")):(l=!1,f||t(null))})}}*getChildren(){this.background&&(yield this.background),this.backgroundStroke&&(yield this.backgroundStroke),this.title&&(yield this.title),yield*Object.values(this.axes),yield*Object.values(this.gridLines),yield this.view,yield*Object.values(this.scrollbars),this.selectionRect&&(yield this.selectionRect)}async createAxes(){this.disposeAxisViews();const{view:e,axes:t,gridLines:r}=this,i=(a,l)=>{const c=a.getAxisProps();if(c===null)return;const u=c?{...c}:{};if(!u.orient){for(const f of $a[l])if(!t[f]){u.orient=f;break}if(!u.orient)throw new Error("No slots available for an axis! Perhaps a LayerView has more than two children?")}if(u.title??=a.getTitle(),!$a[l].includes(u.orient))throw new Error(`Invalid axis orientation "${u.orient}" on channel "${l}"!`);return u},s=async(a,l,c)=>{const u=i(a,l);if(u){if(t[u.orient])throw new Error(`An axis with the orient "${u.orient}" already exists!`);const f=new m1(u,a.scaleResolution.type,this.layoutParent.context,this.layoutParent,c);t[u.orient]=f,await f.initializeChildren()}},o=async(a,l,c)=>{const u=i(a,l);if(u&&(u.grid||u.chromGrid)){const f=new PR(u,a.scaleResolution.type,this.layoutParent.context,this.layoutParent,c);r[u.orient]=f,await f.initializeChildren()}};for(const a of["x","y"])if(e.needsAxes[a]){const l=e.resolutions.axis[a];if(!l)continue;await s(l,a,e)}for(const a of["x","y"])if(e.needsAxes[a]&&e.getConfiguredOrDefaultResolution(a,"axis")!="excluded"){const l=e.getAxisResolution(a);if(!l)continue;await o(l,a,e)}if(e instanceof wr){for(const a of e)for(const[l,c]of Object.entries(a.resolutions.axis)){const u=c.getAxisProps();u&&u.orient&&await s(c,l,a)}for(const a of e)for(const[l,c]of Object.entries(a.resolutions.axis)){const u=c.getAxisProps();u&&!u.orient&&await s(c,l,a)}}[...Object.values(t),...Object.values(r)].forEach(a=>a.visit(l=>{l instanceof tt&&l.resolve("scale")}))}disposeAxisViews(){for(const e of Object.values(this.axes))e.disposeSubtree();for(const e of Object.values(this.gridLines))e.disposeSubtree();this.axes={},this.gridLines={}}getOverhang(){const e=t=>{const r=this.axes[t];return r?Math.max(r.getPerpendicularSize()+(r.axisProps.offset??0),0):0};return new Ke(e("top"),e("right"),e("bottom"),e("left")).add(this.view.getOverhang())}getOverhangAndPadding(){return this.getOverhang().add(this.view.getPadding())}}function jR(n){if(n?.fill||n?.fillOpacity||n?.shadowOpacity)return{data:{values:[{}]},mark:{color:n.fill,opacity:n.fillOpacity??(n.fill?1:0),type:"rect",clip:!1,tooltip:null,minHeight:1,minOpacity:0,shadowBlur:n.shadowBlur,shadowColor:n.shadowColor,shadowOffsetX:n.shadowOffsetX,shadowOffsetY:n.shadowOffsetY,shadowOpacity:n.shadowOpacity}}}function WR(n){if(!(!n||!n.stroke||n.strokeWidth===0||n.strokeOpacity===0))return{resolve:{scale:{x:"excluded",y:"excluded"},axis:{x:"excluded",y:"excluded"}},data:{values:[{x:0,y:0,x2:1,y2:0},{x:1,y:0,x2:1,y2:1},{x:1,y:1,x2:0,y2:1},{x:0,y:1,x2:0,y2:0}]},mark:{size:n.strokeWidth??1,color:n.stroke??"lightgray",strokeCap:"square",opacity:n.strokeOpacity??1,type:"rule",clip:!1,tooltip:null},encoding:{x:{field:"x",type:"quantitative",scale:null},y:{field:"y",type:"quantitative",scale:null},x2:{field:"x2"},y2:{field:"y2"}}}}const XR={pan:{baseSpeed:1,maxExtraSpeed:3,pressHalfLifeMs:30,releaseHalfLifeMs:100,holdGrowthHalfLifeMs:800,stopVelocity:.01},zoom:{baseSpeed:3,maxExtraSpeed:15,pressHalfLifeMs:10,releaseHalfLifeMs:100,holdGrowthHalfLifeMs:600,stopVelocity:.01}};class ZR{#e;#t;#n;#r;#s;constructor(e=XR){this.#r=e.pan,this.#s=e.zoom,this.#e={KeyW:!1,KeyA:!1,KeyS:!1,KeyD:!1},this.#t={velocity:0,holdMs:0,direction:0},this.#n={velocity:0,holdMs:0,direction:0}}isNavigationKey(e){return e==="KeyW"||e==="KeyA"||e==="KeyS"||e==="KeyD"}handleKeyDown(e){return this.#o(e,!0)}handleKeyUp(e){return this.#o(e,!1)}reset(){this.#e.KeyW=!1,this.#e.KeyA=!1,this.#e.KeyS=!1,this.#e.KeyD=!1,this.#t.velocity=0,this.#t.holdMs=0,this.#t.direction=0,this.#n.velocity=0,this.#n.holdMs=0,this.#n.direction=0}step(e){if(e<=0)return{panDelta:0,zoomDelta:0,active:this.isActive()};{const t=S1(this.#e.KeyD,this.#e.KeyA),r=S1(this.#e.KeyW,this.#e.KeyS),i=Q1(this.#t,t,e,this.#r),s=Q1(this.#n,r,e,this.#s),o=e/1e3;return{panDelta:i*o,zoomDelta:s*o,active:this.isActive()}}}isActive(){return this.#e.KeyW||this.#e.KeyA||this.#e.KeyS||this.#e.KeyD?!0:this.#t.velocity!==0||this.#n.velocity!==0}#o(e,t){if(this.isNavigationKey(e)){const r=e;return this.#e[r]===t?!1:(this.#e[r]=t,!0)}else return!1}}function S1(n,e){return n===e?0:e?1:-1}function Q1(n,e,t,r){if(e!==0){n.direction!==e&&(n.holdMs=0),n.holdMs+=t;const i=r.maxExtraSpeed*(1-Math.pow(2,-n.holdMs/r.holdGrowthHalfLifeMs)),s=e*(r.baseSpeed+i);n.velocity=D1(n.velocity,s,t,r.pressHalfLifeMs)}else n.holdMs=0,n.velocity=D1(n.velocity,0,t,r.releaseHalfLifeMs),Math.abs(n.velocity)<r.stopVelocity&&(n.velocity=0);return n.direction=e,n.velocity}function D1(n,e,t,r){return e+(n-e)*Math.pow(2,-t/r)}function k1(n){const e={x:new Set,y:new Set};return n.visit(t=>{for(const[r,i]of Object.entries(e)){const s=t.getScaleResolution(r);s&&s.isZoomable()&&i.add(s)}}),e}function Rf(n){const e=k1(n).x;if(e.size===1){const t=e.values().next().value,r=n.getScaleResolution("x");return!r||r!==t?void 0:t}}class $R{#e;#t;#n=.5;#r=new ZR;#s=!1;#o=0;#i=e=>{if(!this.#s)return;const t=Rf(this.#t);if(!t){this.#r.reset(),this.#s=!1,this.#o=0;return}const r=Math.max(0,e-this.#o);this.#o=e;const i=this.#r.step(r);(i.panDelta!==0||i.zoomDelta!==0)&&t.zoom(2**i.zoomDelta,this.#n,i.panDelta)&&(I1(),this.#e.animator.requestRender()),i.active?this.#e.animator.requestTransition(this.#i):(this.#s=!1,this.#o=0)};constructor({context:e,viewRoot:t}){this.#e=e,this.#t=t,this.#a()}handlePointerEvent(e,t){if(e){const r=e.view;if(typeof r.getKeyboardZoomAnchorX=="function"){const i=r.getKeyboardZoomAnchorX(t.point);Number.isFinite(i)&&(this.#n=Math.max(0,Math.min(1,i)))}else{const i=e.coords.normalizePoint(t.point.x,t.point.y);this.#n=i.x}}else return}#a(){const e=this.#e.addKeyboardListener;typeof e=="function"&&(e("keydown",t=>{e6(t)||!this.#r.isNavigationKey(t.code)||!Rf(this.#t)||!this.#r.handleKeyDown(t.code)||(t.preventDefault(),this.#c())}),e("keyup",t=>{!this.#r.isNavigationKey(t.code)||!this.#r.handleKeyUp(t.code)||!Rf(this.#t)||(t.preventDefault(),this.#c())}))}#c(){this.#s||(this.#s=!0,this.#o=performance.now(),this.#e.animator.requestTransition(this.#i))}}function e6(n){return!!(n.altKey||n.ctrlKey||n.metaKey||t6(n.target))}function t6(n){if(!n||typeof n!="object")return!1;const e=n;if(e.isContentEditable)return!0;if(typeof e.nodeName=="string"){const t=e.nodeName.toLowerCase();return t==="input"||t==="textarea"||t==="select"}return!1}const ec=Object.freeze({size:1,color:"#ccc",opacity:1,strokeDash:[4,4],strokeCap:"butt"});class n6{#e;#t;#n;#r=[];#s=[];#o={x:[0,0],y:[0,0]};constructor({direction:e,props:t,context:r,layoutParent:i,dataParent:s,getName:o}){this.#e=e,this.#t=t.includePlotMargin??!0;const a={...t};delete a.includePlotMargin,this.#n=this.#c(a,r,i,s,o)}get view(){return this.#n}update(e,t,r,i,s,o){this.#i(e,t,i,s),this.#a(r,o)}render(e,t,r){this.#n.render(e,t,r)}#i(e,t,r,i){if(this.#s.length=0,t<2)return;const s=this.#e==="vertical"?"column":"row",o=i?3:2;for(let a=1;a<t;a++){const c=r(s,a)-o,u=e[c],f=u?u.location:0,h=u?u.size:0;this.#s.push(f+h/2)}}#a(e,t){const r=this.#t?0:t.left,i=this.#t?e.width:e.width-t.right,s=this.#t?0:t.bottom,o=this.#t?e.height:e.height-t.top;this.#r.length=this.#s.length;for(let u=0;u<this.#s.length;u++){const f=this.#s[u],h=this.#r[u]??{};if(this.#e==="vertical")h.x=f,h.x2=f,h.y=s,h.y2=o;else{const A=e.height-f;h.x=r,h.x2=i,h.y=A,h.y2=A}this.#r[u]=h}const a=this.#n.flowHandle?.dataSource;if(!a)return;a.updateDynamicData(this.#r),this.#o.x[1]=e.width,this.#o.y[1]=e.height;const l=this.#n.getScaleResolution("x")?.getScale();l&&l.domain(this.#o.x);const c=this.#n.getScaleResolution("y")?.getScale();c&&c.domain(this.#o.y)}#c(e,t,r,i,s){const o=i6(e),a=this.#e==="horizontal"?s("separatorHorizontal"):s("separatorVertical"),l=new tt(o,t,r,i,a,{blockEncodingInheritance:!0});return an(l,{skipSubtree:!0}),l}}function r6(n){if(!n)return null;const e=n===!0?{...ec}:{...ec,...n};return e.strokeDash===ec.strokeDash&&(e.strokeDash=ec.strokeDash.slice()),e}function i6(n){return{domainInert:!0,data:{values:[]},resolve:{scale:{x:"excluded",y:"excluded"},axis:{x:"excluded",y:"excluded"}},mark:{...n,type:"rule",clip:n.clip??!1,tooltip:null},encoding:{x:{field:"x",type:"quantitative",scale:{nice:!1,zero:!1}},y:{field:"y",type:"quantitative",scale:{nice:!1,zero:!1}},x2:{field:"x2"},y2:{field:"y2"}}}}class s6 extends js{#e=1/0;#t=10;#n=[];#r={};#s=0;#o={};#i=null;constructor(e,t,r,i,s,o,a){super(e,t,r,i,s,a),this.spec=e,this.#t=e.spacing??10,this.#e=o,this.#n=[],this.wrappingFacet=!1;const l=r6(e.separator);if(l)for(const c of a6(e))this.#o[c]=new n6({direction:c,props:l,context:this.context,layoutParent:this,dataParent:this,getName:u=>this.getNextAutoName(u)});this.layoutParent||(this.#i=new $R({context:this.context,viewRoot:this}))}appendChild(e){this.appendChildView(e)}appendChildView(e){return this.insertChildViewAt(e,this.#n.length)}insertChildViewAt(e,t){e.layoutParent??=this;const r=new qR(e,this,this.#s);return this.#s++,this.#n.splice(t,0,r),this.invalidateSizeCache(),r}removeChildView(e){const t=this.#n.findIndex(r=>r.view===e);if(t<0)throw new Error("Not my child view!");this.removeChildAt(t)}removeChildAt(e){const t=this.#n[e];if(!t)throw new Error("Child index out of range!");this.#l(t),this.#n.splice(e,1),this.invalidateSizeCache()}get#a(){return this.#n.filter(e=>e.view.isConfiguredVisible())}get#c(){return new A1(this.#a.length,this.#e??1/0)}setChildren(e){for(const t of this.#n)this.#l(t);this.#n=[];for(const t of e)this.appendChild(t);this.invalidateSizeCache()}#l(e){e.disposeAxisViews();for(const t of e.getChildren())t.disposeSubtree()}get children(){return this.#n.map(e=>e.view)}get childCount(){return this.#n.length}async createAxes(){await this.syncSharedAxes(),await Promise.all(this.#n.map(e=>e.createAxes()))}async syncSharedAxes(){for(const t of Object.values(this.#r))t.disposeSubtree();this.#r={};const e=[];for(const t of er){const r=this.resolutions.axis[t];if(!r)continue;const i=r.getAxisProps();if(!i)continue;const s={title:r.getTitle(),orient:$a[t][0],...i},o=new m1(s,r.scaleResolution.type,this.context,this,this);e.push(o.initializeChildren()),this.#r[t]=o}await Promise.all(e)}*[Symbol.iterator](){for(const e of this.#n)yield*e.getChildren();for(const e of Object.values(this.#o))yield e.view;for(const e of Object.values(this.#r))yield e}#u(e){const t=e=="column"?"width":"height",r=(i,s)=>i.map(o=>{const l=this.#a[o].getOverhangAndPadding();return e=="column"?s?l.right:l.left:s?l.bottom:l.top}).reduce((o,a)=>Math.max(o,a),0);return this._cache(`size/directionSizes/${e}`,()=>this.#c[e=="column"?"colIndices":"rowIndices"].map(i=>({axisBefore:r(i,0),axisAfter:r(i,1),view:Dk(i.map(s=>this.#a[s].view.getViewportSize()[t]))})))}#f(e){const t=this.#u(e),r=[];r.push(Us);for(const[i,s]of t.entries())i>0&&r.push({px:this.#t,grow:0}),(i==0||this.wrappingFacet)&&r.push(Us),r.push({px:s.axisBefore,grow:0}),r.push(s.view),r.push({px:s.axisAfter,grow:0}),(i==t.length-1||this.wrappingFacet)&&r.push(Us);return r}#A(e){let t=0,r=0;const i=e=="row"?this.spec.height:this.spec.width;if(i||i===0)return Wp(i);const s=this.#u(e);for(const[o,a]of s.entries())o>0&&(r+=this.#t),(o==0||this.wrappingFacet)&&(r+=0),r+=a.axisBefore,r+=a.view.px??0,t+=a.view.grow??0,r+=a.axisAfter,(o==s.length-1||this.wrappingFacet)&&(r+=0);return{px:r,grow:t}}#h(e,t){return e=="row"&&this.wrappingFacet?1+6*t+2:2+4*t+1}getOverhang(){return this.#d().union(this.#g())}#d(){const e=this.#u("column"),t=this.#u("row");return!e.length||!t.length?Ke.zero():new Ke(t.at(0).axisBefore,e.at(-1).axisAfter,t.at(-1).axisAfter,e.at(0).axisBefore)}#g(){const e=t=>{const r=kf[t],i=this.#r[r];return i?.axisProps.orient!==t?0:Math.max(i.getPerpendicularSize()+(i.axisProps.offset??0),0)};return new Ke(e("top"),e("right"),e("bottom"),e("left"))}getSize(){return this._cache("size",()=>new Nn(this.#A("column"),this.#A("row")).addPadding(this.#g()))}render(e,t,r={}){if(super.render(e,t,r),!this.isConfiguredVisible())return;this.layoutParent||(t=t.shrink(this.getPadding())),t=t.shrink(this.#g()),e.pushView(this,t);const i=e.getDevicePixelRatio(),s={devicePixelRatio:i},o=qp(this.#f("column"),t.width,s),a=qp(this.#f("row"),t.height,s),l=new A1(this.#a.length,this.#e??1/0),c=d=>Math.round(d*i)/i,u=[];for(const[d,g]of this.#a.entries()){const{view:p,axes:m,gridLines:y,background:C,backgroundStroke:w,title:b,selectionRect:x}=g,[E,S]=l.getCellCoords(d),Q=o[this.#h("column",E)],v=a[this.#h("row",S)],F=p.getViewportSize(),R=p.getSize(),N=p.getOverhang(),O=Q.location-N.left,H=v.location-N.top,G=(U,q)=>(U[q].grow?(q=="width"?Q:v).size:U[q].px)+N[q],_=G(F,"width"),te=G(F,"height"),oe=G(R,"width"),ne=G(R,"height"),Ge=g.scrollbars.horizontal,Jt=g.scrollbars.vertical,ho=Ge?()=>c(Ge.viewportOffset):()=>0,Ri=Jt?()=>c(Jt.viewportOffset):()=>0,fn=new ve(()=>t.x+O,()=>t.y+H,()=>_,()=>te),Sr=p.isScrollable(),go=Sr?new ve(()=>t.x+O-ho(),()=>t.y+H-Ri(),()=>oe,()=>ne):fn;g.coords=fn;const Mi=r.clipRect?fn.intersect(r.clipRect):fn;u.push({col:E,row:S,view:p,axes:m,gridLines:y,background:C,backgroundStroke:w,title:b,selectionRect:x,viewportCoords:fn,viewCoords:go,clippedChildCoords:Mi,viewWidth:oe,viewHeight:ne,scrollable:Sr,gridChild:g})}for(const d of u)d.background?.render(e,d.clippedChildCoords,{...r,clipRect:void 0});const f=this.#d(),h=this.#o.vertical;h&&(h.update(o,l.nCols,t,(d,g)=>this.#h(d,g),this.wrappingFacet,f),h.render(e,t,r));const A=this.#o.horizontal;A&&(A.update(a,l.nRows,t,(d,g)=>this.#h(d,g),this.wrappingFacet,f),A.render(e,t,r));for(const d of u){const{view:g,axes:p,gridLines:m,backgroundStroke:y,title:C,selectionRect:w,viewportCoords:b,viewCoords:x,clippedChildCoords:E,viewWidth:S,viewHeight:Q,scrollable:v,gridChild:F,col:R,row:N}=d;for(const H of Object.values(m))H.render(e,b,r);const O=o6(g)||v;O&&g.render(e,x,{...r,clipRect:E}),y?.render(e,E,{...r,clipRect:void 0});for(const[H,G]of Object.entries(p)){const _=H=="left"||H=="right"?"vertical":"horizontal",te=F.scrollbars[_],oe=te?b.modify(_=="vertical"?{y:()=>x.y,height:Q}:{x:()=>x.x,width:S}):b,ne=F1(oe,H,G);let Ge=r.clipRect;te&&(Ge=ne.intersect(Ge).intersect(te?b.modify(_=="vertical"?{x:-1e5,width:2e5}:{y:-1e5,height:2e5}):void 0)),G.render(e,ne,{...r,clipRect:Ge})}for(const H of Object.values(this.#r)){const _=H.axisProps.orient;(_=="left"&&R==0||_=="right"&&R==l.nCols-1||_=="top"&&N==0||_=="bottom"&&N==l.nRows-1)&&H.render(e,F1(b.shrink(F.view.getOverhang()),_,H),r)}O||g.render(e,x,r),w?.render(e,x,r);for(const H of Object.values(F.scrollbars))H.updateScrollbar(b,x),H.render(e,t,r);C?.render(e,b,r)}e.popView(this)}propagateInteractionEvent(e){if(this.handleInteractionEvent(void 0,e,!0),e.stopped)return;const t=this.#a.find(i=>i.coords.containsPoint(e.point.x,e.point.y));this.#i?.handlePointerEvent(t,e);for(const i of Object.values(t?.scrollbars??{}))if(i.coords.containsPoint(e.point.x,e.point.y)&&(i.propagateInteractionEvent(e),e.stopped))return;const r=t?.view;if(r){if(r.propagateInteractionEvent(e),e.stopped)return;(r instanceof tt||r instanceof wr)&&NR(e,t.coords,i=>this.#p(t.coords,t.view,i),this.context.getCurrentHover(),this.context.animator)}e.stopped||this.handleInteractionEvent(void 0,e,!1)}#p(e,t,r){for(const[i,s]of Object.entries(k1(t))){if(s.size<=0)continue;const o=e.normalizePoint(r.x,r.y),a=e.normalizePoint(r.x+r.xDelta,r.y+r.yDelta),l={x:a.x-o.x,y:a.y-o.y};for(const c of s)c.zoom(2**r.zDelta,i=="y"?1-o[i]:o[i],i=="x"?l.x:-l.y)}this.context.animator.requestRender()}getDefaultResolution(e,t){return"independent"}}function o6(n){let e=!0;return n.visit(t=>{t instanceof tt&&(e&&=t.mark.properties.clip===!0)}),e}function a6(n){return"vconcat"in n?["horizontal"]:"hconcat"in n?["vertical"]:["horizontal","vertical"]}function F1(n,e,t){const r=t.axisProps,i=t.getPerpendicularSize();if(e=="bottom")return n.translate(0,n.height+r.offset).modify({height:i});if(e=="top")return n.translate(0,-i-r.offset).modify({height:i});if(e=="left")return n.translate(-i-r.offset,0).modify({width:i});if(e=="right")return n.translate(n.width+r.offset,0).modify({width:i})}class Mf extends s6{constructor(e,t,r,i,s){super(e,t,r,i,s,Za(e)?e.columns:Ws(e)?1:1/0),this.spec=e}async initializeChildren(){const e=this.spec,t=Za(e)?e.concat:Ws(e)?e.vconcat:e.hconcat;this.setChildren(await Promise.all(t.map(r=>this.context.createOrImportView(r,this,this,this.getNextAutoName("grid"))))),await this.createAxes()}async addChildSpec(e,t){return this.#t().addChildSpec(e,t)}async removeChildAt(e){await this.#t().removeChildAt(e)}getDefaultResolution(e,t){return t=="axis"?"independent":Ws(this.spec)&&e==="x"||f1(this.spec)&&e==="y"?"shared":"independent"}#e(){const e=this.spec;let t;return Za(e)?t=e.concat:Ws(e)?t=e.vconcat:t=e.hconcat,{specs:t,insertAt:(r,i)=>{t.splice(r,0,i)},removeAt:r=>{t.splice(r,1)}}}#t(){return new o1(this,{getChildSpecs:this.#e.bind(this),insertView:(e,t)=>this.insertChildViewAt(e,t),removeView:e=>super.removeChildAt(e),prepareView:async(e,t,r)=>{await r.createAxes(),await this.syncSharedAxes()},afterRemove:async()=>{await this.syncSharedAxes()},defaultName:()=>this.getNextAutoName("grid")})}}const R1="viewRoot";class c6{#e=new Map;constructor(e={}){this.options={allowImport:!0,wrapRoot:!0,...e};const t=r=>(i,s,o,a,l)=>new r(i,s,o,a,l);this.addViewType(vf,t(wr)),this.addViewType(xf,((r,i,s,o,a)=>new wr(dR(r),i,s,o,a))),this.addViewType(Bf,t(tt)),this.addViewType(Ws,t(Mf)),this.addViewType(f1,t(Mf)),this.addViewType(Za,t(Mf))}addViewType(e,t){this.#e.set(e,t)}createView(e,t,r,i,s){for(const[o,a]of this.#e)if(o(e))return a(e,t,r,i,s);throw u6(e)?new Error("SampleView is not supported by the @genome-spy/core package. Use @genome-spy/app instead!"):new Error("Invalid spec, cannot figure out the view type from the properties: "+JSON.stringify([...Object.keys(e)]))}isViewSpec(e){const t=[...this.#e.keys()].filter(r=>r(e));if(t.length>1)throw new Error("Ambiguous spec. Cannot create a view!");return t.length==1}async createOrImportView(e,t,r,i,s,o){let a;const l=u1(e)?e.name??null:void 0;if(u1(e)){let h;if("url"in e.import)if(this.options.allowImport)h=await c8(e,i.getBaseUrl(),t);else throw new Ve("Importing views is not allowed!",r);else if("template"in e.import)h=M1(e.import.template,i);else throw new Error("Invalid import: "+JSON.stringify(e));o?.(h),l6(h,e),a=h}else a=e;const c=h=>h?.params?.some(A=>bl(A)&&qo(A.select).type=="interval");let u=!1;!i&&this.options.wrapRoot&&(Bf(a)||vf(a)||xf(a)||c(a))&&s===R1&&(a={name:"implicitRoot",vconcat:[a]},u=!0);const f=this.createView(a,t,r,i,s);return l!==void 0&&mR(f,l),u&&an(f),f instanceof js&&await f.initializeChildren(),f.registerStepSizeInvalidation(),f}}function M1(n,e){const t=e.spec?.templates?.[n];if(t)return structuredClone(t);if(e.dataParent)return M1(n,e.dataParent);throw new Error(`Cannot find template "${n}" in current view or its ancestors!`)}function l6(n,e){e.name!=null&&(n.name=e.name),e.visible!=null&&(n.visible=e.visible);const t=Ce(e.params)?e.params:ze(e.params)?Object.entries(e.params).map(([r,i])=>({name:r,value:i})):[];if(t.length){n.params??=[];for(const r of t){const i=n.params.findIndex(s=>s.name==r.name);i>=0&&(n.params[i]=r)}for(const r of t)n.params.some(i=>i.name==r.name)||n.params.push(r)}}function u6(n){return"samples"in n&&ze(n.samples)&&"spec"in n&&ze(n.spec)}class f6{#e;constructor(e,t){this.point=e,this.uiEvent=t,this.stopped=!1,this.target=void 0}stopPropagation(){this.stopped=!0}get type(){return this.uiEvent.type}get proxiedMouseEvent(){return this.#e||(this.#e=A6(this.mouseEvent)),this.#e}get mouseEvent(){if(this.uiEvent instanceof MouseEvent)return this.uiEvent;throw new Error("Not a MouseEvent!")}}function A6(n){const e=r=>r===null||typeof r!="object"&&typeof r!="function",t={get(r,i,s){const o=Reflect.get(r,i,r);if(!e(o))throw new Error(`Access to non-primitive property "${String(i)}" is not allowed.`);return o},getPrototypeOf(){return null},ownKeys(r){return Reflect.ownKeys(r).filter(s=>e(r[s])).map(s=>typeof s=="symbol"?s:String(s))},getOwnPropertyDescriptor(r,i){const s=Reflect.getOwnPropertyDescriptor(r,i);if(s&&!("get"in s||"set"in s)&&e(s.value))return{value:s.value,writable:!!s.writable,enumerable:!!s.enumerable,configurable:!!s.configurable}},has(r,i){return i in r?e(r[i]):!1}};return new Proxy(n,t)}class h6{constructor(e,t){this.animator=e,this.disabled=!!t,this.maxDistance=500,this.callback=null,this.targetValue=0,this.lastValue=0,this.smoother=Ef(e,r=>{const i=r.x-this.lastValue;this.lastValue=r.x,this.callback?.(i)},40,.1,{x:0})}cancel(){this.lastValue!==this.targetValue&&(this.targetValue=zA([this.lastValue,this.targetValue],.3),this.smoother({x:this.targetValue}))}setMomentum(e,t){if(this.disabled){t(e);return}this.callback=t;const r=jr(this.targetValue+e-this.lastValue,-this.maxDistance,this.maxDistance);this.targetValue=this.lastValue+r,this.smoother({x:this.targetValue})}}function d6(n){const e={},t=["string","number","boolean"],r=["wheelDelta","wheelDeltaX","wheelDeltaY"];for(const i in n){const s=i;!r.includes(i)&&t.includes(typeof n[s])&&(e[s]=n[s])}return e}class g6{#e;#t;#n;#r;#s;#o;#i;#a;#c;#l;#u;#f;constructor({viewRoot:e,glHelper:t,tooltip:r,animator:i,emitEvent:s,tooltipHandlers:o,renderPickingFramebuffer:a,getDevicePixelRatio:l}){this.#e=e,this.#t=t,this.#n=r,this.#r=i,this.#s=s,this.#o=o,this.#i=a,this.#a=l,this.#c=void 0,this.#l=new h6(this.#r),this.#u=void 0,this.#f=!1}getCurrentHover(){return this.#c}registerMouseEvents(){const e=this.#t.canvas;let t=performance.now(),r=!1;const i=s=>{const o=performance.now(),a=o-t<200;if(s instanceof MouseEvent){const l=e.getBoundingClientRect(),c=new ct(s.clientX-l.left-e.clientLeft,s.clientY-l.top-e.clientTop);s.type=="mousemove"&&!a&&(this.#n.handleMouseMove(s),this.#f=!1,s.buttons==0&&!E1()&&(this.#i(),this.#A(c.x,c.y)));const u=f=>{this.#e.propagateInteractionEvent(new f6(c,f)),this.#f||this.#n.clear()};if(s.type!="wheel"&&this.#l.cancel(),(s.type=="mousedown"||s.type=="mouseup")&&!E1())this.#i();else if(s.type=="wheel"){t=o,this.#f=!1;const f=s;if(Math.abs(f.deltaX)>Math.abs(f.deltaY))this.#c=null,this.#l.cancel();else{const h=d6(f);this.#l.setMomentum(f.deltaY*(f.deltaMode?80:1),A=>{const d=new WheelEvent("wheel",{...h,deltaMode:0,deltaX:0,deltaY:A});u(d)}),f.preventDefault();return}}if(s.type=="click"){if(r)return;const f=this.#c?{type:s.type,viewPath:this.#c.mark.unitView.getLayoutAncestors().map(h=>h.name).reverse(),datum:this.#c.datum}:{type:s.type,viewPath:null,datum:null};this.#s("click",f)}(s.type!="click"||this.#u?.subtract(ct.fromMouseEvent(s)).length<3)&&u(s)}};["mousedown","mouseup","wheel","click","mousemove","gesturechange","contextmenu","dblclick"].forEach(s=>e.addEventListener(s,i)),e.addEventListener("mousedown",s=>{this.#u=ct.fromMouseEvent(s),this.#n.sticky?(this.#n.sticky=!1,this.#n.clear(),r=!0):r=!1;const o=()=>{document.addEventListener("mouseup",()=>this.#n.popEnabledState(),{once:!0}),this.#n.pushEnabledState(!1)};if(s.button==2||s.shiftKey||s.ctrlKey||s.metaKey)o();else if(this.#n.visible){const a=setTimeout(()=>{r=!0,this.#n.sticky=!0},400),l=()=>clearTimeout(a);document.addEventListener("mouseup",l,{once:!0}),document.addEventListener("mousemove",l,{once:!0})}}),e.addEventListener("dragstart",s=>s.stopPropagation()),e.addEventListener("mouseout",()=>{this.#n.clear(),this.#c=null})}#A(e,t){const r=this.#a(),i=mQ(this.#t.gl,this.#t._pickingBufferInfo,e*r,t*r),s=i[0]|i[1]<<8|i[2]<<16|i[3]<<24;if(s==0){this.#c=null;return}if(s!==this.#c?.uniqueId&&(this.#c=null),this.#c||this.#e.visit(o=>{if(o instanceof tt){if(o.mark.isPickingParticipant()&&[...o.facetCoords.values()].some(a=>a.containsPoint(e,t))){const a=o.getCollector().findDatumByUniqueId(s);a&&(this.#c={mark:o.mark,datum:a,uniqueId:s})}if(this.#c)return oi}}),this.#c){const o=this.#c.mark;this.updateTooltip(this.#c.datum,async a=>{if(!o.isPickingParticipant())return;const l=o.properties.tooltip;if(l!==null){const c=l?.handler??"default",u=this.#o[c];if(!u)throw new Error("No such tooltip handler: "+c);const f=Xm(a,o,l?.params);return u(a,o,l?.params,f)}})}}updateTooltip(e,t){if(!this.#f||!e)this.#n.updateWithDatum(e,t),this.#f=!0;else throw new Error("Tooltip has already been updated! Duplicate event handler?")}}class N1{constructor(e){this.globalOptions=e}pushView(e,t){}popView(e){}renderMark(e,t){}getDevicePixelRatio(){return 1}}class Nf extends N1{#e=[0,0,0,0];#t;#n=[];#r;#s;#o=new Set;#i=void 0;#a=1;#c={width:0,height:0};constructor(e,t){if(super(e),this.#s=t.webGLHelper,this.#r=t.framebufferInfo,this.#a=t.devicePixelRatio,this.#c=t.canvasSize,t.clearColor){const r=kn(t.clearColor).rgb();this.#e=[r.r/255,r.g/255,r.b/255,r.opacity]}}getDevicePixelRatio(){return this.#a}pushView(e,t){this.#o.add(e),this.#i=t}renderMark(e,t){if(this.globalOptions.picking&&!e.isPickingParticipant())return;const r=e.render(t);r&&this.#n.push({mark:e,callback:r,coords:this.#i,clipRect:t.clipRect})}render(){if(this.#t||this.#l(),this.#t.length==0)return;const e=this.#s.gl,t=this.#r;t?(e.bindFramebuffer(e.FRAMEBUFFER,t.framebuffer),e.viewport(0,0,t.width,t.height)):e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),e.disable(e.SCISSOR_TEST),e.clearColor(...this.#e),e.clear(e.COLOR_BUFFER_BIT);for(const r of this.#o)r.onBeforeRender();for(const r of this.#t)r();this.#r&&e.bindFramebuffer(e.FRAMEBUFFER,null)}#l(){this.#t=[];let e=!0,t=!0;const r=o=>()=>{e&&o()},i=o=>()=>{e&&t&&o()},s=Qo(this.#n.reverse(),o=>o.mark);for(const[o,a]of[...s.entries()].reverse()){if(!o.isReady())continue;this.#t.push(()=>{e=o.unitView.getEffectiveOpacity()>0}),this.#t.push(...o.prepareRender(this.globalOptions).map(c=>r(c)));let l;for(const c of a){const u=c.coords;u.equals(l)||this.#t.push(r(()=>{t=o.setViewport(this.#c,this.#a,u,c.clipRect)})),this.#t.push(i(c.callback)),l=c.coords}}}}class p6 extends N1{constructor(...e){super({}),this.contexts=e}pushView(e,t){for(const r of this.contexts)r.pushView(e,t)}popView(e){for(const t of this.contexts)t.popView(e)}renderMark(e,t){for(const r of this.contexts)r.renderMark(e,t)}}class m6{#e;#t;#n;#r;#s;#o;#i;#a;constructor({viewRoot:e,glHelper:t,getBackground:r,broadcast:i,onLayoutComputed:s}){this.#e=e,this.#t=t,this.#n=r,this.#r=i,this.#s=s,this.#o=void 0,this.#i=void 0,this.#a=!1}computeLayout(){const e=this.#e;if(!e)return;this.#r("layout");const t=this.#t.getLogicalCanvasSize();if(isNaN(t.width)||isNaN(t.height)){console.log(`NaN in canvas size: ${t.width}x${t.height}. Skipping computeLayout().`);return}const r={webGLHelper:this.#t,canvasSize:t,devicePixelRatio:window.devicePixelRatio??1};this.#o=new Nf({picking:!1},{...r,clearColor:this.#n()}),this.#i=new Nf({picking:!0},{...r,framebufferInfo:this.#t._pickingBufferInfo}),e.render(new p6(this.#o,this.#i),ve.create(0,0,t.width,t.height)),this.#s(),this.#r("layoutComputed")}renderAll(){this.#o?.render(),this.#a=!0}renderPickingFramebuffer(){this.#a&&(this.#i.render(),this.#a=!1)}}function w6(n){const e=o=>{throw new Error("ViewContext."+o+" is not configured.")},t={dataFlow:n.dataFlow??e("dataFlow"),glHelper:n.glHelper??e("glHelper"),animator:n.animator??e("animator"),genomeStore:n.genomeStore,fontManager:n.fontManager??e("fontManager"),createOrImportView:async function(o,a,l,c,u){const f=n.createOrImportViewWithContext;return f?f(t,o,a,l,c,u):Promise.reject(new Error("ViewContext.createOrImportView is not configured."))}},r=["requestLayoutReflow","updateTooltip","getNamedDataFromProvider","getCurrentHover","addKeyboardListener","addBroadcastListener","removeBroadcastListener","highlightView","isViewConfiguredVisible","isViewSpec"],i=n,s=t;for(const o of r)s[o]=i[o]??(()=>e(o));return t}function y6({glHelper:n,viewRoot:e,logicalWidth:t,logicalHeight:r,devicePixelRatio:i,clearColor:s="white"}){t??=n.getLogicalCanvasSize().width,r??=n.getLogicalCanvasSize().height,i??=window.devicePixelRatio??1;const o=n.gl,a=Math.floor(t*i),l=Math.floor(r*i),c=L0(o,[{format:o.RGBA,type:o.UNSIGNED_BYTE,minMag:o.LINEAR,wrap:o.CLAMP_TO_EDGE}],a,l),u=new Nf({picking:!1},{webGLHelper:n,canvasSize:{width:t,height:r},devicePixelRatio:i,clearColor:s,framebufferInfo:c});return e.render(u,ve.create(0,0,t,r)),u.render(),wQ(o,c,"image/png")}ul("fasta",qF);class T1{#e=[];#t;#n;#r;#s;#o;#i;#a=new Qb;#c=new td;#l=new td;constructor(e,t,r={}){this.container=e,this.options=r,r.inputBindingContainer??="default",this.spec=t,this.viewFactory=new c6,this.namedDataProviders=[],this.animator=new zF(()=>this.renderAll()),this.genomeStore=void 0,this.viewVisibilityPredicate=i=>i.isVisibleInSpec(),this.tooltipHandlers={default:AR,refseqgene:WF,...r.tooltipHandlers??{}},this.viewRoot=void 0,this.#s=new Yb(e,r),this.dpr=window.devicePixelRatio}get#u(){return this.container.querySelector(".canvas-wrapper")}#f(){this.#s.initialize(this.viewRoot)}registerNamedDataProvider(e){this.namedDataProviders.unshift(e)}getNamedDataFromProvider(e){for(const t of this.namedDataProviders){const r=t(e);if(r)return r}}updateNamedData(e,t){const r=this.viewRoot.context.dataFlow.findNamedDataSource(e);if(!r)throw new Error("No such named data source: "+e);r.dataSource.updateDynamicData(t),this.animator.requestRender()}addEventListener(e,t){this.#c.add(e,t)}removeEventListener(e,t){this.#c.remove(e,t)}broadcast(e,t){const r={type:e,payload:t};this.viewRoot.visit(i=>i.handleBroadcast(r)),this.#l.emit(e,r)}#A(){const e=this.viewRoot.paramRuntime.allocateSetter("devicePixelRatio",this.dpr),t=()=>{this.#i.invalidateSize(),this.dpr=window.devicePixelRatio,e(this.dpr),this.computeLayout(),this.renderAll()};if(this.viewRoot.getSize().isGrowing()){const s=new ResizeObserver(t);s.observe(this.container),this.#e.push(()=>s.disconnect())}let r=null;const i=()=>{r!=null&&(r(),t());const s=matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`);s.addEventListener("change",i),r=()=>{s.removeEventListener("change",i)}};i(),r&&this.#e.push(r)}#h(){const{canvasWrapper:e,loadingIndicatorsElement:t,tooltip:r}=Cb(this.container);this.#i=new dQ(e,()=>this.viewRoot?l8(this.viewRoot):{width:void 0,height:void 0},{powerPreference:this.options.powerPreference??"default"}),e.appendChild(t),this.tooltip=r,this.#r=new ed,this.#n=new vb(t,this.#r)}destroy(){const e=this.#u;for(this.container.classList.remove("genome-spy"),e.classList.remove("loading"),this.#a.removeAll(),this.#e.forEach(t=>t()),this.#i.finalize(),this.#s.remove(),this.#n.destroy();this.container.firstChild;)this.container.firstChild.remove()}async#d(){await this.#g();const e=this.#p();await this.#y(e),await PF(this.viewRoot,e.dataFlow,e.fontManager,t=>this.broadcast("dataFlowBuilt",t)),this.#C(e)}async#g(){this.spec.genome&&(this.genomeStore=new HF(this.spec.baseUrl),await this.genomeStore.initialize(this.spec.genome))}#p(){const e=new Gm;return e.loadingStatusRegistry=this.#r,w6({dataFlow:e,glHelper:this.#i,animator:this.animator,genomeStore:this.genomeStore,fontManager:new YF(this.#i),updateTooltip:this.updateTooltip.bind(this),getNamedDataFromProvider:this.getNamedDataFromProvider.bind(this),getCurrentHover:()=>this.#o.getCurrentHover(),addKeyboardListener:(t,r)=>{this.#a.add(t,i=>{this.#w(t,i)&&r(i)})},addBroadcastListener:(t,r)=>this.#l.add(t,r),removeBroadcastListener:(t,r)=>this.#l.remove(t,r),isViewConfiguredVisible:this.viewVisibilityPredicate,isViewSpec:t=>this.viewFactory.isViewSpec(t),createOrImportViewWithContext:(t,r,i,s,o,a)=>this.viewFactory.createOrImportView(r,t,i,s,o,a),highlightView:Sb(this.container)})}#w(e,t){if(e==="keyup")return!0;const r=document.activeElement;return r&&r!==document.body?this.container.contains(r):this.container.matches(":hover")}async#y(e){const t=this.spec;t.datasets&&this.registerNamedDataProvider(r=>t.datasets[r]),this.viewRoot=await e.createOrImportView(t,null,null,R1),this.#r.set(this.viewRoot,"loading"),this.#u.style.flexGrow=this.viewRoot.getSize().height.grow>0?"1":"0",this.#f(),hR(this.viewRoot),s1(this.viewRoot),this.#m(),this.#i.invalidateSize(),this.#t=new m6({viewRoot:this.viewRoot,glHelper:this.#i,getBackground:()=>this.spec.background,broadcast:this.broadcast.bind(this),onLayoutComputed:()=>this.#n.updateLayout()}),e.requestLayoutReflow=this.computeLayout.bind(this),this.#A()}#m(){const e=wR(this.viewRoot);if(e.length)for(const t of e)console.warn("Selector constraints warning:",t.message)}#C(e){e.requestLayoutReflow=this.computeLayout.bind(this),this.viewRoot.visit(t=>Ms(t,"size")),this.#i.invalidateSize(),this.#o=new g6({viewRoot:this.viewRoot,glHelper:this.#i,tooltip:this.tooltip,animator:this.animator,emitEvent:this.#c.emit.bind(this.#c),tooltipHandlers:this.tooltipHandlers,renderPickingFramebuffer:this.renderPickingFramebuffer.bind(this),getDevicePixelRatio:()=>this.dpr})}async launch(){let e=!1;try{return this.#h(),await this.#d(),this.registerMouseEvents(),this.computeLayout(),this.animator.requestRender(),e=!0,!0}catch(t){const r=`${t.view?`At "${t.view.getPathString()}": `:""}${t.toString()}`;return console.error(t.stack),this.options.onError?.(t,this.container)||Ib(this.container,r),this.viewRoot&&this.#r.set(this.viewRoot,"error",r),!1}finally{this.#u.classList.remove("loading"),e&&this.viewRoot&&this.#r.set(this.viewRoot,"complete")}}async initializeVisibleViewData(){this.viewRoot&&(await LF(this.viewRoot,this.viewRoot.context.dataFlow,this.viewRoot.context.fontManager),this.viewRoot._invalidateCacheByPrefix("size","progeny"),this.#i.invalidateSize(),this.computeLayout(),this.animator.requestRender())}registerMouseEvents(){this.#o.registerMouseEvents()}updateTooltip(e,t){this.#o.updateTooltip(e,t)}exportCanvas(e,t,r,i="white"){const s=y6({glHelper:this.#i,viewRoot:this.viewRoot,logicalWidth:e,logicalHeight:t,devicePixelRatio:r,clearColor:i});return this.computeLayout(),this.renderAll(),s}getLogicalCanvasSize(){return this.#i.getLogicalCanvasSize()}computeLayout(){this.#t.computeLayout()}renderAll(){this.#t.renderAll()}renderPickingFramebuffer(){this.#t.renderPickingFramebuffer()}getSearchableViews(){const e=[];return this.viewRoot.visit(t=>{t instanceof tt&&t.getSearchAccessors().length>0&&e.push(t)}),e}getNamedScaleResolutions(){const e=new Map;return this.viewRoot.visit(t=>{for(const r of Object.values(t.resolutions.scale))r.name&&e.set(r.name,r)}),e}}const C6="data:image/svg+xml,%3csvg%20viewBox='0%200%2032%2032'%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20clip-rule='evenodd'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='1.5'%3e%3cpath%20d='M4.7%2021.2s.4%202.3%201.3%203.6C7%2026%209.8%2028%209.8%2028s3.4-2.6%206.4-8.5c0%200%201%20.1%201.9-.4.9-.6.8-.4%201-1.2%200%200%202.9.5%206.6%200%202.1-.3%204.3-1%206.2-2.5%200%200-1.1-1.7-2.5-5.1-.5-1.3-2-1.8-4.6-4.6l-8.2%208.6-11.9%206.9z'%20fill-opacity='.1'/%3e%3cpath%20d='M12.7%2014.8s-4-1.8-12%202.7c0%200%201%203.7%202.5%205.3%201.4%201.5%202.3%203.6%204.6%204.6%200%200%204.7-3%206.9-9.2l3-2s4.7%202.8%2012.6-1.6c0%200-.6-3.3-3-6-2.6-3-3.8-4.7-3.8-4.7s-4.1%202.3-7.5%209.3l-3.3%201.6z'%20fill='%237fbbdd'/%3e%3cpath%20d='M12.4%2015.5c-.7-.5-2.4-.8-4.4-.4-2%20.4-4%201.3-4.8%201.8-.5.3-1.2%201-1.2%201.4%200%20.7.3%201.8.8%202.4.3.3.7.5%201.4.6.8%200%202.5-1.4%203.5-2%201-.6%201.6-.8%202.7-1.2l-2.9%202.4c-1.3%201.2-2.2%201.5-2.4%202.3%200%20.5%200%201.4.5%201.8.4.5.6.8%201.6.8.6%200%201%200%202.6-1.5.9-.9%202.3-3%202.7-3.7.6-1.1%201-2.2.7-3-.2-1-.4-1.4-.8-1.7zM17.4%2014.2c-.3-.5-.9-1.2-.2-2.5l1.9-3c.5-.8%202-2.3%202.6-2.6.6-.4%201.5-.6%202-.2.6.4%201%201%201.3%201.5.4.6.7%201.3.2%202-.7%201-1.6.9-2.8%201.7-1.2.8-1.9%201.2-2.5%201.9l3.8-1.8c1.3-.6%202.7-1.1%203.4-.7.8.5.8.7%201%201.4.3%201-.2%201.9-.8%202.4-.5.6-1.5.9-2.6%201.2-1.4.4-4.5%201-5.8.5-1.3-.5-1.3-1.4-1.5-1.8z'%20fill='%23fff'/%3e%3cpath%20d='M12.7%2014.8s-4-1.8-12%202.7c0%200%201%203.7%202.5%205.3%201.4%201.5%202.3%203.6%204.6%204.6%200%200%204.7-3%206.9-9.2l3-2s4.7%202.8%2012.6-1.6c0%200-.6-3.3-3-6-2.6-3-3.8-4.7-3.8-4.7s-4.1%202.3-7.5%209.3l-3.3%201.6z'%20fill='none'%20stroke='%23000'%20stroke-width='.5'/%3e%3cpath%20d='M12.4%2014.9s2.1-2%203-2c1.1%200%202.3%202.7%202.3%203.5%200%20.8-2.1%202.4-3.1%202.3%200%200%200-1.2-.7-2.6-.8-1.3-1.5-1.2-1.5-1.2z'%20fill='%237fbbdd'/%3e%3cpath%20d='M13.8%2015.3c.9.8.6%202%201.4%201.8%201-.2%201.4-.8%201.3-1.5%200-.7%200-.8-.4-1.6-.3-.7-1-1.1-2-.5-.7.5-1.4%201.3-1.4%201.3s.2-.3%201.1.5z'%20fill='%23fff'/%3e%3cpath%20d='M12.4%2014.9s2.1-2%203-2c1.1%200%202.3%202.7%202.3%203.5%200%20.8-2.1%202.4-3.1%202.3%200%200%200-1.2-.7-2.6-.8-1.3-1.5-1.2-1.5-1.2z'%20fill='none'%20stroke='%23000'%20stroke-width='.5'/%3e%3c/svg%3e",I6="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5'%20viewBox='0%200%2064%2064'%3e%3cpath%20d='M208.6%20548.2s11.2%2046.2%2031.2%2071c20%2024.9%2079.3%2061.6%2079.3%2061.6S385.6%20623%20438%20498.3c0%200%2018.1%201%2036-11.9%2017.7-12.7%2016.3-7.9%2021-24.8%200%200%2057%206.3%20131-9.7%2041.7-9.1%2084.3-26.3%20121.5-58.8%200%200-25.4-32.9-58-101.7-12.4-26.1-41.9-34.3-98.7-88L438.1%20391.2%20208.6%20548.2Z'%20style='fill-opacity:.11'%20transform='matrix(.10221%20.00684%20-.00671%20.10035%20-8%20-13.2)'/%3e%3cg%20transform='rotate(-35.4%2034.2%2080.8)%20scale(.10057)'%3e%3cpath%20d='M561.6%20349.2s-45.3-77.9-232.8-97.2c0%200-26.5%2073.2-21.1%20116%205.3%2043-4.7%2088.1%2021.4%20133.2%200%200%20114%205.5%20225.5-72.7l74.6%203.6S673.8%20534.4%20857%20554.4c0%200%2029.7-62.6%2022.2-137-8-78.7-7.5-124-7.5-124s-96.2-9.5-236.3%2068.4l-73.8-12.6Z'%20style='fill:%237fbbdd'/%3e%3cclipPath%20id='a'%3e%3cpath%20d='M561.6%20349.2s-45.3-77.9-232.8-97.2c0%200-26.5%2073.2-21.1%20116%205.3%2043-4.7%2088.1%2021.4%20133.2%200%200%20114%205.5%20225.5-72.7l74.6%203.6S673.8%20534.4%20857%20554.4c0%200%2029.7-62.6%2022.2-137-8-78.7-7.5-124-7.5-124s-96.2-9.5-236.3%2068.4l-73.8-12.6Z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20d='M386.9%20397.2c-15.6-13.6-51.8-22.4-96.3-16.7-44.5%205.8-93.8%2021.8-111.8%2031.6-10.6%205.7-27.3%2017.3-28.1%2027.2-1.2%2014.2%202.9%2037.8%2015%2052%206%207.2%2014.2%2012.1%2028.1%2014.1%2017.9%202.6%2059-24.8%2081.6-36.2%2024-12%2038.6-14.6%2063-22.2%200%200-47%2031.6-68.2%2047.4-30.6%2022.9-51.6%2028-57.3%2045.5-3.1%209.4-.7%2027.9%207.5%2037.6%209%2011%2012.8%2017.6%2034.2%2020.1%2012.7%201.5%2022%201.2%2059.8-28.6%2021.7-17.2%2055.9-59.2%2067-74.4%2016.2-22%2023.8-43.1%2021.3-59.6-3.7-23.6-8.4-31.3-15.8-37.8Z'%20style='fill:%23fff'%20transform='scale(.88664)%20rotate(31.2%20485%20792.2)'/%3e%3cpath%20d='M484.7%20379c-5.4-11.1-17.6-28.5-.8-53.8a739%20739%200%200%201%2044.2-60.6c13.2-16.3%2046.7-46.2%2059.6-52%2013-6%2033.3-8.7%2044.2.2%2011%209.1%2016.5%2020.6%2023%2032.7%207.4%2013.8%2012.4%2029.3%201.6%2042.8-15.4%2019.2-34.3%2017-61.6%2031.5-27.7%2014.8-42.3%2023.1-55.7%2035.9%200%200%2052.2-21.6%2082-31.2%2029.8-9.7%2059.8-20%2074.8-8.5s14.6%2015.5%2018.4%2031.2c4.7%2019.4-7.2%2038-20.1%2048.6-13%2010.7-34.3%2016-57.4%2021-30.5%206.8-96.6%2015.1-124%202.6-27.5-12.6-24.4-32.8-28.2-40.5Z'%20style='fill:%23fff'%20transform='scale(.87906)%20rotate(31.2%20487.2%20893.5)'/%3e%3c/g%3e%3cpath%20d='M561.6%20349.2s-45.3-77.9-232.8-97.2c0%200-26.5%2073.2-21.1%20116%205.3%2043-4.7%2088.1%2021.4%20133.2%200%200%20114%205.5%20225.5-72.7l74.6%203.6S673.8%20534.4%20857%20554.4c0%200%2029.7-62.6%2022.2-137-8-78.7-7.5-124-7.5-124s-96.2-9.5-236.3%2068.4l-73.8-12.6Z'%20style='fill:none;stroke:%23000;stroke-width:16.57px'/%3e%3c/g%3e%3cg%20transform='rotate(-4.2%20-78%20211)%20scale(.10057)'%3e%3cpath%20d='M385%20385.5s45.8-37.6%2065-35.4c21.7%202.5%2040.5%2057.6%2040.2%2074.3-.3%2016.7-47.3%2045.5-67.7%2041.8%200%200%203-24-10.4-52.9-13.4-28.8-27.2-27.8-27.2-27.8Z'%20style='fill:%237fbbdd'/%3e%3cclipPath%20id='b'%3e%3cpath%20d='M385%20385.5s45.8-37.6%2065-35.4c21.7%202.5%2040.5%2057.6%2040.2%2074.3-.3%2016.7-47.3%2045.5-67.7%2041.8%200%200%203-24-10.4-52.9-13.4-28.8-27.2-27.8-27.2-27.8Z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23b)'%3e%3cpath%20d='M413.3%20402.7c17.5%2018.9%2010%2045.7%2028.4%2043.4%2021.7-2.7%2030.9-15.7%2031.6-32.7.7-17-1-19.5-7.1-38-6.1-18.7-18.2-23.2-43.4-18.2-20.8%204.1-17.8%203-24%2010-6.4%207-14.5%2026-14.5%2026s8.4-12.7%2029%209.5Z'%20style='fill:%23fff'%20transform='matrix(.90907%200%200%20.85852%2037%2052.2)'/%3e%3c/g%3e%3cpath%20d='M385%20385.5s45.8-37.6%2065-35.4c21.7%202.5%2040.5%2057.6%2040.2%2074.3-.3%2016.7-47.3%2045.5-67.7%2041.8%200%200%203-24-10.4-52.9-13.4-28.8-27.2-27.8-27.2-27.8Z'%20style='fill:none;stroke:%23000;stroke-width:16.57px'/%3e%3c/g%3e%3c/svg%3e";async function E6(n,e,t={}){let r;if(le(n)){if(r=document.querySelector(n),!r)throw new Error(`No such element: ${n}`)}else if(n instanceof HTMLElement)r=n;else throw new Error(`Invalid element: ${n}`);let i;try{const s=ze(e)?e:await P1(e);if(s.baseUrl??="",s.width??="container",s.padding??=10,r==document.body){const o=document.createElement("div");o.style.position="fixed",o.style.inset="0",o.style.overflow="hidden",r.appendChild(o),r=o}i=new T1(r,s,t),b6(i,t),await i.launch()}catch(s){r.innerText=s.toString(),console.error(s)}return{finalize(){for(i.destroy();r.firstChild;)r.firstChild.remove()},addEventListener(s,o){i.addEventListener(s,o)},removeEventListener(s,o){i.removeEventListener(s,o)},getScaleResolutionByName(s){return i.getNamedScaleResolutions().get(s)},updateNamedData:i.updateNamedData.bind(i),exportCanvas:i.exportCanvas.bind(i)}}function b6(n,e){e.namedDataProvider&&n.registerNamedDataProvider(e.namedDataProvider)}async function P1(n){let e;try{e=await Bm(n)}catch(t){throw new Error(`Could not load or parse configuration: ${n}, reason: ${t.message}`)}if(!e.baseUrl){const t=n.match(/^[^?#]*\//);e.baseUrl=t&&t[0]||"./"}return e}class x6{constructor(e){this.blob=e}async read(e,t=0){if(!e)return new Uint8Array(0);const r=t,i=r+e,s=this.blob.slice(r,i);return s.bytes?s.bytes():new Uint8Array(await s.arrayBuffer())}async readFile(e){const t=typeof e=="string"?e:e?.encoding;if(t==="utf8")return this.blob.text();if(t)throw new Error(`unsupported encoding: ${t}`);return this.blob.bytes?this.blob.bytes():new Uint8Array(await this.blob.arrayBuffer())}async stat(){return{size:this.blob.size}}async close(){}}function B6(n){return(typeof n=="object"&&n!==null&&"message"in n?n.message:`${n}`).replace(/\.$/,"")}class Vt{constructor(e,t={}){this.baseOverrides={},this.url=e;const r=t.fetch||globalThis.fetch.bind(globalThis);t.overrides&&(this.baseOverrides=t.overrides),this.fetchImplementation=r}async fetch(e,t){const r=s=>new Error(`${B6(s)} fetching ${e}`,{cause:s});let i;try{i=await this.fetchImplementation(e,t)}catch(s){if(`${s}`.includes("Failed to fetch")){console.warn(`generic-filehandle: refetching ${e} to attempt to work around chrome CORS header caching bug`);try{i=await this.fetchImplementation(e,{...t,cache:"reload"})}catch(o){throw r(o)}}else throw r(s)}return i}async read(e,t,r={}){if(e===0)return new Uint8Array(0);const{headers:i={},signal:s,overrides:o={}}=r;e<1/0?i.range=`bytes=${t}-${t+e-1}`:e===1/0&&t!==0&&(i.range=`bytes=${t}-`);const a=await this.fetch(this.url,{...this.baseOverrides,...o,headers:{...this.baseOverrides.headers,...o.headers,...i},method:"GET",redirect:"follow",mode:"cors",signal:s});if(!a.ok)throw new Error(`HTTP ${a.status} fetching ${this.url}`);if(a.status===200&&t===0||a.status===206){const l=a.headers.get("content-range"),c=/\/(\d+)$/.exec(l||"");c?.[1]&&(this._stat={size:parseInt(c[1],10)});const u=a.bytes?await a.bytes():new Uint8Array(await a.arrayBuffer());return u.byteLength<=e?u:u.subarray(0,e)}throw new Error(a.status===200?`${this.url} fetch returned status 200, expected 206`:`HTTP ${a.status} fetching ${this.url}`)}async readFile(e={}){let t,r;if(typeof e=="string")t=e,r={};else{t=e.encoding;const{encoding:l,...c}=e;r=c}const{headers:i={},signal:s,overrides:o={}}=r,a=await this.fetch(this.url,{...this.baseOverrides,...o,headers:{...this.baseOverrides.headers,...o.headers,...i},method:"GET",redirect:"follow",mode:"cors",signal:s});if(!a.ok)throw new Error(`HTTP ${a.status} fetching ${this.url}`);if(t==="utf8")return a.text();if(t)throw new Error(`unsupported encoding: ${t}`);return a.bytes?a.bytes():new Uint8Array(await a.arrayBuffer())}async stat(){if(!this._stat&&(await this.read(10,0),!this._stat))throw new Error(`unable to determine size of file at ${this.url}`);return this._stat}async close(){}}class We{readFile(){throw new Error("unimplemented")}read(){throw new Error("unimplemented")}close(){throw new Error("unimplemented")}}const Zs=Object.freeze(Object.defineProperty({__proto__:null,BlobFile:x6,LocalFile:We,RemoteFile:Vt},Symbol.toStringTag,{value:"Module"})),L1=65536,v6=L1*L1;function Tf(n,e=0){const t=n[e]|n[e+1]<<8|n[e+2]<<16|n[e+3]<<24;return((n[e+4]|n[e+5]<<8|n[e+6]<<16|n[e+7]<<24)>>>0)*v6+(t>>>0)}const tc=1;function O1(n,e,t){const r=e[tc],i=t?t[tc]:1/0;return r<=n&&i>n?0:r<n?-1:1}class S6{filehandle;index;constructor({filehandle:e}){this.filehandle=e}_getIndex(){return this.index||(this.index=this._readIndex().catch(e=>{throw this.index=void 0,e})),this.index}async _readIndex(){const e=await this.filehandle.read(8,0),t=Tf(e);if(!t)return[[0,0]];const r=new Array(t+1);r[0]=[0,0];const i=16*t;if(i>Number.MAX_SAFE_INTEGER)throw new TypeError("integer overflow");const s=await this.filehandle.read(i,8);for(let o=0;o<t;o+=1){const a=Tf(s,o*16),l=Tf(s,o*16+8);r[o+1]=[a,l]}return r}async getLastBlock(){return(await this._getIndex()).at(-1)}async getRelevantBlocksForRead(e,t){const r=t+e;if(e===0)return[];const i=await this._getIndex(),s=[];let o=0,a=i.length-1,l=Math.floor(i.length/2),c=O1(t,i[l],i[l+1]);for(;c!==0;)c>0?a=l-1:c<0&&(o=l+1),l=Math.ceil((a-o)/2)+o,c=O1(t,i[l],i[l+1]);s.push(i[l]);let u=l+1;for(;u<i.length&&(s.push(i[u]),!(i[u][tc]>=r));u+=1);return s[s.length-1][tc]<r&&s.push([]),s}}var U1=0,Pf=2,nc=4,yr=0,rc=1,Q6=2,D6=-5;function k6(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function F6(n){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var t=e.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(var r in t)k6(t,r)&&(n[r]=t[r])}}return n}function G1(n,e){return n.length===e?n:n.subarray?n.subarray(0,e):(n.length=e,n)}var $s={arraySet:function(n,e,t,r,i){if(e.subarray&&n.subarray){n.set(e.subarray(t,t+r),i);return}for(var s=0;s<r;s++)n[i+s]=e[t+s]},flattenChunks:function(n){var e,t,r,i,s,o;for(r=0,e=0,t=n.length;e<t;e++)r+=n[e].length;for(o=new Uint8Array(r),i=0,e=0,t=n.length;e<t;e++)s=n[e],o.set(s,i),i+=s.length;return o},Buf8:function(n){return new Uint8Array(n)},Buf16:function(n){return new Uint16Array(n)},Buf32:function(n){return new Int32Array(n)}},eo={arraySet:function(n,e,t,r,i){for(var s=0;s<r;s++)n[i+s]=e[t+s]},flattenChunks:function(n){return[].concat.apply([],n)},Buf8:function(n){return new Array(n)},Buf16:function(n){return new Array(n)},Buf32:function(n){return new Array(n)}};let ci=()=>{const n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";return ci=()=>n,n},On=(n,e,t,r,i)=>(On=ci()?$s.arraySet:eo.arraySet,On(n,e,t,r,i)),Lf=n=>(Lf=ci()?$s.flattenChunks:eo.flattenChunks,Lf(n)),li=n=>(li=ci()?$s.Buf8:eo.Buf8,li(n)),ui=n=>(ui=ci()?$s.Buf16:eo.Buf16,ui(n)),fi=n=>(fi=ci()?$s.Buf32:eo.Buf32,fi(n)),z1=function(){let n=!0;try{String.fromCharCode.apply(null,[0])}catch{n=!1}return z1=()=>n,n},H1=function(){let n=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}return H1=()=>n,n},Of=function(n){for(var e=li(256),t=0;t<256;t++)e[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;return e[254]=e[254]=1,Of=r=>e[r],e[n]};function V1(n){var e,t,r,i,s,o=n.length,a=0;for(i=0;i<o;i++)t=n.charCodeAt(i),(t&64512)===55296&&i+1<o&&(r=n.charCodeAt(i+1),(r&64512)===56320&&(t=65536+(t-55296<<10)+(r-56320),i++)),a+=t<128?1:t<2048?2:t<65536?3:4;for(e=new Uint8Array(a),s=0,i=0;s<a;i++)t=n.charCodeAt(i),(t&64512)===55296&&i+1<o&&(r=n.charCodeAt(i+1),(r&64512)===56320&&(t=65536+(t-55296<<10)+(r-56320),i++)),t<128?e[s++]=t:t<2048?(e[s++]=192|t>>>6,e[s++]=128|t&63):t<65536?(e[s++]=224|t>>>12,e[s++]=128|t>>>6&63,e[s++]=128|t&63):(e[s++]=240|t>>>18,e[s++]=128|t>>>12&63,e[s++]=128|t>>>6&63,e[s++]=128|t&63);return e}function R6(n,e){if(e<65534&&(n.subarray&&H1()||!n.subarray&&z1()))return String.fromCharCode.apply(null,G1(n,e));for(var t="",r=0;r<e;r++)t+=String.fromCharCode(n[r]);return t}function M6(n){for(var e=new Uint8Array(n.length),t=0,r=e.length;t<r;t++)e[t]=n.charCodeAt(t);return e}function N6(n,e){var t,r,i,s,o=e||n.length,a=new Array(o*2);for(r=0,t=0;t<o;){if(i=n[t++],i<128){a[r++]=i;continue}if(s=Of(i),s>4){a[r++]=65533,t+=s-1;continue}for(i&=s===2?31:s===3?15:7;s>1&&t<o;)i=i<<6|n[t++]&63,s--;if(s>1){a[r++]=65533;continue}i<65536?a[r++]=i:(i-=65536,a[r++]=55296|i>>10&1023,a[r++]=56320|i&1023)}return R6(a,r)}function T6(n,e){var t;for(e=e||n.length,e>n.length&&(e=n.length),t=e-1;t>=0&&(n[t]&192)===128;)t--;return t<0||t===0?e:t+Of(n[t])>e?t:e}function P6(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}function Uf(n,e,t,r){for(var i=n&65535|0,s=n>>>16&65535|0,o=0;t!==0;){o=t>2e3?2e3:t,t-=o;do i=i+e[r++]|0,s=s+i|0;while(--o);i%=65521,s%=65521}return i|s<<16|0}function L6(){for(var n,e=[],t=0;t<256;t++){n=t;for(var r=0;r<8;r++)n=n&1?3988292384^n>>>1:n>>>1;e[t]=n}return e}let _1=function(){const n=L6();return _1=()=>n,n};function _t(n,e,t,r){var i=_1(),s=r+t;n^=-1;for(var o=r;o<s;o++)n=n>>>8^i[(n^e[o])&255];return n^-1}var ic=30,O6=12;function U6(n,e){var t,r,i,s,o,a,l,c,u,f,h,A,d,g,p,m,y,C,w,b,x,E,S,Q,v;t=n.state,r=n.next_in,Q=n.input,i=r+(n.avail_in-5),s=n.next_out,v=n.output,o=s-(e-n.avail_out),a=s+(n.avail_out-257),l=t.dmax,c=t.wsize,u=t.whave,f=t.wnext,h=t.window,A=t.hold,d=t.bits,g=t.lencode,p=t.distcode,m=(1<<t.lenbits)-1,y=(1<<t.distbits)-1;e:do{d<15&&(A+=Q[r++]<<d,d+=8,A+=Q[r++]<<d,d+=8),C=g[A&m];t:for(;;){if(w=C>>>24,A>>>=w,d-=w,w=C>>>16&255,w===0)v[s++]=C&65535;else if(w&16){b=C&65535,w&=15,w&&(d<w&&(A+=Q[r++]<<d,d+=8),b+=A&(1<<w)-1,A>>>=w,d-=w),d<15&&(A+=Q[r++]<<d,d+=8,A+=Q[r++]<<d,d+=8),C=p[A&y];n:for(;;){if(w=C>>>24,A>>>=w,d-=w,w=C>>>16&255,w&16){if(x=C&65535,w&=15,d<w&&(A+=Q[r++]<<d,d+=8,d<w&&(A+=Q[r++]<<d,d+=8)),x+=A&(1<<w)-1,x>l){n.msg="invalid distance too far back",t.mode=ic;break e}if(A>>>=w,d-=w,w=s-o,x>w){if(w=x-w,w>u&&t.sane){n.msg="invalid distance too far back",t.mode=ic;break e}if(E=0,S=h,f===0){if(E+=c-w,w<b){b-=w;do v[s++]=h[E++];while(--w);E=s-x,S=v}}else if(f<w){if(E+=c+f-w,w-=f,w<b){b-=w;do v[s++]=h[E++];while(--w);if(E=0,f<b){w=f,b-=w;do v[s++]=h[E++];while(--w);E=s-x,S=v}}}else if(E+=f-w,w<b){b-=w;do v[s++]=h[E++];while(--w);E=s-x,S=v}for(;b>2;)v[s++]=S[E++],v[s++]=S[E++],v[s++]=S[E++],b-=3;b&&(v[s++]=S[E++],b>1&&(v[s++]=S[E++]))}else{E=s-x;do v[s++]=v[E++],v[s++]=v[E++],v[s++]=v[E++],b-=3;while(b>2);b&&(v[s++]=v[E++],b>1&&(v[s++]=v[E++]))}}else if((w&64)===0){C=p[(C&65535)+(A&(1<<w)-1)];continue n}else{n.msg="invalid distance code",t.mode=ic;break e}break}}else if((w&64)===0){C=g[(C&65535)+(A&(1<<w)-1)];continue t}else if(w&32){t.mode=O6;break e}else{n.msg="invalid literal/length code",t.mode=ic;break e}break}}while(r<i&&s<a);b=d>>3,r-=b,d-=b<<3,A&=(1<<d)-1,n.next_in=r,n.next_out=s,n.avail_in=r<i?5+(i-r):5-(r-i),n.avail_out=s<a?257+(a-s):257-(s-a),t.hold=A,t.bits=d}var Ai=15,Y1=852,J1=592,K1=0,Gf=1,q1=2,G6=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],z6=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],H6=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],V6=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function to(n,e,t,r,i,s,o,a){var l=a.bits,c=0,u=0,f=0,h=0,A=0,d=0,g=0,p=0,m=0,y=0,C,w,b,x,E,S=null,Q=0,v,F=ui(Ai+1),R=ui(Ai+1),N=null,O=0,H,G,_;for(c=0;c<=Ai;c++)F[c]=0;for(u=0;u<r;u++)F[e[t+u]]++;for(A=l,h=Ai;h>=1&&F[h]===0;h--);if(A>h&&(A=h),h===0)return i[s++]=1<<24|64<<16|0,i[s++]=1<<24|64<<16|0,a.bits=1,0;for(f=1;f<h&&F[f]===0;f++);for(A<f&&(A=f),p=1,c=1;c<=Ai;c++)if(p<<=1,p-=F[c],p<0)return-1;if(p>0&&(n===K1||h!==1))return-1;for(R[1]=0,c=1;c<Ai;c++)R[c+1]=R[c]+F[c];for(u=0;u<r;u++)e[t+u]!==0&&(o[R[e[t+u]]++]=u);if(n===K1?(S=N=o,v=19):n===Gf?(S=G6,Q-=257,N=z6,O-=257,v=256):(S=H6,N=V6,v=-1),y=0,u=0,c=f,E=s,d=A,g=0,b=-1,m=1<<A,x=m-1,n===Gf&&m>Y1||n===q1&&m>J1)return 1;for(;;){H=c-g,o[u]<v?(G=0,_=o[u]):o[u]>v?(G=N[O+o[u]],_=S[Q+o[u]]):(G=96,_=0),C=1<<c-g,w=1<<d,f=w;do w-=C,i[E+(y>>g)+w]=H<<24|G<<16|_|0;while(w!==0);for(C=1<<c-1;y&C;)C>>=1;if(C!==0?(y&=C-1,y+=C):y=0,u++,--F[c]===0){if(c===h)break;c=e[t+o[u]]}if(c>A&&(y&x)!==b){for(g===0&&(g=A),E+=f,d=c-g,p=1<<d;d+g<h&&(p-=F[d+g],!(p<=0));)d++,p<<=1;if(m+=1<<d,n===Gf&&m>Y1||n===q1&&m>J1)return 1;b=y&x,i[b]=A<<24|d<<16|E-s|0}}return y!==0&&(i[E+y]=c-g<<24|64<<16|0),a.bits=A,0}var _6=0,j1=1,W1=2,X1=4,Cr=0,Y6=1,J6=2,mt=-2,Z1=-3,$1=-4,K6=-5,ew=8,tw=1,nw=2,rw=3,iw=4,sw=5,ow=6,aw=7,cw=8,lw=9,uw=10,sc=11,cn=12,zf=13,fw=14,Hf=15,Aw=16,hw=17,dw=18,gw=19,oc=20,ac=21,pw=22,mw=23,ww=24,yw=25,Cw=26,Vf=27,Iw=28,Ew=29,pe=30,bw=31,q6=32,j6=852,W6=592;function xw(n){return(n>>>24&255)+(n>>>8&65280)+((n&65280)<<8)+((n&255)<<24)}function X6(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=ui(320),this.work=ui(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Z6(n){var e;return!n||!n.state?mt:(e=n.state,n.total_in=n.total_out=e.total=0,n.msg="",e.wrap&&(n.adler=e.wrap&1),e.mode=tw,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=fi(j6),e.distcode=e.distdyn=fi(W6),e.sane=1,e.back=-1,Cr)}function $6(n){var e;return!n||!n.state?mt:(e=n.state,e.wsize=0,e.whave=0,e.wnext=0,Z6(n))}function eM(n,e){var t,r;return!n||!n.state||(r=n.state,e<0?(t=0,e=-e):(t=(e>>4)+1,e<48&&(e&=15)),e&&(e<8||e>15))?mt:(r.window!==null&&r.wbits!==e&&(r.window=null),r.wrap=t,r.wbits=e,$6(n))}function tM(n,e){var t,r;return n?(r=new X6,n.state=r,r.window=null,t=eM(n,e),t!==Cr&&(n.state=null),t):mt}var Bw=!0,_f,Yf;function nM(n){if(Bw){var e;for(_f=fi(512),Yf=fi(32),e=0;e<144;)n.lens[e++]=8;for(;e<256;)n.lens[e++]=9;for(;e<280;)n.lens[e++]=7;for(;e<288;)n.lens[e++]=8;for(to(j1,n.lens,0,288,_f,0,n.work,{bits:9}),e=0;e<32;)n.lens[e++]=5;to(W1,n.lens,0,32,Yf,0,n.work,{bits:5}),Bw=!1}n.lencode=_f,n.lenbits=9,n.distcode=Yf,n.distbits=5}function vw(n,e,t,r){var i,s=n.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=li(s.wsize)),r>=s.wsize?(On(s.window,e,t-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i=s.wsize-s.wnext,i>r&&(i=r),On(s.window,e,t-r,i,s.wnext),r-=i,r?(On(s.window,e,t-r,r,0),s.wnext=r,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=i))),0}function rM(n,e){var t,r,i,s,o,a,l,c,u,f,h,A,d,g,p=0,m,y,C,w,b,x,E,S,Q=li(4),v,F,R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!n||!n.state||!n.output||!n.input&&n.avail_in!==0)return mt;t=n.state,t.mode===cn&&(t.mode=zf),o=n.next_out,i=n.output,l=n.avail_out,s=n.next_in,r=n.input,a=n.avail_in,c=t.hold,u=t.bits,f=a,h=l,S=Cr;e:for(;;)switch(t.mode){case tw:if(t.wrap===0){t.mode=zf;break}for(;u<16;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(t.wrap&2&&c===35615){t.check=0,Q[0]=c&255,Q[1]=c>>>8&255,t.check=_t(t.check,Q,2,0),c=0,u=0,t.mode=nw;break}if(t.flags=0,t.head&&(t.head.done=!1),!(t.wrap&1)||(((c&255)<<8)+(c>>8))%31){n.msg="incorrect header check",t.mode=pe;break}if((c&15)!==ew){n.msg="unknown compression method",t.mode=pe;break}if(c>>>=4,u-=4,E=(c&15)+8,t.wbits===0)t.wbits=E;else if(E>t.wbits){n.msg="invalid window size",t.mode=pe;break}t.dmax=1<<E,n.adler=t.check=1,t.mode=c&512?uw:cn,c=0,u=0;break;case nw:for(;u<16;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(t.flags=c,(t.flags&255)!==ew){n.msg="unknown compression method",t.mode=pe;break}if(t.flags&57344){n.msg="unknown header flags set",t.mode=pe;break}t.head&&(t.head.text=c>>8&1),t.flags&512&&(Q[0]=c&255,Q[1]=c>>>8&255,t.check=_t(t.check,Q,2,0)),c=0,u=0,t.mode=rw;case rw:for(;u<32;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}t.head&&(t.head.time=c),t.flags&512&&(Q[0]=c&255,Q[1]=c>>>8&255,Q[2]=c>>>16&255,Q[3]=c>>>24&255,t.check=_t(t.check,Q,4,0)),c=0,u=0,t.mode=iw;case iw:for(;u<16;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}t.head&&(t.head.xflags=c&255,t.head.os=c>>8),t.flags&512&&(Q[0]=c&255,Q[1]=c>>>8&255,t.check=_t(t.check,Q,2,0)),c=0,u=0,t.mode=sw;case sw:if(t.flags&1024){for(;u<16;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}t.length=c,t.head&&(t.head.extra_len=c),t.flags&512&&(Q[0]=c&255,Q[1]=c>>>8&255,t.check=_t(t.check,Q,2,0)),c=0,u=0}else t.head&&(t.head.extra=null);t.mode=ow;case ow:if(t.flags&1024&&(A=t.length,A>a&&(A=a),A&&(t.head&&(E=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Array(t.head.extra_len)),On(t.head.extra,r,s,A,E)),t.flags&512&&(t.check=_t(t.check,r,A,s)),a-=A,s+=A,t.length-=A),t.length))break e;t.length=0,t.mode=aw;case aw:if(t.flags&2048){if(a===0)break e;A=0;do E=r[s+A++],t.head&&E&&t.length<65536&&(t.head.name+=String.fromCharCode(E));while(E&&A<a);if(t.flags&512&&(t.check=_t(t.check,r,A,s)),a-=A,s+=A,E)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=cw;case cw:if(t.flags&4096){if(a===0)break e;A=0;do E=r[s+A++],t.head&&E&&t.length<65536&&(t.head.comment+=String.fromCharCode(E));while(E&&A<a);if(t.flags&512&&(t.check=_t(t.check,r,A,s)),a-=A,s+=A,E)break e}else t.head&&(t.head.comment=null);t.mode=lw;case lw:if(t.flags&512){for(;u<16;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(c!==(t.check&65535)){n.msg="header crc mismatch",t.mode=pe;break}c=0,u=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),n.adler=t.check=0,t.mode=cn;break;case uw:for(;u<32;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}n.adler=t.check=xw(c),c=0,u=0,t.mode=sc;case sc:if(t.havedict===0)return n.next_out=o,n.avail_out=l,n.next_in=s,n.avail_in=a,t.hold=c,t.bits=u,J6;n.adler=t.check=1,t.mode=cn;case cn:case zf:if(t.last){c>>>=u&7,u-=u&7,t.mode=Vf;break}for(;u<3;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}switch(t.last=c&1,c>>>=1,u-=1,c&3){case 0:t.mode=fw;break;case 1:nM(t),t.mode=oc;break;case 2:t.mode=hw;break;case 3:n.msg="invalid block type",t.mode=pe}c>>>=2,u-=2;break;case fw:for(c>>>=u&7,u-=u&7;u<32;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if((c&65535)!==(c>>>16^65535)){n.msg="invalid stored block lengths",t.mode=pe;break}t.length=c&65535,c=0,u=0,t.mode=Hf;case Hf:t.mode=Aw;case Aw:if(A=t.length,A){if(A>a&&(A=a),A>l&&(A=l),A===0)break e;On(i,r,s,A,o),a-=A,s+=A,l-=A,o+=A,t.length-=A;break}t.mode=cn;break;case hw:for(;u<14;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(t.nlen=(c&31)+257,c>>>=5,u-=5,t.ndist=(c&31)+1,c>>>=5,u-=5,t.ncode=(c&15)+4,c>>>=4,u-=4,t.nlen>286||t.ndist>30){n.msg="too many length or distance symbols",t.mode=pe;break}t.have=0,t.mode=dw;case dw:for(;t.have<t.ncode;){for(;u<3;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}t.lens[R[t.have++]]=c&7,c>>>=3,u-=3}for(;t.have<19;)t.lens[R[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,v={bits:t.lenbits},S=to(_6,t.lens,0,19,t.lencode,0,t.work,v),t.lenbits=v.bits,S){n.msg="invalid code lengths set",t.mode=pe;break}t.have=0,t.mode=gw;case gw:for(;t.have<t.nlen+t.ndist;){for(;p=t.lencode[c&(1<<t.lenbits)-1],m=p>>>24,y=p>>>16&255,C=p&65535,!(m<=u);){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(C<16)c>>>=m,u-=m,t.lens[t.have++]=C;else{if(C===16){for(F=m+2;u<F;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(c>>>=m,u-=m,t.have===0){n.msg="invalid bit length repeat",t.mode=pe;break}E=t.lens[t.have-1],A=3+(c&3),c>>>=2,u-=2}else if(C===17){for(F=m+3;u<F;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}c>>>=m,u-=m,E=0,A=3+(c&7),c>>>=3,u-=3}else{for(F=m+7;u<F;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}c>>>=m,u-=m,E=0,A=11+(c&127),c>>>=7,u-=7}if(t.have+A>t.nlen+t.ndist){n.msg="invalid bit length repeat",t.mode=pe;break}for(;A--;)t.lens[t.have++]=E}}if(t.mode===pe)break;if(t.lens[256]===0){n.msg="invalid code -- missing end-of-block",t.mode=pe;break}if(t.lenbits=9,v={bits:t.lenbits},S=to(j1,t.lens,0,t.nlen,t.lencode,0,t.work,v),t.lenbits=v.bits,S){n.msg="invalid literal/lengths set",t.mode=pe;break}if(t.distbits=6,t.distcode=t.distdyn,v={bits:t.distbits},S=to(W1,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,v),t.distbits=v.bits,S){n.msg="invalid distances set",t.mode=pe;break}t.mode=oc;case oc:t.mode=ac;case ac:if(a>=6&&l>=258){n.next_out=o,n.avail_out=l,n.next_in=s,n.avail_in=a,t.hold=c,t.bits=u,U6(n,h),o=n.next_out,i=n.output,l=n.avail_out,s=n.next_in,r=n.input,a=n.avail_in,c=t.hold,u=t.bits,t.mode===cn&&(t.back=-1);break}for(t.back=0;p=t.lencode[c&(1<<t.lenbits)-1],m=p>>>24,y=p>>>16&255,C=p&65535,!(m<=u);){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(y&&(y&240)===0){for(w=m,b=y,x=C;p=t.lencode[x+((c&(1<<w+b)-1)>>w)],m=p>>>24,y=p>>>16&255,C=p&65535,!(w+m<=u);){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}c>>>=w,u-=w,t.back+=w}if(c>>>=m,u-=m,t.back+=m,t.length=C,y===0){t.mode=Cw;break}if(y&32){t.back=-1,t.mode=cn;break}if(y&64){n.msg="invalid literal/length code",t.mode=pe;break}t.extra=y&15,t.mode=pw;case pw:if(t.extra){for(F=t.extra;u<F;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}t.length+=c&(1<<t.extra)-1,c>>>=t.extra,u-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=mw;case mw:for(;p=t.distcode[c&(1<<t.distbits)-1],m=p>>>24,y=p>>>16&255,C=p&65535,!(m<=u);){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if((y&240)===0){for(w=m,b=y,x=C;p=t.distcode[x+((c&(1<<w+b)-1)>>w)],m=p>>>24,y=p>>>16&255,C=p&65535,!(w+m<=u);){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}c>>>=w,u-=w,t.back+=w}if(c>>>=m,u-=m,t.back+=m,y&64){n.msg="invalid distance code",t.mode=pe;break}t.offset=C,t.extra=y&15,t.mode=ww;case ww:if(t.extra){for(F=t.extra;u<F;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}t.offset+=c&(1<<t.extra)-1,c>>>=t.extra,u-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){n.msg="invalid distance too far back",t.mode=pe;break}t.mode=yw;case yw:if(l===0)break e;if(A=h-l,t.offset>A){if(A=t.offset-A,A>t.whave&&t.sane){n.msg="invalid distance too far back",t.mode=pe;break}A>t.wnext?(A-=t.wnext,d=t.wsize-A):d=t.wnext-A,A>t.length&&(A=t.length),g=t.window}else g=i,d=o-t.offset,A=t.length;A>l&&(A=l),l-=A,t.length-=A;do i[o++]=g[d++];while(--A);t.length===0&&(t.mode=ac);break;case Cw:if(l===0)break e;i[o++]=t.length,l--,t.mode=ac;break;case Vf:if(t.wrap){for(;u<32;){if(a===0)break e;a--,c|=r[s++]<<u,u+=8}if(h-=l,n.total_out+=h,t.total+=h,h&&(n.adler=t.check=t.flags?_t(t.check,i,h,o-h):Uf(t.check,i,h,o-h)),h=l,(t.flags?c:xw(c))!==t.check){n.msg="incorrect data check",t.mode=pe;break}c=0,u=0}t.mode=Iw;case Iw:if(t.wrap&&t.flags){for(;u<32;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(c!==(t.total&4294967295)){n.msg="incorrect length check",t.mode=pe;break}c=0,u=0}t.mode=Ew;case Ew:S=Y6;break e;case pe:S=Z1;break e;case bw:return $1;case q6:default:return mt}return n.next_out=o,n.avail_out=l,n.next_in=s,n.avail_in=a,t.hold=c,t.bits=u,(t.wsize||h!==n.avail_out&&t.mode<pe&&(t.mode<Vf||e!==X1))&&vw(n,n.output,n.next_out,h-n.avail_out),f-=n.avail_in,h-=n.avail_out,n.total_in+=f,n.total_out+=h,t.total+=h,t.wrap&&h&&(n.adler=t.check=t.flags?_t(t.check,i,h,n.next_out-h):Uf(t.check,i,h,n.next_out-h)),n.data_type=t.bits+(t.last?64:0)+(t.mode===cn?128:0)+(t.mode===oc||t.mode===Hf?256:0),(f===0&&h===0||e===X1)&&S===Cr&&(S=K6),S}function iM(n){if(!n||!n.state)return mt;var e=n.state;return e.window&&(e.window=null),n.state=null,Cr}function sM(n,e){var t;return!n||!n.state||(t=n.state,(t.wrap&2)===0)?mt:(t.head=e,e.done=!1,Cr)}function Sw(n,e){var t=e.length,r,i,s;return!n||!n.state||(r=n.state,r.wrap!==0&&r.mode!==sc)?mt:r.mode===sc&&(i=1,i=Uf(i,e,t,0),i!==r.check)?Z1:(s=vw(n,e,t,t),s?(r.mode=bw,$1):(r.havedict=1,Cr))}const Jf={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function oM(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Kf=Object.prototype.toString;let Qw=class NA{constructor(e){if(!(this instanceof NA))return new NA(e);this.options=F6({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new oM,this.strm.avail_out=0;var r=tM(this.strm,t.windowBits);if(r!==yr)throw new Error(Jf[r]);if(this.header=new P6,sM(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=V1(t.dictionary):Kf.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Sw(this.strm,t.dictionary),r!==yr)))throw new Error(Jf[r])}push(e,t){var r=this.strm,i=this.options.chunkSize,s=this.options.dictionary,o,a,l,c,u,f,h=!1;if(this.ended)return!1;a=t===~~t?t:t===!0?nc:U1,typeof e=="string"?r.input=M6(e):Kf.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=li(i),r.next_out=0,r.avail_out=i),o=rM(r,U1),o===Q6&&s&&(typeof s=="string"?f=V1(s):Kf.call(s)==="[object ArrayBuffer]"?f=new Uint8Array(s):f=s,o=Sw(this.strm,f)),o===D6&&h===!0&&(o=yr,h=!1),o!==rc&&o!==yr)return this.onEnd(o),this.ended=!0,!1;r.next_out&&(r.avail_out===0||o===rc||r.avail_in===0&&(a===nc||a===Pf))&&(this.options.to==="string"?(l=T6(r.output,r.next_out),c=r.next_out-l,u=N6(r.output,l),r.next_out=c,r.avail_out=i-c,c&&On(r.output,r.output,l,c,0),this.onData(u)):this.onData(G1(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(h=!0)}while((r.avail_in>0||r.avail_out===0)&&o!==rc);return o===rc&&(a=nc),a===nc?(o=iM(this.strm),this.onEnd(o),this.ended=!0,o===yr):(a===Pf&&(this.onEnd(yr),r.avail_out=0),!0)}onData(e){this.chunks.push(e)}onEnd(e){e===yr&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Lf(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg}};function aM(n,e){var t=new Qw(e);if(t.push(n,!0),t.err)throw t.msg||Jf[t.err];return t.result}function cM(n,e){return e=e||{},e.raw=!0,aM(n,e)}function lM(n){let e=0;for(const t of n)e+=t.length;return e}function Dw(n,e){const t=new Uint8Array(e??lM(n));let r=0;for(const i of n)t.set(i,r),r+=i.length;return t}async function uM(n){try{let e,t=0,r;const i=[];let s=0;do{const o=n.subarray(t);if(r=new Qw(void 0),{strm:e}=r,r.push(o,Pf),r.err)throw new Error(r.msg);t+=e.next_in;const a=r.result;i.push(a),s+=a.length}while(e.avail_in);return Dw(i,s)}catch(e){throw/incorrect header check/.exec(`${e}`)?new Error("problem decompressing block: incorrect gzip header check"):e}}class kw{filehandle;gzi;constructor({filehandle:e,gziFilehandle:t}){this.filehandle=e,this.gzi=new S6({filehandle:t})}async _readAndUncompressBlock(e,t){let r=t;r||(r=(await this.filehandle.stat()).size);const i=r-e,s=await this.filehandle.read(i,e);return uM(s)}async read(e,t){const r=await this.gzi.getRelevantBlocksForRead(e,t),i=[];for(let s=0;s<r.length-1;s+=1){const o=await this._readAndUncompressBlock(r[s][0],r[s+1][0]),[,a]=r[s],l=a>=t?0:t-a,c=Math.min(t+e,a+o.length)-a;l>=0&&l<o.length&&i.push(o.subarray(l,c))}return Dw(i)}}function Fw(n,e){return n.offset+n.lineBytes*Math.floor(e/n.lineLength)+e%n.lineLength}async function fM(n,e={}){const t=new TextDecoder("utf8");return Object.fromEntries(t.decode(await n.readFile(e)).split(/\r?\n/).map(r=>r.trim()).filter(r=>!!r).map(r=>r.split(" ")).map(r=>{if(r[0]?.startsWith(">"))throw new Error("found > in sequence name, might have supplied FASTA file for the FASTA index");return[r[0],{name:r[0],length:+r[1],start:0,end:+r[1],offset:+r[2],lineLength:+r[3],lineBytes:+r[4]}]}))}class Rw{constructor({fasta:e,fai:t,path:r,faiPath:i}){if(e)this.fasta=e;else if(r)this.fasta=new We(r);else throw new Error("Need to pass filehandle for fasta or path to localfile");if(t)this.fai=t;else if(i)this.fai=new We(i);else if(r)this.fai=new We(`${r}.fai`);else throw new Error("Need to pass filehandle for or path to localfile")}async _getIndexes(e){return this.indexes||(this.indexes=fM(this.fai,e).catch(t=>{throw this.indexes=void 0,t})),this.indexes}async getSequenceNames(e){return Object.keys(await this._getIndexes(e))}async getSequenceSizes(e){const t={},r=await this._getIndexes(e);for(const i of Object.values(r))t[i.name]=i.length;return t}async getSequenceSize(e,t){return(await this._getIndexes(t))[e]?.length}async hasReferenceSequence(e,t){return!!(await this._getIndexes(t))[e]}async getResiduesByName(e,t,r,i){const s=(await this._getIndexes(i))[e];return s?this._fetchFromIndexEntry(s,t,r,i):void 0}async getSequence(e,t,r,i){return this.getResiduesByName(e,t,r,i)}async _fetchFromIndexEntry(e,t=0,r,i){let s=r;if(t<0)throw new TypeError("regionStart cannot be less than 0");if((s===void 0||s>e.length)&&(s=e.length),t>=s)return"";const o=Fw(e,t),a=Fw(e,s)-o,c=new TextDecoder("utf8").decode(await this.fasta.read(a,o,i)).replace(/\s+/g,"");if(/[^\x20-\x7e]/.test(c.slice(0,1e3)))throw new Error("Non-ASCII characters detected in sequence. The file may be gzip compressed. Use BgzipIndexedFasta for bgzip files, or decompress the file.");return c}}class AM extends Rw{constructor({fasta:e,path:t,fai:r,faiPath:i,gzi:s,gziPath:o}){super({fasta:e,path:t,fai:r,faiPath:i}),e&&s?this.fasta=new kw({filehandle:e,gziFilehandle:s}):t&&o&&(this.fasta=new kw({filehandle:new We(t),gziFilehandle:new We(o)}))}}function Mw(n){return n.split(">").filter(e=>/\S/.test(e)).map(e=>{const[t,...r]=e.split(`
|
|
658
|
-
`),[
|
|
659
|
-
`+
|
|
660
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function Lw(n,e){if(n){var t=n.indexOf(e);0<=t&&n.splice(t,1)}}var $f=(function(){function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var e,t,r,i,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=no(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(g){e={error:g}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var u=this.initialTeardown;if(ke(u))try{u()}catch(g){s=g instanceof Zf?g.errors:[g]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var h=no(f),A=h.next();!A.done;A=h.next()){var d=A.value;try{Uw(d)}catch(g){s=s??[],g instanceof Zf?s=Xf(Xf([],Wf(s)),Wf(g.errors)):s.push(g)}}}catch(g){r={error:g}}finally{try{A&&!A.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}if(s)throw new Zf(s)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Uw(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Lw(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&Lw(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=(function(){var e=new n;return e.closed=!0,e})(),n})();$f.EMPTY;function Ow(n){return n instanceof $f||n&&"closed"in n&&ke(n.remove)&&ke(n.add)&&ke(n.unsubscribe)}function Uw(n){ke(n)?n():n.unsubscribe()}var CM={Promise:void 0},IM={setTimeout:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return setTimeout.apply(void 0,Xf([n,e],Wf(t)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function Gw(n){IM.setTimeout(function(){throw n})}function zw(){}function EM(n){n()}var eA=(function(n){jf(e,n);function e(t){var r=n.call(this)||this;return r.isStopped=!1,t?(r.destination=t,Ow(t)&&t.add(r)):r.destination=BM,r}return e.create=function(t,r,i){return new cc(t,r,i)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e})($f),bM=(function(){function n(e){this.partialObserver=e}return n.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){lc(r)}},n.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){lc(r)}else lc(e)},n.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){lc(t)}},n})(),cc=(function(n){jf(e,n);function e(t,r,i){var s=n.call(this)||this,o;return ke(t)||!t?o={next:t??void 0,error:r??void 0,complete:i??void 0}:o=t,s.destination=new bM(o),s}return e})(eA);function lc(n){Gw(n)}function xM(n){throw n}var BM={closed:!0,next:zw,error:xM,complete:zw},tA=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Hw(n){return n}function vM(n){return n.length===0?Hw:n.length===1?n[0]:function(t){return n.reduce(function(r,i){return i(r)},t)}}var wt=(function(){function n(e){e&&(this._subscribe=e)}return n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,r){var i=this,s=QM(e)?e:new cc(e,t,r);return EM(function(){var o=i,a=o.operator,l=o.source;s.add(a?a.call(s,l):l?i._subscribe(s):i._trySubscribe(s))}),s},n.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},n.prototype.forEach=function(e,t){var r=this;return t=Vw(t),new t(function(i,s){var o=new cc({next:function(a){try{e(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:i});r.subscribe(o)})},n.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},n.prototype[tA]=function(){return this},n.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return vM(e)(this)},n.prototype.toPromise=function(e){var t=this;return e=Vw(e),new e(function(r,i){var s;t.subscribe(function(o){return s=o},function(o){return i(o)},function(){return r(s)})})},n.create=function(e){return new n(e)},n})();function Vw(n){var e;return(e=n??CM.Promise)!==null&&e!==void 0?e:Promise}function SM(n){return n&&ke(n.next)&&ke(n.error)&&ke(n.complete)}function QM(n){return n&&n instanceof eA||SM(n)&&Ow(n)}function DM(n){return ke(n?.lift)}function di(n){return function(e){if(DM(e))return e.lift(function(t){try{return n(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function ro(n,e,t,r,i){return new kM(n,e,t,r,i)}var kM=(function(n){jf(e,n);function e(t,r,i,s,o,a){var l=n.call(this,t)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=r?function(c){try{r(c)}catch(u){t.error(u)}}:n.prototype._next,l._error=s?function(c){try{s(c)}catch(u){t.error(u)}finally{this.unsubscribe()}}:n.prototype._error,l._complete=i?function(){try{i()}catch(c){t.error(c)}finally{this.unsubscribe()}}:n.prototype._complete,l}return e.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;n.prototype.unsubscribe.call(this),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},e})(eA),FM=new wt(function(n){return n.complete()});function RM(n){return n&&ke(n.schedule)}function _w(n){return n[n.length-1]}function MM(n){return RM(_w(n))?n.pop():void 0}function NM(n,e){return typeof _w(n)=="number"?n.pop():e}var Yw=(function(n){return n&&typeof n.length=="number"&&typeof n!="function"});function Jw(n){return ke(n?.then)}function Kw(n){return ke(n[tA])}function qw(n){return Symbol.asyncIterator&&ke(n?.[Symbol.asyncIterator])}function jw(n){return new TypeError("You provided "+(n!==null&&typeof n=="object"?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function TM(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ww=TM();function Xw(n){return ke(n?.[Ww])}function Zw(n){return wM(this,arguments,function(){var t,r,i,s;return Tw(this,function(o){switch(o.label){case 0:t=n.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,hi(t.read())];case 3:return r=o.sent(),i=r.value,s=r.done,s?[4,hi(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,hi(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function $w(n){return ke(n?.getReader)}function gi(n){if(n instanceof wt)return n;if(n!=null){if(Kw(n))return PM(n);if(Yw(n))return LM(n);if(Jw(n))return OM(n);if(qw(n))return ey(n);if(Xw(n))return UM(n);if($w(n))return GM(n)}throw jw(n)}function PM(n){return new wt(function(e){var t=n[tA]();if(ke(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function LM(n){return new wt(function(e){for(var t=0;t<n.length&&!e.closed;t++)e.next(n[t]);e.complete()})}function OM(n){return new wt(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,Gw)})}function UM(n){return new wt(function(e){var t,r;try{for(var i=no(n),s=i.next();!s.done;s=i.next()){var o=s.value;if(e.next(o),e.closed)return}}catch(a){t={error:a}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}e.complete()})}function ey(n){return new wt(function(e){zM(n,e).catch(function(t){return e.error(t)})})}function GM(n){return ey(Zw(n))}function zM(n,e){var t,r,i,s;return mM(this,void 0,void 0,function(){var o,a;return Tw(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),t=yM(n),l.label=1;case 1:return[4,t.next()];case 2:if(r=l.sent(),!!r.done)return[3,4];if(o=r.value,e.next(o),e.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),i={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),r&&!r.done&&(s=t.return)?[4,s.call(t)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function Ir(n,e,t,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var s=e.schedule(function(){t(),i?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(s),!i)return s}function ty(n,e){return e===void 0&&(e=0),di(function(t,r){t.subscribe(ro(r,function(i){return Ir(r,n,function(){return r.next(i)},e)},function(){return Ir(r,n,function(){return r.complete()},e)},function(i){return Ir(r,n,function(){return r.error(i)},e)}))})}function ny(n,e){return e===void 0&&(e=0),di(function(t,r){r.add(n.schedule(function(){return t.subscribe(r)},e))})}function HM(n,e){return gi(n).pipe(ny(e),ty(e))}function VM(n,e){return gi(n).pipe(ny(e),ty(e))}function _M(n,e){return new wt(function(t){var r=0;return e.schedule(function(){r===n.length?t.complete():(t.next(n[r++]),t.closed||this.schedule())})})}function YM(n,e){return new wt(function(t){var r;return Ir(t,e,function(){r=n[Ww](),Ir(t,e,function(){var i,s,o;try{i=r.next(),s=i.value,o=i.done}catch(a){t.error(a);return}o?t.complete():t.next(s)},0,!0)}),function(){return ke(r?.return)&&r.return()}})}function ry(n,e){if(!n)throw new Error("Iterable cannot be null");return new wt(function(t){Ir(t,e,function(){var r=n[Symbol.asyncIterator]();Ir(t,e,function(){r.next().then(function(i){i.done?t.complete():t.next(i.value)})},0,!0)})})}function JM(n,e){return ry(Zw(n),e)}function KM(n,e){if(n!=null){if(Kw(n))return HM(n,e);if(Yw(n))return _M(n,e);if(Jw(n))return VM(n,e);if(qw(n))return ry(n,e);if(Xw(n))return YM(n,e);if($w(n))return JM(n,e)}throw jw(n)}function qM(n,e){return e?KM(n,e):gi(n)}var jM=Pw(function(n){return function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}});function iy(n,e){return new Promise(function(t,r){var i=new cc({next:function(s){t(s),i.unsubscribe()},error:r,complete:function(){r(new jM)}});n.subscribe(i)})}function sy(n,e){return di(function(t,r){var i=0;t.subscribe(ro(r,function(s){r.next(n.call(e,s,i++))}))})}function WM(n,e,t,r,i,s,o,a){var l=[],c=0,u=0,f=!1,h=function(){f&&!l.length&&!c&&e.complete()},A=function(g){return c<r?d(g):l.push(g)},d=function(g){c++;var p=!1;gi(t(g,u++)).subscribe(ro(e,function(m){e.next(m)},function(){p=!0},void 0,function(){if(p)try{c--;for(var m=function(){var y=l.shift();o||d(y)};l.length&&c<r;)m();h()}catch(y){e.error(y)}}))};return n.subscribe(ro(e,A,function(){f=!0,h()})),function(){}}function oy(n,e,t){return t===void 0&&(t=1/0),ke(e)?oy(function(r,i){return sy(function(s,o){return e(r,s,i,o)})(gi(n(r,i)))},t):(typeof e=="number"&&(t=e),di(function(r,i){return WM(r,i,n,t)}))}function XM(n){return n===void 0&&(n=1/0),oy(Hw,n)}function ZM(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=MM(n),r=NM(n,1/0),i=n;return i.length?i.length===1?gi(i[0]):XM(r)(qM(i,t)):FM}function $M(n,e,t,r,i){return function(s,o){var a=t,l=e,c=0;s.subscribe(ro(o,function(u){var f=c++;l=a?n(l,u,f):(a=!0,u)},(function(){a&&o.next(l),o.complete()})))}}function ay(n,e){return di($M(n,e,arguments.length>=2,!1,!0))}var e5=function(n,e){return n.push(e),n};function t5(){return di(function(n,e){ay(e5,[])(n).subscribe(e)})}class n5{}class r5{constructor(){this.signals=new Set,this.abortController=new AbortController}addSignal(e=new n5){if(this.signal.aborted)throw new Error("cannot add a signal, already aborted!");this.signals.add(e),e.aborted?this.handleAborted(e):typeof e.addEventListener=="function"&&e.addEventListener("abort",()=>{this.handleAborted(e)})}handleAborted(e){this.signals.delete(e),this.signals.size===0&&this.abortController.abort()}get signal(){return this.abortController.signal}abort(){this.abortController.abort()}}class i5{constructor(){this.callbacks=new Set}addCallback(e=()=>{}){this.callbacks.add(e),this.currentMessage&&e(this.currentMessage)}callback(e){this.currentMessage=e;for(const t of this.callbacks)t(e)}}class pi{constructor({fill:e,cache:t}){if(typeof e!="function")throw new TypeError("must pass a fill function");if(typeof t!="object")throw new TypeError("must pass a cache object");if(typeof t.get!="function"||typeof t.set!="function"||typeof t.delete!="function")throw new TypeError("cache must implement get(key), set(key, val), and and delete(key)");this.cache=t,this.fillCallback=e}static isAbortException(e){return e.name==="AbortError"||e.code==="ERR_ABORTED"||e.message==="AbortError: aborted"||e.message==="Error: aborted"}evict(e,t){this.cache.get(e)===t&&this.cache.delete(e)}fill(e,t,r,i){const s=new r5,o=new i5;o.addCallback(i);const a={aborter:s,promise:this.fillCallback(t,s.signal,l=>{o.callback(l)}),settled:!1,statusReporter:o,get aborted(){return this.aborter.signal.aborted}};a.aborter.addSignal(r),a.aborter.signal.addEventListener("abort",()=>{a.settled||this.evict(e,a)}),a.promise.then(()=>{a.settled=!0},()=>{a.settled=!0,this.evict(e,a)}).catch(l=>{throw console.error(l),l}),this.cache.set(e,a)}static checkSinglePromise(e,t){function r(){if(t?.aborted)throw Object.assign(new Error("aborted"),{code:"ERR_ABORTED"})}return e.then(i=>(r(),i),i=>{throw r(),i})}has(e){return this.cache.has(e)}get(e,t,r,i){if(!r&&t instanceof AbortSignal)throw new TypeError("second get argument appears to be an AbortSignal, perhaps you meant to pass `null` for the fill data?");const s=this.cache.get(e);return s?s.aborted&&!s.settled?(this.evict(e,s),this.get(e,t,r,i)):s.settled?s.promise:(s.aborter.addSignal(r),s.statusReporter.addCallback(i),pi.checkSinglePromise(s.promise,r)):(this.fill(e,t,r,i),pi.checkSinglePromise(this.cache.get(e).promise,r))}delete(e){const t=this.cache.get(e);t&&(t.settled||t.aborter.abort(),this.cache.delete(e))}clear(){const e=this.cache.keys();let t=0;for(let r=e.next();!r.done;r=e.next())this.delete(r.value),t+=1;return t}}function s5(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var nA,cy;function o5(){if(cy)return nA;cy=1;class n{constructor(t={}){if(!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=t.maxSize,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(t,r){this.cache.set(t,r),this._size++,this._size>=this.maxSize&&(this._size=0,this.oldCache=this.cache,this.cache=new Map)}get(t){if(this.cache.has(t))return this.cache.get(t);if(this.oldCache.has(t)){const r=this.oldCache.get(t);return this.oldCache.delete(t),this._set(t,r),r}}set(t,r){return this.cache.has(t)?this.cache.set(t,r):this._set(t,r),this}has(t){return this.cache.has(t)||this.oldCache.has(t)}peek(t){if(this.cache.has(t))return this.cache.get(t);if(this.oldCache.has(t))return this.oldCache.get(t)}delete(t){const r=this.cache.delete(t);return r&&this._size--,this.oldCache.delete(t)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(const[t]of this)yield t}*values(){for(const[,t]of this)yield t}*[Symbol.iterator](){for(const t of this.cache)yield t;for(const t of this.oldCache){const[r]=t;this.cache.has(r)||(yield t)}}get size(){let t=0;for(const r of this.oldCache.keys())this.cache.has(r)||t++;return this._size+t}}return nA=n,nA}var a5=o5();const ly=s5(a5);class mi{ranges;constructor(e){this.ranges=e}get min(){return this.ranges[0].min}get max(){return this.ranges.at(-1).max}contains(e){for(const t of this.ranges)if(t.min<=e&&t.max>=e)return!0;return!1}isContiguous(){return this.ranges.length>1}getRanges(){return this.ranges.map(e=>new mi([{min:e.min,max:e.max}]))}toString(){return this.ranges.map(e=>`[${e.min}-${e.max}]`).join(",")}union(e){const t=[...this.getRanges(),...e.getRanges()].sort((s,o)=>s.min<o.min?-1:s.min>o.min?1:s.max<o.max?-1:o.max>s.max?1:0),r=[];let i=t[0];for(const s of t)s.min>i.max+1?(r.push(i),i=s):s.max>i.max&&(i=new mi([{min:i.min,max:s.max}]));return r.push(i),r.length===1?r[0]:new mi(r)}}function c5(n){return cM(n.subarray(2),void 0)}class l5 extends Error{code;constructor(e){super(e),this.code="ERR_ABORTED"}}function u5(n){n.sort((i,s)=>i.offset-s.offset);const e=[];let t,r;for(const i of n)t&&r&&i.offset-r<=2e3?(t.length=t.length+i.length-r+i.offset,t.blocks.push(i)):e.push(t={blocks:[i],length:i.length,offset:i.offset}),r=t.offset+t.length;return e}function uc(n){if(n&&n.aborted)if(typeof DOMException>"u"){const e=new l5("aborted");throw e.code="ERR_ABORTED",e}else throw new DOMException("aborted","AbortError")}const f5=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function rA(n,e,t,r){return n<r&&e>=t}class uy{bbi;refsByName;cirTreeOffset;isCompressed;blockType;cirTreePromise;featureCache=new pi({cache:new ly({maxSize:1e3}),fill:async({length:e,offset:t},r)=>this.bbi.read(e,t,{signal:r})});constructor(e,t,r,i,s){if(this.bbi=e,this.refsByName=t,this.cirTreeOffset=r,this.isCompressed=i,this.blockType=s,!(r>=0))throw new Error("invalid cirTreeOffset!")}async readWigData(e,t,r,i,s){try{const o=this.refsByName[e];o===void 0&&i.complete();const a={chrId:o,start:t,end:r};this.cirTreePromise||(this.cirTreePromise=this.bbi.read(48,this.cirTreeOffset,s));const l=await this.cirTreePromise,u=new DataView(l.buffer).getUint32(4,!0);let f=[],h=0;const A=(m,y,C)=>{try{const b=m.subarray(y),x=new DataView(b.buffer,b.byteOffset,b.length);let E=0;const S=x.getUint8(E);E+=2;const Q=x.getUint16(E,!0);if(E+=2,S===1){const v=[];for(let F=0;F<Q;F++){const R=x.getUint32(E,!0);E+=4;const N=x.getUint32(E,!0);E+=4;const O=x.getUint32(E,!0);E+=4;const H=x.getUint32(E,!0);E+=4;const G=Number(x.getBigUint64(E,!0));E+=8;const _=Number(x.getBigUint64(E,!0));E+=8,v.push({startChrom:R,startBase:N,endBase:H,endChrom:O,blockOffset:G,blockSize:_,offset:E})}f=f.concat(v.filter(F=>d(F)).map(F=>({offset:F.blockOffset,length:F.blockSize})))}else if(S===0){const v=[];for(let R=0;R<Q;R++){const N=x.getUint32(E,!0);E+=4;const O=x.getUint32(E,!0);E+=4;const H=x.getUint32(E,!0);E+=4;const G=x.getUint32(E,!0);E+=4;const _=Number(x.getBigUint64(E,!0));E+=8,v.push({startChrom:N,startBase:O,endChrom:H,endBase:G,blockOffset:_,offset:E})}const F=v.filter(R=>d(R)).map(R=>R.blockOffset);F.length>0&&p(F,C+1)}}catch(w){i.error(w)}},d=m=>{const{startChrom:y,startBase:C,endChrom:w,endBase:b}=m;return(y<o||y===o&&C<=r)&&(w>o||w===o&&b>=t)},g=async(m,y,C)=>{try{const w=y.max-y.min,b=y.min,x=await this.featureCache.get(`${w}_${b}`,{length:w,offset:b},s?.signal);for(const E of m)y.contains(E)&&(A(x,E-b,C),h-=1,h===0&&this.readFeatures(i,f,{...s,request:a}).catch(S=>{i.error(S)}))}catch(w){i.error(w)}},p=(m,y)=>{try{h+=m.length;const C=4+u*32;let w=new mi([{min:m[0],max:m[0]+C}]);for(let b=1;b<m.length;b+=1){const x=new mi([{min:m[b],max:m[b]+C}]);w=w.union(x)}w.getRanges().map(b=>g(m,b,y))}catch(C){i.error(C)}};p([this.cirTreeOffset+48],1);return}catch(o){i.error(o)}}parseSummaryBlock(e,t,r){const i=[];let s=t;const o=new DataView(e.buffer,e.byteOffset,e.length);for(;s<e.byteLength;){const a=o.getUint32(s,!0);s+=4;const l=o.getUint32(s,!0);s+=4;const c=o.getUint32(s,!0);s+=4;const u=o.getUint32(s,!0);s+=4;const f=o.getFloat32(s,!0);s+=4;const h=o.getFloat32(s,!0);s+=4;const A=o.getFloat32(s,!0);s+=4,s+=4,(!r||a===r.chrId&&rA(l,c,r.start,r.end))&&i.push({start:l,end:c,maxScore:h,minScore:f,summary:!0,score:A/(u||1)})}return i}parseBigBedBlock(e,t,r,i){const s=[];let o=t;const a=e,l=new DataView(a.buffer,a.byteOffset,a.length);for(;o<e.byteLength;){const c=o,u=l.getUint32(o,!0);o+=4;const f=l.getInt32(o,!0);o+=4;const h=l.getInt32(o,!0);o+=4;let A=o;for(;A<e.length&&e[A]!==0;A++);const d=e.subarray(o,A),g=f5?.decode(d)??d.toString();o=A+1,s.push({chromId:u,start:f,end:h,rest:g,uniqueId:`bb-${r+c}`})}return i?s.filter(c=>rA(c.start,c.end,i.start,i.end)):s}parseBigWigBlock(e,t,r){const i=e.subarray(t),s=new DataView(i.buffer,i.byteOffset,i.length);let o=0;o+=4;const a=s.getInt32(o,!0);o+=8;const l=s.getUint32(o,!0);o+=4;const c=s.getUint32(o,!0);o+=4;const u=s.getUint8(o);o+=2;const f=s.getUint16(o,!0);o+=2;const h=new Array(f);switch(u){case 1:{for(let A=0;A<f;A++){const d=s.getInt32(o,!0);o+=4;const g=s.getInt32(o,!0);o+=4;const p=s.getFloat32(o,!0);o+=4,h[A]={start:d,end:g,score:p}}break}case 2:{for(let A=0;A<f;A++){const d=s.getInt32(o,!0);o+=4;const g=s.getFloat32(o,!0);o+=4,h[A]={score:g,start:d,end:d+c}}break}case 3:{for(let A=0;A<f;A++){const d=s.getFloat32(o,!0);o+=4;const g=a+A*l;h[A]={score:d,start:g,end:g+c}}break}}return r?h.filter(A=>rA(A.start,A.end,r.start,r.end)):h}async readFeatures(e,t,r={}){try{const{blockType:i,isCompressed:s}=this,{signal:o,request:a}=r,l=u5(t);uc(o),await Promise.all(l.map(async c=>{uc(o);const{length:u,offset:f}=c,h=await this.featureCache.get(`${u}_${f}`,c,o);for(const A of c.blocks){uc(o);let d=h.subarray(A.offset-c.offset);switch(s&&(d=c5(d)),uc(o),i){case"summary":{e.next(this.parseSummaryBlock(d,0,a));break}case"bigwig":{e.next(this.parseBigWigBlock(d,0,a));break}case"bigbed":{e.next(this.parseBigBedBlock(d,0,A.offset*256,a));break}default:console.warn(`Don't know what to do with ${i}`)}}})),e.complete()}catch(i){e.error(i)}}}const A5=-2003829722,fy=-2021002517;function wi(n){return new DataView(n.buffer,n.byteOffset,n.length)}class Ay{bbi;headerP;renameRefSeqs;getHeader(e){return this.headerP||(this.headerP=this._getHeader(e).catch(t=>{throw this.headerP=void 0,t})),this.headerP}constructor(e){const{filehandle:t,renameRefSeqs:r=o=>o,path:i,url:s}=e;if(this.renameRefSeqs=r,t)this.bbi=t;else if(s)this.bbi=new Vt(s);else if(i)this.bbi=new We(i);else throw new Error("no file given")}async _getHeader(e){const t=await this._getMainHeader(e),r=await this._readChromTree(t,e);return{...t,...r}}async _getMainHeader(e,t=2e3){const r=await this.bbi.read(t,0,e),i=wi(r),s=i.getInt32(0,!0);if(s!==A5&&s!==fy)throw new Error("not a BigWig/BigBed file");let o=0;const a=i.getInt32(o,!0);o+=4;const l=i.getUint16(o,!0);o+=2;const c=i.getUint16(o,!0);o+=2;const u=Number(i.getBigUint64(o,!0));o+=8;const f=Number(i.getBigUint64(o,!0));o+=8;const h=Number(i.getBigUint64(o,!0));o+=8;const A=i.getUint16(o,!0);o+=2;const d=i.getUint16(o,!0);o+=2;const g=Number(i.getBigUint64(o,!0));o+=8;const p=Number(i.getBigUint64(o,!0));o+=8;const m=i.getUint32(o,!0);o+=4;const y=Number(i.getBigUint64(o,!0));o+=8;const C=[];for(let E=0;E<c;E++){const S=i.getUint32(o,!0);o+=4;const Q=i.getUint32(o,!0);o+=4;const v=Number(i.getBigUint64(o,!0));o+=8;const F=Number(i.getBigUint64(o,!0));o+=8,C.push({reductionLevel:S,reserved:Q,dataOffset:v,indexOffset:F})}const w=a===fy?"bigbed":"bigwig";if(g>t||p>t-40)return this._getMainHeader(e,t*2);let b;if(p){const E=r.subarray(p);let S=0;const Q=wi(E),v=Number(Q.getBigUint64(S,!0));S+=8;const F=Q.getFloat64(S,!0);S+=8;const R=Q.getFloat64(S,!0);S+=8;const N=Q.getFloat64(S,!0);S+=8;const O=Q.getFloat64(S,!0);S+=8,b={scoreMin:F,scoreMax:R,scoreSum:N,scoreSumSquares:O,basesCovered:v}}else throw new Error("no stats");const x=new TextDecoder("utf8");return{zoomLevels:C,magic:a,extHeaderOffset:y,numZoomLevels:c,fieldCount:A,totalSummary:b,definedFieldCount:d,uncompressBufSize:m,asOffset:g,chromTreeOffset:u,totalSummaryOffset:p,unzoomedDataOffset:f,unzoomedIndexOffset:h,fileType:w,version:l,autoSql:g?x.decode(r.subarray(g,r.indexOf(0,g))):""}}async _readChromTree(e,t){const r=[],i={},s=e.chromTreeOffset,o=wi(await this.bbi.read(32,s,t));let a=0;a+=4,a+=4;const l=o.getUint32(a,!0);a+=4;const c=o.getUint32(a,!0);a+=4,a+=8;const u=new TextDecoder("utf8"),f=async h=>{const A=await this.bbi.read(4,h),d=wi(A);let g=0;const p=d.getUint8(g);g+=1,g+=1;const m=d.getUint16(g,!0);if(g+=2,p){const y=await this.bbi.read(m*(l+c),h+g),C=wi(y);g=0;for(let w=0;w<m;w++){const b=u.decode(y.subarray(g,g+l)).replaceAll("\0","");g+=l;const x=C.getUint32(g,!0);g+=4;const E=C.getUint32(g,!0);g+=4,i[this.renameRefSeqs(b)]=x,r[x]={name:b,id:x,length:E}}}else{const y=[],C=wi(await this.bbi.read(m*(l+8),h+g));g=0;for(let w=0;w<m;w++){g+=l;const b=Number(C.getBigUint64(g,!0));g+=8,y.push(f(b))}await Promise.all(y)}};return await f(s+32),{refsByName:i,refsByNumber:r}}async getUnzoomedView(e){const{unzoomedIndexOffset:t,refsByName:r,uncompressBufSize:i,fileType:s}=await this.getHeader(e);return new uy(this.bbi,r,t,i>0,s)}async getFeatureStream(e,t,r,i){await this.getHeader(i);const s=this.renameRefSeqs(e);let o;const{basesPerSpan:a,scale:l}=i||{};return a?o=await this.getView(1/a,i):l?o=await this.getView(l,i):o=await this.getView(1,i),new wt(c=>{o.readWigData(s,t,r,c,i).catch(u=>{c.error(u)})})}async getFeatures(e,t,r,i){const s=await this.getFeatureStream(e,t,r,i);return(await iy(s.pipe(t5()))).flat()}}class h5 extends Ay{async getView(e,t){const{zoomLevels:r,refsByName:i,uncompressBufSize:s}=await this.getHeader(t),o=1/e,a=r.length-1;for(let l=a;l>=0;l-=1){const c=r[l];if(c&&c.reductionLevel<=2*o)return new uy(this.bbi,i,c.indexOffset,s>0,"summary")}return this.getUnzoomedView(t)}}function d5(n){return n.filter(e=>!!e)}class g5 extends Ay{readIndicesCache=new pi({cache:new ly({maxSize:1}),fill:(e,t)=>this._readIndices({...e,signal:t})});readIndices(e={}){const{signal:t,...r}=e;return this.readIndicesCache.get(JSON.stringify(r),e,t)}async getView(e,t){return this.getUnzoomedView(t)}async _readIndices(e){const{extHeaderOffset:t}=await this.getHeader(e),r=await this.bbi.read(64,t),i=new DataView(r.buffer,r.byteOffset,r.length);let s=0;s+=2;const o=i.getUint16(s,!0);s+=2;const a=Number(i.getBigUint64(s,!0));if(s+=8,o===0)return[];const l=20,c=l*o,u=await this.bbi.read(c,a),f=[];for(let h=0;h<o;h+=1){const A=u.subarray(h*l),d=new DataView(A.buffer,A.byteOffset,A.length);let g=0;const p=d.getInt16(g,!0);g+=2;const m=d.getInt16(g,!0);g+=2;const y=Number(d.getBigUint64(g,!0));g+=12;const C=d.getInt16(g,!0);f.push({type:p,fieldcount:m,offset:y,field:C})}return f}async searchExtraIndexBlocks(e,t={}){const r=await this.readIndices(t);if(r.length===0)return[];const i=new TextDecoder("utf8"),s=r.map(async o=>{const{offset:a,field:l}=o,c=await this.bbi.read(32,a,t),u=new DataView(c.buffer,c.byteOffset,c.length);let f=0;f+=4;const h=u.getInt32(f,!0);f+=4;const A=u.getInt32(f,!0);f+=4;const d=u.getInt32(f,!0);f+=4,f+=8;const g=async p=>{const m=p,y=4+h*(A+d),w=await this.bbi.read(y,m,t),b=new DataView(w.buffer,w.byteOffset,w.length);let x=0;const E=b.getInt8(x);x+=2;const S=b.getInt16(x,!0);x+=2;const Q=[];if(E===0){const v=[];for(let R=0;R<S;R++){const N=i.decode(w.subarray(x,x+A)).replaceAll("\0","");x+=A;const O=Number(b.getBigUint64(x,!0));x+=8,v.push({key:N,offset:O})}let F=0;for(const{key:R,offset:N}of v){if(e.localeCompare(R)<0&&F)return g(F);F=N}return g(F)}else if(E===1){for(let v=0;v<S;v++){const F=i.decode(w.subarray(x,x+A)).replaceAll("\0","");x+=A;const R=Number(b.getBigUint64(x,!0));x+=8;const N=b.getUint32(x,!0);x+=4;const O=b.getUint32(x,!0);x+=4,Q.push({key:F,offset:R,length:N,reserved:O})}for(const v of Q)if(v.key===e)return{...v,field:l};return}};return g(a+32)});return d5(await Promise.all(s))}async searchExtraIndex(e,t={}){const r=await this.searchExtraIndexBlocks(e,t);if(r.length===0)return[];const i=await this.getUnzoomedView(t),s=r.map(a=>new wt(l=>{i.readFeatures(l,[a],t).catch(c=>{l.error(c)})}).pipe(ay((l,c)=>l.concat(c)),sy(l=>{for(const c of l)c.field=a.field;return l})));return(await iy(ZM(...s))).filter(a=>a.rest?.split(" ")[(a.field||0)-3]===e)}}const hy=Object.freeze(Object.defineProperty({__proto__:null,BigBed:g5,BigWig:h5},Symbol.toStringTag,{value:"Module"}));function p5(n,e){function t(){this.constructor=n}t.prototype=e.prototype,n.prototype=new t}function yi(n,e,t,r){this.message=n,this.expected=e,this.found=t,this.location=r,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,yi)}p5(yi,Error),yi.buildMessage=function(n,e){var t={literal:function(c){return'"'+i(c.text)+'"'},class:function(c){var u="",f;for(f=0;f<c.parts.length;f++)u+=c.parts[f]instanceof Array?s(c.parts[f][0])+"-"+s(c.parts[f][1]):s(c.parts[f]);return"["+(c.inverted?"^":"")+u+"]"},any:function(c){return"any character"},end:function(c){return"end of input"},other:function(c){return c.description}};function r(c){return c.charCodeAt(0).toString(16).toUpperCase()}function i(c){return c.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(u){return"\\x0"+r(u)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(u){return"\\x"+r(u)})}function s(c){return c.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(u){return"\\x0"+r(u)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(u){return"\\x"+r(u)})}function o(c){return t[c.type](c)}function a(c){var u=new Array(c.length),f,h;for(f=0;f<c.length;f++)u[f]=o(c[f]);if(u.sort(),u.length>0){for(f=1,h=1;f<u.length;f++)u[f-1]!==u[f]&&(u[h]=u[f],h++);u.length=h}switch(u.length){case 1:return u[0];case 2:return u[0]+" or "+u[1];default:return u.slice(0,-1).join(", ")+", or "+u[u.length-1]}}function l(c){return c?'"'+i(c)+'"':"end of input"}return"Expected "+a(n)+" but "+l(e)+" found."};function m5(n,e){e=e!==void 0?e:{};var t={},r={declaration:e2},i=e2,s="(",o=ae("(",!1),a=")",l=ae(")",!1),c=function(I,D,T,L){return{type:I,name:D,comment:T,fields:L}},u="simple",f=ae("simple",!1),h="object",A=ae("object",!1),d="table",g=ae("table",!1),p="auto",m=ae("auto",!1),y="primary",C=ae("primary",!1),w="index",b=ae("index",!1),x="unique",E=ae("unique",!1),S=function(I,D){return D},Q=function(I,D){return I.name&&D.unshift(I),D},v="#",F=ae("#",!1),R=";",N=ae(";",!1),O=function(I,D,T){return{type:I,name:D,comment:T}},H="[",G=ae("[",!1),_="]",te=ae("]",!1),oe=function(I,D,T,L){return{type:I,size:D,name:T,comment:L}},ne=function(I,D,T,L){return{type:I,vals:D,name:T,comment:L}},Ge=",",Jt=ae(",",!1),ho=function(I,D){return D.unshift(I),D},Ri="int",fn=ae("int",!1),Sr="uint",go=ae("uint",!1),Mi="short",U=ae("short",!1),q="ushort",W=ae("ushort",!1),M="byte",Xe=ae("byte",!1),se="ubyte",nt=ae("ubyte",!1),Ze="float",An=ae("float",!1),po="char",I9=ae("char",!1),PC="string",E9=ae("string",!1),LC="lstring",b9=ae("lstring",!1),OC="enum",x9=ae("enum",!1),UC="double",B9=ae("double",!1),GC="bigint",v9=ae("bigint",!1),zC="set",S9=ae("set",!1),Q9=function(I,D){return I+" "+D},D9=/^[a-zA-Z_]/,k9=mo([["a","z"],["A","Z"],"_"],!1,!1),HC=/^[a-zA-Z0-9_]/,VC=mo([["a","z"],["A","Z"],["0","9"],"_"],!1,!1),F9=function(I){return WC()},_C=/^[^\n\r]/,YC=mo([`
|
|
661
|
-
`,"\r"],!0,!1),
|
|
662
|
-
`,"\r"],!1,!1),
|
|
669
|
+
`:"";return ae`${m}${d}`}class ao extends Aw{#e=new Map;constructor(e,n,i,r,s,o){super(e,n,i,r,s,o),this.spec=e}async initializeChildren(){}getNextAutoName(e){const n=this.#e.get(e)??0;return this.#e.set(e,n+1),e+n}*[Symbol.iterator](){}visit(e){let n;try{n=e(this)}catch(i){throw i.view=this,i}if(n===pr)return n;if(n!==fn){e.beforeChildren&&e.beforeChildren(this);for(const i of this){const r=i.visit(e);if(r===pr)return r}e.afterChildren&&e.afterChildren(this),e.postOrder&&e.postOrder(this)}}findDescendantByPath(e){let n=this;for(let i=0;i<e.length;i++){if(!(n instanceof ao))return;const r=n.#t(e[i]);if(!r)return;if(i===e.length-1)return r;n=r}}#t(e){for(const n of this)if(n.name===e)return n}findDescendantByName(e){let n;return this.visit(i=>{if(i.name==e)return n=i,pr}),n}getDefaultResolution(e,n){return"shared"}}function B6(t){aF(t),cF(t)}function ey(t){t.getDescendants().forEach(e=>e.configureViewOpacity())}const wr=new WeakMap,gc=new WeakMap;function S6(t,e){if(e!==null&&typeof e!="string")throw new Error("Import scope name must be a string or null.");wr.set(t,{name:e})}function hn(t,e={}){const i=e.skipSubtree??!1?"excludeSubtree":"exclude";gc.set(t,i)}function $f(t){const e=t.getDataAncestors(),n=[];for(let i=e.length-1;i>=0;i-=1){const r=wr.get(e[i]);r&&typeof r.name=="string"&&n.push(r.name)}return n}function D6(t,e){t.visit(n=>{const i=gc.get(n);if(i==="excludeSubtree")return fn;if(i!=="exclude")return e(n)})}function Q6(t){const e=[];for(const n of k6(t)){const i=R6(n);F6(t,i,e),N6(t,i,e)}return e}function ty(t){return t.persist===!1?!1:Zl(t)?!0:u0(t)?!!t.bind:!1}function k6(t){const e=new Set([t]);return t.visit(n=>{const i=wr.get(n);i&&typeof i.name=="string"&&e.add(n)}),Array.from(e)}function R6(t){return $f(t)}function ny(t){return t.length?"import scope ["+t.join(" / ")+"]":"import scope (root)"}function F6(t,e,n){const i=new Map;iy(t,e,r=>{for(const[s,o]of r.paramRuntime.paramConfigs){if(!ty(o))continue;const a=i.get(s);a?a.push(r):i.set(s,[r])}});for(const[r,s]of i){if(s.length<=1)continue;const o=s.map(a=>a.getPathString()).join(", ");n.push({message:'Bookmarkable parameter "'+r+'" is not unique within '+ny(e)+". Found in: "+o+".",scope:e})}}function N6(t,e,n){const i=M6(t,e);if(!i.length)return;const r=i.filter(o=>T6(o));if(r.length<=1)return;const s=new Map;for(const o of r){const a=wr.get(o),l=a?a.name:void 0;typeof l!="string"||!l.length||s.set(l,(s.get(l)??0)+1)}for(const[o,a]of s)a>1&&n.push({message:'Import instance name "'+o+'" is used multiple times for addressable instances in '+ny(e)+".",scope:e})}function M6(t,e){const n=[];return iy(t,e,i=>{if($f(i).length!==e.length+1)return;const s=wr.get(i);!s||typeof s.name!="string"||n.push(i)},{includeNamedImportRoots:!0}),n}function T6(t){let e=!1;return t.visit(n=>{const i=gc.get(n);if(i==="excludeSubtree")return fn;if(i!=="exclude"){for(const r of n.paramRuntime.paramConfigs.values())if(ty(r))return e=!0,pr}}),e}function iy(t,e,n,i={}){const r=i.includeNamedImportRoots??!1;t.visit(s=>{const o=wr.get(s),a=gc.get(s);if(a==="excludeSubtree")return fn;if(a!=="exclude"&&P6(s,e,o,r))return n(s)})}function P6(t,e,n,i){const r=$f(t);return L6(r,e)?!0:!i||!n||typeof n.name!="string"||r.length!==e.length+1?!1:ry(e,r)}function L6(t,e){return t.length!==e.length?!1:ry(t,e)}function ry(t,e){if(t.length>e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function O6(t){const e=[];let n=!1;const i=U6(t);for(const r of i){const s=r.getAssemblyRequirement();s.assembly&&e.push(s.assembly),s.needsDefaultAssembly&&(n=!0)}return{assemblies:e,needsDefaultAssembly:n}}async function sy(t,e){const{assemblies:n,needsDefaultAssembly:i}=O6(t);if(i){const r=e.getDefaultAssemblyName();if(!r)throw new Error("No default assembly has been configured. Set root `assembly`, define exactly one entry in root `genomes`, or set `scale.assembly` on each locus scale.");n.push(r)}await e.ensureAssemblies(n)}function U6(t){const e=new Set,n=["x","y"],i=r=>{for(const s of n){const o=r.getScaleResolution(s);o&&e.add(o)}};return i(t),D6(t,i),e}class oy{constructor(e,n){this.container=e,this.options=n}async addChildSpec(e,n){const{specs:i,insertAt:r}=this.options.getChildSpecs(),s=n??i.length,o=this.options.defaultName?.(s,e)??this.container.getNextAutoName("child"),a=await this.container.context.createOrImportView(e,this.container,this.container,o);await sy(a,this.container.context.genomeStore),r(s,e);const l=this.options.insertView(a,s);this.options.prepareView&&await this.options.prepareView(a,s,l),ey(a);const c=h=>h.isConfiguredVisible(),{dataSources:u,graphicsPromises:f}=jf(a,this.container.context.dataFlow,c);return await Wf(a,u),await Hf(f),this.options.requestLayout!==!1&&(this.container.invalidateSizeCache(),this.container.context.requestLayoutReflow()),a}async removeChildAt(e){const{removeAt:n}=this.options.getChildSpecs();this.options.removeView(e),n(e),this.options.afterRemove&&await this.options.afterRemove(e),this.options.requestLayout!==!1&&(this.container.invalidateSizeCache(),this.container.context.requestLayoutReflow())}}const ay=.5;function eh(t){return"multiscale"in t&&be(t.multiscale)}function _6(t){if(!t.multiscale.length)throw new Error('"multiscale" must contain at least one child view.');const e=z6(t.stops,t.multiscale.length),n=t.multiscale.map((r,s)=>t.multiscale.length===1?r:{opacity:G6(s,t.multiscale.length,e),layer:[r]}),i={...t};return delete i.multiscale,delete i.stops,{...i,layer:n}}function z6(t,e){let n="unitsPerPixel",i,r="auto",s=ay;if(be(t))i=cy(t,e,"stops");else if(Ge(t))n=t.metric??"unitsPerPixel",i=cy(t.values,e,"stops.values"),r=t.channel??"auto",s=t.fade??ay;else throw new Error('"stops" must be an array or an object with "values".');if(n!=="unitsPerPixel")throw new Error('Only "unitsPerPixel" is supported for "stops.metric" in multiscale.');if(!["x","y","auto"].includes(r))throw new Error('"stops.channel" must be one of "x", "y", or "auto".');if(!Number.isFinite(s)||s<0||s>.5)throw new Error('"stops.fade" must be a finite number in range [0, 0.5].');if(i.forEach((o,a)=>{if(!Ee(o)&&(!Number.isFinite(o)||o<=0))throw new Error("Invalid stop value at index "+a+". Stop values must be positive finite numbers.")}),!i.some(Ee)){const o=i;for(let a=1;a<o.length;a++)if(o[a-1]<=o[a])throw new Error('"stops.values" must be strictly decreasing for "unitsPerPixel".');for(let a=0;a<o.length-1;a++){const l=o[a]*(1-s),c=o[a+1]*(1+s);if(l<=c)throw new Error("Adjacent transitions overlap. Reduce fade or increase stop spacing.")}}return{metric:n,values:i,channel:r,fade:s}}function cy(t,e,n){if(!be(t))throw new Error('"'+n+'" must be an array of numbers or ExprRefs.');const i=e-1;if(t.length!==i)throw new Error("Invalid stop count for multiscale. Expected "+i+", got "+t.length+".");for(const r of t)if(!Ee(r)&&!Number.isFinite(r))throw new Error('"'+n+'" must contain only numbers or ExprRefs.');return t}function G6(t,e,n){let i,r;const s=n.values.map(o=>({hi:ly(o,1+n.fade),lo:ly(o,1-n.fade)}));if(t===0)i=[s[0].hi,s[0].lo];else if(t===e-1){const o=s.at(-1);i=[o.hi,o.lo]}else{const o=s[t-1],a=s[t];i=[o.hi,o.lo,a.hi,a.lo]}return t===0?r=[1,0]:t===e-1?r=[0,1]:r=[0,1,1,0],{channel:n.channel,unitsPerPixel:i,values:r}}function ly(t,e){return Ee(t)?{expr:"("+t.expr+") * "+e}:t*e}function th(t){return"mark"in t&&(le(t.mark)||Ge(t.mark))}function nh(t){return"layer"in t&&Ge(t.layer)}function uy(t){return"import"in t}function co(t){return"vconcat"in t&&be(t.vconcat)}function fy(t){return"hconcat"in t&&be(t.hconcat)}function pc(t){return"concat"in t&&be(t.concat)}class Bi extends ao{#e=[];constructor(e,n,i,r,s,o){super(e,n,i,r,s,{layersChildren:!0,...o}),this.spec=e,this.needsAxes={x:!0,y:!0}}async initializeChildren(){this.#e=await Promise.all(this.spec.layer.map(e=>this.context.createOrImportView(e,this,this,this.getNextAutoName("layer"),n=>{if(!nh(n)&&!th(n)&&!eh(n))throw new Ye("LayerView accepts only unit, layer, or multiscale specs as children!",this)})))}async addChildSpec(e,n){return this.#t().addChildSpec(e,n)}async removeChildAt(e){await this.#t().removeChildAt(e)}#t(){return new oy(this,{getChildSpecs:()=>({specs:this.spec.layer,insertAt:(e,n)=>{this.spec.layer.splice(e,0,n)},removeAt:e=>{this.spec.layer.splice(e,1)}}),insertView:(e,n)=>(e.layoutParent??=this,this.#e.splice(n,0,e),e),removeView:e=>{const n=this.#e[e];if(!n)throw new Error("Child index out of range!");n.disposeSubtree(),this.#e.splice(e,1)},defaultName:()=>this.getNextAutoName("layer")})}get children(){return this.#e.slice()}*[Symbol.iterator](){for(const e of this.#e)yield e}render(e,n,i={}){if(super.render(e,n,i),!!this.isConfiguredVisible()){e.pushView(this,n);for(const r of this.#e)r.render(e,n,i);e.popView(this)}}propagateInteractionEvent(e){this.handleInteractionEvent(void 0,e,!0);for(let n=this.#e.length-1;n>=0;n--)if(this.#e[n].propagateInteractionEvent(e),e.stopped)return;this.handleInteractionEvent(void 0,e,!1)}}class hy{constructor(e,n){this.n=e,this.maxCols=n??1/0}get nRows(){return this.maxCols==1/0?1:Math.ceil(this.n/this.maxCols)}get nCols(){return Math.min(this.n,this.maxCols)}get rowIndices(){const e=[],n=this.nCols,i=this.nRows;for(let r=0;r<i;r++){const s=[];e.push(s);for(let o=0;o<n;o++){const a=r*n+o;a<this.n&&s.push(a)}}return e}get colIndices(){const e=[],n=this.nCols,i=this.nRows;for(let r=0;r<n;r++){const s=[];e.push(s);for(let o=0;o<i;o++){const a=o*n+r;a<this.n&&s.push(a)}}return e}getCellIndex(e,n){let i=0;if(this.maxCols==1/0)i=n==0?e:void 0;else{if(e>=this.maxCols)return;i=n*this.nCols+e}return i<this.n?i:void 0}getCellCoords(e){if(!(e<0||e>=this.n))return[e%this.nCols,Math.floor(e/this.nCols)]}}function An(t){return()=>t}class Se{static create(e,n,i,r){return new Se(An(e),An(n),An(i),An(r))}static ZERO=Se.create(0,0,0,0);_offset(e,n){const i=this["_"+e];if(n===0)return i;switch(typeof n){case"number":return()=>i()+n;case"function":return()=>i()+n();default:throw new Error("Not a number of function")}}_passThrough(e){return this._offset(e,0)}constructor(e,n,i,r){this._x=e,this._y=n,this._width=i,this._height=r}get x(){return this._x()}get y(){return this._y()}get width(){return this._width()}get height(){return this._height()}get x2(){return this._x()+this._width()}get y2(){return this._y()+this._height()}equals(e){return e?this===e||this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height:!1}modify(e){if(!Object.keys(e).length)return this;const n=i=>{const r=e[i];return typeof r=="number"?An(r):typeof r=="function"?r:this._passThrough(i)};return new Se(n("x"),n("y"),n("width"),n("height"))}translate(e,n){return e===0&&n===0?this:new Se(this._offset("x",e),this._offset("y",n),this._passThrough("width"),this._passThrough("height"))}translateBy(e){return this.translate(e.x,e.y)}expand(e,n=1){return e.left==0&&e.top==0&&e.right==0&&e.bottom==0?this:new Se(e.left?this._offset("x",-e.left*n):this._passThrough("x"),e.top?this._offset("y",-e.top*n):this._passThrough("y"),e.width?this._offset("width",e.width*n):this._passThrough("width"),e.height?this._offset("height",e.height*n):this._passThrough("height"))}shrink(e){return this.expand(e,-1)}intersect(e){return this===e||e==null?this:new Se(()=>Math.max(this.x,e.x),()=>Math.max(this.y,e.y),()=>Math.min(this.x2,e.x2)-Math.max(this.x,e.x),()=>Math.min(this.y2,e.y2)-Math.max(this.y,e.y))}union(e){return this===e||e==null?this:new Se(()=>Math.min(this.x,e.x),()=>Math.min(this.y,e.y),()=>Math.max(this.x2,e.x2)-Math.min(this.x,e.x),()=>Math.max(this.y2,e.y2)-Math.min(this.y,e.y))}isDefined(){return this.width>=0&&this.height>=0}flatten(){return new Se(An(this.x),An(this.y),An(this.width),An(this.height))}containsPoint(e,n){return e>=this.x&&e<this.x2&&n>=this.y&&n<this.y2}normalizePoint(e,n,i=!1){const r={x:(e-this.x)/this.width,y:(n-this.y)/this.height};return i&&(r.y=1-r.y),r}denormalizePoint(e,n,i=!1){return i&&(n=1-n),{x:this.x+e*this.width,y:this.y+n*this.height}}toString(){return`Rectangle: x: ${this.x}, y: ${this.y}, width: ${this.width}, height: ${this.height}`}toRoundedString(){return`Rectangle: x: ${Math.round(this.x)}, y: ${Math.round(this.y)}, width: ${Math.round(this.width)}, height: ${Math.round(this.height)}`}}const H6="chromosome_ticks_and_labels",Y6={x:"width",y:"height"};function ih(t){return t=="x"?"y":"x"}const mc={x:["bottom","top"],y:["left","right"]},rh=Object.fromEntries(Object.entries(mc).map(([t,e])=>e.map(n=>[n,t])).flat(1));function Yn(t){return rh[t]}class Ay extends Bi{constructor(e,n,i,r,s,o){const a=n=="locus",l={...a?J6:dy,...V6(n,e),...e};super(a?q6(l,n):gy(l,n),i,r,s,`axis_${e.orient}`,{blockEncodingInheritance:!0,...o}),this.axisProps=l,hn(this,{skipSubtree:!0})}getSize(){const e={px:this.getPerpendicularSize()},n={grow:1};return rh[this.axisProps.orient]=="x"?new Gn(n,e):new Gn(e,n)}getPerpendicularSize(){return sh(this.axisProps)}isPickingSupported(){return!1}}function sh(t){const e=Yn(t.orient);let n=t.ticks&&t.tickSize||0;return t.labels&&(n+=t.labelPadding,e=="x"?n+=t.labelFontSize:n+=30),t.title&&(n+=t.titlePadding+t.titleFontSize),n=Math.min(t.maxExtent||1/0,Math.max(t.minExtent||0,n)),n}const dy={values:null,minExtent:20,maxExtent:1/0,offset:0,domain:!0,domainWidth:1,domainColor:"gray",domainDash:null,domainDashOffset:0,domainCap:"square",ticks:!0,tickSize:5,tickWidth:1,tickColor:"gray",tickDash:null,tickDashOffset:0,tickCap:"square",tickCount:null,tickMinStep:null,labels:!0,labelAlign:"center",labelBaseline:"middle",labelPadding:4,labelFontSize:10,labelLimit:180,labelColor:"black",format:null,titleColor:"black",titleFont:"sans-serif",titleFontSize:10,titlePadding:3};function V6(t,e){const n=e.orient,i=t=="nominal"||t=="ordinal";let r="center",s="middle",o=e.labelAngle??((n=="top"||n=="bottom")&&i?-90:0);switch(n){case"left":r="right";break;case"right":r="left";break;case"top":case"bottom":Math.abs(o)>30?(r=o>0==(n=="bottom")?"left":"right",s="middle"):s=n=="top"?"alphabetic":"top";break}return{labelAlign:r,labelAngle:o,labelBaseline:s}}function gy(t,e){const n={...t,extent:sh(t)},i=Yn(n.orient),r=ih(i),s=n.orient=="bottom"||n.orient=="right"?1:-1,o=n.orient=="bottom"||n.orient=="left"?1:0,a=()=>({field:"value",type:e}),l=()=>({name:"domain",data:{values:[{}]},mark:{type:"rule",clip:!1,strokeDash:n.domainDash,strokeCap:n.domainCap,color:n.domainColor,[r]:o,size:n.domainWidth}}),c=()=>({name:"labels",mark:{type:"text",clip:!1,align:n.labelAlign,angle:n.labelAngle,baseline:n.labelBaseline,[r+"Offset"]:(n.tickSize+n.labelPadding)*s,[r]:o,size:n.labelFontSize,color:n.labelColor,minBufferSize:1500},encoding:{[i]:a(),text:{field:"label"}}}),u=()=>({name:"ticks",mark:{type:"rule",clip:!1,strokeDash:n.tickDash,strokeCap:n.tickCap,color:n.tickColor,size:n.tickWidth,minBufferSize:300},encoding:{[r]:{value:o},[r+"2"]:{value:o-n.tickSize/n.extent*(o?1:-1)}}}),f=()=>({name:"title",data:{values:[{}]},mark:{type:"text",clip:!1,align:"center",baseline:n.orient=="bottom"?"bottom":"top",angle:[0,90,0,-90][["top","right","bottom","left"].indexOf(n.orient)],text:n.title,color:n.titleColor,[i]:.5,[r]:1-o}}),h=()=>{const d={name:"ticks_and_labels",encoding:{[i]:a()},layer:[]};return n.ticks&&d.layer.push(u()),n.labels&&d.layer.push(c()),d},A={resolve:{scale:{[i]:"forced"}},domainInert:!0,[Y6[ih(i)]]:n.extent,data:{lazy:{type:"axisTicks",channel:i,axis:t}},layer:[]};return n.domain&&A.layer.push(l()),(n.ticks||n.labels)&&A.layer.push(h()),n.title&&A.layer.push(f()),A}const J6={...dy,chromTicks:!0,chromTickSize:18,chromTickWidth:1,chromTickColor:"#989898",chromTickDash:[4,2],chromTickDashOffset:1,chromLabels:!0,chromLabelFontSize:13,chromLabelFontWeight:"normal",chromLabelFontStyle:"normal",chromLabelColor:"black",chromLabelAlign:"left",chromLabelPadding:7};function q6(t,e){const n={...t,extent:sh(t)},i=Yn(n.orient),r=ih(i),s=n.orient=="bottom"||n.orient=="left"?1:0,o=()=>({name:"chromosome_ticks",mark:{type:"rule",strokeDash:t.chromTickDash,strokeDashOffset:t.chromTickDashOffset,[r]:s,[r+"2"]:s-n.chromTickSize/n.extent*(s?1:-1),color:t.chromTickColor,size:n.chromTickWidth}}),a=()=>{let u;switch(n.orient){case"top":u={y:0,angle:0,paddingX:4,dy:-n.chromLabelPadding,viewportEdgeFadeWidthLeft:20,viewportEdgeFadeWidthRight:20,viewportEdgeFadeDistanceRight:-10,viewportEdgeFadeDistanceLeft:-20};break;case"bottom":u={y:1,angle:0,paddingX:4,dy:n.chromLabelPadding+n.chromLabelFontSize*.73,viewportEdgeFadeWidthLeft:20,viewportEdgeFadeWidthRight:20,viewportEdgeFadeDistanceRight:-10,viewportEdgeFadeDistanceLeft:-20};break;case"left":u={x:1,angle:-90,paddingY:4,dy:-n.chromLabelPadding,viewportEdgeFadeWidthBottom:20,viewportEdgeFadeWidthTop:20,viewportEdgeFadeDistanceBottom:-20,viewportEdgeFadeDistanceTop:-10};break;case"right":u={x:0,angle:90,align:"right",paddingY:4,dy:-n.chromLabelPadding};break;default:u={}}return{name:"chromosome_labels",mark:{type:"text",size:n.chromLabelFontSize,font:n.chromLabelFont,fontWeight:n.chromLabelFontWeight,fontStyle:n.chromLabelFontStyle,color:n.chromLabelColor,align:t.chromLabelAlign,baseline:"alphabetic",clip:!1,...u},encoding:{[i+"2"]:{field:"continuousEnd",type:e},text:{field:"name"}}}};let l;switch(n.orient){case"bottom":case"top":l={};break;case"left":l={labelAngle:-90,labelAlign:"center",labelPadding:6};break;case"right":l={labelAngle:90,labelAlign:"center",labelPadding:6};break;default:l={}}const c=gy({...t,...l},e);if(t.chromTicks||t.chromLabels){const u={name:H6,data:{lazy:{type:"axisGenome",channel:Yn(n.orient)}},encoding:{[i]:{field:"continuousStart",type:e,band:0}},layer:[]};if(t.chromTicks&&u.layer.push(o()),t.chromLabels){u.layer.push(a());let f;c.layer.filter(h=>h.name=="ticks_and_labels").forEach(h=>h.layer.filter(A=>A.name=="labels").forEach(A=>{f=A.mark})),f&&(n.orient=="top"||n.orient=="bottom"?(f.viewportEdgeFadeWidthLeft=30,f.viewportEdgeFadeDistanceLeft=40):(f.viewportEdgeFadeWidthBottom=30,f.viewportEdgeFadeDistanceBottom=40))}c.layer.push(u)}return c}class oh{#e;#t=0;#n=0;constructor(e){this.#e=new Array(e)}push(e){this.#e[this.#t]=e,this.#t=(this.#t+1)%this.size,this.#n=Math.min(this.#n+1,this.size)}get(){const e=this.#e;return this.#n<this.size?e.slice(0,this.#n):e.slice(this.#t,this.size).concat(e.slice(0,this.#t))}get size(){return this.#e.length}get length(){return this.#n}}function K6(t){if(!t||typeof t!="object")return!1;const e=t;return e.type==="touchgesture"&&(e.phase==="move"||e.phase==="end")&&(e.pointerCount===1||e.pointerCount===2)&&Number.isFinite(e.xDelta)&&Number.isFinite(e.yDelta)&&Number.isFinite(e.zDelta)}class j6{#e;constructor(e,n){this.point=e,this.uiEvent=n,this.stopped=!1,this.wheelClaimed=!1,this.target=void 0}stopPropagation(){this.stopped=!0}claimWheel(){if(this.type!=="wheel"&&this.type!=="wheelclaimprobe")throw new Error("Can claim wheel only for wheel events!");this.wheelClaimed=!0}get type(){return this.uiEvent.type}get proxiedMouseEvent(){return this.#e||(this.#e=py(this.mouseEvent)),this.#e}get mouseEvent(){if(this.uiEvent instanceof MouseEvent)return this.uiEvent;throw new Error("Not a MouseEvent!")}}function py(t){const e=i=>i===null||typeof i!="object"&&typeof i!="function",n={get(i,r,s){const o=Reflect.get(i,r,i);if(!e(o))throw new Error(`Access to non-primitive property "${String(r)}" is not allowed.`);return o},getPrototypeOf(){return null},ownKeys(i){return Reflect.ownKeys(i).filter(s=>e(i[s])).map(s=>typeof s=="symbol"?s:String(s))},getOwnPropertyDescriptor(i,r){const s=Reflect.getOwnPropertyDescriptor(i,r);if(s&&!("get"in s||"set"in s)&&e(s.value))return{value:s.value,writable:!!s.writable,enumerable:!!s.enumerable,configurable:!!s.configurable}},has(i,r){return r in i?e(i[r]):!1}};return new Proxy(t,n)}class Ze{static fromMouseEvent(e){return new Ze(e.clientX,e.clientY)}constructor(e,n){this.x=e,this.y=n}subtract(e){return new Ze(this.x-e.x,this.y-e.y)}add(e){return new Ze(this.x-e.x,this.y-e.y)}multiply(e){return new Ze(this.x*e,this.y*e)}get length(){return Math.sqrt(this.x**2+this.y**2)}equals(e){return e?e===this||e.x===this.x&&e.y===this.y:!1}}let my=0;const wy=new WeakMap,W6=Ey(),yy=6;function Cy(){my=performance.now()}function by(){return performance.now()-my<50}function X6(t){return function(...e){return Cy(),t(...e)}}function Z6(t,e,n,i,r){n=X6(n);const s=tM(r);if(t.type=="wheel"){const o=t.uiEvent,a=o.deltaMode?120:1;if(!o.deltaX&&!o.deltaY)return;s.smoother?.stop();let{x:l,y:c}=t.point;if(i){const f=$6(t.point,e,i);if(f)f.x!==void 0&&(l=f.x),f.y!==void 0&&(c=f.y);else{const h=i.mark.encoders;h.x&&!h.x2&&!h.x.constant&&(l=yr(h.x,i.datum)*e.width+e.x),h.y&&!h.y2&&!h.y.constant&&(c=(1-yr(h.y,i.datum))*e.height+e.y)}}let u=!1;Math.abs(o.deltaX)<Math.abs(o.deltaY)?u=n({x:l,y:c,xDelta:0,yDelta:0,zDelta:o.deltaY*a/300})===!0:u=n({x:l,y:c,xDelta:-o.deltaX*a,yDelta:0,zDelta:0})===!0,u&&o.preventDefault()}else if(t.type=="mousedown"&&t.mouseEvent.button===0){s.smoother&&s.smoother.stop();const o=new oh(30),a=t.mouseEvent;a.preventDefault();let l=Ze.fromMouseEvent(a);const c=f=>{const h=Ze.fromMouseEvent(f);o.push({point:h,timestamp:performance.now()});const A=h.subtract(l);n({x:l.x,y:l.y,xDelta:A.x,yDelta:A.y,zDelta:0}),l=h},u=()=>{document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",u),xy(s,o,l,n,r,{minSampleCount:5})};document.addEventListener("mouseup",u,!1),document.addEventListener("mousemove",c,!1)}else if(t.type=="touchgesture"){if(!K6(t.uiEvent))return;const o=t.uiEvent,{xDelta:a,yDelta:l,zDelta:c}=o;if(o.phase==="end"){o.pointerCount===1&&xy(s,s.touchPanEventBuffer,s.touchPanLastPoint,n,r,{minSampleCount:2,minVelocityPxPerMs:.03}),Iy(s);return}s.touchPanPointerCount!==o.pointerCount&&(Iy(s),s.touchPanPointerCount=o.pointerCount);const u=new Ze(t.point.x+a,t.point.y+l);if(s.touchPanLastPoint=u,o.pointerCount===1&&(a!==0||l!==0)&&s.touchPanEventBuffer.push({point:u,timestamp:performance.now()}),a===0&&l===0&&c===0)return;s.smoother?.stop(),n({x:t.point.x,y:t.point.y,xDelta:a,yDelta:l,zDelta:c})}}function $6(t,e,n){if(n.mark.getType()!=="link")return;const i=n.mark.encoders;if(!(i.x&&i.y&&i.x2&&i.y2))return;const r=!i.x.constant&&!i.x2.constant,s=!i.y.constant&&!i.y2.constant;if(!r&&!s)return;const o=yr(i.x,n.datum)*e.width+e.x,a=(1-yr(i.y,n.datum))*e.height+e.y,l=yr(i.x2,n.datum)*e.width+e.x,c=(1-yr(i.y2,n.datum))*e.height+e.y;let u=0,f=0;r&&(u+=(t.x-o)**2,f+=(t.x-l)**2),s&&(u+=(t.y-a)**2,f+=(t.y-c)**2);const h=i.size?+i.size(n.datum):0,A=Number.isFinite(h)?Math.max(h,yy):yy,d=A*A;if(!(Math.min(u,f)>d))return u<=f?{x:r?o:void 0,y:s?a:void 0}:{x:r?l:void 0,y:s?c:void 0}}function yr(t,e){const n=+t(e),i=t.scale;if(!i)return n;const r=eM(t.channelDef);if(i.type==="band"||i.type==="point")return Number.isFinite(r)?n+i.bandwidth()*r:n;if(i.type==="index"||i.type==="locus"){if(!Number.isFinite(r))return n;const s=i;return n+s.step()*(r-s.align())}else return n}function eM(t){return t&&"band"in t?t.band??.5:.5}function Ey(){return{smoother:void 0,touchPanEventBuffer:new oh(30),touchPanLastPoint:void 0,touchPanPointerCount:0}}function tM(t){if(!t)return W6;let e=wy.get(t);return e||(e=Ey(),wy.set(t,e)),e}function Iy(t){t.touchPanEventBuffer=new oh(30),t.touchPanLastPoint=void 0,t.touchPanPointerCount=0}function xy(t,e,n,i,r,s={}){if(!r||!n)return;const o=s.minSampleCount??5,a=s.minVelocityPxPerMs??0,l=160,c=performance.now(),u=e.get().filter(m=>c-m.timestamp<l);if(u.length<o||u.length>=5&&nM(u))return;const f=u.at(-1),h=u[0],A=f.point.subtract(h.point).multiply(1/(f.timestamp-h.timestamp));if(!Number.isFinite(A.x)||!Number.isFinite(A.y)||A.length<a)return;let d=n.x,g=n.y;t.smoother=Xf(r,m=>{i({x:m.x,y:m.y,xDelta:d-m.x,yDelta:g-m.y,zDelta:0}),d=m.x,g=m.y},150,.5,{x:d,y:g}),t.smoother({x:n.x-A.x*250,y:n.y-A.y*250})}function nM(t){const e=t[Math.floor(t.length/2)],n=e.point.subtract(t[0].point).multiply(e.timestamp-t[0].timestamp),i=t.at(-1).point.subtract(e.point).multiply(t.at(-1).timestamp-e.timestamp),r=n.length;return i.length/r<.4}class iM extends Bi{constructor(e,n,i,r,s,o){const l={...n=="locus"?rM:vy,...e};super(cM(l,n),i,r,s,`axisGrid_${e.orient}`,{blockEncodingInheritance:!0,...o}),this.axisProps=l,hn(this,{skipSubtree:!0})}getOrient(){return this.axisProps.orient}isPickingSupported(){return!1}}const vy={values:null,grid:!1,gridCap:"butt",gridColor:"lightgray",gridDash:null,gridOpacity:1,gridWidth:1,tickCount:null,tickMinStep:null},rM={...vy,chromGrid:!1,chromGridCap:"butt",chromGridColor:"gray",chromGridDash:[1,5],chromGridOpacity:1,chromGridWidth:1};function sM(t,e){const n=t,i=Yn(n.orient);return{name:"grid_lines",data:{lazy:{type:"axisTicks",channel:i,axis:t}},mark:{type:"rule",strokeDash:n.gridDash,strokeCap:n.gridCap,color:n.gridColor,size:n.gridWidth,opacity:n.gridOpacity,minBufferSize:300},encoding:{[i]:{field:"value",type:e}}}}function oM(t,e){const n=t,i=Yn(n.orient);return{name:"chromosome_lines",data:{lazy:{type:"axisGenome",channel:i}},mark:{type:"rule",strokeDash:n.chromGridDash,strokeCap:n.chromGridCap,color:n.chromGridColor,size:n.chromGridWidth,opacity:n.chromGridOpacity},encoding:{[i]:{field:"continuousStart",type:e,band:0}}}}function aM(t,e){const n=t,i=Yn(n.orient);return{name:"chromosome_fill",data:{lazy:{type:"axisGenome",channel:i}},mark:{type:"rect"},encoding:{[i]:{field:"continuousStart",type:e,band:0},[i+"2"]:{field:"continuousEnd",band:0},fill:{field:"odd",type:"nominal",scale:{domain:[!1,!0],range:[n.chromGridFillEven??"white",n.chromGridFillOdd??"white"]}},opacity:{field:"odd",type:"nominal",scale:{type:"ordinal",domain:[!1,!0],range:[n.chromGridFillEven?1:0,n.chromGridFillOdd?1:0]}}}}}function cM(t,e){const n={...t},i=[];return n.chromGrid&&(n.chromGridFillOdd||n.chromGridFillEven)&&i.push(aM(n,e)),n.chromGrid&&n.chromGridOpacity>0&&i.push(oM(n,e)),n.grid&&n.gridOpacity>0&&i.push(sM(n,e)),{name:"grid_layers",resolve:{scale:{[Yn(t.orient)]:"forced",fill:"independent",opacity:"independent"}},domainInert:!0,layer:i}}const By={anchor:"middle",frame:"group",offset:10,orient:"top",align:void 0,angle:0,baseline:"alphabetic",dx:0,dy:0,color:void 0,font:void 0,fontSize:12,fontStyle:"normal",fontWeight:"normal"},lM={orient:"left",anchor:"middle",align:"right",baseline:"middle",angle:0,fontSize:12},uM={orient:"top",anchor:"start",align:"left",baseline:"top",offset:-10,dx:10,fontSize:12},fM={start:0,middle:.5,end:1},hM={start:"left",middle:"center",end:"right"};function AM(t){if(!t)return;const e=le(t)?{text:t}:t;if(!e.text||e.orient=="none")return;const n={"track-title":lM,overlay:uM}[e.style]??{},i={...By,...n,...e};let r={},s={x:0,y:0};const o=fM[i.anchor??"middle"];switch(i.orient){case"top":s={x:o,y:1},r={baseline:"alphabetic",angle:0};break;case"right":s={x:1,y:1-o},r={baseline:"alphabetic",angle:90};break;case"bottom":s={x:o,y:0},r={baseline:"top",angle:0};break;case"left":s={x:0,y:o},r={baseline:"alphabetic",angle:-90};break}const a={...By,...r,...n,...e},l={xOffset:0,yOffset:0};switch(i.orient){case"top":l.yOffset=-a.offset;break;case"right":l.xOffset=a.offset;break;case"bottom":l.yOffset=a.offset;break;case"left":l.xOffset=-a.offset;break}return{data:{values:[{}]},mark:{type:"text",tooltip:null,clip:!1,...s,...l,text:a.text,align:a.align??hM[a.anchor],angle:a.angle,baseline:a.baseline,dx:a.dx,dy:a.dy,color:a.color,font:a.font,size:a.fontSize,fontStyle:a.fontStyle,fontWeight:a.fontWeight}}}class Sy extends Je{#e;#t=Se.ZERO;#n=Se.ZERO;#i=Se.ZERO;viewportOffset=0;#r;constructor(e,n,i={}){const r={scrollbarSize:8,scrollbarPadding:2,scrollbarMinLength:20};super({params:[{name:"scrollbarOpacity",value:1}],opacity:{expr:"scrollbarOpacity"},data:{values:[{}]},mark:{type:"rect",fill:"#b0b0b0",fillOpacity:.6,stroke:"white",strokeWidth:1,strokeOpacity:1,cornerRadius:5,clip:!1}},e.layoutParent.context,e.layoutParent,e.view,"scrollbar-"+n,{blockEncodingInheritance:!0}),hn(this,{skipSubtree:!0}),this.config=r,this.#e=n,this.#r=i.onViewportOffsetChange;const s=this.config.scrollbarPadding,o=this.config.scrollbarSize;this.#t=this.#e=="vertical"?new Se(()=>this.#n.x+this.#n.width-o-s,()=>this.#n.y+s+this.scrollOffset,()=>o,()=>this.#c()):new Se(()=>this.#n.x+s+this.scrollOffset,()=>this.#n.y+this.#n.height-o-s,()=>this.#c(),()=>o),this.#A(this.viewportOffset),this.addInteractionEventListener("mousedown",(a,l)=>{if(l.stopPropagation(),this.#a()<=0)return;const c=d=>n=="vertical"?d.clientY:d.clientX;l.mouseEvent.preventDefault();const u=this.scrollOffset,f=c(l.mouseEvent),h=d=>{const g=this.#a();if(g<=0)return;const m=sr(c(d)-f+u,0,g);this.interpolateViewportOffset({x:this.#u(m)})},A=()=>{document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",A)};document.addEventListener("mouseup",A,!1),document.addEventListener("mousemove",h,!1)})}get scrollOffset(){return this.#l(this.viewportOffset)}setViewportOffset(e,{notify:n=!0,syncSmoother:i=!1}={}){this.viewportOffset=sr(e,0,this.#f()),i&&this.#A(this.viewportOffset),n&&this.#r&&this.#r(this.viewportOffset)}#o(){const e=this.#e=="horizontal"?"width":"height",n=this.#n[e],i=this.#i[e];return i>0?Math.min(1,n/i):1}#s(){const e=this.#e=="horizontal"?"width":"height";return Math.max(0,this.#n[e]-2*this.config.scrollbarPadding)}#c(){const e=this.#s(),n=this.#o()*e,i=this.config.scrollbarMinLength;return Math.min(e,Math.max(i,n))}#a(){return Math.max(0,this.#s()-this.#c())}#l(e){const n=this.#f(),i=this.#a();return n<=0||i<=0?0:e/n*i}#u(e){const n=this.#f(),i=this.#a();return n<=0||i<=0?0:e/i*n}#f(){const e=this.#e=="horizontal"?"width":"height";return Math.max(0,this.#i[e]-this.#n[e])}render(e,n,i){super.render(e,this.#t,i)}updateScrollbar(e,n){this.#n=e.flatten(),this.#i=n,this.setViewportOffset(this.viewportOffset,{notify:!1,syncSmoother:!0})}#A(e){this.interpolateViewportOffset=Xf(this.context.animator,n=>{this.setViewportOffset(n.x,{notify:!0,syncSmoother:!1})},35,.4,{x:e})}}class dM extends Bi{constructor(e,n,i={}){const r=n(),s=Object.keys(r.intervals);if(li.every(u=>!s.includes(u)))throw new Error("SelectionRect requires at least one of the channels 'x' or 'y' to be present in the selection.");const o={name:"selectionRect",domainInert:!0,resolve:{scale:{x:"forced",y:"forced"}},data:{values:Dy(n())},encoding:{},layer:[]};s.includes("x")&&(o.encoding.x={field:"_x",type:null,title:null},o.encoding.x2={field:"_x2"}),s.includes("y")&&(o.encoding.y={field:"_y",type:null,title:null},o.encoding.y2={field:"_y2"}),o.layer.push({name:"selectionRectRect",mark:{type:"rect",clip:!0,fill:"#808080",fillOpacity:.05,stroke:"black",strokeWidth:1,strokeOpacity:.2,...i}});const a=u=>{const f=e.view.getScaleResolution(u);return`format(datum._${u}2 - datum._${u}, '.3s')`+(f.type==="locus"?" + 'b'":"")},l=i.measure=="inside"?9:i.measure=="outside"?-9:0;s.includes("x")&&l!=0&&o.layer.push({name:"selectionRectTextX",mark:{type:"text",align:"center",paddingX:5,dy:l,tooltip:null},encoding:{text:{expr:a("x")},y:s.includes("y")?{field:"_y2",type:null,title:null}:{value:1},y2:null}}),s.includes("y")&&l!=0&&o.layer.push({name:"selectionRectTextY",mark:{type:"text",align:"center",paddingY:5,dy:l,tooltip:null,angle:-90},encoding:{text:{expr:a("y")},x2:null}}),super(o,e.layoutParent.context,e.layoutParent,e.view,"selectionRect",{blockEncodingInheritance:!0}),hn(this,{skipSubtree:!0});const c=()=>{const u=n(),f=this.flowHandle?.dataSource;if(!f)throw new Error("Cannot find selection rect data source handle!");f.updateDynamicData(Dy(u))};this.registerDisposer(n.subscribe(c))}}function Dy(t){const e=t.intervals.x,n=t.intervals.y;return!e&&!n?[]:[{_x:e?.[0],_x2:e?.[1],_y:n?.[0],_y2:n?.[1]}]}class gM{constructor(e,n,i){if(this.layoutParent=n,this.view=e,this.serial=i,this.background=void 0,this.backgroundStroke=void 0,this.axes={},this.gridLines={},this.scrollbars={},this.selectionRect=void 0,this.title=void 0,this.coords=Se.ZERO,e.needsAxes.x||e.needsAxes.y){const r=e.spec,s="view"in r?r?.view:void 0,o=mM(s);o&&(this.background=new Je(o,n.context,n,e,"background"+i,{blockEncodingInheritance:!0}),hn(this.background,{skipSubtree:!0}));const a=wM(s);a&&(this.backgroundStroke=new Je(a,n.context,n,e,"backgroundStroke"+i,{blockEncodingInheritance:!0}),hn(this.backgroundStroke,{skipSubtree:!0}));const l=AM(e.spec.title);if(l){const c=new Je(l,n.context,n,e,"title"+i,{blockEncodingInheritance:!0});this.title=c,hn(this.title,{skipSubtree:!0})}}e.spec.viewportWidth!=null&&(this.scrollbars.horizontal=new Sy(this,"horizontal")),e.spec.viewportHeight!=null&&(this.scrollbars.vertical=new Sy(this,"vertical")),this.#e()}#e(){const e=this.view,n=i=>{this.view.context.glHelper.canvas.style.cursor=i};for(const[i,r]of e.paramRuntime.paramConfigs){if(!("select"in r))continue;const s=la(r.select);if(!l0(s))continue;const o=s.encodings,a=Object.fromEntries(o.map(S=>{const D=this.view.getScaleResolution(S),B=D?.getScale();if(!B||!Le(B.type))throw new Error(`No continuous scale found for interval selection param "${i}" on channel "${S}"! Scale type is "${B?.type??"none"}".`);return[S,D]})),l=o.some(S=>a[S].isZoomable()),c=s.on??(l?{type:"mousedown",filter:"event.shiftKey"}:{type:"mousedown"});if(c.type!=="mousedown")throw new Error(`Interval selection param "${i}" currently supports only "mousedown" in "on".`);const u=c.filter?lc(c.filter):()=>!0,f=pM(s.zoom,l,i),h=f?.filter?lc(f.filter):()=>!0;if(this.selectionRect)throw new Error("Only one interval selection per container is currently allowed!");let A=!1,d=!1,g=!1,m=null;const p=(S,D)=>Object.fromEntries(o.map(B=>[B,[Math.min(S[B],D[B]),Math.max(S[B],D[B])]])),w=e.paramRuntime.createExpression(i),C=S=>{e.paramRuntime.setValue(i,S)};r.value&&C({type:"interval",intervals:r.value});const y=()=>{C(a0(o)),n(null)};this.selectionRect=new dM(this,w,s.mark),this.selectionRect.initializeChildren();const I=S=>{const D={x:0,y:0},B=e.coords.normalizePoint(S.x,S.y,!0);for(const k of o){const F=a[k].getScale(),M=F.invert(k=="x"?B.x:B.y);D[k]=M+(["index","locus"].includes(F.type)?.5:0)}return D},x=S=>{const{intervals:D}=S,B=(M,O,_)=>{const H=(Z,Y)=>Y==null?null:a[Z].getScale()(Y),G=H("x",M)??_,q=H("y",O)??_;return e.coords.denormalizePoint(G,q,!0)},k=B(D.x?.[0],D.y?.[0],0),F=B(D.x?.[1],D.y?.[1],1);return Se.create(k.x,k.y,F.x-k.x,F.y-k.y)};e.addInteractionEventListener("mousedown",(S,D)=>{if(D.mouseEvent.button!=0)return;if(m=A?x(w()):null,m)n("grabbing"),d=!0;else{const O=D.point;if(Wl(w())&&(d=!0),u(D.proxiedMouseEvent))y(),g=!0;else if(Wl(w())){const H=(G,q)=>{e.removeInteractionEventListener("mouseup",H);const Z=q.point;O.subtract(Z).length<2&&y()};e.addInteractionEventListener("mouseup",H);return}else return}D.stopPropagation();const B=D.point,k=Ze.fromMouseEvent(D.mouseEvent).subtract(B),F=O=>{const _=Ze.fromMouseEvent(O).subtract(k);let H;if(m){const G=_.subtract(B),q=m.translate(G.x,G.y);H=p(I(new Ze(q.x,q.y)),I(new Ze(q.x2,q.y2)))}else H=p(I(B),I(_));for(const G of o){const q=a[G],{zoomExtent:Z}=q,Y=H[G];if(m){const ze=Y[1]-Y[0],mn=Z[0],jt=Z[1];Y[0]<mn&&(Y[0]=mn,Y[1]=mn+ze),Y[1]>jt&&(Y[1]=jt,Y[0]=jt-ze)}const we=Qy(q,Y);we?(Y[0]=we[0],Y[1]=we[1]):(Y[0]=Z[0],Y[1]=Z[0])}C({type:"interval",intervals:H})},M=()=>{document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",M),g=!1,m&&(n("move"),m=null)};document.addEventListener("mousemove",F),document.addEventListener("mouseup",M)}),e.addInteractionEventListener("click",(S,D)=>{D.mouseEvent.button==0&&d&&(D.stopPropagation(),d=!1)},!0);const E=S=>Rv(w(),I(S));e.addInteractionEventListener("dblclick",(S,D)=>{E(D.point)&&(y(),D.stopPropagation())},!0),e.addInteractionEventListener("wheel",(S,D)=>{const B=D.uiEvent;if(!(B instanceof WheelEvent)||!f||!h(py(B))||Math.abs(B.deltaX)>=Math.abs(B.deltaY)||!E(D.point))return;const k=w();if(!Wl(k))return;const F=B.deltaMode?120:1,M=2**(B.deltaY*F/300),O=I(D.point),_={...k.intervals};let H=!1;for(const G of o){const q=_[G];if(!q||q.length!==2)continue;const Z=a[G],Y=Z.getScale(),we=Om(Y,[...q],O[G],M,{onUnsupported:"identity"}),ze=Qy(Z,we);ze&&(ze[0]!==q[0]||ze[1]!==q[1])&&(_[G]=ze,H=!0)}H&&(C({...k,type:"interval",intervals:_}),B.preventDefault(),D.stopPropagation())}),e.addInteractionEventListener("mousemove",(S,D)=>{E(D.point)?g||(A=!0,m||n("move")):(A=!1,m||n(null))})}}*getChildren(){this.background&&(yield this.background),this.backgroundStroke&&(yield this.backgroundStroke),this.title&&(yield this.title),yield*Object.values(this.axes),yield*Object.values(this.gridLines),yield this.view,yield*Object.values(this.scrollbars),this.selectionRect&&(yield this.selectionRect)}async createAxes(){this.disposeAxisViews();const{view:e,axes:n,gridLines:i}=this,r=(a,l)=>{const c=a.getAxisProps();if(c===null)return;const u=c?{...c}:{};if(!u.orient){for(const f of mc[l])if(!n[f]){u.orient=f;break}if(!u.orient)throw new Error("No slots available for an axis! Perhaps a LayerView has more than two children?")}if(u.title??=a.getTitle(),!mc[l].includes(u.orient))throw new Error(`Invalid axis orientation "${u.orient}" on channel "${l}"!`);return u},s=async(a,l,c)=>{const u=r(a,l);if(u){if(n[u.orient])throw new Error(`An axis with the orient "${u.orient}" already exists!`);const f=new Ay(u,a.scaleResolution.type,this.layoutParent.context,this.layoutParent,c);n[u.orient]=f,await f.initializeChildren()}},o=async(a,l,c)=>{const u=r(a,l);if(u&&(u.grid||u.chromGrid)){const f=new iM(u,a.scaleResolution.type,this.layoutParent.context,this.layoutParent,c);i[u.orient]=f,await f.initializeChildren()}};for(const a of["x","y"])if(e.needsAxes[a]){const l=e.resolutions.axis[a];if(!l)continue;await s(l,a,e)}for(const a of["x","y"])if(e.needsAxes[a]&&e.getConfiguredOrDefaultResolution(a,"axis")!="excluded"){const l=e.getAxisResolution(a);if(!l)continue;await o(l,a,e)}if(e instanceof Bi){for(const a of e)for(const[l,c]of Object.entries(a.resolutions.axis)){const u=c.getAxisProps();u&&u.orient&&await s(c,l,a)}for(const a of e)for(const[l,c]of Object.entries(a.resolutions.axis)){const u=c.getAxisProps();u&&!u.orient&&await s(c,l,a)}}[...Object.values(n),...Object.values(i)].forEach(a=>a.visit(l=>{l instanceof Je&&l.resolve("scale")}))}disposeAxisViews(){for(const e of Object.values(this.axes))e.disposeSubtree();for(const e of Object.values(this.gridLines))e.disposeSubtree();this.axes={},this.gridLines={}}getOverhang(){const e=n=>{const i=this.axes[n];return i?Math.max(i.getPerpendicularSize()+(i.axisProps.offset??0),0):0};return new je(e("top"),e("right"),e("bottom"),e("left")).add(this.view.getOverhang())}getOverhangAndPadding(){return this.getOverhang().add(this.view.getPadding())}}function pM(t,e,n){const r=t===void 0?!e:t;if(r===!1)return;if(r===!0)return{type:"wheel"};const s=Xl(r);if(s.type!=="wheel")throw new Error(`Interval selection param "${n}" currently supports only "wheel" in "zoom".`);return s}function Qy(t,e){const n=t.getScale();return Tm(e,t.zoomExtent,{roundToIntegers:n.type==="index"||n.type==="locus"})}function mM(t){if(t?.fill||t?.fillOpacity||t?.shadowOpacity)return{data:{values:[{}]},mark:{color:t.fill,opacity:t.fillOpacity??(t.fill?1:0),type:"rect",clip:!1,tooltip:null,minHeight:1,minOpacity:0,shadowBlur:t.shadowBlur,shadowColor:t.shadowColor,shadowOffsetX:t.shadowOffsetX,shadowOffsetY:t.shadowOffsetY,shadowOpacity:t.shadowOpacity}}}function wM(t){if(!(!t||!t.stroke||t.strokeWidth===0||t.strokeOpacity===0))return{resolve:{scale:{x:"excluded",y:"excluded"},axis:{x:"excluded",y:"excluded"}},data:{values:[{x:0,y:0,x2:1,y2:0},{x:1,y:0,x2:1,y2:1},{x:1,y:1,x2:0,y2:1},{x:0,y:1,x2:0,y2:0}]},mark:{size:t.strokeWidth??1,color:t.stroke??"lightgray",strokeCap:"square",opacity:t.strokeOpacity??1,type:"rule",clip:!1,tooltip:null},encoding:{x:{field:"x",type:"quantitative",scale:null},y:{field:"y",type:"quantitative",scale:null},x2:{field:"x2"},y2:{field:"y2"}}}}const yM={pan:{baseSpeed:1,maxExtraSpeed:3,pressHalfLifeMs:30,releaseHalfLifeMs:100,holdGrowthHalfLifeMs:800,stopVelocity:.01},zoom:{baseSpeed:3,maxExtraSpeed:15,pressHalfLifeMs:10,releaseHalfLifeMs:100,holdGrowthHalfLifeMs:600,stopVelocity:.01}};class CM{#e;#t;#n;#i;#r;constructor(e=yM){this.#i=e.pan,this.#r=e.zoom,this.#e={KeyW:!1,KeyA:!1,KeyS:!1,KeyD:!1},this.#t={velocity:0,holdMs:0,direction:0},this.#n={velocity:0,holdMs:0,direction:0}}isNavigationKey(e){return e==="KeyW"||e==="KeyA"||e==="KeyS"||e==="KeyD"}handleKeyDown(e){return this.#o(e,!0)}handleKeyUp(e){return this.#o(e,!1)}reset(){this.#e.KeyW=!1,this.#e.KeyA=!1,this.#e.KeyS=!1,this.#e.KeyD=!1,this.#t.velocity=0,this.#t.holdMs=0,this.#t.direction=0,this.#n.velocity=0,this.#n.holdMs=0,this.#n.direction=0}step(e){if(e<=0)return{panDelta:0,zoomDelta:0,active:this.isActive()};{const n=ky(this.#e.KeyD,this.#e.KeyA),i=ky(this.#e.KeyW,this.#e.KeyS),r=Ry(this.#t,n,e,this.#i),s=Ry(this.#n,i,e,this.#r),o=e/1e3;return{panDelta:r*o,zoomDelta:s*o,active:this.isActive()}}}isActive(){return this.#e.KeyW||this.#e.KeyA||this.#e.KeyS||this.#e.KeyD?!0:this.#t.velocity!==0||this.#n.velocity!==0}#o(e,n){if(this.isNavigationKey(e)){const i=e;return this.#e[i]===n?!1:(this.#e[i]=n,!0)}else return!1}}function ky(t,e){return t===e?0:e?1:-1}function Ry(t,e,n,i){if(e!==0){t.direction!==e&&(t.holdMs=0),t.holdMs+=n;const r=i.maxExtraSpeed*(1-Math.pow(2,-t.holdMs/i.holdGrowthHalfLifeMs)),s=e*(i.baseSpeed+r);t.velocity=Fy(t.velocity,s,n,i.pressHalfLifeMs)}else t.holdMs=0,t.velocity=Fy(t.velocity,0,n,i.releaseHalfLifeMs),Math.abs(t.velocity)<i.stopVelocity&&(t.velocity=0);return t.direction=e,t.velocity}function Fy(t,e,n,i){return e+(t-e)*Math.pow(2,-n/i)}function ah(t){const e={x:new Set,y:new Set};return t.visit(n=>{for(const[i,r]of Object.entries(e)){const s=n.getScaleResolution(i);s&&s.isZoomable()&&r.add(s)}}),e}function ch(t){const e=ah(t).x;if(e.size===1){const n=e.values().next().value,i=t.getScaleResolution("x");return!i||i!==n?void 0:n}}class bM{#e;#t;#n=.5;#i=new CM;#r=!1;#o=0;#s=e=>{if(!this.#r)return;const n=ch(this.#t);if(!n){this.#i.reset(),this.#r=!1,this.#o=0;return}const i=Math.max(0,e-this.#o);this.#o=e;const r=this.#i.step(i);(r.panDelta!==0||r.zoomDelta!==0)&&n.zoom(2**r.zoomDelta,this.#n,r.panDelta)&&(Cy(),this.#e.animator.requestRender()),r.active?this.#e.animator.requestTransition(this.#s):(this.#r=!1,this.#o=0)};constructor({context:e,viewRoot:n}){this.#e=e,this.#t=n,this.#c()}handlePointerEvent(e,n){if(e){const i=e.view;if(typeof i.getKeyboardZoomAnchorX=="function"){const r=i.getKeyboardZoomAnchorX(n.point);Number.isFinite(r)&&(this.#n=Math.max(0,Math.min(1,r)))}else{const r=e.coords.normalizePoint(n.point.x,n.point.y);this.#n=r.x}}else return}#c(){const e=this.#e.addKeyboardListener;typeof e=="function"&&(e("keydown",n=>{EM(n)||!this.#i.isNavigationKey(n.code)||!ch(this.#t)||!this.#i.handleKeyDown(n.code)||(n.preventDefault(),this.#a())}),e("keyup",n=>{!this.#i.isNavigationKey(n.code)||!this.#i.handleKeyUp(n.code)||!ch(this.#t)||(n.preventDefault(),this.#a())}))}#a(){this.#r||(this.#r=!0,this.#o=performance.now(),this.#e.animator.requestTransition(this.#s))}}function EM(t){return!!(t.altKey||t.ctrlKey||t.metaKey||IM(t.target))}function IM(t){if(!t||typeof t!="object")return!1;const e=t;if(e.isContentEditable)return!0;if(typeof e.nodeName=="string"){const n=e.nodeName.toLowerCase();return n==="input"||n==="textarea"||n==="select"}return!1}const wc=Object.freeze({size:1,color:"#ccc",opacity:1,strokeDash:[4,4],strokeCap:"butt"});class xM{#e;#t;#n;#i=[];#r=[];#o={x:[0,0],y:[0,0]};constructor({direction:e,props:n,context:i,layoutParent:r,dataParent:s,getName:o}){this.#e=e,this.#t=n.includePlotMargin??!0;const a={...n};delete a.includePlotMargin,this.#n=this.#a(a,i,r,s,o)}get view(){return this.#n}update(e,n,i,r,s,o){this.#s(e,n,r,s),this.#c(i,o)}render(e,n,i){this.#n.render(e,n,i)}#s(e,n,i,r){if(this.#r.length=0,n<2)return;const s=this.#e==="vertical"?"column":"row",o=r?3:2;for(let a=1;a<n;a++){const c=i(s,a)-o,u=e[c],f=u?u.location:0,h=u?u.size:0;this.#r.push(f+h/2)}}#c(e,n){const i=this.#t?0:n.left,r=this.#t?e.width:e.width-n.right,s=this.#t?0:n.bottom,o=this.#t?e.height:e.height-n.top;this.#i.length=this.#r.length;for(let u=0;u<this.#r.length;u++){const f=this.#r[u],h=this.#i[u]??{};if(this.#e==="vertical")h.x=f,h.x2=f,h.y=s,h.y2=o;else{const A=e.height-f;h.x=i,h.x2=r,h.y=A,h.y2=A}this.#i[u]=h}const a=this.#n.flowHandle?.dataSource;if(!a)return;a.updateDynamicData(this.#i),this.#o.x[1]=e.width,this.#o.y[1]=e.height;const l=this.#n.getScaleResolution("x")?.getScale();l&&l.domain(this.#o.x);const c=this.#n.getScaleResolution("y")?.getScale();c&&c.domain(this.#o.y)}#a(e,n,i,r,s){const o=BM(e),a=this.#e==="horizontal"?s("separatorHorizontal"):s("separatorVertical"),l=new Je(o,n,i,r,a,{blockEncodingInheritance:!0});return hn(l,{skipSubtree:!0}),l}}function vM(t){if(!t)return null;const e=t===!0?{...wc}:{...wc,...t};return e.strokeDash===wc.strokeDash&&(e.strokeDash=wc.strokeDash.slice()),e}function BM(t){return{domainInert:!0,data:{values:[]},resolve:{scale:{x:"excluded",y:"excluded"},axis:{x:"excluded",y:"excluded"}},mark:{...t,type:"rule",clip:t.clip??!1,tooltip:null},encoding:{x:{field:"x",type:"quantitative",scale:{nice:!1,zero:!1}},y:{field:"y",type:"quantitative",scale:{nice:!1,zero:!1}},x2:{field:"x2"},y2:{field:"y2"}}}}class SM extends ao{#e=1/0;#t=10;#n=[];#i={};#r=0;#o={};#s=null;constructor(e,n,i,r,s,o,a){super(e,n,i,r,s,a),this.spec=e,this.#t=e.spacing??10,this.#e=o,this.#n=[],this.wrappingFacet=!1;const l=vM(e.separator);if(l)for(const c of kM(e))this.#o[c]=new xM({direction:c,props:l,context:this.context,layoutParent:this,dataParent:this,getName:u=>this.getNextAutoName(u)});this.layoutParent||(this.#s=new bM({context:this.context,viewRoot:this}))}appendChild(e){this.appendChildView(e)}appendChildView(e){return this.insertChildViewAt(e,this.#n.length)}insertChildViewAt(e,n){e.layoutParent??=this;const i=new gM(e,this,this.#r);return this.#r++,this.#n.splice(n,0,i),this.invalidateSizeCache(),i}removeChildView(e){const n=this.#n.findIndex(i=>i.view===e);if(n<0)throw new Error("Not my child view!");this.removeChildAt(n)}removeChildAt(e){const n=this.#n[e];if(!n)throw new Error("Child index out of range!");this.#l(n),this.#n.splice(e,1),this.invalidateSizeCache()}get#c(){return this.#n.filter(e=>e.view.isConfiguredVisible())}get#a(){return new hy(this.#c.length,this.#e??1/0)}setChildren(e){for(const n of this.#n)this.#l(n);this.#n=[];for(const n of e)this.appendChild(n);this.invalidateSizeCache()}#l(e){e.disposeAxisViews();for(const n of e.getChildren())n.disposeSubtree()}get children(){return this.#n.map(e=>e.view)}get childCount(){return this.#n.length}async createAxes(){await this.syncSharedAxes(),await Promise.all(this.#n.map(e=>e.createAxes()))}async syncSharedAxes(){for(const n of Object.values(this.#i))n.disposeSubtree();this.#i={};const e=[];for(const n of li){const i=this.resolutions.axis[n];if(!i)continue;const r=i.getAxisProps();if(!r)continue;const s={title:i.getTitle(),orient:mc[n][0],...r},o=new Ay(s,i.scaleResolution.type,this.context,this,this);e.push(o.initializeChildren()),this.#i[n]=o}await Promise.all(e)}*[Symbol.iterator](){for(const e of this.#n)yield*e.getChildren();for(const e of Object.values(this.#o))yield e.view;for(const e of Object.values(this.#i))yield e}#u(e){const n=e=="column"?"width":"height",i=(r,s)=>r.map(o=>{const l=this.#c[o].getOverhangAndPadding();return e=="column"?s?l.right:l.left:s?l.bottom:l.top}).reduce((o,a)=>Math.max(o,a),0);return this._cache(`size/directionSizes/${e}`,()=>this.#a[e=="column"?"colIndices":"rowIndices"].map(r=>({axisBefore:i(r,0),axisAfter:i(r,1),view:k8(r.map(s=>this.#c[s].view.getViewportSize()[n]))})))}#f(e){const n=this.#u(e),i=[];i.push(Zs);for(const[r,s]of n.entries())r>0&&i.push({px:this.#t,grow:0}),(r==0||this.wrappingFacet)&&i.push(Zs),i.push({px:s.axisBefore,grow:0}),i.push(s.view),i.push({px:s.axisAfter,grow:0}),(r==n.length-1||this.wrappingFacet)&&i.push(Zs);return i}#A(e){let n=0,i=0;const r=e=="row"?this.spec.height:this.spec.width;if(r||r===0)return zm(r);const s=this.#u(e);for(const[o,a]of s.entries())o>0&&(i+=this.#t),(o==0||this.wrappingFacet)&&(i+=0),i+=a.axisBefore,i+=a.view.px??0,n+=a.view.grow??0,i+=a.axisAfter,(o==s.length-1||this.wrappingFacet)&&(i+=0);return{px:i,grow:n}}#g(e,n){return e=="row"&&this.wrappingFacet?1+6*n+2:2+4*n+1}getOverhang(){return this.#h().union(this.#d())}#h(){const e=this.#u("column"),n=this.#u("row");return!e.length||!n.length?je.zero():new je(n.at(0).axisBefore,e.at(-1).axisAfter,n.at(-1).axisAfter,e.at(0).axisBefore)}#d(){const e=n=>{const i=rh[n],r=this.#i[i];return r?.axisProps.orient!==n?0:Math.max(r.getPerpendicularSize()+(r.axisProps.offset??0),0)};return new je(e("top"),e("right"),e("bottom"),e("left"))}getSize(){return this._cache("size",()=>new Gn(this.#A("column"),this.#A("row")).addPadding(this.#d()))}render(e,n,i={}){if(super.render(e,n,i),!this.isConfiguredVisible())return;this.layoutParent||(n=n.shrink(this.getPadding())),n=n.shrink(this.#d()),e.pushView(this,n);const r=e.getDevicePixelRatio(),s={devicePixelRatio:r},o=Um(this.#f("column"),n.width,s),a=Um(this.#f("row"),n.height,s),l=new hy(this.#c.length,this.#e??1/0),c=d=>Math.round(d*r)/r,u=[];for(const[d,g]of this.#c.entries()){const{view:m,axes:p,gridLines:w,background:C,backgroundStroke:y,title:I,selectionRect:x}=g,[E,S]=l.getCellCoords(d),D=o[this.#g("column",E)],B=a[this.#g("row",S)],k=m.getViewportSize(),F=m.getSize(),M=m.getOverhang(),O=D.location-M.left,_=B.location-M.top,H=(U,W)=>(U[W].grow?(W=="width"?D:B).size:U[W].px)+M[W],G=H(k,"width"),q=H(k,"height"),Z=H(F,"width"),Y=H(F,"height"),we=g.scrollbars.horizontal,ze=g.scrollbars.vertical,mn=we?()=>c(we.viewportOffset):()=>0,jt=ze?()=>c(ze.viewportOffset):()=>0,wn=new Se(()=>n.x+O,()=>n.y+_,()=>G,()=>q),Oi=m.isScrollable(),Qo=Oi?new Se(()=>n.x+O-mn(),()=>n.y+_-jt(),()=>Z,()=>Y):wn;g.coords=wn;const Vr=i.clipRect?wn.intersect(i.clipRect):wn;u.push({col:E,row:S,view:m,axes:p,gridLines:w,background:C,backgroundStroke:y,title:I,selectionRect:x,viewportCoords:wn,viewCoords:Qo,clippedChildCoords:Vr,viewWidth:Z,viewHeight:Y,scrollable:Oi,gridChild:g})}for(const d of u)d.background?.render(e,d.clippedChildCoords,{...i,clipRect:void 0});const f=this.#h(),h=this.#o.vertical;h&&(h.update(o,l.nCols,n,(d,g)=>this.#g(d,g),this.wrappingFacet,f),h.render(e,n,i));const A=this.#o.horizontal;A&&(A.update(a,l.nRows,n,(d,g)=>this.#g(d,g),this.wrappingFacet,f),A.render(e,n,i));for(const d of u){const{view:g,axes:m,gridLines:p,backgroundStroke:w,title:C,selectionRect:y,viewportCoords:I,viewCoords:x,clippedChildCoords:E,viewWidth:S,viewHeight:D,scrollable:B,gridChild:k,col:F,row:M}=d;for(const _ of Object.values(p))_.render(e,I,i);const O=DM(g)||B;O&&g.render(e,x,{...i,clipRect:E}),w?.render(e,E,{...i,clipRect:void 0});for(const[_,H]of Object.entries(m)){const G=_=="left"||_=="right"?"vertical":"horizontal",q=k.scrollbars[G],Z=q?I.modify(G=="vertical"?{y:()=>x.y,height:D}:{x:()=>x.x,width:S}):I,Y=My(Z,_,H);let we=i.clipRect;q&&(we=Y.intersect(we).intersect(q?I.modify(G=="vertical"?{x:-1e5,width:2e5}:{y:-1e5,height:2e5}):void 0)),H.render(e,Y,{...i,clipRect:we})}for(const _ of Object.values(this.#i)){const G=_.axisProps.orient;(G=="left"&&F==0||G=="right"&&F==l.nCols-1||G=="top"&&M==0||G=="bottom"&&M==l.nRows-1)&&_.render(e,My(I.shrink(k.view.getOverhang()),G,_),i)}O||g.render(e,x,i),y?.render(e,x,i);for(const _ of Object.values(k.scrollbars))_.updateScrollbar(I,x),_.render(e,n,i);C?.render(e,I,i)}e.popView(this)}propagateInteractionEvent(e){if(this.handleInteractionEvent(void 0,e,!0),e.stopped)return;const n=this.#c.find(r=>r.coords.containsPoint(e.point.x,e.point.y)),i=n?.view;if(e.type==="wheelclaimprobe"){if(!i)return;Ny(i)?QM(i)&&e.claimWheel():i.propagateInteractionEvent(e);return}this.#s?.handlePointerEvent(n,e);for(const r of Object.values(n?.scrollbars??{}))if(r.coords.containsPoint(e.point.x,e.point.y)&&(r.propagateInteractionEvent(e),e.stopped))return;if(i){if(i.propagateInteractionEvent(e),e.stopped)return;Ny(i)&&Z6(e,n.coords,r=>this.#p(n.coords,n.view,r),this.context.getCurrentHover(),this.context.animator)}e.stopped||this.handleInteractionEvent(void 0,e,!1)}#p(e,n,i){let r=!1,s=!1;const o=e.normalizePoint(i.x,i.y),a=e.normalizePoint(i.x+i.xDelta,i.y+i.yDelta),l={x:a.x-o.x,y:a.y-o.y};for(const[c,u]of Object.entries(ah(n)))if(!(u.size<=0)){r=!0;for(const f of u)s=f.zoom(2**i.zDelta,c=="y"?1-o[c]:o[c],c=="x"?l.x:-l.y)||s}return s&&this.context.animator.requestRender(),r}getDefaultResolution(e,n){return"independent"}}function DM(t){let e=!0;return t.visit(n=>{n instanceof Je&&(e&&=n.mark.properties.clip===!0)}),e}function QM(t){const e=ah(t);return e.x.size>0||e.y.size>0}function Ny(t){return t instanceof Je||t instanceof Bi}function kM(t){return"vconcat"in t?["horizontal"]:"hconcat"in t?["vertical"]:["horizontal","vertical"]}function My(t,e,n){const i=n.axisProps,r=n.getPerpendicularSize();if(e=="bottom")return t.translate(0,t.height+i.offset).modify({height:r});if(e=="top")return t.translate(0,-r-i.offset).modify({height:r});if(e=="left")return t.translate(-r-i.offset,0).modify({width:r});if(e=="right")return t.translate(t.width+i.offset,0).modify({width:r})}class lh extends SM{constructor(e,n,i,r,s){super(e,n,i,r,s,pc(e)?e.columns:co(e)?1:1/0),this.spec=e}async initializeChildren(){const e=this.spec,n=pc(e)?e.concat:co(e)?e.vconcat:e.hconcat;this.setChildren(await Promise.all(n.map(i=>this.context.createOrImportView(i,this,this,this.getNextAutoName("grid"))))),await this.createAxes()}async addChildSpec(e,n){return this.#t().addChildSpec(e,n)}async removeChildAt(e){await this.#t().removeChildAt(e)}getDefaultResolution(e,n){return n=="axis"?"independent":co(this.spec)&&e==="x"||fy(this.spec)&&e==="y"?"shared":"independent"}#e(){const e=this.spec;let n;return pc(e)?n=e.concat:co(e)?n=e.vconcat:n=e.hconcat,{specs:n,insertAt:(i,r)=>{n.splice(i,0,r)},removeAt:i=>{n.splice(i,1)}}}#t(){return new oy(this,{getChildSpecs:this.#e.bind(this),insertView:(e,n)=>this.insertChildViewAt(e,n),removeView:e=>super.removeChildAt(e),prepareView:async(e,n,i)=>{await i.createAxes(),await this.syncSharedAxes()},afterRemove:async()=>{await this.syncSharedAxes()},defaultName:()=>this.getNextAutoName("grid")})}}const Ty="viewRoot";class RM{#e=new Map;constructor(e={}){this.options={allowImport:!0,wrapRoot:!0,...e};const n=i=>(r,s,o,a,l)=>new i(r,s,o,a,l);this.addViewType(nh,n(Bi)),this.addViewType(eh,((i,r,s,o,a)=>new Bi(_6(i),r,s,o,a))),this.addViewType(th,n(Je)),this.addViewType(co,n(lh)),this.addViewType(fy,n(lh)),this.addViewType(pc,n(lh))}addViewType(e,n){this.#e.set(e,n)}createView(e,n,i,r,s){for(const[o,a]of this.#e)if(o(e))return a(e,n,i,r,s);throw NM(e)?new Error("SampleView is not supported by the @genome-spy/core package. Use @genome-spy/app instead!"):new Error("Invalid spec, cannot figure out the view type from the properties: "+JSON.stringify([...Object.keys(e)]))}isViewSpec(e){const n=[...this.#e.keys()].filter(i=>i(e));if(n.length>1)throw new Error("Ambiguous spec. Cannot create a view!");return n.length==1}async createOrImportView(e,n,i,r,s,o){let a;const l=uy(e)?e.name??null:void 0;if(uy(e)){let h;if("url"in e.import)if(this.options.allowImport)h=await lF(e,r.getBaseUrl(),n);else throw new Ye("Importing views is not allowed!",i);else if("template"in e.import)h=Py(e.import.template,r);else throw new Error("Invalid import: "+JSON.stringify(e));o?.(h),FM(h,e),a=h}else a=e;const c=h=>h?.params?.some(A=>Zl(A)&&la(A.select).type=="interval");let u=!1;!r&&this.options.wrapRoot&&(th(a)||nh(a)||eh(a)||c(a))&&s===Ty&&(a={name:"implicitRoot",vconcat:[a]},u=!0);const f=this.createView(a,n,i,r,s);return l!==void 0&&S6(f,l),u&&hn(f),f instanceof ao&&await f.initializeChildren(),f.registerStepSizeInvalidation(),f}}function Py(t,e){const n=e.spec?.templates?.[t];if(n)return structuredClone(n);if(e.dataParent)return Py(t,e.dataParent);throw new Error(`Cannot find template "${t}" in current view or its ancestors!`)}function FM(t,e){e.name!=null&&(t.name=e.name),e.visible!=null&&(t.visible=e.visible);const n=be(e.params)?e.params:Ge(e.params)?Object.entries(e.params).map(([i,r])=>({name:i,value:r})):[];if(n.length){t.params??=[];for(const i of n){const r=t.params.findIndex(s=>s.name==i.name);r>=0&&(t.params[r]=i)}for(const i of n)t.params.some(r=>r.name==i.name)||t.params.push(i)}}function NM(t){return"samples"in t&&Ge(t.samples)&&"spec"in t&&Ge(t.spec)}class MM{constructor(e,n){this.animator=e,this.disabled=!!n,this.maxDistance=500,this.callback=null,this.targetValue=0,this.lastValue=0,this.smoother=Xf(e,i=>{const r=i.x-this.lastValue;this.lastValue=i.x,this.callback?.(r)},40,.1,{x:0})}cancel(){this.lastValue!==this.targetValue&&(this.targetValue=RA([this.lastValue,this.targetValue],.3),this.smoother({x:this.targetValue}))}setMomentum(e,n){if(this.disabled){n(e);return}this.callback=n;const i=sr(this.targetValue+e-this.lastValue,-this.maxDistance,this.maxDistance);this.targetValue=this.lastValue+i,this.smoother({x:this.targetValue})}}function TM(t){const e={},n=["string","number","boolean"],i=["wheelDelta","wheelDeltaX","wheelDeltaY"];for(const r in t){const s=r;!i.includes(r)&&n.includes(typeof t[s])&&(e[s]=t[s])}return e}class PM{#e;#t;#n;#i;#r;#o;#s;#c;#a;#l;#u;#f;constructor({viewRoot:e,glHelper:n,tooltip:i,animator:r,emitEvent:s,tooltipHandlers:o,renderPickingFramebuffer:a,getDevicePixelRatio:l}){this.#e=e,this.#t=n,this.#n=i,this.#i=r,this.#r=s,this.#o=o,this.#s=a,this.#c=l,this.#a=void 0,this.#l=new MM(this.#i),this.#u=void 0,this.#f=!1}getCurrentHover(){return this.#a}registerInteractionEvents(){const e=this.#t.canvas;let n=performance.now(),i=!1,r;const s=(h,A)=>{const d=new j6(h,A);return this.#e.propagateInteractionEvent(d),this.#f||this.#n.clear(),d},o=h=>{const A=performance.now(),d=A-n<200;if(h instanceof MouseEvent){const g=e.getBoundingClientRect(),m=new Ze(h.clientX-g.left-e.clientLeft,h.clientY-g.top-e.clientTop);h.type=="mousemove"&&!d&&(this.#n.handleMouseMove(h),this.#f=!1,h.buttons==0&&!by()&&(this.#s(),this.#A(m.x,m.y)));const p=w=>{s(m,w)};if(h.type!="wheel"&&this.#l.cancel(),(h.type=="mousedown"||h.type=="mouseup")&&!by())this.#s();else if(h.type=="wheel"){n=A,this.#f=!1;const w=h;if(Math.abs(w.deltaX)>Math.abs(w.deltaY))this.#a=null,this.#l.cancel();else if(s(m,{type:"wheelclaimprobe"}).wheelClaimed){const y=TM(w);this.#l.setMomentum(w.deltaY*(w.deltaMode?80:1),I=>{const x=new WheelEvent("wheel",{...y,deltaMode:0,deltaX:0,deltaY:I});p(x)}),w.preventDefault();return}else this.#l.cancel()}if(h.type=="click"){if(i)return;const w=this.#a?{type:h.type,viewPath:this.#a.mark.unitView.getLayoutAncestors().map(C=>C.name).reverse(),datum:this.#a.datum}:{type:h.type,viewPath:null,datum:null};this.#r("click",w)}(h.type!="click"||this.#u?.subtract(Ze.fromMouseEvent(h)).length<3)&&p(h)}};["mousedown","mouseup","wheel","click","mousemove","contextmenu","dblclick"].forEach(h=>e.addEventListener(h,o));const a=(h,A)=>{const d=e.getBoundingClientRect();return new Ze(h-d.left-e.clientLeft,A-d.top-e.clientTop)},l=h=>{if(h.length<=0)return;const A=h[0];if(h.length===1)return{pointerCount:1,centerX:A.clientX,centerY:A.clientY,distance:0};const d=h[1];return{pointerCount:2,centerX:(A.clientX+d.clientX)/2,centerY:(A.clientY+d.clientY)/2,distance:LM(A,d)}},c=(h,A,d,g,m,p,w)=>{const C=a(h,A);s(C,{type:"touchgesture",phase:d,pointerCount:g,xDelta:m,yDelta:p,zDelta:w})},u=h=>{h.preventDefault(),this.#l.cancel(),this.#f=!1;const A=l(h.touches);if(!A){r=void 0;return}if(!r||r.pointerCount!==A.pointerCount){r=A;return}const d=A.centerX-r.centerX,g=A.centerY-r.centerY,m=A.pointerCount===2?OM(r.distance,A.distance):0;(d!==0||g!==0||m!==0)&&Number.isFinite(d)&&Number.isFinite(g)&&Number.isFinite(m)&&c(r.centerX,r.centerY,"move",A.pointerCount,d,g,m),r=A},f=h=>{h.preventDefault(),this.#f=!1,r&&h.touches.length===0&&c(r.centerX,r.centerY,"end",r.pointerCount,0,0,0),r=l(h.touches)};e.addEventListener("touchstart",u,{passive:!1}),e.addEventListener("touchmove",u,{passive:!1}),e.addEventListener("touchend",f,{passive:!1}),e.addEventListener("touchcancel",f,{passive:!1}),e.addEventListener("mousedown",h=>{this.#u=Ze.fromMouseEvent(h),this.#n.sticky?(this.#n.sticky=!1,this.#n.clear(),i=!0):i=!1;const A=()=>{document.addEventListener("mouseup",()=>this.#n.popEnabledState(),{once:!0}),this.#n.pushEnabledState(!1)};if(h.button==2||h.shiftKey||h.ctrlKey||h.metaKey)A();else if(this.#n.visible){const d=setTimeout(()=>{i=!0,this.#n.sticky=!0},400),g=()=>clearTimeout(d);document.addEventListener("mouseup",g,{once:!0}),document.addEventListener("mousemove",g,{once:!0})}}),e.addEventListener("dragstart",h=>h.stopPropagation()),e.addEventListener("mouseout",()=>{this.#n.clear(),this.#a=null})}#A(e,n){const i=this.#c(),r=Ak(this.#t.gl,this.#t._pickingBufferInfo,e*i,n*i),s=r[0]|r[1]<<8|r[2]<<16|r[3]<<24;if(s==0){this.#a=null;return}if(s!==this.#a?.uniqueId&&(this.#a=null),this.#a||this.#e.visit(o=>{if(o instanceof Je){if(o.mark.isPickingParticipant()&&[...o.facetCoords.values()].some(a=>a.containsPoint(e,n))){const a=o.getCollector().findDatumByUniqueId(s);a&&(this.#a={mark:o.mark,datum:a,uniqueId:s})}if(this.#a)return pr}}),this.#a){const o=this.#a.mark;this.updateTooltip(this.#a.datum,async a=>{if(!o.isPickingParticipant())return;const l=o.properties.tooltip;if(l!==null){const c=l?.handler??"default",u=this.#o[c];if(!u)throw new Error("No such tooltip handler: "+c);const f=Jw(a,o,l?.params);return u(a,o,l?.params,f)}})}}updateTooltip(e,n){if(!this.#f||!e)this.#n.updateWithDatum(e,n),this.#f=!0;else throw new Error("Tooltip has already been updated! Duplicate event handler?")}}function LM(t,e){const n=e.clientX-t.clientX,i=e.clientY-t.clientY;return Math.hypot(n,i)}function OM(t,e){return t<=0||e<=0?0:Math.log2(t/e)}class Ly{constructor(e){this.globalOptions=e}pushView(e,n){}popView(e){}renderMark(e,n){}getDevicePixelRatio(){return 1}}class uh extends Ly{#e=[0,0,0,0];#t;#n=[];#i;#r;#o=new Set;#s=void 0;#c=1;#a={width:0,height:0};constructor(e,n){if(super(e),this.#r=n.webGLHelper,this.#i=n.framebufferInfo,this.#c=n.devicePixelRatio,this.#a=n.canvasSize,n.clearColor){const i=Ln(n.clearColor).rgb();this.#e=[i.r/255,i.g/255,i.b/255,i.opacity]}}getDevicePixelRatio(){return this.#c}pushView(e,n){this.#o.add(e),this.#s=n}renderMark(e,n){if(this.globalOptions.picking&&!e.isPickingParticipant())return;const i=e.render(n);i&&this.#n.push({mark:e,callback:i,coords:this.#s,clipRect:n.clipRect})}render(){if(this.#t||this.#l(),this.#t.length==0)return;const e=this.#r.gl,n=this.#i;n?(e.bindFramebuffer(e.FRAMEBUFFER,n.framebuffer),e.viewport(0,0,n.width,n.height)):e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),e.disable(e.SCISSOR_TEST),e.clearColor(...this.#e),e.clear(e.COLOR_BUFFER_BIT);for(const i of this.#o)i.onBeforeRender();for(const i of this.#t)i();this.#i&&e.bindFramebuffer(e.FRAMEBUFFER,null)}#l(){this.#t=[];let e=!0,n=!0;const i=o=>()=>{e&&o()},r=o=>()=>{e&&n&&o()},s=Go(this.#n.reverse(),o=>o.mark);for(const[o,a]of[...s.entries()].reverse()){if(!o.isReady())continue;this.#t.push(()=>{e=o.unitView.getEffectiveOpacity()>0}),this.#t.push(...o.prepareRender(this.globalOptions).map(c=>i(c)));let l;for(const c of a){const u=c.coords;u.equals(l)||this.#t.push(i(()=>{n=o.setViewport(this.#a,this.#c,u,c.clipRect)})),this.#t.push(r(c.callback)),l=c.coords}}}}class UM extends Ly{constructor(...e){super({}),this.contexts=e}pushView(e,n){for(const i of this.contexts)i.pushView(e,n)}popView(e){for(const n of this.contexts)n.popView(e)}renderMark(e,n){for(const i of this.contexts)i.renderMark(e,n)}}class _M{#e;#t;#n;#i;#r;#o;#s;#c;constructor({viewRoot:e,glHelper:n,getBackground:i,broadcast:r,onLayoutComputed:s}){this.#e=e,this.#t=n,this.#n=i,this.#i=r,this.#r=s,this.#o=void 0,this.#s=void 0,this.#c=!1}computeLayout(){const e=this.#e;if(!e)return;this.#i("layout");const n=this.#t.getLogicalCanvasSize();if(isNaN(n.width)||isNaN(n.height)){console.log(`NaN in canvas size: ${n.width}x${n.height}. Skipping computeLayout().`);return}const i={webGLHelper:this.#t,canvasSize:n,devicePixelRatio:this.#t.getDevicePixelRatio(n)};this.#o=new uh({picking:!1},{...i,clearColor:this.#n()}),this.#s=new uh({picking:!0},{...i,framebufferInfo:this.#t._pickingBufferInfo}),e.render(new UM(this.#o,this.#s),Se.create(0,0,n.width,n.height)),this.#r(),this.#i("layoutComputed")}renderAll(){this.#o?.render(),this.#c=!0}renderPickingFramebuffer(){this.#c&&(this.#s.render(),this.#c=!1)}}function zM(t){const e=o=>{throw new Error("ViewContext."+o+" is not configured.")},n={dataFlow:t.dataFlow??e("dataFlow"),glHelper:t.glHelper??e("glHelper"),animator:t.animator??e("animator"),genomeStore:t.genomeStore,fontManager:t.fontManager??e("fontManager"),createOrImportView:async function(o,a,l,c,u){const f=t.createOrImportViewWithContext;return f?f(n,o,a,l,c,u):Promise.reject(new Error("ViewContext.createOrImportView is not configured."))}},i=["requestLayoutReflow","updateTooltip","getNamedDataFromProvider","getCurrentHover","addKeyboardListener","addBroadcastListener","removeBroadcastListener","highlightView","isViewConfiguredVisible","isViewSpec"],r=t,s=n;for(const o of i)s[o]=r[o]??(()=>e(o));return n}function GM({glHelper:t,viewRoot:e,logicalWidth:n,logicalHeight:i,devicePixelRatio:r,clearColor:s="white"}){n??=t.getLogicalCanvasSize().width,i??=t.getLogicalCanvasSize().height,r??=window.devicePixelRatio??1;const o=t.gl,a=Math.floor(n*r),l=Math.floor(i*r),c=xg(o,[{format:o.RGBA,type:o.UNSIGNED_BYTE,minMag:o.LINEAR,wrap:o.CLAMP_TO_EDGE}],a,l),u=new uh({picking:!1},{webGLHelper:t,canvasSize:{width:n,height:i},devicePixelRatio:r,clearColor:s,framebufferInfo:c});return e.render(u,Se.create(0,0,n,i)),u.render(),dk(o,c,"image/png")}async function HM(){const{parquetReadObjects:t}=await Promise.resolve().then(()=>f7);return t}async function Oy(t){const e=await HM(),n=t instanceof Uint8Array?t.buffer:t;return await e({file:n})}Oy.responseType="arrayBuffer";const YM=/^\s*$/,VM=/^\s*(?:browser\b|track\b|#)/;let Uy;async function JM(){return Uy??=Promise.resolve().then(()=>SC).then(t=>t.default),Uy}async function qM(t){const e=await JM(),n=new e;let i=!1;const r=[],s=t.split(/\r?\n/);for(let o=0;o<s.length;o++){const a=s[o];if(a.length!=0){if(!i){if(YM.test(a)||VM.test(a))continue;i=!0}try{r.push(n.parseLine(a))}catch(l){throw new Error(`Cannot parse BED line ${o+1}: ${l.message}`)}}}return r}const _y=/^\s*$/,KM=/^\s*(?:browser\b|track\b|#)/,zy=["chrom1","start1","end1","chrom2","start2","end2","name","score","strand1","strand2"],lo=zy.slice(0,6),Gy=t=>t,fh=t=>t=="."?null:t,Hy=t=>t=="+"?1:t=="-"?-1:0,yc=t=>{if(t=="."||t=="-1"||t=="")return null;const e=Number(t);return Number.isInteger(e)?e:null},jM={chrom1:fh,chrom2:fh,name:fh,strand1:Hy,strand2:Hy,start1:yc,end1:yc,start2:yc,end2:yc,score:t=>{if(t=="."||t=="")return null;const e=Number(t);return Number.isNaN(e)?t:e}};function WM(t){if(t.length<lo.length)return!1;for(let e=0;e<lo.length;e++)if(t[e]!=lo[e])return!1;return!0}function XM(t,e={}){const n=t.split(/\r?\n/),i=e.columns;let r=!1,s=!1,o=0;const a=[],l=[],c=[];for(const u of n){if(o++,u.length==0)continue;if(!r){if(_y.test(u)||KM.test(u))continue;r=!0}if(_y.test(u))continue;const f=u.split(" ");if(!s){const A=i||(WM(f)?f:zy);for(const d of A)a.push(d),l.push(jM[d]??Gy);if(s=!0,!i&&A==f)continue}for(;a.length<f.length;)a.push("field"+(a.length+1)),l.push(Gy);if(f.length<lo.length)throw new Error(`BEDPE line ${o} has ${f.length} columns, expected at least ${lo.length}.`);const h={};for(let A=0;A<f.length;A++){const d=a[A];h[d]=l[A](f[A])}c.push(h)}return c}function ZM(t){if(t.genome&&t.genomes)throw new Error("Do not mix deprecated `genome` with `genomes`. Use only `genomes` and `assembly`.");if(t.genome&&t.assembly)throw new Error("Do not mix deprecated `genome` with root `assembly`. Use `genomes` and `assembly`.");if(t.genome){const{name:i,...r}=t.genome;return{genomesByName:new Map([[i,r]]),defaultAssembly:i,deprecationWarning:$M()}}const e=new Map;for(const[i,r]of Object.entries(t.genomes??{}))e.set(i,r??{});let n=t.assembly;if(!n&&e.size===1&&(n=e.keys().next().value),n&&!e.has(n)&&!eT(n))throw new Error(`Root assembly "${n}" is neither defined in \`genomes\` nor a built-in assembly.`);return{genomesByName:e,defaultAssembly:n,deprecationWarning:void 0}}function $M(){return'Root `genome` is deprecated and will be removed in a future version. Use root `genomes` and `assembly` instead. Built-in migration example: {"genome":{"name":"hg38"}} -> {"assembly":"hg38"}.'}function eT(t){try{return wm(t),!0}catch{return!1}}function tT(t,e,n){const i=iT(t,n);if(!i.size)return!0;for(const r of i)if(!rT(r))return!1;return!0}function nT(t,e,n,i,r){const s=r??(o=>o.isConfiguredVisible());return new Promise((o,a)=>{const l=new Set,c=new Set,u=()=>{A(),h()},f=()=>{for(const g of l)g();l.clear(),t.removeBroadcastListener("subtreeDataReady",u),i&&i.removeEventListener("abort",d)},h=()=>{tT(e,n,s)&&(f(),o())},A=()=>{e.visit(g=>{if(!(g instanceof Je)||!s(g))return;const m=g.flowHandle?.collector;m&&(c.has(m)||(c.add(m),l.add(m.observe(h))))})},d=()=>{f(),a(new Error("Lazy subtree readiness was aborted."))};if(A(),h(),t.addBroadcastListener("subtreeDataReady",u),i){if(i.aborted){d();return}i.addEventListener("abort",d,{once:!0})}})}function iT(t,e){const n=e??(r=>r.isConfiguredVisible()),i=new Set;return t.visit(r=>{if(!(r instanceof Je)||!n(r))return;let s=r;for(;s&&!(s.flowHandle&&s.flowHandle.dataSource);)s=s.dataParent;if(!s||!s.flowHandle)return;const o=s.flowHandle.dataSource;o instanceof hc&&i.add(o)}),i}function rT(t,e){const n={[t.channel]:Array.from(t.scaleResolution.getDomain())};return t.isDataReadyForDomain(n)}ci("fasta",a6),ci("parquet",Oy),ci("bed",qM),ci("bedpe",XM);class Yy{#e=[];#t;#n;#i;#r;#o;#s;#c=new pv;#a=new Vd;#l=new Vd;constructor(e,n,i={}){this.container=e,this.options=i,i.inputBindingContainer??="default",this.spec=n,this.viewFactory=new RM,this.namedDataProviders=[],this.animator=new $N(()=>this.renderAll()),this.genomeStore=void 0,this.viewVisibilityPredicate=r=>r.isVisibleInSpec(),this.tooltipHandlers={default:v6,refseqgene:l6,...i.tooltipHandlers??{}},this.viewRoot=void 0,this.#r=new Nv(e,i),this.dpr=window.devicePixelRatio}get#u(){return this.container.querySelector(".canvas-wrapper")}#f(){this.#r.initialize(this.viewRoot)}registerNamedDataProvider(e){this.namedDataProviders.unshift(e)}getNamedDataFromProvider(e){for(const n of this.namedDataProviders){const i=n(e);if(i)return i}}updateNamedData(e,n){const i=this.viewRoot.context.dataFlow.findNamedDataSource(e);if(!i)throw new Error("No such named data source: "+e);i.dataSource.updateDynamicData(n),this.animator.requestRender()}addEventListener(e,n){this.#a.add(e,n)}removeEventListener(e,n){this.#a.remove(e,n)}broadcast(e,n){const i={type:e,payload:n};this.viewRoot.visit(r=>r.handleBroadcast(i)),this.#l.emit(e,i)}#A(){this.dpr=this.#s.getDevicePixelRatio();const e=this.viewRoot.paramRuntime.allocateSetter("devicePixelRatio",this.dpr),n=()=>{this.#s.invalidateSize(),this.dpr=this.#s.getDevicePixelRatio(),e(this.dpr),this.computeLayout(),this.renderAll()};if(this.viewRoot.getSize().isGrowing()){const s=new ResizeObserver(n);s.observe(this.container),this.#e.push(()=>s.disconnect())}let i=null;const r=()=>{i!=null&&(i(),n());const s=matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`);s.addEventListener("change",r),i=()=>{s.removeEventListener("change",r)}};r(),i&&this.#e.push(i)}#g(){const{canvasWrapper:e,loadingIndicatorsElement:n,tooltip:i}=cv(this.container);this.#s=new uk(e,()=>this.viewRoot?uF(this.viewRoot):{width:void 0,height:void 0},{powerPreference:this.options.powerPreference??"default"}),e.appendChild(n),this.tooltip=i,this.#i=new Yd,this.#n=new dv(n,this.#i)}destroy(){const e=this.#u;for(this.container.classList.remove("genome-spy"),e.classList.remove("loading"),this.#c.removeAll(),this.#e.forEach(n=>n()),this.#s.finalize(),this.#r.remove(),this.#n.destroy();this.container.firstChild;)this.container.firstChild.remove()}async#h(){await this.#d();const e=this.#p();await this.#m(e),await KN(this.viewRoot,e.dataFlow,e.fontManager,n=>this.broadcast("dataFlowBuilt",n)),this.#w(e)}async#d(){this.genomeStore=new e6(this.spec.baseUrl);const{genomesByName:e,defaultAssembly:n,deprecationWarning:i}=ZM(this.spec);this.genomeStore.configureGenomes(e,n),i&&console.warn(i)}#p(){const e=new Tw;return e.loadingStatusRegistry=this.#i,zM({dataFlow:e,glHelper:this.#s,animator:this.animator,genomeStore:this.genomeStore,fontManager:new r6(this.#s),updateTooltip:this.updateTooltip.bind(this),getNamedDataFromProvider:this.getNamedDataFromProvider.bind(this),getCurrentHover:()=>this.#o.getCurrentHover(),addKeyboardListener:(n,i)=>{this.#c.add(n,r=>{this.#y(n,r)&&i(r)})},addBroadcastListener:(n,i)=>this.#l.add(n,i),removeBroadcastListener:(n,i)=>this.#l.remove(n,i),isViewConfiguredVisible:this.viewVisibilityPredicate,isViewSpec:n=>this.viewFactory.isViewSpec(n),createOrImportViewWithContext:(n,i,r,s,o,a)=>this.viewFactory.createOrImportView(i,n,r,s,o,a),highlightView:gv(this.container)})}#y(e,n){if(e==="keyup")return!0;const i=document.activeElement;return i&&i!==document.body?this.container.contains(i):this.container.matches(":hover")}async#m(e){const n=this.spec;n.datasets&&this.registerNamedDataProvider(i=>n.datasets[i]),this.viewRoot=await e.createOrImportView(n,null,null,Ty),await sy(this.viewRoot,this.genomeStore),this.#i.set(this.viewRoot,"loading"),this.#u.style.flexGrow=this.viewRoot.getSize().height.grow>0?"1":"0",this.#f(),B6(this.viewRoot),ey(this.viewRoot),this.#C(),this.#s.invalidateSize(),this.#t=new _M({viewRoot:this.viewRoot,glHelper:this.#s,getBackground:()=>this.spec.background,broadcast:this.broadcast.bind(this),onLayoutComputed:()=>this.#n.updateLayout()}),e.requestLayoutReflow=this.computeLayout.bind(this),this.#A()}#C(){const e=Q6(this.viewRoot);if(e.length)for(const n of e)console.warn("Selector constraints warning:",n.message)}#w(e){e.requestLayoutReflow=this.computeLayout.bind(this),this.viewRoot.visit(n=>Vs(n,"size")),this.#s.invalidateSize(),this.#o=new PM({viewRoot:this.viewRoot,glHelper:this.#s,tooltip:this.tooltip,animator:this.animator,emitEvent:this.#a.emit.bind(this.#a),tooltipHandlers:this.tooltipHandlers,renderPickingFramebuffer:this.renderPickingFramebuffer.bind(this),getDevicePixelRatio:()=>this.dpr})}async launch(){let e=!1;try{return this.#g(),await this.#h(),this.#o.registerInteractionEvents(),this.computeLayout(),this.animator.requestRender(),e=!0,!0}catch(n){const i=`${n.view?`At "${n.view.getPathString()}": `:""}${n.toString()}`;return console.error(n.stack),this.options.onError?.(n,this.container)||lv(this.container,i),this.viewRoot&&this.#i.set(this.viewRoot,"error",i),!1}finally{this.#u.classList.remove("loading"),e&&this.viewRoot&&this.#i.set(this.viewRoot,"complete")}}async initializeVisibleViewData(){this.viewRoot&&(await jN(this.viewRoot,this.viewRoot.context.dataFlow,this.viewRoot.context.fontManager),this.viewRoot._invalidateCacheByPrefix("size","progeny"),this.#s.invalidateSize(),this.computeLayout(),this.animator.requestRender())}async awaitVisibleLazyData(e){this.viewRoot&&await nT(this.viewRoot.context,this.viewRoot,void 0,e,n=>n.isConfiguredVisible()&&sT(n))}updateTooltip(e,n){this.#o.updateTooltip(e,n)}exportCanvas(e,n,i,r="white"){const s=GM({glHelper:this.#s,viewRoot:this.viewRoot,logicalWidth:e,logicalHeight:n,devicePixelRatio:i,clearColor:r});return this.computeLayout(),this.renderAll(),s}getLogicalCanvasSize(){return this.#s.getLogicalCanvasSize()}getRenderedBounds(){const e={width:void 0,height:void 0};return this.viewRoot.visit(n=>{for(const i of n.facetCoords.values())e.width=Math.max(e.width??0,i.x2),e.height=Math.max(e.height??0,i.y2)}),e}computeLayout(){this.#t.computeLayout()}renderAll(){this.#t.renderAll()}renderPickingFramebuffer(){this.#t.renderPickingFramebuffer()}getSearchableViews(){const e=[];return this.viewRoot.visit(n=>{n instanceof Je&&n.getSearchAccessors().length>0&&e.push(n)}),e}getNamedScaleResolutions(){const e=new Map;return this.viewRoot.visit(n=>{for(const i of Object.values(n.resolutions.scale))i.name&&e.set(i.name,i)}),e}}function sT(t){let e=t;for(;e;){const n=e.flowHandle?.dataSource;if(n)return n instanceof mr;e=e.dataParent}return!1}const oT="data:image/svg+xml,%3csvg%20viewBox='0%200%2032%2032'%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20clip-rule='evenodd'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='1.5'%3e%3cpath%20d='M4.7%2021.2s.4%202.3%201.3%203.6C7%2026%209.8%2028%209.8%2028s3.4-2.6%206.4-8.5c0%200%201%20.1%201.9-.4.9-.6.8-.4%201-1.2%200%200%202.9.5%206.6%200%202.1-.3%204.3-1%206.2-2.5%200%200-1.1-1.7-2.5-5.1-.5-1.3-2-1.8-4.6-4.6l-8.2%208.6-11.9%206.9z'%20fill-opacity='.1'/%3e%3cpath%20d='M12.7%2014.8s-4-1.8-12%202.7c0%200%201%203.7%202.5%205.3%201.4%201.5%202.3%203.6%204.6%204.6%200%200%204.7-3%206.9-9.2l3-2s4.7%202.8%2012.6-1.6c0%200-.6-3.3-3-6-2.6-3-3.8-4.7-3.8-4.7s-4.1%202.3-7.5%209.3l-3.3%201.6z'%20fill='%237fbbdd'/%3e%3cpath%20d='M12.4%2015.5c-.7-.5-2.4-.8-4.4-.4-2%20.4-4%201.3-4.8%201.8-.5.3-1.2%201-1.2%201.4%200%20.7.3%201.8.8%202.4.3.3.7.5%201.4.6.8%200%202.5-1.4%203.5-2%201-.6%201.6-.8%202.7-1.2l-2.9%202.4c-1.3%201.2-2.2%201.5-2.4%202.3%200%20.5%200%201.4.5%201.8.4.5.6.8%201.6.8.6%200%201%200%202.6-1.5.9-.9%202.3-3%202.7-3.7.6-1.1%201-2.2.7-3-.2-1-.4-1.4-.8-1.7zM17.4%2014.2c-.3-.5-.9-1.2-.2-2.5l1.9-3c.5-.8%202-2.3%202.6-2.6.6-.4%201.5-.6%202-.2.6.4%201%201%201.3%201.5.4.6.7%201.3.2%202-.7%201-1.6.9-2.8%201.7-1.2.8-1.9%201.2-2.5%201.9l3.8-1.8c1.3-.6%202.7-1.1%203.4-.7.8.5.8.7%201%201.4.3%201-.2%201.9-.8%202.4-.5.6-1.5.9-2.6%201.2-1.4.4-4.5%201-5.8.5-1.3-.5-1.3-1.4-1.5-1.8z'%20fill='%23fff'/%3e%3cpath%20d='M12.7%2014.8s-4-1.8-12%202.7c0%200%201%203.7%202.5%205.3%201.4%201.5%202.3%203.6%204.6%204.6%200%200%204.7-3%206.9-9.2l3-2s4.7%202.8%2012.6-1.6c0%200-.6-3.3-3-6-2.6-3-3.8-4.7-3.8-4.7s-4.1%202.3-7.5%209.3l-3.3%201.6z'%20fill='none'%20stroke='%23000'%20stroke-width='.5'/%3e%3cpath%20d='M12.4%2014.9s2.1-2%203-2c1.1%200%202.3%202.7%202.3%203.5%200%20.8-2.1%202.4-3.1%202.3%200%200%200-1.2-.7-2.6-.8-1.3-1.5-1.2-1.5-1.2z'%20fill='%237fbbdd'/%3e%3cpath%20d='M13.8%2015.3c.9.8.6%202%201.4%201.8%201-.2%201.4-.8%201.3-1.5%200-.7%200-.8-.4-1.6-.3-.7-1-1.1-2-.5-.7.5-1.4%201.3-1.4%201.3s.2-.3%201.1.5z'%20fill='%23fff'/%3e%3cpath%20d='M12.4%2014.9s2.1-2%203-2c1.1%200%202.3%202.7%202.3%203.5%200%20.8-2.1%202.4-3.1%202.3%200%200%200-1.2-.7-2.6-.8-1.3-1.5-1.2-1.5-1.2z'%20fill='none'%20stroke='%23000'%20stroke-width='.5'/%3e%3c/svg%3e",aT="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5'%20viewBox='0%200%2064%2064'%3e%3cpath%20d='M208.6%20548.2s11.2%2046.2%2031.2%2071c20%2024.9%2079.3%2061.6%2079.3%2061.6S385.6%20623%20438%20498.3c0%200%2018.1%201%2036-11.9%2017.7-12.7%2016.3-7.9%2021-24.8%200%200%2057%206.3%20131-9.7%2041.7-9.1%2084.3-26.3%20121.5-58.8%200%200-25.4-32.9-58-101.7-12.4-26.1-41.9-34.3-98.7-88L438.1%20391.2%20208.6%20548.2Z'%20style='fill-opacity:.11'%20transform='matrix(.10221%20.00684%20-.00671%20.10035%20-8%20-13.2)'/%3e%3cg%20transform='rotate(-35.4%2034.2%2080.8)%20scale(.10057)'%3e%3cpath%20d='M561.6%20349.2s-45.3-77.9-232.8-97.2c0%200-26.5%2073.2-21.1%20116%205.3%2043-4.7%2088.1%2021.4%20133.2%200%200%20114%205.5%20225.5-72.7l74.6%203.6S673.8%20534.4%20857%20554.4c0%200%2029.7-62.6%2022.2-137-8-78.7-7.5-124-7.5-124s-96.2-9.5-236.3%2068.4l-73.8-12.6Z'%20style='fill:%237fbbdd'/%3e%3cclipPath%20id='a'%3e%3cpath%20d='M561.6%20349.2s-45.3-77.9-232.8-97.2c0%200-26.5%2073.2-21.1%20116%205.3%2043-4.7%2088.1%2021.4%20133.2%200%200%20114%205.5%20225.5-72.7l74.6%203.6S673.8%20534.4%20857%20554.4c0%200%2029.7-62.6%2022.2-137-8-78.7-7.5-124-7.5-124s-96.2-9.5-236.3%2068.4l-73.8-12.6Z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20d='M386.9%20397.2c-15.6-13.6-51.8-22.4-96.3-16.7-44.5%205.8-93.8%2021.8-111.8%2031.6-10.6%205.7-27.3%2017.3-28.1%2027.2-1.2%2014.2%202.9%2037.8%2015%2052%206%207.2%2014.2%2012.1%2028.1%2014.1%2017.9%202.6%2059-24.8%2081.6-36.2%2024-12%2038.6-14.6%2063-22.2%200%200-47%2031.6-68.2%2047.4-30.6%2022.9-51.6%2028-57.3%2045.5-3.1%209.4-.7%2027.9%207.5%2037.6%209%2011%2012.8%2017.6%2034.2%2020.1%2012.7%201.5%2022%201.2%2059.8-28.6%2021.7-17.2%2055.9-59.2%2067-74.4%2016.2-22%2023.8-43.1%2021.3-59.6-3.7-23.6-8.4-31.3-15.8-37.8Z'%20style='fill:%23fff'%20transform='scale(.88664)%20rotate(31.2%20485%20792.2)'/%3e%3cpath%20d='M484.7%20379c-5.4-11.1-17.6-28.5-.8-53.8a739%20739%200%200%201%2044.2-60.6c13.2-16.3%2046.7-46.2%2059.6-52%2013-6%2033.3-8.7%2044.2.2%2011%209.1%2016.5%2020.6%2023%2032.7%207.4%2013.8%2012.4%2029.3%201.6%2042.8-15.4%2019.2-34.3%2017-61.6%2031.5-27.7%2014.8-42.3%2023.1-55.7%2035.9%200%200%2052.2-21.6%2082-31.2%2029.8-9.7%2059.8-20%2074.8-8.5s14.6%2015.5%2018.4%2031.2c4.7%2019.4-7.2%2038-20.1%2048.6-13%2010.7-34.3%2016-57.4%2021-30.5%206.8-96.6%2015.1-124%202.6-27.5-12.6-24.4-32.8-28.2-40.5Z'%20style='fill:%23fff'%20transform='scale(.87906)%20rotate(31.2%20487.2%20893.5)'/%3e%3c/g%3e%3cpath%20d='M561.6%20349.2s-45.3-77.9-232.8-97.2c0%200-26.5%2073.2-21.1%20116%205.3%2043-4.7%2088.1%2021.4%20133.2%200%200%20114%205.5%20225.5-72.7l74.6%203.6S673.8%20534.4%20857%20554.4c0%200%2029.7-62.6%2022.2-137-8-78.7-7.5-124-7.5-124s-96.2-9.5-236.3%2068.4l-73.8-12.6Z'%20style='fill:none;stroke:%23000;stroke-width:16.57px'/%3e%3c/g%3e%3cg%20transform='rotate(-4.2%20-78%20211)%20scale(.10057)'%3e%3cpath%20d='M385%20385.5s45.8-37.6%2065-35.4c21.7%202.5%2040.5%2057.6%2040.2%2074.3-.3%2016.7-47.3%2045.5-67.7%2041.8%200%200%203-24-10.4-52.9-13.4-28.8-27.2-27.8-27.2-27.8Z'%20style='fill:%237fbbdd'/%3e%3cclipPath%20id='b'%3e%3cpath%20d='M385%20385.5s45.8-37.6%2065-35.4c21.7%202.5%2040.5%2057.6%2040.2%2074.3-.3%2016.7-47.3%2045.5-67.7%2041.8%200%200%203-24-10.4-52.9-13.4-28.8-27.2-27.8-27.2-27.8Z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23b)'%3e%3cpath%20d='M413.3%20402.7c17.5%2018.9%2010%2045.7%2028.4%2043.4%2021.7-2.7%2030.9-15.7%2031.6-32.7.7-17-1-19.5-7.1-38-6.1-18.7-18.2-23.2-43.4-18.2-20.8%204.1-17.8%203-24%2010-6.4%207-14.5%2026-14.5%2026s8.4-12.7%2029%209.5Z'%20style='fill:%23fff'%20transform='matrix(.90907%200%200%20.85852%2037%2052.2)'/%3e%3c/g%3e%3cpath%20d='M385%20385.5s45.8-37.6%2065-35.4c21.7%202.5%2040.5%2057.6%2040.2%2074.3-.3%2016.7-47.3%2045.5-67.7%2041.8%200%200%203-24-10.4-52.9-13.4-28.8-27.2-27.8-27.2-27.8Z'%20style='fill:none;stroke:%23000;stroke-width:16.57px'/%3e%3c/g%3e%3c/svg%3e",cT=[["/docs/examples/","/docs/examples/"],["/examples/core/","/examples/"],["/examples/docs/","/examples/"],["/examples/app/","/examples/"]],lT=/^(?:[a-z]+:)?\/\//i,Vy="https://example.invalid";function Jy(t){return lT.test(t)?"external":t.startsWith("/")?"root":"relative"}function uT(t){const e=new URL(t,Vy),n=cT.find(([i])=>e.pathname.startsWith(i));if(n)return qy(n[1],e,Jy(t))}function fT(t){const e=uT(t);if(e)return e;const n=new URL(t,Vy),i=new URL("./",n);return qy(i.pathname,n,Jy(t))}function qy(t,e,n){return n==="external"?e.origin+t:n==="root"?t:t.slice(1)}async function hT(t,e,n={}){let i;if(le(t)){if(i=document.querySelector(t),!i)throw new Error(`No such element: ${t}`)}else if(t instanceof HTMLElement)i=t;else throw new Error(`Invalid element: ${t}`);let r;try{const s=Ge(e)?e:await Ky(e);if(s.baseUrl??="",s.width??="container",s.padding??=10,i==document.body){const o=document.createElement("div");o.style.position="fixed",o.style.inset="0",o.style.overflow="hidden",i.appendChild(o),i=o}r=new Yy(i,s,n),AT(r,n),await r.launch()}catch(s){i.innerText=s.toString(),console.error(s)}return{finalize(){for(r.destroy();i.firstChild;)i.firstChild.remove()},addEventListener(s,o){r.addEventListener(s,o)},removeEventListener(s,o){r.removeEventListener(s,o)},getScaleResolutionByName(s){return r.getNamedScaleResolutions().get(s)},awaitVisibleLazyData:r.awaitVisibleLazyData.bind(r),getRenderedBounds:r.getRenderedBounds.bind(r),updateNamedData:r.updateNamedData.bind(r),getLogicalCanvasSize:r.getLogicalCanvasSize.bind(r),exportCanvas:r.exportCanvas.bind(r)}}function AT(t,e){e.namedDataProvider&&t.registerNamedDataProvider(e.namedDataProvider)}async function Ky(t){let e;try{e=await gw(t)}catch(n){throw new Error(`Could not load or parse configuration: ${t}, reason: ${n.message}`)}return e.baseUrl||(e.baseUrl=fT(t)),e}class dT{constructor(e){this.blob=e}async read(e,n=0){if(!e)return new Uint8Array(0);const i=n,r=i+e,s=this.blob.slice(i,r);return s.bytes?s.bytes():new Uint8Array(await s.arrayBuffer())}async readFile(e){const n=typeof e=="string"?e:e?.encoding;if(n==="utf8")return this.blob.text();if(n)throw new Error(`unsupported encoding: ${n}`);return this.blob.bytes?this.blob.bytes():new Uint8Array(await this.blob.arrayBuffer())}async stat(){return{size:this.blob.size}}async close(){}}function gT(t){return(typeof t=="object"&&t!==null&&"message"in t?t.message:`${t}`).replace(/\.$/,"")}class Vt{constructor(e,n={}){this.baseOverrides={},this.url=e;const i=n.fetch||globalThis.fetch.bind(globalThis);n.overrides&&(this.baseOverrides=n.overrides),this.fetchImplementation=i}async fetch(e,n){const i=s=>new Error(`${gT(s)} fetching ${e}`,{cause:s});let r;try{r=await this.fetchImplementation(e,n)}catch(s){if(`${s}`.includes("Failed to fetch")){console.warn(`generic-filehandle: refetching ${e} to attempt to work around chrome CORS header caching bug`);try{r=await this.fetchImplementation(e,{...n,cache:"reload"})}catch(o){throw i(o)}}else throw i(s)}return r}async read(e,n,i={}){if(e===0)return new Uint8Array(0);const{headers:r={},signal:s,overrides:o={}}=i;e<1/0?r.range=`bytes=${n}-${n+e-1}`:e===1/0&&n!==0&&(r.range=`bytes=${n}-`);const a=await this.fetch(this.url,{...this.baseOverrides,...o,headers:{...this.baseOverrides.headers,...o.headers,...r},method:"GET",redirect:"follow",mode:"cors",signal:s});if(!a.ok)throw new Error(`HTTP ${a.status} fetching ${this.url}`);if(a.status===200&&n===0||a.status===206){const l=a.headers.get("content-range"),c=/\/(\d+)$/.exec(l||"");c?.[1]&&(this._stat={size:parseInt(c[1],10)});const u=a.bytes?await a.bytes():new Uint8Array(await a.arrayBuffer());return u.byteLength<=e?u:u.subarray(0,e)}throw new Error(a.status===200?`${this.url} fetch returned status 200, expected 206`:`HTTP ${a.status} fetching ${this.url}`)}async readFile(e={}){let n,i;if(typeof e=="string")n=e,i={};else{n=e.encoding;const{encoding:l,...c}=e;i=c}const{headers:r={},signal:s,overrides:o={}}=i,a=await this.fetch(this.url,{...this.baseOverrides,...o,headers:{...this.baseOverrides.headers,...o.headers,...r},method:"GET",redirect:"follow",mode:"cors",signal:s});if(!a.ok)throw new Error(`HTTP ${a.status} fetching ${this.url}`);if(n==="utf8")return a.text();if(n)throw new Error(`unsupported encoding: ${n}`);return a.bytes?a.bytes():new Uint8Array(await a.arrayBuffer())}async stat(){if(!this._stat&&(await this.read(10,0),!this._stat))throw new Error(`unable to determine size of file at ${this.url}`);return this._stat}async close(){}}class $e{readFile(){throw new Error("unimplemented")}read(){throw new Error("unimplemented")}close(){throw new Error("unimplemented")}}const uo=Object.freeze(Object.defineProperty({__proto__:null,BlobFile:dT,LocalFile:$e,RemoteFile:Vt},Symbol.toStringTag,{value:"Module"})),jy=65536,pT=jy*jy;function hh(t,e=0){const n=t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24;return((t[e+4]|t[e+5]<<8|t[e+6]<<16|t[e+7]<<24)>>>0)*pT+(n>>>0)}const Cc=1;function Wy(t,e,n){const i=e[Cc],r=n?n[Cc]:1/0;return i<=t&&r>t?0:i<t?-1:1}class mT{filehandle;index;constructor({filehandle:e}){this.filehandle=e}_getIndex(){return this.index||(this.index=this._readIndex().catch(e=>{throw this.index=void 0,e})),this.index}async _readIndex(){const e=await this.filehandle.read(8,0),n=hh(e);if(!n)return[[0,0]];const i=new Array(n+1);i[0]=[0,0];const r=16*n;if(r>Number.MAX_SAFE_INTEGER)throw new TypeError("integer overflow");const s=await this.filehandle.read(r,8);for(let o=0;o<n;o+=1){const a=hh(s,o*16),l=hh(s,o*16+8);i[o+1]=[a,l]}return i}async getLastBlock(){return(await this._getIndex()).at(-1)}async getRelevantBlocksForRead(e,n){const i=n+e;if(e===0)return[];const r=await this._getIndex(),s=[];let o=0,a=r.length-1,l=Math.floor(r.length/2),c=Wy(n,r[l],r[l+1]);for(;c!==0;)c>0?a=l-1:c<0&&(o=l+1),l=Math.ceil((a-o)/2)+o,c=Wy(n,r[l],r[l+1]);s.push(r[l]);let u=l+1;for(;u<r.length&&(s.push(r[u]),!(r[u][Cc]>=i));u+=1);return s[s.length-1][Cc]<i&&s.push([]),s}}var Xy=0,Ah=2,bc=4,Si=0,Ec=1,wT=2,yT=-5;function CT(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function bT(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(var i in n)CT(n,i)&&(t[i]=n[i])}}return t}function Zy(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)}var fo={arraySet:function(t,e,n,i,r){if(e.subarray&&t.subarray){t.set(e.subarray(n,n+i),r);return}for(var s=0;s<i;s++)t[r+s]=e[n+s]},flattenChunks:function(t){var e,n,i,r,s,o;for(i=0,e=0,n=t.length;e<n;e++)i+=t[e].length;for(o=new Uint8Array(i),r=0,e=0,n=t.length;e<n;e++)s=t[e],o.set(s,r),r+=s.length;return o},Buf8:function(t){return new Uint8Array(t)},Buf16:function(t){return new Uint16Array(t)},Buf32:function(t){return new Int32Array(t)}},ho={arraySet:function(t,e,n,i,r){for(var s=0;s<i;s++)t[r+s]=e[n+s]},flattenChunks:function(t){return[].concat.apply([],t)},Buf8:function(t){return new Array(t)},Buf16:function(t){return new Array(t)},Buf32:function(t){return new Array(t)}};let Cr=()=>{const t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";return Cr=()=>t,t},Vn=(t,e,n,i,r)=>(Vn=Cr()?fo.arraySet:ho.arraySet,Vn(t,e,n,i,r)),dh=t=>(dh=Cr()?fo.flattenChunks:ho.flattenChunks,dh(t)),br=t=>(br=Cr()?fo.Buf8:ho.Buf8,br(t)),Er=t=>(Er=Cr()?fo.Buf16:ho.Buf16,Er(t)),Ir=t=>(Ir=Cr()?fo.Buf32:ho.Buf32,Ir(t)),$y=function(){let t=!0;try{String.fromCharCode.apply(null,[0])}catch{t=!1}return $y=()=>t,t},e1=function(){let t=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{t=!1}return e1=()=>t,t},gh=function(t){for(var e=br(256),n=0;n<256;n++)e[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;return e[254]=e[254]=1,gh=i=>e[i],e[t]};function t1(t){var e,n,i,r,s,o=t.length,a=0;for(r=0;r<o;r++)n=t.charCodeAt(r),(n&64512)===55296&&r+1<o&&(i=t.charCodeAt(r+1),(i&64512)===56320&&(n=65536+(n-55296<<10)+(i-56320),r++)),a+=n<128?1:n<2048?2:n<65536?3:4;for(e=new Uint8Array(a),s=0,r=0;s<a;r++)n=t.charCodeAt(r),(n&64512)===55296&&r+1<o&&(i=t.charCodeAt(r+1),(i&64512)===56320&&(n=65536+(n-55296<<10)+(i-56320),r++)),n<128?e[s++]=n:n<2048?(e[s++]=192|n>>>6,e[s++]=128|n&63):n<65536?(e[s++]=224|n>>>12,e[s++]=128|n>>>6&63,e[s++]=128|n&63):(e[s++]=240|n>>>18,e[s++]=128|n>>>12&63,e[s++]=128|n>>>6&63,e[s++]=128|n&63);return e}function ET(t,e){if(e<65534&&(t.subarray&&e1()||!t.subarray&&$y()))return String.fromCharCode.apply(null,Zy(t,e));for(var n="",i=0;i<e;i++)n+=String.fromCharCode(t[i]);return n}function IT(t){for(var e=new Uint8Array(t.length),n=0,i=e.length;n<i;n++)e[n]=t.charCodeAt(n);return e}function xT(t,e){var n,i,r,s,o=e||t.length,a=new Array(o*2);for(i=0,n=0;n<o;){if(r=t[n++],r<128){a[i++]=r;continue}if(s=gh(r),s>4){a[i++]=65533,n+=s-1;continue}for(r&=s===2?31:s===3?15:7;s>1&&n<o;)r=r<<6|t[n++]&63,s--;if(s>1){a[i++]=65533;continue}r<65536?a[i++]=r:(r-=65536,a[i++]=55296|r>>10&1023,a[i++]=56320|r&1023)}return ET(a,i)}function vT(t,e){var n;for(e=e||t.length,e>t.length&&(e=t.length),n=e-1;n>=0&&(t[n]&192)===128;)n--;return n<0||n===0?e:n+gh(t[n])>e?n:e}function BT(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}function ph(t,e,n,i){for(var r=t&65535|0,s=t>>>16&65535|0,o=0;n!==0;){o=n>2e3?2e3:n,n-=o;do r=r+e[i++]|0,s=s+r|0;while(--o);r%=65521,s%=65521}return r|s<<16|0}function ST(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=t&1?3988292384^t>>>1:t>>>1;e[n]=t}return e}let n1=function(){const t=ST();return n1=()=>t,t};function Jt(t,e,n,i){var r=n1(),s=i+n;t^=-1;for(var o=i;o<s;o++)t=t>>>8^r[(t^e[o])&255];return t^-1}var Ic=30,DT=12;function QT(t,e){var n,i,r,s,o,a,l,c,u,f,h,A,d,g,m,p,w,C,y,I,x,E,S,D,B;n=t.state,i=t.next_in,D=t.input,r=i+(t.avail_in-5),s=t.next_out,B=t.output,o=s-(e-t.avail_out),a=s+(t.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,f=n.wnext,h=n.window,A=n.hold,d=n.bits,g=n.lencode,m=n.distcode,p=(1<<n.lenbits)-1,w=(1<<n.distbits)-1;e:do{d<15&&(A+=D[i++]<<d,d+=8,A+=D[i++]<<d,d+=8),C=g[A&p];t:for(;;){if(y=C>>>24,A>>>=y,d-=y,y=C>>>16&255,y===0)B[s++]=C&65535;else if(y&16){I=C&65535,y&=15,y&&(d<y&&(A+=D[i++]<<d,d+=8),I+=A&(1<<y)-1,A>>>=y,d-=y),d<15&&(A+=D[i++]<<d,d+=8,A+=D[i++]<<d,d+=8),C=m[A&w];n:for(;;){if(y=C>>>24,A>>>=y,d-=y,y=C>>>16&255,y&16){if(x=C&65535,y&=15,d<y&&(A+=D[i++]<<d,d+=8,d<y&&(A+=D[i++]<<d,d+=8)),x+=A&(1<<y)-1,x>l){t.msg="invalid distance too far back",n.mode=Ic;break e}if(A>>>=y,d-=y,y=s-o,x>y){if(y=x-y,y>u&&n.sane){t.msg="invalid distance too far back",n.mode=Ic;break e}if(E=0,S=h,f===0){if(E+=c-y,y<I){I-=y;do B[s++]=h[E++];while(--y);E=s-x,S=B}}else if(f<y){if(E+=c+f-y,y-=f,y<I){I-=y;do B[s++]=h[E++];while(--y);if(E=0,f<I){y=f,I-=y;do B[s++]=h[E++];while(--y);E=s-x,S=B}}}else if(E+=f-y,y<I){I-=y;do B[s++]=h[E++];while(--y);E=s-x,S=B}for(;I>2;)B[s++]=S[E++],B[s++]=S[E++],B[s++]=S[E++],I-=3;I&&(B[s++]=S[E++],I>1&&(B[s++]=S[E++]))}else{E=s-x;do B[s++]=B[E++],B[s++]=B[E++],B[s++]=B[E++],I-=3;while(I>2);I&&(B[s++]=B[E++],I>1&&(B[s++]=B[E++]))}}else if((y&64)===0){C=m[(C&65535)+(A&(1<<y)-1)];continue n}else{t.msg="invalid distance code",n.mode=Ic;break e}break}}else if((y&64)===0){C=g[(C&65535)+(A&(1<<y)-1)];continue t}else if(y&32){n.mode=DT;break e}else{t.msg="invalid literal/length code",n.mode=Ic;break e}break}}while(i<r&&s<a);I=d>>3,i-=I,d-=I<<3,A&=(1<<d)-1,t.next_in=i,t.next_out=s,t.avail_in=i<r?5+(r-i):5-(i-r),t.avail_out=s<a?257+(a-s):257-(s-a),n.hold=A,n.bits=d}var xr=15,i1=852,r1=592,s1=0,mh=1,o1=2,kT=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],RT=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],FT=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],NT=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function Ao(t,e,n,i,r,s,o,a){var l=a.bits,c=0,u=0,f=0,h=0,A=0,d=0,g=0,m=0,p=0,w=0,C,y,I,x,E,S=null,D=0,B,k=Er(xr+1),F=Er(xr+1),M=null,O=0,_,H,G;for(c=0;c<=xr;c++)k[c]=0;for(u=0;u<i;u++)k[e[n+u]]++;for(A=l,h=xr;h>=1&&k[h]===0;h--);if(A>h&&(A=h),h===0)return r[s++]=1<<24|64<<16|0,r[s++]=1<<24|64<<16|0,a.bits=1,0;for(f=1;f<h&&k[f]===0;f++);for(A<f&&(A=f),m=1,c=1;c<=xr;c++)if(m<<=1,m-=k[c],m<0)return-1;if(m>0&&(t===s1||h!==1))return-1;for(F[1]=0,c=1;c<xr;c++)F[c+1]=F[c]+k[c];for(u=0;u<i;u++)e[n+u]!==0&&(o[F[e[n+u]]++]=u);if(t===s1?(S=M=o,B=19):t===mh?(S=kT,D-=257,M=RT,O-=257,B=256):(S=FT,M=NT,B=-1),w=0,u=0,c=f,E=s,d=A,g=0,I=-1,p=1<<A,x=p-1,t===mh&&p>i1||t===o1&&p>r1)return 1;for(;;){_=c-g,o[u]<B?(H=0,G=o[u]):o[u]>B?(H=M[O+o[u]],G=S[D+o[u]]):(H=96,G=0),C=1<<c-g,y=1<<d,f=y;do y-=C,r[E+(w>>g)+y]=_<<24|H<<16|G|0;while(y!==0);for(C=1<<c-1;w&C;)C>>=1;if(C!==0?(w&=C-1,w+=C):w=0,u++,--k[c]===0){if(c===h)break;c=e[n+o[u]]}if(c>A&&(w&x)!==I){for(g===0&&(g=A),E+=f,d=c-g,m=1<<d;d+g<h&&(m-=k[d+g],!(m<=0));)d++,m<<=1;if(p+=1<<d,t===mh&&p>i1||t===o1&&p>r1)return 1;I=w&x,r[I]=A<<24|d<<16|E-s|0}}return w!==0&&(r[E+w]=c-g<<24|64<<16|0),a.bits=A,0}var MT=0,a1=1,c1=2,l1=4,Di=0,TT=1,PT=2,yt=-2,u1=-3,f1=-4,LT=-5,h1=8,A1=1,d1=2,g1=3,p1=4,m1=5,w1=6,y1=7,C1=8,b1=9,E1=10,xc=11,dn=12,wh=13,I1=14,yh=15,x1=16,v1=17,B1=18,S1=19,vc=20,Bc=21,D1=22,Q1=23,k1=24,R1=25,F1=26,Ch=27,N1=28,M1=29,pe=30,T1=31,OT=32,UT=852,_T=592;function P1(t){return(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24)}function zT(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=Er(320),this.work=Er(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function GT(t){var e;return!t||!t.state?yt:(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=e.wrap&1),e.mode=A1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=Ir(UT),e.distcode=e.distdyn=Ir(_T),e.sane=1,e.back=-1,Di)}function HT(t){var e;return!t||!t.state?yt:(e=t.state,e.wsize=0,e.whave=0,e.wnext=0,GT(t))}function YT(t,e){var n,i;return!t||!t.state||(i=t.state,e<0?(n=0,e=-e):(n=(e>>4)+1,e<48&&(e&=15)),e&&(e<8||e>15))?yt:(i.window!==null&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,HT(t))}function VT(t,e){var n,i;return t?(i=new zT,t.state=i,i.window=null,n=YT(t,e),n!==Di&&(t.state=null),n):yt}var L1=!0,bh,Eh;function JT(t){if(L1){var e;for(bh=Ir(512),Eh=Ir(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(Ao(a1,t.lens,0,288,bh,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;Ao(c1,t.lens,0,32,Eh,0,t.work,{bits:5}),L1=!1}t.lencode=bh,t.lenbits=9,t.distcode=Eh,t.distbits=5}function O1(t,e,n,i){var r,s=t.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=br(s.wsize)),i>=s.wsize?(Vn(s.window,e,n-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(r=s.wsize-s.wnext,r>i&&(r=i),Vn(s.window,e,n-i,r,s.wnext),i-=r,i?(Vn(s.window,e,n-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=r,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=r))),0}function qT(t,e){var n,i,r,s,o,a,l,c,u,f,h,A,d,g,m=0,p,w,C,y,I,x,E,S,D=br(4),B,k,F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&t.avail_in!==0)return yt;n=t.state,n.mode===dn&&(n.mode=wh),o=t.next_out,r=t.output,l=t.avail_out,s=t.next_in,i=t.input,a=t.avail_in,c=n.hold,u=n.bits,f=a,h=l,S=Di;e:for(;;)switch(n.mode){case A1:if(n.wrap===0){n.mode=wh;break}for(;u<16;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(n.wrap&2&&c===35615){n.check=0,D[0]=c&255,D[1]=c>>>8&255,n.check=Jt(n.check,D,2,0),c=0,u=0,n.mode=d1;break}if(n.flags=0,n.head&&(n.head.done=!1),!(n.wrap&1)||(((c&255)<<8)+(c>>8))%31){t.msg="incorrect header check",n.mode=pe;break}if((c&15)!==h1){t.msg="unknown compression method",n.mode=pe;break}if(c>>>=4,u-=4,E=(c&15)+8,n.wbits===0)n.wbits=E;else if(E>n.wbits){t.msg="invalid window size",n.mode=pe;break}n.dmax=1<<E,t.adler=n.check=1,n.mode=c&512?E1:dn,c=0,u=0;break;case d1:for(;u<16;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(n.flags=c,(n.flags&255)!==h1){t.msg="unknown compression method",n.mode=pe;break}if(n.flags&57344){t.msg="unknown header flags set",n.mode=pe;break}n.head&&(n.head.text=c>>8&1),n.flags&512&&(D[0]=c&255,D[1]=c>>>8&255,n.check=Jt(n.check,D,2,0)),c=0,u=0,n.mode=g1;case g1:for(;u<32;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}n.head&&(n.head.time=c),n.flags&512&&(D[0]=c&255,D[1]=c>>>8&255,D[2]=c>>>16&255,D[3]=c>>>24&255,n.check=Jt(n.check,D,4,0)),c=0,u=0,n.mode=p1;case p1:for(;u<16;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}n.head&&(n.head.xflags=c&255,n.head.os=c>>8),n.flags&512&&(D[0]=c&255,D[1]=c>>>8&255,n.check=Jt(n.check,D,2,0)),c=0,u=0,n.mode=m1;case m1:if(n.flags&1024){for(;u<16;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}n.length=c,n.head&&(n.head.extra_len=c),n.flags&512&&(D[0]=c&255,D[1]=c>>>8&255,n.check=Jt(n.check,D,2,0)),c=0,u=0}else n.head&&(n.head.extra=null);n.mode=w1;case w1:if(n.flags&1024&&(A=n.length,A>a&&(A=a),A&&(n.head&&(E=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),Vn(n.head.extra,i,s,A,E)),n.flags&512&&(n.check=Jt(n.check,i,A,s)),a-=A,s+=A,n.length-=A),n.length))break e;n.length=0,n.mode=y1;case y1:if(n.flags&2048){if(a===0)break e;A=0;do E=i[s+A++],n.head&&E&&n.length<65536&&(n.head.name+=String.fromCharCode(E));while(E&&A<a);if(n.flags&512&&(n.check=Jt(n.check,i,A,s)),a-=A,s+=A,E)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=C1;case C1:if(n.flags&4096){if(a===0)break e;A=0;do E=i[s+A++],n.head&&E&&n.length<65536&&(n.head.comment+=String.fromCharCode(E));while(E&&A<a);if(n.flags&512&&(n.check=Jt(n.check,i,A,s)),a-=A,s+=A,E)break e}else n.head&&(n.head.comment=null);n.mode=b1;case b1:if(n.flags&512){for(;u<16;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(c!==(n.check&65535)){t.msg="header crc mismatch",n.mode=pe;break}c=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=dn;break;case E1:for(;u<32;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}t.adler=n.check=P1(c),c=0,u=0,n.mode=xc;case xc:if(n.havedict===0)return t.next_out=o,t.avail_out=l,t.next_in=s,t.avail_in=a,n.hold=c,n.bits=u,PT;t.adler=n.check=1,n.mode=dn;case dn:case wh:if(n.last){c>>>=u&7,u-=u&7,n.mode=Ch;break}for(;u<3;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}switch(n.last=c&1,c>>>=1,u-=1,c&3){case 0:n.mode=I1;break;case 1:JT(n),n.mode=vc;break;case 2:n.mode=v1;break;case 3:t.msg="invalid block type",n.mode=pe}c>>>=2,u-=2;break;case I1:for(c>>>=u&7,u-=u&7;u<32;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if((c&65535)!==(c>>>16^65535)){t.msg="invalid stored block lengths",n.mode=pe;break}n.length=c&65535,c=0,u=0,n.mode=yh;case yh:n.mode=x1;case x1:if(A=n.length,A){if(A>a&&(A=a),A>l&&(A=l),A===0)break e;Vn(r,i,s,A,o),a-=A,s+=A,l-=A,o+=A,n.length-=A;break}n.mode=dn;break;case v1:for(;u<14;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(n.nlen=(c&31)+257,c>>>=5,u-=5,n.ndist=(c&31)+1,c>>>=5,u-=5,n.ncode=(c&15)+4,c>>>=4,u-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=pe;break}n.have=0,n.mode=B1;case B1:for(;n.have<n.ncode;){for(;u<3;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}n.lens[F[n.have++]]=c&7,c>>>=3,u-=3}for(;n.have<19;)n.lens[F[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,B={bits:n.lenbits},S=Ao(MT,n.lens,0,19,n.lencode,0,n.work,B),n.lenbits=B.bits,S){t.msg="invalid code lengths set",n.mode=pe;break}n.have=0,n.mode=S1;case S1:for(;n.have<n.nlen+n.ndist;){for(;m=n.lencode[c&(1<<n.lenbits)-1],p=m>>>24,w=m>>>16&255,C=m&65535,!(p<=u);){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(C<16)c>>>=p,u-=p,n.lens[n.have++]=C;else{if(C===16){for(k=p+2;u<k;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(c>>>=p,u-=p,n.have===0){t.msg="invalid bit length repeat",n.mode=pe;break}E=n.lens[n.have-1],A=3+(c&3),c>>>=2,u-=2}else if(C===17){for(k=p+3;u<k;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}c>>>=p,u-=p,E=0,A=3+(c&7),c>>>=3,u-=3}else{for(k=p+7;u<k;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}c>>>=p,u-=p,E=0,A=11+(c&127),c>>>=7,u-=7}if(n.have+A>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=pe;break}for(;A--;)n.lens[n.have++]=E}}if(n.mode===pe)break;if(n.lens[256]===0){t.msg="invalid code -- missing end-of-block",n.mode=pe;break}if(n.lenbits=9,B={bits:n.lenbits},S=Ao(a1,n.lens,0,n.nlen,n.lencode,0,n.work,B),n.lenbits=B.bits,S){t.msg="invalid literal/lengths set",n.mode=pe;break}if(n.distbits=6,n.distcode=n.distdyn,B={bits:n.distbits},S=Ao(c1,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,B),n.distbits=B.bits,S){t.msg="invalid distances set",n.mode=pe;break}n.mode=vc;case vc:n.mode=Bc;case Bc:if(a>=6&&l>=258){t.next_out=o,t.avail_out=l,t.next_in=s,t.avail_in=a,n.hold=c,n.bits=u,QT(t,h),o=t.next_out,r=t.output,l=t.avail_out,s=t.next_in,i=t.input,a=t.avail_in,c=n.hold,u=n.bits,n.mode===dn&&(n.back=-1);break}for(n.back=0;m=n.lencode[c&(1<<n.lenbits)-1],p=m>>>24,w=m>>>16&255,C=m&65535,!(p<=u);){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(w&&(w&240)===0){for(y=p,I=w,x=C;m=n.lencode[x+((c&(1<<y+I)-1)>>y)],p=m>>>24,w=m>>>16&255,C=m&65535,!(y+p<=u);){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}c>>>=y,u-=y,n.back+=y}if(c>>>=p,u-=p,n.back+=p,n.length=C,w===0){n.mode=F1;break}if(w&32){n.back=-1,n.mode=dn;break}if(w&64){t.msg="invalid literal/length code",n.mode=pe;break}n.extra=w&15,n.mode=D1;case D1:if(n.extra){for(k=n.extra;u<k;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=Q1;case Q1:for(;m=n.distcode[c&(1<<n.distbits)-1],p=m>>>24,w=m>>>16&255,C=m&65535,!(p<=u);){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if((w&240)===0){for(y=p,I=w,x=C;m=n.distcode[x+((c&(1<<y+I)-1)>>y)],p=m>>>24,w=m>>>16&255,C=m&65535,!(y+p<=u);){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}c>>>=y,u-=y,n.back+=y}if(c>>>=p,u-=p,n.back+=p,w&64){t.msg="invalid distance code",n.mode=pe;break}n.offset=C,n.extra=w&15,n.mode=k1;case k1:if(n.extra){for(k=n.extra;u<k;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=pe;break}n.mode=R1;case R1:if(l===0)break e;if(A=h-l,n.offset>A){if(A=n.offset-A,A>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=pe;break}A>n.wnext?(A-=n.wnext,d=n.wsize-A):d=n.wnext-A,A>n.length&&(A=n.length),g=n.window}else g=r,d=o-n.offset,A=n.length;A>l&&(A=l),l-=A,n.length-=A;do r[o++]=g[d++];while(--A);n.length===0&&(n.mode=Bc);break;case F1:if(l===0)break e;r[o++]=n.length,l--,n.mode=Bc;break;case Ch:if(n.wrap){for(;u<32;){if(a===0)break e;a--,c|=i[s++]<<u,u+=8}if(h-=l,t.total_out+=h,n.total+=h,h&&(t.adler=n.check=n.flags?Jt(n.check,r,h,o-h):ph(n.check,r,h,o-h)),h=l,(n.flags?c:P1(c))!==n.check){t.msg="incorrect data check",n.mode=pe;break}c=0,u=0}n.mode=N1;case N1:if(n.wrap&&n.flags){for(;u<32;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(c!==(n.total&4294967295)){t.msg="incorrect length check",n.mode=pe;break}c=0,u=0}n.mode=M1;case M1:S=TT;break e;case pe:S=u1;break e;case T1:return f1;case OT:default:return yt}return t.next_out=o,t.avail_out=l,t.next_in=s,t.avail_in=a,n.hold=c,n.bits=u,(n.wsize||h!==t.avail_out&&n.mode<pe&&(n.mode<Ch||e!==l1))&&O1(t,t.output,t.next_out,h-t.avail_out),f-=t.avail_in,h-=t.avail_out,t.total_in+=f,t.total_out+=h,n.total+=h,n.wrap&&h&&(t.adler=n.check=n.flags?Jt(n.check,r,h,t.next_out-h):ph(n.check,r,h,t.next_out-h)),t.data_type=n.bits+(n.last?64:0)+(n.mode===dn?128:0)+(n.mode===vc||n.mode===yh?256:0),(f===0&&h===0||e===l1)&&S===Di&&(S=LT),S}function KT(t){if(!t||!t.state)return yt;var e=t.state;return e.window&&(e.window=null),t.state=null,Di}function jT(t,e){var n;return!t||!t.state||(n=t.state,(n.wrap&2)===0)?yt:(n.head=e,e.done=!1,Di)}function U1(t,e){var n=e.length,i,r,s;return!t||!t.state||(i=t.state,i.wrap!==0&&i.mode!==xc)?yt:i.mode===xc&&(r=1,r=ph(r,e,n,0),r!==i.check)?u1:(s=O1(t,e,n,n),s?(i.mode=T1,f1):(i.havedict=1,Di))}const Ih={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function WT(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var xh=Object.prototype.toString;let _1=class EA{constructor(e){if(!(this instanceof EA))return new EA(e);this.options=bT({chunkSize:16384,windowBits:0,to:""},e||{});var n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(e&&e.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15)===0&&(n.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new WT,this.strm.avail_out=0;var i=VT(this.strm,n.windowBits);if(i!==Si)throw new Error(Ih[i]);if(this.header=new BT,jT(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=t1(n.dictionary):xh.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(i=U1(this.strm,n.dictionary),i!==Si)))throw new Error(Ih[i])}push(e,n){var i=this.strm,r=this.options.chunkSize,s=this.options.dictionary,o,a,l,c,u,f,h=!1;if(this.ended)return!1;a=n===~~n?n:n===!0?bc:Xy,typeof e=="string"?i.input=IT(e):xh.call(e)==="[object ArrayBuffer]"?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;do{if(i.avail_out===0&&(i.output=br(r),i.next_out=0,i.avail_out=r),o=qT(i,Xy),o===wT&&s&&(typeof s=="string"?f=t1(s):xh.call(s)==="[object ArrayBuffer]"?f=new Uint8Array(s):f=s,o=U1(this.strm,f)),o===yT&&h===!0&&(o=Si,h=!1),o!==Ec&&o!==Si)return this.onEnd(o),this.ended=!0,!1;i.next_out&&(i.avail_out===0||o===Ec||i.avail_in===0&&(a===bc||a===Ah))&&(this.options.to==="string"?(l=vT(i.output,i.next_out),c=i.next_out-l,u=xT(i.output,l),i.next_out=c,i.avail_out=r-c,c&&Vn(i.output,i.output,l,c,0),this.onData(u)):this.onData(Zy(i.output,i.next_out))),i.avail_in===0&&i.avail_out===0&&(h=!0)}while((i.avail_in>0||i.avail_out===0)&&o!==Ec);return o===Ec&&(a=bc),a===bc?(o=KT(this.strm),this.onEnd(o),this.ended=!0,o===Si):(a===Ah&&(this.onEnd(Si),i.avail_out=0),!0)}onData(e){this.chunks.push(e)}onEnd(e){e===Si&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=dh(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg}};function XT(t,e){var n=new _1(e);if(n.push(t,!0),n.err)throw n.msg||Ih[n.err];return n.result}function ZT(t,e){return e=e||{},e.raw=!0,XT(t,e)}function $T(t){let e=0;for(const n of t)e+=n.length;return e}function z1(t,e){const n=new Uint8Array(e??$T(t));let i=0;for(const r of t)n.set(r,i),i+=r.length;return n}async function e5(t){try{let e,n=0,i;const r=[];let s=0;do{const o=t.subarray(n);if(i=new _1(void 0),{strm:e}=i,i.push(o,Ah),i.err)throw new Error(i.msg);n+=e.next_in;const a=i.result;r.push(a),s+=a.length}while(e.avail_in);return z1(r,s)}catch(e){throw/incorrect header check/.exec(`${e}`)?new Error("problem decompressing block: incorrect gzip header check"):e}}class G1{filehandle;gzi;constructor({filehandle:e,gziFilehandle:n}){this.filehandle=e,this.gzi=new mT({filehandle:n})}async _readAndUncompressBlock(e,n){let i=n;i||(i=(await this.filehandle.stat()).size);const r=i-e,s=await this.filehandle.read(r,e);return e5(s)}async read(e,n){const i=await this.gzi.getRelevantBlocksForRead(e,n),r=[];for(let s=0;s<i.length-1;s+=1){const o=await this._readAndUncompressBlock(i[s][0],i[s+1][0]),[,a]=i[s],l=a>=n?0:n-a,c=Math.min(n+e,a+o.length)-a;l>=0&&l<o.length&&r.push(o.subarray(l,c))}return z1(r)}}function H1(t,e){return t.offset+t.lineBytes*Math.floor(e/t.lineLength)+e%t.lineLength}async function t5(t,e={}){const n=new TextDecoder("utf8");return Object.fromEntries(n.decode(await t.readFile(e)).split(/\r?\n/).map(i=>i.trim()).filter(i=>!!i).map(i=>i.split(" ")).map(i=>{if(i[0]?.startsWith(">"))throw new Error("found > in sequence name, might have supplied FASTA file for the FASTA index");return[i[0],{name:i[0],length:+i[1],start:0,end:+i[1],offset:+i[2],lineLength:+i[3],lineBytes:+i[4]}]}))}class Y1{constructor({fasta:e,fai:n,path:i,faiPath:r}){if(e)this.fasta=e;else if(i)this.fasta=new $e(i);else throw new Error("Need to pass filehandle for fasta or path to localfile");if(n)this.fai=n;else if(r)this.fai=new $e(r);else if(i)this.fai=new $e(`${i}.fai`);else throw new Error("Need to pass filehandle for or path to localfile")}async _getIndexes(e){return this.indexes||(this.indexes=t5(this.fai,e).catch(n=>{throw this.indexes=void 0,n})),this.indexes}async getSequenceNames(e){return Object.keys(await this._getIndexes(e))}async getSequenceSizes(e){const n={},i=await this._getIndexes(e);for(const r of Object.values(i))n[r.name]=r.length;return n}async getSequenceSize(e,n){return(await this._getIndexes(n))[e]?.length}async hasReferenceSequence(e,n){return!!(await this._getIndexes(n))[e]}async getResiduesByName(e,n,i,r){const s=(await this._getIndexes(r))[e];return s?this._fetchFromIndexEntry(s,n,i,r):void 0}async getSequence(e,n,i,r){return this.getResiduesByName(e,n,i,r)}async _fetchFromIndexEntry(e,n=0,i,r){let s=i;if(n<0)throw new TypeError("regionStart cannot be less than 0");if((s===void 0||s>e.length)&&(s=e.length),n>=s)return"";const o=H1(e,n),a=H1(e,s)-o,c=new TextDecoder("utf8").decode(await this.fasta.read(a,o,r)).replace(/\s+/g,"");if(/[^\x20-\x7e]/.test(c.slice(0,1e3)))throw new Error("Non-ASCII characters detected in sequence. The file may be gzip compressed. Use BgzipIndexedFasta for bgzip files, or decompress the file.");return c}}class n5 extends Y1{constructor({fasta:e,path:n,fai:i,faiPath:r,gzi:s,gziPath:o}){super({fasta:e,path:n,fai:i,faiPath:r}),e&&s?this.fasta=new G1({filehandle:e,gziFilehandle:s}):n&&o&&(this.fasta=new G1({filehandle:new $e(n),gziFilehandle:new $e(o)}))}}function V1(t){return t.split(">").filter(e=>/\S/.test(e)).map(e=>{const[n,...i]=e.split(`
|
|
670
|
+
`),[r,...s]=n.split(" "),o=i.join("").replace(/\s/g,"");return{id:r,description:s.join(" "),sequence:o}})}class i5{constructor({fasta:e,path:n}){if(e)this.fasta=e;else if(n)this.fasta=new $e(n);else throw new Error("Need to pass fasta or path");this.data=this.fasta.readFile().then(i=>{const s=new TextDecoder("utf8").decode(i);return V1(s)})}async fetch(e,n,i){const s=(await this.data).find(a=>a.id===e),o=i-n;if(!s)throw new Error(`no sequence with id ${e} exists`);return s.sequence.slice(n,o)}async getSequenceNames(){return(await this.data).map(n=>n.id)}}const r5=Object.freeze(Object.defineProperty({__proto__:null,BgzipIndexedFasta:n5,FetchableSmallFasta:i5,IndexedFasta:Y1,parseSmallFasta:V1},Symbol.toStringTag,{value:"Module"})),J1=BigInt(32);function s5(t,e,n){const i=+!!n,r=+!n;return BigInt(t.getInt32(e,n)*r+t.getInt32(e+4,n)*i)<<J1|BigInt(t.getUint32(e,n)*i+t.getUint32(e+4,n)*r)}function o5(t,e,n){const i=t.getUint32(e,n),r=t.getUint32(e+4,n),s=+!!n,o=+!n;return BigInt(i*o+r*s)<<J1|BigInt(i*s+r*o)}"getBigInt64"in DataView||(DataView.prototype.getBigInt64=function(t,e){return s5(this,t,e)}),"getBigUint64"in DataView||(DataView.prototype.getBigUint64=function(t,e){return o5(this,t,e)});var vh=function(t,e){return vh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},vh(t,e)};function Bh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");vh(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function a5(t,e,n,i){function r(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(f){o(f)}}function l(u){try{c(i.throw(u))}catch(f){o(f)}}function c(u){u.done?s(u.value):r(u.value).then(a,l)}c((i=i.apply(t,e||[])).next())})}function q1(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(n=0)),n;)try{if(i=1,r&&(s=c[0]&2?r.return:c[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,c[1])).done)return s;switch(r=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,r=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){n.label=c[1];break}if(c[0]===6&&n.label<s[1]){n.label=s[1],s=c;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(c);break}s[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(u){c=[6,u],r=0}finally{i=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function go(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Sh(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),r,s=[],o;try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function Dh(t,e,n){if(n||arguments.length===2)for(var i=0,r=e.length,s;i<r;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))}function vr(t){return this instanceof vr?(this.v=t,this):new vr(t)}function c5(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n.apply(t,e||[]),r,s=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),r[Symbol.asyncIterator]=function(){return this},r;function o(A){return function(d){return Promise.resolve(d).then(A,f)}}function a(A,d){i[A]&&(r[A]=function(g){return new Promise(function(m,p){s.push([A,g,m,p])>1||l(A,g)})},d&&(r[A]=d(r[A])))}function l(A,d){try{c(i[A](d))}catch(g){h(s[0][3],g)}}function c(A){A.value instanceof vr?Promise.resolve(A.value.v).then(u,f):h(s[0][2],A)}function u(A){l("next",A)}function f(A){l("throw",A)}function h(A,d){A(d),s.shift(),s.length&&l(s[0][0],s[0][1])}}function l5(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof go=="function"?go(t):t[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(s){n[s]=t[s]&&function(o){return new Promise(function(a,l){o=t[s](o),r(a,l,o.done,o.value)})}}function r(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}typeof SuppressedError=="function"&&SuppressedError;function Re(t){return typeof t=="function"}function K1(t){var e=function(i){Error.call(i),i.stack=new Error().stack},n=t(e);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Qh=K1(function(t){return function(n){t(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
671
|
+
`+n.map(function(i,r){return r+1+") "+i.toString()}).join(`
|
|
672
|
+
`):"",this.name="UnsubscriptionError",this.errors=n}});function j1(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var kh=(function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,n,i,r,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=go(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(g){e={error:g}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}else o.remove(this);var u=this.initialTeardown;if(Re(u))try{u()}catch(g){s=g instanceof Qh?g.errors:[g]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var h=go(f),A=h.next();!A.done;A=h.next()){var d=A.value;try{X1(d)}catch(g){s=s??[],g instanceof Qh?s=Dh(Dh([],Sh(s)),Sh(g.errors)):s.push(g)}}}catch(g){i={error:g}}finally{try{A&&!A.done&&(r=h.return)&&r.call(h)}finally{if(i)throw i.error}}}if(s)throw new Qh(s)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)X1(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&j1(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&j1(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=(function(){var e=new t;return e.closed=!0,e})(),t})();kh.EMPTY;function W1(t){return t instanceof kh||t&&"closed"in t&&Re(t.remove)&&Re(t.add)&&Re(t.unsubscribe)}function X1(t){Re(t)?t():t.unsubscribe()}var u5={Promise:void 0},f5={setTimeout:function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return setTimeout.apply(void 0,Dh([t,e],Sh(n)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function Z1(t){f5.setTimeout(function(){throw t})}function $1(){}function h5(t){t()}var Rh=(function(t){Bh(e,t);function e(n){var i=t.call(this)||this;return i.isStopped=!1,n?(i.destination=n,W1(n)&&n.add(i)):i.destination=g5,i}return e.create=function(n,i,r){return new Sc(n,i,r)},e.prototype.next=function(n){this.isStopped||this._next(n)},e.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e})(kh),A5=(function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var n=this.partialObserver;if(n.next)try{n.next(e)}catch(i){Dc(i)}},t.prototype.error=function(e){var n=this.partialObserver;if(n.error)try{n.error(e)}catch(i){Dc(i)}else Dc(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(n){Dc(n)}},t})(),Sc=(function(t){Bh(e,t);function e(n,i,r){var s=t.call(this)||this,o;return Re(n)||!n?o={next:n??void 0,error:i??void 0,complete:r??void 0}:o=n,s.destination=new A5(o),s}return e})(Rh);function Dc(t){Z1(t)}function d5(t){throw t}var g5={closed:!0,next:$1,error:d5,complete:$1},Fh=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function eC(t){return t}function p5(t){return t.length===0?eC:t.length===1?t[0]:function(n){return t.reduce(function(i,r){return r(i)},n)}}var Ct=(function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(e,n,i){var r=this,s=w5(e)?e:new Sc(e,n,i);return h5(function(){var o=r,a=o.operator,l=o.source;s.add(a?a.call(s,l):l?r._subscribe(s):r._trySubscribe(s))}),s},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){e.error(n)}},t.prototype.forEach=function(e,n){var i=this;return n=tC(n),new n(function(r,s){var o=new Sc({next:function(a){try{e(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:r});i.subscribe(o)})},t.prototype._subscribe=function(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)},t.prototype[Fh]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return p5(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=tC(e),new e(function(i,r){var s;n.subscribe(function(o){return s=o},function(o){return r(o)},function(){return i(s)})})},t.create=function(e){return new t(e)},t})();function tC(t){var e;return(e=t??u5.Promise)!==null&&e!==void 0?e:Promise}function m5(t){return t&&Re(t.next)&&Re(t.error)&&Re(t.complete)}function w5(t){return t&&t instanceof Rh||m5(t)&&W1(t)}function y5(t){return Re(t?.lift)}function Br(t){return function(e){if(y5(e))return e.lift(function(n){try{return t(n,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function po(t,e,n,i,r){return new C5(t,e,n,i,r)}var C5=(function(t){Bh(e,t);function e(n,i,r,s,o,a){var l=t.call(this,n)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=i?function(c){try{i(c)}catch(u){n.error(u)}}:t.prototype._next,l._error=s?function(c){try{s(c)}catch(u){n.error(u)}finally{this.unsubscribe()}}:t.prototype._error,l._complete=r?function(){try{r()}catch(c){n.error(c)}finally{this.unsubscribe()}}:t.prototype._complete,l}return e.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;t.prototype.unsubscribe.call(this),!i&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},e})(Rh),b5=new Ct(function(t){return t.complete()});function E5(t){return t&&Re(t.schedule)}function nC(t){return t[t.length-1]}function I5(t){return E5(nC(t))?t.pop():void 0}function x5(t,e){return typeof nC(t)=="number"?t.pop():e}var iC=(function(t){return t&&typeof t.length=="number"&&typeof t!="function"});function rC(t){return Re(t?.then)}function sC(t){return Re(t[Fh])}function oC(t){return Symbol.asyncIterator&&Re(t?.[Symbol.asyncIterator])}function aC(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function v5(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var cC=v5();function lC(t){return Re(t?.[cC])}function uC(t){return c5(this,arguments,function(){var n,i,r,s;return q1(this,function(o){switch(o.label){case 0:n=t.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,vr(n.read())];case 3:return i=o.sent(),r=i.value,s=i.done,s?[4,vr(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,vr(r)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function fC(t){return Re(t?.getReader)}function Sr(t){if(t instanceof Ct)return t;if(t!=null){if(sC(t))return B5(t);if(iC(t))return S5(t);if(rC(t))return D5(t);if(oC(t))return hC(t);if(lC(t))return Q5(t);if(fC(t))return k5(t)}throw aC(t)}function B5(t){return new Ct(function(e){var n=t[Fh]();if(Re(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function S5(t){return new Ct(function(e){for(var n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function D5(t){return new Ct(function(e){t.then(function(n){e.closed||(e.next(n),e.complete())},function(n){return e.error(n)}).then(null,Z1)})}function Q5(t){return new Ct(function(e){var n,i;try{for(var r=go(t),s=r.next();!s.done;s=r.next()){var o=s.value;if(e.next(o),e.closed)return}}catch(a){n={error:a}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}e.complete()})}function hC(t){return new Ct(function(e){R5(t,e).catch(function(n){return e.error(n)})})}function k5(t){return hC(uC(t))}function R5(t,e){var n,i,r,s;return a5(this,void 0,void 0,function(){var o,a;return q1(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=l5(t),l.label=1;case 1:return[4,n.next()];case 2:if(i=l.sent(),!!i.done)return[3,4];if(o=i.value,e.next(o),e.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),r={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),i&&!i.done&&(s=n.return)?[4,s.call(n)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(r)throw r.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function Qi(t,e,n,i,r){i===void 0&&(i=0),r===void 0&&(r=!1);var s=e.schedule(function(){n(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(s),!r)return s}function AC(t,e){return e===void 0&&(e=0),Br(function(n,i){n.subscribe(po(i,function(r){return Qi(i,t,function(){return i.next(r)},e)},function(){return Qi(i,t,function(){return i.complete()},e)},function(r){return Qi(i,t,function(){return i.error(r)},e)}))})}function dC(t,e){return e===void 0&&(e=0),Br(function(n,i){i.add(t.schedule(function(){return n.subscribe(i)},e))})}function F5(t,e){return Sr(t).pipe(dC(e),AC(e))}function N5(t,e){return Sr(t).pipe(dC(e),AC(e))}function M5(t,e){return new Ct(function(n){var i=0;return e.schedule(function(){i===t.length?n.complete():(n.next(t[i++]),n.closed||this.schedule())})})}function T5(t,e){return new Ct(function(n){var i;return Qi(n,e,function(){i=t[cC](),Qi(n,e,function(){var r,s,o;try{r=i.next(),s=r.value,o=r.done}catch(a){n.error(a);return}o?n.complete():n.next(s)},0,!0)}),function(){return Re(i?.return)&&i.return()}})}function gC(t,e){if(!t)throw new Error("Iterable cannot be null");return new Ct(function(n){Qi(n,e,function(){var i=t[Symbol.asyncIterator]();Qi(n,e,function(){i.next().then(function(r){r.done?n.complete():n.next(r.value)})},0,!0)})})}function P5(t,e){return gC(uC(t),e)}function L5(t,e){if(t!=null){if(sC(t))return F5(t,e);if(iC(t))return M5(t,e);if(rC(t))return N5(t,e);if(oC(t))return gC(t,e);if(lC(t))return T5(t,e);if(fC(t))return P5(t,e)}throw aC(t)}function O5(t,e){return e?L5(t,e):Sr(t)}var U5=K1(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}});function pC(t,e){return new Promise(function(n,i){var r=new Sc({next:function(s){n(s),r.unsubscribe()},error:i,complete:function(){i(new U5)}});t.subscribe(r)})}function mC(t,e){return Br(function(n,i){var r=0;n.subscribe(po(i,function(s){i.next(t.call(e,s,r++))}))})}function _5(t,e,n,i,r,s,o,a){var l=[],c=0,u=0,f=!1,h=function(){f&&!l.length&&!c&&e.complete()},A=function(g){return c<i?d(g):l.push(g)},d=function(g){c++;var m=!1;Sr(n(g,u++)).subscribe(po(e,function(p){e.next(p)},function(){m=!0},void 0,function(){if(m)try{c--;for(var p=function(){var w=l.shift();o||d(w)};l.length&&c<i;)p();h()}catch(w){e.error(w)}}))};return t.subscribe(po(e,A,function(){f=!0,h()})),function(){}}function wC(t,e,n){return n===void 0&&(n=1/0),Re(e)?wC(function(i,r){return mC(function(s,o){return e(i,s,r,o)})(Sr(t(i,r)))},n):(typeof e=="number"&&(n=e),Br(function(i,r){return _5(i,r,t,n)}))}function z5(t){return t===void 0&&(t=1/0),wC(eC,t)}function G5(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=I5(t),i=x5(t,1/0),r=t;return r.length?r.length===1?Sr(r[0]):z5(i)(O5(r,n)):b5}function H5(t,e,n,i,r){return function(s,o){var a=n,l=e,c=0;s.subscribe(po(o,function(u){var f=c++;l=a?t(l,u,f):(a=!0,u)},(function(){a&&o.next(l),o.complete()})))}}function yC(t,e){return Br(H5(t,e,arguments.length>=2,!1,!0))}var Y5=function(t,e){return t.push(e),t};function V5(){return Br(function(t,e){yC(Y5,[])(t).subscribe(e)})}class J5{}class q5{constructor(){this.signals=new Set,this.abortController=new AbortController}addSignal(e=new J5){if(this.signal.aborted)throw new Error("cannot add a signal, already aborted!");this.signals.add(e),e.aborted?this.handleAborted(e):typeof e.addEventListener=="function"&&e.addEventListener("abort",()=>{this.handleAborted(e)})}handleAborted(e){this.signals.delete(e),this.signals.size===0&&this.abortController.abort()}get signal(){return this.abortController.signal}abort(){this.abortController.abort()}}class K5{constructor(){this.callbacks=new Set}addCallback(e=()=>{}){this.callbacks.add(e),this.currentMessage&&e(this.currentMessage)}callback(e){this.currentMessage=e;for(const n of this.callbacks)n(e)}}class Dr{constructor({fill:e,cache:n}){if(typeof e!="function")throw new TypeError("must pass a fill function");if(typeof n!="object")throw new TypeError("must pass a cache object");if(typeof n.get!="function"||typeof n.set!="function"||typeof n.delete!="function")throw new TypeError("cache must implement get(key), set(key, val), and and delete(key)");this.cache=n,this.fillCallback=e}static isAbortException(e){return e.name==="AbortError"||e.code==="ERR_ABORTED"||e.message==="AbortError: aborted"||e.message==="Error: aborted"}evict(e,n){this.cache.get(e)===n&&this.cache.delete(e)}fill(e,n,i,r){const s=new q5,o=new K5;o.addCallback(r);const a={aborter:s,promise:this.fillCallback(n,s.signal,l=>{o.callback(l)}),settled:!1,statusReporter:o,get aborted(){return this.aborter.signal.aborted}};a.aborter.addSignal(i),a.aborter.signal.addEventListener("abort",()=>{a.settled||this.evict(e,a)}),a.promise.then(()=>{a.settled=!0},()=>{a.settled=!0,this.evict(e,a)}).catch(l=>{throw console.error(l),l}),this.cache.set(e,a)}static checkSinglePromise(e,n){function i(){if(n?.aborted)throw Object.assign(new Error("aborted"),{code:"ERR_ABORTED"})}return e.then(r=>(i(),r),r=>{throw i(),r})}has(e){return this.cache.has(e)}get(e,n,i,r){if(!i&&n instanceof AbortSignal)throw new TypeError("second get argument appears to be an AbortSignal, perhaps you meant to pass `null` for the fill data?");const s=this.cache.get(e);return s?s.aborted&&!s.settled?(this.evict(e,s),this.get(e,n,i,r)):s.settled?s.promise:(s.aborter.addSignal(i),s.statusReporter.addCallback(r),Dr.checkSinglePromise(s.promise,i)):(this.fill(e,n,i,r),Dr.checkSinglePromise(this.cache.get(e).promise,i))}delete(e){const n=this.cache.get(e);n&&(n.settled||n.aborter.abort(),this.cache.delete(e))}clear(){const e=this.cache.keys();let n=0;for(let i=e.next();!i.done;i=e.next())this.delete(i.value),n+=1;return n}}function j5(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Nh,CC;function W5(){if(CC)return Nh;CC=1;class t{constructor(n={}){if(!(n.maxSize&&n.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=n.maxSize,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(n,i){this.cache.set(n,i),this._size++,this._size>=this.maxSize&&(this._size=0,this.oldCache=this.cache,this.cache=new Map)}get(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n)){const i=this.oldCache.get(n);return this.oldCache.delete(n),this._set(n,i),i}}set(n,i){return this.cache.has(n)?this.cache.set(n,i):this._set(n,i),this}has(n){return this.cache.has(n)||this.oldCache.has(n)}peek(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n))return this.oldCache.get(n)}delete(n){const i=this.cache.delete(n);return i&&this._size--,this.oldCache.delete(n)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(const[n]of this)yield n}*values(){for(const[,n]of this)yield n}*[Symbol.iterator](){for(const n of this.cache)yield n;for(const n of this.oldCache){const[i]=n;this.cache.has(i)||(yield n)}}get size(){let n=0;for(const i of this.oldCache.keys())this.cache.has(i)||n++;return this._size+n}}return Nh=t,Nh}var X5=W5();const bC=j5(X5);class Qr{ranges;constructor(e){this.ranges=e}get min(){return this.ranges[0].min}get max(){return this.ranges.at(-1).max}contains(e){for(const n of this.ranges)if(n.min<=e&&n.max>=e)return!0;return!1}isContiguous(){return this.ranges.length>1}getRanges(){return this.ranges.map(e=>new Qr([{min:e.min,max:e.max}]))}toString(){return this.ranges.map(e=>`[${e.min}-${e.max}]`).join(",")}union(e){const n=[...this.getRanges(),...e.getRanges()].sort((s,o)=>s.min<o.min?-1:s.min>o.min?1:s.max<o.max?-1:o.max>s.max?1:0),i=[];let r=n[0];for(const s of n)s.min>r.max+1?(i.push(r),r=s):s.max>r.max&&(r=new Qr([{min:r.min,max:s.max}]));return i.push(r),i.length===1?i[0]:new Qr(i)}}function Z5(t){return ZT(t.subarray(2),void 0)}class $5 extends Error{code;constructor(e){super(e),this.code="ERR_ABORTED"}}function eP(t){t.sort((r,s)=>r.offset-s.offset);const e=[];let n,i;for(const r of t)n&&i&&r.offset-i<=2e3?(n.length=n.length+r.length-i+r.offset,n.blocks.push(r)):e.push(n={blocks:[r],length:r.length,offset:r.offset}),i=n.offset+n.length;return e}function Qc(t){if(t&&t.aborted)if(typeof DOMException>"u"){const e=new $5("aborted");throw e.code="ERR_ABORTED",e}else throw new DOMException("aborted","AbortError")}const tP=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Mh(t,e,n,i){return t<i&&e>=n}class EC{bbi;refsByName;cirTreeOffset;isCompressed;blockType;cirTreePromise;featureCache=new Dr({cache:new bC({maxSize:1e3}),fill:async({length:e,offset:n},i)=>this.bbi.read(e,n,{signal:i})});constructor(e,n,i,r,s){if(this.bbi=e,this.refsByName=n,this.cirTreeOffset=i,this.isCompressed=r,this.blockType=s,!(i>=0))throw new Error("invalid cirTreeOffset!")}async readWigData(e,n,i,r,s){try{const o=this.refsByName[e];o===void 0&&r.complete();const a={chrId:o,start:n,end:i};this.cirTreePromise||(this.cirTreePromise=this.bbi.read(48,this.cirTreeOffset,s));const l=await this.cirTreePromise,u=new DataView(l.buffer).getUint32(4,!0);let f=[],h=0;const A=(p,w,C)=>{try{const I=p.subarray(w),x=new DataView(I.buffer,I.byteOffset,I.length);let E=0;const S=x.getUint8(E);E+=2;const D=x.getUint16(E,!0);if(E+=2,S===1){const B=[];for(let k=0;k<D;k++){const F=x.getUint32(E,!0);E+=4;const M=x.getUint32(E,!0);E+=4;const O=x.getUint32(E,!0);E+=4;const _=x.getUint32(E,!0);E+=4;const H=Number(x.getBigUint64(E,!0));E+=8;const G=Number(x.getBigUint64(E,!0));E+=8,B.push({startChrom:F,startBase:M,endBase:_,endChrom:O,blockOffset:H,blockSize:G,offset:E})}f=f.concat(B.filter(k=>d(k)).map(k=>({offset:k.blockOffset,length:k.blockSize})))}else if(S===0){const B=[];for(let F=0;F<D;F++){const M=x.getUint32(E,!0);E+=4;const O=x.getUint32(E,!0);E+=4;const _=x.getUint32(E,!0);E+=4;const H=x.getUint32(E,!0);E+=4;const G=Number(x.getBigUint64(E,!0));E+=8,B.push({startChrom:M,startBase:O,endChrom:_,endBase:H,blockOffset:G,offset:E})}const k=B.filter(F=>d(F)).map(F=>F.blockOffset);k.length>0&&m(k,C+1)}}catch(y){r.error(y)}},d=p=>{const{startChrom:w,startBase:C,endChrom:y,endBase:I}=p;return(w<o||w===o&&C<=i)&&(y>o||y===o&&I>=n)},g=async(p,w,C)=>{try{const y=w.max-w.min,I=w.min,x=await this.featureCache.get(`${y}_${I}`,{length:y,offset:I},s?.signal);for(const E of p)w.contains(E)&&(A(x,E-I,C),h-=1,h===0&&this.readFeatures(r,f,{...s,request:a}).catch(S=>{r.error(S)}))}catch(y){r.error(y)}},m=(p,w)=>{try{h+=p.length;const C=4+u*32;let y=new Qr([{min:p[0],max:p[0]+C}]);for(let I=1;I<p.length;I+=1){const x=new Qr([{min:p[I],max:p[I]+C}]);y=y.union(x)}y.getRanges().map(I=>g(p,I,w))}catch(C){r.error(C)}};m([this.cirTreeOffset+48],1);return}catch(o){r.error(o)}}parseSummaryBlock(e,n,i){const r=[];let s=n;const o=new DataView(e.buffer,e.byteOffset,e.length);for(;s<e.byteLength;){const a=o.getUint32(s,!0);s+=4;const l=o.getUint32(s,!0);s+=4;const c=o.getUint32(s,!0);s+=4;const u=o.getUint32(s,!0);s+=4;const f=o.getFloat32(s,!0);s+=4;const h=o.getFloat32(s,!0);s+=4;const A=o.getFloat32(s,!0);s+=4,s+=4,(!i||a===i.chrId&&Mh(l,c,i.start,i.end))&&r.push({start:l,end:c,maxScore:h,minScore:f,summary:!0,score:A/(u||1)})}return r}parseBigBedBlock(e,n,i,r){const s=[];let o=n;const a=e,l=new DataView(a.buffer,a.byteOffset,a.length);for(;o<e.byteLength;){const c=o,u=l.getUint32(o,!0);o+=4;const f=l.getInt32(o,!0);o+=4;const h=l.getInt32(o,!0);o+=4;let A=o;for(;A<e.length&&e[A]!==0;A++);const d=e.subarray(o,A),g=tP?.decode(d)??d.toString();o=A+1,s.push({chromId:u,start:f,end:h,rest:g,uniqueId:`bb-${i+c}`})}return r?s.filter(c=>Mh(c.start,c.end,r.start,r.end)):s}parseBigWigBlock(e,n,i){const r=e.subarray(n),s=new DataView(r.buffer,r.byteOffset,r.length);let o=0;o+=4;const a=s.getInt32(o,!0);o+=8;const l=s.getUint32(o,!0);o+=4;const c=s.getUint32(o,!0);o+=4;const u=s.getUint8(o);o+=2;const f=s.getUint16(o,!0);o+=2;const h=new Array(f);switch(u){case 1:{for(let A=0;A<f;A++){const d=s.getInt32(o,!0);o+=4;const g=s.getInt32(o,!0);o+=4;const m=s.getFloat32(o,!0);o+=4,h[A]={start:d,end:g,score:m}}break}case 2:{for(let A=0;A<f;A++){const d=s.getInt32(o,!0);o+=4;const g=s.getFloat32(o,!0);o+=4,h[A]={score:g,start:d,end:d+c}}break}case 3:{for(let A=0;A<f;A++){const d=s.getFloat32(o,!0);o+=4;const g=a+A*l;h[A]={score:d,start:g,end:g+c}}break}}return i?h.filter(A=>Mh(A.start,A.end,i.start,i.end)):h}async readFeatures(e,n,i={}){try{const{blockType:r,isCompressed:s}=this,{signal:o,request:a}=i,l=eP(n);Qc(o),await Promise.all(l.map(async c=>{Qc(o);const{length:u,offset:f}=c,h=await this.featureCache.get(`${u}_${f}`,c,o);for(const A of c.blocks){Qc(o);let d=h.subarray(A.offset-c.offset);switch(s&&(d=Z5(d)),Qc(o),r){case"summary":{e.next(this.parseSummaryBlock(d,0,a));break}case"bigwig":{e.next(this.parseBigWigBlock(d,0,a));break}case"bigbed":{e.next(this.parseBigBedBlock(d,0,A.offset*256,a));break}default:console.warn(`Don't know what to do with ${r}`)}}})),e.complete()}catch(r){e.error(r)}}}const nP=-2003829722,IC=-2021002517;function kr(t){return new DataView(t.buffer,t.byteOffset,t.length)}class xC{bbi;headerP;renameRefSeqs;getHeader(e){return this.headerP||(this.headerP=this._getHeader(e).catch(n=>{throw this.headerP=void 0,n})),this.headerP}constructor(e){const{filehandle:n,renameRefSeqs:i=o=>o,path:r,url:s}=e;if(this.renameRefSeqs=i,n)this.bbi=n;else if(s)this.bbi=new Vt(s);else if(r)this.bbi=new $e(r);else throw new Error("no file given")}async _getHeader(e){const n=await this._getMainHeader(e),i=await this._readChromTree(n,e);return{...n,...i}}async _getMainHeader(e,n=2e3){const i=await this.bbi.read(n,0,e),r=kr(i),s=r.getInt32(0,!0);if(s!==nP&&s!==IC)throw new Error("not a BigWig/BigBed file");let o=0;const a=r.getInt32(o,!0);o+=4;const l=r.getUint16(o,!0);o+=2;const c=r.getUint16(o,!0);o+=2;const u=Number(r.getBigUint64(o,!0));o+=8;const f=Number(r.getBigUint64(o,!0));o+=8;const h=Number(r.getBigUint64(o,!0));o+=8;const A=r.getUint16(o,!0);o+=2;const d=r.getUint16(o,!0);o+=2;const g=Number(r.getBigUint64(o,!0));o+=8;const m=Number(r.getBigUint64(o,!0));o+=8;const p=r.getUint32(o,!0);o+=4;const w=Number(r.getBigUint64(o,!0));o+=8;const C=[];for(let E=0;E<c;E++){const S=r.getUint32(o,!0);o+=4;const D=r.getUint32(o,!0);o+=4;const B=Number(r.getBigUint64(o,!0));o+=8;const k=Number(r.getBigUint64(o,!0));o+=8,C.push({reductionLevel:S,reserved:D,dataOffset:B,indexOffset:k})}const y=a===IC?"bigbed":"bigwig";if(g>n||m>n-40)return this._getMainHeader(e,n*2);let I;if(m){const E=i.subarray(m);let S=0;const D=kr(E),B=Number(D.getBigUint64(S,!0));S+=8;const k=D.getFloat64(S,!0);S+=8;const F=D.getFloat64(S,!0);S+=8;const M=D.getFloat64(S,!0);S+=8;const O=D.getFloat64(S,!0);S+=8,I={scoreMin:k,scoreMax:F,scoreSum:M,scoreSumSquares:O,basesCovered:B}}else throw new Error("no stats");const x=new TextDecoder("utf8");return{zoomLevels:C,magic:a,extHeaderOffset:w,numZoomLevels:c,fieldCount:A,totalSummary:I,definedFieldCount:d,uncompressBufSize:p,asOffset:g,chromTreeOffset:u,totalSummaryOffset:m,unzoomedDataOffset:f,unzoomedIndexOffset:h,fileType:y,version:l,autoSql:g?x.decode(i.subarray(g,i.indexOf(0,g))):""}}async _readChromTree(e,n){const i=[],r={},s=e.chromTreeOffset,o=kr(await this.bbi.read(32,s,n));let a=0;a+=4,a+=4;const l=o.getUint32(a,!0);a+=4;const c=o.getUint32(a,!0);a+=4,a+=8;const u=new TextDecoder("utf8"),f=async h=>{const A=await this.bbi.read(4,h),d=kr(A);let g=0;const m=d.getUint8(g);g+=1,g+=1;const p=d.getUint16(g,!0);if(g+=2,m){const w=await this.bbi.read(p*(l+c),h+g),C=kr(w);g=0;for(let y=0;y<p;y++){const I=u.decode(w.subarray(g,g+l)).replaceAll("\0","");g+=l;const x=C.getUint32(g,!0);g+=4;const E=C.getUint32(g,!0);g+=4,r[this.renameRefSeqs(I)]=x,i[x]={name:I,id:x,length:E}}}else{const w=[],C=kr(await this.bbi.read(p*(l+8),h+g));g=0;for(let y=0;y<p;y++){g+=l;const I=Number(C.getBigUint64(g,!0));g+=8,w.push(f(I))}await Promise.all(w)}};return await f(s+32),{refsByName:r,refsByNumber:i}}async getUnzoomedView(e){const{unzoomedIndexOffset:n,refsByName:i,uncompressBufSize:r,fileType:s}=await this.getHeader(e);return new EC(this.bbi,i,n,r>0,s)}async getFeatureStream(e,n,i,r){await this.getHeader(r);const s=this.renameRefSeqs(e);let o;const{basesPerSpan:a,scale:l}=r||{};return a?o=await this.getView(1/a,r):l?o=await this.getView(l,r):o=await this.getView(1,r),new Ct(c=>{o.readWigData(s,n,i,c,r).catch(u=>{c.error(u)})})}async getFeatures(e,n,i,r){const s=await this.getFeatureStream(e,n,i,r);return(await pC(s.pipe(V5()))).flat()}}class iP extends xC{async getView(e,n){const{zoomLevels:i,refsByName:r,uncompressBufSize:s}=await this.getHeader(n),o=1/e,a=i.length-1;for(let l=a;l>=0;l-=1){const c=i[l];if(c&&c.reductionLevel<=2*o)return new EC(this.bbi,r,c.indexOffset,s>0,"summary")}return this.getUnzoomedView(n)}}function rP(t){return t.filter(e=>!!e)}class sP extends xC{readIndicesCache=new Dr({cache:new bC({maxSize:1}),fill:(e,n)=>this._readIndices({...e,signal:n})});readIndices(e={}){const{signal:n,...i}=e;return this.readIndicesCache.get(JSON.stringify(i),e,n)}async getView(e,n){return this.getUnzoomedView(n)}async _readIndices(e){const{extHeaderOffset:n}=await this.getHeader(e),i=await this.bbi.read(64,n),r=new DataView(i.buffer,i.byteOffset,i.length);let s=0;s+=2;const o=r.getUint16(s,!0);s+=2;const a=Number(r.getBigUint64(s,!0));if(s+=8,o===0)return[];const l=20,c=l*o,u=await this.bbi.read(c,a),f=[];for(let h=0;h<o;h+=1){const A=u.subarray(h*l),d=new DataView(A.buffer,A.byteOffset,A.length);let g=0;const m=d.getInt16(g,!0);g+=2;const p=d.getInt16(g,!0);g+=2;const w=Number(d.getBigUint64(g,!0));g+=12;const C=d.getInt16(g,!0);f.push({type:m,fieldcount:p,offset:w,field:C})}return f}async searchExtraIndexBlocks(e,n={}){const i=await this.readIndices(n);if(i.length===0)return[];const r=new TextDecoder("utf8"),s=i.map(async o=>{const{offset:a,field:l}=o,c=await this.bbi.read(32,a,n),u=new DataView(c.buffer,c.byteOffset,c.length);let f=0;f+=4;const h=u.getInt32(f,!0);f+=4;const A=u.getInt32(f,!0);f+=4;const d=u.getInt32(f,!0);f+=4,f+=8;const g=async m=>{const p=m,w=4+h*(A+d),y=await this.bbi.read(w,p,n),I=new DataView(y.buffer,y.byteOffset,y.length);let x=0;const E=I.getInt8(x);x+=2;const S=I.getInt16(x,!0);x+=2;const D=[];if(E===0){const B=[];for(let F=0;F<S;F++){const M=r.decode(y.subarray(x,x+A)).replaceAll("\0","");x+=A;const O=Number(I.getBigUint64(x,!0));x+=8,B.push({key:M,offset:O})}let k=0;for(const{key:F,offset:M}of B){if(e.localeCompare(F)<0&&k)return g(k);k=M}return g(k)}else if(E===1){for(let B=0;B<S;B++){const k=r.decode(y.subarray(x,x+A)).replaceAll("\0","");x+=A;const F=Number(I.getBigUint64(x,!0));x+=8;const M=I.getUint32(x,!0);x+=4;const O=I.getUint32(x,!0);x+=4,D.push({key:k,offset:F,length:M,reserved:O})}for(const B of D)if(B.key===e)return{...B,field:l};return}};return g(a+32)});return rP(await Promise.all(s))}async searchExtraIndex(e,n={}){const i=await this.searchExtraIndexBlocks(e,n);if(i.length===0)return[];const r=await this.getUnzoomedView(n),s=i.map(a=>new Ct(l=>{r.readFeatures(l,[a],n).catch(c=>{l.error(c)})}).pipe(yC((l,c)=>l.concat(c)),mC(l=>{for(const c of l)c.field=a.field;return l})));return(await pC(G5(...s))).filter(a=>a.rest?.split(" ")[(a.field||0)-3]===e)}}const vC=Object.freeze(Object.defineProperty({__proto__:null,BigBed:sP,BigWig:iP},Symbol.toStringTag,{value:"Module"}));function oP(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}function Rr(t,e,n,i){this.message=t,this.expected=e,this.found=n,this.location=i,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Rr)}oP(Rr,Error),Rr.buildMessage=function(t,e){var n={literal:function(c){return'"'+r(c.text)+'"'},class:function(c){var u="",f;for(f=0;f<c.parts.length;f++)u+=c.parts[f]instanceof Array?s(c.parts[f][0])+"-"+s(c.parts[f][1]):s(c.parts[f]);return"["+(c.inverted?"^":"")+u+"]"},any:function(c){return"any character"},end:function(c){return"end of input"},other:function(c){return c.description}};function i(c){return c.charCodeAt(0).toString(16).toUpperCase()}function r(c){return c.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(u){return"\\x0"+i(u)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(u){return"\\x"+i(u)})}function s(c){return c.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(u){return"\\x0"+i(u)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(u){return"\\x"+i(u)})}function o(c){return n[c.type](c)}function a(c){var u=new Array(c.length),f,h;for(f=0;f<c.length;f++)u[f]=o(c[f]);if(u.sort(),u.length>0){for(f=1,h=1;f<u.length;f++)u[f-1]!==u[f]&&(u[h]=u[f],h++);u.length=h}switch(u.length){case 1:return u[0];case 2:return u[0]+" or "+u[1];default:return u.slice(0,-1).join(", ")+", or "+u[u.length-1]}}function l(c){return c?'"'+r(c)+'"':"end of input"}return"Expected "+a(t)+" but "+l(e)+" found."};function aP(t,e){e=e!==void 0?e:{};var n={},i={declaration:YE},r=YE,s="(",o=ce("(",!1),a=")",l=ce(")",!1),c=function(b,Q,T,L){return{type:b,name:Q,comment:T,fields:L}},u="simple",f=ce("simple",!1),h="object",A=ce("object",!1),d="table",g=ce("table",!1),m="auto",p=ce("auto",!1),w="primary",C=ce("primary",!1),y="index",I=ce("index",!1),x="unique",E=ce("unique",!1),S=function(b,Q){return Q},D=function(b,Q){return b.name&&Q.unshift(b),Q},B="#",k=ce("#",!1),F=";",M=ce(";",!1),O=function(b,Q,T){return{type:b,name:Q,comment:T}},_="[",H=ce("[",!1),G="]",q=ce("]",!1),Z=function(b,Q,T,L){return{type:b,size:Q,name:T,comment:L}},Y=function(b,Q,T,L){return{type:b,vals:Q,name:T,comment:L}},we=",",ze=ce(",",!1),mn=function(b,Q){return Q.unshift(b),Q},jt="int",wn=ce("int",!1),Oi="uint",Qo=ce("uint",!1),Vr="short",U=ce("short",!1),W="ushort",$=ce("ushort",!1),N="byte",tt=ce("byte",!1),oe="ubyte",st=ce("ubyte",!1),nt="float",yn=ce("float",!1),ko="char",h7=ce("char",!1),BE="string",A7=ce("string",!1),SE="lstring",d7=ce("lstring",!1),DE="enum",g7=ce("enum",!1),QE="double",p7=ce("double",!1),kE="bigint",m7=ce("bigint",!1),RE="set",w7=ce("set",!1),y7=function(b,Q){return b+" "+Q},C7=/^[a-zA-Z_]/,b7=Ro([["a","z"],["A","Z"],"_"],!1,!1),FE=/^[a-zA-Z0-9_]/,NE=Ro([["a","z"],["A","Z"],["0","9"],"_"],!1,!1),E7=function(b){return _E()},ME=/^[^\n\r]/,TE=Ro([`
|
|
673
|
+
`,"\r"],!0,!1),I7=function(b){return b.join("").replace(/^"/,"").replace(/"$/,"")},x7=zE("integer"),PE=/^[0-9]/,LE=Ro([["0","9"]],!1,!1),v7=function(){return parseInt(_E(),10)},B7=zE("whitespace"),OE=/^[ \t\n\r]/,UE=Ro([" "," ",`
|
|
674
|
+
`,"\r"],!1,!1),v=0,ot=0,rl=[{line:1,column:1}],Wt=0,yA=[],J=0,sl;if("startRule"in e){if(!(e.startRule in i))throw new Error(`Can't start parsing from rule "`+e.startRule+'".');r=i[e.startRule]}function _E(){return t.substring(ot,v)}function ce(b,Q){return{type:"literal",text:b,ignoreCase:Q}}function Ro(b,Q,T){return{type:"class",parts:b,inverted:Q,ignoreCase:T}}function S7(){return{type:"end"}}function zE(b){return{type:"other",description:b}}function GE(b){var Q=rl[b],T;if(Q)return Q;for(T=b-1;!rl[T];)T--;for(Q=rl[T],Q={line:Q.line,column:Q.column};T<b;)t.charCodeAt(T)===10?(Q.line++,Q.column=1):Q.column++,T++;return rl[b]=Q,Q}function HE(b,Q){var T=GE(b),L=GE(Q);return{start:{offset:b,line:T.line,column:T.column},end:{offset:Q,line:L.line,column:L.column}}}function K(b){v<Wt||(v>Wt&&(Wt=v,yA=[]),yA.push(b))}function D7(b,Q,T){return new Rr(Rr.buildMessage(b,Q),b,Q,T)}function YE(){var b,Q,T,L,V,he,ye,It,jn,Cn,Wn,bn,Xn,En;return b=v,Q=ee(),Q!==n?(T=VE(),T!==n?(L=ee(),L!==n?(V=JE(),V!==n?(he=ee(),he!==n?(ye=ol(),ye!==n?(It=ee(),It!==n?(t.charCodeAt(v)===40?(jn=s,v++):(jn=n,J===0&&K(o)),jn!==n?(Cn=ee(),Cn!==n?(Wn=Q7(),Wn!==n?(bn=ee(),bn!==n?(t.charCodeAt(v)===41?(Xn=a,v++):(Xn=n,J===0&&K(l)),Xn!==n?(En=ee(),En!==n?(ot=b,Q=c(T,V,ye,Wn),b=Q):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n),b}function VE(){var b;return t.substr(v,6)===u?(b=u,v+=6):(b=n,J===0&&K(f)),b===n&&(t.substr(v,6)===h?(b=h,v+=6):(b=n,J===0&&K(A)),b===n&&(t.substr(v,5)===d?(b=d,v+=5):(b=n,J===0&&K(g)))),b}function JE(){var b,Q,T,L;return b=Ft(),b===n&&(b=v,Q=Ft(),Q!==n?(T=qE(),T!==n?(Q=[Q,T],b=Q):(v=b,b=n)):(v=b,b=n),b===n&&(b=v,Q=Ft(),Q!==n?(t.substr(v,4)===m?(T=m,v+=4):(T=n,J===0&&K(p)),T!==n?(Q=[Q,T],b=Q):(v=b,b=n)):(v=b,b=n),b===n&&(b=v,Q=Ft(),Q!==n?(T=qE(),T!==n?(t.substr(v,4)===m?(L=m,v+=4):(L=n,J===0&&K(p)),L!==n?(Q=[Q,T,L],b=Q):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)))),b}function qE(){var b;return t.substr(v,7)===w?(b=w,v+=7):(b=n,J===0&&K(C)),b===n&&(t.substr(v,5)===y?(b=y,v+=5):(b=n,J===0&&K(I)),b===n&&(t.substr(v,6)===x?(b=x,v+=6):(b=n,J===0&&K(E)))),b}function ol(){var b;return b=KE(),b===n&&(b=ee()),b}function Q7(){var b,Q,T,L,V,he,ye;if(b=v,Q=CA(),Q!==n)if(T=ee(),T!==n){for(L=[],V=v,he=ee(),he!==n?(ye=CA(),ye!==n?(ot=V,he=S(Q,ye),V=he):(v=V,V=n)):(v=V,V=n);V!==n;)L.push(V),V=v,he=ee(),he!==n?(ye=CA(),ye!==n?(ot=V,he=S(Q,ye),V=he):(v=V,V=n)):(v=V,V=n);L!==n?(V=ee(),V!==n?(ot=b,Q=D(Q,L),b=Q):(v=b,b=n)):(v=b,b=n)}else v=b,b=n;else v=b,b=n;return b}function k7(){var b;return t.charCodeAt(v)===35?(b=B,v++):(b=n,J===0&&K(k)),b}function R7(){var b,Q,T,L,V;return b=v,Q=ee(),Q!==n?(T=k7(),T!==n?(L=KE(),L!==n?(V=ee(),V!==n?(Q=[Q,T,L,V],b=Q):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n),b}function CA(){var b,Q,T,L,V,he,ye,It,jn,Cn,Wn,bn,Xn,En;return b=v,Q=bA(),Q!==n?(T=ee(),T!==n?(L=Ft(),L!==n?(V=ee(),V!==n?(t.charCodeAt(v)===59?(he=F,v++):(he=n,J===0&&K(M)),he!==n?(ye=ee(),ye!==n?(It=ol(),It!==n?(ot=b,Q=O(Q,L,It),b=Q):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n),b===n&&(b=v,Q=bA(),Q!==n?(T=ee(),T!==n?(t.charCodeAt(v)===91?(L=_,v++):(L=n,J===0&&K(H)),L!==n?(V=ee(),V!==n?(he=N7(),he!==n?(ye=ee(),ye!==n?(t.charCodeAt(v)===93?(It=G,v++):(It=n,J===0&&K(q)),It!==n?(jn=ee(),jn!==n?(Cn=Ft(),Cn!==n?(Wn=ee(),Wn!==n?(t.charCodeAt(v)===59?(bn=F,v++):(bn=n,J===0&&K(M)),bn!==n?(Xn=ee(),Xn!==n?(En=ol(),En!==n?(ot=b,Q=Z(Q,he,Cn,En),b=Q):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n),b===n&&(b=v,Q=bA(),Q!==n?(T=ee(),T!==n?(t.charCodeAt(v)===40?(L=s,v++):(L=n,J===0&&K(o)),L!==n?(V=ee(),V!==n?(he=F7(),he!==n?(ye=ee(),ye!==n?(t.charCodeAt(v)===41?(It=a,v++):(It=n,J===0&&K(l)),It!==n?(jn=ee(),jn!==n?(Cn=Ft(),Cn!==n?(Wn=ee(),Wn!==n?(t.charCodeAt(v)===59?(bn=F,v++):(bn=n,J===0&&K(M)),bn!==n?(Xn=ee(),Xn!==n?(En=ol(),En!==n?(ot=b,Q=Y(Q,he,Cn,En),b=Q):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n)):(v=b,b=n),b===n&&(b=R7()))),b}function F7(){var b,Q,T,L,V,he,ye;if(b=v,Q=Ft(),Q!==n){for(T=[],L=v,t.charCodeAt(v)===44?(V=we,v++):(V=n,J===0&&K(ze)),V!==n?(he=ee(),he!==n?(ye=Ft(),ye!==n?(ot=L,V=S(Q,ye),L=V):(v=L,L=n)):(v=L,L=n)):(v=L,L=n);L!==n;)T.push(L),L=v,t.charCodeAt(v)===44?(V=we,v++):(V=n,J===0&&K(ze)),V!==n?(he=ee(),he!==n?(ye=Ft(),ye!==n?(ot=L,V=S(Q,ye),L=V):(v=L,L=n)):(v=L,L=n)):(v=L,L=n);T!==n?(ot=b,Q=mn(Q,T),b=Q):(v=b,b=n)}else v=b,b=n;return b}function bA(){var b,Q,T,L;return t.substr(v,3)===jt?(b=jt,v+=3):(b=n,J===0&&K(wn)),b===n&&(t.substr(v,4)===Oi?(b=Oi,v+=4):(b=n,J===0&&K(Qo)),b===n&&(t.substr(v,5)===Vr?(b=Vr,v+=5):(b=n,J===0&&K(U)),b===n&&(t.substr(v,6)===W?(b=W,v+=6):(b=n,J===0&&K($)),b===n&&(t.substr(v,4)===N?(b=N,v+=4):(b=n,J===0&&K(tt)),b===n&&(t.substr(v,5)===oe?(b=oe,v+=5):(b=n,J===0&&K(st)),b===n&&(t.substr(v,5)===nt?(b=nt,v+=5):(b=n,J===0&&K(yn)),b===n&&(t.substr(v,4)===ko?(b=ko,v+=4):(b=n,J===0&&K(h7)),b===n&&(t.substr(v,6)===BE?(b=BE,v+=6):(b=n,J===0&&K(A7)),b===n&&(t.substr(v,7)===SE?(b=SE,v+=7):(b=n,J===0&&K(d7)),b===n&&(t.substr(v,4)===DE?(b=DE,v+=4):(b=n,J===0&&K(g7)),b===n&&(t.substr(v,6)===QE?(b=QE,v+=6):(b=n,J===0&&K(p7)),b===n&&(t.substr(v,6)===kE?(b=kE,v+=6):(b=n,J===0&&K(m7)),b===n&&(t.substr(v,3)===RE?(b=RE,v+=3):(b=n,J===0&&K(w7)),b===n&&(b=v,Q=VE(),Q!==n?(T=ee(),T!==n?(L=JE(),L!==n?(ot=b,Q=y7(Q,L),b=Q):(v=b,b=n)):(v=b,b=n)):(v=b,b=n))))))))))))))),b}function N7(){var b;return b=M7(),b===n&&(b=Ft()),b}function Ft(){var b,Q,T,L,V;if(b=v,Q=v,C7.test(t.charAt(v))?(T=t.charAt(v),v++):(T=n,J===0&&K(b7)),T!==n){for(L=[],FE.test(t.charAt(v))?(V=t.charAt(v),v++):(V=n,J===0&&K(NE));V!==n;)L.push(V),FE.test(t.charAt(v))?(V=t.charAt(v),v++):(V=n,J===0&&K(NE));L!==n?(T=[T,L],Q=T):(v=Q,Q=n)}else v=Q,Q=n;return Q!==n&&(ot=b,Q=E7()),b=Q,b}function KE(){var b,Q,T;for(b=v,Q=[],ME.test(t.charAt(v))?(T=t.charAt(v),v++):(T=n,J===0&&K(TE));T!==n;)Q.push(T),ME.test(t.charAt(v))?(T=t.charAt(v),v++):(T=n,J===0&&K(TE));return Q!==n&&(ot=b,Q=I7(Q)),b=Q,b}function M7(){var b,Q,T,L;if(J++,b=v,Q=ee(),Q!==n){if(T=[],PE.test(t.charAt(v))?(L=t.charAt(v),v++):(L=n,J===0&&K(LE)),L!==n)for(;L!==n;)T.push(L),PE.test(t.charAt(v))?(L=t.charAt(v),v++):(L=n,J===0&&K(LE));else T=n;T!==n?(ot=b,Q=v7(),b=Q):(v=b,b=n)}else v=b,b=n;return J--,b===n&&(Q=n,J===0&&K(x7)),b}function ee(){var b,Q;for(J++,b=[],OE.test(t.charAt(v))?(Q=t.charAt(v),v++):(Q=n,J===0&&K(UE));Q!==n;)b.push(Q),OE.test(t.charAt(v))?(Q=t.charAt(v),v++):(Q=n,J===0&&K(UE));return J--,b===n&&(Q=n,J===0&&K(B7)),b}if(sl=r(),sl!==n&&v===t.length)return sl;throw sl!==n&&v<t.length&&K(S7()),D7(yA,Wt<t.length?t.charAt(Wt):null,Wt<t.length?HE(Wt,Wt+1):HE(Wt,Wt))}const BC={SyntaxError:Rr,parse:aP},Th=Object.fromEntries(Object.entries(Object.freeze(Object.defineProperty({__proto__:null,bigChain:`table bigChain
|
|
663
675
|
"bigChain pairwise alignment"
|
|
664
676
|
(
|
|
665
677
|
string chrom; "Reference sequence chromosome or scaffold"
|
|
@@ -818,12 +830,19 @@ chrM 16299`};function BD(n){if(!(n in kp))throw new Error(`Unknown assembly: ${n
|
|
|
818
830
|
float score; "Floating point score."
|
|
819
831
|
char[1] leftStatus; "Gap/break annotation for preceding block"
|
|
820
832
|
char[1] rightStatus; "Gap/break annotation for following block"
|
|
821
|
-
)`},Symbol.toStringTag,{value:"Module"}))).map(([n,e])=>[n,dy.parse(e.trim())]));function sA(n){const e=new Set(["uint","int","float","long"]);return{...n,fields:n.fields.map(t=>({...t,isArray:t.size&&t.type!=="char",arrayIsNumeric:t.size&&e.has(t.type),isNumeric:!t.size&&e.has(t.type)})).filter(t=>!!t.name)}}const w5={".":0,"-":-1,"+":1};function y5(n){return n.length>=12&&!Number.isNaN(Number.parseInt(n[9],10))&&n[10]?.split(",").filter(e=>!!e).length===Number.parseInt(n[9],10)}class C5{constructor(e={}){if(e.autoSql)this.autoSql=sA(dy.parse(e.autoSql));else if(e.type){if(!iA[e.type])throw new Error("Type not found");this.autoSql=sA(iA[e.type])}else this.autoSql=sA(iA.defaultBedSchema),this.attemptDefaultBed=!0}parseLine(e,t={}){const{autoSql:r}=this,{uniqueId:i}=t,s=Array.isArray(e)?e:e.split(" ");let o={};if(!this.attemptDefaultBed||this.attemptDefaultBed&&y5(s))for(let a=0;a<r.fields.length;a++){const l=r.fields[a];let c=s[a];const{isNumeric:u,isArray:f,arrayIsNumeric:h,name:A}=l;if(c==null)break;if(c!=="."){if(u){const d=Number(c);c=Number.isNaN(d)?c:d}else f&&(c=c.split(","),c.at(-1)===""&&c.pop(),h&&(c=c.map(Number)));o[A]=c}}else{const a=["chrom","chromStart","chromEnd","name"];o=Object.fromEntries(s.map((l,c)=>[a[c]||"field"+c,l])),o.chromStart=+o.chromStart,o.chromEnd=+o.chromEnd,Number.isNaN(Number.parseFloat(o.field4))||(o.score=+o.field4,delete o.field4),(o.field5==="+"||o.field5==="-")&&(o.strand=o.field5,delete o.field5)}return i&&(o.uniqueId=i),o.strand=w5[o.strand]||0,o.chrom=decodeURIComponent(o.chrom),o}}const I5=Object.freeze(Object.defineProperty({__proto__:null,default:C5},Symbol.toStringTag,{value:"Module"}));var Fe=function(n,e,t,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!i:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(n,t):i?i.value=t:e.set(n,t),t},P=function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},ue,lt,fe,ye,Er,io,br,fc,Dt,gy,oA,aA,cA,py,Ac;class so extends Map{constructor(e={}){if(super(),ue.add(this),lt.set(this,0),fe.set(this,new Map),ye.set(this,new Map),Er.set(this,void 0),io.set(this,void 0),br.set(this,void 0),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof e.maxAge=="number"&&e.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");Fe(this,Er,e.maxSize,"f"),Fe(this,io,e.maxAge||Number.POSITIVE_INFINITY,"f"),Fe(this,br,e.onEviction,"f")}get __oldCache(){return P(this,ye,"f")}get(e){if(P(this,fe,"f").has(e)){const t=P(this,fe,"f").get(e);return P(this,ue,"m",oA).call(this,e,t)}if(P(this,ye,"f").has(e)){const t=P(this,ye,"f").get(e);if(!P(this,ue,"m",Dt).call(this,e,t))return P(this,ue,"m",py).call(this,e,t),t.value}}set(e,t,{maxAge:r=P(this,io,"f")}={}){const i=typeof r=="number"&&r!==Number.POSITIVE_INFINITY?Date.now()+r:void 0;return P(this,fe,"f").has(e)?P(this,fe,"f").set(e,{value:t,expiry:i}):P(this,ue,"m",cA).call(this,e,{value:t,expiry:i}),this}has(e){return P(this,fe,"f").has(e)?!P(this,ue,"m",Dt).call(this,e,P(this,fe,"f").get(e)):P(this,ye,"f").has(e)?!P(this,ue,"m",Dt).call(this,e,P(this,ye,"f").get(e)):!1}peek(e){if(P(this,fe,"f").has(e))return P(this,ue,"m",aA).call(this,e,P(this,fe,"f"));if(P(this,ye,"f").has(e))return P(this,ue,"m",aA).call(this,e,P(this,ye,"f"))}expiresIn(e){const t=P(this,fe,"f").get(e)??P(this,ye,"f").get(e);if(t)return t.expiry?t.expiry-Date.now():Number.POSITIVE_INFINITY}delete(e){var t;const r=P(this,fe,"f").delete(e);return r&&Fe(this,lt,(t=P(this,lt,"f"),t--,t),"f"),P(this,ye,"f").delete(e)||r}clear(){P(this,fe,"f").clear(),P(this,ye,"f").clear(),Fe(this,lt,0,"f")}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...P(this,ue,"m",Ac).call(this)],r=t.length-e;r<0?(Fe(this,fe,new Map(t),"f"),Fe(this,ye,new Map,"f"),Fe(this,lt,t.length,"f")):(r>0&&P(this,ue,"m",fc).call(this,t.slice(0,r)),Fe(this,ye,new Map(t.slice(r)),"f"),Fe(this,fe,new Map,"f"),Fe(this,lt,0,"f")),Fe(this,Er,e,"f")}evict(e=1){const t=e;if(!t||t<=0)return;const r=[...P(this,ue,"m",Ac).call(this)],i=Math.trunc(Math.min(t,Math.max(r.length-1,0)));i<=0||(P(this,ue,"m",fc).call(this,r.slice(0,i)),Fe(this,ye,new Map(r.slice(i)),"f"),Fe(this,fe,new Map,"f"),Fe(this,lt,0,"f"))}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[(lt=new WeakMap,fe=new WeakMap,ye=new WeakMap,Er=new WeakMap,io=new WeakMap,br=new WeakMap,ue=new WeakSet,fc=function(t){if(typeof P(this,br,"f")=="function")for(const[r,i]of t)P(this,br,"f").call(this,r,i.value)},Dt=function(t,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof P(this,br,"f")=="function"&&P(this,br,"f").call(this,t,r.value),this.delete(t)):!1},gy=function(t,r){if(!P(this,ue,"m",Dt).call(this,t,r))return r.value},oA=function(t,r){return r.expiry?P(this,ue,"m",gy).call(this,t,r):r.value},aA=function(t,r){const i=r.get(t);return P(this,ue,"m",oA).call(this,t,i)},cA=function(t,r){var i;P(this,fe,"f").set(t,r),Fe(this,lt,(i=P(this,lt,"f"),i++,i),"f"),P(this,lt,"f")>=P(this,Er,"f")&&(Fe(this,lt,0,"f"),P(this,ue,"m",fc).call(this,P(this,ye,"f")),Fe(this,ye,P(this,fe,"f"),"f"),Fe(this,fe,new Map,"f"))},py=function(t,r){P(this,ye,"f").delete(t),P(this,ue,"m",cA).call(this,t,r)},Ac=function*(){for(const t of P(this,ye,"f")){const[r,i]=t;P(this,fe,"f").has(r)||P(this,ue,"m",Dt).call(this,r,i)||(yield t)}for(const t of P(this,fe,"f")){const[r,i]=t;P(this,ue,"m",Dt).call(this,r,i)||(yield t)}},Symbol.iterator)](){for(const e of P(this,fe,"f")){const[t,r]=e;P(this,ue,"m",Dt).call(this,t,r)||(yield[t,r.value])}for(const e of P(this,ye,"f")){const[t,r]=e;P(this,fe,"f").has(t)||P(this,ue,"m",Dt).call(this,t,r)||(yield[t,r.value])}}*entriesDescending(){let e=[...P(this,fe,"f")];for(let t=e.length-1;t>=0;--t){const r=e[t],[i,s]=r;P(this,ue,"m",Dt).call(this,i,s)||(yield[i,s.value])}e=[...P(this,ye,"f")];for(let t=e.length-1;t>=0;--t){const r=e[t],[i,s]=r;P(this,fe,"f").has(i)||P(this,ue,"m",Dt).call(this,i,s)||(yield[i,s.value])}}*entriesAscending(){for(const[e,t]of P(this,ue,"m",Ac).call(this))yield[e,t.value]}get size(){if(!P(this,lt,"f"))return P(this,ye,"f").size;let e=0;for(const t of P(this,ye,"f").keys())P(this,fe,"f").has(t)||e++;return Math.min(P(this,lt,"f")+e,P(this,Er,"f"))}get maxSize(){return P(this,Er,"f")}get maxAge(){return P(this,io,"f")}entries(){return this.entriesAscending()}forEach(e,t=this){for(const[r,i]of this.entriesAscending())e.call(t,i,r,this)}get[Symbol.toStringTag](){return"QuickLRU"}toString(){return`QuickLRU(${this.size}/${this.maxSize})`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}let my=class{constructor(e,t,r,i){this.minv=e,this.maxv=t,this.bin=r,this._fetchedSize=i}toUniqueString(){return`${this.minv.toString()}..${this.maxv.toString()} (bin ${this.bin}, fetchedSize ${this.fetchedSize()})`}toString(){return this.toUniqueString()}compareTo(e){return this.minv.compareTo(e.minv)||this.maxv.compareTo(e.maxv)||this.bin-e.bin}fetchedSize(){return this._fetchedSize!==void 0?this._fetchedSize:this.maxv.blockPosition+65536-this.minv.blockPosition}};const wy=65536,E5=wy*wy;function b5(n,e=0){const t=n[e]|n[e+1]<<8|n[e+2]<<16|n[e+3]<<24;return((n[e+4]|n[e+5]<<8|n[e+6]<<16|n[e+7]<<24)>>>0)*E5+(t>>>0)}function x5(n={}){return"aborted"in n?{signal:n}:n}function lA(n,e){const t=n.length;if(t===0)return n;let r;if(e){const l=e.blockPosition,c=e.dataPosition;r=[];for(let u=0;u<t;u++){const f=n[u],h=f.maxv;(h.blockPosition-l||h.dataPosition-c)>0&&r.push(f)}if(r.length===0)return r}else r=n;r.sort((l,c)=>{const u=l.minv.blockPosition-c.minv.blockPosition;return u!==0?u:l.minv.dataPosition-c.minv.dataPosition});const i=[];let s=r[0];i.push(s);let o=s.minv.blockPosition,a=s.maxv.blockPosition;for(let l=1;l<r.length;l++){const c=r[l],u=c.minv.blockPosition,f=c.maxv.blockPosition;if(u-a<65e3&&f-o<5e6){const h=c.maxv,A=s.maxv;(f-a||h.dataPosition-A.dataPosition)>0&&(s.maxv=h,a=f)}else i.push(c),s=c,o=u,a=f}return i}function yy(n,e){return{lineCount:b5(n,e)}}function oo(n,e){return n?n.compareTo(e)>0?e:n:e}function B5(n,e=t=>t){let t=0,r=0;const i=[],s={};for(let o=0;o<n.length;o+=1)if(!n[o]){if(r<o){let a="";for(let l=r;l<o;l++)a+=String.fromCharCode(n[l]);a=e(a),i[t]=a,s[a]=t}r=o+1,t+=1}return{refNameToId:s,refIdToName:i}}function v5(n){let e=0;for(const i of n)e+=i.length;const t=new Uint8Array(e);let r=0;for(const i of n)t.set(i,r),r+=i.length;return t}function S5(n,e,t){return!!((n&e)!==e||n&t)}function Q5(n,e){return e==="*"?n===void 0:`${n}`!=`${e}`}function D5(n){if(!n)return"";const{flagInclude:e=0,flagExclude:t=0,tagFilter:r}=n,i=r?`:${r.tag}=${r.value??"*"}`:"";return`:f${e}x${t}${i}`}let Cy=class{constructor({filehandle:e,renameRefSeq:t=r=>r}){this.filehandle=e,this.renameRefSeq=t}async estimatedBytesForRegions(e,t){const r=await Promise.all(e.map(o=>this.blocksForRange(o.refId,o.start,o.end,t))),i=lA(r.flat());let s=0;for(const o of i)s+=o.fetchedSize();return s}},Iy=class{constructor(e,t){this.blockPosition=e,this.dataPosition=t}toString(){return`${this.blockPosition}:${this.dataPosition}`}compareTo(e){return this.blockPosition-e.blockPosition||this.dataPosition-e.dataPosition}};function Un(n,e=0,t=!1){if(t)throw new Error("big-endian virtual file offsets not implemented");return new Iy(n[e+7]*1099511627776+n[e+6]*4294967296+n[e+5]*16777216+n[e+4]*65536+n[e+3]*256+n[e+2],n[e+1]<<8|n[e])}const k5=21578050;function F5(n,e){return n-n%e}function R5(n,e){return n-n%e+e}function M5(n,e){return e-=1,[[0,0],[1+(n>>26),1+(e>>26)],[9+(n>>23),9+(e>>23)],[73+(n>>20),73+(e>>20)],[585+(n>>17),585+(e>>17)],[4681+(n>>14),4681+(e>>14)]]}class Ci extends Cy{async lineCount(e,t){return(await this.parse(t)).indices(e)?.stats?.lineCount||0}async _parse(e){const t=await this.filehandle.readFile(),r=new DataView(t.buffer);if(r.getUint32(0,!0)!==k5)throw new Error("Not a BAI file");const i=r.getInt32(4,!0),o=((1<<(5+1)*3)-1)/7;let a=8,l;const c=[];for(let h=0;h<i;h++){c.push(a);const A=r.getInt32(a,!0);a+=4;for(let p=0;p<A;p+=1){const m=r.getUint32(a,!0);if(a+=4,m===o+1)a+=4,a+=32;else{if(m>o+1)throw new Error("bai index contains too many bins, please use CSI");{const y=r.getInt32(a,!0);a+=4;for(let C=0;C<y;C++)a+=8,a+=8}}}const d=r.getInt32(a,!0);a+=4;const g=new Array(d);for(let p=0;p<d;p++){const m=Un(t,a);a+=8,l=oo(l,m),g[p]=m}}const u=new so({maxSize:5});function f(h){let A=c[h];if(A===void 0)return;const d=r.getInt32(A,!0);let g;A+=4;const p={};for(let C=0;C<d;C+=1){const w=r.getUint32(A,!0);if(A+=4,w===o+1)A+=4,g=yy(t,A+16),A+=32;else{if(w>o+1)throw new Error("bai index contains too many bins, please use CSI");{const b=r.getInt32(A,!0);A+=4;const x=new Array(b);for(let E=0;E<b;E++){const S=Un(t,A);A+=8;const Q=Un(t,A);A+=8,l=oo(l,S),x[E]=new my(S,Q,w)}p[w]=x}}}const m=r.getInt32(A,!0);A+=4;const y=new Array(m);for(let C=0;C<m;C++){const w=Un(t,A);A+=8,l=oo(l,w),y[C]=w}return{binIndex:p,linearIndex:y,stats:g}}return{bai:!0,firstDataLine:l,maxBlockSize:65536,indices:h=>{if(!u.has(h)){const A=f(h);return A&&u.set(h,A),A}return u.get(h)},refCount:i}}async indexCov(e,t,r,i){const o=t!==void 0,l=(await this.parse(i)).indices(e);if(!l)return[];const{linearIndex:c,stats:u}=l;if(c.length===0)return[];const f=r===void 0?(c.length-1)*16384:R5(r,16384),h=t===void 0?0:F5(t,16384),A=o?new Array((f-h)/16384):new Array(c.length-1),d=c[c.length-1].blockPosition;if(f>(c.length-1)*16384)throw new Error("query outside of range of linear index");let g=c[h/16384].blockPosition;for(let p=h/16384,m=0;p<f/16384;p++,m++)A[m]={score:c[p+1].blockPosition-g,start:p*16384,end:p*16384+16384},g=c[p+1].blockPosition;return A.map(p=>({...p,score:p.score*(u?.lineCount||0)/d}))}async blocksForRange(e,t,r,i={}){t<0&&(t=0);const s=await this.parse(i);if(!s)return[];const o=s.indices(e);if(!o)return[];const a=M5(t,r),l=[],{binIndex:c}=o;for(const[d,g]of a)for(let p=d;p<=g;p++){const m=c[p];if(m)for(let y=0,C=m.length;y<C;y++)l.push(m[y])}const{linearIndex:u}=o,f=u.length,h=Math.min(t>>14,f-1),A=u[h];return lA(l,A)}async parse(e={}){return this.setupP||(this.setupP=this._parse(e).catch(t=>{throw this.setupP=void 0,t})),this.setupP}async hasRefSeq(e,t={}){return!!(await this.parse(t)).indices(e)?.binIndex}}var Ey=0,by=2,hc=4,xr=0,dc=1,N5=2,T5=-5;function P5(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function L5(n){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var t=e.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(var r in t)P5(t,r)&&(n[r]=t[r])}}return n}function xy(n,e){return n.length===e?n:n.subarray?n.subarray(0,e):(n.length=e,n)}var ao={arraySet:function(n,e,t,r,i){if(e.subarray&&n.subarray){n.set(e.subarray(t,t+r),i);return}for(var s=0;s<r;s++)n[i+s]=e[t+s]},flattenChunks:function(n){var e,t,r,i,s,o;for(r=0,e=0,t=n.length;e<t;e++)r+=n[e].length;for(o=new Uint8Array(r),i=0,e=0,t=n.length;e<t;e++)s=n[e],o.set(s,i),i+=s.length;return o},Buf8:function(n){return new Uint8Array(n)},Buf16:function(n){return new Uint16Array(n)},Buf32:function(n){return new Int32Array(n)}},co={arraySet:function(n,e,t,r,i){for(var s=0;s<r;s++)n[i+s]=e[t+s]},flattenChunks:function(n){return[].concat.apply([],n)},Buf8:function(n){return new Array(n)},Buf16:function(n){return new Array(n)},Buf32:function(n){return new Array(n)}};let Ii=()=>{const n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";return Ii=()=>n,n},Gn=(n,e,t,r,i)=>(Gn=Ii()?ao.arraySet:co.arraySet,Gn(n,e,t,r,i)),uA=n=>(uA=Ii()?ao.flattenChunks:co.flattenChunks,uA(n)),Ei=n=>(Ei=Ii()?ao.Buf8:co.Buf8,Ei(n)),bi=n=>(bi=Ii()?ao.Buf16:co.Buf16,bi(n)),xi=n=>(xi=Ii()?ao.Buf32:co.Buf32,xi(n)),By=function(){let n=!0;try{String.fromCharCode.apply(null,[0])}catch{n=!1}return By=()=>n,n},vy=function(){let n=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}return vy=()=>n,n},fA=function(n){for(var e=Ei(256),t=0;t<256;t++)e[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;return e[254]=e[254]=1,fA=r=>e[r],e[n]};function Sy(n){var e,t,r,i,s,o=n.length,a=0;for(i=0;i<o;i++)t=n.charCodeAt(i),(t&64512)===55296&&i+1<o&&(r=n.charCodeAt(i+1),(r&64512)===56320&&(t=65536+(t-55296<<10)+(r-56320),i++)),a+=t<128?1:t<2048?2:t<65536?3:4;for(e=new Uint8Array(a),s=0,i=0;s<a;i++)t=n.charCodeAt(i),(t&64512)===55296&&i+1<o&&(r=n.charCodeAt(i+1),(r&64512)===56320&&(t=65536+(t-55296<<10)+(r-56320),i++)),t<128?e[s++]=t:t<2048?(e[s++]=192|t>>>6,e[s++]=128|t&63):t<65536?(e[s++]=224|t>>>12,e[s++]=128|t>>>6&63,e[s++]=128|t&63):(e[s++]=240|t>>>18,e[s++]=128|t>>>12&63,e[s++]=128|t>>>6&63,e[s++]=128|t&63);return e}function O5(n,e){if(e<65534&&(n.subarray&&vy()||!n.subarray&&By()))return String.fromCharCode.apply(null,xy(n,e));for(var t="",r=0;r<e;r++)t+=String.fromCharCode(n[r]);return t}function U5(n){for(var e=new Uint8Array(n.length),t=0,r=e.length;t<r;t++)e[t]=n.charCodeAt(t);return e}function G5(n,e){var t,r,i,s,o=e||n.length,a=new Array(o*2);for(r=0,t=0;t<o;){if(i=n[t++],i<128){a[r++]=i;continue}if(s=fA(i),s>4){a[r++]=65533,t+=s-1;continue}for(i&=s===2?31:s===3?15:7;s>1&&t<o;)i=i<<6|n[t++]&63,s--;if(s>1){a[r++]=65533;continue}i<65536?a[r++]=i:(i-=65536,a[r++]=55296|i>>10&1023,a[r++]=56320|i&1023)}return O5(a,r)}function z5(n,e){var t;for(e=e||n.length,e>n.length&&(e=n.length),t=e-1;t>=0&&(n[t]&192)===128;)t--;return t<0||t===0?e:t+fA(n[t])>e?t:e}function H5(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}function AA(n,e,t,r){for(var i=n&65535|0,s=n>>>16&65535|0,o=0;t!==0;){o=t>2e3?2e3:t,t-=o;do i=i+e[r++]|0,s=s+i|0;while(--o);i%=65521,s%=65521}return i|s<<16|0}function V5(){for(var n,e=[],t=0;t<256;t++){n=t;for(var r=0;r<8;r++)n=n&1?3988292384^n>>>1:n>>>1;e[t]=n}return e}let Qy=function(){const n=V5();return Qy=()=>n,n};function Yt(n,e,t,r){var i=Qy(),s=r+t;n^=-1;for(var o=r;o<s;o++)n=n>>>8^i[(n^e[o])&255];return n^-1}var gc=30,_5=12;function Y5(n,e){var t,r,i,s,o,a,l,c,u,f,h,A,d,g,p,m,y,C,w,b,x,E,S,Q,v;t=n.state,r=n.next_in,Q=n.input,i=r+(n.avail_in-5),s=n.next_out,v=n.output,o=s-(e-n.avail_out),a=s+(n.avail_out-257),l=t.dmax,c=t.wsize,u=t.whave,f=t.wnext,h=t.window,A=t.hold,d=t.bits,g=t.lencode,p=t.distcode,m=(1<<t.lenbits)-1,y=(1<<t.distbits)-1;e:do{d<15&&(A+=Q[r++]<<d,d+=8,A+=Q[r++]<<d,d+=8),C=g[A&m];t:for(;;){if(w=C>>>24,A>>>=w,d-=w,w=C>>>16&255,w===0)v[s++]=C&65535;else if(w&16){b=C&65535,w&=15,w&&(d<w&&(A+=Q[r++]<<d,d+=8),b+=A&(1<<w)-1,A>>>=w,d-=w),d<15&&(A+=Q[r++]<<d,d+=8,A+=Q[r++]<<d,d+=8),C=p[A&y];n:for(;;){if(w=C>>>24,A>>>=w,d-=w,w=C>>>16&255,w&16){if(x=C&65535,w&=15,d<w&&(A+=Q[r++]<<d,d+=8,d<w&&(A+=Q[r++]<<d,d+=8)),x+=A&(1<<w)-1,x>l){n.msg="invalid distance too far back",t.mode=gc;break e}if(A>>>=w,d-=w,w=s-o,x>w){if(w=x-w,w>u&&t.sane){n.msg="invalid distance too far back",t.mode=gc;break e}if(E=0,S=h,f===0){if(E+=c-w,w<b){b-=w;do v[s++]=h[E++];while(--w);E=s-x,S=v}}else if(f<w){if(E+=c+f-w,w-=f,w<b){b-=w;do v[s++]=h[E++];while(--w);if(E=0,f<b){w=f,b-=w;do v[s++]=h[E++];while(--w);E=s-x,S=v}}}else if(E+=f-w,w<b){b-=w;do v[s++]=h[E++];while(--w);E=s-x,S=v}for(;b>2;)v[s++]=S[E++],v[s++]=S[E++],v[s++]=S[E++],b-=3;b&&(v[s++]=S[E++],b>1&&(v[s++]=S[E++]))}else{E=s-x;do v[s++]=v[E++],v[s++]=v[E++],v[s++]=v[E++],b-=3;while(b>2);b&&(v[s++]=v[E++],b>1&&(v[s++]=v[E++]))}}else if((w&64)===0){C=p[(C&65535)+(A&(1<<w)-1)];continue n}else{n.msg="invalid distance code",t.mode=gc;break e}break}}else if((w&64)===0){C=g[(C&65535)+(A&(1<<w)-1)];continue t}else if(w&32){t.mode=_5;break e}else{n.msg="invalid literal/length code",t.mode=gc;break e}break}}while(r<i&&s<a);b=d>>3,r-=b,d-=b<<3,A&=(1<<d)-1,n.next_in=r,n.next_out=s,n.avail_in=r<i?5+(i-r):5-(r-i),n.avail_out=s<a?257+(a-s):257-(s-a),t.hold=A,t.bits=d}var Bi=15,Dy=852,ky=592,Fy=0,hA=1,Ry=2,J5=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],K5=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],q5=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],j5=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function lo(n,e,t,r,i,s,o,a){var l=a.bits,c=0,u=0,f=0,h=0,A=0,d=0,g=0,p=0,m=0,y=0,C,w,b,x,E,S=null,Q=0,v,F=bi(Bi+1),R=bi(Bi+1),N=null,O=0,H,G,_;for(c=0;c<=Bi;c++)F[c]=0;for(u=0;u<r;u++)F[e[t+u]]++;for(A=l,h=Bi;h>=1&&F[h]===0;h--);if(A>h&&(A=h),h===0)return i[s++]=1<<24|64<<16|0,i[s++]=1<<24|64<<16|0,a.bits=1,0;for(f=1;f<h&&F[f]===0;f++);for(A<f&&(A=f),p=1,c=1;c<=Bi;c++)if(p<<=1,p-=F[c],p<0)return-1;if(p>0&&(n===Fy||h!==1))return-1;for(R[1]=0,c=1;c<Bi;c++)R[c+1]=R[c]+F[c];for(u=0;u<r;u++)e[t+u]!==0&&(o[R[e[t+u]]++]=u);if(n===Fy?(S=N=o,v=19):n===hA?(S=J5,Q-=257,N=K5,O-=257,v=256):(S=q5,N=j5,v=-1),y=0,u=0,c=f,E=s,d=A,g=0,b=-1,m=1<<A,x=m-1,n===hA&&m>Dy||n===Ry&&m>ky)return 1;for(;;){H=c-g,o[u]<v?(G=0,_=o[u]):o[u]>v?(G=N[O+o[u]],_=S[Q+o[u]]):(G=96,_=0),C=1<<c-g,w=1<<d,f=w;do w-=C,i[E+(y>>g)+w]=H<<24|G<<16|_|0;while(w!==0);for(C=1<<c-1;y&C;)C>>=1;if(C!==0?(y&=C-1,y+=C):y=0,u++,--F[c]===0){if(c===h)break;c=e[t+o[u]]}if(c>A&&(y&x)!==b){for(g===0&&(g=A),E+=f,d=c-g,p=1<<d;d+g<h&&(p-=F[d+g],!(p<=0));)d++,p<<=1;if(m+=1<<d,n===hA&&m>Dy||n===Ry&&m>ky)return 1;b=y&x,i[b]=A<<24|d<<16|E-s|0}}return y!==0&&(i[E+y]=c-g<<24|64<<16|0),a.bits=A,0}var W5=0,My=1,Ny=2,Ty=4,Br=0,X5=1,Z5=2,yt=-2,Py=-3,Ly=-4,$5=-5,Oy=8,Uy=1,Gy=2,zy=3,Hy=4,Vy=5,_y=6,Yy=7,Jy=8,Ky=9,qy=10,pc=11,ln=12,dA=13,jy=14,gA=15,Wy=16,Xy=17,Zy=18,$y=19,mc=20,wc=21,eC=22,tC=23,nC=24,rC=25,iC=26,pA=27,sC=28,oC=29,me=30,aC=31,eN=32,tN=852,nN=592;function cC(n){return(n>>>24&255)+(n>>>8&65280)+((n&65280)<<8)+((n&255)<<24)}function rN(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=bi(320),this.work=bi(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function iN(n){var e;return!n||!n.state?yt:(e=n.state,n.total_in=n.total_out=e.total=0,n.msg="",e.wrap&&(n.adler=e.wrap&1),e.mode=Uy,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=xi(tN),e.distcode=e.distdyn=xi(nN),e.sane=1,e.back=-1,Br)}function sN(n){var e;return!n||!n.state?yt:(e=n.state,e.wsize=0,e.whave=0,e.wnext=0,iN(n))}function oN(n,e){var t,r;return!n||!n.state||(r=n.state,e<0?(t=0,e=-e):(t=(e>>4)+1,e<48&&(e&=15)),e&&(e<8||e>15))?yt:(r.window!==null&&r.wbits!==e&&(r.window=null),r.wrap=t,r.wbits=e,sN(n))}function aN(n,e){var t,r;return n?(r=new rN,n.state=r,r.window=null,t=oN(n,e),t!==Br&&(n.state=null),t):yt}var lC=!0,mA,wA;function cN(n){if(lC){var e;for(mA=xi(512),wA=xi(32),e=0;e<144;)n.lens[e++]=8;for(;e<256;)n.lens[e++]=9;for(;e<280;)n.lens[e++]=7;for(;e<288;)n.lens[e++]=8;for(lo(My,n.lens,0,288,mA,0,n.work,{bits:9}),e=0;e<32;)n.lens[e++]=5;lo(Ny,n.lens,0,32,wA,0,n.work,{bits:5}),lC=!1}n.lencode=mA,n.lenbits=9,n.distcode=wA,n.distbits=5}function uC(n,e,t,r){var i,s=n.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=Ei(s.wsize)),r>=s.wsize?(Gn(s.window,e,t-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i=s.wsize-s.wnext,i>r&&(i=r),Gn(s.window,e,t-r,i,s.wnext),r-=i,r?(Gn(s.window,e,t-r,r,0),s.wnext=r,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=i))),0}function lN(n,e){var t,r,i,s,o,a,l,c,u,f,h,A,d,g,p=0,m,y,C,w,b,x,E,S,Q=Ei(4),v,F,R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!n||!n.state||!n.output||!n.input&&n.avail_in!==0)return yt;t=n.state,t.mode===ln&&(t.mode=dA),o=n.next_out,i=n.output,l=n.avail_out,s=n.next_in,r=n.input,a=n.avail_in,c=t.hold,u=t.bits,f=a,h=l,S=Br;e:for(;;)switch(t.mode){case Uy:if(t.wrap===0){t.mode=dA;break}for(;u<16;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(t.wrap&2&&c===35615){t.check=0,Q[0]=c&255,Q[1]=c>>>8&255,t.check=Yt(t.check,Q,2,0),c=0,u=0,t.mode=Gy;break}if(t.flags=0,t.head&&(t.head.done=!1),!(t.wrap&1)||(((c&255)<<8)+(c>>8))%31){n.msg="incorrect header check",t.mode=me;break}if((c&15)!==Oy){n.msg="unknown compression method",t.mode=me;break}if(c>>>=4,u-=4,E=(c&15)+8,t.wbits===0)t.wbits=E;else if(E>t.wbits){n.msg="invalid window size",t.mode=me;break}t.dmax=1<<E,n.adler=t.check=1,t.mode=c&512?qy:ln,c=0,u=0;break;case Gy:for(;u<16;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(t.flags=c,(t.flags&255)!==Oy){n.msg="unknown compression method",t.mode=me;break}if(t.flags&57344){n.msg="unknown header flags set",t.mode=me;break}t.head&&(t.head.text=c>>8&1),t.flags&512&&(Q[0]=c&255,Q[1]=c>>>8&255,t.check=Yt(t.check,Q,2,0)),c=0,u=0,t.mode=zy;case zy:for(;u<32;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}t.head&&(t.head.time=c),t.flags&512&&(Q[0]=c&255,Q[1]=c>>>8&255,Q[2]=c>>>16&255,Q[3]=c>>>24&255,t.check=Yt(t.check,Q,4,0)),c=0,u=0,t.mode=Hy;case Hy:for(;u<16;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}t.head&&(t.head.xflags=c&255,t.head.os=c>>8),t.flags&512&&(Q[0]=c&255,Q[1]=c>>>8&255,t.check=Yt(t.check,Q,2,0)),c=0,u=0,t.mode=Vy;case Vy:if(t.flags&1024){for(;u<16;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}t.length=c,t.head&&(t.head.extra_len=c),t.flags&512&&(Q[0]=c&255,Q[1]=c>>>8&255,t.check=Yt(t.check,Q,2,0)),c=0,u=0}else t.head&&(t.head.extra=null);t.mode=_y;case _y:if(t.flags&1024&&(A=t.length,A>a&&(A=a),A&&(t.head&&(E=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Array(t.head.extra_len)),Gn(t.head.extra,r,s,A,E)),t.flags&512&&(t.check=Yt(t.check,r,A,s)),a-=A,s+=A,t.length-=A),t.length))break e;t.length=0,t.mode=Yy;case Yy:if(t.flags&2048){if(a===0)break e;A=0;do E=r[s+A++],t.head&&E&&t.length<65536&&(t.head.name+=String.fromCharCode(E));while(E&&A<a);if(t.flags&512&&(t.check=Yt(t.check,r,A,s)),a-=A,s+=A,E)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=Jy;case Jy:if(t.flags&4096){if(a===0)break e;A=0;do E=r[s+A++],t.head&&E&&t.length<65536&&(t.head.comment+=String.fromCharCode(E));while(E&&A<a);if(t.flags&512&&(t.check=Yt(t.check,r,A,s)),a-=A,s+=A,E)break e}else t.head&&(t.head.comment=null);t.mode=Ky;case Ky:if(t.flags&512){for(;u<16;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(c!==(t.check&65535)){n.msg="header crc mismatch",t.mode=me;break}c=0,u=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),n.adler=t.check=0,t.mode=ln;break;case qy:for(;u<32;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}n.adler=t.check=cC(c),c=0,u=0,t.mode=pc;case pc:if(t.havedict===0)return n.next_out=o,n.avail_out=l,n.next_in=s,n.avail_in=a,t.hold=c,t.bits=u,Z5;n.adler=t.check=1,t.mode=ln;case ln:case dA:if(t.last){c>>>=u&7,u-=u&7,t.mode=pA;break}for(;u<3;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}switch(t.last=c&1,c>>>=1,u-=1,c&3){case 0:t.mode=jy;break;case 1:cN(t),t.mode=mc;break;case 2:t.mode=Xy;break;case 3:n.msg="invalid block type",t.mode=me}c>>>=2,u-=2;break;case jy:for(c>>>=u&7,u-=u&7;u<32;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if((c&65535)!==(c>>>16^65535)){n.msg="invalid stored block lengths",t.mode=me;break}t.length=c&65535,c=0,u=0,t.mode=gA;case gA:t.mode=Wy;case Wy:if(A=t.length,A){if(A>a&&(A=a),A>l&&(A=l),A===0)break e;Gn(i,r,s,A,o),a-=A,s+=A,l-=A,o+=A,t.length-=A;break}t.mode=ln;break;case Xy:for(;u<14;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(t.nlen=(c&31)+257,c>>>=5,u-=5,t.ndist=(c&31)+1,c>>>=5,u-=5,t.ncode=(c&15)+4,c>>>=4,u-=4,t.nlen>286||t.ndist>30){n.msg="too many length or distance symbols",t.mode=me;break}t.have=0,t.mode=Zy;case Zy:for(;t.have<t.ncode;){for(;u<3;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}t.lens[R[t.have++]]=c&7,c>>>=3,u-=3}for(;t.have<19;)t.lens[R[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,v={bits:t.lenbits},S=lo(W5,t.lens,0,19,t.lencode,0,t.work,v),t.lenbits=v.bits,S){n.msg="invalid code lengths set",t.mode=me;break}t.have=0,t.mode=$y;case $y:for(;t.have<t.nlen+t.ndist;){for(;p=t.lencode[c&(1<<t.lenbits)-1],m=p>>>24,y=p>>>16&255,C=p&65535,!(m<=u);){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(C<16)c>>>=m,u-=m,t.lens[t.have++]=C;else{if(C===16){for(F=m+2;u<F;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(c>>>=m,u-=m,t.have===0){n.msg="invalid bit length repeat",t.mode=me;break}E=t.lens[t.have-1],A=3+(c&3),c>>>=2,u-=2}else if(C===17){for(F=m+3;u<F;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}c>>>=m,u-=m,E=0,A=3+(c&7),c>>>=3,u-=3}else{for(F=m+7;u<F;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}c>>>=m,u-=m,E=0,A=11+(c&127),c>>>=7,u-=7}if(t.have+A>t.nlen+t.ndist){n.msg="invalid bit length repeat",t.mode=me;break}for(;A--;)t.lens[t.have++]=E}}if(t.mode===me)break;if(t.lens[256]===0){n.msg="invalid code -- missing end-of-block",t.mode=me;break}if(t.lenbits=9,v={bits:t.lenbits},S=lo(My,t.lens,0,t.nlen,t.lencode,0,t.work,v),t.lenbits=v.bits,S){n.msg="invalid literal/lengths set",t.mode=me;break}if(t.distbits=6,t.distcode=t.distdyn,v={bits:t.distbits},S=lo(Ny,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,v),t.distbits=v.bits,S){n.msg="invalid distances set",t.mode=me;break}t.mode=mc;case mc:t.mode=wc;case wc:if(a>=6&&l>=258){n.next_out=o,n.avail_out=l,n.next_in=s,n.avail_in=a,t.hold=c,t.bits=u,Y5(n,h),o=n.next_out,i=n.output,l=n.avail_out,s=n.next_in,r=n.input,a=n.avail_in,c=t.hold,u=t.bits,t.mode===ln&&(t.back=-1);break}for(t.back=0;p=t.lencode[c&(1<<t.lenbits)-1],m=p>>>24,y=p>>>16&255,C=p&65535,!(m<=u);){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(y&&(y&240)===0){for(w=m,b=y,x=C;p=t.lencode[x+((c&(1<<w+b)-1)>>w)],m=p>>>24,y=p>>>16&255,C=p&65535,!(w+m<=u);){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}c>>>=w,u-=w,t.back+=w}if(c>>>=m,u-=m,t.back+=m,t.length=C,y===0){t.mode=iC;break}if(y&32){t.back=-1,t.mode=ln;break}if(y&64){n.msg="invalid literal/length code",t.mode=me;break}t.extra=y&15,t.mode=eC;case eC:if(t.extra){for(F=t.extra;u<F;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}t.length+=c&(1<<t.extra)-1,c>>>=t.extra,u-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=tC;case tC:for(;p=t.distcode[c&(1<<t.distbits)-1],m=p>>>24,y=p>>>16&255,C=p&65535,!(m<=u);){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if((y&240)===0){for(w=m,b=y,x=C;p=t.distcode[x+((c&(1<<w+b)-1)>>w)],m=p>>>24,y=p>>>16&255,C=p&65535,!(w+m<=u);){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}c>>>=w,u-=w,t.back+=w}if(c>>>=m,u-=m,t.back+=m,y&64){n.msg="invalid distance code",t.mode=me;break}t.offset=C,t.extra=y&15,t.mode=nC;case nC:if(t.extra){for(F=t.extra;u<F;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}t.offset+=c&(1<<t.extra)-1,c>>>=t.extra,u-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){n.msg="invalid distance too far back",t.mode=me;break}t.mode=rC;case rC:if(l===0)break e;if(A=h-l,t.offset>A){if(A=t.offset-A,A>t.whave&&t.sane){n.msg="invalid distance too far back",t.mode=me;break}A>t.wnext?(A-=t.wnext,d=t.wsize-A):d=t.wnext-A,A>t.length&&(A=t.length),g=t.window}else g=i,d=o-t.offset,A=t.length;A>l&&(A=l),l-=A,t.length-=A;do i[o++]=g[d++];while(--A);t.length===0&&(t.mode=wc);break;case iC:if(l===0)break e;i[o++]=t.length,l--,t.mode=wc;break;case pA:if(t.wrap){for(;u<32;){if(a===0)break e;a--,c|=r[s++]<<u,u+=8}if(h-=l,n.total_out+=h,t.total+=h,h&&(n.adler=t.check=t.flags?Yt(t.check,i,h,o-h):AA(t.check,i,h,o-h)),h=l,(t.flags?c:cC(c))!==t.check){n.msg="incorrect data check",t.mode=me;break}c=0,u=0}t.mode=sC;case sC:if(t.wrap&&t.flags){for(;u<32;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(c!==(t.total&4294967295)){n.msg="incorrect length check",t.mode=me;break}c=0,u=0}t.mode=oC;case oC:S=X5;break e;case me:S=Py;break e;case aC:return Ly;case eN:default:return yt}return n.next_out=o,n.avail_out=l,n.next_in=s,n.avail_in=a,t.hold=c,t.bits=u,(t.wsize||h!==n.avail_out&&t.mode<me&&(t.mode<pA||e!==Ty))&&uC(n,n.output,n.next_out,h-n.avail_out),f-=n.avail_in,h-=n.avail_out,n.total_in+=f,n.total_out+=h,t.total+=h,t.wrap&&h&&(n.adler=t.check=t.flags?Yt(t.check,i,h,n.next_out-h):AA(t.check,i,h,n.next_out-h)),n.data_type=t.bits+(t.last?64:0)+(t.mode===ln?128:0)+(t.mode===mc||t.mode===gA?256:0),(f===0&&h===0||e===Ty)&&S===Br&&(S=$5),S}function uN(n){if(!n||!n.state)return yt;var e=n.state;return e.window&&(e.window=null),n.state=null,Br}function fN(n,e){var t;return!n||!n.state||(t=n.state,(t.wrap&2)===0)?yt:(t.head=e,e.done=!1,Br)}function fC(n,e){var t=e.length,r,i,s;return!n||!n.state||(r=n.state,r.wrap!==0&&r.mode!==pc)?yt:r.mode===pc&&(i=1,i=AA(i,e,t,0),i!==r.check)?Py:(s=uC(n,e,t,t),s?(r.mode=aC,Ly):(r.havedict=1,Br))}const yA={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function AN(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var CA=Object.prototype.toString;class yc{constructor(e){if(!(this instanceof yc))return new yc(e);this.options=L5({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new AN,this.strm.avail_out=0;var r=aN(this.strm,t.windowBits);if(r!==xr)throw new Error(yA[r]);if(this.header=new H5,fN(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Sy(t.dictionary):CA.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=fC(this.strm,t.dictionary),r!==xr)))throw new Error(yA[r])}push(e,t){var r=this.strm,i=this.options.chunkSize,s=this.options.dictionary,o,a,l,c,u,f,h=!1;if(this.ended)return!1;a=t===~~t?t:t===!0?hc:Ey,typeof e=="string"?r.input=U5(e):CA.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=Ei(i),r.next_out=0,r.avail_out=i),o=lN(r,Ey),o===N5&&s&&(typeof s=="string"?f=Sy(s):CA.call(s)==="[object ArrayBuffer]"?f=new Uint8Array(s):f=s,o=fC(this.strm,f)),o===T5&&h===!0&&(o=xr,h=!1),o!==dc&&o!==xr)return this.onEnd(o),this.ended=!0,!1;r.next_out&&(r.avail_out===0||o===dc||r.avail_in===0&&(a===hc||a===by))&&(this.options.to==="string"?(l=z5(r.output,r.next_out),c=r.next_out-l,u=G5(r.output,l),r.next_out=c,r.avail_out=i-c,c&&Gn(r.output,r.output,l,c,0),this.onData(u)):this.onData(xy(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(h=!0)}while((r.avail_in>0||r.avail_out===0)&&o!==dc);return o===dc&&(a=hc),a===hc?(o=uN(this.strm),this.onEnd(o),this.ended=!0,o===xr):(a===by&&(this.onEnd(xr),r.avail_out=0),!0)}onData(e){this.chunks.push(e)}onEnd(e){e===xr&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=uA(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg}}function hN(n,e){var t=new yc(e);if(t.push(n,!0),t.err)throw t.msg||yA[t.err];return t.result}var dN=hN,vr={};vr.d=(n,e)=>{for(var t in e)vr.o(e,t)&&!vr.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},vr.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),vr.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var IA={};vr.r(IA),vr.d(IA,{ChunkSliceResult:()=>Si,DecompressResult:()=>Qi,__wbg_Error_52673b7de5a0ca89:()=>bN,__wbg___wbindgen_throw_dd24417ed36fc46e:()=>xN,__wbg_set_wasm:()=>AC,decompress_all:()=>mC,decompress_block:()=>EN,decompress_chunk_slice:()=>wC});const gN="data:application/wasm;base64,AGFzbQEAAAABfRFgAABgAAF/YAF/AGABfwF/YAJ/fwBgA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Q0ACwsgASAGaiEGCwJAAkAgBiAALwEMIgtPDQACQAJAAkAgB0GAgIAIcQ0AIAsgBmshDUEAIQFBACELAkACQAJAIAdBHXZBA3EOBAIAAQACCyANIQsMAQsgDUH+/wNxQQF2IQsLIAdB////AHEhBiAAKAIEIQkgACgCACEKA0AgAUH//wNxIAtB//8DcU8NAkEBIQwgAUEBaiEBIAogBiAJKAIQEQUARQ0ADAULCyAAIAApAggiDqdBgICA/3lxQbCAgIACcjYCCEEBIQwgACgCACIKIAAoAgQiCSAIIAIgAxA7DQNBACEBIAsgBmtB//8DcSECA0AgAUH//wNxIAJPDQJBASEMIAFBAWohASAKQTAgCSgCEBEFAEUNAAwECwtBASEMIAogCSAIIAIgAxA7DQIgCiAEIAUgCSgCDBEHAA0CQQAhASANIAtrQf//A3EhAANAIAFB//8DcSICIABJIQwgAiAATw0DIAFBAWohASAKIAYgCSgCEBEFAEUNAAwDCwtBASEMIAogBCAFIAkoAgwRBwANASAAIA43AghBAA8LQQEhDCAAKAIAIgEgACgCBCIKIAggAiADEDsNACABIAQgBSAKKAIMEQcAIQwLIAwLjgYBBX8gAEF4aiIBIABBfGooAgAiAkF4cSIAaiEDAkACQCACQQFxDQAgAkECcUUNASABKAIAIgIgAGohAAJAIAEgAmsiAUEAKALAoEBHDQAgAygCBEEDcUEDRw0BQQAgADYCuKBAIAMgAygCBEF+cTYCBCABIABBAXI2AgQgAyAANgIADwsgASACEBALAkACQAJAAkACQAJAIAMoAgQiAkECcQ0AIANBACgCxKBARg0CIANBACgCwKBARg0DIAMgAkF4cSICEBAgASACIABqIgBBAXI2AgQgASAAaiAANgIAIAFBACgCwKBARw0BQQAgADYCuKBADwsgAyACQX5xNgIEIAEgAEEBcjYCBCABIABqIAA2AgALIABBgAJJDQIgASAAEBFBACEBQQBBACgC2KBAQX9qIgA2AtigQCAADQQCQEEAKAKgnkAiAEUNAEEAIQEDQCABQQFqIQEgACgCCCIADQALC0EAIAFB/x8gAUH/H0sbNgLYoEAPC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fwJAAkACQAJAIAMoAgRFDQACQCADKAIIIgQNACACDQJBACEDDAQLIAMoAgAgBCABIAIQVCEDDAILIAINAEEAIQMMAgsQayACIAEQWiEDCyADIAEgAxshASADRSEDCyAAIAI2AgggACABNgIEIAAgAzYCAAt2AQF/AkACQAJAAkAgAygCBEUNAAJAIAMoAggiBA0AIAINAkEAIQMMBAsgAygCACAEIAEgAhBUIQMMAgsgAg0AQQAhAwwCCxBrIAIgARBaIQMLIAMgASADGyEBIANFIQMLIAAgAjYCCCAAIAE2AgQgACADNgIAC2gBAX8jAEEwayICJAACQBBpQf8BcQ0AIAJBMGokAA8LIAJBAjYCDCACQdSWwAA2AgggAkIBNwIUIAIgATYCLCACQQStQiCGIAJBLGqthDcDICACIAJBIGo2AhAgAkEIakHklsAAEEEAC2gCAX8BfiMAQTBrIgMkACADIAE2AgQgAyAANgIAIANBAjYCDCADQcicwAA2AgggA0ICNwIUIANBBK1CIIYiBCADrYQ3AyggAyAEIANBBGqthDcDICADIANBIGo2AhAgA0EIaiACEEEAC2gCAX8BfiMAQTBrIgMkACADIAE2AgQgAyAANgIAIANBAjYCDCADQYScwAA2AgggA0ICNwIUIANBBK1CIIYiBCADQQRqrYQ3AyggAyAEIAOthDcDICADIANBIGo2AhAgA0EIaiACEEEAC2gCAX8BfiMAQTBrIgMkACADIAE2AgQgAyAANgIAIANBAjYCDCADQbCbwAA2AgggA0ICNwIUIANBBK1CIIYiBCADQQRqrYQ3AyggAyAEIAOthDcDICADIANBIGo2AhAgA0EIaiACEEEAC2gCAX8BfiMAQTBrIgMkACADIAE2AgQgAyAANgIAIANBAjYCDCADQdCbwAA2AgggA0ICNwIUIANBBK1CIIYiBCADQQRqrYQ3AyggAyAEIAOthDcDICADIANBIGo2AhAgA0EIaiACEEEAC2ABAn8CQAJAIAJBEHYgAkH//wNxQQBHaiICQAAiA0F/Rw0AQQAhAkEAIQQMAQsgAkEQdCIEQXBqIAQgA0EQdCICQQAgBGtGGyEECyAAQQA2AgggACA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ABB8JfAADYCBCAAIAE2AgALOAACQAJAIAAgAksNACABIAJLDQEgACABTQ0BIAAgASADECsACyAAIAIgAxAsAAsgASACIAMQLQALQQEBfyMAQSBrIgMkACADQQA2AhAgA0EBNgIEIANCBDcCCCADIAE2AhwgAyAANgIYIAMgA0EYajYCACADIAIQQQALOQACQCACQYCAxABGDQAgACACIAEoAhARBQBFDQBBAQ8LAkAgAw0AQQAPCyAAIAMgBCABKAIMEQcACzYBAX8jAEEgayIBJAAgAUEANgIYIAFBATYCDCABQaSZwAA2AgggAUIENwIQIAFBCGogABBBAAsnAAJAIAAgARBPRQ0AAkAgAEUNABBrIAAgARBaIgFFDQELIAEPCwALLAIBfwF+IwBBEGsiASQAIAApAgAhAiABIAA2AgwgASACNwIEIAFBBGoQZgALLQEBfyMAQRBrIgEkACABIAApAgA3AgggAUEIakH0lsAAIAAoAghBAUEAECEACyoBAX8jAEEQayIDJAAgAyACNgIMIAMgATYCCCADIAA2AgQgA0EEahBnAAsqAQF/IwBBEGsiAiQAIAJBATsBDCACIAE2AgggAiAANgIEIAJBBGoQPgALKQEBfwJAIAAoAgAiAUGAgICAeHJBgICAgHhGDQAgACgCBCABQQEQVwsLHgEBfwJAIAAoAgAiAkUNACABIAIgACgCBBBTDwsACyAAAkAgASgCAEUNACAAQfCXwAA2AgQgACABNgIADwsACxsBAX8QayAAQQRqQQQQWiIBIAA2AgAgAUEEagsjAQF/AkBBjIvAABAwIgANAEHAisAAQTpB/IrAABBAAAsgAAsXAAJAIAFBCUkNACABIAAQDw8LIAAQAgsfAAJAIABBgICAgHhyQYCAgIB4Rg0AIAEgAEEBEFcLCxwBAX8CQCAAKAIAIgFFDQAgACgCBCABQQEQVwsLFgACQCAARQ0AIAAgARBhAAsgAhA8AAsVACAAQXxqIgAgACgCAEEEakEEEFcLGgEBfyABIABBACgC3KBAIgJBAyACGxEEAAALHQAgAEEIakEAKQKYlkA3AgAgAEEAKQKQlkA3AgALHQAgAEEIakEAKQKolkA3AgAgAEE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keSBib3Jyb3dlZABB8JzAAAsEBAAAAAApBG5hbWUBIgFZH19fd2JpbmRnZW5fYWRkX3RvX3N0YWNrX3BvaW50ZXIAPAlwcm9kdWNlcnMBDHByb2Nlc3NlZC1ieQIGd2FscnVzBjAuMjQuNAx3YXNtLWJpbmRnZW4HMC4yLjEwNg==";let j;function AC(n){j=n}function pN(n){uo===un.length&&un.push(un.length+1);const e=uo;return uo=un[e],un[e]=n,e}function mN(n){n<132||(un[n]=uo,uo=n)}function hC(n,e){return n=n>>>0,wN().subarray(n/4,n/4+e)}function EA(n,e){return n=n>>>0,bA().subarray(n/1,n/1+e)}let vi=null;function Oe(){return(vi===null||vi.buffer.detached===!0||vi.buffer.detached===void 0&&vi.buffer!==j.memory.buffer)&&(vi=new DataView(j.memory.buffer)),vi}function dC(n,e){return n=n>>>0,IN(n,e)}let Cc=null;function wN(){return(Cc===null||Cc.byteLength===0)&&(Cc=new Uint32Array(j.memory.buffer)),Cc}let Ic=null;function bA(){return(Ic===null||Ic.byteLength===0)&&(Ic=new Uint8Array(j.memory.buffer)),Ic}function yN(n){return un[n]}let un=new Array(128).fill(void 0);un.push(void 0,null,!0,!1);let uo=un.length;function xA(n,e){const t=e(n.length*1,1)>>>0;return bA().set(n,t/1),bc=n.length,t}function BA(n){const e=yN(n);return mN(n),e}let Ec=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Ec.decode();const CN=2146435072;let vA=0;function IN(n,e){return vA+=e,vA>=CN&&(Ec=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),Ec.decode(),vA=e),Ec.decode(bA().subarray(n,n+e))}let bc=0;const gC=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>j.__wbg_chunksliceresult_free(n>>>0,1)),pC=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>j.__wbg_decompressresult_free(n>>>0,1));class Si{static __wrap(e){e=e>>>0;const t=Object.create(Si.prototype);return t.__wbg_ptr=e,gC.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,gC.unregister(this),e}free(){const e=this.__destroy_into_raw();j.__wbg_chunksliceresult_free(e,0)}get cpositions(){try{const i=j.__wbindgen_add_to_stack_pointer(-16);j.chunksliceresult_cpositions(i,this.__wbg_ptr);var e=Oe().getInt32(i+0,!0),t=Oe().getInt32(i+4,!0),r=hC(e,t).slice();return j.__wbindgen_export(e,t*4,4),r}finally{j.__wbindgen_add_to_stack_pointer(16)}}get dpositions(){try{const i=j.__wbindgen_add_to_stack_pointer(-16);j.chunksliceresult_dpositions(i,this.__wbg_ptr);var e=Oe().getInt32(i+0,!0),t=Oe().getInt32(i+4,!0),r=hC(e,t).slice();return j.__wbindgen_export(e,t*4,4),r}finally{j.__wbindgen_add_to_stack_pointer(16)}}get buffer(){try{const i=j.__wbindgen_add_to_stack_pointer(-16);j.chunksliceresult_buffer(i,this.__wbg_ptr);var e=Oe().getInt32(i+0,!0),t=Oe().getInt32(i+4,!0),r=EA(e,t).slice();return j.__wbindgen_export(e,t*1,1),r}finally{j.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(Si.prototype[Symbol.dispose]=Si.prototype.free);class Qi{static __wrap(e){e=e>>>0;const t=Object.create(Qi.prototype);return t.__wbg_ptr=e,pC.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,pC.unregister(this),e}free(){const e=this.__destroy_into_raw();j.__wbg_decompressresult_free(e,0)}get bytes_read(){return j.decompressresult_bytes_read(this.__wbg_ptr)>>>0}get data(){try{const i=j.__wbindgen_add_to_stack_pointer(-16);j.decompressresult_data(i,this.__wbg_ptr);var e=Oe().getInt32(i+0,!0),t=Oe().getInt32(i+4,!0),r=EA(e,t).slice();return j.__wbindgen_export(e,t*1,1),r}finally{j.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(Qi.prototype[Symbol.dispose]=Qi.prototype.free);function mC(n){try{const o=j.__wbindgen_add_to_stack_pointer(-16),a=xA(n,j.__wbindgen_export2),l=bc;j.decompress_all(o,a,l);var e=Oe().getInt32(o+0,!0),t=Oe().getInt32(o+4,!0),r=Oe().getInt32(o+8,!0),i=Oe().getInt32(o+12,!0);if(i)throw BA(r);var s=EA(e,t).slice();return j.__wbindgen_export(e,t*1,1),s}finally{j.__wbindgen_add_to_stack_pointer(16)}}function EN(n){try{const i=j.__wbindgen_add_to_stack_pointer(-16),s=xA(n,j.__wbindgen_export2),o=bc;j.decompress_block(i,s,o);var e=Oe().getInt32(i+0,!0),t=Oe().getInt32(i+4,!0),r=Oe().getInt32(i+8,!0);if(r)throw BA(t);return Qi.__wrap(e)}finally{j.__wbindgen_add_to_stack_pointer(16)}}function wC(n,e,t,r,i){try{const l=j.__wbindgen_add_to_stack_pointer(-16),c=xA(n,j.__wbindgen_export2),u=bc;j.decompress_chunk_slice(l,c,u,e,t,r,i);var s=Oe().getInt32(l+0,!0),o=Oe().getInt32(l+4,!0),a=Oe().getInt32(l+8,!0);if(a)throw BA(o);return Si.__wrap(s)}finally{j.__wbindgen_add_to_stack_pointer(16)}}function bN(n,e){const t=Error(dC(n,e));return pN(t)}function xN(n,e){throw new Error(dC(n,e))}let fo=null,SA=null;async function yC(){return fo||(SA||(SA=(async()=>{const e=await(await fetch(gN)).arrayBuffer(),{instance:t}=await WebAssembly.instantiate(e,{"./bgzf_wasm_bg.js":IA});return fo=t.exports,AC(fo),fo})()),SA)}async function BN(n){return await yC(),mC(n)}async function vN(n,e,t,r,i){await yC();const s=wC(n,e,t,r,i),o=s.buffer,a=[...s.cpositions],l=[...s.dpositions];return s.free(),{buffer:o,cpositions:a,dpositions:l}}function SN(n){return n.length>=2&&n[0]===31&&n[1]===139}async function QN(n){if(typeof DecompressionStream<"u"){const e=new DecompressionStream("gzip"),t=e.writable.getWriter(),r=t.write(n).then(()=>t.close()),i=[],s=e.readable.getReader();for(;;){const{done:c,value:u}=await s.read();if(c)break;i.push(u)}await r;const o=i.reduce((c,u)=>c+u.length,0),a=new Uint8Array(o);let l=0;for(const c of i)a.set(c,l),l+=c.length;return a}else return dN(n,void 0)}async function Di(n){try{return await BN(n)}catch(e){if(/invalid bgzf header/.exec(`${e}`)){if(SN(n))return QN(n);throw new Error("problem decompressing block: not a valid bgzf or gzip block")}throw/invalid gzip header/.exec(`${e}`)?new Error("problem decompressing block: incorrect gzip header check"):e}}async function CC(n,e,t){try{const{minv:r,maxv:i}=e,s=await vN(n,r.blockPosition,r.dataPosition,i.blockPosition,i.dataPosition);return{buffer:s.buffer,cpositions:s.cpositions,dpositions:s.dpositions}}catch(r){throw/invalid gzip header/.exec(`${r}`)?new Error("problem decompressing block: incorrect gzip header check"):r}}let QA=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(QA=new Int32Array(QA));const DN=(n,e)=>{let t=-1;for(let r=0;r<n.length;r++)t=QA[(t^n[r])&255]^t>>>8;return t^-1},kN=21582659,FN=38359875;function RN(n,e){return n*2**e}function IC(n,e){return Math.floor(n/2**e)}let xc=class extends Cy{constructor(){super(...arguments),this.maxBinNumber=0,this.depth=0,this.minShift=0}async lineCount(e,t){return(await this.parse(t)).indices(e)?.stats?.lineCount||0}async indexCov(){return[]}parseAuxData(e,t){const r=new DataView(e.buffer),i=r.getUint32(t,!0),s=i&65536?"zero-based-half-open":"1-based-closed",o={0:"generic",1:"SAM",2:"VCF"}[i&15];if(!o)throw new Error(`invalid Tabix preset format flags ${i}`);const a={ref:r.getInt32(t+4,!0),start:r.getInt32(t+8,!0),end:r.getInt32(t+12,!0)},l=r.getInt32(t+16,!0),c=l?String.fromCharCode(l):"",u=r.getInt32(t+20,!0),f=r.getInt32(t+24,!0);return{columnNumbers:a,coordinateType:s,metaValue:l,metaChar:c,skipLines:u,format:o,formatFlags:i,...B5(e.subarray(t+28,t+28+f),this.renameRefSeq)}}async _parse(e){const t=await this.filehandle.readFile(e),r=await Di(t),i=new DataView(r.buffer);let s;const o=i.getUint32(0,!0);if(o===kN)s=1;else if(o===FN)s=2;else throw new Error(`Not a CSI file ${o}`);this.minShift=i.getInt32(4,!0),this.depth=i.getInt32(8,!0),this.maxBinNumber=((1<<(this.depth+1)*3)-1)/7;const a=this.maxBinNumber,l=i.getInt32(12,!0),c=l>=30?this.parseAuxData(r,16):void 0,u=i.getInt32(16+l,!0);let f=16+l+4,h;const A=[];for(let p=0;p<u;p++){A.push(f);const m=i.getInt32(f,!0);f+=4;for(let y=0;y<m;y++){const C=i.getUint32(f,!0);if(f+=4,C>this.maxBinNumber)f+=44;else{f+=8;const w=i.getInt32(f,!0);f+=4;for(let b=0;b<w;b+=1){const x=Un(r,f);f+=8,f+=8,h=oo(h,x)}}}}const d=new so({maxSize:5});function g(p){let m=A[p];if(m===void 0)return;const y=i.getInt32(m,!0);m+=4;const C={};let w;for(let b=0;b<y;b++){const x=i.getUint32(m,!0);if(m+=4,x>a)w=yy(r,m+28),m+=44;else{h=oo(h,Un(r,m)),m+=8;const E=i.getInt32(m,!0);m+=4;const S=new Array(E);for(let Q=0;Q<E;Q+=1){const v=Un(r,m);m+=8;const F=Un(r,m);m+=8,S[Q]=new my(v,F,x)}C[x]=S}}return{binIndex:C,stats:w}}return{csiVersion:s,firstDataLine:h,indices:p=>{if(!d.has(p)){const m=g(p);return m&&d.set(p,m),m}return d.get(p)},refCount:u,csi:!0,maxBlockSize:65536,...c}}async blocksForRange(e,t,r,i={}){t<0&&(t=0);const o=(await this.parse(i)).indices(e);if(!o)return[];const a=this.reg2bins(t,r);if(a.length===0)return[];const l=[],{binIndex:c}=o;for(const[u,f]of a)for(let h=u;h<=f;h++){const A=c[h];if(A)for(let d=0,g=A.length;d<g;d++)l.push(A[d])}return lA(l,new Iy(0,0))}reg2bins(e,t){e-=1,e<1&&(e=1),t>2**50&&(t=2**34),t-=1;let r=0,i=0,s=this.minShift+this.depth*3;const o=[];for(;r<=this.depth;s-=3,i+=RN(1,r*3),r+=1){const a=i+IC(e,s),l=i+IC(t,s);if(l-a+o.length>this.maxBinNumber)throw new Error(`query ${e}-${t} is too large for current binning scheme (shift ${this.minShift}, depth ${this.depth}), try a smaller query or a coarser index binning scheme`);o.push([a,l])}return o}async parse(e={}){return this.setupP||(this.setupP=this._parse(e).catch(t=>{throw this.setupP=void 0,t})),this.setupP}async hasRefSeq(e,t={}){return!!(await this.parse(t)).indices(e)?.binIndex}};class MN{read(){throw new Error("never called")}stat(){throw new Error("never called")}readFile(){throw new Error("never called")}close(){throw new Error("never called")}}const NN=3,TN=4,Ct={BAM_FPAIRED:1,BAM_FPROPER_PAIR:2,BAM_FUNMAP:4,BAM_FMUNMAP:8,BAM_FREVERSE:16,BAM_FMREVERSE:32,BAM_FREAD1:64,BAM_FREAD2:128,BAM_FSECONDARY:256,BAM_FQCFAIL:512,BAM_FDUP:1024,BAM_FSUPPLEMENTARY:2048},Ao="=ACMGRSVTWYHKDBN".split(""),PN=[77,73,68,78,83,72,80,61,88,63,63,63,63,63,63,63],EC=461;class bC{constructor(e){this.bytes=e.bytes,this.fileOffset=e.fileOffset,this._dataView=new DataView(this.bytes.byteArray.buffer)}get byteArray(){return this.bytes.byteArray}get flags(){return this._cachedFlags===void 0&&(this._cachedFlags=(this._dataView.getInt32(this.bytes.start+16,!0)&4294901760)>>16),this._cachedFlags}get ref_id(){return this._cachedRefId===void 0&&(this._cachedRefId=this._dataView.getInt32(this.bytes.start+4,!0)),this._cachedRefId}get start(){return this._cachedStart===void 0&&(this._cachedStart=this._dataView.getInt32(this.bytes.start+8,!0)),this._cachedStart}get end(){return this._cachedEnd===void 0&&(this._cachedEnd=this.start+this.length_on_ref),this._cachedEnd}get mq(){const e=(this.bin_mq_nl&65280)>>8;return e===255?void 0:e}get score(){return this.mq}get qual(){if(this.isSegmentUnmapped())return null;{const e=this.b0+this.read_name_length+this.num_cigar_bytes+this.num_seq_bytes;return this.byteArray.subarray(e,e+this.seq_length)}}get strand(){return this.isReverseComplemented()?-1:1}get b0(){return this.bytes.start+36}get tagsStart(){return this._cachedTagsStart===void 0&&(this._cachedTagsStart=this.b0+this.read_name_length+this.num_cigar_bytes+this.num_seq_bytes+this.seq_length),this._cachedTagsStart}get name(){const e=this.read_name_length-1,t=this.b0,r=this.byteArray,i=new Array(e);for(let s=0;s<e;s++)i[s]=r[t+s];return String.fromCharCode(...i)}get NUMERIC_MD(){if(this._cachedNUMERIC_MD===void 0){const e=this.getTagRaw("MD");this._cachedNUMERIC_MD=e instanceof Uint8Array?e:null}return this._cachedNUMERIC_MD===null?void 0:this._cachedNUMERIC_MD}get tags(){return this._cachedTags===void 0&&(this._cachedTags=this._computeTags()),this._cachedTags}getTag(e){return this._cachedTags!==void 0?this._cachedTags[e]:this._findTag(e,!1)}getTagRaw(e){return this._findTag(e,!0)}_findTag(e,t){const r=e.charCodeAt(0),i=e.charCodeAt(1);let s=this.tagsStart;const o=this.bytes.end,a=this.byteArray;for(;s<o;){const l=a[s],c=a[s+1],u=a[s+2];s+=3;const f=l===r&&c===i;switch(u){case 65:if(f)return String.fromCharCode(a[s]);s+=1;break;case 105:if(f)return this._dataView.getInt32(s,!0);s+=4;break;case 73:if(f)return this._dataView.getUint32(s,!0);s+=4;break;case 99:if(f)return this._dataView.getInt8(s);s+=1;break;case 67:if(f)return this._dataView.getUint8(s);s+=1;break;case 115:if(f)return this._dataView.getInt16(s,!0);s+=2;break;case 83:if(f)return this._dataView.getUint16(s,!0);s+=2;break;case 102:if(f)return this._dataView.getFloat32(s,!0);s+=4;break;case 90:case 72:{if(f){const h=s;for(;s<o&&a[s]!==0;)s++;if(t)return a.subarray(h,s);const A=[];for(let d=h;d<s;d++)A.push(String.fromCharCode(a[d]));return A.join("")}for(;s<=o&&a[s++]!==0;);break}case 66:{const h=a[s++],A=this._dataView.getInt32(s,!0);s+=4;const d=a.byteOffset+s;if(f)if(h===105){if(d%4===0)return new Int32Array(a.buffer,d,A);const g=new Array(A);for(let p=0;p<A;p++)g[p]=this._dataView.getInt32(s+p*4,!0);return g}else if(h===73){if(d%4===0)return new Uint32Array(a.buffer,d,A);const g=new Array(A);for(let p=0;p<A;p++)g[p]=this._dataView.getUint32(s+p*4,!0);return g}else if(h===115){if(d%2===0)return new Int16Array(a.buffer,d,A);const g=new Array(A);for(let p=0;p<A;p++)g[p]=this._dataView.getInt16(s+p*2,!0);return g}else if(h===83){if(d%2===0)return new Uint16Array(a.buffer,d,A);const g=new Array(A);for(let p=0;p<A;p++)g[p]=this._dataView.getUint16(s+p*2,!0);return g}else{if(h===99)return new Int8Array(a.buffer,d,A);if(h===67)return new Uint8Array(a.buffer,d,A);if(h===102){if(d%4===0)return new Float32Array(a.buffer,d,A);const g=new Array(A);for(let p=0;p<A;p++)g[p]=this._dataView.getFloat32(s+p*4,!0);return g}}h===105||h===73||h===102?s+=A<<2:h===115||h===83?s+=A<<1:(h===99||h===67)&&(s+=A);break}}}}_computeTags(){let e=this.tagsStart;const t=this.bytes.end,r=this.byteArray,i={};for(;e<t;){const s=String.fromCharCode(r[e],r[e+1]),o=r[e+2];switch(e+=3,o){case 65:i[s]=String.fromCharCode(r[e]),e+=1;break;case 105:i[s]=this._dataView.getInt32(e,!0),e+=4;break;case 73:i[s]=this._dataView.getUint32(e,!0),e+=4;break;case 99:i[s]=this._dataView.getInt8(e),e+=1;break;case 67:i[s]=this._dataView.getUint8(e),e+=1;break;case 115:i[s]=this._dataView.getInt16(e,!0),e+=2;break;case 83:i[s]=this._dataView.getUint16(e,!0),e+=2;break;case 102:i[s]=this._dataView.getFloat32(e,!0),e+=4;break;case 90:case 72:{const a=[];for(;e<=t;){const l=r[e++];if(l!==0)a.push(String.fromCharCode(l));else break}i[s]=a.join("");break}case 66:{const a=r[e++],l=this._dataView.getInt32(e,!0);e+=4;const c=r.byteOffset+e;if(a===105){if(c%4===0)i[s]=new Int32Array(r.buffer,c,l);else{const u=new Array(l);for(let f=0;f<l;f++)u[f]=this._dataView.getInt32(e+f*4,!0);i[s]=u}e+=l<<2}else if(a===73){if(c%4===0)i[s]=new Uint32Array(r.buffer,c,l);else{const u=new Array(l);for(let f=0;f<l;f++)u[f]=this._dataView.getUint32(e+f*4,!0);i[s]=u}e+=l<<2}else if(a===115){if(c%2===0)i[s]=new Int16Array(r.buffer,c,l);else{const u=new Array(l);for(let f=0;f<l;f++)u[f]=this._dataView.getInt16(e+f*2,!0);i[s]=u}e+=l<<1}else if(a===83){if(c%2===0)i[s]=new Uint16Array(r.buffer,c,l);else{const u=new Array(l);for(let f=0;f<l;f++)u[f]=this._dataView.getUint16(e+f*2,!0);i[s]=u}e+=l<<1}else if(a===99)i[s]=new Int8Array(r.buffer,c,l),e+=l;else if(a===67)i[s]=new Uint8Array(r.buffer,c,l),e+=l;else if(a===102){if(c%4===0)i[s]=new Float32Array(r.buffer,c,l);else{const u=new Array(l);for(let f=0;f<l;f++)u[f]=this._dataView.getFloat32(e+f*4,!0);i[s]=u}e+=l<<2}break}default:console.error("Unknown BAM tag type",o);break}}return i}isPaired(){return!!(this.flags&Ct.BAM_FPAIRED)}isProperlyPaired(){return!!(this.flags&Ct.BAM_FPROPER_PAIR)}isSegmentUnmapped(){return!!(this.flags&Ct.BAM_FUNMAP)}isMateUnmapped(){return!!(this.flags&Ct.BAM_FMUNMAP)}isReverseComplemented(){return!!(this.flags&Ct.BAM_FREVERSE)}isMateReverseComplemented(){return!!(this.flags&Ct.BAM_FMREVERSE)}isRead1(){return!!(this.flags&Ct.BAM_FREAD1)}isRead2(){return!!(this.flags&Ct.BAM_FREAD2)}isSecondary(){return!!(this.flags&Ct.BAM_FSECONDARY)}isFailedQc(){return!!(this.flags&Ct.BAM_FQCFAIL)}isDuplicate(){return!!(this.flags&Ct.BAM_FDUP)}isSupplementary(){return!!(this.flags&Ct.BAM_FSUPPLEMENTARY)}get cigarAndLength(){return this._cachedCigarAndLength===void 0&&(this._cachedCigarAndLength=this._computeCigarAndLength()),this._cachedCigarAndLength}_computeCigarAndLength(){if(this.isSegmentUnmapped())return{length_on_ref:0,NUMERIC_CIGAR:new Uint32Array(0)};const e=this.num_cigar_ops;let t=this.b0+this.read_name_length;const r=this._dataView.getInt32(t,!0),i=r>>4;if((r&15)===TN&&i===this.seq_length){t+=4;const u=this._dataView.getInt32(t,!0),f=u>>4;return(u&15)!==NN&&console.warn("CG tag with no N tag"),{NUMERIC_CIGAR:this.tags.CG,length_on_ref:f}}const o=this.byteArray.byteOffset+t;if(o%4===0&&e>50){const u=new Uint32Array(this.byteArray.buffer,o,e);let f=0;for(let h=0;h<e;++h){const A=u[h];f+=(A>>4)*(EC>>(A&15)&1)}return{NUMERIC_CIGAR:u,length_on_ref:f}}const l=new Array(e);let c=0;for(let u=0;u<e;++u){const f=this._dataView.getInt32(t+u*4,!0)|0;l[u]=f,c+=(f>>4)*(EC>>(f&15)&1)}return{NUMERIC_CIGAR:l,length_on_ref:c}}get length_on_ref(){return this.cigarAndLength.length_on_ref}get NUMERIC_CIGAR(){return this.cigarAndLength.NUMERIC_CIGAR}get CIGAR(){const e=this.NUMERIC_CIGAR;let t="";for(let r=0,i=e.length;r<i;r++){const s=e[r],o=s>>4,a=PN[s&15];t+=o+String.fromCharCode(a)}return t}get num_cigar_ops(){return this.flag_nc&65535}get num_cigar_bytes(){return this.num_cigar_ops<<2}get read_name_length(){return this.bin_mq_nl&255}get num_seq_bytes(){return this.seq_length+1>>1}get NUMERIC_SEQ(){const e=this.b0+this.read_name_length+this.num_cigar_bytes;return this.byteArray.subarray(e,e+this.num_seq_bytes)}get seq(){const e=this.NUMERIC_SEQ,t=this.seq_length,r=new Array(t);let i=0;const s=t>>1;for(let o=0;o<s;++o){const a=e[o];r[i++]=Ao[(a&240)>>4],r[i++]=Ao[a&15]}if(i<t){const o=e[s];r[i]=Ao[(o&240)>>4]}return r.join("")}get pair_orientation(){if(!this.isSegmentUnmapped()&&!this.isMateUnmapped()&&this.ref_id===this.next_refid){const e=this.isReverseComplemented()?"R":"F",t=this.isMateReverseComplemented()?"R":"F";let r=" ",i=" ";return this.isRead1()?(r="1",i="2"):this.isRead2()&&(r="2",i="1"),this.template_length>0?`${e}${r}${t}${i}`:`${t}${i}${e}${r}`}}get bin_mq_nl(){return this._dataView.getInt32(this.bytes.start+12,!0)}get flag_nc(){return this._dataView.getInt32(this.bytes.start+16,!0)}get seq_length(){return this._dataView.getInt32(this.bytes.start+20,!0)}get next_refid(){return this._dataView.getInt32(this.bytes.start+24,!0)}get next_pos(){return this._dataView.getInt32(this.bytes.start+28,!0)}get template_length(){return this._dataView.getInt32(this.bytes.start+32,!0)}seqAt(e){if(e<this.seq_length){const t=e>>1,r=this.byteArray[this.b0+this.read_name_length+this.num_cigar_bytes+t];return e%2===0?Ao[(r&240)>>4]:Ao[r&15]}else return}toJSON(){const e={};for(const t of Object.keys(this))t.startsWith("_")||t==="bytes"||(e[t]=this[t]);return e}}function xC(n){const e=n.split(/\r?\n/),t=[];for(const r of e){const[i,...s]=r.split(/\t/);i&&t.push({tag:i.slice(1),data:s.map(o=>{const a=o.indexOf(":"),l=o.slice(0,a),c=o.slice(a+1);return{tag:l,value:c}})})}return t}const BC=21840194,LN=65536;class vC{constructor({bamFilehandle:e,bamPath:t,bamUrl:r,baiPath:i,baiFilehandle:s,baiUrl:o,csiPath:a,csiFilehandle:l,csiUrl:c,htsget:u,renameRefSeqs:f=A=>A,recordClass:h}){if(this.htsget=!1,this.chunkFeatureCache=new so({maxSize:100}),this.renameRefSeq=f,this.RecordClass=h??bC,e)this.bam=e;else if(t)this.bam=new We(t);else if(r)this.bam=new Vt(r);else if(u)this.htsget=!0,this.bam=new MN;else throw new Error("unable to initialize bam");if(l)this.index=new xc({filehandle:l});else if(a)this.index=new xc({filehandle:new We(a)});else if(c)this.index=new xc({filehandle:new Vt(c)});else if(s)this.index=new Ci({filehandle:s});else if(i)this.index=new Ci({filehandle:new We(i)});else if(o)this.index=new Ci({filehandle:new Vt(o)});else if(t)this.index=new Ci({filehandle:new We(`${t}.bai`)});else if(r)this.index=new Ci({filehandle:new Vt(`${r}.bai`)});else if(u)this.htsget=!0;else throw new Error("unable to infer index format")}async getHeaderPre(e){const t=x5(e);if(!this.index)return;const r=await this.index.parse(t),i=r.firstDataLine===void 0?await this.bam.readFile():await this.bam.read(r.firstDataLine.blockPosition+LN,0),s=await Di(i),o=new DataView(s.buffer);if(o.getInt32(0,!0)!==BC)throw new Error("Not a BAM file");const a=o.getInt32(4,!0),l=new TextDecoder("utf8");this.header=l.decode(s.subarray(8,8+a));const{chrToIndex:c,indexToChr:u}=this._parseRefSeqs(s,a+8);return this.chrToIndex=c,this.indexToChr=u,xC(this.header)}getHeader(e){return this.headerP||(this.headerP=this.getHeaderPre(e).catch(t=>{throw this.headerP=void 0,t})),this.headerP}async getHeaderText(e={}){return await this.getHeader(e),this.header}_parseRefSeqs(e,t){const r=new DataView(e.buffer),i=r.getInt32(t,!0);let s=t+4;const o={},a=[],l=new TextDecoder("utf8");for(let c=0;c<i;c+=1){if(s+8>e.length)throw new Error(`Insufficient data for reference sequences: need more than ${e.length} bytes`);const u=r.getInt32(s,!0),f=this.renameRefSeq(l.decode(e.subarray(s+4,s+4+u-1))),h=r.getInt32(s+u+4,!0);o[f]=c,a.push({refName:f,length:h}),s=s+8+u}return{chrToIndex:o,indexToChr:a}}async getRecordsForRange(e,t,r,i){await this.getHeader(i);const s=this.chrToIndex?.[e];if(s===void 0||!this.index)return[];const o=await this.index.blocksForRange(s,t-1,r,i);return this._fetchChunkFeaturesDirect(o,s,t,r,i)}chunkCacheKey(e,t){const{minv:r,maxv:i}=e;return`${r.blockPosition}:${r.dataPosition}-${i.blockPosition}:${i.dataPosition}${D5(t)}`}blocksOverlap(e,t,r,i){return e<=i&&t>=r}evictOverlappingChunks(e,t){for(const[r,i]of this.chunkFeatureCache)this.blocksOverlap(e,t,i.minBlock,i.maxBlock)&&this.chunkFeatureCache.delete(r)}async _fetchChunkFeaturesDirect(e,t,r,i,s={}){const{viewAsPairs:o,filterBy:a}=s,{flagInclude:l=0,flagExclude:c=0,tagFilter:u}=a||{},f=[];for(let h=0,A=e.length;h<A;h++){const d=e[h],g=this.chunkCacheKey(d,a),p=d.minv.blockPosition,m=d.maxv.blockPosition;let y;const C=this.chunkFeatureCache.get(g);if(C)y=C.features;else{this.evictOverlappingChunks(p,m);const{data:b,cpositions:x,dpositions:E}=await this._readChunk({chunk:d,opts:s}),S=await this.readBamFeatures(b,x,E,d);if(a){y=[];for(let Q=0,v=S.length;Q<v;Q++){const F=S[Q];S5(F.flags,l,c)||u&&Q5(F.tags[u.tag],u.value)||y.push(F)}}else y=S;this.chunkFeatureCache.set(g,{minBlock:p,maxBlock:m,features:y})}let w=!1;for(let b=0,x=y.length;b<x;b++){const E=y[b];if(E.ref_id===t)if(E.start>=i){w=!0;break}else E.end>=r&&f.push(E)}if(w)break}if(o){const h=await this.fetchPairs(t,f,s);for(let A=0,d=h.length;A<d;A++)f.push(h[A])}return f}async fetchPairs(e,t,r){const{pairAcrossChr:i,maxInsertSize:s=2e5}=r,o={},a={};for(let h=0,A=t.length;h<A;h++){const d=t[h],g=d.name;o[g]=(o[g]||0)+1,a[d.fileOffset]=1}const l=[];for(let h=0,A=t.length;h<A;h++){const d=t[h],g=d.name;this.index&&o[g]===1&&(i||d.next_refid===e&&Math.abs(d.start-d.next_pos)<s)&&l.push(this.index.blocksForRange(d.next_refid,d.next_pos,d.next_pos+1,r))}const c=new Map,u=await Promise.all(l);for(let h=0,A=u.length;h<A;h++){const d=u[h];for(let g=0,p=d.length;g<p;g++){const m=d[g],y=m.toString();c.has(y)||c.set(y,m)}}return(await Promise.all([...c.values()].map(async h=>{const{data:A,cpositions:d,dpositions:g,chunk:p}=await this._readChunk({chunk:h,opts:r}),m=[],y=await this.readBamFeatures(A,d,g,p);for(let C=0,w=y.length;C<w;C++){const b=y[C];o[b.name]===1&&!a[b.fileOffset]&&m.push(b)}return m}))).flat()}async _readChunk({chunk:e,opts:t}){const r=await this.bam.read(e.fetchedSize(),e.minv.blockPosition,t),{buffer:i,cpositions:s,dpositions:o}=await CC(r,e);return{data:i,cpositions:s,dpositions:o,chunk:e}}async readBamFeatures(e,t,r,i){let s=0;const o=[];let a=0;const l=new DataView(e.buffer),c=r.length>0,u=t.length>0;for(;s+4<e.length;){const f=l.getInt32(s,!0),h=s+4+f-1;if(c){for(;s+i.minv.dataPosition>=r[a++];);a--}if(h<e.length){const A=new this.RecordClass({bytes:{byteArray:e,start:s,end:h},fileOffset:u?t[a]*256+(s-r[a])+i.minv.dataPosition+1:DN(e.subarray(s,h))>>>0});o.push(A)}s=h+1}return o}async hasRefSeq(e){const t=this.chrToIndex?.[e];return t===void 0?!1:this.index?.hasRefSeq(t)}async lineCount(e){const t=this.chrToIndex?.[e];return t===void 0||!this.index?0:this.index.lineCount(t)}async indexCov(e,t,r){if(!this.index)return[];await this.index.parse();const i=this.chrToIndex?.[e];return i===void 0?[]:this.index.indexCov(i,t,r)}async blocksForRange(e,t,r,i){if(!this.index)return[];await this.index.parse();const s=this.chrToIndex?.[e];return s===void 0?[]:this.index.blocksForRange(s,t,r,i)}clearFeatureCache(){this.chunkFeatureCache.clear()}async estimatedBytesForRegions(e,t){if(!this.index)return 0;if(await this.getHeader(t),!this.chrToIndex)throw new Error("Header not yet parsed");return this.index.estimatedBytesForRegions(e.map(r=>{const i=this.chrToIndex[r.refName];if(i===void 0)throw new Error(`Unknown reference name: ${r.refName}`);return{refId:i,start:r.start,end:r.end}}),t)}}async function SC(n,e){const t=await Promise.all(n.map(async r=>{const{url:i,headers:s}=r;if(i.startsWith("data:")){const o=await fetch(i);if(!o.ok)throw new Error("failed to decode base64");const a=await o.arrayBuffer();return new Uint8Array(a)}else{const{referer:o,...a}=s,l=await fetch(i,{...e,headers:{...e?.headers,...a}});if(!l.ok)throw new Error(`HTTP ${l.status} fetching ${i}: ${await l.text()}`);return new Uint8Array(await l.arrayBuffer())}}));return v5(await Promise.all(t.map(r=>Di(r))))}class ON extends vC{constructor(e){super({htsget:!0,recordClass:e.recordClass}),this.baseUrl=e.baseUrl,this.trackId=e.trackId}async getRecordsForRange(e,t,r,i){const o=`${`${this.baseUrl}/${this.trackId}`}?referenceName=${e}&start=${t}&end=${r}&format=BAM`,a=this.chrToIndex?.[e];if(a===void 0)return[];const l=await fetch(o,{...i});if(!l.ok)throw new Error(`HTTP ${l.status} fetching ${o}: ${await l.text()}`);const c=await l.json(),u=await SC(c.htsget.urls.slice(1),i),f=await this.readBamFeatures(u,[],[],{minv:{dataPosition:0,blockPosition:0},maxv:{dataPosition:0,blockPosition:0}}),h=[];for(let A=0,d=f.length;A<d;A++){const g=f[A];if(g.ref_id===a){if(g.start>=r)break;g.end>=t&&h.push(g)}}return h}async getHeader(e={}){const t=`${this.baseUrl}/${this.trackId}?referenceName=na&class=header`,r=await fetch(t,e);if(!r.ok)throw new Error(`HTTP ${r.status} fetching ${t}: ${await r.text()}`);const i=await r.json(),s=await SC(i.htsget.urls,e),o=new DataView(s.buffer);if(o.getInt32(0,!0)!==BC)throw new Error("Not a BAM file");const a=o.getInt32(4,!0),c=new TextDecoder("utf8").decode(s.subarray(8,8+a)),u=xC(c),f=[],h={},A=u.filter(d=>d.tag==="SQ");for(const[d,g]of A.entries()){let p="",m=0;for(const y of g.data)y.tag==="SN"?p=y.value:y.tag==="LN"&&(m=+y.value);h[p]=d,f[d]={refName:p,length:m}}return this.chrToIndex=h,this.indexToChr=f,u}}const UN=Object.freeze(Object.defineProperty({__proto__:null,BAI:Ci,BamFile:vC,BamRecord:bC,CSI:xc,HtsgetFile:ON},Symbol.toStringTag,{value:"Module"}));class Bc{constructor(e,t,r,i){this.minv=e,this.maxv=t,this.bin=r,this._fetchedSize=i}toUniqueString(){return`${this.minv}..${this.maxv} (bin ${this.bin}, fetchedSize ${this.fetchedSize()})`}toString(){return this.toUniqueString()}compareTo(e){return this.minv.compareTo(e.minv)||this.maxv.compareTo(e.maxv)||this.bin-e.bin}fetchedSize(){return this._fetchedSize!==void 0?this._fetchedSize:this.maxv.blockPosition+65536-this.minv.blockPosition}}class QC{constructor({filehandle:e,renameRefSeqs:t=r=>r}){this.filehandle=e,this.renameRefSeq=t}async getMetadata(e={}){const{indices:t,...r}=await this.parse(e);return r}_findFirstData(e,t){return e?e.compareTo(t)>0?t:e:t}async parse(e={}){return this.parseP||(this.parseP=this._parse(e).catch(t=>{throw this.parseP=void 0,t})),this.parseP}async hasRefSeq(e,t={}){return!!(await this.parse(t)).indices[e]?.binIndex}_parseNameBytes(e){let t=0,r=0;const i=[],s={},o=new TextDecoder("utf8");for(let a=0;a<e.length;a+=1)if(!e[a]){if(r<a){const l=this.renameRefSeq(o.decode(e.subarray(r,a)));i[t]=l,s[l]=t}r=a+1,t+=1}return{refNameToId:s,refIdToName:i}}}const DC=65536,GN=DC*DC;function kC(n,e=0){const t=n[e]|n[e+1]<<8|n[e+2]<<16|n[e+3]<<24;return((n[e+4]|n[e+5]<<8|n[e+6]<<16|n[e+7]<<24)>>>0)*GN+(t>>>0)}function zN(n,e){return e.minv.blockPosition-n.maxv.blockPosition<65e3&&e.maxv.blockPosition-n.minv.blockPosition<5e6}function FC(n,e){const t=[];let r;if(n.length===0)return n;n.sort(function(i,s){const o=i.minv.blockPosition-s.minv.blockPosition;return o===0?i.minv.dataPosition-s.minv.dataPosition:o});for(const i of n)(!e||i.maxv.compareTo(e)>0)&&(r===void 0?(t.push(i),r=i):zN(r,i)?i.maxv.compareTo(r.maxv)>0&&(r.maxv=i.maxv):(t.push(i),r=i));return t}class DA{constructor(e,t){this.blockPosition=e,this.dataPosition=t}toString(){return`${this.blockPosition}:${this.dataPosition}`}compareTo(e){return this.blockPosition-e.blockPosition||this.dataPosition-e.dataPosition}}function ki(n,e=0){return new DA(n[e+7]*1099511627776+n[e+6]*4294967296+n[e+5]*16777216+n[e+4]*65536+n[e+3]*256+n[e+2],n[e+1]<<8|n[e])}const HN=21582659,VN=38359875,_N={0:"generic",1:"SAM",2:"VCF"};function YN(n,e){return n*2**e}function RC(n,e){return Math.floor(n/2**e)}class vc extends QC{constructor(e){super(e),this.maxBinNumber=0,this.depth=0,this.minShift=0}async lineCount(e,t={}){const r=await this.parse(t),i=r.refNameToId[e];if(i===void 0||!r.indices[i])return-1;const{stats:o}=r.indices[i];return o?o.lineCount:-1}indexCov(){throw new Error("CSI indexes do not support indexcov")}parseAuxData(e,t){const r=new DataView(e.buffer),i=r.getInt32(t,!0),s=i&65536?"zero-based-half-open":"1-based-closed",o=_N[i&15];if(!o)throw new Error(`invalid Tabix preset format flags ${i}`);const a={ref:r.getInt32(t+4,!0),start:r.getInt32(t+8,!0),end:r.getInt32(t+12,!0)},l=r.getInt32(t+16,!0),c=l?String.fromCharCode(l):void 0,u=r.getInt32(t+20,!0),f=r.getInt32(t+24,!0),{refIdToName:h,refNameToId:A}=this._parseNameBytes(e.subarray(t+28,t+28+f));return{refIdToName:h,refNameToId:A,skipLines:u,metaChar:c,columnNumbers:a,format:o,coordinateType:s}}async _parse(e={}){const t=await Di(await this.filehandle.readFile(e)),r=new DataView(t.buffer);let i;if(r.getUint32(0,!0)===HN)i=1;else if(r.getUint32(0,!0)===VN)i=2;else throw new Error("Not a CSI file");this.minShift=r.getInt32(4,!0),this.depth=r.getInt32(8,!0),this.maxBinNumber=((1<<(this.depth+1)*3)-1)/7;const s=2**(this.minShift+this.depth*3),o=r.getInt32(12,!0),a=o&&o>=30?this.parseAuxData(t,16):{refIdToName:[],refNameToId:{},metaChar:void 0,columnNumbers:{ref:0,start:1,end:2},coordinateType:"zero-based-half-open",format:"generic"},l=r.getInt32(16+o,!0);let c,u=16+o+4;const f=new Array(l).fill(0).map(()=>{const h=r.getInt32(u,!0);u+=4;const A={};let d;for(let g=0;g<h;g+=1){const p=r.getUint32(u,!0);if(p>this.maxBinNumber)d=this.parsePseudoBin(t,u+4),u+=48;else{const m=ki(t,u+4);c=this._findFirstData(c,m);const y=r.getInt32(u+12,!0);u+=16;const C=new Array(y);for(let w=0;w<y;w+=1){const b=ki(t,u),x=ki(t,u+8);u+=16,C[w]=new Bc(b,x,p)}A[p]=C}}return{binIndex:A,stats:d}});return{...a,csi:!0,refCount:l,maxBlockSize:65536,firstDataLine:c,csiVersion:i,indices:f,depth:this.depth,maxBinNumber:this.maxBinNumber,maxRefLength:s}}parsePseudoBin(e,t){return{lineCount:kC(e,t+28)}}async blocksForRange(e,t,r,i={}){t<0&&(t=0);const s=await this.parse(i),o=s.refNameToId[e];if(o===void 0)return[];const a=s.indices[o];if(!a)return[];const l=this.reg2bins(t,r),c=[];for(const[u,f]of l)for(let h=u;h<=f;h++)if(a.binIndex[h])for(const A of a.binIndex[h])c.push(new Bc(A.minv,A.maxv,h));return FC(c,new DA(0,0))}reg2bins(e,t){e-=1,e<1&&(e=1),t>2**50&&(t=2**34),t-=1;let r=0,i=0,s=this.minShift+this.depth*3;const o=[];for(;r<=this.depth;s-=3,i+=YN(1,r*3),r+=1){const a=i+RC(e,s),l=i+RC(t,s);if(l-a+o.length>this.maxBinNumber)throw new Error(`query ${e}-${t} is too large for current binning scheme (shift ${this.minShift}, depth ${this.depth}), try a smaller query or a coarser index binning scheme`);o.push([a,l])}return o}}const JN=21578324,MC=14;function KN(n,e){return n+=1,e-=1,[[0,0],[1+(n>>26),1+(e>>26)],[9+(n>>23),9+(e>>23)],[73+(n>>20),73+(e>>20)],[585+(n>>17),585+(e>>17)],[4681+(n>>14),4681+(e>>14)]]}class Fi extends QC{async lineCount(e,t={}){const r=await this.parse(t),i=r.refNameToId[e];return i===void 0||!r.indices[i]?-1:r.indices[i].stats?.lineCount??-1}async _parse(e={}){const t=await this.filehandle.readFile(e),r=await Di(t),i=new DataView(r.buffer);if(i.getUint32(0,!0)!==JN)throw new Error("Not a TBI file");const o=i.getUint32(4,!0),a=i.getUint32(8,!0),l=a&65536?"zero-based-half-open":"1-based-closed",u={0:"generic",1:"SAM",2:"VCF"}[a&15];if(!u)throw new Error(`invalid Tabix preset format flags ${a}`);const f={ref:i.getInt32(12,!0),start:i.getInt32(16,!0),end:i.getInt32(20,!0)},h=i.getInt32(24,!0),A=5,d=((1<<(A+1)*3)-1)/7,g=2**(14+A*3),p=h?String.fromCharCode(h):void 0,m=i.getInt32(28,!0),y=i.getInt32(32,!0),{refNameToId:C,refIdToName:w}=this._parseNameBytes(r.slice(36,36+y));let b=36+y,x;return{indices:new Array(o).fill(0).map(()=>{const S=i.getInt32(b,!0);b+=4;const Q={};let v;for(let N=0;N<S;N+=1){const O=i.getUint32(b,!0);if(b+=4,O>d+1)throw new Error("tabix index contains too many bins, please use a CSI index");if(O===d+1){const H=i.getInt32(b,!0);b+=4,H===2&&(v=this.parsePseudoBin(r,b)),b+=16*H}else{const H=i.getInt32(b,!0);b+=4;const G=new Array(H);for(let _=0;_<H;_+=1){const te=ki(r,b),oe=ki(r,b+8);b+=16,x=this._findFirstData(x,te),G[_]=new Bc(te,oe,O)}Q[O]=G}}const F=i.getInt32(b,!0);b+=4;const R=new Array(F);for(let N=0;N<F;N+=1)R[N]=ki(r,b),b+=8,x=this._findFirstData(x,R[N]);return{binIndex:Q,linearIndex:R,stats:v}}),metaChar:p,maxBinNumber:d,maxRefLength:g,skipLines:m,firstDataLine:x,columnNumbers:f,coordinateType:l,format:u,refIdToName:w,refNameToId:C,maxBlockSize:65536}}parsePseudoBin(e,t){return{lineCount:kC(e,t+16)}}async blocksForRange(e,t,r,i={}){t<0&&(t=0);const s=await this.parse(i),o=s.refNameToId[e];if(o===void 0)return[];const a=s.indices[o];if(!a)return[];(a.linearIndex.length>0?a.linearIndex[t>>MC>=a.linearIndex.length?a.linearIndex.length-1:t>>MC]:new DA(0,0))||console.warn("querying outside of possible tabix range");const c=KN(t,r),u=[];for(const[g,p]of c)for(let m=g;m<=p;m++)if(a.binIndex[m])for(const y of a.binIndex[m])u.push(new Bc(y.minv,y.maxv,m));const f=a.linearIndex.length;let h;const A=Math.min(t>>14,f-1),d=Math.min(r>>14,f-1);for(let g=A;g<=d;++g){const p=a.linearIndex[g];p&&(!h||p.compareTo(h)<0)&&(h=p)}return FC(u,h)}}class qN{constructor({path:e,filehandle:t,url:r,tbiPath:i,tbiUrl:s,tbiFilehandle:o,csiPath:a,csiUrl:l,csiFilehandle:c,renameRefSeqs:u,chunkCacheSize:f=5*2**20}){this.cache=new so({maxSize:1e3});const h=u??(A=>A);if(t)this.filehandle=t;else if(e)this.filehandle=new We(e);else if(r)this.filehandle=new Vt(r);else throw new TypeError("must provide either filehandle or path");if(o)this.index=new Fi({filehandle:o,renameRefSeqs:h});else if(c)this.index=new vc({filehandle:c,renameRefSeqs:h});else if(i)this.index=new Fi({filehandle:new We(i),renameRefSeqs:h});else if(a)this.index=new vc({filehandle:new We(a),renameRefSeqs:h});else if(e)this.index=new Fi({filehandle:new We(`${e}.tbi`),renameRefSeqs:h});else if(l)this.index=new vc({filehandle:new Vt(l)});else if(s)this.index=new Fi({filehandle:new Vt(s)});else if(r)this.index=new Fi({filehandle:new Vt(`${r}.tbi`)});else throw new TypeError("must provide one of tbiFilehandle, tbiPath, csiFilehandle, csiPath, tbiUrl, csiUrl");this.renameRefSeq=h,this.hasCustomRenameRefSeq=u!==void 0,this.chunkCache=new pi({cache:new so({maxSize:Math.floor(f/65536)}),fill:(A,d)=>this.readChunk(A,{signal:d})})}calculateFileOffset(e,t,r,i,s){return e[r]*256+(i-t[r])+s+1}async getLines(e,t,r,i){let s,o={},a;typeof i=="function"?a=i:(o=i,a=i.lineCallback,s=i.signal);const l=await this.index.getMetadata(o),c=t??0,u=r??l.maxRefLength;if(!(c<=u))throw new TypeError("invalid start and end coordinates. start must be less than or equal to end");if(c===u)return;const f=await this.index.blocksForRange(e,c,u,o),h=new TextDecoder("utf8"),A=l.format==="VCF",d={ref:l.columnNumbers.ref||0,start:l.columnNumbers.start||0,end:A?8:l.columnNumbers.end||0},g=Math.max(d.ref,d.start,d.end),p=l.metaChar?.charCodeAt(0),m=l.coordinateType==="1-based-closed"?-1:0,y=!this.hasCustomRenameRefSeq;for(const C of f){const{buffer:w,cpositions:b,dpositions:x}=await this.chunkCache.get(C.toString(),C,s);let E=0,S=0;const Q=h.decode(w);if(w.length==Q.length)for(;E<Q.length;){const F=Q.indexOf(`
|
|
822
|
-
`,E);if(
|
|
823
|
-
`)&&(
|
|
824
|
-
`)?-2:-1));for(const
|
|
825
|
-
`)&&(
|
|
826
|
-
`)?-2:-1));for(const r of t.split(";")){const i=r.indexOf("=");if(i===-1)continue;const s=r.slice(i+1);if(!s.length)continue;const o=r.slice(0,i).trim();let a=e[o];a||(a=[],e[o]=a);for(const l of s.split(","))a.push(l.trim())}return e}function t9(n){return kA(n.split(" "))}function Ue(n){return n==="."||n===""||n===void 0?null:n}function kA(n){const e=Ue(n[0]),t=Ue(n[1]),r=Ue(n[2]),i=Ue(n[3]),s=Ue(n[4]),o=Ue(n[5]),a=Ue(n[6]),l=Ue(n[7]),c=Ue(n[8]);return{seq_id:e?Sc(e):null,source:t?Sc(t):null,type:r?Sc(r):null,start:i===null?null:parseInt(i,10),end:s===null?null:parseInt(s,10),score:o===null?null:parseFloat(o),strand:a,phase:l,attributes:c===null?null:$N(c)}}function n9(n){const e=Ue(n[0]),t=Ue(n[1]),r=Ue(n[2]),i=Ue(n[3]),s=Ue(n[4]),o=Ue(n[5]),a=Ue(n[6]),l=Ue(n[7]),c=Ue(n[8]);return{seq_id:e,source:t,type:r,start:i===null?null:parseInt(i,10),end:s===null?null:parseInt(s,10),score:o===null?null:parseFloat(o),strand:a,phase:l,attributes:c===null?null:e9(c)}}function r9(n){const e=XN.exec(n);if(!e)return null;const[,t]=e;let[,,r]=e;const i={directive:t};if(r.length&&(r=r.replace(ZN,""),i.value=r),t==="sequence-region"){const s=r.split(NC,3);return{...i,seq_id:s[0],start:s[1]?.replaceAll(TC,""),end:s[2]?.replaceAll(TC,"")}}else if(t==="genome-build"){const[s,o]=r.split(NC,2);return{...i,source:s,buildName:o}}return i}const i9=/^\s*[^#\s>]/,s9=/^\s*(#+)(.*)/,o9=/^\s*$/,a9=/^\s*>/,c9=/\r?\n?$/g;class Qc{featureCallback;endCallback;commentCallback;errorCallback;disableDerivesFromReferences;directiveCallback;bufferSize;eof=!1;lineNumber=0;_underConstructionTopLevel=[];_underConstructionById={};_completedReferences={};_underConstructionOrphans={};constructor(e){const t=()=>{};this.featureCallback=e.featureCallback||t,this.endCallback=e.endCallback||t,this.commentCallback=e.commentCallback||t,this.errorCallback=e.errorCallback||t,this.directiveCallback=e.directiveCallback||t,this.disableDerivesFromReferences=e.disableDerivesFromReferences||!1,this.bufferSize=e.bufferSize===void 0?1/0:e.bufferSize}addLine(e){if(this.eof)return;if(this.lineNumber+=1,i9.test(e)){this._bufferLine(e);return}const t=s9.exec(e);if(t){const[,r]=t;let[,,i]=t;if(r.length===3)this._emitAllUnderConstructionFeatures();else if(r.length===2){const s=r9(e);s&&(s.directive==="FASTA"?(this._emitAllUnderConstructionFeatures(),this.eof=!0):this._emitItem(s))}else this._emitItem({comment:i.trimStart()})}else if(!o9.test(e))if(a9.test(e))this._emitAllUnderConstructionFeatures(),this.eof=!0;else{const r=e.replaceAll(c9,"");throw new Error(`GFF3 parse error. Cannot parse '${r}'.`)}}addParsedFeatureLine(e){this.eof||(this.lineNumber+=1,this._bufferParsedLine(e))}finish(){this._emitAllUnderConstructionFeatures(),this.endCallback()}_emitItem(e){Array.isArray(e)?this.featureCallback(e):"directive"in e?this.directiveCallback(e):"comment"in e&&this.commentCallback(e)}_enforceBufferSizeLimit(e=0){const t=r=>{r&&Array.isArray(r)&&r[0].attributes?.ID?.[0]&&(r[0].attributes.ID.forEach(s=>{delete this._underConstructionById[s],delete this._completedReferences[s]}),r.forEach(s=>{s.child_features&&s.child_features.forEach(o=>{t(o)}),s.derived_features&&s.derived_features.forEach(o=>{t(o)})}))};for(;this._underConstructionTopLevel.length+e>this.bufferSize;){const r=this._underConstructionTopLevel.shift();r&&(this._emitItem(r),t(r))}}_emitAllUnderConstructionFeatures(){this._underConstructionTopLevel.forEach(this._emitItem.bind(this)),this._underConstructionTopLevel=[],this._underConstructionById={},this._completedReferences={};const e=Object.keys(this._underConstructionOrphans);if(e.length)throw new Error(`some features reference other features that do not exist in the file (or in the same '###' scope). ${e.join(",")}`)}_bufferLine(e){this._bufferParsedLine(t9(e))}_bufferParsedLine(e){const t=e;t.child_features=[],t.derived_features=[];const r=t.attributes?.ID||[],i=t.attributes?.Parent||[],s=this.disableDerivesFromReferences?[]:t.attributes?.Derives_from||[];if(!r.length&&!i.length&&!s.length){this._emitItem([t]);return}let o;r.forEach(a=>{const l=this._underConstructionById[a];l?(l[l.length-1].type!==t.type&&this._parseError(`multi-line feature "${a}" has inconsistent types: "${t.type}", "${l[l.length-1].type}"`),l.push(t),o=l):(o=[t],this._enforceBufferSizeLimit(1),!i.length&&!s.length&&this._underConstructionTopLevel.push(o),this._underConstructionById[a]=o,this._resolveReferencesTo(o,a))}),this._resolveReferencesFrom(o||[t],{Parent:i,Derives_from:s},r)}_resolveReferencesTo(e,t){const r=this._underConstructionOrphans[t];if(r){for(const i of e)i.child_features.push(...r.Parent),i.derived_features.push(...r.Derives_from);delete this._underConstructionOrphans[t]}}_parseError(e){this.eof=!0,this.errorCallback(`${this.lineNumber}: ${e}`)}_resolveReferencesFrom(e,t,r){for(const i of t.Parent){const s=this._underConstructionById[i];if(s){let o=!1;for(const a of r){const l=`Parent,${i}`,c=this._completedReferences[a]||(this._completedReferences[a]={});c[l]&&(o=!0),c[l]=!0}if(!o)for(const a of s)a.child_features.push(e)}else{let o=this._underConstructionOrphans[i];o||(o={Parent:[],Derives_from:[]},this._underConstructionOrphans[i]=o),o.Parent.push(e)}}for(const i of t.Derives_from){const s=this._underConstructionById[i];if(s){let o=!1;for(const a of r){const l=`Derives_from,${i}`,c=this._completedReferences[a]||(this._completedReferences[a]={});c[l]&&(o=!0),c[l]=!0}if(!o)for(const a of s)a.derived_features.push(e)}else{let o=this._underConstructionOrphans[i];o||(o={Parent:[],Derives_from:[]},this._underConstructionOrphans[i]=o),o.Derives_from.push(e)}}}}function l9(n){const e=[],t=new Qc({featureCallback:r=>e.push(r),disableDerivesFromReferences:!0,errorCallback:r=>{throw new Error(r)}});for(const r of n.split(/\r?\n/))t.addLine(r);return t.finish(),e}function u9(n){const e=[],t=new Qc({featureCallback:r=>e.push(r),disableDerivesFromReferences:!0,errorCallback:r=>{throw new Error(r)}});for(const r of n)t.addLine(r);return t.finish(),e}function f9(n){const e=[],t=new Qc({featureCallback:r=>e.push(r),disableDerivesFromReferences:!0,errorCallback:r=>{throw new Error(r)}});for(const r of n){const i=kA(r.fields);r.lineHash!==void 0&&(i.attributes||(i.attributes={}),i.attributes._lineHash=[String(r.lineHash)]),t.addParsedFeatureLine(i)}return t.finish(),e}function A9(n,e){const t=[],r=new Qc({featureCallback:s=>t.push(s),disableDerivesFromReferences:!0,errorCallback:s=>{throw new Error(s)}}),i=e?kA:n9;for(const s of n){const o=i(s.fields);s.lineHash!==void 0&&(o.attributes||(o.attributes={}),o.attributes._lineHash=[String(s.lineHash)]),r.addParsedFeatureLine(o)}return r.finish(),t}const h9=Object.freeze(Object.defineProperty({__proto__:null,parseArraySync:u9,parseRecordsSync:f9,parseRecordsSyncFast:A9,parseStringSync:l9},Symbol.toStringTag,{value:"Module"}));function d9(n,e,t){const r=Object.create(null),i=t.length,s=e.length,o=9,a=58;let l=0;if(n==="GT"){for(let f=0;f<i;f++){const h=l;for(;l<s&&e.charCodeAt(l)!==o;)l++;r[t[f]]=e.slice(h,l),l++}return r}const c=n.indexOf("GT");if(c===-1)return r;if(c===0){for(let f=0;f<i;f++){const h=l;for(;l<s&&e.charCodeAt(l)!==a&&e.charCodeAt(l)!==o;)l++;for(r[t[f]]=e.slice(h,l);l<s&&e.charCodeAt(l)!==o;)l++;l++}return r}let u=0;for(let f=0;f<c;f++)n.charCodeAt(f)===a&&u++;for(let f=0;f<i;f++){const h=l;let A=l;for(;A<s&&e.charCodeAt(A)!==o;)A++;let d=0,g=h;for(let p=h;p<=A;p++)if(p===A||e.charCodeAt(p)===a){if(d===u){r[t[f]]=e.slice(g,p);break}d++,g=p+1}l=A+1}return r}function g9(n){const e=[],t=[];let r=!1,i=!1;const s=n.length;for(let o=0;o<s;o++){const a=n[o];a==='"'?(r=!r,t.push(a)):a==="["?(i=!0,t.push(a)):a==="]"?(i=!1,t.push(a)):a===","&&!r&&!i?(e.push(t.join("").trim()),t.length=0):t.push(a)}return t.length>0&&e.push(t.join("").trim()),e}function p9(n,e){const t=n.indexOf(e);return[n.slice(0,t),n.slice(t+1)]}function m9(n){const e=n.slice(1,-1),t=g9(e),r=[];for(let i=0;i<t.length;i++){const s=t[i],[o,a]=p9(s,"=");if(a&&a.startsWith("[")&&a.endsWith("]")){const l=a.slice(1,-1).split(",");for(let c=0;c<l.length;c++)l[c]=l[c].trim();r.push([o,l])}else a&&a.startsWith('"')&&a.endsWith('"')?r.push([o,a.slice(1,-1)]):r.push([o,a])}return Object.fromEntries(r)}const Dc={InfoFields:{AA:{Number:1,Type:"String",Description:"Ancestral allele"},AC:{Number:"A",Type:"Integer",Description:"Allele count in genotypes, for each ALT allele, in the same order as listed"},AD:{Number:"R",Type:"Integer",Description:"Total read depth for each allele"},ADF:{Number:"R",Type:"Integer",Description:"Read depth for each allele on the forward strand"},ADR:{Number:"R",Type:"Integer",Description:"Read depth for each allele on the reverse strand"},AF:{Number:"A",Type:"Float",Description:"Allele frequency for each ALT allele in the same order as listed (estimated from primary data, not called genotypes)"},AN:{Number:1,Type:"Integer",Description:"Total number of alleles in called genotypes"},BQ:{Number:1,Type:"Float",Description:"RMS base quality"},CIGAR:{Number:1,Type:"Float",Description:"Cigar string describing how to align an alternate allele to the reference allele"},DB:{Number:0,Type:"Flag",Description:"dbSNP membership"},DP:{Number:1,Type:"Integer",Description:"combined depth across samples"},END:{Number:1,Type:"Integer",Description:"End position (for use with symbolic alleles)"},H2:{Number:0,Type:"Flag",Description:"HapMap2 membership"},H3:{Number:0,Type:"Flag",Description:"HapMap3 membership"},MQ:{Number:1,Type:null,Description:"RMS mapping quality"},MQ0:{Number:1,Type:"Integer",Description:"Number of MAPQ == 0 reads"},NS:{Number:1,Type:"Integer",Description:"Number of samples with data"},SB:{Number:4,Type:"Integer",Description:"Strand bias"},SOMATIC:{Number:0,Type:"Flag",Description:"Somatic mutation (for cancer genomics)"},VALIDATED:{Number:0,Type:"Flag",Description:"Validated by follow-up experiment"},"1000G":{Number:0,Type:"Flag",Description:"1000 Genomes membership"},IMPRECISE:{Number:0,Type:"Flag",Description:"Imprecise structural variation"},NOVEL:{Number:0,Type:"Flag",Description:"Indicates a novel structural variation"},SVTYPE:{Number:1,Type:"String",Description:"Type of structural variant"},SVLEN:{Number:null,Type:"Integer",Description:"Difference in length between REF and ALT alleles"},CIPOS:{Number:2,Type:"Integer",Description:"Confidence interval around POS for imprecise variants"},CIEND:{Number:2,Type:"Integer",Description:"Confidence interval around END for imprecise variants"},HOMLEN:{Type:"Integer",Description:"Length of base pair identical micro-homology at event breakpoints"},HOMSEQ:{Type:"String",Description:"Sequence of base pair identical micro-homology at event breakpoints"},BKPTID:{Type:"String",Description:"ID of the assembled alternate allele in the assembly file"},MEINFO:{Number:4,Type:"String",Description:"Mobile element info of the form NAME,START,END,POLARITY"},METRANS:{Number:4,Type:"String",Description:"Mobile element transduction info of the form CHR,START,END,POLARITY"},DGVID:{Number:1,Type:"String",Description:"ID of this element in Database of Genomic Variation"},DBVARID:{Number:1,Type:"String",Description:"ID of this element in DBVAR"},DBRIPID:{Number:1,Type:"String",Description:"ID of this element in DBRIP"},MATEID:{Number:null,Type:"String",Description:"ID of mate breakends"},PARID:{Number:1,Type:"String",Description:"ID of partner breakend"},EVENT:{Number:1,Type:"String",Description:"ID of event associated to breakend"},CILEN:{Number:2,Type:"Integer",Description:"Confidence interval around the inserted material between breakend"},DPADJ:{Type:"Integer",Description:"Read Depth of adjacency"},CN:{Number:1,Type:"Integer",Description:"Copy number of segment containing breakend"},CNADJ:{Number:null,Type:"Integer",Description:"Copy number of adjacency"},CICN:{Number:2,Type:"Integer",Description:"Confidence interval around copy number for the segment"},CICNADJ:{Number:null,Type:"Integer",Description:"Confidence interval around copy number for the adjacency"}},GenotypeFields:{AD:{Number:"R",Type:"Integer",Description:"Read depth for each allele"},ADF:{Number:"R",Type:"Integer",Description:"Read depth for each allele on the forward strand"},ADR:{Number:"R",Type:"Integer",Description:"Read depth for each allele on the reverse strand"},DP:{Number:1,Type:"Integer",Description:"Read depth"},EC:{Number:"A",Type:"Integer",Description:"Expected alternate allele counts"},FT:{Number:1,Type:"String",Description:'Filter indicating if this genotype was "called"'},GL:{Number:"G",Type:"Float",Description:"Genotype likelihoods"},GP:{Number:"G",Type:"Float",Description:"Genotype posterior probabilities"},GQ:{Number:1,Type:"Integer",Description:"Conditional genotype quality"},GT:{Number:1,Type:"String",Description:"Genotype"},HQ:{Number:2,Type:"Integer",Description:"Haplotype quality"},MQ:{Number:1,Type:"Integer",Description:"RMS mapping quality"},PL:{Number:"G",Type:"Integer",Description:"Phred-scaled genotype likelihoods rounded to the closest integer"},PQ:{Number:1,Type:"Integer",Description:"Phasing quality"},PS:{Number:1,Type:"Integer",Description:"Phase set"}},AltTypes:{DEL:{Description:"Deletion relative to the reference"},INS:{Description:"Insertion of novel sequence relative to the reference"},DUP:{Description:"Region of elevated copy number relative to the reference"},INV:{Description:"Inversion of reference sequence"},CNV:{Description:"Copy number variable region (may be both deletion and duplication)"},"DUP:TANDEM":{Description:"Tandem duplication"},"DEL:ME":{Description:"Deletion of mobile element relative to the reference"},"INS:ME":{Description:"Insertion of a mobile element relative to the reference"},NON_REF:{Description:"Represents any possible alternative allele at this location"},"*":{Description:"Represents any possible alternative allele at this location"}},FilterTypes:{PASS:{Description:"Passed all filters"}}};function w9(n){try{return decodeURIComponent(n)}catch{return n}}class y9{constructor({header:e="",strict:t=!0}){if(!e.length)throw new Error("empty header received");const r=e.split(/[\r\n]+/).filter(Boolean);if(!r.length)throw new Error("no non-empty header lines specified");this.strict=t,this.metadata={INFO:{...Dc.InfoFields},FORMAT:{...Dc.GenotypeFields},ALT:{...Dc.AltTypes},FILTER:{...Dc.FilterTypes}};let i;for(let l=0;l<r.length;l++){const c=r[l];if(c.startsWith("#"))c.startsWith("##")?this.parseMetadata(c):i=c;else throw new Error(`Bad line in header:
|
|
827
|
-
${c}`)}if(!
|
|
828
|
-
${
|
|
829
|
-
${i}`);this.samples=s.slice(9)}parseInfo(e){const t={},r=e.includes("%"),i=e.split(";"),s=this.metadata.INFO,o=i.length;for(let a=0;a<o;a++){const l=i[a],c=l.indexOf("="),u=c===-1?l:l.slice(0,c),f=c===-1?void 0:l.slice(c+1),h=s[u]?.Type;if(h==="Flag")t[u]=!0;else if(!f)t[u]=!0;else{const A=h==="Integer"||h==="Float",d=f.split(","),g=d.length;if(r){const p=[];for(let m=0;m<g;m++){const y=d[m];if(y===".")p.push(void 0);else{const C=w9(y);p.push(A?Number(C):C)}}t[u]=p}else{const p=[];for(let m=0;m<g;m++){const y=d[m];y==="."?p.push(void 0):p.push(A?Number(y):y)}t[u]=p}}}return t}parseSamples(e,t){const r={};if(e){const i=t.split(" "),s=e.split(":"),o=this.metadata.FORMAT,a=[];for(let u=0;u<s.length;u++){const f=o[s[u]]?.Type;a.push(f==="Integer"||f==="Float")}const l=s.length,c=this.samples.length;for(let u=0;u<c;u++){const f=this.samples[u],h={},A=i[u],d=A.length;let g=0,p=0;for(let m=0;m<=d;m++)if(m===d||A[m]===":"){const y=A.slice(g,m);if(y===""||y===".")h[s[p]]=void 0;else{const C=y.split(","),w=[];if(a[p])for(let b=0;b<C.length;b++){const x=C[b];w.push(x==="."?void 0:+x)}else for(let b=0;b<C.length;b++){const x=C[b];w.push(x==="."?void 0:x)}h[s[p]]=w}if(g=m+1,p+=1,p>=l)break}r[f]=h}}return r}parseMetadata(e){const t=/^##(.+?)=(.*)/.exec(e.trim());if(!t)throw new Error(`Line is not a valid metadata line: ${e}`);const[r,i]=t.slice(1,3),s=r;if(i?.startsWith("<")){s in this.metadata||(this.metadata[s]={});const[o,a]=this.parseStructuredMetaVal(i);o?this.metadata[s][o]=a:this.metadata[s]=a}else this.metadata[s]=i}parseStructuredMetaVal(e){const t=m9(e),r=t.ID;return delete t.ID,"Number"in t&&(Number.isNaN(Number(t.Number))||(t.Number=Number(t.Number))),[r,t]}getMetadata(...e){let t=this.metadata;const r=e.length;for(let i=0;i<r;i++)if(t=t[e[i]],!t)return t;return t}parseLine(e){let t=0,r=0;for(;t<e.length&&r<9;)e[t]===" "&&(r+=1),t+=1;const i=r===9?t-1:t,s=e.slice(0,i).split(" "),o=e.slice(i+1),[a,l,c,u,f,h,A]=s,d=a,g=+l,p=c==="."?void 0:c.split(";"),m=u,y=f==="."?void 0:f.split(","),C=h==="."?void 0:+h,w=A==="."?void 0:A.split(";"),b=s[8];if(this.strict&&!s[7])throw new Error("no INFO field specified, must contain at least a '.' (turn off strict mode to allow)");const x=s[7]===void 0||s[7]==="."?{}:this.parseInfo(s[7]);return{CHROM:d,POS:g,ALT:y,INFO:x,REF:m,FILTER:w?.length===1&&w[0]==="PASS"?"PASS":w,ID:p,QUAL:C,FORMAT:b,SAMPLES:()=>this.parseSamples(s[8]??"",o),GENOTYPES:()=>d9(s[8]??"",o,this.samples)}}}const C9=Object.freeze(Object.defineProperty({__proto__:null,default:y9},Symbol.toStringTag,{value:"Module"}));Et.GenomeSpy=T1,Et.embed=E6,Et.favIcon=I6,Et.html=ce,Et.icon=C6,Et.loadSpec=P1,Object.defineProperty(Et,Symbol.toStringTag,{value:"Module"})}));
|
|
833
|
+
)`},Symbol.toStringTag,{value:"Module"}))).map(([t,e])=>[t,BC.parse(e.trim())]));function Ph(t){const e=new Set(["uint","int","float","long"]);return{...t,fields:t.fields.map(n=>({...n,isArray:n.size&&n.type!=="char",arrayIsNumeric:n.size&&e.has(n.type),isNumeric:!n.size&&e.has(n.type)})).filter(n=>!!n.name)}}const cP={".":0,"-":-1,"+":1};function lP(t){return t.length>=12&&!Number.isNaN(Number.parseInt(t[9],10))&&t[10]?.split(",").filter(e=>!!e).length===Number.parseInt(t[9],10)}class uP{constructor(e={}){if(e.autoSql)this.autoSql=Ph(BC.parse(e.autoSql));else if(e.type){if(!Th[e.type])throw new Error("Type not found");this.autoSql=Ph(Th[e.type])}else this.autoSql=Ph(Th.defaultBedSchema),this.attemptDefaultBed=!0}parseLine(e,n={}){const{autoSql:i}=this,{uniqueId:r}=n,s=Array.isArray(e)?e:e.split(" ");let o={};if(!this.attemptDefaultBed||this.attemptDefaultBed&&lP(s))for(let a=0;a<i.fields.length;a++){const l=i.fields[a];let c=s[a];const{isNumeric:u,isArray:f,arrayIsNumeric:h,name:A}=l;if(c==null)break;if(c!=="."){if(u){const d=Number(c);c=Number.isNaN(d)?c:d}else f&&(c=c.split(","),c.at(-1)===""&&c.pop(),h&&(c=c.map(Number)));o[A]=c}}else{const a=["chrom","chromStart","chromEnd","name"];o=Object.fromEntries(s.map((l,c)=>[a[c]||"field"+c,l])),o.chromStart=+o.chromStart,o.chromEnd=+o.chromEnd,Number.isNaN(Number.parseFloat(o.field4))||(o.score=+o.field4,delete o.field4),(o.field5==="+"||o.field5==="-")&&(o.strand=o.field5,delete o.field5)}return r&&(o.uniqueId=r),o.strand=cP[o.strand]||0,o.chrom=decodeURIComponent(o.chrom),o}}const SC=Object.freeze(Object.defineProperty({__proto__:null,default:uP},Symbol.toStringTag,{value:"Module"}));var Fe=function(t,e,n,i,r){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?r.call(t,n):r?r.value=n:e.set(t,n),n},P=function(t,e,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(t):i?i.value:e.get(t)},ue,ft,fe,Ce,ki,mo,Ri,kc,Rt,DC,Lh,Oh,Uh,QC,Rc;class wo extends Map{constructor(e={}){if(super(),ue.add(this),ft.set(this,0),fe.set(this,new Map),Ce.set(this,new Map),ki.set(this,void 0),mo.set(this,void 0),Ri.set(this,void 0),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof e.maxAge=="number"&&e.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");Fe(this,ki,e.maxSize,"f"),Fe(this,mo,e.maxAge||Number.POSITIVE_INFINITY,"f"),Fe(this,Ri,e.onEviction,"f")}get __oldCache(){return P(this,Ce,"f")}get(e){if(P(this,fe,"f").has(e)){const n=P(this,fe,"f").get(e);return P(this,ue,"m",Lh).call(this,e,n)}if(P(this,Ce,"f").has(e)){const n=P(this,Ce,"f").get(e);if(!P(this,ue,"m",Rt).call(this,e,n))return P(this,ue,"m",QC).call(this,e,n),n.value}}set(e,n,{maxAge:i=P(this,mo,"f")}={}){const r=typeof i=="number"&&i!==Number.POSITIVE_INFINITY?Date.now()+i:void 0;return P(this,fe,"f").has(e)?P(this,fe,"f").set(e,{value:n,expiry:r}):P(this,ue,"m",Uh).call(this,e,{value:n,expiry:r}),this}has(e){return P(this,fe,"f").has(e)?!P(this,ue,"m",Rt).call(this,e,P(this,fe,"f").get(e)):P(this,Ce,"f").has(e)?!P(this,ue,"m",Rt).call(this,e,P(this,Ce,"f").get(e)):!1}peek(e){if(P(this,fe,"f").has(e))return P(this,ue,"m",Oh).call(this,e,P(this,fe,"f"));if(P(this,Ce,"f").has(e))return P(this,ue,"m",Oh).call(this,e,P(this,Ce,"f"))}expiresIn(e){const n=P(this,fe,"f").get(e)??P(this,Ce,"f").get(e);if(n)return n.expiry?n.expiry-Date.now():Number.POSITIVE_INFINITY}delete(e){var n;const i=P(this,fe,"f").delete(e);return i&&Fe(this,ft,(n=P(this,ft,"f"),n--,n),"f"),P(this,Ce,"f").delete(e)||i}clear(){P(this,fe,"f").clear(),P(this,Ce,"f").clear(),Fe(this,ft,0,"f")}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const n=[...P(this,ue,"m",Rc).call(this)],i=n.length-e;i<0?(Fe(this,fe,new Map(n),"f"),Fe(this,Ce,new Map,"f"),Fe(this,ft,n.length,"f")):(i>0&&P(this,ue,"m",kc).call(this,n.slice(0,i)),Fe(this,Ce,new Map(n.slice(i)),"f"),Fe(this,fe,new Map,"f"),Fe(this,ft,0,"f")),Fe(this,ki,e,"f")}evict(e=1){const n=e;if(!n||n<=0)return;const i=[...P(this,ue,"m",Rc).call(this)],r=Math.trunc(Math.min(n,Math.max(i.length-1,0)));r<=0||(P(this,ue,"m",kc).call(this,i.slice(0,r)),Fe(this,Ce,new Map(i.slice(r)),"f"),Fe(this,fe,new Map,"f"),Fe(this,ft,0,"f"))}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[(ft=new WeakMap,fe=new WeakMap,Ce=new WeakMap,ki=new WeakMap,mo=new WeakMap,Ri=new WeakMap,ue=new WeakSet,kc=function(n){if(typeof P(this,Ri,"f")=="function")for(const[i,r]of n)P(this,Ri,"f").call(this,i,r.value)},Rt=function(n,i){return typeof i.expiry=="number"&&i.expiry<=Date.now()?(typeof P(this,Ri,"f")=="function"&&P(this,Ri,"f").call(this,n,i.value),this.delete(n)):!1},DC=function(n,i){if(!P(this,ue,"m",Rt).call(this,n,i))return i.value},Lh=function(n,i){return i.expiry?P(this,ue,"m",DC).call(this,n,i):i.value},Oh=function(n,i){const r=i.get(n);return P(this,ue,"m",Lh).call(this,n,r)},Uh=function(n,i){var r;P(this,fe,"f").set(n,i),Fe(this,ft,(r=P(this,ft,"f"),r++,r),"f"),P(this,ft,"f")>=P(this,ki,"f")&&(Fe(this,ft,0,"f"),P(this,ue,"m",kc).call(this,P(this,Ce,"f")),Fe(this,Ce,P(this,fe,"f"),"f"),Fe(this,fe,new Map,"f"))},QC=function(n,i){P(this,Ce,"f").delete(n),P(this,ue,"m",Uh).call(this,n,i)},Rc=function*(){for(const n of P(this,Ce,"f")){const[i,r]=n;P(this,fe,"f").has(i)||P(this,ue,"m",Rt).call(this,i,r)||(yield n)}for(const n of P(this,fe,"f")){const[i,r]=n;P(this,ue,"m",Rt).call(this,i,r)||(yield n)}},Symbol.iterator)](){for(const e of P(this,fe,"f")){const[n,i]=e;P(this,ue,"m",Rt).call(this,n,i)||(yield[n,i.value])}for(const e of P(this,Ce,"f")){const[n,i]=e;P(this,fe,"f").has(n)||P(this,ue,"m",Rt).call(this,n,i)||(yield[n,i.value])}}*entriesDescending(){let e=[...P(this,fe,"f")];for(let n=e.length-1;n>=0;--n){const i=e[n],[r,s]=i;P(this,ue,"m",Rt).call(this,r,s)||(yield[r,s.value])}e=[...P(this,Ce,"f")];for(let n=e.length-1;n>=0;--n){const i=e[n],[r,s]=i;P(this,fe,"f").has(r)||P(this,ue,"m",Rt).call(this,r,s)||(yield[r,s.value])}}*entriesAscending(){for(const[e,n]of P(this,ue,"m",Rc).call(this))yield[e,n.value]}get size(){if(!P(this,ft,"f"))return P(this,Ce,"f").size;let e=0;for(const n of P(this,Ce,"f").keys())P(this,fe,"f").has(n)||e++;return Math.min(P(this,ft,"f")+e,P(this,ki,"f"))}get maxSize(){return P(this,ki,"f")}get maxAge(){return P(this,mo,"f")}entries(){return this.entriesAscending()}forEach(e,n=this){for(const[i,r]of this.entriesAscending())e.call(n,r,i,this)}get[Symbol.toStringTag](){return"QuickLRU"}toString(){return`QuickLRU(${this.size}/${this.maxSize})`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}let kC=class{constructor(e,n,i,r){this.minv=e,this.maxv=n,this.bin=i,this._fetchedSize=r}toUniqueString(){return`${this.minv.toString()}..${this.maxv.toString()} (bin ${this.bin}, fetchedSize ${this.fetchedSize()})`}toString(){return this.toUniqueString()}compareTo(e){return this.minv.compareTo(e.minv)||this.maxv.compareTo(e.maxv)||this.bin-e.bin}fetchedSize(){return this._fetchedSize!==void 0?this._fetchedSize:this.maxv.blockPosition+65536-this.minv.blockPosition}};const RC=65536,fP=RC*RC;function hP(t,e=0){const n=t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24;return((t[e+4]|t[e+5]<<8|t[e+6]<<16|t[e+7]<<24)>>>0)*fP+(n>>>0)}function AP(t={}){return"aborted"in t?{signal:t}:t}function _h(t,e){const n=t.length;if(n===0)return t;let i;if(e){const l=e.blockPosition,c=e.dataPosition;i=[];for(let u=0;u<n;u++){const f=t[u],h=f.maxv;(h.blockPosition-l||h.dataPosition-c)>0&&i.push(f)}if(i.length===0)return i}else i=t;i.sort((l,c)=>{const u=l.minv.blockPosition-c.minv.blockPosition;return u!==0?u:l.minv.dataPosition-c.minv.dataPosition});const r=[];let s=i[0];r.push(s);let o=s.minv.blockPosition,a=s.maxv.blockPosition;for(let l=1;l<i.length;l++){const c=i[l],u=c.minv.blockPosition,f=c.maxv.blockPosition;if(u-a<65e3&&f-o<5e6){const h=c.maxv,A=s.maxv;(f-a||h.dataPosition-A.dataPosition)>0&&(s.maxv=h,a=f)}else r.push(c),s=c,o=u,a=f}return r}function FC(t,e){return{lineCount:hP(t,e)}}function yo(t,e){return t?t.compareTo(e)>0?e:t:e}function dP(t,e=n=>n){let n=0,i=0;const r=[],s={};for(let o=0;o<t.length;o+=1)if(!t[o]){if(i<o){let a="";for(let l=i;l<o;l++)a+=String.fromCharCode(t[l]);a=e(a),r[n]=a,s[a]=n}i=o+1,n+=1}return{refNameToId:s,refIdToName:r}}function gP(t){let e=0;for(const r of t)e+=r.length;const n=new Uint8Array(e);let i=0;for(const r of t)n.set(r,i),i+=r.length;return n}function pP(t,e,n){return!!((t&e)!==e||t&n)}function mP(t,e){return e==="*"?t===void 0:`${t}`!=`${e}`}function wP(t){if(!t)return"";const{flagInclude:e=0,flagExclude:n=0,tagFilter:i}=t,r=i?`:${i.tag}=${i.value??"*"}`:"";return`:f${e}x${n}${r}`}let NC=class{constructor({filehandle:e,renameRefSeq:n=i=>i}){this.filehandle=e,this.renameRefSeq=n}async estimatedBytesForRegions(e,n){const i=await Promise.all(e.map(o=>this.blocksForRange(o.refId,o.start,o.end,n))),r=_h(i.flat());let s=0;for(const o of r)s+=o.fetchedSize();return s}},MC=class{constructor(e,n){this.blockPosition=e,this.dataPosition=n}toString(){return`${this.blockPosition}:${this.dataPosition}`}compareTo(e){return this.blockPosition-e.blockPosition||this.dataPosition-e.dataPosition}};function Jn(t,e=0,n=!1){if(n)throw new Error("big-endian virtual file offsets not implemented");return new MC(t[e+7]*1099511627776+t[e+6]*4294967296+t[e+5]*16777216+t[e+4]*65536+t[e+3]*256+t[e+2],t[e+1]<<8|t[e])}const yP=21578050;function CP(t,e){return t-t%e}function bP(t,e){return t-t%e+e}function EP(t,e){return e-=1,[[0,0],[1+(t>>26),1+(e>>26)],[9+(t>>23),9+(e>>23)],[73+(t>>20),73+(e>>20)],[585+(t>>17),585+(e>>17)],[4681+(t>>14),4681+(e>>14)]]}class Fr extends NC{async lineCount(e,n){return(await this.parse(n)).indices(e)?.stats?.lineCount||0}async _parse(e){const n=await this.filehandle.readFile(),i=new DataView(n.buffer);if(i.getUint32(0,!0)!==yP)throw new Error("Not a BAI file");const r=i.getInt32(4,!0),o=((1<<(5+1)*3)-1)/7;let a=8,l;const c=[];for(let h=0;h<r;h++){c.push(a);const A=i.getInt32(a,!0);a+=4;for(let m=0;m<A;m+=1){const p=i.getUint32(a,!0);if(a+=4,p===o+1)a+=4,a+=32;else{if(p>o+1)throw new Error("bai index contains too many bins, please use CSI");{const w=i.getInt32(a,!0);a+=4;for(let C=0;C<w;C++)a+=8,a+=8}}}const d=i.getInt32(a,!0);a+=4;const g=new Array(d);for(let m=0;m<d;m++){const p=Jn(n,a);a+=8,l=yo(l,p),g[m]=p}}const u=new wo({maxSize:5});function f(h){let A=c[h];if(A===void 0)return;const d=i.getInt32(A,!0);let g;A+=4;const m={};for(let C=0;C<d;C+=1){const y=i.getUint32(A,!0);if(A+=4,y===o+1)A+=4,g=FC(n,A+16),A+=32;else{if(y>o+1)throw new Error("bai index contains too many bins, please use CSI");{const I=i.getInt32(A,!0);A+=4;const x=new Array(I);for(let E=0;E<I;E++){const S=Jn(n,A);A+=8;const D=Jn(n,A);A+=8,l=yo(l,S),x[E]=new kC(S,D,y)}m[y]=x}}}const p=i.getInt32(A,!0);A+=4;const w=new Array(p);for(let C=0;C<p;C++){const y=Jn(n,A);A+=8,l=yo(l,y),w[C]=y}return{binIndex:m,linearIndex:w,stats:g}}return{bai:!0,firstDataLine:l,maxBlockSize:65536,indices:h=>{if(!u.has(h)){const A=f(h);return A&&u.set(h,A),A}return u.get(h)},refCount:r}}async indexCov(e,n,i,r){const o=n!==void 0,l=(await this.parse(r)).indices(e);if(!l)return[];const{linearIndex:c,stats:u}=l;if(c.length===0)return[];const f=i===void 0?(c.length-1)*16384:bP(i,16384),h=n===void 0?0:CP(n,16384),A=o?new Array((f-h)/16384):new Array(c.length-1),d=c[c.length-1].blockPosition;if(f>(c.length-1)*16384)throw new Error("query outside of range of linear index");let g=c[h/16384].blockPosition;for(let m=h/16384,p=0;m<f/16384;m++,p++)A[p]={score:c[m+1].blockPosition-g,start:m*16384,end:m*16384+16384},g=c[m+1].blockPosition;return A.map(m=>({...m,score:m.score*(u?.lineCount||0)/d}))}async blocksForRange(e,n,i,r={}){n<0&&(n=0);const s=await this.parse(r);if(!s)return[];const o=s.indices(e);if(!o)return[];const a=EP(n,i),l=[],{binIndex:c}=o;for(const[d,g]of a)for(let m=d;m<=g;m++){const p=c[m];if(p)for(let w=0,C=p.length;w<C;w++)l.push(p[w])}const{linearIndex:u}=o,f=u.length,h=Math.min(n>>14,f-1),A=u[h];return _h(l,A)}async parse(e={}){return this.setupP||(this.setupP=this._parse(e).catch(n=>{throw this.setupP=void 0,n})),this.setupP}async hasRefSeq(e,n={}){return!!(await this.parse(n)).indices(e)?.binIndex}}var TC=0,PC=2,Fc=4,Fi=0,Nc=1,IP=2,xP=-5;function vP(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function BP(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(var i in n)vP(n,i)&&(t[i]=n[i])}}return t}function LC(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)}var Co={arraySet:function(t,e,n,i,r){if(e.subarray&&t.subarray){t.set(e.subarray(n,n+i),r);return}for(var s=0;s<i;s++)t[r+s]=e[n+s]},flattenChunks:function(t){var e,n,i,r,s,o;for(i=0,e=0,n=t.length;e<n;e++)i+=t[e].length;for(o=new Uint8Array(i),r=0,e=0,n=t.length;e<n;e++)s=t[e],o.set(s,r),r+=s.length;return o},Buf8:function(t){return new Uint8Array(t)},Buf16:function(t){return new Uint16Array(t)},Buf32:function(t){return new Int32Array(t)}},bo={arraySet:function(t,e,n,i,r){for(var s=0;s<i;s++)t[r+s]=e[n+s]},flattenChunks:function(t){return[].concat.apply([],t)},Buf8:function(t){return new Array(t)},Buf16:function(t){return new Array(t)},Buf32:function(t){return new Array(t)}};let Nr=()=>{const t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";return Nr=()=>t,t},qn=(t,e,n,i,r)=>(qn=Nr()?Co.arraySet:bo.arraySet,qn(t,e,n,i,r)),zh=t=>(zh=Nr()?Co.flattenChunks:bo.flattenChunks,zh(t)),Mr=t=>(Mr=Nr()?Co.Buf8:bo.Buf8,Mr(t)),Tr=t=>(Tr=Nr()?Co.Buf16:bo.Buf16,Tr(t)),Pr=t=>(Pr=Nr()?Co.Buf32:bo.Buf32,Pr(t)),OC=function(){let t=!0;try{String.fromCharCode.apply(null,[0])}catch{t=!1}return OC=()=>t,t},UC=function(){let t=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{t=!1}return UC=()=>t,t},Gh=function(t){for(var e=Mr(256),n=0;n<256;n++)e[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;return e[254]=e[254]=1,Gh=i=>e[i],e[t]};function _C(t){var e,n,i,r,s,o=t.length,a=0;for(r=0;r<o;r++)n=t.charCodeAt(r),(n&64512)===55296&&r+1<o&&(i=t.charCodeAt(r+1),(i&64512)===56320&&(n=65536+(n-55296<<10)+(i-56320),r++)),a+=n<128?1:n<2048?2:n<65536?3:4;for(e=new Uint8Array(a),s=0,r=0;s<a;r++)n=t.charCodeAt(r),(n&64512)===55296&&r+1<o&&(i=t.charCodeAt(r+1),(i&64512)===56320&&(n=65536+(n-55296<<10)+(i-56320),r++)),n<128?e[s++]=n:n<2048?(e[s++]=192|n>>>6,e[s++]=128|n&63):n<65536?(e[s++]=224|n>>>12,e[s++]=128|n>>>6&63,e[s++]=128|n&63):(e[s++]=240|n>>>18,e[s++]=128|n>>>12&63,e[s++]=128|n>>>6&63,e[s++]=128|n&63);return e}function SP(t,e){if(e<65534&&(t.subarray&&UC()||!t.subarray&&OC()))return String.fromCharCode.apply(null,LC(t,e));for(var n="",i=0;i<e;i++)n+=String.fromCharCode(t[i]);return n}function DP(t){for(var e=new Uint8Array(t.length),n=0,i=e.length;n<i;n++)e[n]=t.charCodeAt(n);return e}function QP(t,e){var n,i,r,s,o=e||t.length,a=new Array(o*2);for(i=0,n=0;n<o;){if(r=t[n++],r<128){a[i++]=r;continue}if(s=Gh(r),s>4){a[i++]=65533,n+=s-1;continue}for(r&=s===2?31:s===3?15:7;s>1&&n<o;)r=r<<6|t[n++]&63,s--;if(s>1){a[i++]=65533;continue}r<65536?a[i++]=r:(r-=65536,a[i++]=55296|r>>10&1023,a[i++]=56320|r&1023)}return SP(a,i)}function kP(t,e){var n;for(e=e||t.length,e>t.length&&(e=t.length),n=e-1;n>=0&&(t[n]&192)===128;)n--;return n<0||n===0?e:n+Gh(t[n])>e?n:e}function RP(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}function Hh(t,e,n,i){for(var r=t&65535|0,s=t>>>16&65535|0,o=0;n!==0;){o=n>2e3?2e3:n,n-=o;do r=r+e[i++]|0,s=s+r|0;while(--o);r%=65521,s%=65521}return r|s<<16|0}function FP(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=t&1?3988292384^t>>>1:t>>>1;e[n]=t}return e}let zC=function(){const t=FP();return zC=()=>t,t};function qt(t,e,n,i){var r=zC(),s=i+n;t^=-1;for(var o=i;o<s;o++)t=t>>>8^r[(t^e[o])&255];return t^-1}var Mc=30,NP=12;function MP(t,e){var n,i,r,s,o,a,l,c,u,f,h,A,d,g,m,p,w,C,y,I,x,E,S,D,B;n=t.state,i=t.next_in,D=t.input,r=i+(t.avail_in-5),s=t.next_out,B=t.output,o=s-(e-t.avail_out),a=s+(t.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,f=n.wnext,h=n.window,A=n.hold,d=n.bits,g=n.lencode,m=n.distcode,p=(1<<n.lenbits)-1,w=(1<<n.distbits)-1;e:do{d<15&&(A+=D[i++]<<d,d+=8,A+=D[i++]<<d,d+=8),C=g[A&p];t:for(;;){if(y=C>>>24,A>>>=y,d-=y,y=C>>>16&255,y===0)B[s++]=C&65535;else if(y&16){I=C&65535,y&=15,y&&(d<y&&(A+=D[i++]<<d,d+=8),I+=A&(1<<y)-1,A>>>=y,d-=y),d<15&&(A+=D[i++]<<d,d+=8,A+=D[i++]<<d,d+=8),C=m[A&w];n:for(;;){if(y=C>>>24,A>>>=y,d-=y,y=C>>>16&255,y&16){if(x=C&65535,y&=15,d<y&&(A+=D[i++]<<d,d+=8,d<y&&(A+=D[i++]<<d,d+=8)),x+=A&(1<<y)-1,x>l){t.msg="invalid distance too far back",n.mode=Mc;break e}if(A>>>=y,d-=y,y=s-o,x>y){if(y=x-y,y>u&&n.sane){t.msg="invalid distance too far back",n.mode=Mc;break e}if(E=0,S=h,f===0){if(E+=c-y,y<I){I-=y;do B[s++]=h[E++];while(--y);E=s-x,S=B}}else if(f<y){if(E+=c+f-y,y-=f,y<I){I-=y;do B[s++]=h[E++];while(--y);if(E=0,f<I){y=f,I-=y;do B[s++]=h[E++];while(--y);E=s-x,S=B}}}else if(E+=f-y,y<I){I-=y;do B[s++]=h[E++];while(--y);E=s-x,S=B}for(;I>2;)B[s++]=S[E++],B[s++]=S[E++],B[s++]=S[E++],I-=3;I&&(B[s++]=S[E++],I>1&&(B[s++]=S[E++]))}else{E=s-x;do B[s++]=B[E++],B[s++]=B[E++],B[s++]=B[E++],I-=3;while(I>2);I&&(B[s++]=B[E++],I>1&&(B[s++]=B[E++]))}}else if((y&64)===0){C=m[(C&65535)+(A&(1<<y)-1)];continue n}else{t.msg="invalid distance code",n.mode=Mc;break e}break}}else if((y&64)===0){C=g[(C&65535)+(A&(1<<y)-1)];continue t}else if(y&32){n.mode=NP;break e}else{t.msg="invalid literal/length code",n.mode=Mc;break e}break}}while(i<r&&s<a);I=d>>3,i-=I,d-=I<<3,A&=(1<<d)-1,t.next_in=i,t.next_out=s,t.avail_in=i<r?5+(r-i):5-(i-r),t.avail_out=s<a?257+(a-s):257-(s-a),n.hold=A,n.bits=d}var Lr=15,GC=852,HC=592,YC=0,Yh=1,VC=2,TP=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],PP=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],LP=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],OP=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function Eo(t,e,n,i,r,s,o,a){var l=a.bits,c=0,u=0,f=0,h=0,A=0,d=0,g=0,m=0,p=0,w=0,C,y,I,x,E,S=null,D=0,B,k=Tr(Lr+1),F=Tr(Lr+1),M=null,O=0,_,H,G;for(c=0;c<=Lr;c++)k[c]=0;for(u=0;u<i;u++)k[e[n+u]]++;for(A=l,h=Lr;h>=1&&k[h]===0;h--);if(A>h&&(A=h),h===0)return r[s++]=1<<24|64<<16|0,r[s++]=1<<24|64<<16|0,a.bits=1,0;for(f=1;f<h&&k[f]===0;f++);for(A<f&&(A=f),m=1,c=1;c<=Lr;c++)if(m<<=1,m-=k[c],m<0)return-1;if(m>0&&(t===YC||h!==1))return-1;for(F[1]=0,c=1;c<Lr;c++)F[c+1]=F[c]+k[c];for(u=0;u<i;u++)e[n+u]!==0&&(o[F[e[n+u]]++]=u);if(t===YC?(S=M=o,B=19):t===Yh?(S=TP,D-=257,M=PP,O-=257,B=256):(S=LP,M=OP,B=-1),w=0,u=0,c=f,E=s,d=A,g=0,I=-1,p=1<<A,x=p-1,t===Yh&&p>GC||t===VC&&p>HC)return 1;for(;;){_=c-g,o[u]<B?(H=0,G=o[u]):o[u]>B?(H=M[O+o[u]],G=S[D+o[u]]):(H=96,G=0),C=1<<c-g,y=1<<d,f=y;do y-=C,r[E+(w>>g)+y]=_<<24|H<<16|G|0;while(y!==0);for(C=1<<c-1;w&C;)C>>=1;if(C!==0?(w&=C-1,w+=C):w=0,u++,--k[c]===0){if(c===h)break;c=e[n+o[u]]}if(c>A&&(w&x)!==I){for(g===0&&(g=A),E+=f,d=c-g,m=1<<d;d+g<h&&(m-=k[d+g],!(m<=0));)d++,m<<=1;if(p+=1<<d,t===Yh&&p>GC||t===VC&&p>HC)return 1;I=w&x,r[I]=A<<24|d<<16|E-s|0}}return w!==0&&(r[E+w]=c-g<<24|64<<16|0),a.bits=A,0}var UP=0,JC=1,qC=2,KC=4,Ni=0,_P=1,zP=2,bt=-2,jC=-3,WC=-4,GP=-5,XC=8,ZC=1,$C=2,eb=3,tb=4,nb=5,ib=6,rb=7,sb=8,ob=9,ab=10,Tc=11,gn=12,Vh=13,cb=14,Jh=15,lb=16,ub=17,fb=18,hb=19,Pc=20,Lc=21,Ab=22,db=23,gb=24,pb=25,mb=26,qh=27,wb=28,yb=29,me=30,Cb=31,HP=32,YP=852,VP=592;function bb(t){return(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24)}function JP(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=Tr(320),this.work=Tr(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function qP(t){var e;return!t||!t.state?bt:(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=e.wrap&1),e.mode=ZC,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=Pr(YP),e.distcode=e.distdyn=Pr(VP),e.sane=1,e.back=-1,Ni)}function KP(t){var e;return!t||!t.state?bt:(e=t.state,e.wsize=0,e.whave=0,e.wnext=0,qP(t))}function jP(t,e){var n,i;return!t||!t.state||(i=t.state,e<0?(n=0,e=-e):(n=(e>>4)+1,e<48&&(e&=15)),e&&(e<8||e>15))?bt:(i.window!==null&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,KP(t))}function WP(t,e){var n,i;return t?(i=new JP,t.state=i,i.window=null,n=jP(t,e),n!==Ni&&(t.state=null),n):bt}var Eb=!0,Kh,jh;function XP(t){if(Eb){var e;for(Kh=Pr(512),jh=Pr(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(Eo(JC,t.lens,0,288,Kh,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;Eo(qC,t.lens,0,32,jh,0,t.work,{bits:5}),Eb=!1}t.lencode=Kh,t.lenbits=9,t.distcode=jh,t.distbits=5}function Ib(t,e,n,i){var r,s=t.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=Mr(s.wsize)),i>=s.wsize?(qn(s.window,e,n-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(r=s.wsize-s.wnext,r>i&&(r=i),qn(s.window,e,n-i,r,s.wnext),i-=r,i?(qn(s.window,e,n-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=r,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=r))),0}function ZP(t,e){var n,i,r,s,o,a,l,c,u,f,h,A,d,g,m=0,p,w,C,y,I,x,E,S,D=Mr(4),B,k,F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&t.avail_in!==0)return bt;n=t.state,n.mode===gn&&(n.mode=Vh),o=t.next_out,r=t.output,l=t.avail_out,s=t.next_in,i=t.input,a=t.avail_in,c=n.hold,u=n.bits,f=a,h=l,S=Ni;e:for(;;)switch(n.mode){case ZC:if(n.wrap===0){n.mode=Vh;break}for(;u<16;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(n.wrap&2&&c===35615){n.check=0,D[0]=c&255,D[1]=c>>>8&255,n.check=qt(n.check,D,2,0),c=0,u=0,n.mode=$C;break}if(n.flags=0,n.head&&(n.head.done=!1),!(n.wrap&1)||(((c&255)<<8)+(c>>8))%31){t.msg="incorrect header check",n.mode=me;break}if((c&15)!==XC){t.msg="unknown compression method",n.mode=me;break}if(c>>>=4,u-=4,E=(c&15)+8,n.wbits===0)n.wbits=E;else if(E>n.wbits){t.msg="invalid window size",n.mode=me;break}n.dmax=1<<E,t.adler=n.check=1,n.mode=c&512?ab:gn,c=0,u=0;break;case $C:for(;u<16;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(n.flags=c,(n.flags&255)!==XC){t.msg="unknown compression method",n.mode=me;break}if(n.flags&57344){t.msg="unknown header flags set",n.mode=me;break}n.head&&(n.head.text=c>>8&1),n.flags&512&&(D[0]=c&255,D[1]=c>>>8&255,n.check=qt(n.check,D,2,0)),c=0,u=0,n.mode=eb;case eb:for(;u<32;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}n.head&&(n.head.time=c),n.flags&512&&(D[0]=c&255,D[1]=c>>>8&255,D[2]=c>>>16&255,D[3]=c>>>24&255,n.check=qt(n.check,D,4,0)),c=0,u=0,n.mode=tb;case tb:for(;u<16;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}n.head&&(n.head.xflags=c&255,n.head.os=c>>8),n.flags&512&&(D[0]=c&255,D[1]=c>>>8&255,n.check=qt(n.check,D,2,0)),c=0,u=0,n.mode=nb;case nb:if(n.flags&1024){for(;u<16;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}n.length=c,n.head&&(n.head.extra_len=c),n.flags&512&&(D[0]=c&255,D[1]=c>>>8&255,n.check=qt(n.check,D,2,0)),c=0,u=0}else n.head&&(n.head.extra=null);n.mode=ib;case ib:if(n.flags&1024&&(A=n.length,A>a&&(A=a),A&&(n.head&&(E=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),qn(n.head.extra,i,s,A,E)),n.flags&512&&(n.check=qt(n.check,i,A,s)),a-=A,s+=A,n.length-=A),n.length))break e;n.length=0,n.mode=rb;case rb:if(n.flags&2048){if(a===0)break e;A=0;do E=i[s+A++],n.head&&E&&n.length<65536&&(n.head.name+=String.fromCharCode(E));while(E&&A<a);if(n.flags&512&&(n.check=qt(n.check,i,A,s)),a-=A,s+=A,E)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=sb;case sb:if(n.flags&4096){if(a===0)break e;A=0;do E=i[s+A++],n.head&&E&&n.length<65536&&(n.head.comment+=String.fromCharCode(E));while(E&&A<a);if(n.flags&512&&(n.check=qt(n.check,i,A,s)),a-=A,s+=A,E)break e}else n.head&&(n.head.comment=null);n.mode=ob;case ob:if(n.flags&512){for(;u<16;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(c!==(n.check&65535)){t.msg="header crc mismatch",n.mode=me;break}c=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=gn;break;case ab:for(;u<32;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}t.adler=n.check=bb(c),c=0,u=0,n.mode=Tc;case Tc:if(n.havedict===0)return t.next_out=o,t.avail_out=l,t.next_in=s,t.avail_in=a,n.hold=c,n.bits=u,zP;t.adler=n.check=1,n.mode=gn;case gn:case Vh:if(n.last){c>>>=u&7,u-=u&7,n.mode=qh;break}for(;u<3;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}switch(n.last=c&1,c>>>=1,u-=1,c&3){case 0:n.mode=cb;break;case 1:XP(n),n.mode=Pc;break;case 2:n.mode=ub;break;case 3:t.msg="invalid block type",n.mode=me}c>>>=2,u-=2;break;case cb:for(c>>>=u&7,u-=u&7;u<32;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if((c&65535)!==(c>>>16^65535)){t.msg="invalid stored block lengths",n.mode=me;break}n.length=c&65535,c=0,u=0,n.mode=Jh;case Jh:n.mode=lb;case lb:if(A=n.length,A){if(A>a&&(A=a),A>l&&(A=l),A===0)break e;qn(r,i,s,A,o),a-=A,s+=A,l-=A,o+=A,n.length-=A;break}n.mode=gn;break;case ub:for(;u<14;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(n.nlen=(c&31)+257,c>>>=5,u-=5,n.ndist=(c&31)+1,c>>>=5,u-=5,n.ncode=(c&15)+4,c>>>=4,u-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=me;break}n.have=0,n.mode=fb;case fb:for(;n.have<n.ncode;){for(;u<3;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}n.lens[F[n.have++]]=c&7,c>>>=3,u-=3}for(;n.have<19;)n.lens[F[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,B={bits:n.lenbits},S=Eo(UP,n.lens,0,19,n.lencode,0,n.work,B),n.lenbits=B.bits,S){t.msg="invalid code lengths set",n.mode=me;break}n.have=0,n.mode=hb;case hb:for(;n.have<n.nlen+n.ndist;){for(;m=n.lencode[c&(1<<n.lenbits)-1],p=m>>>24,w=m>>>16&255,C=m&65535,!(p<=u);){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(C<16)c>>>=p,u-=p,n.lens[n.have++]=C;else{if(C===16){for(k=p+2;u<k;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(c>>>=p,u-=p,n.have===0){t.msg="invalid bit length repeat",n.mode=me;break}E=n.lens[n.have-1],A=3+(c&3),c>>>=2,u-=2}else if(C===17){for(k=p+3;u<k;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}c>>>=p,u-=p,E=0,A=3+(c&7),c>>>=3,u-=3}else{for(k=p+7;u<k;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}c>>>=p,u-=p,E=0,A=11+(c&127),c>>>=7,u-=7}if(n.have+A>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=me;break}for(;A--;)n.lens[n.have++]=E}}if(n.mode===me)break;if(n.lens[256]===0){t.msg="invalid code -- missing end-of-block",n.mode=me;break}if(n.lenbits=9,B={bits:n.lenbits},S=Eo(JC,n.lens,0,n.nlen,n.lencode,0,n.work,B),n.lenbits=B.bits,S){t.msg="invalid literal/lengths set",n.mode=me;break}if(n.distbits=6,n.distcode=n.distdyn,B={bits:n.distbits},S=Eo(qC,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,B),n.distbits=B.bits,S){t.msg="invalid distances set",n.mode=me;break}n.mode=Pc;case Pc:n.mode=Lc;case Lc:if(a>=6&&l>=258){t.next_out=o,t.avail_out=l,t.next_in=s,t.avail_in=a,n.hold=c,n.bits=u,MP(t,h),o=t.next_out,r=t.output,l=t.avail_out,s=t.next_in,i=t.input,a=t.avail_in,c=n.hold,u=n.bits,n.mode===gn&&(n.back=-1);break}for(n.back=0;m=n.lencode[c&(1<<n.lenbits)-1],p=m>>>24,w=m>>>16&255,C=m&65535,!(p<=u);){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(w&&(w&240)===0){for(y=p,I=w,x=C;m=n.lencode[x+((c&(1<<y+I)-1)>>y)],p=m>>>24,w=m>>>16&255,C=m&65535,!(y+p<=u);){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}c>>>=y,u-=y,n.back+=y}if(c>>>=p,u-=p,n.back+=p,n.length=C,w===0){n.mode=mb;break}if(w&32){n.back=-1,n.mode=gn;break}if(w&64){t.msg="invalid literal/length code",n.mode=me;break}n.extra=w&15,n.mode=Ab;case Ab:if(n.extra){for(k=n.extra;u<k;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=db;case db:for(;m=n.distcode[c&(1<<n.distbits)-1],p=m>>>24,w=m>>>16&255,C=m&65535,!(p<=u);){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if((w&240)===0){for(y=p,I=w,x=C;m=n.distcode[x+((c&(1<<y+I)-1)>>y)],p=m>>>24,w=m>>>16&255,C=m&65535,!(y+p<=u);){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}c>>>=y,u-=y,n.back+=y}if(c>>>=p,u-=p,n.back+=p,w&64){t.msg="invalid distance code",n.mode=me;break}n.offset=C,n.extra=w&15,n.mode=gb;case gb:if(n.extra){for(k=n.extra;u<k;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=me;break}n.mode=pb;case pb:if(l===0)break e;if(A=h-l,n.offset>A){if(A=n.offset-A,A>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=me;break}A>n.wnext?(A-=n.wnext,d=n.wsize-A):d=n.wnext-A,A>n.length&&(A=n.length),g=n.window}else g=r,d=o-n.offset,A=n.length;A>l&&(A=l),l-=A,n.length-=A;do r[o++]=g[d++];while(--A);n.length===0&&(n.mode=Lc);break;case mb:if(l===0)break e;r[o++]=n.length,l--,n.mode=Lc;break;case qh:if(n.wrap){for(;u<32;){if(a===0)break e;a--,c|=i[s++]<<u,u+=8}if(h-=l,t.total_out+=h,n.total+=h,h&&(t.adler=n.check=n.flags?qt(n.check,r,h,o-h):Hh(n.check,r,h,o-h)),h=l,(n.flags?c:bb(c))!==n.check){t.msg="incorrect data check",n.mode=me;break}c=0,u=0}n.mode=wb;case wb:if(n.wrap&&n.flags){for(;u<32;){if(a===0)break e;a--,c+=i[s++]<<u,u+=8}if(c!==(n.total&4294967295)){t.msg="incorrect length check",n.mode=me;break}c=0,u=0}n.mode=yb;case yb:S=_P;break e;case me:S=jC;break e;case Cb:return WC;case HP:default:return bt}return t.next_out=o,t.avail_out=l,t.next_in=s,t.avail_in=a,n.hold=c,n.bits=u,(n.wsize||h!==t.avail_out&&n.mode<me&&(n.mode<qh||e!==KC))&&Ib(t,t.output,t.next_out,h-t.avail_out),f-=t.avail_in,h-=t.avail_out,t.total_in+=f,t.total_out+=h,n.total+=h,n.wrap&&h&&(t.adler=n.check=n.flags?qt(n.check,r,h,t.next_out-h):Hh(n.check,r,h,t.next_out-h)),t.data_type=n.bits+(n.last?64:0)+(n.mode===gn?128:0)+(n.mode===Pc||n.mode===Jh?256:0),(f===0&&h===0||e===KC)&&S===Ni&&(S=GP),S}function $P(t){if(!t||!t.state)return bt;var e=t.state;return e.window&&(e.window=null),t.state=null,Ni}function e9(t,e){var n;return!t||!t.state||(n=t.state,(n.wrap&2)===0)?bt:(n.head=e,e.done=!1,Ni)}function xb(t,e){var n=e.length,i,r,s;return!t||!t.state||(i=t.state,i.wrap!==0&&i.mode!==Tc)?bt:i.mode===Tc&&(r=1,r=Hh(r,e,n,0),r!==i.check)?jC:(s=Ib(t,e,n,n),s?(i.mode=Cb,WC):(i.havedict=1,Ni))}const Wh={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function t9(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Xh=Object.prototype.toString;class Oc{constructor(e){if(!(this instanceof Oc))return new Oc(e);this.options=BP({chunkSize:16384,windowBits:0,to:""},e||{});var n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(e&&e.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15)===0&&(n.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new t9,this.strm.avail_out=0;var i=WP(this.strm,n.windowBits);if(i!==Fi)throw new Error(Wh[i]);if(this.header=new RP,e9(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=_C(n.dictionary):Xh.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(i=xb(this.strm,n.dictionary),i!==Fi)))throw new Error(Wh[i])}push(e,n){var i=this.strm,r=this.options.chunkSize,s=this.options.dictionary,o,a,l,c,u,f,h=!1;if(this.ended)return!1;a=n===~~n?n:n===!0?Fc:TC,typeof e=="string"?i.input=DP(e):Xh.call(e)==="[object ArrayBuffer]"?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;do{if(i.avail_out===0&&(i.output=Mr(r),i.next_out=0,i.avail_out=r),o=ZP(i,TC),o===IP&&s&&(typeof s=="string"?f=_C(s):Xh.call(s)==="[object ArrayBuffer]"?f=new Uint8Array(s):f=s,o=xb(this.strm,f)),o===xP&&h===!0&&(o=Fi,h=!1),o!==Nc&&o!==Fi)return this.onEnd(o),this.ended=!0,!1;i.next_out&&(i.avail_out===0||o===Nc||i.avail_in===0&&(a===Fc||a===PC))&&(this.options.to==="string"?(l=kP(i.output,i.next_out),c=i.next_out-l,u=QP(i.output,l),i.next_out=c,i.avail_out=r-c,c&&qn(i.output,i.output,l,c,0),this.onData(u)):this.onData(LC(i.output,i.next_out))),i.avail_in===0&&i.avail_out===0&&(h=!0)}while((i.avail_in>0||i.avail_out===0)&&o!==Nc);return o===Nc&&(a=Fc),a===Fc?(o=$P(this.strm),this.onEnd(o),this.ended=!0,o===Fi):(a===PC&&(this.onEnd(Fi),i.avail_out=0),!0)}onData(e){this.chunks.push(e)}onEnd(e){e===Fi&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=zh(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg}}function n9(t,e){var n=new Oc(e);if(n.push(t,!0),n.err)throw n.msg||Wh[n.err];return n.result}var i9=n9,Mi={};Mi.d=(t,e)=>{for(var n in e)Mi.o(e,n)&&!Mi.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},Mi.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Mi.r=t=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var Zh={};Mi.r(Zh),Mi.d(Zh,{ChunkSliceResult:()=>Ur,DecompressResult:()=>_r,__wbg_Error_52673b7de5a0ca89:()=>h9,__wbg___wbindgen_throw_dd24417ed36fc46e:()=>A9,__wbg_set_wasm:()=>vb,decompress_all:()=>kb,decompress_block:()=>f9,decompress_chunk_slice:()=>Rb});const r9="data:application/wasm;base64,AGFzbQEAAAABfRFgAABgAAF/YAF/AGABfwF/YAJ/fwBgAn9/AX9gA39/fwBgA39/fwF/YAR/f39/AGAEf39/fwF/YAV/f39/fwBgBX9/f39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0AIAsgBmshDUEAIQFBACELAkACQAJAIAdBHXZBA3EOBAIAAQACCyANIQsMAQsgDUH+/wNxQQF2IQsLIAdB////AHEhBiAAKAIEIQkgACgCACEKA0AgAUH//wNxIAtB//8DcU8NAkEBIQwgAUEBaiEBIAogBiAJKAIQEQUARQ0ADAULCyAAIAApAggiDqdBgICA/3lxQbCAgIACcjYCCEEBIQwgACgCACIKIAAoAgQiCSAIIAIgAxA7DQNBACEBIAsgBmtB//8DcSECA0AgAUH//wNxIAJPDQJBASEMIAFBAWohASAKQTAgCSgCEBEFAEUNAAwECwtBASEMIAogCSAIIAIgAxA7DQIgCiAEIAUgCSgCDBEHAA0CQQAhASANIAtrQf//A3EhAANAIAFB//8DcSICIABJIQwgAiAATw0DIAFBAWohASAKIAYgCSgCEBEFAEUNAAwDCwtBASEMIAogBCAFIAkoAgwRBwANASAAIA43AghBAA8LQQEhDCAAKAIAIgEgACgCBCIKIAggAiADEDsNACABIAQgBSAKKAIMEQcAIQwLIAwLjgYBBX8gAEF4aiIBIABBfGooAgAiAkF4cSIAaiEDAkACQCACQQFxDQAgAkECcUUNASABKAIAIgIgAGohAAJAIAEgAmsiAUEAKALAoEBHDQAgAygCBEEDcUEDRw0BQQAgADYCuKBAIAMgAygCBEF+cTYCBCABIABBAXI2AgQgAyAANgIADwsgASACEBALAkACQAJAAkACQAJAIAMoAgQiAkECcQ0AIANBACgCxKBARg0CIANBACgCwKBARg0DIAMgAkF4cSICEBAgASACIABqIgBBAXI2AgQgASAAaiAANgIAIAFBACgCwKBARw0BQQAgADYCuKBADwsgAyACQX5xNgIEIAEgAEEBcjYCBCABIABqIAA2AgALIABBgAJJDQIgASAAEBFBACEBQQBBACgC2KBAQX9qIgA2AtigQCAADQQCQEEAKAKgnkAiAEUNAEEAIQEDQCABQQFqIQEgACgCCCIADQALC0EAIAFB/x8gAUH/H0sbNgLYoEAPC0EAIAE2AsSgQEEAQQAoArygQCAAaiIANgK8oEAgASAAQQFyNgIEAkAgAUEAK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ADECsACyAAIAIgAxAsAAsgASACIAMQLQALQQEBfyMAQSBrIgMkACADQQA2AhAgA0EBNgIEIANCBDcCCCADIAE2AhwgAyAANgIYIAMgA0EYajYCACADIAIQQQALOQACQCACQYCAxABGDQAgACACIAEoAhARBQBFDQBBAQ8LAkAgAw0AQQAPCyAAIAMgBCABKAIMEQcACzYBAX8jAEEgayIBJAAgAUEANgIYIAFBATYCDCABQaSZwAA2AgggAUIENwIQIAFBCGogABBBAAsnAAJAIAAgARBPRQ0AAkAgAEUNABBrIAAgARBaIgFFDQELIAEPCwALLAIBfwF+IwBBEGsiASQAIAApAgAhAiABIAA2AgwgASACNwIEIAFBBGoQZgALLQEBfyMAQRBrIgEkACABIAApAgA3AgggAUEIakH0lsAAIAAoAghBAUEAECEACyoBAX8jAEEQayIDJAAgAyACNgIMIAMgATYCCCADIAA2AgQgA0EEahBnAAsqAQF/IwBBEGsiAiQAIAJBATsBDCACIAE2AgggAiAANgIEIAJBBGoQPgALKQEBfwJAIAAoAgAiAUGAgICAeHJBgICAgHhGDQAgACgCBCABQQEQVwsLHgEBfwJAIAAoAgAiAkUNACABIAIgACgCBBBTDwsACyAAAkAgASgCAEUNACAAQfCXwAA2AgQgACABNgIADwsACxsBAX8QayAAQQRqQQQQWiIBIAA2AgAgAUEEagsjAQF/AkBBjIvAABAwIgANAEHAisAAQTpB/IrAABBAAAsgAAsXAAJAIAFBCUkNACABIAAQDw8LIAAQAgsfAAJAIABBgICAgHhyQYCAgIB4Rg0AIAEgAEEBEFcLCxwBAX8CQCAAKAIAIgFFDQAgACgCBCABQQEQVwsLFgACQCAARQ0AIAAgARBhAAsgAhA8AAsVACAAQXxqIgAgACgCAEEEakEEEFcLGgEBfyABIABBACgC3KBAIgJBAyACGxEEAAALHQAgAEEIakEAKQKYlkA3AgAgAEEAKQKQlkA3AgALHQAgAEEIakEAKQKolkA3AgAgAEEAKQKglkA3AgALFQAgAWlBAUYgAEGAgICAeCABa01xCxIAAkAgAUUNACAAIAEgA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5fYWRkX3RvX3N0YWNrX3BvaW50ZXIAPAlwcm9kdWNlcnMBDHByb2Nlc3NlZC1ieQIGd2FscnVzBjAuMjQuNAx3YXNtLWJpbmRnZW4HMC4yLjEwNg==";let X;function vb(t){X=t}function s9(t){Io===pn.length&&pn.push(pn.length+1);const e=Io;return Io=pn[e],pn[e]=t,e}function o9(t){t<132||(pn[t]=Io,Io=t)}function Bb(t,e){return t=t>>>0,a9().subarray(t/4,t/4+e)}function $h(t,e){return t=t>>>0,eA().subarray(t/1,t/1+e)}let Or=null;function Ue(){return(Or===null||Or.buffer.detached===!0||Or.buffer.detached===void 0&&Or.buffer!==X.memory.buffer)&&(Or=new DataView(X.memory.buffer)),Or}function Sb(t,e){return t=t>>>0,u9(t,e)}let Uc=null;function a9(){return(Uc===null||Uc.byteLength===0)&&(Uc=new Uint32Array(X.memory.buffer)),Uc}let _c=null;function eA(){return(_c===null||_c.byteLength===0)&&(_c=new Uint8Array(X.memory.buffer)),_c}function c9(t){return pn[t]}let pn=new Array(128).fill(void 0);pn.push(void 0,null,!0,!1);let Io=pn.length;function tA(t,e){const n=e(t.length*1,1)>>>0;return eA().set(t,n/1),Gc=t.length,n}function nA(t){const e=c9(t);return o9(t),e}let zc=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});zc.decode();const l9=2146435072;let iA=0;function u9(t,e){return iA+=e,iA>=l9&&(zc=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),zc.decode(),iA=e),zc.decode(eA().subarray(t,t+e))}let Gc=0;const Db=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>X.__wbg_chunksliceresult_free(t>>>0,1)),Qb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>X.__wbg_decompressresult_free(t>>>0,1));class Ur{static __wrap(e){e=e>>>0;const n=Object.create(Ur.prototype);return n.__wbg_ptr=e,Db.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Db.unregister(this),e}free(){const e=this.__destroy_into_raw();X.__wbg_chunksliceresult_free(e,0)}get cpositions(){try{const r=X.__wbindgen_add_to_stack_pointer(-16);X.chunksliceresult_cpositions(r,this.__wbg_ptr);var e=Ue().getInt32(r+0,!0),n=Ue().getInt32(r+4,!0),i=Bb(e,n).slice();return X.__wbindgen_export(e,n*4,4),i}finally{X.__wbindgen_add_to_stack_pointer(16)}}get dpositions(){try{const r=X.__wbindgen_add_to_stack_pointer(-16);X.chunksliceresult_dpositions(r,this.__wbg_ptr);var e=Ue().getInt32(r+0,!0),n=Ue().getInt32(r+4,!0),i=Bb(e,n).slice();return X.__wbindgen_export(e,n*4,4),i}finally{X.__wbindgen_add_to_stack_pointer(16)}}get buffer(){try{const r=X.__wbindgen_add_to_stack_pointer(-16);X.chunksliceresult_buffer(r,this.__wbg_ptr);var e=Ue().getInt32(r+0,!0),n=Ue().getInt32(r+4,!0),i=$h(e,n).slice();return X.__wbindgen_export(e,n*1,1),i}finally{X.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(Ur.prototype[Symbol.dispose]=Ur.prototype.free);class _r{static __wrap(e){e=e>>>0;const n=Object.create(_r.prototype);return n.__wbg_ptr=e,Qb.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Qb.unregister(this),e}free(){const e=this.__destroy_into_raw();X.__wbg_decompressresult_free(e,0)}get bytes_read(){return X.decompressresult_bytes_read(this.__wbg_ptr)>>>0}get data(){try{const r=X.__wbindgen_add_to_stack_pointer(-16);X.decompressresult_data(r,this.__wbg_ptr);var e=Ue().getInt32(r+0,!0),n=Ue().getInt32(r+4,!0),i=$h(e,n).slice();return X.__wbindgen_export(e,n*1,1),i}finally{X.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(_r.prototype[Symbol.dispose]=_r.prototype.free);function kb(t){try{const o=X.__wbindgen_add_to_stack_pointer(-16),a=tA(t,X.__wbindgen_export2),l=Gc;X.decompress_all(o,a,l);var e=Ue().getInt32(o+0,!0),n=Ue().getInt32(o+4,!0),i=Ue().getInt32(o+8,!0),r=Ue().getInt32(o+12,!0);if(r)throw nA(i);var s=$h(e,n).slice();return X.__wbindgen_export(e,n*1,1),s}finally{X.__wbindgen_add_to_stack_pointer(16)}}function f9(t){try{const r=X.__wbindgen_add_to_stack_pointer(-16),s=tA(t,X.__wbindgen_export2),o=Gc;X.decompress_block(r,s,o);var e=Ue().getInt32(r+0,!0),n=Ue().getInt32(r+4,!0),i=Ue().getInt32(r+8,!0);if(i)throw nA(n);return _r.__wrap(e)}finally{X.__wbindgen_add_to_stack_pointer(16)}}function Rb(t,e,n,i,r){try{const l=X.__wbindgen_add_to_stack_pointer(-16),c=tA(t,X.__wbindgen_export2),u=Gc;X.decompress_chunk_slice(l,c,u,e,n,i,r);var s=Ue().getInt32(l+0,!0),o=Ue().getInt32(l+4,!0),a=Ue().getInt32(l+8,!0);if(a)throw nA(o);return Ur.__wrap(s)}finally{X.__wbindgen_add_to_stack_pointer(16)}}function h9(t,e){const n=Error(Sb(t,e));return s9(n)}function A9(t,e){throw new Error(Sb(t,e))}let xo=null,rA=null;async function Fb(){return xo||(rA||(rA=(async()=>{const e=await(await fetch(r9)).arrayBuffer(),{instance:n}=await WebAssembly.instantiate(e,{"./bgzf_wasm_bg.js":Zh});return xo=n.exports,vb(xo),xo})()),rA)}async function d9(t){return await Fb(),kb(t)}async function g9(t,e,n,i,r){await Fb();const s=Rb(t,e,n,i,r),o=s.buffer,a=[...s.cpositions],l=[...s.dpositions];return s.free(),{buffer:o,cpositions:a,dpositions:l}}function p9(t){return t.length>=2&&t[0]===31&&t[1]===139}async function m9(t){if(typeof DecompressionStream<"u"){const e=new DecompressionStream("gzip"),n=e.writable.getWriter(),i=n.write(t).then(()=>n.close()),r=[],s=e.readable.getReader();for(;;){const{done:c,value:u}=await s.read();if(c)break;r.push(u)}await i;const o=r.reduce((c,u)=>c+u.length,0),a=new Uint8Array(o);let l=0;for(const c of r)a.set(c,l),l+=c.length;return a}else return i9(t,void 0)}async function zr(t){try{return await d9(t)}catch(e){if(/invalid bgzf header/.exec(`${e}`)){if(p9(t))return m9(t);throw new Error("problem decompressing block: not a valid bgzf or gzip block")}throw/invalid gzip header/.exec(`${e}`)?new Error("problem decompressing block: incorrect gzip header check"):e}}async function Nb(t,e,n){try{const{minv:i,maxv:r}=e,s=await g9(t,i.blockPosition,i.dataPosition,r.blockPosition,r.dataPosition);return{buffer:s.buffer,cpositions:s.cpositions,dpositions:s.dpositions}}catch(i){throw/invalid gzip header/.exec(`${i}`)?new Error("problem decompressing block: incorrect gzip header check"):i}}let sA=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(sA=new Int32Array(sA));const w9=(t,e)=>{let n=-1;for(let i=0;i<t.length;i++)n=sA[(n^t[i])&255]^n>>>8;return n^-1},y9=21582659,C9=38359875;function b9(t,e){return t*2**e}function Mb(t,e){return Math.floor(t/2**e)}let Hc=class extends NC{constructor(){super(...arguments),this.maxBinNumber=0,this.depth=0,this.minShift=0}async lineCount(e,n){return(await this.parse(n)).indices(e)?.stats?.lineCount||0}async indexCov(){return[]}parseAuxData(e,n){const i=new DataView(e.buffer),r=i.getUint32(n,!0),s=r&65536?"zero-based-half-open":"1-based-closed",o={0:"generic",1:"SAM",2:"VCF"}[r&15];if(!o)throw new Error(`invalid Tabix preset format flags ${r}`);const a={ref:i.getInt32(n+4,!0),start:i.getInt32(n+8,!0),end:i.getInt32(n+12,!0)},l=i.getInt32(n+16,!0),c=l?String.fromCharCode(l):"",u=i.getInt32(n+20,!0),f=i.getInt32(n+24,!0);return{columnNumbers:a,coordinateType:s,metaValue:l,metaChar:c,skipLines:u,format:o,formatFlags:r,...dP(e.subarray(n+28,n+28+f),this.renameRefSeq)}}async _parse(e){const n=await this.filehandle.readFile(e),i=await zr(n),r=new DataView(i.buffer);let s;const o=r.getUint32(0,!0);if(o===y9)s=1;else if(o===C9)s=2;else throw new Error(`Not a CSI file ${o}`);this.minShift=r.getInt32(4,!0),this.depth=r.getInt32(8,!0),this.maxBinNumber=((1<<(this.depth+1)*3)-1)/7;const a=this.maxBinNumber,l=r.getInt32(12,!0),c=l>=30?this.parseAuxData(i,16):void 0,u=r.getInt32(16+l,!0);let f=16+l+4,h;const A=[];for(let m=0;m<u;m++){A.push(f);const p=r.getInt32(f,!0);f+=4;for(let w=0;w<p;w++){const C=r.getUint32(f,!0);if(f+=4,C>this.maxBinNumber)f+=44;else{f+=8;const y=r.getInt32(f,!0);f+=4;for(let I=0;I<y;I+=1){const x=Jn(i,f);f+=8,f+=8,h=yo(h,x)}}}}const d=new wo({maxSize:5});function g(m){let p=A[m];if(p===void 0)return;const w=r.getInt32(p,!0);p+=4;const C={};let y;for(let I=0;I<w;I++){const x=r.getUint32(p,!0);if(p+=4,x>a)y=FC(i,p+28),p+=44;else{h=yo(h,Jn(i,p)),p+=8;const E=r.getInt32(p,!0);p+=4;const S=new Array(E);for(let D=0;D<E;D+=1){const B=Jn(i,p);p+=8;const k=Jn(i,p);p+=8,S[D]=new kC(B,k,x)}C[x]=S}}return{binIndex:C,stats:y}}return{csiVersion:s,firstDataLine:h,indices:m=>{if(!d.has(m)){const p=g(m);return p&&d.set(m,p),p}return d.get(m)},refCount:u,csi:!0,maxBlockSize:65536,...c}}async blocksForRange(e,n,i,r={}){n<0&&(n=0);const o=(await this.parse(r)).indices(e);if(!o)return[];const a=this.reg2bins(n,i);if(a.length===0)return[];const l=[],{binIndex:c}=o;for(const[u,f]of a)for(let h=u;h<=f;h++){const A=c[h];if(A)for(let d=0,g=A.length;d<g;d++)l.push(A[d])}return _h(l,new MC(0,0))}reg2bins(e,n){e-=1,e<1&&(e=1),n>2**50&&(n=2**34),n-=1;let i=0,r=0,s=this.minShift+this.depth*3;const o=[];for(;i<=this.depth;s-=3,r+=b9(1,i*3),i+=1){const a=r+Mb(e,s),l=r+Mb(n,s);if(l-a+o.length>this.maxBinNumber)throw new Error(`query ${e}-${n} is too large for current binning scheme (shift ${this.minShift}, depth ${this.depth}), try a smaller query or a coarser index binning scheme`);o.push([a,l])}return o}async parse(e={}){return this.setupP||(this.setupP=this._parse(e).catch(n=>{throw this.setupP=void 0,n})),this.setupP}async hasRefSeq(e,n={}){return!!(await this.parse(n)).indices(e)?.binIndex}};class E9{read(){throw new Error("never called")}stat(){throw new Error("never called")}readFile(){throw new Error("never called")}close(){throw new Error("never called")}}const I9=3,x9=4,Et={BAM_FPAIRED:1,BAM_FPROPER_PAIR:2,BAM_FUNMAP:4,BAM_FMUNMAP:8,BAM_FREVERSE:16,BAM_FMREVERSE:32,BAM_FREAD1:64,BAM_FREAD2:128,BAM_FSECONDARY:256,BAM_FQCFAIL:512,BAM_FDUP:1024,BAM_FSUPPLEMENTARY:2048},vo="=ACMGRSVTWYHKDBN".split(""),v9=[77,73,68,78,83,72,80,61,88,63,63,63,63,63,63,63],Tb=461;class Pb{constructor(e){this.bytes=e.bytes,this.fileOffset=e.fileOffset,this._dataView=new DataView(this.bytes.byteArray.buffer)}get byteArray(){return this.bytes.byteArray}get flags(){return this._cachedFlags===void 0&&(this._cachedFlags=(this._dataView.getInt32(this.bytes.start+16,!0)&4294901760)>>16),this._cachedFlags}get ref_id(){return this._cachedRefId===void 0&&(this._cachedRefId=this._dataView.getInt32(this.bytes.start+4,!0)),this._cachedRefId}get start(){return this._cachedStart===void 0&&(this._cachedStart=this._dataView.getInt32(this.bytes.start+8,!0)),this._cachedStart}get end(){return this._cachedEnd===void 0&&(this._cachedEnd=this.start+this.length_on_ref),this._cachedEnd}get mq(){const e=(this.bin_mq_nl&65280)>>8;return e===255?void 0:e}get score(){return this.mq}get qual(){if(this.isSegmentUnmapped())return null;{const e=this.b0+this.read_name_length+this.num_cigar_bytes+this.num_seq_bytes;return this.byteArray.subarray(e,e+this.seq_length)}}get strand(){return this.isReverseComplemented()?-1:1}get b0(){return this.bytes.start+36}get tagsStart(){return this._cachedTagsStart===void 0&&(this._cachedTagsStart=this.b0+this.read_name_length+this.num_cigar_bytes+this.num_seq_bytes+this.seq_length),this._cachedTagsStart}get name(){const e=this.read_name_length-1,n=this.b0,i=this.byteArray,r=new Array(e);for(let s=0;s<e;s++)r[s]=i[n+s];return String.fromCharCode(...r)}get NUMERIC_MD(){if(this._cachedNUMERIC_MD===void 0){const e=this.getTagRaw("MD");this._cachedNUMERIC_MD=e instanceof Uint8Array?e:null}return this._cachedNUMERIC_MD===null?void 0:this._cachedNUMERIC_MD}get tags(){return this._cachedTags===void 0&&(this._cachedTags=this._computeTags()),this._cachedTags}getTag(e){return this._cachedTags!==void 0?this._cachedTags[e]:this._findTag(e,!1)}getTagRaw(e){return this._findTag(e,!0)}_findTag(e,n){const i=e.charCodeAt(0),r=e.charCodeAt(1);let s=this.tagsStart;const o=this.bytes.end,a=this.byteArray;for(;s<o;){const l=a[s],c=a[s+1],u=a[s+2];s+=3;const f=l===i&&c===r;switch(u){case 65:if(f)return String.fromCharCode(a[s]);s+=1;break;case 105:if(f)return this._dataView.getInt32(s,!0);s+=4;break;case 73:if(f)return this._dataView.getUint32(s,!0);s+=4;break;case 99:if(f)return this._dataView.getInt8(s);s+=1;break;case 67:if(f)return this._dataView.getUint8(s);s+=1;break;case 115:if(f)return this._dataView.getInt16(s,!0);s+=2;break;case 83:if(f)return this._dataView.getUint16(s,!0);s+=2;break;case 102:if(f)return this._dataView.getFloat32(s,!0);s+=4;break;case 90:case 72:{if(f){const h=s;for(;s<o&&a[s]!==0;)s++;if(n)return a.subarray(h,s);const A=[];for(let d=h;d<s;d++)A.push(String.fromCharCode(a[d]));return A.join("")}for(;s<=o&&a[s++]!==0;);break}case 66:{const h=a[s++],A=this._dataView.getInt32(s,!0);s+=4;const d=a.byteOffset+s;if(f)if(h===105){if(d%4===0)return new Int32Array(a.buffer,d,A);const g=new Array(A);for(let m=0;m<A;m++)g[m]=this._dataView.getInt32(s+m*4,!0);return g}else if(h===73){if(d%4===0)return new Uint32Array(a.buffer,d,A);const g=new Array(A);for(let m=0;m<A;m++)g[m]=this._dataView.getUint32(s+m*4,!0);return g}else if(h===115){if(d%2===0)return new Int16Array(a.buffer,d,A);const g=new Array(A);for(let m=0;m<A;m++)g[m]=this._dataView.getInt16(s+m*2,!0);return g}else if(h===83){if(d%2===0)return new Uint16Array(a.buffer,d,A);const g=new Array(A);for(let m=0;m<A;m++)g[m]=this._dataView.getUint16(s+m*2,!0);return g}else{if(h===99)return new Int8Array(a.buffer,d,A);if(h===67)return new Uint8Array(a.buffer,d,A);if(h===102){if(d%4===0)return new Float32Array(a.buffer,d,A);const g=new Array(A);for(let m=0;m<A;m++)g[m]=this._dataView.getFloat32(s+m*4,!0);return g}}h===105||h===73||h===102?s+=A<<2:h===115||h===83?s+=A<<1:(h===99||h===67)&&(s+=A);break}}}}_computeTags(){let e=this.tagsStart;const n=this.bytes.end,i=this.byteArray,r={};for(;e<n;){const s=String.fromCharCode(i[e],i[e+1]),o=i[e+2];switch(e+=3,o){case 65:r[s]=String.fromCharCode(i[e]),e+=1;break;case 105:r[s]=this._dataView.getInt32(e,!0),e+=4;break;case 73:r[s]=this._dataView.getUint32(e,!0),e+=4;break;case 99:r[s]=this._dataView.getInt8(e),e+=1;break;case 67:r[s]=this._dataView.getUint8(e),e+=1;break;case 115:r[s]=this._dataView.getInt16(e,!0),e+=2;break;case 83:r[s]=this._dataView.getUint16(e,!0),e+=2;break;case 102:r[s]=this._dataView.getFloat32(e,!0),e+=4;break;case 90:case 72:{const a=[];for(;e<=n;){const l=i[e++];if(l!==0)a.push(String.fromCharCode(l));else break}r[s]=a.join("");break}case 66:{const a=i[e++],l=this._dataView.getInt32(e,!0);e+=4;const c=i.byteOffset+e;if(a===105){if(c%4===0)r[s]=new Int32Array(i.buffer,c,l);else{const u=new Array(l);for(let f=0;f<l;f++)u[f]=this._dataView.getInt32(e+f*4,!0);r[s]=u}e+=l<<2}else if(a===73){if(c%4===0)r[s]=new Uint32Array(i.buffer,c,l);else{const u=new Array(l);for(let f=0;f<l;f++)u[f]=this._dataView.getUint32(e+f*4,!0);r[s]=u}e+=l<<2}else if(a===115){if(c%2===0)r[s]=new Int16Array(i.buffer,c,l);else{const u=new Array(l);for(let f=0;f<l;f++)u[f]=this._dataView.getInt16(e+f*2,!0);r[s]=u}e+=l<<1}else if(a===83){if(c%2===0)r[s]=new Uint16Array(i.buffer,c,l);else{const u=new Array(l);for(let f=0;f<l;f++)u[f]=this._dataView.getUint16(e+f*2,!0);r[s]=u}e+=l<<1}else if(a===99)r[s]=new Int8Array(i.buffer,c,l),e+=l;else if(a===67)r[s]=new Uint8Array(i.buffer,c,l),e+=l;else if(a===102){if(c%4===0)r[s]=new Float32Array(i.buffer,c,l);else{const u=new Array(l);for(let f=0;f<l;f++)u[f]=this._dataView.getFloat32(e+f*4,!0);r[s]=u}e+=l<<2}break}default:console.error("Unknown BAM tag type",o);break}}return r}isPaired(){return!!(this.flags&Et.BAM_FPAIRED)}isProperlyPaired(){return!!(this.flags&Et.BAM_FPROPER_PAIR)}isSegmentUnmapped(){return!!(this.flags&Et.BAM_FUNMAP)}isMateUnmapped(){return!!(this.flags&Et.BAM_FMUNMAP)}isReverseComplemented(){return!!(this.flags&Et.BAM_FREVERSE)}isMateReverseComplemented(){return!!(this.flags&Et.BAM_FMREVERSE)}isRead1(){return!!(this.flags&Et.BAM_FREAD1)}isRead2(){return!!(this.flags&Et.BAM_FREAD2)}isSecondary(){return!!(this.flags&Et.BAM_FSECONDARY)}isFailedQc(){return!!(this.flags&Et.BAM_FQCFAIL)}isDuplicate(){return!!(this.flags&Et.BAM_FDUP)}isSupplementary(){return!!(this.flags&Et.BAM_FSUPPLEMENTARY)}get cigarAndLength(){return this._cachedCigarAndLength===void 0&&(this._cachedCigarAndLength=this._computeCigarAndLength()),this._cachedCigarAndLength}_computeCigarAndLength(){if(this.isSegmentUnmapped())return{length_on_ref:0,NUMERIC_CIGAR:new Uint32Array(0)};const e=this.num_cigar_ops;let n=this.b0+this.read_name_length;const i=this._dataView.getInt32(n,!0),r=i>>4;if((i&15)===x9&&r===this.seq_length){n+=4;const u=this._dataView.getInt32(n,!0),f=u>>4;return(u&15)!==I9&&console.warn("CG tag with no N tag"),{NUMERIC_CIGAR:this.tags.CG,length_on_ref:f}}const o=this.byteArray.byteOffset+n;if(o%4===0&&e>50){const u=new Uint32Array(this.byteArray.buffer,o,e);let f=0;for(let h=0;h<e;++h){const A=u[h];f+=(A>>4)*(Tb>>(A&15)&1)}return{NUMERIC_CIGAR:u,length_on_ref:f}}const l=new Array(e);let c=0;for(let u=0;u<e;++u){const f=this._dataView.getInt32(n+u*4,!0)|0;l[u]=f,c+=(f>>4)*(Tb>>(f&15)&1)}return{NUMERIC_CIGAR:l,length_on_ref:c}}get length_on_ref(){return this.cigarAndLength.length_on_ref}get NUMERIC_CIGAR(){return this.cigarAndLength.NUMERIC_CIGAR}get CIGAR(){const e=this.NUMERIC_CIGAR;let n="";for(let i=0,r=e.length;i<r;i++){const s=e[i],o=s>>4,a=v9[s&15];n+=o+String.fromCharCode(a)}return n}get num_cigar_ops(){return this.flag_nc&65535}get num_cigar_bytes(){return this.num_cigar_ops<<2}get read_name_length(){return this.bin_mq_nl&255}get num_seq_bytes(){return this.seq_length+1>>1}get NUMERIC_SEQ(){const e=this.b0+this.read_name_length+this.num_cigar_bytes;return this.byteArray.subarray(e,e+this.num_seq_bytes)}get seq(){const e=this.NUMERIC_SEQ,n=this.seq_length,i=new Array(n);let r=0;const s=n>>1;for(let o=0;o<s;++o){const a=e[o];i[r++]=vo[(a&240)>>4],i[r++]=vo[a&15]}if(r<n){const o=e[s];i[r]=vo[(o&240)>>4]}return i.join("")}get pair_orientation(){if(!this.isSegmentUnmapped()&&!this.isMateUnmapped()&&this.ref_id===this.next_refid){const e=this.isReverseComplemented()?"R":"F",n=this.isMateReverseComplemented()?"R":"F";let i=" ",r=" ";return this.isRead1()?(i="1",r="2"):this.isRead2()&&(i="2",r="1"),this.template_length>0?`${e}${i}${n}${r}`:`${n}${r}${e}${i}`}}get bin_mq_nl(){return this._dataView.getInt32(this.bytes.start+12,!0)}get flag_nc(){return this._dataView.getInt32(this.bytes.start+16,!0)}get seq_length(){return this._dataView.getInt32(this.bytes.start+20,!0)}get next_refid(){return this._dataView.getInt32(this.bytes.start+24,!0)}get next_pos(){return this._dataView.getInt32(this.bytes.start+28,!0)}get template_length(){return this._dataView.getInt32(this.bytes.start+32,!0)}seqAt(e){if(e<this.seq_length){const n=e>>1,i=this.byteArray[this.b0+this.read_name_length+this.num_cigar_bytes+n];return e%2===0?vo[(i&240)>>4]:vo[i&15]}else return}toJSON(){const e={};for(const n of Object.keys(this))n.startsWith("_")||n==="bytes"||(e[n]=this[n]);return e}}function Lb(t){const e=t.split(/\r?\n/),n=[];for(const i of e){const[r,...s]=i.split(/\t/);r&&n.push({tag:r.slice(1),data:s.map(o=>{const a=o.indexOf(":"),l=o.slice(0,a),c=o.slice(a+1);return{tag:l,value:c}})})}return n}const Ob=21840194,B9=65536;class Ub{constructor({bamFilehandle:e,bamPath:n,bamUrl:i,baiPath:r,baiFilehandle:s,baiUrl:o,csiPath:a,csiFilehandle:l,csiUrl:c,htsget:u,renameRefSeqs:f=A=>A,recordClass:h}){if(this.htsget=!1,this.chunkFeatureCache=new wo({maxSize:100}),this.renameRefSeq=f,this.RecordClass=h??Pb,e)this.bam=e;else if(n)this.bam=new $e(n);else if(i)this.bam=new Vt(i);else if(u)this.htsget=!0,this.bam=new E9;else throw new Error("unable to initialize bam");if(l)this.index=new Hc({filehandle:l});else if(a)this.index=new Hc({filehandle:new $e(a)});else if(c)this.index=new Hc({filehandle:new Vt(c)});else if(s)this.index=new Fr({filehandle:s});else if(r)this.index=new Fr({filehandle:new $e(r)});else if(o)this.index=new Fr({filehandle:new Vt(o)});else if(n)this.index=new Fr({filehandle:new $e(`${n}.bai`)});else if(i)this.index=new Fr({filehandle:new Vt(`${i}.bai`)});else if(u)this.htsget=!0;else throw new Error("unable to infer index format")}async getHeaderPre(e){const n=AP(e);if(!this.index)return;const i=await this.index.parse(n),r=i.firstDataLine===void 0?await this.bam.readFile():await this.bam.read(i.firstDataLine.blockPosition+B9,0),s=await zr(r),o=new DataView(s.buffer);if(o.getInt32(0,!0)!==Ob)throw new Error("Not a BAM file");const a=o.getInt32(4,!0),l=new TextDecoder("utf8");this.header=l.decode(s.subarray(8,8+a));const{chrToIndex:c,indexToChr:u}=this._parseRefSeqs(s,a+8);return this.chrToIndex=c,this.indexToChr=u,Lb(this.header)}getHeader(e){return this.headerP||(this.headerP=this.getHeaderPre(e).catch(n=>{throw this.headerP=void 0,n})),this.headerP}async getHeaderText(e={}){return await this.getHeader(e),this.header}_parseRefSeqs(e,n){const i=new DataView(e.buffer),r=i.getInt32(n,!0);let s=n+4;const o={},a=[],l=new TextDecoder("utf8");for(let c=0;c<r;c+=1){if(s+8>e.length)throw new Error(`Insufficient data for reference sequences: need more than ${e.length} bytes`);const u=i.getInt32(s,!0),f=this.renameRefSeq(l.decode(e.subarray(s+4,s+4+u-1))),h=i.getInt32(s+u+4,!0);o[f]=c,a.push({refName:f,length:h}),s=s+8+u}return{chrToIndex:o,indexToChr:a}}async getRecordsForRange(e,n,i,r){await this.getHeader(r);const s=this.chrToIndex?.[e];if(s===void 0||!this.index)return[];const o=await this.index.blocksForRange(s,n-1,i,r);return this._fetchChunkFeaturesDirect(o,s,n,i,r)}chunkCacheKey(e,n){const{minv:i,maxv:r}=e;return`${i.blockPosition}:${i.dataPosition}-${r.blockPosition}:${r.dataPosition}${wP(n)}`}blocksOverlap(e,n,i,r){return e<=r&&n>=i}evictOverlappingChunks(e,n){for(const[i,r]of this.chunkFeatureCache)this.blocksOverlap(e,n,r.minBlock,r.maxBlock)&&this.chunkFeatureCache.delete(i)}async _fetchChunkFeaturesDirect(e,n,i,r,s={}){const{viewAsPairs:o,filterBy:a}=s,{flagInclude:l=0,flagExclude:c=0,tagFilter:u}=a||{},f=[];for(let h=0,A=e.length;h<A;h++){const d=e[h],g=this.chunkCacheKey(d,a),m=d.minv.blockPosition,p=d.maxv.blockPosition;let w;const C=this.chunkFeatureCache.get(g);if(C)w=C.features;else{this.evictOverlappingChunks(m,p);const{data:I,cpositions:x,dpositions:E}=await this._readChunk({chunk:d,opts:s}),S=await this.readBamFeatures(I,x,E,d);if(a){w=[];for(let D=0,B=S.length;D<B;D++){const k=S[D];pP(k.flags,l,c)||u&&mP(k.tags[u.tag],u.value)||w.push(k)}}else w=S;this.chunkFeatureCache.set(g,{minBlock:m,maxBlock:p,features:w})}let y=!1;for(let I=0,x=w.length;I<x;I++){const E=w[I];if(E.ref_id===n)if(E.start>=r){y=!0;break}else E.end>=i&&f.push(E)}if(y)break}if(o){const h=await this.fetchPairs(n,f,s);for(let A=0,d=h.length;A<d;A++)f.push(h[A])}return f}async fetchPairs(e,n,i){const{pairAcrossChr:r,maxInsertSize:s=2e5}=i,o={},a={};for(let h=0,A=n.length;h<A;h++){const d=n[h],g=d.name;o[g]=(o[g]||0)+1,a[d.fileOffset]=1}const l=[];for(let h=0,A=n.length;h<A;h++){const d=n[h],g=d.name;this.index&&o[g]===1&&(r||d.next_refid===e&&Math.abs(d.start-d.next_pos)<s)&&l.push(this.index.blocksForRange(d.next_refid,d.next_pos,d.next_pos+1,i))}const c=new Map,u=await Promise.all(l);for(let h=0,A=u.length;h<A;h++){const d=u[h];for(let g=0,m=d.length;g<m;g++){const p=d[g],w=p.toString();c.has(w)||c.set(w,p)}}return(await Promise.all([...c.values()].map(async h=>{const{data:A,cpositions:d,dpositions:g,chunk:m}=await this._readChunk({chunk:h,opts:i}),p=[],w=await this.readBamFeatures(A,d,g,m);for(let C=0,y=w.length;C<y;C++){const I=w[C];o[I.name]===1&&!a[I.fileOffset]&&p.push(I)}return p}))).flat()}async _readChunk({chunk:e,opts:n}){const i=await this.bam.read(e.fetchedSize(),e.minv.blockPosition,n),{buffer:r,cpositions:s,dpositions:o}=await Nb(i,e);return{data:r,cpositions:s,dpositions:o,chunk:e}}async readBamFeatures(e,n,i,r){let s=0;const o=[];let a=0;const l=new DataView(e.buffer),c=i.length>0,u=n.length>0;for(;s+4<e.length;){const f=l.getInt32(s,!0),h=s+4+f-1;if(c){for(;s+r.minv.dataPosition>=i[a++];);a--}if(h<e.length){const A=new this.RecordClass({bytes:{byteArray:e,start:s,end:h},fileOffset:u?n[a]*256+(s-i[a])+r.minv.dataPosition+1:w9(e.subarray(s,h))>>>0});o.push(A)}s=h+1}return o}async hasRefSeq(e){const n=this.chrToIndex?.[e];return n===void 0?!1:this.index?.hasRefSeq(n)}async lineCount(e){const n=this.chrToIndex?.[e];return n===void 0||!this.index?0:this.index.lineCount(n)}async indexCov(e,n,i){if(!this.index)return[];await this.index.parse();const r=this.chrToIndex?.[e];return r===void 0?[]:this.index.indexCov(r,n,i)}async blocksForRange(e,n,i,r){if(!this.index)return[];await this.index.parse();const s=this.chrToIndex?.[e];return s===void 0?[]:this.index.blocksForRange(s,n,i,r)}clearFeatureCache(){this.chunkFeatureCache.clear()}async estimatedBytesForRegions(e,n){if(!this.index)return 0;if(await this.getHeader(n),!this.chrToIndex)throw new Error("Header not yet parsed");return this.index.estimatedBytesForRegions(e.map(i=>{const r=this.chrToIndex[i.refName];if(r===void 0)throw new Error(`Unknown reference name: ${i.refName}`);return{refId:r,start:i.start,end:i.end}}),n)}}async function _b(t,e){const n=await Promise.all(t.map(async i=>{const{url:r,headers:s}=i;if(r.startsWith("data:")){const o=await fetch(r);if(!o.ok)throw new Error("failed to decode base64");const a=await o.arrayBuffer();return new Uint8Array(a)}else{const{referer:o,...a}=s,l=await fetch(r,{...e,headers:{...e?.headers,...a}});if(!l.ok)throw new Error(`HTTP ${l.status} fetching ${r}: ${await l.text()}`);return new Uint8Array(await l.arrayBuffer())}}));return gP(await Promise.all(n.map(i=>zr(i))))}class S9 extends Ub{constructor(e){super({htsget:!0,recordClass:e.recordClass}),this.baseUrl=e.baseUrl,this.trackId=e.trackId}async getRecordsForRange(e,n,i,r){const o=`${`${this.baseUrl}/${this.trackId}`}?referenceName=${e}&start=${n}&end=${i}&format=BAM`,a=this.chrToIndex?.[e];if(a===void 0)return[];const l=await fetch(o,{...r});if(!l.ok)throw new Error(`HTTP ${l.status} fetching ${o}: ${await l.text()}`);const c=await l.json(),u=await _b(c.htsget.urls.slice(1),r),f=await this.readBamFeatures(u,[],[],{minv:{dataPosition:0,blockPosition:0},maxv:{dataPosition:0,blockPosition:0}}),h=[];for(let A=0,d=f.length;A<d;A++){const g=f[A];if(g.ref_id===a){if(g.start>=i)break;g.end>=n&&h.push(g)}}return h}async getHeader(e={}){const n=`${this.baseUrl}/${this.trackId}?referenceName=na&class=header`,i=await fetch(n,e);if(!i.ok)throw new Error(`HTTP ${i.status} fetching ${n}: ${await i.text()}`);const r=await i.json(),s=await _b(r.htsget.urls,e),o=new DataView(s.buffer);if(o.getInt32(0,!0)!==Ob)throw new Error("Not a BAM file");const a=o.getInt32(4,!0),c=new TextDecoder("utf8").decode(s.subarray(8,8+a)),u=Lb(c),f=[],h={},A=u.filter(d=>d.tag==="SQ");for(const[d,g]of A.entries()){let m="",p=0;for(const w of g.data)w.tag==="SN"?m=w.value:w.tag==="LN"&&(p=+w.value);h[m]=d,f[d]={refName:m,length:p}}return this.chrToIndex=h,this.indexToChr=f,u}}const D9=Object.freeze(Object.defineProperty({__proto__:null,BAI:Fr,BamFile:Ub,BamRecord:Pb,CSI:Hc,HtsgetFile:S9},Symbol.toStringTag,{value:"Module"}));class Yc{constructor(e,n,i,r){this.minv=e,this.maxv=n,this.bin=i,this._fetchedSize=r}toUniqueString(){return`${this.minv}..${this.maxv} (bin ${this.bin}, fetchedSize ${this.fetchedSize()})`}toString(){return this.toUniqueString()}compareTo(e){return this.minv.compareTo(e.minv)||this.maxv.compareTo(e.maxv)||this.bin-e.bin}fetchedSize(){return this._fetchedSize!==void 0?this._fetchedSize:this.maxv.blockPosition+65536-this.minv.blockPosition}}class zb{constructor({filehandle:e,renameRefSeqs:n=i=>i}){this.filehandle=e,this.renameRefSeq=n}async getMetadata(e={}){const{indices:n,...i}=await this.parse(e);return i}_findFirstData(e,n){return e?e.compareTo(n)>0?n:e:n}async parse(e={}){return this.parseP||(this.parseP=this._parse(e).catch(n=>{throw this.parseP=void 0,n})),this.parseP}async hasRefSeq(e,n={}){return!!(await this.parse(n)).indices[e]?.binIndex}_parseNameBytes(e){let n=0,i=0;const r=[],s={},o=new TextDecoder("utf8");for(let a=0;a<e.length;a+=1)if(!e[a]){if(i<a){const l=this.renameRefSeq(o.decode(e.subarray(i,a)));r[n]=l,s[l]=n}i=a+1,n+=1}return{refNameToId:s,refIdToName:r}}}const Gb=65536,Q9=Gb*Gb;function Hb(t,e=0){const n=t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24;return((t[e+4]|t[e+5]<<8|t[e+6]<<16|t[e+7]<<24)>>>0)*Q9+(n>>>0)}function k9(t,e){return e.minv.blockPosition-t.maxv.blockPosition<65e3&&e.maxv.blockPosition-t.minv.blockPosition<5e6}function Yb(t,e){const n=[];let i;if(t.length===0)return t;t.sort(function(r,s){const o=r.minv.blockPosition-s.minv.blockPosition;return o===0?r.minv.dataPosition-s.minv.dataPosition:o});for(const r of t)(!e||r.maxv.compareTo(e)>0)&&(i===void 0?(n.push(r),i=r):k9(i,r)?r.maxv.compareTo(i.maxv)>0&&(i.maxv=r.maxv):(n.push(r),i=r));return n}class oA{constructor(e,n){this.blockPosition=e,this.dataPosition=n}toString(){return`${this.blockPosition}:${this.dataPosition}`}compareTo(e){return this.blockPosition-e.blockPosition||this.dataPosition-e.dataPosition}}function Gr(t,e=0){return new oA(t[e+7]*1099511627776+t[e+6]*4294967296+t[e+5]*16777216+t[e+4]*65536+t[e+3]*256+t[e+2],t[e+1]<<8|t[e])}const R9=21582659,F9=38359875,N9={0:"generic",1:"SAM",2:"VCF"};function M9(t,e){return t*2**e}function Vb(t,e){return Math.floor(t/2**e)}class Vc extends zb{constructor(e){super(e),this.maxBinNumber=0,this.depth=0,this.minShift=0}async lineCount(e,n={}){const i=await this.parse(n),r=i.refNameToId[e];if(r===void 0||!i.indices[r])return-1;const{stats:o}=i.indices[r];return o?o.lineCount:-1}indexCov(){throw new Error("CSI indexes do not support indexcov")}parseAuxData(e,n){const i=new DataView(e.buffer),r=i.getInt32(n,!0),s=r&65536?"zero-based-half-open":"1-based-closed",o=N9[r&15];if(!o)throw new Error(`invalid Tabix preset format flags ${r}`);const a={ref:i.getInt32(n+4,!0),start:i.getInt32(n+8,!0),end:i.getInt32(n+12,!0)},l=i.getInt32(n+16,!0),c=l?String.fromCharCode(l):void 0,u=i.getInt32(n+20,!0),f=i.getInt32(n+24,!0),{refIdToName:h,refNameToId:A}=this._parseNameBytes(e.subarray(n+28,n+28+f));return{refIdToName:h,refNameToId:A,skipLines:u,metaChar:c,columnNumbers:a,format:o,coordinateType:s}}async _parse(e={}){const n=await zr(await this.filehandle.readFile(e)),i=new DataView(n.buffer);let r;if(i.getUint32(0,!0)===R9)r=1;else if(i.getUint32(0,!0)===F9)r=2;else throw new Error("Not a CSI file");this.minShift=i.getInt32(4,!0),this.depth=i.getInt32(8,!0),this.maxBinNumber=((1<<(this.depth+1)*3)-1)/7;const s=2**(this.minShift+this.depth*3),o=i.getInt32(12,!0),a=o&&o>=30?this.parseAuxData(n,16):{refIdToName:[],refNameToId:{},metaChar:void 0,columnNumbers:{ref:0,start:1,end:2},coordinateType:"zero-based-half-open",format:"generic"},l=i.getInt32(16+o,!0);let c,u=16+o+4;const f=new Array(l).fill(0).map(()=>{const h=i.getInt32(u,!0);u+=4;const A={};let d;for(let g=0;g<h;g+=1){const m=i.getUint32(u,!0);if(m>this.maxBinNumber)d=this.parsePseudoBin(n,u+4),u+=48;else{const p=Gr(n,u+4);c=this._findFirstData(c,p);const w=i.getInt32(u+12,!0);u+=16;const C=new Array(w);for(let y=0;y<w;y+=1){const I=Gr(n,u),x=Gr(n,u+8);u+=16,C[y]=new Yc(I,x,m)}A[m]=C}}return{binIndex:A,stats:d}});return{...a,csi:!0,refCount:l,maxBlockSize:65536,firstDataLine:c,csiVersion:r,indices:f,depth:this.depth,maxBinNumber:this.maxBinNumber,maxRefLength:s}}parsePseudoBin(e,n){return{lineCount:Hb(e,n+28)}}async blocksForRange(e,n,i,r={}){n<0&&(n=0);const s=await this.parse(r),o=s.refNameToId[e];if(o===void 0)return[];const a=s.indices[o];if(!a)return[];const l=this.reg2bins(n,i),c=[];for(const[u,f]of l)for(let h=u;h<=f;h++)if(a.binIndex[h])for(const A of a.binIndex[h])c.push(new Yc(A.minv,A.maxv,h));return Yb(c,new oA(0,0))}reg2bins(e,n){e-=1,e<1&&(e=1),n>2**50&&(n=2**34),n-=1;let i=0,r=0,s=this.minShift+this.depth*3;const o=[];for(;i<=this.depth;s-=3,r+=M9(1,i*3),i+=1){const a=r+Vb(e,s),l=r+Vb(n,s);if(l-a+o.length>this.maxBinNumber)throw new Error(`query ${e}-${n} is too large for current binning scheme (shift ${this.minShift}, depth ${this.depth}), try a smaller query or a coarser index binning scheme`);o.push([a,l])}return o}}const T9=21578324,Jb=14;function P9(t,e){return t+=1,e-=1,[[0,0],[1+(t>>26),1+(e>>26)],[9+(t>>23),9+(e>>23)],[73+(t>>20),73+(e>>20)],[585+(t>>17),585+(e>>17)],[4681+(t>>14),4681+(e>>14)]]}class Hr extends zb{async lineCount(e,n={}){const i=await this.parse(n),r=i.refNameToId[e];return r===void 0||!i.indices[r]?-1:i.indices[r].stats?.lineCount??-1}async _parse(e={}){const n=await this.filehandle.readFile(e),i=await zr(n),r=new DataView(i.buffer);if(r.getUint32(0,!0)!==T9)throw new Error("Not a TBI file");const o=r.getUint32(4,!0),a=r.getUint32(8,!0),l=a&65536?"zero-based-half-open":"1-based-closed",u={0:"generic",1:"SAM",2:"VCF"}[a&15];if(!u)throw new Error(`invalid Tabix preset format flags ${a}`);const f={ref:r.getInt32(12,!0),start:r.getInt32(16,!0),end:r.getInt32(20,!0)},h=r.getInt32(24,!0),A=5,d=((1<<(A+1)*3)-1)/7,g=2**(14+A*3),m=h?String.fromCharCode(h):void 0,p=r.getInt32(28,!0),w=r.getInt32(32,!0),{refNameToId:C,refIdToName:y}=this._parseNameBytes(i.slice(36,36+w));let I=36+w,x;return{indices:new Array(o).fill(0).map(()=>{const S=r.getInt32(I,!0);I+=4;const D={};let B;for(let M=0;M<S;M+=1){const O=r.getUint32(I,!0);if(I+=4,O>d+1)throw new Error("tabix index contains too many bins, please use a CSI index");if(O===d+1){const _=r.getInt32(I,!0);I+=4,_===2&&(B=this.parsePseudoBin(i,I)),I+=16*_}else{const _=r.getInt32(I,!0);I+=4;const H=new Array(_);for(let G=0;G<_;G+=1){const q=Gr(i,I),Z=Gr(i,I+8);I+=16,x=this._findFirstData(x,q),H[G]=new Yc(q,Z,O)}D[O]=H}}const k=r.getInt32(I,!0);I+=4;const F=new Array(k);for(let M=0;M<k;M+=1)F[M]=Gr(i,I),I+=8,x=this._findFirstData(x,F[M]);return{binIndex:D,linearIndex:F,stats:B}}),metaChar:m,maxBinNumber:d,maxRefLength:g,skipLines:p,firstDataLine:x,columnNumbers:f,coordinateType:l,format:u,refIdToName:y,refNameToId:C,maxBlockSize:65536}}parsePseudoBin(e,n){return{lineCount:Hb(e,n+16)}}async blocksForRange(e,n,i,r={}){n<0&&(n=0);const s=await this.parse(r),o=s.refNameToId[e];if(o===void 0)return[];const a=s.indices[o];if(!a)return[];(a.linearIndex.length>0?a.linearIndex[n>>Jb>=a.linearIndex.length?a.linearIndex.length-1:n>>Jb]:new oA(0,0))||console.warn("querying outside of possible tabix range");const c=P9(n,i),u=[];for(const[g,m]of c)for(let p=g;p<=m;p++)if(a.binIndex[p])for(const w of a.binIndex[p])u.push(new Yc(w.minv,w.maxv,p));const f=a.linearIndex.length;let h;const A=Math.min(n>>14,f-1),d=Math.min(i>>14,f-1);for(let g=A;g<=d;++g){const m=a.linearIndex[g];m&&(!h||m.compareTo(h)<0)&&(h=m)}return Yb(u,h)}}class L9{constructor({path:e,filehandle:n,url:i,tbiPath:r,tbiUrl:s,tbiFilehandle:o,csiPath:a,csiUrl:l,csiFilehandle:c,renameRefSeqs:u,chunkCacheSize:f=5*2**20}){this.cache=new wo({maxSize:1e3});const h=u??(A=>A);if(n)this.filehandle=n;else if(e)this.filehandle=new $e(e);else if(i)this.filehandle=new Vt(i);else throw new TypeError("must provide either filehandle or path");if(o)this.index=new Hr({filehandle:o,renameRefSeqs:h});else if(c)this.index=new Vc({filehandle:c,renameRefSeqs:h});else if(r)this.index=new Hr({filehandle:new $e(r),renameRefSeqs:h});else if(a)this.index=new Vc({filehandle:new $e(a),renameRefSeqs:h});else if(e)this.index=new Hr({filehandle:new $e(`${e}.tbi`),renameRefSeqs:h});else if(l)this.index=new Vc({filehandle:new Vt(l)});else if(s)this.index=new Hr({filehandle:new Vt(s)});else if(i)this.index=new Hr({filehandle:new Vt(`${i}.tbi`)});else throw new TypeError("must provide one of tbiFilehandle, tbiPath, csiFilehandle, csiPath, tbiUrl, csiUrl");this.renameRefSeq=h,this.hasCustomRenameRefSeq=u!==void 0,this.chunkCache=new Dr({cache:new wo({maxSize:Math.floor(f/65536)}),fill:(A,d)=>this.readChunk(A,{signal:d})})}calculateFileOffset(e,n,i,r,s){return e[i]*256+(r-n[i])+s+1}async getLines(e,n,i,r){let s,o={},a;typeof r=="function"?a=r:(o=r,a=r.lineCallback,s=r.signal);const l=await this.index.getMetadata(o),c=n??0,u=i??l.maxRefLength;if(!(c<=u))throw new TypeError("invalid start and end coordinates. start must be less than or equal to end");if(c===u)return;const f=await this.index.blocksForRange(e,c,u,o),h=new TextDecoder("utf8"),A=l.format==="VCF",d={ref:l.columnNumbers.ref||0,start:l.columnNumbers.start||0,end:A?8:l.columnNumbers.end||0},g=Math.max(d.ref,d.start,d.end),m=l.metaChar?.charCodeAt(0),p=l.coordinateType==="1-based-closed"?-1:0,w=!this.hasCustomRenameRefSeq;for(const C of f){const{buffer:y,cpositions:I,dpositions:x}=await this.chunkCache.get(C.toString(),C,s);let E=0,S=0;const D=h.decode(y);if(y.length==D.length)for(;E<D.length;){const k=D.indexOf(`
|
|
834
|
+
`,E);if(k===-1)break;const F=D.slice(E,k);if(x){const O=E+C.minv.dataPosition;for(;S<x.length&&O>=x[S];)S++}const M=this.checkLine(e,c,u,F,d.ref,d.start,d.end,g,m,p,A,w);if(M===null)return;M!==void 0&&a(F,this.calculateFileOffset(I,x,S,E,C.minv.dataPosition),M.start,M.end),E=k+1}else for(;E<y.length;){const k=y.indexOf(10,E);if(k===-1)break;const F=y.slice(E,k),M=h.decode(F);if(x){const _=E+C.minv.dataPosition;for(;S<x.length&&_>=x[S];)S++}const O=this.checkLine(e,c,u,M,d.ref,d.start,d.end,g,m,p,A,w);if(O===null)return;O!==void 0&&a(M,this.calculateFileOffset(I,x,S,E,C.minv.dataPosition),O.start,O.end),E=k+1}}}async getMetadata(e={}){return this.index.getMetadata(e)}async getHeaderBuffer(e={}){const{firstDataLine:n,metaChar:i,maxBlockSize:r}=await this.getMetadata(e),s=(n?.blockPosition||0)+r,o=await this.filehandle.read(s,0,e),a=await zr(o);if(i){let l=-1;const c=10,u=i.charCodeAt(0);for(let f=0,h=a.length;f<h;f++){const A=a[f];if(f===l+1&&A!==u)break;A===c&&(l=f)}return a.subarray(0,l+1)}return a}async getHeader(e={}){const n=new TextDecoder("utf8"),i=await this.getHeaderBuffer(e);return n.decode(i)}async getReferenceSequenceNames(e={}){return(await this.getMetadata(e)).refIdToName}checkLine(e,n,i,r,s,o,a,l,c,u,f,h){if(c!==void 0&&r.charCodeAt(0)===c)return;if(r.length<500){const C=r.split(" "),y=C[s-1];if(!(h?y===e:this.renameRefSeq(y)===e))return;const x=+C[o-1]+u;if(x>=i)return null;let E;return a===0||a===o?E=x+1:f?E=this._getVcfEnd(x,C[3],C[a-1]):E=+C[a-1],E<=n?void 0:{start:x,end:E}}let A=-1;const d=[-1];for(let C=0;C<l;C++){const y=r.indexOf(" ",A+1);if(y===-1){d.push(r.length);break}d.push(y),A=y}const g=r.slice(d[s-1]+1,d[s]);if(!(h?g===e:this.renameRefSeq(g)===e))return;const p=+r.slice(d[o-1]+1,d[o])+u;if(p>=i)return null;let w;if(a===0||a===o?w=p+1:f?w=this._getVcfEnd(p,r.slice(d[3]+1,d[4]),r.slice(d[a-1]+1,d[a])):w=+r.slice(d[a-1]+1,d[a]),!(w<=n))return{start:p,end:w}}_getVcfEnd(e,n,i){let r=e+n.length;if(i.includes("SVTYPE=TRA"))return e+1;if(i[0]!=="."){const o=i.indexOf("END=");if(o!==-1&&(o===0||i[o-1]===";")){const a=o+4;let l=i.indexOf(";",a);l===-1&&(l=i.length),r=Number.parseInt(i.slice(a,l),10)}}return r}async lineCount(e,n={}){return this.index.lineCount(e,n)}async readChunk(e,n={}){const i=await this.filehandle.read(e.fetchedSize(),e.minv.blockPosition,n);return Nb(i,e,this.cache)}}const O9=Object.freeze(Object.defineProperty({__proto__:null,CSI:Vc,TBI:Hr,TabixIndexedFile:L9},Symbol.toStringTag,{value:"Module"})),U9=/%([0-9A-Fa-f]{2})/g,_9=/^\s*##\s*(\S+)\s*(.*)/,z9=/\r?\n$/,qb=/\s+/,Kb=/\D/g;function Jc(t){return t.includes("%")?t.replaceAll(U9,(e,n)=>String.fromCharCode(parseInt(n,16))):t}function G9(t){if(!t.length||t===".")return{};const e={};let n=t;n.endsWith(`
|
|
835
|
+
`)&&(n=n.slice(0,n.endsWith(`\r
|
|
836
|
+
`)?-2:-1));for(const i of n.split(";")){const r=i.indexOf("=");if(r===-1)continue;const s=i.slice(r+1);if(!s.length)continue;const o=i.slice(0,r).trim();let a=e[o];a||(a=[],e[o]=a);for(const l of s.split(","))a.push(Jc(l.trim()))}return e}function H9(t){if(!t.length||t===".")return{};const e={};let n=t;n.endsWith(`
|
|
837
|
+
`)&&(n=n.slice(0,n.endsWith(`\r
|
|
838
|
+
`)?-2:-1));for(const i of n.split(";")){const r=i.indexOf("=");if(r===-1)continue;const s=i.slice(r+1);if(!s.length)continue;const o=i.slice(0,r).trim();let a=e[o];a||(a=[],e[o]=a);for(const l of s.split(","))a.push(l.trim())}return e}function Y9(t){return aA(t.split(" "))}function _e(t){return t==="."||t===""||t===void 0?null:t}function aA(t){const e=_e(t[0]),n=_e(t[1]),i=_e(t[2]),r=_e(t[3]),s=_e(t[4]),o=_e(t[5]),a=_e(t[6]),l=_e(t[7]),c=_e(t[8]);return{seq_id:e?Jc(e):null,source:n?Jc(n):null,type:i?Jc(i):null,start:r===null?null:parseInt(r,10),end:s===null?null:parseInt(s,10),score:o===null?null:parseFloat(o),strand:a,phase:l,attributes:c===null?null:G9(c)}}function V9(t){const e=_e(t[0]),n=_e(t[1]),i=_e(t[2]),r=_e(t[3]),s=_e(t[4]),o=_e(t[5]),a=_e(t[6]),l=_e(t[7]),c=_e(t[8]);return{seq_id:e,source:n,type:i,start:r===null?null:parseInt(r,10),end:s===null?null:parseInt(s,10),score:o===null?null:parseFloat(o),strand:a,phase:l,attributes:c===null?null:H9(c)}}function J9(t){const e=_9.exec(t);if(!e)return null;const[,n]=e;let[,,i]=e;const r={directive:n};if(i.length&&(i=i.replace(z9,""),r.value=i),n==="sequence-region"){const s=i.split(qb,3);return{...r,seq_id:s[0],start:s[1]?.replaceAll(Kb,""),end:s[2]?.replaceAll(Kb,"")}}else if(n==="genome-build"){const[s,o]=i.split(qb,2);return{...r,source:s,buildName:o}}return r}const q9=/^\s*[^#\s>]/,K9=/^\s*(#+)(.*)/,j9=/^\s*$/,W9=/^\s*>/,X9=/\r?\n?$/g;class qc{featureCallback;endCallback;commentCallback;errorCallback;disableDerivesFromReferences;directiveCallback;bufferSize;eof=!1;lineNumber=0;_underConstructionTopLevel=[];_underConstructionById={};_completedReferences={};_underConstructionOrphans={};constructor(e){const n=()=>{};this.featureCallback=e.featureCallback||n,this.endCallback=e.endCallback||n,this.commentCallback=e.commentCallback||n,this.errorCallback=e.errorCallback||n,this.directiveCallback=e.directiveCallback||n,this.disableDerivesFromReferences=e.disableDerivesFromReferences||!1,this.bufferSize=e.bufferSize===void 0?1/0:e.bufferSize}addLine(e){if(this.eof)return;if(this.lineNumber+=1,q9.test(e)){this._bufferLine(e);return}const n=K9.exec(e);if(n){const[,i]=n;let[,,r]=n;if(i.length===3)this._emitAllUnderConstructionFeatures();else if(i.length===2){const s=J9(e);s&&(s.directive==="FASTA"?(this._emitAllUnderConstructionFeatures(),this.eof=!0):this._emitItem(s))}else this._emitItem({comment:r.trimStart()})}else if(!j9.test(e))if(W9.test(e))this._emitAllUnderConstructionFeatures(),this.eof=!0;else{const i=e.replaceAll(X9,"");throw new Error(`GFF3 parse error. Cannot parse '${i}'.`)}}addParsedFeatureLine(e){this.eof||(this.lineNumber+=1,this._bufferParsedLine(e))}finish(){this._emitAllUnderConstructionFeatures(),this.endCallback()}_emitItem(e){Array.isArray(e)?this.featureCallback(e):"directive"in e?this.directiveCallback(e):"comment"in e&&this.commentCallback(e)}_enforceBufferSizeLimit(e=0){const n=i=>{i&&Array.isArray(i)&&i[0].attributes?.ID?.[0]&&(i[0].attributes.ID.forEach(s=>{delete this._underConstructionById[s],delete this._completedReferences[s]}),i.forEach(s=>{s.child_features&&s.child_features.forEach(o=>{n(o)}),s.derived_features&&s.derived_features.forEach(o=>{n(o)})}))};for(;this._underConstructionTopLevel.length+e>this.bufferSize;){const i=this._underConstructionTopLevel.shift();i&&(this._emitItem(i),n(i))}}_emitAllUnderConstructionFeatures(){this._underConstructionTopLevel.forEach(this._emitItem.bind(this)),this._underConstructionTopLevel=[],this._underConstructionById={},this._completedReferences={};const e=Object.keys(this._underConstructionOrphans);if(e.length)throw new Error(`some features reference other features that do not exist in the file (or in the same '###' scope). ${e.join(",")}`)}_bufferLine(e){this._bufferParsedLine(Y9(e))}_bufferParsedLine(e){const n=e;n.child_features=[],n.derived_features=[];const i=n.attributes?.ID||[],r=n.attributes?.Parent||[],s=this.disableDerivesFromReferences?[]:n.attributes?.Derives_from||[];if(!i.length&&!r.length&&!s.length){this._emitItem([n]);return}let o;i.forEach(a=>{const l=this._underConstructionById[a];l?(l[l.length-1].type!==n.type&&this._parseError(`multi-line feature "${a}" has inconsistent types: "${n.type}", "${l[l.length-1].type}"`),l.push(n),o=l):(o=[n],this._enforceBufferSizeLimit(1),!r.length&&!s.length&&this._underConstructionTopLevel.push(o),this._underConstructionById[a]=o,this._resolveReferencesTo(o,a))}),this._resolveReferencesFrom(o||[n],{Parent:r,Derives_from:s},i)}_resolveReferencesTo(e,n){const i=this._underConstructionOrphans[n];if(i){for(const r of e)r.child_features.push(...i.Parent),r.derived_features.push(...i.Derives_from);delete this._underConstructionOrphans[n]}}_parseError(e){this.eof=!0,this.errorCallback(`${this.lineNumber}: ${e}`)}_resolveReferencesFrom(e,n,i){for(const r of n.Parent){const s=this._underConstructionById[r];if(s){let o=!1;for(const a of i){const l=`Parent,${r}`,c=this._completedReferences[a]||(this._completedReferences[a]={});c[l]&&(o=!0),c[l]=!0}if(!o)for(const a of s)a.child_features.push(e)}else{let o=this._underConstructionOrphans[r];o||(o={Parent:[],Derives_from:[]},this._underConstructionOrphans[r]=o),o.Parent.push(e)}}for(const r of n.Derives_from){const s=this._underConstructionById[r];if(s){let o=!1;for(const a of i){const l=`Derives_from,${r}`,c=this._completedReferences[a]||(this._completedReferences[a]={});c[l]&&(o=!0),c[l]=!0}if(!o)for(const a of s)a.derived_features.push(e)}else{let o=this._underConstructionOrphans[r];o||(o={Parent:[],Derives_from:[]},this._underConstructionOrphans[r]=o),o.Derives_from.push(e)}}}}function Z9(t){const e=[],n=new qc({featureCallback:i=>e.push(i),disableDerivesFromReferences:!0,errorCallback:i=>{throw new Error(i)}});for(const i of t.split(/\r?\n/))n.addLine(i);return n.finish(),e}function $9(t){const e=[],n=new qc({featureCallback:i=>e.push(i),disableDerivesFromReferences:!0,errorCallback:i=>{throw new Error(i)}});for(const i of t)n.addLine(i);return n.finish(),e}function eL(t){const e=[],n=new qc({featureCallback:i=>e.push(i),disableDerivesFromReferences:!0,errorCallback:i=>{throw new Error(i)}});for(const i of t){const r=aA(i.fields);i.lineHash!==void 0&&(r.attributes||(r.attributes={}),r.attributes._lineHash=[String(i.lineHash)]),n.addParsedFeatureLine(r)}return n.finish(),e}function tL(t,e){const n=[],i=new qc({featureCallback:s=>n.push(s),disableDerivesFromReferences:!0,errorCallback:s=>{throw new Error(s)}}),r=e?aA:V9;for(const s of t){const o=r(s.fields);s.lineHash!==void 0&&(o.attributes||(o.attributes={}),o.attributes._lineHash=[String(s.lineHash)]),i.addParsedFeatureLine(o)}return i.finish(),n}const nL=Object.freeze(Object.defineProperty({__proto__:null,parseArraySync:$9,parseRecordsSync:eL,parseRecordsSyncFast:tL,parseStringSync:Z9},Symbol.toStringTag,{value:"Module"}));function iL(t,e,n){const i=Object.create(null),r=n.length,s=e.length,o=9,a=58;let l=0;if(t==="GT"){for(let f=0;f<r;f++){const h=l;for(;l<s&&e.charCodeAt(l)!==o;)l++;i[n[f]]=e.slice(h,l),l++}return i}const c=t.indexOf("GT");if(c===-1)return i;if(c===0){for(let f=0;f<r;f++){const h=l;for(;l<s&&e.charCodeAt(l)!==a&&e.charCodeAt(l)!==o;)l++;for(i[n[f]]=e.slice(h,l);l<s&&e.charCodeAt(l)!==o;)l++;l++}return i}let u=0;for(let f=0;f<c;f++)t.charCodeAt(f)===a&&u++;for(let f=0;f<r;f++){const h=l;let A=l;for(;A<s&&e.charCodeAt(A)!==o;)A++;let d=0,g=h;for(let m=h;m<=A;m++)if(m===A||e.charCodeAt(m)===a){if(d===u){i[n[f]]=e.slice(g,m);break}d++,g=m+1}l=A+1}return i}function rL(t){const e=[],n=[];let i=!1,r=!1;const s=t.length;for(let o=0;o<s;o++){const a=t[o];a==='"'?(i=!i,n.push(a)):a==="["?(r=!0,n.push(a)):a==="]"?(r=!1,n.push(a)):a===","&&!i&&!r?(e.push(n.join("").trim()),n.length=0):n.push(a)}return n.length>0&&e.push(n.join("").trim()),e}function sL(t,e){const n=t.indexOf(e);return[t.slice(0,n),t.slice(n+1)]}function oL(t){const e=t.slice(1,-1),n=rL(e),i=[];for(let r=0;r<n.length;r++){const s=n[r],[o,a]=sL(s,"=");if(a&&a.startsWith("[")&&a.endsWith("]")){const l=a.slice(1,-1).split(",");for(let c=0;c<l.length;c++)l[c]=l[c].trim();i.push([o,l])}else a&&a.startsWith('"')&&a.endsWith('"')?i.push([o,a.slice(1,-1)]):i.push([o,a])}return Object.fromEntries(i)}const Kc={InfoFields:{AA:{Number:1,Type:"String",Description:"Ancestral allele"},AC:{Number:"A",Type:"Integer",Description:"Allele count in genotypes, for each ALT allele, in the same order as listed"},AD:{Number:"R",Type:"Integer",Description:"Total read depth for each allele"},ADF:{Number:"R",Type:"Integer",Description:"Read depth for each allele on the forward strand"},ADR:{Number:"R",Type:"Integer",Description:"Read depth for each allele on the reverse strand"},AF:{Number:"A",Type:"Float",Description:"Allele frequency for each ALT allele in the same order as listed (estimated from primary data, not called genotypes)"},AN:{Number:1,Type:"Integer",Description:"Total number of alleles in called genotypes"},BQ:{Number:1,Type:"Float",Description:"RMS base quality"},CIGAR:{Number:1,Type:"Float",Description:"Cigar string describing how to align an alternate allele to the reference allele"},DB:{Number:0,Type:"Flag",Description:"dbSNP membership"},DP:{Number:1,Type:"Integer",Description:"combined depth across samples"},END:{Number:1,Type:"Integer",Description:"End position (for use with symbolic alleles)"},H2:{Number:0,Type:"Flag",Description:"HapMap2 membership"},H3:{Number:0,Type:"Flag",Description:"HapMap3 membership"},MQ:{Number:1,Type:null,Description:"RMS mapping quality"},MQ0:{Number:1,Type:"Integer",Description:"Number of MAPQ == 0 reads"},NS:{Number:1,Type:"Integer",Description:"Number of samples with data"},SB:{Number:4,Type:"Integer",Description:"Strand bias"},SOMATIC:{Number:0,Type:"Flag",Description:"Somatic mutation (for cancer genomics)"},VALIDATED:{Number:0,Type:"Flag",Description:"Validated by follow-up experiment"},"1000G":{Number:0,Type:"Flag",Description:"1000 Genomes membership"},IMPRECISE:{Number:0,Type:"Flag",Description:"Imprecise structural variation"},NOVEL:{Number:0,Type:"Flag",Description:"Indicates a novel structural variation"},SVTYPE:{Number:1,Type:"String",Description:"Type of structural variant"},SVLEN:{Number:null,Type:"Integer",Description:"Difference in length between REF and ALT alleles"},CIPOS:{Number:2,Type:"Integer",Description:"Confidence interval around POS for imprecise variants"},CIEND:{Number:2,Type:"Integer",Description:"Confidence interval around END for imprecise variants"},HOMLEN:{Type:"Integer",Description:"Length of base pair identical micro-homology at event breakpoints"},HOMSEQ:{Type:"String",Description:"Sequence of base pair identical micro-homology at event breakpoints"},BKPTID:{Type:"String",Description:"ID of the assembled alternate allele in the assembly file"},MEINFO:{Number:4,Type:"String",Description:"Mobile element info of the form NAME,START,END,POLARITY"},METRANS:{Number:4,Type:"String",Description:"Mobile element transduction info of the form CHR,START,END,POLARITY"},DGVID:{Number:1,Type:"String",Description:"ID of this element in Database of Genomic Variation"},DBVARID:{Number:1,Type:"String",Description:"ID of this element in DBVAR"},DBRIPID:{Number:1,Type:"String",Description:"ID of this element in DBRIP"},MATEID:{Number:null,Type:"String",Description:"ID of mate breakends"},PARID:{Number:1,Type:"String",Description:"ID of partner breakend"},EVENT:{Number:1,Type:"String",Description:"ID of event associated to breakend"},CILEN:{Number:2,Type:"Integer",Description:"Confidence interval around the inserted material between breakend"},DPADJ:{Type:"Integer",Description:"Read Depth of adjacency"},CN:{Number:1,Type:"Integer",Description:"Copy number of segment containing breakend"},CNADJ:{Number:null,Type:"Integer",Description:"Copy number of adjacency"},CICN:{Number:2,Type:"Integer",Description:"Confidence interval around copy number for the segment"},CICNADJ:{Number:null,Type:"Integer",Description:"Confidence interval around copy number for the adjacency"}},GenotypeFields:{AD:{Number:"R",Type:"Integer",Description:"Read depth for each allele"},ADF:{Number:"R",Type:"Integer",Description:"Read depth for each allele on the forward strand"},ADR:{Number:"R",Type:"Integer",Description:"Read depth for each allele on the reverse strand"},DP:{Number:1,Type:"Integer",Description:"Read depth"},EC:{Number:"A",Type:"Integer",Description:"Expected alternate allele counts"},FT:{Number:1,Type:"String",Description:'Filter indicating if this genotype was "called"'},GL:{Number:"G",Type:"Float",Description:"Genotype likelihoods"},GP:{Number:"G",Type:"Float",Description:"Genotype posterior probabilities"},GQ:{Number:1,Type:"Integer",Description:"Conditional genotype quality"},GT:{Number:1,Type:"String",Description:"Genotype"},HQ:{Number:2,Type:"Integer",Description:"Haplotype quality"},MQ:{Number:1,Type:"Integer",Description:"RMS mapping quality"},PL:{Number:"G",Type:"Integer",Description:"Phred-scaled genotype likelihoods rounded to the closest integer"},PQ:{Number:1,Type:"Integer",Description:"Phasing quality"},PS:{Number:1,Type:"Integer",Description:"Phase set"}},AltTypes:{DEL:{Description:"Deletion relative to the reference"},INS:{Description:"Insertion of novel sequence relative to the reference"},DUP:{Description:"Region of elevated copy number relative to the reference"},INV:{Description:"Inversion of reference sequence"},CNV:{Description:"Copy number variable region (may be both deletion and duplication)"},"DUP:TANDEM":{Description:"Tandem duplication"},"DEL:ME":{Description:"Deletion of mobile element relative to the reference"},"INS:ME":{Description:"Insertion of a mobile element relative to the reference"},NON_REF:{Description:"Represents any possible alternative allele at this location"},"*":{Description:"Represents any possible alternative allele at this location"}},FilterTypes:{PASS:{Description:"Passed all filters"}}};function aL(t){try{return decodeURIComponent(t)}catch{return t}}class cL{constructor({header:e="",strict:n=!0}){if(!e.length)throw new Error("empty header received");const i=e.split(/[\r\n]+/).filter(Boolean);if(!i.length)throw new Error("no non-empty header lines specified");this.strict=n,this.metadata={INFO:{...Kc.InfoFields},FORMAT:{...Kc.GenotypeFields},ALT:{...Kc.AltTypes},FILTER:{...Kc.FilterTypes}};let r;for(let l=0;l<i.length;l++){const c=i[l];if(c.startsWith("#"))c.startsWith("##")?this.parseMetadata(c):r=c;else throw new Error(`Bad line in header:
|
|
839
|
+
${c}`)}if(!r)throw new Error("No format line found in header");const s=r.trim().split(" "),o=s.slice(0,8),a=["#CHROM","POS","ID","REF","ALT","QUAL","FILTER","INFO"];if(s.length<8)throw new Error(`VCF header missing columns:
|
|
840
|
+
${r}`);if(o.length!==a.length||!o.every((l,c)=>l===a[c]))throw new Error(`VCF column headers not correct:
|
|
841
|
+
${r}`);this.samples=s.slice(9)}parseInfo(e){const n={},i=e.includes("%"),r=e.split(";"),s=this.metadata.INFO,o=r.length;for(let a=0;a<o;a++){const l=r[a],c=l.indexOf("="),u=c===-1?l:l.slice(0,c),f=c===-1?void 0:l.slice(c+1),h=s[u]?.Type;if(h==="Flag")n[u]=!0;else if(!f)n[u]=!0;else{const A=h==="Integer"||h==="Float",d=f.split(","),g=d.length;if(i){const m=[];for(let p=0;p<g;p++){const w=d[p];if(w===".")m.push(void 0);else{const C=aL(w);m.push(A?Number(C):C)}}n[u]=m}else{const m=[];for(let p=0;p<g;p++){const w=d[p];w==="."?m.push(void 0):m.push(A?Number(w):w)}n[u]=m}}}return n}parseSamples(e,n){const i={};if(e){const r=n.split(" "),s=e.split(":"),o=this.metadata.FORMAT,a=[];for(let u=0;u<s.length;u++){const f=o[s[u]]?.Type;a.push(f==="Integer"||f==="Float")}const l=s.length,c=this.samples.length;for(let u=0;u<c;u++){const f=this.samples[u],h={},A=r[u],d=A.length;let g=0,m=0;for(let p=0;p<=d;p++)if(p===d||A[p]===":"){const w=A.slice(g,p);if(w===""||w===".")h[s[m]]=void 0;else{const C=w.split(","),y=[];if(a[m])for(let I=0;I<C.length;I++){const x=C[I];y.push(x==="."?void 0:+x)}else for(let I=0;I<C.length;I++){const x=C[I];y.push(x==="."?void 0:x)}h[s[m]]=y}if(g=p+1,m+=1,m>=l)break}i[f]=h}}return i}parseMetadata(e){const n=/^##(.+?)=(.*)/.exec(e.trim());if(!n)throw new Error(`Line is not a valid metadata line: ${e}`);const[i,r]=n.slice(1,3),s=i;if(r?.startsWith("<")){s in this.metadata||(this.metadata[s]={});const[o,a]=this.parseStructuredMetaVal(r);o?this.metadata[s][o]=a:this.metadata[s]=a}else this.metadata[s]=r}parseStructuredMetaVal(e){const n=oL(e),i=n.ID;return delete n.ID,"Number"in n&&(Number.isNaN(Number(n.Number))||(n.Number=Number(n.Number))),[i,n]}getMetadata(...e){let n=this.metadata;const i=e.length;for(let r=0;r<i;r++)if(n=n[e[r]],!n)return n;return n}parseLine(e){let n=0,i=0;for(;n<e.length&&i<9;)e[n]===" "&&(i+=1),n+=1;const r=i===9?n-1:n,s=e.slice(0,r).split(" "),o=e.slice(r+1),[a,l,c,u,f,h,A]=s,d=a,g=+l,m=c==="."?void 0:c.split(";"),p=u,w=f==="."?void 0:f.split(","),C=h==="."?void 0:+h,y=A==="."?void 0:A.split(";"),I=s[8];if(this.strict&&!s[7])throw new Error("no INFO field specified, must contain at least a '.' (turn off strict mode to allow)");const x=s[7]===void 0||s[7]==="."?{}:this.parseInfo(s[7]);return{CHROM:d,POS:g,ALT:w,INFO:x,REF:p,FILTER:y?.length===1&&y[0]==="PASS"?"PASS":y,ID:m,QUAL:C,FORMAT:I,SAMPLES:()=>this.parseSamples(s[8]??"",o),GENOTYPES:()=>iL(s[8]??"",o,this.samples)}}}const lL=Object.freeze(Object.defineProperty({__proto__:null,default:cL},Symbol.toStringTag,{value:"Module"})),jb=["BOOLEAN","INT32","INT64","INT96","FLOAT","DOUBLE","BYTE_ARRAY","FIXED_LEN_BYTE_ARRAY"],Ti=["PLAIN","GROUP_VAR_INT","PLAIN_DICTIONARY","RLE","BIT_PACKED","DELTA_BINARY_PACKED","DELTA_LENGTH_BYTE_ARRAY","DELTA_BYTE_ARRAY","RLE_DICTIONARY","BYTE_STREAM_SPLIT"],uL=["REQUIRED","OPTIONAL","REPEATED"],fL=["UTF8","MAP","MAP_KEY_VALUE","LIST","ENUM","DECIMAL","DATE","TIME_MILLIS","TIME_MICROS","TIMESTAMP_MILLIS","TIMESTAMP_MICROS","UINT_8","UINT_16","UINT_32","UINT_64","INT_8","INT_16","INT_32","INT_64","JSON","BSON","INTERVAL"],hL=["UNCOMPRESSED","SNAPPY","GZIP","LZO","BROTLI","LZ4","ZSTD","LZ4_RAW"],Wb=["DATA_PAGE","INDEX_PAGE","DICTIONARY_PAGE","DATA_PAGE_V2"],AL=["SPHERICAL","VINCENTY","THOMAS","ANDOYER","KARNEY"];function cA(t){const e=jc(t);if(e.type===1)return{type:"Point",coordinates:lA(t,e)};if(e.type===2)return{type:"LineString",coordinates:uA(t,e)};if(e.type===3)return{type:"Polygon",coordinates:Xb(t,e)};if(e.type===4){const n=[];for(let i=0;i<e.count;i++)n.push(lA(t,jc(t)));return{type:"MultiPoint",coordinates:n}}else if(e.type===5){const n=[];for(let i=0;i<e.count;i++)n.push(uA(t,jc(t)));return{type:"MultiLineString",coordinates:n}}else if(e.type===6){const n=[];for(let i=0;i<e.count;i++)n.push(Xb(t,jc(t)));return{type:"MultiPolygon",coordinates:n}}else if(e.type===7){const n=[];for(let i=0;i<e.count;i++)n.push(cA(t));return{type:"GeometryCollection",geometries:n}}else throw new Error(`Unsupported geometry type: ${e.type}`)}function jc(t){const{view:e}=t,n=e.getUint8(t.offset++)===1,i=e.getUint32(t.offset,n);t.offset+=4;const r=i%1e3,s=Math.floor(i/1e3);let o=0;r>1&&r<=7&&(o=e.getUint32(t.offset,n),t.offset+=4);let a=2;return s&&a++,s===3&&a++,{littleEndian:n,type:r,dim:a,count:o}}function lA(t,e){const n=[];for(let i=0;i<e.dim;i++){const r=t.view.getFloat64(t.offset,e.littleEndian);t.offset+=8,n.push(r)}return n}function uA(t,e){const n=[];for(let i=0;i<e.count;i++)n.push(lA(t,e));return n}function Xb(t,e){const{view:n}=t,i=[];for(let r=0;r<e.count;r++){const s=n.getUint32(t.offset,e.littleEndian);t.offset+=4,i.push(uA(t,{...e,count:s}))}return i}const Zb=new TextDecoder,Wc={timestampFromMilliseconds(t){return new Date(Number(t))},timestampFromMicroseconds(t){return new Date(Number(t/1000n))},timestampFromNanoseconds(t){return new Date(Number(t/1000000n))},dateFromDays(t){return new Date(t*864e5)},stringFromBytes(t){return t&&Zb.decode(t)},geometryFromBytes(t){return t&&cA({view:new DataView(t.buffer,t.byteOffset,t.byteLength),offset:0})},geographyFromBytes(t){return t&&cA({view:new DataView(t.buffer,t.byteOffset,t.byteLength),offset:0})}};function $b(t,e,n,i){if(e&&n.endsWith("_DICTIONARY")){let r=t;t instanceof Uint8Array&&!(e instanceof Uint8Array)&&(r=new e.constructor(t.length));for(let s=0;s<t.length;s++)r[s]=e[t[s]];return r}else return eE(t,i)}function eE(t,e){const{element:n,parsers:i,utf8:r=!0,schemaPath:s}=e,{type:o,converted_type:a,logical_type:l}=n;if(s?.some(u=>u.element.logical_type?.type==="VARIANT")&&o==="BYTE_ARRAY"&&a!=="UTF8"&&l?.type!=="STRING")return t;if(a==="DECIMAL"){const f=10**-(n.scale||0),h=new Array(t.length);for(let A=0;A<h.length;A++)t[A]instanceof Uint8Array?h[A]=tE(t[A])*f:h[A]=Number(t[A])*f;return h}if(!a&&o==="INT96")return Array.from(t).map(u=>i.timestampFromNanoseconds(dL(u)));if(a==="DATE")return Array.from(t).map(u=>i.dateFromDays(u));if(a==="TIMESTAMP_MILLIS")return Array.from(t).map(u=>i.timestampFromMilliseconds(u));if(a==="TIMESTAMP_MICROS")return Array.from(t).map(u=>i.timestampFromMicroseconds(u));if(a==="JSON")return t.map(u=>JSON.parse(Zb.decode(u)));if(a==="BSON")throw new Error("parquet bson not supported");if(a==="INTERVAL")throw new Error("parquet interval not supported");if(l?.type==="GEOMETRY")return t.map(u=>i.geometryFromBytes(u));if(l?.type==="GEOGRAPHY")return t.map(u=>i.geographyFromBytes(u));if(a==="UTF8"||l?.type==="STRING"||r&&o==="BYTE_ARRAY")return t.map(u=>i.stringFromBytes(u));if(a==="UINT_64"||l?.type==="INTEGER"&&l.bitWidth===64&&!l.isSigned){if(t instanceof BigInt64Array)return new BigUint64Array(t.buffer,t.byteOffset,t.length);const u=new BigUint64Array(t.length);for(let f=0;f<u.length;f++)u[f]=BigInt(t[f]);return u}if(a==="UINT_32"||l?.type==="INTEGER"&&l.bitWidth===32&&!l.isSigned){if(t instanceof Int32Array)return new Uint32Array(t.buffer,t.byteOffset,t.length);const u=new Uint32Array(t.length);for(let f=0;f<u.length;f++)u[f]=t[f];return u}if(l?.type==="FLOAT16")return Array.from(t).map(nE);if(l?.type==="TIMESTAMP"){const{unit:u}=l;let f=i.timestampFromMilliseconds;u==="MICROS"&&(f=i.timestampFromMicroseconds),u==="NANOS"&&(f=i.timestampFromNanoseconds);const h=new Array(t.length);for(let A=0;A<h.length;A++)h[A]=f(t[A]);return h}return t}function tE(t){if(!t.length)return 0;let e=0n;for(const i of t)e=e*256n+BigInt(i);const n=t.length*8;return e>=2n**BigInt(n-1)&&(e-=2n**BigInt(n)),Number(e)}function dL(t){const e=(t>>64n)-2440588n,n=t&0xffffffffffffffffn;return e*86400000000000n+n}function nE(t){if(!t)return;const e=t[1]<<8|t[0],n=e>>15?-1:1,i=e>>10&31,r=e&1023;return i===0?n*2**-14*(r/1024):i===31?r?NaN:n*(1/0):n*2**(i-15)*(1+r/1024)}function iE(t,e,n){const i=t[e],r=[];let s=1;if(i.num_children)for(;r.length<i.num_children;){const o=t[e+s],a=iE(t,e+s,[...n,o.name]);s+=a.count,r.push(a)}return{count:s,element:i,children:r,path:n}}function rE(t,e){let n=iE(t,0,[]);const i=[n];for(const r of e){const s=n.children.find(o=>o.element.name===r);if(!s)throw new Error(`parquet schema element not found: ${e}`);i.push(s),n=s}return i}function gL(t){const e=[];function n(i){if(i.children.length)for(const r of i.children)n(r);else e.push(i.path.join("."))}return n(t),e}function sE(t){let e=0;for(const{element:n}of t)n.repetition_type==="REPEATED"&&e++;return e}function fA(t){let e=0;for(const{element:n}of t.slice(1))n.repetition_type!=="REQUIRED"&&e++;return e}function pL(t){if(!t||t.element.converted_type!=="LIST"||t.children.length>1)return!1;const e=t.children[0];return!(e.children.length>1||e.element.repetition_type!=="REPEATED")}function mL(t){if(!t||t.element.converted_type!=="MAP"||t.children.length>1)return!1;const e=t.children[0];return!(e.children.length!==2||e.element.repetition_type!=="REPEATED"||e.children.find(r=>r.element.name==="key")?.element.repetition_type==="REPEATED"||e.children.find(r=>r.element.name==="value")?.element.repetition_type==="REPEATED")}function oE(t){if(t.length!==2)return!1;const[,e]=t;return!(e.element.repetition_type==="REPEATED"||e.children.length)}const et={STOP:0,TRUE:1,FALSE:2,BYTE:3,I16:4,I32:5,I64:6,DOUBLE:7,BINARY:8,LIST:9,STRUCT:12};function hA(t){let e=0;const n={};for(;t.offset<t.view.byteLength;){const[i,r,s]=cE(t,e);if(e=s,i===et.STOP)break;n[`field_${r}`]=Xc(t,i)}return n}function Xc(t,e){switch(e){case et.TRUE:return!0;case et.FALSE:return!1;case et.BYTE:return t.view.getInt8(t.offset++);case et.I16:case et.I32:return aE(t);case et.I64:return AA(t);case et.DOUBLE:{const n=t.view.getFloat64(t.offset,!0);return t.offset+=8,n}case et.BINARY:{const n=Pi(t),i=new Uint8Array(t.view.buffer,t.view.byteOffset+t.offset,n);return t.offset+=n,i}case et.LIST:{const n=t.view.getUint8(t.offset++),i=n&15;let r=n>>4;r===15&&(r=Pi(t));const s=i===et.TRUE||i===et.FALSE,o=new Array(r);for(let a=0;a<r;a++)o[a]=s?Xc(t,et.BYTE)===1:Xc(t,i);return o}case et.STRUCT:{const n={};let i=0;for(;;){const[r,s,o]=cE(t,i);if(i=o,r===et.STOP)break;n[`field_${s}`]=Xc(t,r)}return n}default:throw new Error(`thrift unhandled type: ${e}`)}}function Pi(t){let e=0,n=0;for(;;){const i=t.view.getUint8(t.offset++);if(e|=(i&127)<<n,!(i&128))return e;n+=7}}function wL(t){let e=0n,n=0n;for(;;){const i=t.view.getUint8(t.offset++);if(e|=BigInt(i&127)<<n,!(i&128))return e;n+=7n}}function aE(t){const e=Pi(t);return e>>>1^-(e&1)}function AA(t){const e=wL(t);return e>>1n^-(e&1n)}function cE(t,e){const n=t.view.getUint8(t.offset++),i=n&15;if(i===et.STOP)return[0,0,e];const r=n>>4,s=r?e+r:aE(t);return[i,s,s]}function yL(t,e){const n=new Map,i=e?.find(({key:s})=>s==="geo")?.value,r=(i&&JSON.parse(i)?.columns)??{};for(const[s,o]of Object.entries(r)){if(o.encoding!=="WKB")continue;const a=o.edges==="spherical"?"GEOGRAPHY":"GEOMETRY",l=o.crs?.id??o.crs?.ids?.[0],c=l?`${l.authority}:${l.code.toString()}`:void 0;n.set(s,{type:a,crs:c})}for(let s=1;s<t.length;s++){const o=t[s],{logical_type:a,name:l,num_children:c,repetition_type:u,type:f}=o;if(c){s+=c;continue}f==="BYTE_ARRAY"&&a===void 0&&u!=="REPEATED"&&(o.logical_type=n.get(l))}}const CL=1<<19,bL=new TextDecoder;function Kt(t){return t&&bL.decode(t)}async function EL(t,{parsers:e,initialFetchSize:n=CL,geoparquet:i=!0}={}){if(!t||!(t.byteLength>=0))throw new Error("parquet expected AsyncBuffer");const r=Math.max(0,t.byteLength-n),s=await t.slice(r,t.byteLength),o=new DataView(s);if(o.getUint32(s.byteLength-4,!0)!==827474256)throw new Error("parquet file invalid (footer != PAR1)");const a=o.getUint32(s.byteLength-8,!0);if(a>t.byteLength-8)throw new Error(`parquet metadata length ${a} exceeds available buffer ${t.byteLength-8}`);if(a+8>n){const l=t.byteLength-a-8,c=await t.slice(l,r),u=new ArrayBuffer(a+8),f=new Uint8Array(u);return f.set(new Uint8Array(c)),f.set(new Uint8Array(s),r-l),lE(u,{parsers:e,geoparquet:i})}else return lE(s,{parsers:e,geoparquet:i})}function lE(t,{parsers:e,geoparquet:n=!0}={}){if(!(t instanceof ArrayBuffer))throw new Error("parquet expected ArrayBuffer");const i=new DataView(t);if(e={...Wc,...e},i.byteLength<8)throw new Error("parquet file is too short");if(i.getUint32(i.byteLength-4,!0)!==827474256)throw new Error("parquet file invalid (footer != PAR1)");const r=i.byteLength-8,s=i.getUint32(r,!0);if(s>i.byteLength-8)throw new Error(`parquet metadata length ${s} exceeds available buffer ${i.byteLength-8}`);const o=r-s,l=hA({view:i,offset:o}),c=l.field_1,u=l.field_2.map(m=>({type:jb[m.field_1],type_length:m.field_2,repetition_type:uL[m.field_3],name:Kt(m.field_4),num_children:m.field_5,converted_type:fL[m.field_6],scale:m.field_7,precision:m.field_8,field_id:m.field_9,logical_type:IL(m.field_10)})),f=u.filter(m=>m.type),h=l.field_3,A=l.field_4.map(m=>({columns:m.field_1.map((p,w)=>({file_path:Kt(p.field_1),file_offset:p.field_2,meta_data:p.field_3&&{type:jb[p.field_3.field_1],encodings:p.field_3.field_2?.map(C=>Ti[C]),path_in_schema:p.field_3.field_3.map(Kt),codec:hL[p.field_3.field_4],num_values:p.field_3.field_5,total_uncompressed_size:p.field_3.field_6,total_compressed_size:p.field_3.field_7,key_value_metadata:p.field_3.field_8?.map(C=>({key:Kt(C.field_1),value:Kt(C.field_2)})),data_page_offset:p.field_3.field_9,index_page_offset:p.field_3.field_10,dictionary_page_offset:p.field_3.field_11,statistics:xL(p.field_3.field_12,f[w],e),encoding_stats:p.field_3.field_13?.map(C=>({page_type:Wb[C.field_1],encoding:Ti[C.field_2],count:C.field_3})),bloom_filter_offset:p.field_3.field_14,bloom_filter_length:p.field_3.field_15,size_statistics:p.field_3.field_16&&{unencoded_byte_array_data_bytes:p.field_3.field_16.field_1,repetition_level_histogram:p.field_3.field_16.field_2,definition_level_histogram:p.field_3.field_16.field_3},geospatial_statistics:p.field_3.field_17&&{bbox:p.field_3.field_17.field_1&&{xmin:p.field_3.field_17.field_1.field_1,xmax:p.field_3.field_17.field_1.field_2,ymin:p.field_3.field_17.field_1.field_3,ymax:p.field_3.field_17.field_1.field_4,zmin:p.field_3.field_17.field_1.field_5,zmax:p.field_3.field_17.field_1.field_6,mmin:p.field_3.field_17.field_1.field_7,mmax:p.field_3.field_17.field_1.field_8},geospatial_types:p.field_3.field_17.field_2}},offset_index_offset:p.field_4,offset_index_length:p.field_5,column_index_offset:p.field_6,column_index_length:p.field_7,crypto_metadata:p.field_8,encrypted_column_metadata:p.field_9})),total_byte_size:m.field_2,num_rows:m.field_3,sorting_columns:m.field_4?.map(p=>({column_idx:p.field_1,descending:p.field_2,nulls_first:p.field_3})),file_offset:m.field_5,total_compressed_size:m.field_6,ordinal:m.field_7})),d=l.field_5?.map(m=>({key:Kt(m.field_1),value:Kt(m.field_2)})),g=Kt(l.field_6);return n&&yL(u,d),{version:c,schema:u,num_rows:h,row_groups:A,key_value_metadata:d,created_by:g,metadata_length:s}}function uE({schema:t}){return rE(t,[])[0]}function IL(t){return t?.field_1?{type:"STRING"}:t?.field_2?{type:"MAP"}:t?.field_3?{type:"LIST"}:t?.field_4?{type:"ENUM"}:t?.field_5?{type:"DECIMAL",scale:t.field_5.field_1,precision:t.field_5.field_2}:t?.field_6?{type:"DATE"}:t?.field_7?{type:"TIME",isAdjustedToUTC:t.field_7.field_1,unit:fE(t.field_7.field_2)}:t?.field_8?{type:"TIMESTAMP",isAdjustedToUTC:t.field_8.field_1,unit:fE(t.field_8.field_2)}:t?.field_10?{type:"INTEGER",bitWidth:t.field_10.field_1,isSigned:t.field_10.field_2}:t?.field_11?{type:"NULL"}:t?.field_12?{type:"JSON"}:t?.field_13?{type:"BSON"}:t?.field_14?{type:"UUID"}:t?.field_15?{type:"FLOAT16"}:t?.field_16?{type:"VARIANT",specification_version:t.field_16.field_1}:t?.field_17?{type:"GEOMETRY",crs:Kt(t.field_17.field_1)}:t?.field_18?{type:"GEOGRAPHY",crs:Kt(t.field_18.field_1),algorithm:AL[t.field_18.field_2]}:t}function fE(t){if(t.field_1)return"MILLIS";if(t.field_2)return"MICROS";if(t.field_3)return"NANOS";throw new Error("parquet time unit required")}function xL(t,e,n){return t&&{max:Zc(t.field_1,e,n),min:Zc(t.field_2,e,n),null_count:t.field_3,distinct_count:t.field_4,max_value:Zc(t.field_5,e,n),min_value:Zc(t.field_6,e,n),is_max_value_exact:t.field_7,is_min_value_exact:t.field_8}}function Zc(t,e,n){const{type:i,converted_type:r,logical_type:s}=e;if(t===void 0)return t;if(i==="BOOLEAN")return t[0]===1;if(i==="BYTE_ARRAY")return n.stringFromBytes(t);const o=new DataView(t.buffer,t.byteOffset,t.byteLength);return i==="FLOAT"&&o.byteLength===4?o.getFloat32(0,!0):i==="DOUBLE"&&o.byteLength===8?o.getFloat64(0,!0):i==="INT32"&&r==="DATE"?n.dateFromDays(o.getInt32(0,!0)):i==="INT64"&&r==="TIMESTAMP_MILLIS"?n.timestampFromMilliseconds(o.getBigInt64(0,!0)):i==="INT64"&&r==="TIMESTAMP_MICROS"?n.timestampFromMicroseconds(o.getBigInt64(0,!0)):i==="INT64"&&s?.type==="TIMESTAMP"&&s?.unit==="NANOS"?n.timestampFromNanoseconds(o.getBigInt64(0,!0)):i==="INT64"&&s?.type==="TIMESTAMP"&&s?.unit==="MICROS"?n.timestampFromMicroseconds(o.getBigInt64(0,!0)):i==="INT64"&&s?.type==="TIMESTAMP"?n.timestampFromMilliseconds(o.getBigInt64(0,!0)):i==="INT32"&&o.byteLength===4?o.getInt32(0,!0):i==="INT64"&&o.byteLength===8?o.getBigInt64(0,!0):r==="DECIMAL"?tE(t)*10**-(e.scale||0):s?.type==="FLOAT16"?nE(t):t}function hE(t,e){for(let i=0;i<e.length;i+=1e4)t.push(...e.slice(i,i+1e4))}function Yr(t,e,n=!0){if(n?t===e:t==e)return!0;if(t instanceof Uint8Array&&e instanceof Uint8Array)return Yr(Array.from(t),Array.from(e),n);if(!t||!e||typeof t!=typeof e)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!Yr(t[r],e[r],n))return!1;return!0}if(typeof t!="object")return!1;const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!1;for(const r of i)if(!Yr(t[r],e[r],n))return!1;return!0}function vL(t){if(!t)return[];if(t.length===1)return t[0];const e=[];for(const n of t)hE(e,n);return e}function dA({rowGroup:t,physicalColumns:e,filter:n,strict:i=!0}){if(!n)return!1;if("$and"in n&&Array.isArray(n.$and))return n.$and.some(r=>dA({rowGroup:t,physicalColumns:e,filter:r,strict:i}));if("$or"in n&&Array.isArray(n.$or))return n.$or.every(r=>dA({rowGroup:t,physicalColumns:e,filter:r,strict:i}));if("$nor"in n&&Array.isArray(n.$nor))return!1;for(const[r,s]of Object.entries(n)){const o=e.indexOf(r);if(o===-1)continue;const a=t.columns[o].meta_data?.statistics;if(!a)continue;const{min:l,max:c,min_value:u,max_value:f}=a,h=u!==void 0?u:l,A=f!==void 0?f:c;if(!(h===void 0||A===void 0)){for(const[d,g]of Object.entries(s||{}))if(d==="$gt"&&A<=g||d==="$gte"&&A<g||d==="$lt"&&h>=g||d==="$lte"&&h>g||d==="$eq"&&(g<h||g>A)||d==="$ne"&&Yr(h,A,i)&&Yr(h,g,i)||d==="$in"&&Array.isArray(g)&&g.every(m=>m<h||m>A)||d==="$nin"&&Array.isArray(g)&&Yr(h,A,i)&&g.includes(h))return!0}}return!1}const BL=1<<21;function SL({metadata:t,rowStart:e=0,rowEnd:n=1/0,columns:i,filter:r,filterStrict:s=!0,useOffsetIndex:o=!1}){if(!t)throw new Error("parquetPlan requires metadata");const a=[],l=[],c=[],u=gL(uE(t));let f=0;for(const h of t.row_groups){const A=Number(h.num_rows),d=f+A;if(A>0&&d>e&&f<n&&!dA({rowGroup:h,physicalColumns:u,filter:r,strict:s})){const g=[];for(const C of h.columns){const y=C.meta_data;if(C.file_path)throw new Error("parquet file_path not supported");if(!y)throw new Error("parquet column metadata is undefined");if(!i||i.includes(y.path_in_schema[0])){const I=y.dictionary_page_offset||y.data_page_offset,x=Number(I),E=Number(I+y.total_compressed_size);if(o&&C.offset_index_offset&&C.offset_index_length){const S=Number(C.offset_index_offset);g.push({columnMetadata:y,offsetIndex:{startByte:S,endByte:S+C.offset_index_length},bounds:{startByte:x,endByte:E}})}else g.push({columnMetadata:y,range:{startByte:x,endByte:E}})}}const m=Math.max(e-f,0),p=Math.min(n-f,A);a.push({chunks:g,rowGroup:h,groupStart:f,groupRows:A,selectStart:m,selectEnd:p});let w;for(const C of g)if("offsetIndex"in C)c.push(C.offsetIndex);else{const{range:y}=C;i?l.push(y):w&&y.endByte-w.startByte<=BL?w.endByte=y.endByte:(w&&l.push(w),w={...y})}w&&l.push(w)}f=d}return isFinite(n)||(n=f),l.push(...c),{metadata:t,rowStart:e,rowEnd:n,columns:i,fetches:l,groups:a}}function DL(t,{fetches:e}){const n=e.map(({startByte:i,endByte:r})=>t.slice(i,r));return{byteLength:t.byteLength,slice(i,r=t.byteLength){const s=e.findIndex(({startByte:o,endByte:a})=>o<=i&&r<=a);if(s<0)return t.slice(i,r);if(e[s].startByte!==i||e[s].endByte!==r){const o=i-e[s].startByte,a=r-e[s].startByte;return n[s]instanceof Promise?n[s].then(l=>l.slice(o,a)):n[s].slice(o,a)}else return n[s]}}}const gA=new TextDecoder,AE=new WeakMap;function dE(t,e=Wc){if(Array.isArray(t))return t.map(n=>dE(n,e));if(typeof t!="object")return t;if("metadata"in t){const n=QL(t.metadata),i=t.typed_value&&$c(t.typed_value,n,e),r=t.value&&Bo(el(t.value),n,e);return i&&r?{...r,...i}:i??r}return t}function $c(t,e,n){if(t&&typeof t=="object"&&!Array.isArray(t)&&!(t instanceof Uint8Array)){if("typed_value"in t)return $c(t.typed_value,e,n);if("value"in t&&t.value instanceof Uint8Array)return Bo(el(t.value),e,n);const i={};for(const[r,s]of Object.entries(t))i[r]=$c(s,e,n);return i}return t instanceof Uint8Array?Bo(el(t),e,n):Array.isArray(t)?t.map(i=>$c(i,e,n)):t}function el(t){return{view:new DataView(t.buffer,t.byteOffset,t.byteLength),offset:0}}function QL(t){let e=AE.get(t.buffer);e||(e=new Map,AE.set(t.buffer,e));const n=`${t.byteOffset}:${t.byteLength}`,i=e.get(n);if(i)return i;const r=el(t),s=r.view.getUint8(r.offset++),o=s&15;if(o!==1)throw new Error(`parquet unsupported variant metadata version: ${o}`);const a=(s>>4&1)===1,l=(s>>6&3)+1,c=Li(r,l),u=new Array(c+1);for(let d=0;d<u.length;d++)u[d]=Li(r,l);const f=r.offset,h=new Array(c);for(let d=0;d<c;d++){const g=u[d],m=u[d+1],p=new Uint8Array(t.buffer,t.byteOffset+f+g,m-g);h[d]=gA.decode(p)}const A={dictionary:h,sorted:a};return e.set(n,A),A}function Li(t,e){let n=0;for(let i=0;i<e;i++)n|=t.view.getUint8(t.offset+i)<<i*8;return t.offset+=e,n}function Bo(t,e,n){const i=t.view.getUint8(t.offset++),r=i&3,s=i>>2;if(r===0)return kL(t,s,n);if(r===2)return RL(t,s,e,n);if(r===3)return FL(t,s,e,n);const o=new Uint8Array(t.view.buffer,t.view.byteOffset+t.offset,s);return t.offset+=s,gA.decode(o)}function kL(t,e,n){switch(e){case 0:return null;case 1:return!0;case 2:return!1;case 3:{const i=t.view.getInt8(t.offset);return t.offset+=1,i}case 4:{const i=t.view.getInt16(t.offset,!0);return t.offset+=2,i}case 5:{const i=t.view.getInt32(t.offset,!0);return t.offset+=4,i}case 6:{const i=t.view.getBigInt64(t.offset,!0);return t.offset+=8,i}case 7:{const i=t.view.getFloat64(t.offset,!0);return t.offset+=8,i}case 8:return pA(t,4);case 9:return pA(t,8);case 10:return pA(t,16);case 11:{const i=t.view.getInt32(t.offset,!0);return t.offset+=4,n.dateFromDays(i)}case 12:case 13:{const i=t.view.getBigInt64(t.offset,!0);return t.offset+=8,n.timestampFromMicroseconds(i)}case 14:{const i=t.view.getFloat32(t.offset,!0);return t.offset+=4,i}case 15:return gE(t);case 16:{const i=gE(t);return gA.decode(i)}case 17:{const i=t.view.getBigInt64(t.offset,!0);return t.offset+=8,i}case 18:case 19:{const i=t.view.getBigInt64(t.offset,!0);return t.offset+=8,n.timestampFromNanoseconds(i)}case 20:{const i=new Uint8Array(t.view.buffer,t.view.byteOffset+t.offset,16);t.offset+=16;const r=Array.from(i,s=>s.toString(16).padStart(2,"0")).join("");return`${r.slice(0,8)}-${r.slice(8,12)}-${r.slice(12,16)}-${r.slice(16,20)}-${r.slice(20)}`}default:throw new Error(`parquet unsupported variant primitive type: ${e}`)}}function RL(t,e,n,i){const r=(e&3)+1,s=(e>>2&3)+1,a=e>>4&1?Li(t,4):t.view.getUint8(t.offset++),l=new Array(a);for(let f=0;f<a;f++)l[f]=Li(t,s);const c=new Array(a+1);for(let f=0;f<c.length;f++)c[f]=Li(t,r);const u={};for(let f=0;f<a;f++){const h=n.dictionary[l[f]],A={view:t.view,offset:t.offset+c[f]};u[h]=Bo(A,n,i)}return t.offset+=c[c.length-1],u}function FL(t,e,n,i){const r=e&3,s=e>>2&1,o=r+1,a=Li(t,s?4:1),l=new Array(a+1);for(let f=0;f<l.length;f++)l[f]=Li(t,o);const c=t.offset,u=new Array(a);for(let f=0;f<a;f++){const h={view:t.view,offset:c+l[f]};u[f]=Bo(h,n,i)}return t.offset=c+l[l.length-1],u}function pA(t,e){const n=t.view.getUint8(t.offset);t.offset+=1;let i;if(e===4)i=BigInt(t.view.getInt32(t.offset,!0)),t.offset+=4;else if(e===8)i=t.view.getBigInt64(t.offset,!0),t.offset+=8;else{const r=t.view.getBigUint64(t.offset,!0);i=t.view.getBigInt64(t.offset+8,!0)<<64n|r,t.offset+=16}return Number(i)*10**-n}function gE(t){const e=t.view.getUint32(t.offset,!0);t.offset+=4;const n=new Uint8Array(t.view.buffer,t.view.byteOffset+t.offset,e);return t.offset+=e,n}function pE(t,e,n,i,r){const s=fA(r);if(!e?.length&&!n.length){if(!s||!i.length)return i;e=new Array(i.length).fill(s)}const o=e?.length||n.length,a=r.map(({element:d})=>d.repetition_type);let l=0;const c=[t];let u=t,f=0,h=0,A=0;if(n[0])for(;f<a.length-2&&A<n[0];)f++,a[f]!=="REQUIRED"&&(u=u.at(-1),c.push(u),h++),a[f]==="REPEATED"&&A++;for(let d=0;d<o;d++){const g=e?.length?e[d]:s,m=n[d];for(;f&&(m<A||a[f]!=="REPEATED");)a[f]!=="REQUIRED"&&(c.pop(),h--),a[f]==="REPEATED"&&A--,f--;for(u=c.at(-1);(f<a.length-2||a[f+1]==="REPEATED")&&(h<g||a[f+1]==="REQUIRED");){if(f++,a[f]!=="REQUIRED"){const p=[];u.push(p),u=p,c.push(p),h++}a[f]==="REPEATED"&&A++}g===s?u.push(i[l++]):f===a.length-2?u.push(null):u.push([])}if(!t.length)for(let d=0;d<s;d++){const g=[];u.push(g),u=g}return t}function So(t,e,n,i=0){const r=e.path.join("."),s=e.element.repetition_type==="OPTIONAL",o=s?i+1:i;if(pL(e)){let a=e.children[0],l=o;a.children.length===1&&(a=a.children[0],l++),So(t,a,n,l);const c=a.path.join("."),u=t.get(c);if(!u)throw new Error("parquet list column missing values");s&&tl(u,i),t.set(r,u),t.delete(c);return}if(mL(e)){const a=e.children[0].element.name;So(t,e.children[0].children[0],n,o+1),So(t,e.children[0].children[1],n,o+1);const l=t.get(`${r}.${a}.key`),c=t.get(`${r}.${a}.value`);if(!l)throw new Error("parquet map column missing keys");if(!c)throw new Error("parquet map column missing values");if(l.length!==c.length)throw new Error("parquet map column key/value length mismatch");const u=mE(l,c,o);s&&tl(u,i),t.delete(`${r}.${a}.key`),t.delete(`${r}.${a}.value`),t.set(r,u);return}if(e.children.length){const a=e.element.repetition_type==="REQUIRED"?i:i+1,l={};for(const u of e.children){So(t,u,n,a);const f=t.get(u.path.join("."));if(!f)throw new Error("parquet struct missing child data");l[u.element.name]=f}for(const u of e.children)t.delete(u.path.join("."));let c=wE(l,a);e.element.logical_type?.type==="VARIANT"&&(c=dE(c,n)),s&&tl(c,i),t.set(r,c)}}function tl(t,e){for(let n=0;n<t.length;n++)e?tl(t[n],e-1):t[n]=t[n][0]}function mE(t,e,n){const i=[];for(let r=0;r<t.length;r++)if(n)i.push(mE(t[r],e[r],n-1));else if(t[r]){const s={};for(let o=0;o<t[r].length;o++){const a=e[r][o];s[t[r][o]]=a===void 0?null:a}i.push(s)}else i.push(void 0);return i}function wE(t,e){const n=Object.keys(t),i=t[n[0]]?.length,r=[];for(let s=0;s<i;s++){const o={};for(const a of n){if(t[a].length!==i)throw new Error("parquet struct parsing error");o[a]=t[a][s]}e?r.push(wE(o,e-1)):r.push(o)}return r}function Do(t,e,n){const i=n instanceof Int32Array,r=Pi(t),s=Pi(t);Pi(t);let o=AA(t),a=0;n[a++]=i?Number(o):o;const l=r/s;for(;a<e;){const c=AA(t),u=new Uint8Array(s);for(let f=0;f<s;f++)u[f]=t.view.getUint8(t.offset++);for(let f=0;f<s&&a<e;f++){const h=BigInt(u[f]);if(h){let A=0n,d=l;const g=(1n<<h)-1n;for(;d&&a<e;){let m=BigInt(t.view.getUint8(t.offset))>>A&g;for(A+=h;A>=8;)A-=8n,t.offset++,A&&(m|=BigInt(t.view.getUint8(t.offset))<<h-A&g);const p=c+m;o+=p,n[a++]=i?Number(o):o,d--}d&&(t.offset+=Math.ceil((d*Number(h)+Number(A))/8))}else for(let A=0;A<l&&a<e;A++)o+=c,n[a++]=i?Number(o):o}}}function yE(t,e,n){const i=new Int32Array(e);Do(t,e,i);for(let r=0;r<e;r++)n[r]=new Uint8Array(t.view.buffer,t.view.byteOffset+t.offset,i[r]),t.offset+=i[r]}function NL(t,e,n){const i=new Int32Array(e);Do(t,e,i);const r=new Int32Array(e);Do(t,e,r);for(let s=0;s<e;s++){const o=new Uint8Array(t.view.buffer,t.view.byteOffset+t.offset,r[s]);i[s]?(n[s]=new Uint8Array(i[s]+r[s]),n[s].set(n[s-1].subarray(0,i[s])),n[s].set(o,i[s])):n[s]=o,t.offset+=r[s]}}function nl(t){return 32-Math.clz32(t)}function Kn(t,e,n,i){i===void 0&&(i=t.view.getUint32(t.offset,!0),t.offset+=4);const r=t.offset;let s=0;for(;s<n.length;){const o=Pi(t);if(o&1)s=TL(t,o,e,n,s);else{const a=o>>>1;ML(t,a,e,n,s),s+=a}}t.offset=r+i}function ML(t,e,n,i,r){const s=n+7>>3;let o=0;for(let a=0;a<s;a++)o|=t.view.getUint8(t.offset++)<<(a<<3);for(let a=0;a<e;a++)i[r+a]=o}function TL(t,e,n,i,r){let s=e>>1<<3;const o=(1<<n)-1;let a=0;if(t.offset<t.view.byteLength)a=t.view.getUint8(t.offset++);else if(o)throw new Error(`parquet bitpack offset ${t.offset} out of range`);let l=8,c=0;for(;s;)c>8?(c-=8,l-=8,a>>>=8):l-c<n?(a|=t.view.getUint8(t.offset)<<l,t.offset++,l+=8):(r<i.length&&(i[r++]=a>>c&o),s--,c+=n);return r}function CE(t,e,n,i){const r=PL(n,i),s=new Uint8Array(e*r);for(let o=0;o<r;o++)for(let a=0;a<e;a++)s[a*r+o]=t.view.getUint8(t.offset++);if(n==="FLOAT")return new Float32Array(s.buffer);if(n==="DOUBLE")return new Float64Array(s.buffer);if(n==="INT32")return new Int32Array(s.buffer);if(n==="INT64")return new BigInt64Array(s.buffer);if(n==="FIXED_LEN_BYTE_ARRAY"){const o=new Array(e);for(let a=0;a<e;a++)o[a]=s.subarray(a*r,(a+1)*r);return o}throw new Error(`parquet byte_stream_split unsupported type: ${n}`)}function PL(t,e){switch(t){case"INT32":case"FLOAT":return 4;case"INT64":case"DOUBLE":return 8;case"FIXED_LEN_BYTE_ARRAY":if(!e)throw new Error("parquet byteWidth missing type_length");return e;default:throw new Error(`parquet unsupported type: ${t}`)}}function mA(t,e,n,i){if(n===0)return[];if(e==="BOOLEAN")return LL(t,n);if(e==="INT32")return OL(t,n);if(e==="INT64")return UL(t,n);if(e==="INT96")return _L(t,n);if(e==="FLOAT")return zL(t,n);if(e==="DOUBLE")return GL(t,n);if(e==="BYTE_ARRAY")return HL(t,n);if(e==="FIXED_LEN_BYTE_ARRAY"){if(!i)throw new Error("parquet missing fixed length");return YL(t,n,i)}else throw new Error(`parquet unhandled type: ${e}`)}function LL(t,e){const n=new Array(e);for(let i=0;i<e;i++){const r=t.offset+(i/8|0),s=i%8,o=t.view.getUint8(r);n[i]=(o&1<<s)!==0}return t.offset+=Math.ceil(e/8),n}function OL(t,e){const n=(t.view.byteOffset+t.offset)%4?new Int32Array(il(t.view.buffer,t.view.byteOffset+t.offset,e*4)):new Int32Array(t.view.buffer,t.view.byteOffset+t.offset,e);return t.offset+=e*4,n}function UL(t,e){const n=(t.view.byteOffset+t.offset)%8?new BigInt64Array(il(t.view.buffer,t.view.byteOffset+t.offset,e*8)):new BigInt64Array(t.view.buffer,t.view.byteOffset+t.offset,e);return t.offset+=e*8,n}function _L(t,e){const n=new Array(e);for(let i=0;i<e;i++){const r=t.view.getBigInt64(t.offset+i*12,!0),s=t.view.getInt32(t.offset+i*12+8,!0);n[i]=BigInt(s)<<64n|r}return t.offset+=e*12,n}function zL(t,e){const n=(t.view.byteOffset+t.offset)%4?new Float32Array(il(t.view.buffer,t.view.byteOffset+t.offset,e*4)):new Float32Array(t.view.buffer,t.view.byteOffset+t.offset,e);return t.offset+=e*4,n}function GL(t,e){const n=(t.view.byteOffset+t.offset)%8?new Float64Array(il(t.view.buffer,t.view.byteOffset+t.offset,e*8)):new Float64Array(t.view.buffer,t.view.byteOffset+t.offset,e);return t.offset+=e*8,n}function HL(t,e){const n=new Array(e);for(let i=0;i<e;i++){const r=t.view.getUint32(t.offset,!0);t.offset+=4,n[i]=new Uint8Array(t.view.buffer,t.view.byteOffset+t.offset,r),t.offset+=r}return n}function YL(t,e,n){const i=new Array(e);for(let r=0;r<e;r++)i[r]=new Uint8Array(t.view.buffer,t.view.byteOffset+t.offset,n),t.offset+=n;return i}function il(t,e,n){const i=new ArrayBuffer(n);return new Uint8Array(i).set(new Uint8Array(t,e,n)),i}const VL=[0,255,65535,16777215,4294967295];function bE(t,e,n,i,r){for(let s=0;s<r;s++)n[i+s]=t[e+s]}function JL(t,e){const n=t.byteLength,i=e.byteLength;let r=0,s=0;for(;r<n;){const o=t[r];if(r++,o<128)break}if(i&&r>=n)throw new Error("invalid snappy length header");for(;r<n;){const o=t[r];let a=0;if(r++,r>=n)throw new Error("missing eof marker");if((o&3)===0){let l=(o>>>2)+1;if(l>60){if(r+3>=n)throw new Error("snappy error literal pos + 3 >= inputLength");const c=l-60;l=t[r]+(t[r+1]<<8)+(t[r+2]<<16)+(t[r+3]<<24),l=(l&VL[c])+1,r+=c}if(r+l>n)throw new Error("snappy error literal exceeds input length");bE(t,r,e,s,l),r+=l,s+=l}else{let l=0;switch(o&3){case 1:a=(o>>>2&7)+4,l=t[r]+(o>>>5<<8),r++;break;case 2:if(n<=r+1)throw new Error("snappy error end of input");a=(o>>>2)+1,l=t[r]+(t[r+1]<<8),r+=2;break;case 3:if(n<=r+3)throw new Error("snappy error end of input");a=(o>>>2)+1,l=t[r]+(t[r+1]<<8)+(t[r+2]<<16)+(t[r+3]<<24),r+=4;break}if(l===0||isNaN(l))throw new Error(`invalid offset ${l} pos ${r} inputLength ${n}`);if(l>s)throw new Error("cannot copy from before start of buffer");bE(e,s-l,e,s,a),s+=a}}if(s!==i)throw new Error("premature end of input")}function qL(t,e,{type:n,element:i,schemaPath:r}){const s=new DataView(t.buffer,t.byteOffset,t.byteLength),o={view:s,offset:0};let a;const l=KL(o,e,r),{definitionLevels:c,numNulls:u}=jL(o,e,r),f=e.num_values-u;if(e.encoding==="PLAIN")a=mA(o,n,f,i.type_length);else if(e.encoding==="PLAIN_DICTIONARY"||e.encoding==="RLE_DICTIONARY"||e.encoding==="RLE"){const h=n==="BOOLEAN"?1:s.getUint8(o.offset++);h?(a=new Array(f),n==="BOOLEAN"?(Kn(o,h,a),a=a.map(A=>!!A)):Kn(o,h,a,s.byteLength-o.offset)):a=new Uint8Array(f)}else if(e.encoding==="BYTE_STREAM_SPLIT")a=CE(o,f,n,i.type_length);else if(e.encoding==="DELTA_BINARY_PACKED")a=n==="INT32"?new Int32Array(f):new BigInt64Array(f),Do(o,f,a);else if(e.encoding==="DELTA_LENGTH_BYTE_ARRAY")a=new Array(f),yE(o,f,a);else throw new Error(`parquet unsupported encoding: ${e.encoding}`);return{definitionLevels:c,repetitionLevels:l,dataPage:a}}function KL(t,e,n){if(n.length>1){const i=sE(n);if(i){const r=new Array(e.num_values);return Kn(t,nl(i),r),r}}return[]}function jL(t,e,n){const i=fA(n);if(!i)return{definitionLevels:[],numNulls:0};const r=new Array(e.num_values);Kn(t,nl(i),r);let s=e.num_values;for(const o of r)o===i&&s--;return s===0&&(r.length=0),{definitionLevels:r,numNulls:s}}function wA(t,e,n,i){let r;const s=i?.[n];if(n==="UNCOMPRESSED")r=t;else if(s)r=s(t,e);else if(n==="SNAPPY")r=new Uint8Array(e),JL(t,r);else throw new Error(`parquet unsupported compression codec: ${n}`);if(r?.length!==e)throw new Error(`parquet decompressed page length ${r?.length} does not match header ${e}`);return r}function WL(t,e,n){const r={view:new DataView(t.buffer,t.byteOffset,t.byteLength),offset:0},{type:s,element:o,schemaPath:a,codec:l,compressors:c}=n,u=e.data_page_header_v2;if(!u)throw new Error("parquet data page header v2 is undefined");const f=XL(r,u,a);r.offset=u.repetition_levels_byte_length;const h=ZL(r,u,a),A=e.uncompressed_page_size-u.definition_levels_byte_length-u.repetition_levels_byte_length;let d=t.subarray(r.offset);u.is_compressed!==!1&&(d=wA(d,A,l,c));const g=new DataView(d.buffer,d.byteOffset,d.byteLength),m={view:g,offset:0};let p;const w=u.num_values-u.num_nulls;if(u.encoding==="PLAIN")p=mA(m,s,w,o.type_length);else if(u.encoding==="RLE")p=new Array(w),Kn(m,1,p),p=p.map(C=>!!C);else if(u.encoding==="PLAIN_DICTIONARY"||u.encoding==="RLE_DICTIONARY"){const C=g.getUint8(m.offset++);p=new Array(w),Kn(m,C,p,A-1)}else if(u.encoding==="DELTA_BINARY_PACKED")p=s==="INT32"?new Int32Array(w):new BigInt64Array(w),Do(m,w,p);else if(u.encoding==="DELTA_LENGTH_BYTE_ARRAY")p=new Array(w),yE(m,w,p);else if(u.encoding==="DELTA_BYTE_ARRAY")p=new Array(w),NL(m,w,p);else if(u.encoding==="BYTE_STREAM_SPLIT")p=CE(m,w,s,o.type_length);else throw new Error(`parquet unsupported encoding: ${u.encoding}`);return{definitionLevels:h,repetitionLevels:f,dataPage:p}}function XL(t,e,n){const i=sE(n);if(!i)return[];const r=new Array(e.num_values);return Kn(t,nl(i),r,e.repetition_levels_byte_length),r}function ZL(t,e,n){const i=fA(n);if(i){const r=new Array(e.num_values);return Kn(t,nl(i),r,e.definition_levels_byte_length),r}}function EE(t,{groupStart:e,selectStart:n,selectEnd:i},r,s){const{pathInSchema:o,schemaPath:a}=r,l=oE(a),c=[];let u,f,h=0,A=0;const d=s&&(()=>{f&&s({pathInSchema:o,columnData:f,rowStart:e+h-f.length,rowEnd:e+h})});for(;(l?h<i:t.offset<t.view.byteLength-1)&&!(t.offset>=t.view.byteLength-1);){const g=$L(t);if(g.type==="DICTIONARY_PAGE"){const{data:m}=IE(t,g,r,u,void 0,0);m&&(u=eE(m,r))}else{const m=f?.length||0,p=IE(t,g,r,u,f,n-h);p.skipped?(c.length||(A+=p.skipped),h+=p.skipped):p.data&&f===p.data?h+=p.data.length-m:p.data&&p.data.length&&(d?.(),c.push(p.data),h+=p.data.length,f=p.data)}}return d?.(),{data:c,skipped:A}}function IE(t,e,n,i,r,s){const{type:o,element:a,schemaPath:l,codec:c,compressors:u}=n,f=new Uint8Array(t.view.buffer,t.view.byteOffset+t.offset,e.compressed_page_size);if(t.offset+=e.compressed_page_size,e.type==="DATA_PAGE"){const h=e.data_page_header;if(!h)throw new Error("parquet data page header is undefined");if(s>h.num_values&&oE(l))return{skipped:h.num_values};const A=wA(f,Number(e.uncompressed_page_size),c,u),{definitionLevels:d,repetitionLevels:g,dataPage:m}=qL(A,h,n),p=$b(m,i,h.encoding,n),w=Array.isArray(r)?r:[];return{skipped:0,data:pE(w,d,g,p,l)}}else if(e.type==="DATA_PAGE_V2"){const h=e.data_page_header_v2;if(!h)throw new Error("parquet data page header v2 is undefined");if(s>h.num_rows)return{skipped:h.num_values};const{definitionLevels:A,repetitionLevels:d,dataPage:g}=WL(f,e,n),m=$b(g,i,h.encoding,n),p=Array.isArray(r)?r:[];return{skipped:0,data:pE(p,A,d,m,l)}}else if(e.type==="DICTIONARY_PAGE"){const h=e.dictionary_page_header;if(!h)throw new Error("parquet dictionary page header is undefined");const A=wA(f,Number(e.uncompressed_page_size),c,u),d={view:new DataView(A.buffer,A.byteOffset,A.byteLength),offset:0};return{skipped:0,data:mA(d,o,h.num_values,a.type_length)}}else throw new Error(`parquet unsupported page type: ${e.type}`)}function $L(t){const e=hA(t),n=Wb[e.field_1],i=e.field_2,r=e.field_3,s=e.field_4,o=e.field_5&&{num_values:e.field_5.field_1,encoding:Ti[e.field_5.field_2],definition_level_encoding:Ti[e.field_5.field_3],repetition_level_encoding:Ti[e.field_5.field_4],statistics:e.field_5.field_5&&{max:e.field_5.field_5.field_1,min:e.field_5.field_5.field_2,null_count:e.field_5.field_5.field_3,distinct_count:e.field_5.field_5.field_4,max_value:e.field_5.field_5.field_5,min_value:e.field_5.field_5.field_6}},a=e.field_6,l=e.field_7&&{num_values:e.field_7.field_1,encoding:Ti[e.field_7.field_2],is_sorted:e.field_7.field_3},c=e.field_8&&{num_values:e.field_8.field_1,num_nulls:e.field_8.field_2,num_rows:e.field_8.field_3,encoding:Ti[e.field_8.field_4],definition_levels_byte_length:e.field_8.field_5,repetition_levels_byte_length:e.field_8.field_6,is_compressed:e.field_8.field_7===void 0?!0:e.field_8.field_7,statistics:e.field_8.field_8};return{type:n,uncompressed_page_size:i,compressed_page_size:r,crc:s,data_page_header:o,index_page_header:a,dictionary_page_header:l,data_page_header_v2:c}}function e7(t){const e=hA(t);return{page_locations:e.field_1.map(t7),unencoded_byte_array_data_bytes:e.field_2}}function t7(t){return{offset:t.field_1,compressed_page_size:t.field_2,first_row_index:t.field_3}}function n7(t,{metadata:e},n){const{file:i,compressors:r,utf8:s}=t,o=[],a={...Wc,...t.parsers};for(const l of n.chunks){const{columnMetadata:c}=l,u=rE(e.schema,c.path_in_schema),f={pathInSchema:c.path_in_schema,type:c.type,element:u[u.length-1].element,schemaPath:u,codec:c.codec,parsers:a,compressors:r,utf8:s};if(!("offsetIndex"in l)){o.push({pathInSchema:c.path_in_schema,data:Promise.resolve(i.slice(l.range.startByte,l.range.endByte)).then(h=>{const A={view:new DataView(h),offset:0};return EE(A,n,f,t.onPage)})});continue}o.push({pathInSchema:c.path_in_schema,data:Promise.resolve(i.slice(l.offsetIndex.startByte,l.offsetIndex.endByte)).then(async h=>{const A=e7({view:new DataView(h),offset:0}),{selectStart:d,selectEnd:g}=n,m=A.page_locations;let p=NaN,w=NaN,C=0;for(let D=0;D<m.length;D++){const B=m[D],k=Number(B.first_row_index),F=D+1<m.length?Number(m[D+1].first_row_index):n.groupRows;k<g&&F>d&&(Number.isNaN(p)&&(p=Number(B.offset),C=k),w=Number(B.offset)+B.compressed_page_size)}const y=await i.slice(p,w),I={view:new DataView(y),offset:0},x=C?{...n,groupStart:n.groupStart+C,selectStart:n.selectStart-C,selectEnd:n.selectEnd-C}:n,{data:E,skipped:S}=EE(I,x,f,t.onPage);return{data:E,skipped:C+S}})})}return{groupStart:n.groupStart,groupRows:n.groupRows,asyncColumns:o}}function i7(t,e,n){const{asyncColumns:i}=t;n={...Wc,...n};const r=[];for(const s of e.children)if(s.children.length){const o=i.filter(c=>c.pathInSchema[0]===s.element.name);if(!o.length)continue;const a=new Map,l=Promise.all(o.map(c=>c.data.then(({data:u})=>{a.set(c.pathInSchema.join("."),vL(u))}))).then(()=>{So(a,s,n);const c=a.get(s.path.join("."));if(!c)throw new Error("parquet column data not assembled");return{data:[c],skipped:0}});r.push({pathInSchema:s.path,data:l})}else{const o=i.find(a=>a.pathInSchema[0]===s.element.name);o&&r.push(o)}return{...t,asyncColumns:r}}const xE=new Map,r7=200;function s7(t){if(!t.metadata)throw new Error("parquet requires metadata");const e=SL(t);return t.file=DL(t.file,e),e.groups.map(n=>n7(t,e,n))}function o7(t){if(!t)return[];if(t.length===1)return t[0];let e=0;for(const r of t)e+=r.length;const n=Array(e);let i=0;for(const r of t){for(let s=0;s<r.length;s++)n[i+s]=r[s];i+=r.length}return n}function a7(t){const e=t.join(""),n=xE.get(e);if(n)return n;const i=t.map((s,o)=>JSON.stringify(s)+": columnData["+o+"][row - columnSkipped["+o+"]]").join(`,
|
|
842
|
+
`),r=new Function("groupData","selectStart","selectCount","columnData","columnSkipped",`for (let selectRow = 0; selectRow < selectCount; selectRow++) {
|
|
843
|
+
const row = selectStart + selectRow;
|
|
844
|
+
groupData[selectRow] = {
|
|
845
|
+
`+i+`
|
|
846
|
+
};
|
|
847
|
+
}
|
|
848
|
+
return groupData;`);return xE.set(e,r),r}function c7(t,e,n,i,r,s){for(let o=0;o<n;o++){const a=e+o,l={};for(let c=0;c<i.length;c++)l[i[c]]=r[c][a-s[c]];t[o]=l}return t}async function l7({asyncColumns:t},e,n){const i=await Promise.all(t.map(f=>f.data)),r=t.length,s=Array(r),o=Array(r),a=Array(r);for(let f=0;f<r;f++)s[f]=t[f].pathInSchema[0],o[f]=o7(i[f].data),a[f]=i[f].skipped;const l=n-e,c=Array(l);return r>r7?c7(c,e,l,s,o,a):a7(s)(c,e,l,o,a)}async function vE(t){if("rowFormat"in t)throw new Error('parquetRead supports only object rows; use rowFormat: "object" implicitly');if("filter"in t||"filterStrict"in t)throw new Error("parquetRead does not support filtering");t.metadata??=await EL(t.file,t);const{rowStart:e=0,rowEnd:n,onChunk:i,onComplete:r}=t,s=s7(t);if(!r&&!i){for(const{asyncColumns:l}of s)for(const{data:c}of l)await c;return}const o=uE(t.metadata),a=s.map(l=>i7(l,o,t.parsers));if(i)for(const l of a)for(const c of l.asyncColumns)c.data.then(u=>{let f=l.groupStart+u.skipped;for(const h of u.data)i({columnName:c.pathInSchema[0],columnData:h,rowStart:f,rowEnd:f+h.length}),f+=h.length});if(r){const l=[];for(const c of a){const u=Math.max(e-c.groupStart,0),f=Math.min((n??1/0)-c.groupStart,c.groupRows),h=await l7(c,u,f);hE(l,h)}r(l)}else for(const{asyncColumns:l}of a)for(const{data:c}of l)await c}function u7(t){return new Promise((e,n)=>{vE({...t,onComplete:e}).catch(n)})}const f7=Object.freeze(Object.defineProperty({__proto__:null,parquetRead:vE,parquetReadObjects:u7},Symbol.toStringTag,{value:"Module"}));xt.GenomeSpy=Yy,xt.embed=hT,xt.favIcon=aT,xt.html=ae,xt.icon=oT,xt.loadSpec=Ky,Object.defineProperty(xt,Symbol.toStringTag,{value:"Module"})}));
|