Mercurial > repos > fubar > jbrowse2
view x/static/js/2047.b1e80504.chunk.js @ 133:cec274db51c0 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 7d28252954cae9f8db5f8a85d8f29cb2865b504b-dirty
author | fubar |
---|---|
date | Fri, 18 Oct 2024 11:57:55 +0000 |
parents | 49f3d3878413 |
children |
line wrap: on
line source
(()=>{var e,t,n,r,o={68584:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConfigurationReference:()=>r.A,ConfigurationSchema:()=>r.S,getConf:()=>o.FI,getTypeNamesFromExplicitlyTypedUnion:()=>o.JC,isBareConfigurationSchemaType:()=>o.C$,isConfigurationModel:()=>o.wo,isConfigurationSchemaType:()=>o.oG,isConfigurationSlotType:()=>o.Rg,readConfObject:()=>o.QZ});var r=n(42498),o=n(35254)},3496:(e,t,n)=>{"use strict";n.d(t,{cK:()=>a,pZ:()=>i});var r=n(26257);let o={};async function a(e,t,n){const i=function(e={}){return`${(0,r.A)(e)}`}(n);if(!o[i]){const r=n?.type;if(!r)throw new Error(`could not determine adapter type from adapter config snapshot ${JSON.stringify(n)}`);const s=e.getAdapterType(r);if(!s)throw new Error(`unknown data adapter type ${r}`);const c=s.configSchema.create(n,{pluginManager:e}),l=a.bind(null,e,t),u=new(await s.getAdapterClass())(c,l,e);o[i]={dataAdapter:u,sessionIds:new Set([t])}}const s=o[i];return s.sessionIds.add(t),s}function i(e){let t=0;const n=Object.keys(e);if(1===n.length&&"sessionId"===n[0]){const{sessionId:n}=e;Object.entries(o).forEach((([e,r])=>{r.sessionIds.delete(n),0===r.sessionIds.size&&(t+=1,delete o[e])}))}else Object.values(o).forEach((t=>{const n=e.regions||(e.region?[e.region]:[]);for(const e of n)void 0!==e.refName&&t.dataAdapter.freeResources(e)}));return t}},24388:(e,t,n)=>{"use strict";function r(e){return"object"==typeof e&&null!==e&&"abortSignalId"in e&&"number"==typeof e.abortSignalId}n.d(t,{IY:()=>s,SF:()=>a,bw:()=>r}),new WeakMap;const o=new Map;function a({abortSignalId:e}){let t=o.get(e);return t||(t=new AbortController,o.set(e,t)),t.signal}function i(e){const{signalId:t}=e,n=o.get(t);n&&n.abort()}function s(){return{signalAbort:i}}},85206:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=n(7552),o=n(29629),a=n(66765),i=n(81453),s=n(2051),c=n(24387),l=n(55851),u=n(8463),d=n(45266),f=n(63672),m=n(68850);function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(null,arguments)}const h=r.createContext({parentPopupState:null,rootPopupState:null});function b({onClick:e,closeAfterItemClick:t,...n}){const{rootPopupState:a}=(0,r.useContext)(h);if(!a)throw new Error("must be used inside a CascadingMenu");return r.createElement(o.A,p({},n,{onClick:n=>{t&&a.close(),e?.(n)}}))}function g({title:e,Icon:t,inset:n,popupId:s,...c}){const{parentPopupState:l}=(0,r.useContext)(h),u=(0,d.T6)({popupId:s,variant:"popover",parentPopupState:l});return r.createElement(r.Fragment,null,r.createElement(o.A,p({},(0,d._k)(u),(0,d.oe)(u)),t?r.createElement(a.A,null,r.createElement(t,null)):null,r.createElement(i.A,{primary:e,inset:n}),r.createElement(m.A,null)),r.createElement(y,p({},c,{anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},popupState:u})))}function y({popupState:e,onMenuItemClick:t,menuItems:n,classes:o,...a}){const{rootPopupState:i}=(0,r.useContext)(h),s=(0,r.useMemo)((()=>({rootPopupState:i||e,parentPopupState:e})),[i,e]);return r.createElement(h.Provider,{value:s},r.createElement(f.A,p({},a,(0,d.NA)(e))))}function v({popupState:e,onMenuItemClick:t,menuItems:n,...o}){const{rootPopupState:a}=(0,r.useContext)(h),i=(0,r.useMemo)((()=>({rootPopupState:a||e,parentPopupState:e})),[a,e]);return r.createElement(h.Provider,{value:i},r.createElement(s.A,p({},o,(0,d.NA)(e))))}function A({item:e}){return"subMenu"in e?r.createElement(u.m,{type:"subMenu"}):"checkbox"===e.type||"radio"===e.type?r.createElement(u.m,{type:e.type,checked:e.checked,disabled:e.disabled}):null}function E({onMenuItemClick:e,closeAfterItemClick:t,menuItems:n,...o}){const s=n.some((e=>"icon"in e&&e.icon));return r.createElement(r.Fragment,null,n.sort(((e,t)=>(t.priority||0)-(e.priority||0))).map(((n,u)=>{return"subMenu"in n?r.createElement(g,{key:`subMenu-${n.label}-${u}`,popupId:`subMenu-${n.label}`,title:n.label,Icon:n.icon,inset:s&&!n.icon,onMenuItemClick:e,menuItems:n.subMenu},r.createElement(E,p({},o,{closeAfterItemClick:t,onMenuItemClick:e,menuItems:n.subMenu}))):"divider"===n.type?r.createElement(c.A,{key:`divider-${JSON.stringify(n)}-${u}`,component:"li"}):"subHeader"===n.type?r.createElement(l.A,{key:`subHeader-${n.label}-${u}`},n.label):r.createElement(b,{key:`${n.label}-${u}`,closeAfterItemClick:t,onClick:"onClick"in n?(d=n.onClick,t=>{e(t,d)}):void 0,disabled:Boolean(n.disabled)},n.icon?r.createElement(a.A,null,r.createElement(n.icon,null)):null," ",r.createElement(i.A,{primary:n.label,secondary:n.subLabel,inset:s&&!n.icon}),r.createElement("div",{style:{flexGrow:1,minWidth:10}}),r.createElement(A,{item:n}));var d})))}const C=function(e){const{closeAfterItemClick:t=!0,...n}=e;return r.createElement(v,n,r.createElement(E,p({},n,{closeAfterItemClick:t})))}},92562:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(7552),o=n(48231),a=n(40985),i=n(2187),s=n(43163),c=n(61723),l=n(24387),u=n(20139),d=n(89022),f=n(68446),m=n(75785),p=n(82725),h=n(30157),b=n(38033),g=n(13476);const y=(0,m.n9)()((e=>({closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})));function v({error:e}){return r.createElement("div",{style:{width:800,margin:40}},r.createElement(b.A,{error:e}))}const A=(0,f.observer)((function(e){const{classes:t}=y(),{title:n,header:f,children:m,onClose:b}=e,A=(0,o.A)();return r.createElement(a.A,e,r.createElement(i.A,null,r.isValidElement(f)?f:r.createElement(s.A,null,r.createElement(g.A,{html:n||""}),b?r.createElement(c.A,{className:t.closeButton,onClick:()=>{b()}},r.createElement(h.A,null)):null),r.createElement(l.A,null),r.createElement(p.tH,{FallbackComponent:v},r.createElement(u.A,{theme:(0,d.A)(A,{components:{MuiInputBase:{styleOverrides:{input:{boxSizing:"content-box!important"}}}}})},m))))}))},88373:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(7552),o=n(48231),a=n(36715),i=n(98879),s=n(75785),c=n(40085);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(null,arguments)}const u=(0,s.n9)()((e=>({input:{},inputBase:{},typography:{top:6,left:2,position:"absolute",whiteSpace:"nowrap",visibility:"hidden"},inputRoot:{padding:e.spacing(.5)},inputFocused:{borderStyle:"solid",borderWidth:2}}))),d=r.forwardRef((function(e,t){const{value:n,setValue:s,variant:d,...f}=e,[m,{width:p}]=(0,c.A)(),[h,b]=(0,r.useState)(),[g,y]=(0,r.useState)(null),[v,A]=(0,r.useState)(!1);(0,r.useEffect)((()=>{v&&(g?.blur(),A(!1))}),[v,g]);const{classes:E}=u(e,{props:e}),C=(0,o.A)(),w=void 0===h?n:h;return r.createElement("div",l({},f,{ref:t}),r.createElement("div",{style:{position:"relative"}},r.createElement(a.A,{ref:m,component:"span",variant:d,className:E.typography},w)),r.createElement(i.Ay,{inputRef:e=>{y(e)},className:E.inputBase,inputProps:{style:{width:p,...d&&"inherit"!==d?C.typography[d]:{}}},classes:{input:E.input,root:E.inputRoot,focused:E.inputFocused},value:w,onChange:e=>{b(e.target.value)},onKeyDown:e=>{"Enter"===e.key?g?.blur():"Escape"===e.key&&(b(void 0),A(!0))},onBlur:()=>{s(h||n||""),b(void 0)}}))}))},38033:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(7552),o=n(89003),a=n(61723),i=n(75785),s=n(21311),c=n(4902),l=n(71627);const u=(0,r.lazy)((()=>Promise.all([n.e(9245),n.e(4630)]).then(n.bind(n,74630)))),d=(0,i.n9)()((e=>({bg:{background:e.palette.divider,border:"1px solid black",margin:20},iconFloat:{float:"right",marginLeft:100}})));function f({error:e,onReset:t}){const{classes:n}=d(),[i,s]=(0,r.useState)(!1);return r.createElement("div",{className:n.iconFloat},"object"==typeof e&&e&&"stack"in e?r.createElement(o.A,{title:"Get stack trace"},r.createElement(a.A,{onClick:()=>{s(!0)},color:"primary"},r.createElement(l.A,null))):null,t?r.createElement(o.A,{title:"Retry"},r.createElement(a.A,{onClick:t,color:"primary"},r.createElement(c.A,null))):null,i?r.createElement(r.Suspense,{fallback:null},r.createElement(u,{error:e,onClose:()=>{s(!1)}})):null)}const m=function({error:e,onReset:t}){const{classes:n}=d(),o=`${e}`,a=o.indexOf("expected an instance of"),i=-1!==a?o.slice(0,a):o,c=function(e){let t="";const n=e.indexOf("is not assignable");if(-1!==n){const r=e.slice(0,n+17),o=/.*at path "(.*)" snapshot `(.*)` is not assignable/m.exec(r);o&&(e=`Failed to load element at ${o[1]}...Failed element had snapshot`,t=o[2]);const a=/.*snapshot `(.*)` is not assignable/.exec(r);a&&(e="Failed to load element...Failed element had snapshot",t=a[1])}return t}(o);return r.createElement(s.A,null,i.slice(0,1e4),r.createElement(f,{error:e,onReset:t}),c?r.createElement("pre",{className:n.bg},JSON.stringify(JSON.parse(c),null,2)):null)}},69941:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(7552),o=n(29499),a=n(99123),i=n(58507),s=n(5401),c=n(92562);function l({onClose:e,open:t,onFactoryReset:n}){function l(t){"reset"===t&&n(),e()}return r.createElement(c.A,{title:"Reset",onClose:()=>{l()},open:t},r.createElement(o.A,null,r.createElement(a.A,null,"Are you sure you want to reset? This will restore the default configuration.")),r.createElement(i.A,null,r.createElement(s.A,{onClick:()=>{l()},color:"primary"},"Cancel"),r.createElement(s.A,{onClick:()=>{l("reset")},color:"primary",variant:"contained"},"OK")))}},90542:(e,t,n)=>{"use strict";n.d(t,{PM:()=>a,jT:()=>i,xU:()=>s});var r=n(2859),o=n(7552);function a(e){return o.createElement(r.A,e,o.createElement("path",{d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"}))}function i(e){return o.createElement(r.A,e,o.createElement("path",{d:"M19.31 18.9L22.39 22L21 23.39L17.88 20.32C17.19 20.75 16.37 21 15.5 21C13 21 11 19 11 16.5C11 14 13 12 15.5 12C18 12 20 14 20 16.5C20 17.38 19.75 18.21 19.31 18.9M15.5 19C16.88 19 18 17.88 18 16.5C18 15.12 16.88 14 15.5 14C14.12 14 13 15.12 13 16.5C13 17.88 14.12 19 15.5 19M21 4V6H3V4H21M3 16V14H9V16H3M3 11V9H21V11H18.97C17.96 10.37 16.77 10 15.5 10C14.23 10 13.04 10.37 12.03 11H3Z"}))}function s(e){return o.createElement(r.A,e,o.createElement("path",{d:"M21 19v-2H8v2h13m0-6v-2H8v2h13M8 7h13V5H8v2M4 5v2h2V5H4M3 5a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 01-1 1H4a1 1 0 01-1-1V5m1 6v2h2v-2H4m-1 0a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 01-1 1H4a1 1 0 01-1-1v-2m1 6v2h2v-2H4m-1 0a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 01-1 1H4a1 1 0 01-1-1v-2z"}))}},34895:(e,t,n)=>{"use strict";n.d(t,{P:()=>i,R:()=>a});var r=n(7552);function o(e){return"black"===e?{midnight:"#808080",forrest:"#666666",grape:"#4d4d4d",mandarin:"#333333",gray:"#1a1a1a"}:"white"===e?{midnight:"#ffffff",forrest:"#e6e6e6",grape:"#cccccc",mandarin:"#b3b3b3",gray:"#999999"}:{midnight:"#0d233f",forrest:"#135560",grape:"#721e63",mandarin:"#ffb11d",gray:"#dadada"}}function a({variant:e}){return r.createElement("svg",{viewBox:"0 0 175 175"},r.createElement(s,{variant:e}))}function i({variant:e}){return r.createElement("svg",{viewBox:"0 0 641 175"},r.createElement(c,{variant:e}),r.createElement(s,{variant:e}))}function s({variant:e}){const t=o(e);return r.createElement(r.Fragment,null,r.createElement("path",{style:{fill:t.midnight},d:"M120.5,57.5c.168,0,.333.012.5.013V40.506c-.167,0-.333-.006-.5-.006a98.325,98.325,0,0,0-77.4,37.565q-2.664,3.378-5.023,6.994l14.206,9.327Q54.043,91.709,56,89.179A81.363,81.363,0,0,1,120.5,57.5Z"}),r.createElement("path",{style:{fill:t.forrest},d:"M148.668,86.223c.308.133.6.283.908.42l6.746-15.618c-.153-.067-.3-.143-.454-.21a81.36,81.36,0,0,0-71.777,3.5q-2.8,1.544-5.469,3.309l9.249,14.054A63.93,63.93,0,0,1,148.668,86.223Z"}),r.createElement("path",{style:{fill:t.grape},d:"M170.894,109.37A63.929,63.929,0,0,0,113.4,88.861l2.336,15.474a48.456,48.456,0,0,1,44.322,15.42c.111.125.214.255.324.381l11.16-10C171.323,109.879,171.118,109.62,170.894,109.37Z"}),r.createElement("path",{style:{fill:t.mandarin},d:"M150.921,150.314c.04.163.07.326.107.489l16.509-4.058c-.039-.163-.067-.326-.107-.489A48.457,48.457,0,0,0,135.575,111.8l-5.515,15.591A32.466,32.466,0,0,1,150.921,150.314Z"}),r.createElement("path",{style:{fill:t.gray},d:"M134.1,138.129l-9.779,13.213a32.486,32.486,0,0,1,7.823,14.463l15.147.852c.012-.166.032-.331.041-.5A32.464,32.464,0,0,0,134.1,138.129Z"}))}function c({variant:e}){const t=o(e);return r.createElement("g",{"aria-label":"JBrowse",transform:"translate(213.084 144.241)",style:{fill:t.midnight}},r.createElement("path",{d:"m 26.355,-71.505 v 54.075 2.835 q 0,6.825 -0.42,10.185 -0.735,5.67 -2.835,9.135 -3.255,5.355 -8.505,8.4 -4.83,2.73 -11.55,3.57 L 1.47,11.76 Q 7.35,10.185 9.24,4.2 10.605,-0.105 10.605,-9.975 v -5.565 -55.965 q 1.785,0 4.62,0.315 2.835,0.21 3.255,0.21 1.785,0 2.94,-0.105 4.515,-0.42 4.935,-0.42 z"}),r.createElement("path",{d:"m 60.68836,-65.415 v 24.78 h 3.255 q 2.94,0 4.935,-0.525 2.1,-0.525 3.885,-2.1 2.31,-1.995 3.36,-4.83 1.155,-2.835 1.155,-6.09 0,-5.565 -2.94,-8.61 -2.94,-3.045 -8.295,-3.045 -2.52,0 -5.355,0.42 z m 0,30.87 V -6.09 h 5.25 q 4.725,0 8.505,-3.675 3.885,-3.78 3.885,-10.08 0,-8.19 -4.62,-11.655 -4.095,-3.045 -13.02,-3.045 z M 44.93836,0 v -71.505 h 27.09 q 9.135,0 14.385,3.255 6.51,3.99 6.51,12.6 0,7.035 -5.25,11.655 -4.62,4.095 -11.97,5.145 v 0.945 q 7.56,0.735 12.285,3.99 6.615,4.62 6.615,13.335 0,10.185 -7.98,15.75 -6.93,4.83 -17.43,4.83 z"}),r.createElement("path",{d:"M 109.44281,0.525 V -50.4 q 1.785,0.21 3.99,0.42 2.31,0.105 3.255,0.105 2.31,0 4.2,-0.21 1.89,-0.21 3.045,-0.315 v 13.02 q 1.89,-6.51 5.46,-9.87 4.41,-4.095 11.655,-4.095 -0.315,2.73 -0.42,6.825 -0.105,3.99 -0.105,7.455 l -0.945,0.84 q -0.945,-0.735 -2.415,-1.05 -1.47,-0.315 -2.94,-0.315 -3.57,0 -6.195,1.89 -2.52,1.785 -3.465,5.04 -0.42,1.155 -0.525,3.15 -0.105,1.89 -0.105,4.515 v 4.515 19.005 q -1.785,-0.21 -2.625,-0.21 -3.675,-0.315 -4.62,-0.315 -2.31,0 -4.2,0.21 -1.89,0.21 -3.045,0.315 z"}),r.createElement("path",{d:"m 173.77337,1.47 q -11.655,0 -18.585,-6.825 -6.93,-6.825 -6.93,-18.48 0,-12.6 6.72,-20.055 6.825,-7.455 18.9,-7.455 11.97,0 18.9,6.72 6.93,6.72 6.93,18.48 0,12.285 -6.72,19.74 -7.14,7.875 -19.215,7.875 z m 0.735,-48.09 q -5.88,0 -8.505,6.51 -2.205,5.565 -2.205,15.96 0,8.19 1.47,12.915 2.415,7.98 8.505,7.98 5.565,0 8.19,-7.875 2.205,-6.51 2.205,-16.695 0,-8.505 -2.1,-13.23 -2.52,-5.565 -7.56,-5.565 z"}),r.createElement("path",{d:"m 222.03563,-50.4 10.5,36.015 q 3.675,-11.235 5.67,-17.85 2.415,-8.085 5.04,-18.165 1.05,0.105 3.045,0.315 2.1,0.21 2.835,0.21 1.995,0 3.15,-0.105 1.26,-0.21 2.73,-0.42 l 10.71,36.015 q 5.88,-17.43 10.71,-36.015 l 4.2,0.315 4.095,-0.315 q -5.145,13.125 -9.135,24.57 -5.04,14.28 -8.505,26.355 -1.89,-0.21 -3.36,-0.42 -1.365,-0.105 -2.205,-0.105 -1.89,0 -3.36,0.21 -1.365,0.21 -2.31,0.315 l -10.605,-34.755 q -4.41,13.65 -6.72,21.105 -2.31,7.35 -4.095,13.65 -1.89,-0.21 -3.36,-0.42 -1.365,-0.105 -2.31,-0.105 -1.995,0 -3.465,0.21 -1.365,0.21 -2.31,0.315 -3.78,-12.81 -5.04,-17.01 -2.205,-7.245 -5.46,-17.01 -2.835,-8.4 -5.88,-16.905 1.575,0 4.305,0.315 2.73,0.21 3.36,0.21 1.47,0 4.305,-0.21 2.835,-0.315 3.465,-0.315 z"}),r.createElement("path",{d:"m 292.84172,-12.81 h 2.625 q 1.47,4.095 4.62,6.51 3.15,2.415 7.35,2.415 2.94,0 5.46,-1.785 2.625,-1.89 2.625,-4.62 0,-3.885 -6.195,-6.615 -10.395,-4.62 -11.655,-5.46 -6.405,-4.515 -6.405,-12.285 0,-7.77 5.25,-12.18 5.25,-4.515 12.81,-4.515 3.99,0 8.085,1.365 4.095,1.26 7.14,3.57 l -2.52,9.24 h -2.94 q -0.63,-3.57 -3.57,-6.195 -2.835,-2.625 -6.405,-2.625 -3.15,0 -5.46,1.575 -2.31,1.47 -2.31,4.515 0,3.885 6.405,6.51 10.185,4.095 11.865,5.25 6.405,4.41 6.405,12.81 0,7.455 -5.46,12.18 -5.355,4.62 -14.805,4.62 -8.19,0 -14.49,-4.305 z"}),r.createElement("path",{d:"m 349.61228,-29.925 h 15.54 q 0,-6.51 -1.05,-10.395 -1.68,-6.3 -5.88,-6.3 -5.04,0 -7.14,6.195 -1.47,4.305 -1.47,10.5 z m 30.03,5.04 h -30.03 q 0,9.135 3.045,13.86 3.57,5.67 11.55,5.67 3.255,0 6.405,-1.26 3.15,-1.26 5.88,-3.465 l 1.26,0.945 -2.31,5.88 q -6.72,4.725 -15.015,4.725 -12.915,0 -19.635,-7.245 -6.72,-7.245 -6.72,-20.37 0,-11.235 6.405,-18.165 6.51,-7.035 17.64,-7.035 11.655,0 16.905,7.56 4.62,6.615 4.62,18.9 z"}))}},8463:(e,t,n)=>{"use strict";n.d(t,{A:()=>M,m:()=>C});var r=n(7552),o=n(6679),a=n(24387),i=n(55851),s=n(66765),c=n(29629),l=n(81453),u=n(4407),d=n(943),f=n(9555),m=n(75785),p=n(12756),h=n(49296),b=n(23224),g=n(69381),y=n(70996),v=n(99546);function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A.apply(null,arguments)}const E=(0,m.n9)()({paper:{position:"fixed",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",top:0,left:0,outline:0},menuItemEndDecoration:{padding:0,margin:0,height:16}});function C(e){const{classes:t}=E(),{type:n}=e;let o,a,i;switch("checked"in e&&({checked:o,disabled:a}=e),n){case"subMenu":i=r.createElement(p.A,{color:"action"});break;case"checkbox":if(o){const e=a?"inherit":void 0;i=r.createElement(h.A,{color:e})}else i=r.createElement(b.A,{color:"action"});break;case"radio":if(o){const e=a?"inherit":void 0;i=r.createElement(g.A,{color:e})}else i=r.createElement(y.A,{color:"action"})}return r.createElement("div",{className:t.menuItemEndDecoration},i)}function w(e){return"divider"!==e.type&&"subHeader"!==e.type&&!e.disabled}const S=r.forwardRef((function(e,t){const[n,f]=(0,r.useState)(),[m,p]=(0,r.useState)(),[h,b]=(0,r.useState)(!1),[g,y]=(0,r.useState)(),[A,M]=(0,r.useState)(),T=(0,r.useRef)(null),{classes:k}=E(),{menuItems:x,onMenuItemClick:I,open:P,onClose:N,anchorEl:O,top:L=!1}=e;(0,r.useEffect)((()=>{P||(f(void 0),p(void 0))}),[P]),(0,r.useEffect)((()=>{const e=P&&Boolean(n);let t;return e&&!h?t=setTimeout((()=>{b(!0)}),300):!e&&h&&(t=setTimeout((()=>{b(!1)}),300)),()=>{clearTimeout(t)}}),[h,P,n]),(0,r.useEffect)((()=>{if(O){const e=O.getBoundingClientRect();A&&e.top===A.top&&e.left+e.width===A.left||M({top:e.top,left:e.left+e.width})}else A||M({})}),[A,O]);const R=x.some((e=>"icon"in e&&e.icon)),F={},$=r.createElement(r.Fragment,null,r.createElement(o.A,{autoFocusItem:P&&!h,dense:!0},x.sort(((e,t)=>(t.priority||0)-(e.priority||0))).map(((e,t)=>{if("divider"===e.type)return r.createElement(a.A,{key:`divider-${JSON.stringify(e)}-${t}`,component:"li"});if("subHeader"===e.type)return r.createElement(i.A,{key:`subHeader-${e.label}-${t}`},e.label);let n=null,o=null;if(e.icon){const t=e.icon;n=r.createElement(s.A,null,r.createElement(t,null))}"subMenu"in e?o=r.createElement(C,{type:"subMenu"}):"checkbox"!==e.type&&"radio"!==e.type||(o=r.createElement(C,{type:e.type,checked:e.checked,disabled:e.disabled}));const u="onClick"in e?(d=e.onClick,e=>{I(e,d)}):void 0;var d;return r.createElement(c.A,{key:e.id||String(e.label),style:F,selected:t===g,onClick:u,onMouseMove:n=>{n.currentTarget!==document.activeElement&&(n.currentTarget.focus(),y(t)),"subMenu"in e?m!==t&&(f(n.currentTarget),p(t)):(f(void 0),p(void 0))},onKeyDown:n=>{switch(n.key){case"ArrowLeft":case"Escape":N?.(n,"escapeKeyDown");break;case"ArrowUp":y(function(e,t){return(0,v.findLastIndex)(e.slice(0,t),w)}(x,t));break;case"ArrowDown":{const e=function(e,t){const n=e.slice(t+1).findIndex(w);return-1===n?n:t+1+n}(x,t);y(e);break}default:!("subMenu"in e)||"ArrowRight"!==n.key&&"Enter"!==n.key||(f(n.currentTarget),p(t),b(!0))}},disabled:Boolean(e.disabled)},n,r.createElement(l.A,{primary:e.label,secondary:e.subLabel,inset:R&&!e.icon}),o)}))),x.map(((e,t)=>{let o=null;return"subMenu"in e&&(o=r.createElement(S,{key:e.id||String(e.label),anchorEl:n,open:h&&m===t,onClose:()=>{b(!1),f(void 0)},onMenuItemClick:I,menuItems:e.subMenu})),o})));return L?$:r.createElement(u.A,{in:P,style:{transformOrigin:"0 0 0"},ref:t},r.createElement(d.A,{elevation:8,ref:T,className:k.paper,style:{...A}},$))})),M=function(e){const{open:t,onClose:n,menuItems:o,onMenuItemClick:a,...i}=e;return r.createElement(f.Ay,A({open:t,onClose:n,anchorOrigin:{vertical:"bottom",horizontal:"right",...i.anchorOrigin},transformOrigin:{vertical:"top",horizontal:"left",...i.transformOrigin}},i),r.createElement(S,{open:t,onClose:n,menuItems:o,onMenuItemClick:a,top:!0}))}},66684:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7552);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(null,arguments)}const a=(0,n(75785).n9)()({horizontalHandle:{cursor:"row-resize",width:"100%"},verticalHandle:{cursor:"col-resize",height:"100%"},flexbox_verticalHandle:{cursor:"col-resize",alignSelf:"stretch"},flexbox_horizontalHandle:{cursor:"row-resize",alignSelf:"stretch"}}),i=function({onDrag:e,vertical:t=!1,flexbox:n=!1,className:i,onMouseDown:s,...c}){const[l,u]=(0,r.useState)(!1),d=(0,r.useRef)(0),f=(0,r.useRef)(0),{classes:m,cx:p}=a();let h;return(0,r.useEffect)((()=>{function n(n){n.preventDefault();const r=t?n.clientX:n.clientY,o=d.current-r,a=r-f.current;f.current=r,e(a,o)}function r(){u(!1)}return l?(window.addEventListener("mousemove",n,!0),window.addEventListener("mouseup",r,!0),()=>{window.removeEventListener("mousemove",n,!0),window.removeEventListener("mouseup",r,!0)}):()=>{}}),[l,e,t]),h=n?t?m.flexbox_verticalHandle:m.flexbox_horizontalHandle:t?m.verticalHandle:m.horizontalHandle,r.createElement("div",o({"data-resizer":"true",onMouseDown:e=>{e.preventDefault();const n=t?e.clientX:e.clientY;d.current=n,f.current=n,u(!0),s?.(e)},className:p(h,i)},c))}},87686:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(7552),o=n(68446),a=n(29499),i=n(36715),s=n(58507),c=n(5401),l=n(92562);const u=(0,o.observer)((function({model:e,handleClose:t}){return r.createElement(l.A,{maxWidth:"xl",open:!0,onClose:t,title:"Reference sequence"},r.createElement(a.A,null,r.createElement(i.A,null,"Are you sure you want to return to the import form? This will lose your current view")),r.createElement(s.A,null,r.createElement(c.A,{onClick:()=>{e.clearView(),t()},variant:"contained",color:"primary",autoFocus:!0},"OK"),r.createElement(c.A,{onClick:()=>{t()},color:"secondary",variant:"contained"},"Cancel")))}))},13476:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(7552),o=n(10424),a=n.n(o),i=n(53778),s=n.n(i),c=n(99546);let l=!1;const u=new RegExp(["a","b","br","code","div","em","h1","h2","h3","h4","h5","h6","i","img","li","p","pre","span","small","strong","table","tbody","sup","sub","td","tfoot","th","thead","tr","u","ul"].map((e=>`<${e}\\b[^>]*>`)).join("|"),"i");function d({html:e,className:t}){const n=(0,c.linkify)(e),o=(i=n,u.test(i)?n:a()(n));var i;return l||(l=!0,s().addHook("afterSanitizeAttributes",(e=>{"A"===e.tagName&&(e.setAttribute("rel","noopener noreferrer"),e.setAttribute("target","_blank"))}))),r.createElement("span",{className:t,dangerouslySetInnerHTML:{__html:s().sanitize(o)}})}},49823:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AssemblySelector:()=>z,CascadingMenu:()=>G.A,Dialog:()=>_.A,EditableTypography:()=>j.A,ErrorMessage:()=>D.A,FactoryResetDialog:()=>U.default,FatalErrorDialog:()=>H.A,FileSelector:()=>oe,LoadingEllipses:()=>ae.A,LogoFull:()=>k.P,Logomark:()=>k.R,Menu:()=>ie.A,MenuItemEndDecoration:()=>ie.m,PrerenderedCanvas:()=>ce,ResizeHandle:()=>ue.A,ReturnToImportFormDialog:()=>le.default,SanitizedHTML:()=>de.A,createJBrowseBaseTheme:()=>S,createJBrowseTheme:()=>M,defaultThemes:()=>C});var r=n(53954),o=n(46033),a=n(37231),i=n(8998),s=n(55194),c=n(89022),l=n(35068),u=n.n(l);const d=(0,c.A)(),f="#0D233F",m="#721E63",p=d.palette.augmentColor({color:{main:"#135560"}}),h=d.palette.augmentColor({color:{main:"#FFB11D"}}),b={A:d.palette.augmentColor({color:r.A}),C:d.palette.augmentColor({color:o.A}),G:d.palette.augmentColor({color:a.A}),T:d.palette.augmentColor({color:i.A})},g=[null,d.palette.augmentColor({color:{main:"#FF8080"}}),d.palette.augmentColor({color:{main:"#80FF80"}}),d.palette.augmentColor({color:{main:"#8080FF"}}),d.palette.augmentColor({color:{main:"#8080FF"}}),d.palette.augmentColor({color:{main:"#80FF80"}}),d.palette.augmentColor({color:{main:"#FF8080"}})],y=[null,d.palette.augmentColor({color:{main:"#8f8f8f"}}),d.palette.augmentColor({color:{main:"#adadad"}}),d.palette.augmentColor({color:{main:"#d8d8d8"}}),d.palette.augmentColor({color:{main:"#d8d8d8"}}),d.palette.augmentColor({color:{main:"#adadad"}}),d.palette.augmentColor({color:{main:"#8f8f8f"}})],v="#e22",A="#3e3";function E(){return{palette:{mode:void 0,primary:{main:f},secondary:{main:m},tertiary:p,quaternary:h,highlight:h,stopCodon:v,startCodon:A,bases:b,frames:y,framesCDS:g},components:{MuiLink:{styleOverrides:{root:({theme:e})=>({color:e.palette.tertiary.main})}}}}}const C={default:{...E(),name:"Default (from config)"},lightStock:{...E(),name:"Light (stock)"},lightMinimal:{name:"Light (minimal)",palette:{primary:{main:s.A[900]},secondary:{main:s.A[800]},tertiary:d.palette.augmentColor({color:{main:s.A[900]}}),quaternary:h,highlight:h,stopCodon:v,startCodon:A,bases:b,frames:y,framesCDS:g}},darkMinimal:{name:"Dark (minimal)",palette:{mode:"dark",primary:{main:s.A[700]},secondary:{main:s.A[800]},tertiary:d.palette.augmentColor({color:{main:s.A[900]}}),quaternary:h,highlight:h,stopCodon:v,startCodon:A,bases:b,frames:y,framesCDS:g}},darkStock:{name:"Dark (stock)",palette:{mode:"dark",primary:{main:f},secondary:{main:m},tertiary:p,quaternary:h,highlight:h,stopCodon:v,startCodon:A,bases:b,frames:y,framesCDS:g},components:{MuiAppBar:{defaultProps:{enableColorOnDark:!0},styleOverrides:{root:({theme:e})=>e.palette.primary.main}}}}};function w(e,t){return t}function S(e){const t={palette:e?.palette,typography:{fontSize:12},spacing:4,components:{MuiButton:{defaultProps:{size:"small"},styleOverrides:{root:({theme:e})=>"dark"===e.palette.mode?{color:e.palette.text.primary}:void 0}},MuiAccordion:{defaultProps:{disableGutters:!0,slotProps:{transition:{timeout:150,unmountOnExit:!0}}}},MuiFilledInput:{defaultProps:{margin:"dense"}},MuiFormControl:{defaultProps:{margin:"dense",size:"small"}},MuiFormHelperText:{defaultProps:{margin:"dense"}},MuiIconButton:{defaultProps:{size:"small"}},MuiInputBase:{defaultProps:{margin:"dense"}},MuiAutocomplete:{defaultProps:{size:"small"}},MuiInputLabel:{defaultProps:{margin:"dense"}},MuiToolbar:{defaultProps:{variant:"dense"}},MuiListItem:{defaultProps:{dense:!0}},MuiOutlinedInput:{defaultProps:{margin:"dense"}},MuiFab:{defaultProps:{size:"small"},styleOverrides:{secondary:{backgroundColor:e?.palette?.quaternary?.main}}},MuiTable:{defaultProps:{size:"small"}},MuiPopover:{defaultProps:{transitionDuration:0}},MuiMenu:{defaultProps:{transitionDuration:0}},MuiMenuItem:{defaultProps:{dense:!0}},MuiTextField:{defaultProps:{margin:"dense",variant:"standard"}},MuiLink:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.secondary})}},MuiCheckbox:{styleOverrides:{root:({theme:e})=>"dark"===e.palette.mode?{color:e.palette.text.secondary,"&.Mui-checked":{color:e.palette.text.secondary}}:void 0}},MuiRadio:{styleOverrides:{root:({theme:e})=>"dark"===e.palette.mode?{color:e.palette.text.secondary,"&.Mui-checked":{color:e.palette.text.secondary}}:void 0}},MuiFormLabel:{styleOverrides:{root:({theme:e})=>"dark"===e.palette.mode?{color:e.palette.text.secondary,"&.Mui-focused":{color:e.palette.text.secondary}}:void 0}},MuiAccordionSummary:{styleOverrides:{root:{backgroundColor:e?.palette?.tertiary?.main},content:{color:e?.palette?.tertiary?.contrastText}}},MuiToggleButtonGroup:{defaultProps:{size:"small"}}}};return u()(t,e||{},{arrayMerge:w})}function M(e={},t=C,n="default"){return(0,c.A)(S("default"===n?u()(t.default,T(e),{arrayMerge:w}):function(e={}){return e=T(e),e.palette?.quaternary||(e=u()(e,{palette:{quaternary:d.palette.augmentColor({color:{main:"#aaa"}})}})),e.palette?.tertiary||(e=u()(e,{palette:{tertiary:d.palette.augmentColor({color:{main:"#aaa"}})}})),e}(t[n])))}function T(e={}){return e.palette?.tertiary&&(e=u()(e,{palette:{tertiary:d.palette.augmentColor("color"in e.palette.tertiary?e.palette.tertiary:{color:e.palette.tertiary})}})),e.palette?.quaternary&&(e=u()(e,{palette:{quaternary:d.palette.augmentColor("color"in e.palette.quaternary?e.palette.quaternary:{color:e.palette.quaternary})}})),e}var k=n(34895),x=n(7552),I=n(1343),P=n(29629),N=n(68446),O=n(75785),L=n(68584),R=n(99546);function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F.apply(null,arguments)}const $=(0,O.n9)()({importFormEntry:{minWidth:180}}),z=(0,N.observer)((function({session:e,onChange:t,selected:n,InputProps:r,TextFieldProps:o,localStorageKey:a,helperText:i="Select assembly to view"}){const{classes:s}=$(),{assemblyNames:c,assemblyManager:l}=e,u=new URLSearchParams(window.location.search).get("config"),[d,f]="undefined"==typeof jest&&a?(0,R.useLocalStorage)(`lastAssembly-${[window.location.host+window.location.pathname,u,a].join("-")}`,n):(0,x.useState)(n),m=c.includes(d||"")?d:n;(0,x.useEffect)((()=>{m&&m!==n&&t(m)}),[m,t,n]);const p=c.length?"":"No configured assemblies";return x.createElement(I.A,F({select:!0,label:"Assembly",variant:"outlined",helperText:p||i,value:m||"",inputProps:{"data-testid":"assembly-selector"},onChange:e=>{f(e.target.value)},error:!!p,InputProps:r,disabled:!!p,className:s.importFormEntry},o),c.map((e=>{const t=l.get(e),n=t?(0,L.getConf)(t,"displayName"):"";return x.createElement(P.A,{key:e,value:e},n||e)})))}));var G=n(85206),_=n(92562),j=n(88373),D=n(38033),U=n(69941),H=n(56174),B=n(89003),q=n(82620),V=n(17776),J=n(17125),W=n(43787),K=n(2051),Y=n(25467),Z=n(92516),Q=n(43550),X=n(14862),ee=n(32813);function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},te.apply(null,arguments)}function ne(e){const{title:t,children:n,...r}=e;return x.createElement(B.A,{title:t||""},x.createElement(q.A,r,n))}function re(e,t){return"string"==typeof e&&e.length>t?`${e.slice(0,Math.max(0,t))}…`:e}const oe=(0,N.observer)((function(e){const{location:t,name:n,description:r,rootModel:o,setLocation:a}=e,i=!t||(0,Z.C1)(t)?"url":"file",[s,c]=(0,x.useState)(t&&"internetAccountId"in t&&t.internetAccountId?t.internetAccountId:i),l=(0,Z.bV)(o)?o.internetAccounts.filter((e=>"HTTPBasicInternetAccount"!==e.type)):[],[u,d]=(0,R.useLocalStorage)("fileSelector-recentlyUsedInternetAccounts",[]),f=Object.fromEntries(l.map((e=>[e.internetAccountId,e]))),m=[...new Set(l.map((e=>e.internetAccountId)))].sort(((e,t)=>u.indexOf(e)-u.indexOf(t))),p=m.slice(0,2),h=m.slice(2),[b,g]=(0,x.useState)(null),y=f[s],v=(0,x.useCallback)((e=>{a({...e,...y&&(0,Z.C1)(e)?{internetAccountId:y.internetAccountId}:{}})}),[a,y]);(0,x.useEffect)((()=>{y&&(0,Z.C1)(t)&&t.internetAccountId!==y.internetAccountId&&v(t)}),[t,y,v]);let A=x.createElement(X.A,te({},e,{setLocation:v,label:y?.selectorLabel}));if("file"===s&&(A=x.createElement(Q.A,e)),y?.SelectorComponent){const{SelectorComponent:t}=y;A=x.createElement(t,te({},e,{setLocation:v}))}return x.createElement(x.Fragment,null,x.createElement(V.A,{display:"flex"},x.createElement(J.A,{shrink:!0},n)),x.createElement(V.A,{display:"flex",flexDirection:"row"},x.createElement(V.A,null,x.createElement(W.A,{value:s,exclusive:!0,onChange:(e,n)=>{d([...new Set([n,...u].filter(R.notEmpty))]),n&&c(n),(0,Z.C1)(t)&&v(t)},"aria-label":"file, url, or account picker"},new URLSearchParams(window.location.search).get("adminKey")?null:x.createElement(q.A,{value:"file","aria-label":"local file"},"File"),x.createElement(q.A,{value:"url","aria-label":"url"},"URL"),p.map((e=>{const{internetAccountId:t,name:n,toggleContents:r}=f[e];return x.createElement(ne,{key:e,value:t,title:n},"string"==typeof r?re(r,5):r||re(n,5))})),h.length>0?x.createElement(q.A,{onClick:e=>{g(e.target)},selected:!1},"More",x.createElement(ee.A,null)):null),x.createElement(K.A,{open:Boolean(b),anchorEl:b,onClose:()=>{g(null)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},h.map((e=>{const{internetAccountId:t,name:n}=f[e];return x.createElement(P.A,{key:e,value:t,onClick:()=>{d([...new Set([t,...u].filter(R.notEmpty))]),c(t),g(null)}},n)}))))),A,x.createElement(Y.A,null,r))}));var ae=n(37565),ie=n(8463),se=n(18010);const ce=function(e){const{width:t,height:n,highResolutionScaling:r=1,style:o={},imageData:a,blockKey:i,showSoftClip:s}=e,[c,l]=(0,x.useState)(!1),u=(0,x.useRef)(null);return(0,x.useEffect)((()=>{if(!a)return;const e=u.current;if(!e)return;const t=e.getContext("2d");t&&((0,se.pv)(a,t),l(!0))}),[a]),x.createElement("canvas",{"data-testid":["prerendered_canvas",s?"softclipped":"",i,c?"done":""].filter((e=>!!e)).join("_"),ref:u,width:t*r,height:n*r,style:{width:t,height:n,...o}})};var le=n(87686),ue=n(66684),de=n(13476)},43334:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});class r extends Map{constructor(e={}){if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof e.maxAge&&0===e.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=e.maxSize,this.maxAge=e.maxAge||Number.POSITIVE_INFINITY,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(e){if("function"==typeof this.onEviction)for(const[t,n]of e)this.onEviction(t,n.value)}_deleteIfExpired(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.onEviction&&this.onEviction(e,t.value),this.delete(e))}_getOrDeleteIfExpired(e,t){if(!this._deleteIfExpired(e,t))return t.value}_getItemValue(e,t){return t.expiry?this._getOrDeleteIfExpired(e,t):t.value}_peek(e,t){const n=t.get(e);return this._getItemValue(e,n)}_set(e,t){this.cache.set(e,t),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(e,t){this.oldCache.delete(e),this._set(e,t)}*_entriesAscending(){for(const e of this.oldCache){const[t,n]=e;this.cache.has(t)||this._deleteIfExpired(t,n)||(yield e)}for(const e of this.cache){const[t,n]=e;this._deleteIfExpired(t,n)||(yield e)}}get(e){if(this.cache.has(e)){const t=this.cache.get(e);return this._getItemValue(e,t)}if(this.oldCache.has(e)){const t=this.oldCache.get(e);if(!this._deleteIfExpired(e,t))return this._moveToRecent(e,t),t.value}}set(e,t,{maxAge:n=this.maxAge}={}){const r="number"==typeof n&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;this.cache.has(e)?this.cache.set(e,{value:t,expiry:r}):this._set(e,{value:t,expiry:r})}has(e){return this.cache.has(e)?!this._deleteIfExpired(e,this.cache.get(e)):!!this.oldCache.has(e)&&!this._deleteIfExpired(e,this.oldCache.get(e))}peek(e){return this.cache.has(e)?this._peek(e,this.cache):this.oldCache.has(e)?this._peek(e,this.oldCache):void 0}delete(e){const t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this._entriesAscending()],n=t.length-e;n<0?(this.cache=new Map(t),this.oldCache=new Map,this._size=t.length):(n>0&&this._emitEvictions(t.slice(0,n)),this.oldCache=new Map(t.slice(n)),this.cache=new Map,this._size=0),this.maxSize=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.cache){const[t,n]=e;this._deleteIfExpired(t,n)||(yield[t,n.value])}for(const e of this.oldCache){const[t,n]=e;this.cache.has(t)||this._deleteIfExpired(t,n)||(yield[t,n.value])}}*entriesDescending(){let e=[...this.cache];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;this._deleteIfExpired(r,o)||(yield[r,o.value])}e=[...this.oldCache];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;this.cache.has(r)||this._deleteIfExpired(r,o)||(yield[r,o.value])}}*entriesAscending(){for(const[e,t]of this._entriesAscending())yield[e,t.value]}get size(){if(!this._size)return this.oldCache.size;let e=0;for(const t of this.oldCache.keys())this.cache.has(t)||e++;return Math.min(this._size+e,this.maxSize)}entries(){return this.entriesAscending()}forEach(e,t=this){for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}},99546:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AuthNeededError:()=>c._u,ImageBitmapType:()=>b.bV,ReactRendering:()=>g.aE,RetryError:()=>c.J_,SimpleFeature:()=>y.A,TextSearchManager:()=>c.rz,abortBreakPoint:()=>l.Yo,assembleLocString:()=>P,assembleLocStringFast:()=>N,avg:()=>Fe,blobToDataURL:()=>v.y,bpSpanPx:()=>q,bpToPx:()=>z,bytesForRegions:()=>be,cartesianToPolar:()=>H,checkAbortSignal:()=>l.pB,clamp:()=>$,coarseStripHTML:()=>Te,compareLocStrings:()=>F,compareLocs:()=>R,complement:()=>oe,createCanvas:()=>b.Nw,createImageBitmap:()=>b.T9,dedupe:()=>h.Q,defaultCodonTable:()=>de,defaultStarts:()=>le,defaultStops:()=>ue,degToRad:()=>D,doesIntersect2:()=>p.R6,drawImageOntoCanvasContext:()=>b.pv,featureSpanPx:()=>B,findLast:()=>W,findLastIndex:()=>J,findParentThat:()=>w,findParentThatIs:()=>M,gatherOverlaps:()=>_e,generateCodonTable:()=>fe,getBpDisplayStr:()=>ye,getContainingDisplay:()=>I,getContainingTrack:()=>x,getContainingView:()=>k,getEnv:()=>Ie,getFillProps:()=>Ue,getFrame:()=>ce,getLayoutId:()=>Ce,getSerializedSvg:()=>g.Jy,getSession:()=>T,getStr:()=>Me,getStrokeProps:()=>De,getTickDisplayStr:()=>Ae,getUriLink:()=>Se,getViewParams:()=>Ee,groupBy:()=>$e,hashCode:()=>pe,intersection2:()=>p.ky,isAbortException:()=>l.Kp,isAbstractMenuManager:()=>c.Nh,isAppRootModel:()=>c.bV,isAuthNeededException:()=>c.ZL,isBlobLocation:()=>c.rF,isContainedWithin:()=>p.Xx,isDisplayModel:()=>c.Uy,isElectron:()=>te,isFeature:()=>y.l,isGzip:()=>Be,isLocalPathLocation:()=>c.EV,isRetryException:()=>c.yH,isRootModelWithInternetAccounts:()=>c.lL,isSelectionContainer:()=>c.mY,isSessionModel:()=>c.Y$,isSessionModelWithConfigEditing:()=>c.u3,isSessionModelWithConnectionEditing:()=>c.gx,isSessionModelWithConnections:()=>c.BY,isSessionModelWithWidgets:()=>c.lO,isSessionWithAddTracks:()=>c.QW,isSessionWithSessionPlugins:()=>c.zA,isSessionWithShareURL:()=>c.xv,isSupportedIndexingAdapter:()=>ge,isTrackModel:()=>c.xU,isTrackViewModel:()=>c.EO,isUriLocation:()=>c.C1,isViewContainer:()=>c.DW,isViewModel:()=>c.Tl,iterMap:()=>V,linkify:()=>ke,localStorageGetItem:()=>Pe,localStorageSetItem:()=>Ne,makeAbortError:()=>l.zm,makeAbortableReaction:()=>K,max:()=>Oe,measureGridWidth:()=>xe,measureText:()=>se,mergeIntervals:()=>Ge,min:()=>Le,minmax:()=>Q,notEmpty:()=>ze,objectHash:()=>he,observeAbortSignal:()=>l.R1,parseLocString:()=>L,parseLocStringOneBased:()=>O,polarToCartesian:()=>U,rIC:()=>ae,radToDeg:()=>j,renameRegionIfNeeded:()=>Y,renameRegionsIfNeeded:()=>Z,renderToAbstractCanvas:()=>g.u1,renderToStaticMarkup:()=>He,revcom:()=>ne,reverse:()=>re,shorten:()=>X,springAnimate:()=>S,stringify:()=>ee,stripAlpha:()=>je,sum:()=>Re,toLocale:()=>ve,updateStatus:()=>me,useDebounce:()=>A,useDebouncedCallback:()=>C,useLocalStorage:()=>we,useWidthSetter:()=>E,when:()=>m.z,whenPresent:()=>m.I});var r=n(7552),o=n(503),a=n.n(o),i=n(36422),s=n(42489),c=n(92516),l=n(20166),u=n(40085),d=n(87485),f=n(28485),m=n(1864),p=n(32595),h=n(3519),b=n(18010),g=n(98506),y=n(6434),v=n(31673);function A(e,t){const[n,o]=(0,r.useState)(e);return(0,r.useEffect)((()=>{const n=setTimeout((()=>{o(e)}),t);return()=>{clearTimeout(n)}}),[e,t]),n}function E(e,t){const[n,{width:o}]=(0,u.A)();return(0,r.useEffect)((()=>{o&&(0,i.isAlive)(e)&&requestAnimationFrame((()=>{e.setWidth(o-2*Number.parseInt(t,10))}))}),[t,e,o]),n}function C(e,t=400){const n=(0,r.useRef)(),o=(0,r.useRef)();return(0,r.useEffect)((()=>{o.current&&clearTimeout(o.current)}),[]),function(...r){n.current=r,o.current&&clearTimeout(o.current),o.current=setTimeout((()=>{n.current&&e(...n.current)}),t)}}function w(e,t){if(!(0,i.hasParent)(e))throw new Error("node does not have parent");let n=(0,i.getParent)(e);for(;n&&(0,i.isAlive)(n);){if(t(n))return n;if(!(0,i.hasParent)(n))break;n=(0,i.getParent)(n)}throw new Error("no matching node found")}function S(e,t,n,r=()=>{},o=0,a=400,i=20,s=!0){let c;function l(u){const d=Date.now();let f=u.lastPosition,m=u.lastTime||d,p=u.lastVelocity||0;d>m+64&&(m=d);const h=Math.floor(d-m);for(let e=0;e<h;++e)p+=(-a*(f-t)+-i*p)/1*1/1e3,f+=1*p/1e3;const b=Math.abs(p)<=o,g=0===a||Math.abs(t-f)<=o;s&&0!==a&&(e<t?f>t:f<t)||b&&g?(n(t),r()):(n(f),c=requestAnimationFrame((()=>{l({lastPosition:f,lastTime:d,lastVelocity:p})})))}return o||(o=Math.abs(t-e)/1e3),[()=>{l({lastPosition:e})},()=>{cancelAnimationFrame(c)}]}function M(e,t){return w(e,t)}function T(e){try{return M(e,c.Y$)}catch(e){throw new Error("no session model found!")}}function k(e){try{return M(e,c.Tl)}catch(e){throw new Error("no containing view found")}}function x(e){try{return M(e,c.xU)}catch(e){throw new Error("no containing track found")}}function I(e){try{return M(e,c.Uy)}catch(e){throw new Error("no containing display found")}}function P(e){return N(e,ve)}function N(e,t=e=>e){const{assemblyName:n,refName:r,start:o,end:a,reversed:i}=e,s=n?`{${n}}`:"";let c,l;c=void 0!==o?`:${t(o+1)}`:void 0!==a?":1":"",l=void 0!==a?void 0!==o&&o+1===a?"":`..${t(a)}`:void 0!==o?"..":"";let u="";return i&&(u="[rev]"),`${s}${r}${c}${l}${u}`}function O(e,t){if(!e)throw new Error("no location string provided, could not parse");let n=!1;e.endsWith("[rev]")&&(n=!0,e=e.replace(/\[rev]$/,"")),e=e.replace(/\s/,"");const r=/({(.+)})?(.+)/.exec(e);if(!r)throw new Error(`invalid location string: "${e}"`);const[,,o,a]=r,i=o,s=a;if(!i&&s.startsWith("{}"))throw new Error(`no assembly name was provided in location "${s}"`);const c=s.lastIndexOf(":");if(-1===c){if(t(s,i))return{assemblyName:i,refName:s,reversed:n};throw new Error(`Unknown reference sequence "${s}"`)}const l=s.slice(0,c),u=s.slice(c+1);if(t(l,i)&&t(s,i))throw new Error(`ambiguous location string: "${e}"`);if(t(l,i)){if(!u)return{assemblyName:i,refName:l,reversed:n};{const t=/^(-?(\d+|\d{1,3}(,\d{3})*))(\.\.|-)(-?(\d+|\d{1,3}(,\d{3})*))$/.exec(u),r=/^(-?(\d+|\d{1,3}(,\d{3})*))(\.\.|-)?$/.exec(u);if(t){const[,e,,,,r]=t;if(void 0!==e&&void 0!==r)return{assemblyName:i,refName:l,start:+e.replaceAll(",",""),end:+r.replaceAll(",",""),reversed:n}}else{if(!r)throw new Error(`could not parse range "${u}" on location "${e}"`);{const[,e,,,t]=r;if(void 0!==e)return t?{assemblyName:i,refName:l,start:+e.replaceAll(",",""),reversed:n}:{assemblyName:i,refName:l,start:+e.replaceAll(",",""),end:+e.replaceAll(",",""),reversed:n}}}}}else if(t(s,i))return{assemblyName:i,refName:s,reversed:n};throw new Error(`unknown reference sequence name in location "${e}"`)}function L(e,t){const n=O(e,t);return"number"==typeof n.start&&(n.start-=1),n}function R(e,t){const n=e.assemblyName||t.assemblyName?(e.assemblyName||"").localeCompare(t.assemblyName||""):0;if(n)return n;const r=e.refName||t.refName?(e.refName||"").localeCompare(t.refName||""):0;if(r)return r;if(void 0!==e.start&&void 0!==t.start){const n=e.start-t.start;if(n)return n}if(void 0!==e.end&&void 0!==t.end){const n=e.end-t.end;if(n)return n}return 0}function F(e,t,n){return R(L(e,n),L(t,n))}function $(e,t,n){return e<t?t:e>n?n:e}function z(e,{reversed:t,end:n=0,start:r=0},o){return a=(t?n-e:e-r)/o,Math.round(10*a)/10;var a}const G=180/Math.PI,_=Math.PI/180;function j(e){return e*G%360}function D(e){return e*_%(2*Math.PI)}function U(e,t){return[e*Math.cos(t),e*Math.sin(t)]}function H(e,t){return[Math.sqrt(e*e+t*t),Math.atan(t/e)]}function B(e,t,n){return q(e.get("start"),e.get("end"),t,n)}function q(e,t,n,r){const o=z(e,n,r),a=z(t,n,r);return n.reversed?[a,o]:[o,a]}function V(e,t,n){const r=Array.from({length:n||0});let o=0;for(const n of e)r[o]=t(n),o+=1;return r}function J(e,t){let n=e.length;for(;n--;)if(t(e[n],n,e))return n;return-1}function W(e,t){let n=e.length;for(;n--;)if(t(e[n],n,e))return e[n]}function K(e,t,n,r,o,a,c){let u;function d(t){(0,l.Kp)(t)||((0,i.isAlive)(e)?c(t):console.error(t))}(0,i.addDisposer)(e,(0,s.reaction)((()=>{try{return t(e)}catch(e){return void d(e)}}),(async(t,r)=>{if(u&&!u.signal.aborted&&u.abort(),!(0,i.isAlive)(e))return;u=new AbortController;const s=u;o(s);try{const o=await n(t,s.signal,e,r);(0,l.pB)(s.signal),(0,i.isAlive)(e)&&a(o)}catch(e){s.signal.aborted||s.abort(),d(e)}}),r)),(0,i.addDisposer)(e,(()=>{u&&!u.signal.aborted&&u.abort()}))}function Y(e,t){if((0,i.isStateTreeNode)(t)&&!(0,i.isAlive)(t))return t;if(e?.[t.refName]){const n=e[(t=(0,i.isStateTreeNode)(t)?{...(0,i.getSnapshot)(t)}:{...t}).refName];if(n)return{...t,refName:n,originalRefName:t.refName}}return t}async function Z(e,t){const{regions:n=[],adapterConfig:r}=t;if(!t.sessionId)throw new Error("sessionId is required");const o=n.map((e=>e.assemblyName)),a=Object.fromEntries(await Promise.all([...new Set(o)].map((async n=>[n,await e.getRefNameMapForAdapter(r,n,t)]))));return{...t,regions:n.map(((e,t)=>Y(a[o[t]],e)))}}function Q(e,t){return[Math.min(e,t),Math.max(e,t)]}function X(e,t=70,n=30){return e.length>t?`${e.slice(0,n)}...${e.slice(-n)}`:e}function ee({refName:e,coord:t,assemblyName:n,oob:r},o){return[n&&o?`{${n}}`:"",e?`${X(e)}:${ve(t)}${r?" (out of bounds)":""}`:""].join("")}const te=/electron/i.test("undefined"!=typeof navigator?navigator.userAgent:"");function ne(e){return re(oe(e))}function re(e){return e.split("").reverse().join("")}const oe=(()=>{const e=/[ACGT]/gi,t={S:"S",w:"w",T:"A",r:"y",a:"t",N:"N",K:"M",x:"x",d:"h",Y:"R",V:"B",y:"r",M:"K",h:"d",k:"m",C:"G",g:"c",t:"a",A:"T",n:"n",W:"W",X:"X",m:"k",v:"b",B:"V",s:"s",H:"D",c:"g",D:"H",b:"v",R:"Y",G:"C"};return n=>n.replaceAll(e,(e=>t[e]||""))})(),ae="undefined"==typeof jest?"undefined"!=typeof window&&window.requestIdleCallback?window.requestIdleCallback:e=>setTimeout((()=>{e()}),1):e=>{e()},ie=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625];function se(e,t=10){const n=String(e);let r=0;for(let e=0;e<n.length;e++){const t=n.charCodeAt(e);r+=ie[t]??.5279276315789471}return r*t}function ce(e,t,n,r){return 1===n?(e+r)%3+1:(t-r)%3*-1-1}const le=["ATG"],ue=["TAA","TAG","TGA"],de={TCA:"S",TCC:"S",TCG:"S",TCT:"S",TTC:"F",TTT:"F",TTA:"L",TTG:"L",TAC:"Y",TAT:"Y",TAA:"*",TAG:"*",TGC:"C",TGT:"C",TGA:"*",TGG:"W",CTA:"L",CTC:"L",CTG:"L",CTT:"L",CCA:"P",CCC:"P",CCG:"P",CCT:"P",CAC:"H",CAT:"H",CAA:"Q",CAG:"Q",CGA:"R",CGC:"R",CGG:"R",CGT:"R",ATA:"I",ATC:"I",ATT:"I",ATG:"M",ACA:"T",ACC:"T",ACG:"T",ACT:"T",AAC:"N",AAT:"N",AAA:"K",AAG:"K",AGC:"S",AGT:"S",AGA:"R",AGG:"R",GTA:"V",GTC:"V",GTG:"V",GTT:"V",GCA:"A",GCC:"A",GCG:"A",GCT:"A",GAC:"D",GAT:"D",GAA:"E",GAG:"E",GGA:"G",GGC:"G",GGG:"G",GGT:"G"};function fe(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n],o=[];for(let e=0;e<3;e++){const t=n.charAt(e);o[e]=[],o[e][0]=t.toUpperCase(),o[e][1]=t.toLowerCase()}for(let e=0;e<2;e++){const n=o[0][e];for(let e=0;e<2;e++){const a=o[1][e];for(let e=0;e<2;e++){const i=o[2][e];t[n+a+i]=r}}}})),t}async function me(e,t,n){t(e);const r=await n();return t(""),r}function pe(e){let t=0;if(0===e.length)return t;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function he(e){return`${pe(JSON.stringify(e))}`}async function be(e,t){return(await Promise.all(e.map((e=>t.blocksForRange(e.refName,e.start,e.end))))).flat().map((e=>({start:e.minv.blockPosition,end:e.maxv.blockPosition+65535}))).reduce(((e,t)=>e+t.end-t.start),0)}function ge(e=""){return["Gff3TabixAdapter","VcfTabixAdapter","Gff3Adapter","VcfAdapter"].includes(e)}function ye(e){return Math.floor(e/1e6)>0?`${Number.parseFloat((e/1e6).toPrecision(3))}Mbp`:Math.floor(e/1e3)>0?`${Number.parseFloat((e/1e3).toPrecision(3))}Kbp`:`${ve(Math.floor(e))}bp`}function ve(e){return e.toLocaleString("en-US")}function Ae(e,t){return Math.floor(t/1e3)>0?`${ve(Number.parseFloat((e/1e6).toFixed(2)))}M`:ve(Math.floor(e))}function Ee(e,t){const{dynamicBlocks:n,staticBlocks:r,offsetPx:o}=k(e),a=n?.contentBlocks[0]||{},i=r?.contentBlocks[0]||{},s=r?.contentBlocks[1]||{};return{offsetPx:t?0:o-i.offsetPx,offsetPx1:t?0:o-s.offsetPx,start:a.start,end:a.end}}function Ce({sessionId:e,layoutId:t}){return`${e}-${t}`}function we(e,t){const[n,o]=(0,r.useState)((()=>{if("undefined"==typeof window)return t;try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return console.error(e),t}}));return[n,t=>{try{const r=t instanceof Function?t(n):t;o(r),"undefined"!=typeof window&&window.localStorage.setItem(e,JSON.stringify(r))}catch(e){console.error(e)}}]}function Se(e){const{uri:t,baseUri:n=""}=e;let r;try{r=new URL(t,n).href}catch(e){r=t}return r}function Me(e){return a()(e)?(0,c.C1)(e)?Se(e):JSON.stringify(e):String(e)}function Te(e){return e.replaceAll(/(<([^>]+)>)/gi,"")}function ke(e){return e.replaceAll(/(^|[\s\n]|<[A-Za-z]*\/?>)((?:https?|ftp):\/\/[-A-Z0-9+\u0026\u2019@#/%?=()~_|!:,.;]*[-A-Z0-9+\u0026@#/%=~()_|])/gi,"$1<a href='$2' target=\"_blank\">$2</a>")}function xe(e,t){const{padding:n=30,minWidth:r=80,fontSize:o=12,maxWidth:a=1e3,stripHTML:i=!1}=t||{};return Oe(e.map((e=>Me(e))).map((e=>i?Te(e):e)).map((e=>se(e,o))).map((e=>Math.min(Math.max(e+n,r),a))))}function Ie(e){return(0,i.getEnv)(e)}function Pe(e){return"undefined"!=typeof localStorage?localStorage.getItem(e):void 0}function Ne(e,t){"undefined"!=typeof localStorage&&localStorage.setItem(e,t)}function Oe(e,t=Number.NEGATIVE_INFINITY){let n=t;for(const t of e)n=t>n?t:n;return n}function Le(e,t=Number.POSITIVE_INFINITY){let n=t;for(const t of e)n=t<n?t:n;return n}function Re(e){let t=0;for(const n of e)t+=n;return t}function Fe(e){return Re(e)/e.length}function $e(e,t){const n={};for(const r of e){const e=t(r);n[e]||(n[e]=[]),n[e].push(r)}return n}function ze(e){return null!=e}function Ge(e,t=5e3){if(e.length<=1)return e;const n=[];let r=null;e=e.sort(((e,t)=>e.start-t.start)),n.push(e[0]);for(let o=1;o<e.length;o++)r=n.at(-1),r.end+t<e[o].start-t?n.push(e[o]):r.end<e[o].end&&(r.end=Math.max(r.end,e[o].end),n.pop(),n.push(r));return n}function _e(e,t=5e3){const n={};for(const t of e)n[t.refName]||(n[t.refName]=[]),n[t.refName].push(t);return Object.values(n).flatMap((e=>Ge(e.sort(((e,t)=>e.start-t.start)),t)))}function je(e){return(0,d.M)(e).alpha(1).toHex()}function De(e){const t=(0,d.M)(e);return{strokeOpacity:t.alpha(),stroke:t.alpha(1).toHex()}}function Ue(e){const t=(0,d.M)(e);return{fillOpacity:t.alpha(),fill:t.alpha(1).toHex()}}function He(e,t){const n=document.createElement("div");return(0,f.flushSync)((()=>{t?t(n).render(e):(0,f.render)(e,n)})),n.innerHTML.replaceAll(/\brgba\((.+?),[^,]+?\)/g,"rgb($1)")}function Be(e){return 31===e[0]&&139===e[1]&&8===e[2]}},91468:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UNKNOWN:()=>u,UNSUPPORTED:()=>d,generateUnknownTrackConf:()=>S,generateUnsupportedTrackConf:()=>w,getBlob:()=>m,getBlobMap:()=>p,getConfAssemblyNames:()=>s,getFileName:()=>A,getParentRenderProps:()=>l,getRpcSessionId:()=>c,getTrackAssemblyNames:()=>i,getTrackName:()=>M,guessAdapter:()=>E,guessTrackType:()=>C,makeIndex:()=>y,makeIndexType:()=>v,setBlobMap:()=>h,storeBlobLocation:()=>g});var r=n(36422),o=n(99546),a=n(68584);function i(e){return s(e.configuration)}function s(e){const t=(0,a.readConfObject)(e,"assemblyNames");if(!t){const t=(0,r.getParent)(e);if("sequence"in t)return[(0,a.readConfObject)(t,"name")];throw new Error("unknown assembly names")}return t}function c(e){let t;for(let n=e;!(0,r.isRoot)(n);n=(0,r.getParent)(n))"rpcSessionId"in n&&(t=n.rpcSessionId);if(!t)throw new Error("getRpcSessionId failed, no parent node in the state tree has an `rpcSessionId` attribute");return t}function l(e){for(let t=(0,r.getParent)(e);!(0,r.isRoot)(t);t=(0,r.getParent)(t))if("renderProps"in t)return t.renderProps();return{}}const u="UNKNOWN",d="UNSUPPORTED";let f={};function m(e){return f[e]}function p(){return f}function h(e){f=e}let b=0;function g(e){if("blob"in e){const t=`b${+Date.now()}-${b++}`;return f[t]=e.blob,{name:e.blob.name,blobId:t,locationType:"BlobLocation"}}return e}function y(e,t){return"uri"in e?{uri:e.uri+t,locationType:"UriLocation"}:"localPath"in e?{localPath:e.localPath+t,locationType:"LocalPathLocation"}:e}function v(e,t,n){return e?.toUpperCase().endsWith(t)?t:n}function A(e){const t="uri"in e?e.uri:void 0,n="localPath"in e?e.localPath:void 0,r="blobId"in e?e:void 0;return r?.name||t?.slice(t.lastIndexOf("/")+1)||n?.slice(n.replace(/\\/g,"/").lastIndexOf("/")+1)||""}function E(e,t,n,r){if(r){const{pluginManager:a}=(0,o.getEnv)(r),i=a.evaluateExtensionPoint("Core-guessAdapterForLocation",((e,t,n)=>{}))(e,t,n);if(i)return i}return{type:u}}function C(e,t){if(t){const n=(0,o.getSession)(t),r=(0,o.getEnv)(n).pluginManager.evaluateExtensionPoint("Core-guessTrackTypeForLocation",(e=>{}))(e);if(r)return r}return"FeatureTrack"}function w(e,t,n){const r={type:"FeatureTrack",name:`${e} (Unsupported)`,description:`Support not yet implemented for "${t}"`,category:n,trackId:""};return r.trackId=(0,o.objectHash)(r),r}function S(e,t,n){const r={type:"FeatureTrack",name:`${e} (Unknown)`,description:`Could not determine track type for "${t}"`,category:n,trackId:""};return r.trackId=(0,o.objectHash)(r),r}function M(e,t){const n=(0,a.readConfObject)(e,"name");if(!n&&"ReferenceSequenceTrack"===(0,a.readConfObject)(e,"type")){const n=t.assemblies.find((t=>t.sequence===e));return n?`Reference sequence (${(0,a.readConfObject)(n,"displayName")||(0,a.readConfObject)(n,"name")})`:"Reference sequence"}return n}},8832:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BlobLocation:()=>l,ElementId:()=>a,FileLocation:()=>f,LocalPathLocation:()=>c,NoAssemblyRegion:()=>i,Region:()=>s,UriLocation:()=>d,UriLocationRaw:()=>u});var r=n(36422),o=n(32761);const a=r.types.optional(r.types.identifier,(()=>(0,o.Ak)())),i=r.types.model("NoAssemblyRegion",{refName:r.types.string,start:r.types.number,end:r.types.number,reversed:r.types.optional(r.types.boolean,!1)}).actions((e=>({setRefName(t){e.refName=t}}))),s=r.types.compose("Region",i,r.types.model({assemblyName:r.types.string})),c=r.types.model("LocalPathLocation",{locationType:r.types.literal("LocalPathLocation"),localPath:r.types.string}),l=r.types.model("BlobLocation",{locationType:r.types.literal("BlobLocation"),name:r.types.string,blobId:r.types.string}),u=r.types.model("UriLocation",{locationType:r.types.literal("UriLocation"),uri:r.types.string,baseUri:r.types.maybe(r.types.string),internetAccountId:r.types.maybe(r.types.string),internetAccountPreAuthorization:r.types.maybe(r.types.model("InternetAccountPreAuthorization",{internetAccountType:r.types.string,authInfo:r.types.frozen()}))}),d=r.types.snapshotProcessor(u,{postProcessor:e=>{const{baseUri:t,...n}=e;return t?e:n}}),f=r.types.snapshotProcessor(r.types.union(c,d,l),{preProcessor(e){if(!e)return;const{locationType:t,...n}=e;if(!t){const{uri:e,localPath:t,blob:r}=n;let o="";return void 0!==e?o="UriLocation":void 0!==t?o="LocalPathLocation":void 0!==r&&(o="BlobLocation"),{...n,locationType:o}}return e}})},16574:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(7552),o=n(12678),a=n(9043),i=n(62367),s=n(69426),c=n(679),l=n(68384);const u=(0,r.lazy)((()=>n.e(8009).then(n.bind(n,18009))));class d extends o.A{name="DataManagementPlugin";exports={AssemblyManager:u};install(e){(0,a.A)(e),(0,i.A)(e),(0,l.Ay)(e),(0,s.A)(e),(0,c.A)(e)}configure(e){}}},2657:(e,t,n)=>{"use strict";n(68970);var r=n(76519),o=n(70129),a=n(24388),i=n(45103),s=n.n(i),c=n(12678),l=n(2862),u=n(99546);function d(e){return(void 0!==e.umdUrl||void 0!==e.url||void 0!==e.umdLoc)&&void 0!==e.name}function f(e){return void 0!==e.esmUrl||void 0!==e.esmLoc}function m(e){return void 0!==e.cjsUrl}class p{definitions=[];constructor(e=[],t){this.fetchESM=t?.fetchESM,this.fetchCJS=t?.fetchCJS,this.definitions=JSON.parse(JSON.stringify(e))}async loadCJSPlugin(e,t){const n=new URL(e.cjsUrl,t);if("http:"!==n.protocol&&"https:"!==n.protocol)throw new Error(`Cannot load plugins using protocol "${n.protocol}"`);if(!this.fetchCJS)throw new Error("No fetchCJS callback provided");return this.fetchCJS(n.href)}async loadESMPlugin(e,t){const n="esmUrl"in e?new URL(e.esmUrl,t):new URL(e.esmLoc.uri,e.esmLoc.baseUri);if("http:"!==n.protocol&&"https:"!==n.protocol)throw new Error(`cannot load plugins using protocol "${n.protocol}"`);if(!this.fetchESM)throw new Error("No ESM fetcher installed");const r=await this.fetchESM(n.href);if(!r)throw new Error(`Could not load ESM plugin: ${n}`);return r}async loadUMDPlugin(e,t){const n="url"in e?new URL(e.url,t):"umdUrl"in e?new URL(e.umdUrl,t):new URL(e.umdLoc.uri,e.umdLoc.baseUri);if("http:"!==n.protocol&&"https:"!==n.protocol)throw new Error(`cannot load plugins using protocol "${n.protocol}"`);const r=e.name,o=`JBrowsePlugin${r}`;"undefined"==typeof jest?await async function(e){if(!Boolean("WorkerGlobalScope"in globalThis))return t=e,new Promise(((e,n)=>{s()(t,((t,r)=>{t?n(t):e(r.src)}))}));var t;if(!globalThis.importScripts)throw new Error("cannot figure out how to load external JS scripts in this environment");await globalThis.importScripts(e)}(n.href):globalThis[o]={default:c.A};const a=globalThis[o];if(!a)throw new Error(`Failed to load UMD bundle for ${r}, ${o} is undefined`);return a}async loadPlugin(e,t){let n;if(u.isElectron&&m(e))n=await this.loadCJSPlugin(e,t);else if(f(e))n=await this.loadESMPlugin(e,t);else{if(!d(e))throw!u.isElectron&&m(e)?new Error(`CommonJS plugin found, but not in a NodeJS environment: ${JSON.stringify(e)}`):new Error(`Could not determine plugin type: ${JSON.stringify(e)}`);n=await this.loadUMDPlugin(e,t)}if(!n.default)throw new Error((d(r=e)?`UMD plugin ${r.name}`:f(r)?`ESM plugin ${r.esmUrl||r.esmLoc.uri}`:m(r)?`CJS plugin ${r.cjsUrl}`:"unknown plugin")+" does not have a default export, cannot load");var r;return n.default}installGlobalReExports(e){return e.JBrowseExports=Object.fromEntries(Object.entries(l.A).map((([e,t])=>[e,t]))),this}async load(e){return Promise.all(this.definitions.map((async t=>({plugin:await this.loadPlugin(t,e),definition:t}))))}}var h=n(39154);var b=n(2356),g=n(63163);(0,b.eO)(!0),async function(e,t){try{const n=await async function(e,t){const n=await function(){const e=new Promise((e=>{self.addEventListener("message",(function t(n){"config"===n.data.message&&(e(n.data.config),removeEventListener("message",t))}))}));return postMessage({message:"readyForConfig"}),e}(),r=new p(n.plugins,t).installGlobalReExports(self);return new o.A([...e.map((e=>({plugin:e}))),...await r.load(n.windowHref)].map((e=>new e.plugin))).createPluggableElements().configure()}(e,t),i=Object.fromEntries(n.getRpcElements().map((e=>{return[e.name,(t=e.execute.bind(e),e=>{const{channel:n,rpcDriverClassName:r}=e;return t({...e,statusCallback:e=>{self.rpcServer.emit(n,e)}},r)})];var t})));self.rpcServer=new r.A.Server({...i,...(0,a.IY)(),ping:async()=>{}}),postMessage({message:"ready"})}catch(e){postMessage({message:"error",error:(0,h.serializeError)(e)})}}(g.A,{fetchESM:e=>import(e)})},68970:()=>{self.window={addEventListener(){},fetch:self.fetch.bind(self),location:self.location,Date:self.Date,requestIdleCallback:e=>{e()},cancelIdleCallback:()=>{},requestAnimationFrame:e=>{e()},cancelAnimationFrame:()=>{},navigator:{}},self.document={createTextNode(){},querySelector:()=>({appendChild(){}}),documentElement:{},querySelectorAll:()=>[],createElement:()=>({style:{},setAttribute(){},removeAttribute(){},appendChild(){}})}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return o[e].call(n.exports,n,n.exports,i),n.exports}i.m=o,i.x=()=>{var e=i.O(void 0,[5255,3301,6837],(()=>i(2657)));return i.O(e)},e=[],i.O=(t,n,r,o)=>{if(!n){var a=1/0;for(u=0;u<e.length;u++){for(var[n,r,o]=e[u],s=!0,c=0;c<n.length;c++)(!1&o||a>=o)&&Object.keys(i.O).every((e=>i.O[e](n[c])))?n.splice(c--,1):(s=!1,o<a&&(a=o));if(s){e.splice(u--,1);var l=r();void 0!==l&&(t=l)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var o=Object.create(null);i.r(o);var a={};t=t||[null,n({}),n([]),n(n)];for(var s=2&r&&e;"object"==typeof s&&!~t.indexOf(s);s=n(s))Object.getOwnPropertyNames(s).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,i.d(o,a),o},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>"static/js/"+e+"."+{12:"c0c7bdf9",14:"b9913d1d",26:"604133d9",120:"a447052d",246:"9848bd41",266:"94eb2bf9",311:"2c004784",366:"b00bf6ca",399:"e36b7683",419:"021427b6",439:"bdc14632",457:"6d7b716d",489:"43cb4a5f",491:"0011d1ad",518:"7222a328",561:"8b38948f",596:"84c38eb7",722:"4329bc98",741:"a9772d36",759:"9c32be0d",772:"83c2d2db",937:"4f610bdf",946:"245d7df9",972:"c0d17685",1012:"a7d14de3",1029:"8c806427",1051:"8e1641e2",1110:"702cba94",1157:"c0d4652e",1189:"f18c6e1f",1260:"ee4ecbf4",1266:"cd6d9354",1281:"1d836fc4",1304:"a512b560",1310:"8a044016",1326:"19289940",1345:"aaaaf175",1354:"ded982ce",1503:"cc48d25a",1516:"ca4ab8f0",1537:"4fdb4e95",1598:"3b48685f",1637:"21a8cf01",1696:"8a290cef",1725:"795fc4d3",1752:"a727a500",1757:"a6d05bc3",1811:"7cfd8419",1822:"2cbe112a",1824:"c2ed4bca",1978:"1faf7d31",1996:"a37d9ec7",1999:"2554e815",2018:"9ce7fb06",2062:"a28f26f8",2141:"d36fb4a8",2197:"a5134ce4",2212:"116fbbf4",2241:"3d359b22",2246:"e5e65a4f",2249:"b91f0bb3",2306:"f8d640f4",2321:"ef211da9",2398:"731eb1c6",2412:"10574f7d",2418:"0b1f308b",2424:"7cd6703f",2493:"20e8e76c",2583:"db78b17f",2627:"300bea43",2645:"4b79a04c",2697:"4ab94d07",2729:"9660c29b",2775:"e25b4dd4",2777:"56f29f41",2820:"3c0e09be",2847:"009c96ee",2861:"aa6cd5b7",2872:"5129bbd8",2885:"8a30e856",2977:"aa562b03",2989:"031b43a0",3003:"0f0cbacd",3011:"9da53e7c",3012:"9940fd01",3029:"cd8dcca2",3103:"4dfe3f78",3106:"e1981605",3109:"3173f682",3162:"eb9bf76d",3167:"312d0953",3175:"af2c93a5",3199:"a36b17a7",3266:"accbd4dc",3274:"053c3df5",3301:"db457761",3304:"65e5d8dd",3311:"92fac4a6",3368:"6e9b017b",3384:"e146a796",3416:"f7c72cbe",3425:"be85a6ad",3474:"8c1888be",3497:"9db6611b",3525:"e74d3ff0",3550:"089089a8",3578:"058bdae5",3614:"af493134",3682:"840e721c",3728:"99a63442",3778:"e18101e6",3795:"0386c297",3862:"9fd8e870",3902:"69c7ff0c",3940:"c8b3da50",4033:"df8ecd0d",4060:"8757dbe8",4133:"451f5e47",4138:"57ad92a3",4234:"63e1ba57",4284:"61dbc58f",4345:"0a9072cc",4395:"8fda7b8b",4414:"7f4caeab",4435:"a57cabe2",4456:"93a06b74",4499:"3f0b2e70",4615:"dc35870f",4629:"1f1a55a3",4630:"f0bdb9f0",4659:"b65d8547",4704:"9b3995ff",4753:"834007ba",4755:"8d938db2",4770:"3d757d6b",4773:"6cd74b80",4806:"7e497d7a",4861:"6244e4c0",4863:"9dfed19c",4864:"28cfc358",4902:"452e575b",4947:"2e80fd2d",4974:"cf97ef5b",5008:"f8d32f92",5031:"6eccfd35",5090:"bc77ac67",5099:"14f82444",5101:"993a6b6e",5132:"00a31df0",5156:"75195722",5189:"3e22269d",5243:"9de20396",5255:"af554ced",5260:"e7b7aeb6",5327:"8f1dcfc1",5331:"28d667f0",5369:"993afa3f",5461:"5c8cf5d1",5484:"3ceeebff",5511:"154ce441",5515:"671905b2",5595:"b4517d69",5608:"1b8d39e1",5640:"33b8306c",5668:"73016b9c",5676:"818528e8",5677:"28a25579",5682:"ea285a50",5727:"f7a524b6",5736:"48705208",5746:"39e4296b",5763:"48010c9a",5896:"622b5e88",5903:"9145cef7",5904:"240caa72",5930:"0ffd2546",5951:"251be759",5998:"22bd8296",6021:"21769087",6043:"e402bf73",6054:"e0881c55",6149:"c6c4af73",6157:"96f40683",6205:"903f897d",6214:"0ed0ac32",6235:"93768761",6310:"ae82dc58",6323:"1c706a2d",6342:"62a02e7b",6391:"aabba4a1",6395:"f6027b24",6397:"8fc250af",6423:"1e8da08b",6435:"b4633aa1",6514:"d36ecbb8",6526:"b2c8fd93",6621:"cf64e54c",6658:"fe512b5a",6683:"2a35f0fe",6703:"faa93a20",6746:"8d3f75be",6785:"07d4b66b",6799:"754a77ae",6823:"6e35b0cf",6833:"c77c5928",6834:"bc9e9f2b",6837:"a706c464",6861:"66a2e4c0",6932:"a37ea756",6946:"dd09a891",6999:"3486cca0",7013:"5240d550",7067:"e9508417",7087:"79101e8e",7117:"b3239756",7126:"b4b7d70b",7181:"938de865",7203:"03e2b86a",7309:"f9d18abb",7348:"40afbdc0",7374:"932d083d",7389:"fa6a1eb0",7407:"4421929d",7409:"8e71acc1",7418:"2ac24978",7428:"1e6f676f",7489:"b8a76d29",7579:"1b98701c",7584:"a162e3d6",7627:"31dfd44e",7706:"430ce07e",7753:"87963fd9",7761:"0cf7cf29",7773:"7e072552",7790:"3790bece",7809:"eb2c5f08",7812:"6bb31bfb",7831:"cfcb0221",7842:"cbff451c",7864:"59d0de32",7865:"e02aee95",7902:"f48e3002",7909:"8f1d759d",7911:"764ec401",7974:"3f19c570",7991:"5d96c772",8009:"a65f1b78",8052:"7d772984",8105:"4fd35586",8109:"344e1845",8114:"eb856986",8120:"85042513",8150:"09c54606",8165:"d07843b4",8187:"383aefbf",8216:"16f39607",8301:"877076ce",8341:"fa84fa67",8343:"dd515382",8408:"2e2896bf",8424:"a1a3e663",8435:"484d30f8",8483:"7fadf4ea",8526:"5dd9c712",8528:"f68ff14f",8535:"189d090a",8546:"0a89cbee",8556:"0053a402",8565:"c4ea9980",8582:"9b93fffc",8615:"0950a86f",8624:"190dd7af",8678:"8424d5dc",8704:"ae4808df",8762:"3d2b9142",8797:"3168365d",8856:"4593419f",8859:"efb2561f",8869:"74066774",8876:"24bf6aed",8880:"6ae9d985",8929:"70ce258f",8965:"51db703f",8984:"1a816123",9028:"12f6efe2",9032:"b54e1975",9037:"03715b7f",9067:"1cc02121",9070:"d49de235",9086:"035adaa3",9088:"9fbbeb5c",9106:"b274c701",9114:"d412d44e",9168:"6afdec67",9206:"bbf34514",9245:"d882c265",9280:"6e897b98",9292:"96b77fb0",9305:"4d748fb5",9314:"3e43d34c",9329:"c269472b",9372:"67d6f914",9374:"8ac7e6d7",9384:"a4e7a69a",9409:"c7569196",9449:"2e1d2652",9458:"07f0ae54",9589:"9087e0ea",9657:"0cccd5bf",9658:"33669a59",9690:"0cd8a2c8",9756:"4ac80c37",9824:"b9ece376",9831:"de8b3aa9",9870:"f395e633",9943:"d3ab0f18"}[e]+".chunk.js",i.miniCssF=e=>{},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.j=2047,(()=>{var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e+"../../"})(),(()=>{var e={2047:1};i.f.i=(t,n)=>{e[t]||importScripts(i.p+i.u(t))};var t=globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[],n=t.push.bind(t);t.push=t=>{var[r,o,a]=t;for(var s in o)i.o(o,s)&&(i.m[s]=o[s]);for(a&&a(i);r.length;)e[r.pop()]=1;n(t)}})(),i.nc=void 0,r=i.x,i.x=()=>Promise.all([5255,3301,6837].map(i.e,i)).then(r),i.x()})(); //# sourceMappingURL=2047.b1e80504.chunk.js.map