@abi-software/mapintegratedvuer 1.2.0-beta.4 → 1.2.0-beta.5
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/dist/{ContentMixin-CDa_d4qU.js → ContentMixin-DrXO9hYL.js} +1 -1
- package/dist/{Flatmap-Blpv6Wl2.js → Flatmap-DjJ0kL-x.js} +4 -4
- package/dist/{Iframe-BLBaWKcl.js → Iframe-CDoFGJGq.js} +2 -2
- package/dist/{MultiFlatmap-CT_r3MMI.js → MultiFlatmap-DztXCpBm.js} +4 -4
- package/dist/{Plot-BtF3I3fb.js → Plot-CckYvHYT.js} +2 -2
- package/dist/{Scaffold-CJeX7pZ1.js → Scaffold-BSeFI_hx.js} +3 -3
- package/dist/{Simulation-BZn3roc3.js → Simulation-CHqjWe4Q.js} +2 -2
- package/dist/{flatmapvuer-B9MNgh8H.js → flatmapvuer-xVtutq6J.js} +4 -4
- package/dist/{index-DpNLzVAL.js → index-D50UuVi7.js} +1 -1
- package/dist/mapintegratedvuer.js +1 -1
- package/dist/mapintegratedvuer.umd.cjs +1 -1
- package/dist/{style-ByNtEFEB.js → style-CxmQHlw8.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
@@ -2607,7 +2607,7 @@ ${t.vs}`,t}setDataProperty(t,r,n){const i=ar(this,nQ).get(+t);i&&(!(r in i)||i[r
|
|
2607
2607
|
state: () => new MyClass()
|
2608
2608
|
Found in store "${M.$id}".`),m&&o&&r.hydrate&&r.hydrate(M.$state,m),u=!0,d=!0,M}function SLr(e,t,r){let n,i;const o=typeof t=="function";n=e,i=o?r:t;function s(l,c){const u=a.hasInjectionContext();if(l=(process.env.NODE_ENV==="test"&&lE&&lE._testing?null:l)||(u?a.inject(xLr,null):null),l&&Fz(l),process.env.NODE_ENV!=="production"&&!lE)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
2609
2609
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
2610
|
-
This will fail in production.`);l=lE,l._s.has(n)||(o?Cse(n,t,i,l):cNe(n,i,l),process.env.NODE_ENV!=="production"&&(s._pinia=l));const d=l._s.get(n);if(process.env.NODE_ENV!=="production"&&c){const h="__hot:"+n,p=o?Cse(h,t,i,l,!0):cNe(h,vd({},i),l,!0);c._hotUpdate(p),delete l.state.value[h],l._s.delete(h)}if(process.env.NODE_ENV!=="production"&&Sse){const h=a.getCurrentInstance();if(h&&h.proxy&&!c){const p=h.proxy,f="_pStores"in p?p._pStores:p._pStores={};f[n]=d}}return d}return s.$id=n,s}function MLr(e,t){return Array.isArray(t)?t.reduce((r,n)=>(r[n]=function(){return e(this.$pinia)[n]},r),{}):Object.keys(t).reduce((r,n)=>(r[n]=function(){const i=e(this.$pinia),o=t[n];return typeof o=="function"?o.call(this,i):i[o]},r),{})}const kLr=SLr("main",{state:()=>({userProfile:{token:""}}),getters:{userToken(e){return e.userProfile.token}},actions:{setUserToken(e){this.userProfile.token=e}}}),CLr=e=>{let t={lng:0,lat:0},r;return e.type==="Polygon"?r=e.coordinates[0]:r=e.coordinates,e.type!=="Point"?(r.map(n=>{t.lng+=parseFloat(n[0]),t.lat+=parseFloat(n[1])}),t.lng=t.lng/r.length,t.lat=t.lat/r.length):(t.lng+=parseFloat(r[0]),t.lat+=parseFloat(r[1])),t},uNe=(e,t)=>{const r=[];let n=e.organs?e.organs:e.ftus;const i=n?n.filter((o,s)=>n.findIndex(l=>l.label===o.label)===s):void 0;return i&&i.forEach(o=>{const s={label:o.label,models:o.models,key:`${t}.${o.label}`},l=uNe(o,s.key);l.length>0&&(s.children=l),r.push(s)}),r},ELr=function(){return{destinations:[],origins:[],components:[],destinationsWithDatasets:[],originsWithDatasets:[],componentsWithDatasets:[],resource:void 0}},ALr={name:"FlatmapVuer",components:{Button:Yu,Col:Hp,Loading:QYt,Radio:owe,Icon:Ys,RadioGroup:awe,Row:Dh,Select:yb,Dialog:QXt,MapSvgIcon:bv,MapSvgSpriteColor:sV,Tooltip:Jee,TreeControls:Hwe,SelectionsGroup:Vwe,SvgLegends:Nwe,ElIconWarningFilled:wxe,ElIconArrowDown:Em,ElIconArrowLeft:xxe,DrawTool:Rwe},beforeCreate:function(){this.mapManager=void 0,this.mapImp=void 0,this.setStateRequired=!1},setup(e){return{annotator:a.markRaw(new bLr(`${e.flatmapAPI}annotator`))}},methods:{initialiseDrawing:function(){this.connectionEntry={},this.activeDrawTool=void 0,this.activeDrawMode=void 0,this.drawnCreatedEvent=void 0},cancelDrawnFeature:function(){this.drawnCreatedEvent&&(this.closeTooltip(),this.annotationEntry={...this.drawnCreatedEvent.feature,resourceId:this.serverURL},this.rollbackAnnotationEvent(),this.initialiseDrawing())},connectedFeatureTooltip:function(e){if(this.mapImp)if(e){const t=Number(e);let r={feature:{}};if(t){const n=this.mapImp.featureProperties(t);r.feature=n}else{const n=this.existDrawnFeatures.find(i=>i.id===e.replace(" ",""));r.feature.feature=n}this.checkAndCreatePopups(r)}else this.closeTooltip()},confirmDrawnFeature:function(){this.drawnCreatedEvent&&(this.checkAndCreatePopups(this.drawnCreatedEvent),Object.keys(this.connectionEntry).length>0&&(this.annotationEntry.feature.connection=this.connectionEntry),this.initialiseDrawing())},drawToolbarEvent:function(e){this.closeTooltip(),this.doubleClickedFeature=!1,e==="Delete"?this.activeDrawMode=this.activeDrawMode==="Delete"?void 0:"Delete":e==="Edit"?this.activeDrawMode=this.activeDrawMode==="Edit"?void 0:"Edit":this.activeDrawTool=e,Object.keys(this.annotationEntry).length>0&&!this.featureAnnotationSubmitted&&this.rollbackAnnotationEvent()},drawModeEvent:function(e){this.activeDrawMode==="Edit"&&this.doubleClickedFeature&&(e.feature.feature.geometry.type!=="Point"&&(this.changeAnnotationDrawMode({mode:"direct_select",options:{featureId:e.feature.feature.id}}),this.modifyAnnotationFeature()),this.doubleClickedFeature=!1),this.activeDrawMode==="Delete"&&(this.changeAnnotationDrawMode({mode:"simple_select",options:{featureIds:[e.feature.feature.id]}}),this.modifyAnnotationFeature())},createConnectivityBody:function(){if(Object.keys(this.connectionEntry).length>0){const e=Object.values(this.connectionEntry),t={type:"connectivity",source:e[0],target:e[e.length-1],intermediates:e.filter((r,n)=>n!==0&&n!==e.length-1)};this.annotationEntry.body=t}},changeAnnotationDrawMode:function(e){this.mapImp&&this.mapImp.changeAnnotationDrawMode(e)},clearAnnotationFeature:function(){this.mapImp&&this.existDrawnFeatures.length>0&&this.mapImp.clearAnnotationFeature()},modifyAnnotationFeature:function(){this.mapImp&&this.mapImp.removeAnnotationFeature()},rollbackAnnotationEvent:function(){this.mapImp&&["created","updated","deleted"].includes(this.annotationEntry.type)&&(this.mapImp.rollbackAnnotationEvent(this.annotationEntry),this.annotationEntry={})},commitAnnotationEvent:function(e){this.mapImp&&["created","updated","deleted"].includes(this.annotationEntry.type)&&e&&(this.featureAnnotationSubmitted=!0,this.mapImp.commitAnnotationEvent(this.annotationEntry),this.annotationEntry.type==="deleted"?this.closeTooltip():this.addAnnotationFeature())},fetchAnnotatedItemIds:async function(e=void 0,t=void 0){let r=await this.annotator.annotatedItemIds(this.userToken,this.serverURL,e,t);return"resource"in r&&(r=r.itemIds),r},setFeatureAnnotated:async function(){if(this.mapImp){const e=await this.fetchAnnotatedItemIds();for(const t of e)this.mapImp.setFeatureAnnotated(t)}},fetchDrawnFeatures:async function(e,t){const r=await this.fetchAnnotatedItemIds(e,t);let n=await this.annotator.drawnFeatures(this.userToken,this.serverURL,r);return"resource"in n&&(n=n.features),this.drawnType!=="All tools"&&(n=n.filter(i=>i.geometry.type===this.drawnType)),n},addAnnotationFeature:async function(){if(this.mapImp&&(this.featureAnnotationSubmitted||this.clearAnnotationFeature(),this.drawnType!=="None")){this.featureAnnotationSubmitted||(this.loading=!0);const e=this.annotatedType==="Anyone"?void 0:this.userInformation.orcid?this.userInformation.orcid:"0000-0000-0000-0000",t=this.annotatedType==="Anyone"?void 0:this.annotatedType==="Me",r=await this.fetchDrawnFeatures(e,t);if(this.existDrawnFeatures=r,this.loading=!1,!this.featureAnnotationSubmitted)for(const n of r)this.mapImp.addAnnotationFeature(n)}},showAnnotator:function(e){this.mapImp&&(this.mapImp.showAnnotator(e),this.$el.querySelector(".maplibregl-ctrl-group").style.display="none")},setDrawnType:function(e){this.drawnType=e,this.mapImp&&(this.addAnnotationFeature(),this.initialiseDrawing())},setAnnotatedType:function(e){this.annotatedType=e,this.mapImp&&this.addAnnotationFeature()},setFlightPath3D:function(e){this.flightPath3DRadio=e,this.mapImp&&this.mapImp.enableFlightPaths(e)},viewLatestMap:function(){let e=this.biologicalSex?this.biologicalSex:void 0;this.entry==="NCBITaxon:9606"&&(e="PATO:0000384");const t={entry:this.entry,biologicalSex:e,viewport:this.mapImp.getState()};this.$emit("view-latest-map",t)},backgroundChangeCallback:function(e){this.currentBackground=e,this.mapImp&&this.mapImp.setBackgroundColour(this.currentBackground,1)},processSystems:function(e){if(this.systems.length=0,e&&e.length>0){const t={label:"All",key:"All",children:[]};e.forEach(r=>{const n={colour:r.colour,enabled:r.enabled,label:r.id,key:r.id},i=uNe(r,n.key);i.length>0&&(n.children=i),t.children.push(n)}),this.systems.push(t)}},processTaxon:function(e,t){this.taxonConnectivity.length=0,t.forEach(r=>{Bwe(e,r).then(n=>{const i={taxon:r,label:n};this.taxonConnectivity.push(i)})})},toggleDrawer:function(){this.drawerOpen=!this.drawerOpen},setColour:function(e){this.colourRadio=e,this.mapImp&&this.mapImp.setColour({colour:e,outline:this.outlinesRadio})},setOutlines:function(e){this.outlineRadio=e,this.mapImp&&this.mapImp.setColour({colour:this.colourRadio,outline:e})},resetView:function(){this.mapImp&&(this.mapImp.resetMap(),this.$refs.centrelinesSelection&&this.$refs.centrelinesSelection.reset(),this.$refs.skcanSelection&&this.$refs.skcanSelection.reset(),this.$refs.layersSelection&&this.$refs.layersSelection.reset(),this.$refs.systemsSelection&&this.$refs.pathwaysSelection.reset(),this.$refs.pathwaysSelection&&this.$refs.pathwaysSelection.reset())},zoomIn:function(){this.mapImp&&this.mapImp.zoomIn()},zoomOut:function(){this.mapImp&&this.mapImp.zoomOut()},centreLinesSelected:function(e){this.mapImp&&this.mapImp.enableCentrelines(e.value)},onSelectionsDataChanged:function(e){this.$emit("pathway-selection-changed",e)},sckanSelected:function(e){this.mapImp&&this.mapImp.enableSckanPath(e.key,e.value)},checkAllSCKAN:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableSckanPath(t,e.value))},highlightConnectedPaths:async function(e){var t,r;if(this.mapImp){let n=[...this.mapImp.pathModelNodes(e)].map(c=>this.mapImp.featureProperties(c)),i=await this.flatmapQueries.queryForConnectivity(e),o=(r=(t=i==null?void 0:i.ids)==null?void 0:t.dendrites)==null?void 0:r.flat().flat(),s=[],l=!1;n.forEach(c=>{this.mapImp.nodePathModels(c.featureId).forEach(u=>{l=!0,this.mapImp.pathModelNodes(u).forEach(d=>{let h=this.mapImp.featureProperties([d]);if(o.includes(h.models)){l=!1;return}}),l&&s.push(u)})}),this.mapImp.zoomToFeatures(s,{noZoomIn:!0})}},resetMapFilter:function(){const e=this.mapFilters.alert;let t;e.with?e.without||(t={HAS:"alert"}):e.without?t={NOT:{HAS:"alert"}}:t={AND:[{NOT:{HAS:"alert"}},{HAS:"alert"}]},t?this.mapImp.setVisibilityFilter(t):this.mapImp.clearVisibilityFilter()},alertMouseEnterEmitted:function(e){if(this.mapImp)if(e.value){let t;e.key==="alert"?t={HAS:"alert"}:e.key==="withoutAlert"&&(t={NOT:{HAS:"alert"}}),this.mapImp.setVisibilityFilter(t)}else this.resetMapFilter()},alertSelected:function(e){this.mapImp&&(e.key==="alert"?e.value?this.mapFilters.alert.with=!0:this.mapFilters.alert.with=!1:e.key==="withoutAlert"&&(e.value?this.mapFilters.alert.without=!0:this.mapFilters.alert.without=!1),this.resetMapFilter())},checkAllAlerts:function(e){this.mapImp&&(e.value?(this.mapFilters.alert.without=!0,this.mapFilters.alert.with=!0):(this.mapFilters.alert.without=!1,this.mapFilters.alert.with=!1),this.resetMapFilter())},systemSelected:function(e){this.mapImp&&this.mapImp.enableSystem(e.key,e.value)},checkAllSystems:function(e){this.mapImp&&this.systems[0].children.forEach(t=>this.mapImp.enableSystem(t.label,e))},ftuSelected:function(e){this.searchAndShowResult(e,!0)},layersSelected:function(e){this.mapImp&&this.mapImp.enableLayer(e.key,e.value)},checkAllLayers:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableLayer(t,e.value))},taxonsSelected:function(e){this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(e.key,e.value)},taxonMouseEnterEmitted:function(e){if(this.mapImp)if(e.value){let t=this.mapImp.taxonFeatureIds(e.key);this.mapImp.enableConnectivityByTaxonIds(e.key,e.value),this.mapImp.zoomToGeoJSONFeatures(t,{noZoomIn:!0})}else this.mapImp.selectGeoJSONFeatures("-1"),e.selections.forEach(t=>{let r=e.checked.includes(t.taxon);this.mapImp.enableConnectivityByTaxonIds(t.taxon,r)})},checkAllTaxons:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableConnectivityByTaxonIds(t,e.value))},pathwaysSelected:function(e){this.mapImp&&this.mapImp.enablePath(e.key,e.value)},checkAllPathways:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enablePath(t,e.value))},enablePanZoomEvents:function(e){this.mapImp.enablePanZoomEvents(e)},annotationEventCallback:function(e,t){if(t.type==="aborted")this.featureAnnotationSubmitted?this.featureAnnotationSubmitted=!1:this.rollbackAnnotationEvent();else if(t.type==="modeChanged")t.feature.mode==="simple_select"&&this.activeDrawTool?this.drawnCreatedEvent||this.initialiseDrawing():t.feature.mode==="direct_select"&&(this.doubleClickedFeature=!0);else if(t.type==="selectionChanged"){if(this.selectedDrawnFeature=t.feature.features.length===0?void 0:t.feature.features[0],e.feature.feature=this.selectedDrawnFeature,!this.activeDrawTool&&(this.connectionEntry={},this.selectedDrawnFeature)){const r=this.existDrawnFeatures.find(n=>n.id===this.selectedDrawnFeature.id);r&&r.connection&&(this.connectionEntry=r.connection),this.drawModeEvent(e)}}else{if(t.type==="created"||t.type==="updated"){t.type==="updated"&&t.feature.action&&(t.positionUpdated=t.feature.action==="move");const r=this.mapImp.refreshAnnotationFeatureGeometry(t.feature);e.feature.feature=r}t.type==="created"?this.drawnCreatedEvent=e:this.checkAndCreatePopups(e)}},eventCallback:function(){return(e,t,...r)=>{if(e==="annotation"){const n={feature:t,userData:r,eventType:e};this.annotationEventCallback(n,t)}else if(e!=="pan-zoom"){const n=t.label,i=[t.models],o=this.entry,s=this.biologicalSex;let l;t.taxons&&(typeof t.taxons!="object"?l=JSON.parse(t.taxons):l=t.taxons);const c={dataset:t.dataset,biologicalSex:s,taxonomy:o,resource:i,label:n,feature:t,userData:r,eventType:e,provenanceTaxonomy:l};if(e==="click"){if(this.featuresAlert=t.alert,this.viewingMode==="Neuron Connection")this.highlightConnectedPaths([t.models]);else if(this.currentActive=t.models?t.models:"",this.activeDrawTool&&!this.drawnCreatedEvent){const u=t.featureId||this.existDrawnFeatures.find(d=>d.id===t.id);if(this.activeDrawTool==="LineString"&&u){const d=t.featureId?t.featureId:t.id,h=t.label?t.label:`Feature ${t.id}`;this.connectionEntry[` ${d}`]=Object.assign({label:h},Object.fromEntries(Object.entries(t).filter(([p])=>["featureId","models"].includes(p)).map(([p,f])=>[p==="featureId"?"id":p,f])))}}}else e==="mouseenter"&&this.viewingMode!=="Neuron Connection"&&(this.currentHover=t.models?t.models:"");t&&t.type!=="marker"&&e==="click"&&this.viewingMode!=="Neuron Connection"&&!this.activeDrawTool&&this.checkAndCreatePopups(c),this.$emit("resource-selected",c)}else this.$emit("pan-zoom-callback",t)}},changeViewingMode:function(e=null){if(e!==null){this.viewingMode=this.viewingModes[e].name;let t=this.viewingModes[0];this.viewingModes[0]=this.viewingModes[e],this.viewingModes[e]=t}this.closeTooltip()},checkAndCreatePopups:async function(e){if(this.viewingMode==="Annotation")e.feature?(this.annotationEntry={...e.feature,resourceId:this.serverURL},e.feature.featureId&&e.feature.models?this.displayTooltip(e.feature.models):e.feature.feature&&(this.activeDrawTool||this.activeDrawMode||Object.keys(this.connectionEntry).length>0?(this.featureAnnotationSubmitted=!1,this.annotationEntry.featureId=e.feature.feature.id,this.activeDrawTool&&this.createConnectivityBody(),this.displayTooltip(e.feature.feature.id,CLr(e.feature.feature.geometry))):this.rollbackAnnotationEvent())):this.annotation={};else{let t=await this.flatmapQueries.retrieveFlatmapKnowledgeForEvent(e);(t[0]||t[1]||e.feature.hyperlinks&&e.feature.hyperlinks.length>0)&&(this.resourceForTooltip=e.resource[0],e.resourceForTooltip=this.resourceForTooltip,this.createTooltipFromNeuronCuration(e))}},popUpCssHacks:function(){const e=document.querySelector(".flatmap-tooltip-popup"),t=document.querySelector(".maplibregl-popup-close-button");e&&(e.style.display="none"),t.style.display="block",this.$refs.tooltip.$el.style.display="flex",t.onclick=()=>{e&&(e.style.display="block")}},closeTooltip:function(){this.$refs.tooltip.$el.style.display="none",document.querySelectorAll(".maplibregl-popup").forEach(e=>{e.style.display="none"})},createTooltipFromNeuronCuration:async function(e){this.tooltipEntry=await this.flatmapQueries.createTooltipData(e),this.displayTooltip(e.resource[0])},showPopup:function(e,t,r){let n=r;this.mapImp&&(n?n.className||(n.className="custom-popup"):n={className:"custom-popup",positionAtLastClick:!0},this.mapImp.showPopup(e,t,n))},showMarkerPopup:function(e,t,r){this.mapImp&&this.mapImp.showMarkerPopup(e,t,r)},closeMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");this.minimapSmall?(e.classList.add("enlarge"),e.classList.remove("shrink")):(e.classList.add("shrink"),e.classList.remove("enlarge")),this.minimapSmall=!this.minimapSmall},addResizeButtonToMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");e&&(this.$refs.minimapResize&&this.$refs.minimapResize.$el.parentNode&&this.$refs.minimapResize.$el.parentNode.removeChild(this.$refs.minimapResize.$el),e.appendChild(this.$refs.minimapResize.$el),this.minimapResizeShow=!0)},setHelpMode:function(e){const t=this.hoverVisibilities.length,r=t-1,n=this.hoverVisibilities[this.helpModeActiveIndex];if(n){const i=n==null?void 0:n.refs,o=n==null?void 0:n.ref,s=this.$refs[i||o];if(s){const{parentElement:l,nextElementSibling:c}=s.$el,u=d=>d&&(d.classList.contains("pathway-container")||d.classList.contains("pathway-location"));(u(l)||u(c))&&(this.drawerOpen=!0)}else this.helpModeActiveIndex+=1}e||(this.helpModeActiveIndex=this.helpModeInitialIndex),this.viewingMode!=="Annotation"&&this.helpModeActiveIndex>9&&(this.helpModeActiveIndex=r),e&&this.helpModeActiveIndex>=r&&this.$emit("help-mode-last-item",!0),e&&!this.helpModeDialog?(this.inHelp=!0,this.hoverVisibilities.forEach(i=>{i.value=!0})):e&&this.helpModeDialog&&t>this.helpModeActiveIndex?this.helpModeActiveIndex>-1?(this.closeFlatmapHelpPopup(),setTimeout(()=>{this.inHelp=!1,this.hoverVisibilities.forEach(i=>{i.value=!1}),this.showTooltip(this.helpModeActiveIndex,200)},300)):this.helpModeActiveIndex===-1&&this.openFlatmapHelpPopup():(this.inHelp=!1,this.hoverVisibilities.forEach(i=>{i.value=!1}),this.closeFlatmapHelpPopup())},showTooltip:function(e,t=500){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!0,this.$emit("shown-tooltip")},t))},hideTooltip:function(e,t=500){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!1},t))},displayTooltip:function(e,t=void 0){this.tooltipDisplay=!0;let r,n={className:"flatmapvuer-popover"};t?(r=e,n.annotationFeatureGeometry=t):(r=this.mapImp.modelFeatureIds(e)[0],this.activeDrawTool||(n.positionAtLastClick=!0)),this.disableUI||this.$nextTick(()=>{this.mapImp.showPopup(r,this.$refs.tooltip.$el,n),this.popUpCssHacks()})},openFlatmapHelpPopup:function(){if(this.mapImp){let e=this.mapImp.modelFeatureIds("UBERON:0000948");e&&e.length>0&&(this.mapImp.showPopup(e[0],"Click for more information",{anchor:"top",className:"flatmap-popup-popper"}),this.$emit("shown-map-tooltip"))}},closeFlatmapHelpPopup:function(){this.$el.querySelectorAll(".maplibregl-popup-close-button").forEach(e=>{e.click()})},getLabels:function(){let e=[];if(this.mapImp){let t=this.mapImp.annotations;for(let r of t.values())r.label&&e.push(r.label);return Array.from(new Set(e))}},getState:function(){if(this.mapImp){let e={entry:this.entry,viewport:this.mapImp.getState()};const t=this.mapImp.getIdentifier();return this.biologicalSex?e.biologicalSex=this.biologicalSex:t&&t.biologicalSex&&(e.biologicalSex=t.biologicalSex),t&&t.uuid&&(e.uuid=t.uuid),e}},setState:function(e){e&&(this.mapImp&&e.entry&&this.entry==e.entry&&(!e.biologicalSex||e.biologicalSex===this.biologicalSex)?e.viewport&&this.mapImp.setState(e.viewport):this.createFlatmap(e),this.setStateRequired=!1)},restoreMapState:function(e){e&&(e.viewport&&this.mapImp.setState(e.viewport),e.searchTerm&&this.searchAndShowResult(e.searchTerm,!0))},setFlightPathInfo:function(e){(e===1.6||e>1.6)&&(this.displayFlightPathOption=!0,this.setFlightPath3D(!1))},createFlatmap:function(e){if(!this.mapImp&&!this.loading){this.loading=!0;let t=!1;this.displayMinimap&&(t={position:"top-right"});let r={taxon:this.entry};this.uuid&&(r.uuid=this.uuid),e?e.uuid?r={uuid:e.uuid}:e.entry&&(r.taxon=e.entry,e.biologicalSex?r.biologicalSex=e.biologicalSex:r.taxon==="NCBITaxon:9606"&&(r.biologicalSex="PATO:0000384")):this.biologicalSex&&(r.biologicalSex=this.biologicalSex),this.mapManager.loadMap(r,this.$refs.display,this.eventCallback(),{minZoom:this.minZoom,tooltips:this.tooltips,minimap:t}).then(n=>{this.mapImp=n,this.serverURL=this.mapImp.makeServerUrl("").slice(0,-1);let i=this.mapImp.details.version;this.setFlightPathInfo(i),this.onFlatmapReady(),this._stateToBeSet?this.restoreMapState(this._stateToBeSet):this.restoreMapState(e)})}else e&&(this._stateToBeSet={viewport:e.viewport,searchTerm:e.searchTerm},this.mapImp&&!this.loading&&this.restoreMapState(this._stateToBeSet))},computePathControlsMaximumHeight(){const e=this.$refs.display;if(e){const t=getComputedStyle(e),r=parseInt(t.paddingTop)+parseInt(t.paddingBottom),n=e.clientHeight-r;this.pathwaysMaxHeight=n-170}},mapResize:function(){try{this.computePathControlsMaximumHeight(),this.mapImp&&(this.mapImp.resize(),this.showMinimap(this.displayMinimap),this.mapImp._minimap&&this.mapImp._minimap._miniMap.resize())}catch{console.error("Map resize error")}},onFlatmapReady:function(){this.sensor=new $Jt(this.$refs.display,this.mapResize),this.mapImp.options&&this.mapImp.options.style==="functional"&&(this.isFC=!0),this.mapImp.setBackgroundOpacity(1),this.backgroundChangeCallback(this.currentBackground),this.pathways=this.mapImp.pathTypes(),this.mapImp.enableCentrelines(!1),this.processSystems(this.mapImp.getSystems()),this.processTaxon(this.flatmapAPI,this.mapImp.taxonIdentifiers),this.containsAlert="alert"in this.mapImp.featureFilterRanges(),this.addResizeButtonToMinimap(),this.loading=!1,this.computePathControlsMaximumHeight(),this.drawerOpen=!0,this.mapResize(),this.$emit("ready",this)},showMinimap:function(e){this.mapImp&&this.mapImp.showMinimap(e)},showPathwaysDrawer:function(e){this.drawerOpen=e},searchAndShowResult:function(e,t){if(this.mapImp){if(e===void 0||e==="")return this.mapImp.clearSearchResults(),!0;{const r=this.mapImp.search(e);if(r&&r.results&&r.results.length>0){if(this.mapImp.showSearchResults(r),t&&r.results[0].featureId&&r.results[0].text){const n=this.mapImp.annotation(r.results[0].featureId);this.mapImp.showPopup(r.results[0].featureId,n.label,{className:"custom-popup",positionAtLastClick:!1,preserveSelection:!0})}return!0}else this.mapImp.clearSearchResults()}}return!1},searchSuggestions:function(e){return this.mapImp?this.mapImp.search(e):[]}},props:{entry:{type:String,required:!0},uuid:String,biologicalSex:{type:String,default:""},minZoom:{type:Number,default:4},tooltips:{type:Boolean,default:!0},helpMode:{type:Boolean,default:!1},helpModeActiveItem:{type:Number,default:0},helpModeDialog:{type:Boolean,default:!1},helpModeLastItem:{type:Boolean,default:!1},helpModeInitialIndex:{type:Number,default:0},renderAtMounted:{type:Boolean,default:!0},displayMinimap:{type:Boolean,default:!1},displayWarning:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array,default:function(){return[{display:"Open AC Map",key:"AC"},{display:"Open FC Map",key:"FC"},{display:"Open 3D Human Map",key:"3D"}]}},showStarInLegend:{type:Boolean,default:!1},isLegacy:{type:Boolean,default:!1},displayLatestChanges:{type:Boolean,default:!1},state:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},disableUI:{type:Boolean,default:!1}},provide(){return{flatmapAPI:this.flatmapAPI,sparcAPI:this.sparcAPI,$annotator:this.annotator,getFeaturesAlert:()=>this.featuresAlert,userApiKey:this.userToken}},data:function(){return{annotationEntry:{},tooltipDisplay:!1,serverURL:void 0,layers:[],pathways:[],sckanDisplay:[{label:"Display Path with SCKAN",key:"VALID"}],centreLines:[{label:"Display Nerves",key:"centrelines",enabled:!1}],systems:[],taxonConnectivity:[],pathwaysMaxHeight:1e3,hoverVisibilities:[{value:!1,ref:"zoomInPopover"},{value:!1,ref:"zoomOutPopover"},{value:!1,ref:"zoomFitPopover"},{value:!1,ref:"settingsPopover"},{value:!1,ref:"checkBoxPopover"},{value:!1,ref:"markerPopover"},{value:!1,ref:"warningPopover"},{value:!1,ref:"whatsNewPopover"},{value:!1,ref:"openMapPopover"},{value:!1,ref:"featuredMarkerPopover"},{value:!1,refs:"drawToolPopover",ref:"connectionPopover"},{value:!1,refs:"drawToolPopover",ref:"drawPointPopover"},{value:!1,refs:"drawToolPopover",ref:"drawLinePopover"},{value:!1,refs:"drawToolPopover",ref:"drawPolygonPopover"},{value:!1,refs:"drawToolPopover",ref:"deletePopover"},{value:!1,refs:"drawToolPopover",ref:"editPopover"}],helpModeActiveIndex:this.helpModeInitialIndex,yellowstar:YJt,isFC:!1,inHelp:!1,currentBackground:"white",availableBackground:["white","lightskyblue","black"],loading:!1,flatmapMarker:KJt,tooltipEntry:ELr(),connectivityTooltipVisible:!1,drawerOpen:!1,featuresAlert:void 0,flightPath3DRadio:!1,displayFlightPathOption:!1,colourRadio:!0,outlinesRadio:!0,minimapResizeShow:!1,minimapSmall:!1,currentActive:"",selectedDrawnFeature:void 0,currentHover:"",viewingMode:"Exploration",viewingModes:{0:{name:"Exploration",description:"Find relevant research and view detail of neural pathways by selecting a pathway to view its connections and data sources"},1:{name:"Neuron Connection",description:"Discover Neuron connections by selecting a neuron and viewing its associated network connections"},2:{name:"Annotation",description:"View internal identifiers of features"}},drawnType:"All tools",drawnTypes:["All tools","Point","LineString","Polygon","None"],annotatedType:"Anyone",annotatedTypes:["Anyone","Me","Others"],openMapRef:void 0,backgroundIconRef:void 0,annotator:void 0,userInformation:void 0,activeDrawTool:void 0,drawnCreatedEvent:void 0,featureAnnotationSubmitted:!1,connectionEntry:{},existDrawnFeatures:[],doubleClickedFeature:!1,activeDrawMode:void 0,drawModes:["Delete","Edit"],containsAlert:!1,alertOptions:[{label:"Display Path With Alerts",key:"alert",enabled:!0},{label:"Display Path Without Alerts",key:"withoutAlert",enabled:!0}],mapFilters:a.markRaw({alert:{with:!0,without:!0}})}},computed:{...MLr(kLr,["userToken"])},watch:{entry:function(){this.state||this.createFlatmap()},helpMode:function(e,t){e!==t&&this.setHelpMode(e)},helpModeActiveItem:function(){this.helpMode&&(this.helpModeActiveIndex+=1,this.setHelpMode(this.helpMode))},state:{handler:function(e,t){e!==t&&(this.mapManager?this.setState(e):this.setStateRequired=!0)},immediate:!0,deep:!0},viewingMode:function(e){e==="Annotation"?(this.loading=!0,this.annotator.authenticate(this.userToken).then(t=>{t.name&&t.email&&(this.showAnnotator(!0),this.userInformation=t,this.setFeatureAnnotated(),this.existDrawnFeatures.length===0&&this.addAnnotationFeature()),this.loading=!1})):this.showAnnotator(!1)},activeDrawMode:function(){this.changeAnnotationDrawMode({mode:"simple_select"}),this.connectionEntry={}},disableUI:function(e){e&&this.closeTooltip()}},mounted:function(){this.openMapRef=a.shallowRef(this.$refs.openMapRef),this.backgroundIconRef=a.shallowRef(this.$refs.backgroundIconRef),this.tooltipWait=[],this.tooltipWait.length=this.hoverVisibilities.length,this.mapManager=new xse(this.flatmapAPI),this.flatmapQueries=new XJt,this.flatmapQueries.initialise(this.flatmapAPI),this.state?this.setStateRequired&&this.setState(this.state):this.renderAtMounted&&this.createFlatmap()}},r3=e=>(a.pushScopeId("data-v-02529f2e"),e=e(),a.popScopeId(),e),OLr={class:"flatmap-container",ref:"flatmapContainer","element-loading-text":"Loading...","element-loading-background":"rgba(0, 0, 0, 0.3)"},ILr={style:{height:"100%",width:"100%",position:"relative","overflow-y":"none"}},PLr={style:{height:"100%",width:"100%"},ref:"display"},VLr={class:"beta-popovers"},HLr=r3(()=>a.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1)),NLr=r3(()=>a.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1)),RLr=r3(()=>a.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1)),BLr=r3(()=>a.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1)),DLr=r3(()=>a.createElementVNode("span",{class:"warning-text"},"Legacy Map",-1)),FLr={key:1,class:"warning-text"},zLr=r3(()=>a.createElementVNode("span",{class:"warning-text"},"What's new?",-1)),jLr=r3(()=>a.createElementVNode("b",null,"Neuron Connection mode",-1)),ULr=r3(()=>a.createElementVNode("p",null," You can now view the network of neurons connected to a selected neuron. This mode is located in the settings at the bottom right. Once discovery mode is on, click on a neuron to see its connections. ",-1)),GLr=r3(()=>a.createElementVNode("b",null,"Now can display up to 6 panes",-1)),WLr=r3(()=>a.createElementVNode("p",null," You can now display up to 6 panes in the flatmap. This allows you to compare between different datasets and/or different views of the same dataset. ",-1)),ZLr={class:"bottom-right-control"},qLr=r3(()=>a.createElementVNode("div",null,[a.createTextVNode(" Fit to "),a.createElementVNode("br"),a.createTextVNode(" window ")],-1)),KLr=["innerHTML"],XLr=["innerHTML"],YLr={style:{"margin-bottom":"2px"}},JLr={key:0,class:"viewing-mode-title"},$Lr=["onClick"],eSr=["onClick"];function tSr(e,t,r,n,i,o){const s=a.resolveComponent("map-svg-sprite-color"),l=wxe,c=Ys,u=Tb,d=Em,h=Rwe,p=a.resolveComponent("map-svg-icon"),f=Nwe,m=Hwe,g=Vwe,T=xxe,y=Yu,v=Dh,_=Hp,x=SN,L=yb,w=owe,M=awe,C=Jee,E=Lwe,O=ON;return a.withDirectives((a.openBlock(),a.createElementBlock("div",OLr,[a.createVNode(s),a.createElementVNode("div",ILr,[a.createElementVNode("div",PLr,null,512),a.withDirectives(a.createElementVNode("div",VLr,[a.createElementVNode("div",null,[a.createVNode(u,{placement:"right","popper-class":"warning-popper flatmap-popper",teleported:!1,visible:e.hoverVisibilities[6].value,ref:"warningPopover"},{reference:a.withCtx(()=>[r.displayWarning?(a.openBlock(),a.createElementBlock("div",{key:0,class:"warning-icon",onMouseover:t[7]||(t[7]=V=>o.showTooltip(6)),onMouseout:t[8]||(t[8]=V=>o.hideTooltip(6))},[a.createVNode(c,null,{default:a.withCtx(()=>[a.createVNode(l)]),_:1}),r.isLegacy?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[DLr,a.createElementVNode("div",{class:"latest-map-text",onClick:t[6]||(t[6]=(...V)=>o.viewLatestMap&&o.viewLatestMap(...V))}," Click here for the latest map ")],64)):(a.openBlock(),a.createElementBlock("span",FLr,"Beta"))],32)):a.createCommentVNode("",!0)]),default:a.withCtx(()=>[r.isLegacy?(a.openBlock(),a.createElementBlock("p",{key:0,onMouseover:t[0]||(t[0]=V=>o.showTooltip(6)),onMouseout:t[1]||(t[1]=V=>o.hideTooltip(6))}," This is a legacy map, you may view the latest map instead. ",32)):e.isFC?(a.openBlock(),a.createElementBlock("p",{key:1,onMouseover:t[2]||(t[2]=V=>o.showTooltip(6)),onMouseout:t[3]||(t[3]=V=>o.hideTooltip(6))},[a.createTextVNode(" This map displays the connectivity of individual neurons. Specifically, those which align with (parts of) the neuron populations from the "),HLr,a.createTextVNode(" models available in "),NLr,a.createTextVNode(". ")],32)):(a.openBlock(),a.createElementBlock("p",{key:2,onMouseover:t[4]||(t[4]=V=>o.showTooltip(6)),onMouseout:t[5]||(t[5]=V=>o.hideTooltip(6))},[a.createTextVNode(" This map displays the connectivity of neuron populations. Specifically, those from the primarily rat-based "),RLr,a.createTextVNode(" models available in "),BLr,a.createTextVNode(". New connectivity and species specificity will be added as the SPARC program progresses. ")],32))]),_:1},8,["visible"])]),r.displayLatestChanges?(a.openBlock(),a.createBlock(u,{key:0,placement:"right",teleported:!1,trigger:"manual","popper-class":"warning-popper flatmap-popper",visible:e.hoverVisibilities[7].value,ref:"whatsNewPopover"},{reference:a.withCtx(()=>[r.displayLatestChanges?(a.openBlock(),a.createElementBlock("div",{key:0,class:"latest-changesicon",onMouseover:t[9]||(t[9]=V=>o.showTooltip(7)),onMouseout:t[10]||(t[10]=V=>o.hideTooltip(7))},[a.createVNode(c,null,{default:a.withCtx(()=>[a.createVNode(l)]),_:1}),zLr],32)):a.createCommentVNode("",!0)]),default:a.withCtx(()=>[jLr,ULr,GLr,WLr]),_:1},8,["visible"])):a.createCommentVNode("",!0)],512),[[a.vShow,!r.disableUI]]),a.withDirectives(a.createVNode(c,{class:a.normalizeClass(["minimap-resize",{enlarge:e.minimapSmall,shrink:!e.minimapSmall}]),ref:"minimapResize",onClick:o.closeMinimap},{default:a.withCtx(()=>[a.createVNode(d)]),_:1},8,["class","onClick"]),[[a.vShow,e.minimapResizeShow]]),e.viewingMode==="Annotation"&&e.userInformation&&!r.disableUI?(a.openBlock(),a.createBlock(h,{key:0,helpMode:r.helpMode,hoverVisibilities:e.hoverVisibilities,flatmapCanvas:this.$el,drawnType:e.drawnType,activeDrawTool:e.activeDrawTool,activeDrawMode:e.activeDrawMode,drawnCreatedEvent:e.drawnCreatedEvent,connectionEntry:e.connectionEntry,onDrawToolbarEvent:o.drawToolbarEvent,onConfirmDrawn:o.confirmDrawnFeature,onCancelDrawn:o.cancelDrawnFeature,onFeatureTooltip:o.connectedFeatureTooltip,onShowTooltip:o.showTooltip,onHideTooltip:o.hideTooltip,ref:"drawToolPopover"},null,8,["helpMode","hoverVisibilities","flatmapCanvas","drawnType","activeDrawTool","activeDrawMode","drawnCreatedEvent","connectionEntry","onDrawToolbarEvent","onConfirmDrawn","onCancelDrawn","onFeatureTooltip","onShowTooltip","onHideTooltip"])):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("div",ZLr,[a.createVNode(u,{content:"Zoom in",placement:"left",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[0].value,ref:"zoomInPopover"},{reference:a.withCtx(()=>[a.createVNode(p,{icon:"zoomIn",class:"icon-button zoomIn",onClick:t[11]||(t[11]=V=>o.zoomIn()),onMouseover:t[12]||(t[12]=V=>o.showTooltip(0)),onMouseout:t[13]||(t[13]=V=>o.hideTooltip(0))})]),_:1},8,["visible"]),a.createVNode(u,{content:"Zoom out",placement:"top-end",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[1].value,ref:"zoomOutPopover"},{reference:a.withCtx(()=>[a.createVNode(p,{icon:"zoomOut",class:"icon-button zoomOut",onClick:t[14]||(t[14]=V=>o.zoomOut()),onMouseover:t[15]||(t[15]=V=>o.showTooltip(1)),onMouseout:t[16]||(t[16]=V=>o.hideTooltip(1))})]),_:1},8,["visible"]),a.createVNode(u,{content:"Reset",placement:"top",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[2].value,ref:"zoomFitPopover"},{reference:a.withCtx(()=>[a.createVNode(p,{icon:"fitWindow",class:"icon-button fitWindow",onClick:t[17]||(t[17]=V=>o.resetView()),onMouseover:t[18]||(t[18]=V=>o.showTooltip(2)),onMouseout:t[19]||(t[19]=V=>o.hideTooltip(2))})]),default:a.withCtx(()=>[qLr]),_:1},8,["visible"])],512),[[a.vShow,!r.disableUI]]),a.createVNode(u,{content:"Change pathway visibility",placement:"right",teleported:!1,trigger:"manual",offset:-18,"popper-class":"flatmap-popper",visible:e.hoverVisibilities[4].value,ref:"checkBoxPopover"},{reference:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",{class:a.normalizeClass(["pathway-location",{open:e.drawerOpen,close:!e.drawerOpen}])},[a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["pathway-container",{open:e.drawerOpen,close:!e.drawerOpen}]),style:a.normalizeStyle({"max-height":e.pathwaysMaxHeight+"px"})},[e.isFC?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(f,{key:0,class:"svg-legends-container"})),r.showStarInLegend?(a.openBlock(),a.createBlock(u,{key:1,content:"Location of the featured dataset",placement:"right",teleported:!0,trigger:"manual",width:"max-content",offset:-10,"popper-class":"flatmap-popper flatmap-teleport-popper",visible:e.hoverVisibilities[9].value,ref:"featuredMarkerPopover"},{reference:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",{class:"yellow-star-legend",innerHTML:e.yellowstar,onMouseover:t[20]||(t[20]=V=>o.showTooltip(9)),onMouseout:t[21]||(t[21]=V=>o.hideTooltip(9))},null,40,KLr),[[E,void 0,"featuredMarkerPopover"]])]),_:1},8,["visible"])):a.createCommentVNode("",!0),a.createVNode(u,{content:"Find these markers for data. The numbers represent the number of markers in the area.",placement:"right",teleported:!1,width:"200",trigger:"manual","popper-class":"flatmap-popper flatmap-marker-popper",visible:e.hoverVisibilities[5].value,ref:"markerPopover"},{reference:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",{class:"flatmap-marker-help",innerHTML:e.flatmapMarker},null,8,XLr),[[a.vShow,e.hoverVisibilities[5].value],[E,void 0,"markerPopover"]])]),_:1},8,["visible"]),e.isFC&&e.systems&&e.systems.length>0?(a.openBlock(),a.createBlock(m,{key:2,active:e.currentActive,hover:e.currentHover,"tree-data":e.systems,ref:"treeControls",onChanged:o.systemSelected,onCheckAll:o.checkAllSystems,onChangeActive:o.ftuSelected},null,8,["active","hover","tree-data","onChanged","onCheckAll","onChangeActive"])):a.createCommentVNode("",!0),e.containsAlert&&e.alertOptions?(a.openBlock(),a.createBlock(g,{title:"Alert",labelKey:"label",identifierKey:"key",selections:e.alertOptions,onChanged:o.alertSelected,onCheckboxMouseEnter:o.alertMouseEnterEmitted,onSelectionsDataChanged:o.onSelectionsDataChanged,onCheckAll:o.checkAllAlerts,ref:"alertSelection",key:"alertSelection"},null,8,["selections","onChanged","onCheckboxMouseEnter","onSelectionsDataChanged","onCheckAll"])):a.createCommentVNode("",!0),e.pathways&&e.pathways.length>0?(a.openBlock(),a.createBlock(g,{title:"Pathways",labelKey:"label",identifierKey:"type",colourStyle:"line",selections:e.pathways,onChanged:o.pathwaysSelected,onSelectionsDataChanged:o.onSelectionsDataChanged,onCheckAll:o.checkAllPathways,ref:"pathwaysSelection",key:"pathwaysSelection"},null,8,["selections","onChanged","onSelectionsDataChanged","onCheckAll"])):a.createCommentVNode("",!0),!e.isFC&&e.taxonConnectivity&&e.taxonConnectivity.length>0?(a.openBlock(),a.createBlock(g,{title:"Studied in",labelKey:"label",identifierKey:"taxon",helpMessage:"Evidence exists that this set of neuron populations have been studied in the given species.",selections:e.taxonConnectivity,onChanged:o.taxonsSelected,onCheckboxMouseEnter:o.taxonMouseEnterEmitted,onSelectionsDataChanged:o.onSelectionsDataChanged,onCheckAll:o.checkAllTaxons,ref:"taxonSelection",key:"taxonSelection"},null,8,["selections","onChanged","onCheckboxMouseEnter","onSelectionsDataChanged","onCheckAll"])):a.createCommentVNode("",!0),!e.isFC&&e.centreLines&&e.centreLines.length>0?(a.openBlock(),a.createBlock(g,{title:"Nerves",labelKey:"label",identifierKey:"key",selections:e.centreLines,onChanged:o.centreLinesSelected,onSelectionsDataChanged:o.onSelectionsDataChanged,ref:"centrelinesSelection",key:"centrelinesSelection"},null,8,["selections","onChanged","onSelectionsDataChanged"])):a.createCommentVNode("",!0)],6)),[[E,void 0,"checkBoxPopover"]]),a.createElementVNode("div",{onClick:t[22]||(t[22]=(...V)=>o.toggleDrawer&&o.toggleDrawer(...V)),class:a.normalizeClass(["drawer-button",{open:e.drawerOpen,close:!e.drawerOpen}])},[a.createVNode(c,null,{default:a.withCtx(()=>[a.createVNode(T)]),_:1})],2)],2),[[a.vShow,!r.disableUI]])]),_:1},8,["visible"]),e.openMapRef?(a.openBlock(),a.createBlock(u,{key:1,ref:"open-map-popover","virtual-ref":e.openMapRef,placement:"top-start",width:"136",teleported:!1,trigger:"click","popper-class":"open-map-popper non-selectable","virtual-triggering":""},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.openMapOptions,V=>(a.openBlock(),a.createBlock(v,{key:V.key},{default:a.withCtx(()=>[a.createVNode(y,{type:"primary",plain:"",onClick:N=>e.$emit("open-map",V.key)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(V.display),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1},8,["virtual-ref"])):a.createCommentVNode("",!0),a.createVNode(u,{ref:"backgroundPopover","virtual-ref":e.backgroundIconRef,placement:"top-start",width:"320",teleported:!1,trigger:"click","popper-class":"background-popper h-auto","virtual-triggering":""},{default:a.withCtx(()=>[a.createElementVNode("div",null,[a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Viewing Mode")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[a.createElementVNode("div",YLr,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.viewingModes,(V,N)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:V+N},[V.name===e.viewingMode?(a.openBlock(),a.createElementBlock("span",JLr,[a.createElementVNode("b",null,a.toDisplayString(e.viewingMode),1)])):(a.openBlock(),a.createElementBlock("span",{key:1,class:"viewing-mode-unselected",onClick:B=>o.changeViewingMode(N)},a.toDisplayString(V.name),9,$Lr))],64))),128))]),a.createVNode(v,{class:"viewing-mode-description"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.viewingModes[0].description),1)]),_:1})]),_:1}),e.viewingMode==="Annotation"&&e.userInformation?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Drawn By*")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[a.createVNode(L,{teleported:!1,modelValue:e.drawnType,"onUpdate:modelValue":t[23]||(t[23]=V=>e.drawnType=V),placeholder:"Select",class:"select-box","popper-class":"flatmap_dropdown",onChange:o.setDrawnType},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.drawnTypes,V=>(a.openBlock(),a.createBlock(x,{key:V,label:V,value:V},{default:a.withCtx(()=>[a.createVNode(v,null,{default:a.withCtx(()=>[a.createVNode(_,{span:12},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(V),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Annotated By*")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[a.createVNode(L,{teleported:!1,modelValue:e.annotatedType,"onUpdate:modelValue":t[24]||(t[24]=V=>e.annotatedType=V),placeholder:"Select",class:"select-box","popper-class":"flatmap_dropdown",onChange:o.setAnnotatedType},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.annotatedTypes,V=>(a.openBlock(),a.createBlock(x,{key:V,label:V,value:V},{default:a.withCtx(()=>[a.createVNode(v,null,{default:a.withCtx(()=>[a.createVNode(_,{span:12},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(V),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1})],64)):a.createCommentVNode("",!0),e.displayFlightPathOption?(a.openBlock(),a.createBlock(v,{key:1,class:"backgroundSpacer"})):a.createCommentVNode("",!0),e.displayFlightPathOption?(a.openBlock(),a.createBlock(v,{key:2,class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Flight path display")]),_:1})):a.createCommentVNode("",!0),e.displayFlightPathOption?(a.openBlock(),a.createBlock(v,{key:3,class:"backgroundControl"},{default:a.withCtx(()=>[a.createVNode(M,{modelValue:e.flightPath3DRadio,"onUpdate:modelValue":t[25]||(t[25]=V=>e.flightPath3DRadio=V),class:"flatmap-radio",onChange:o.setFlightPath3D},{default:a.withCtx(()=>[a.createVNode(w,{label:!1},{default:a.withCtx(()=>[a.createTextVNode("2D")]),_:1}),a.createVNode(w,{label:!0},{default:a.withCtx(()=>[a.createTextVNode("3D")]),_:1})]),_:1},8,["modelValue","onChange"])]),_:1})):a.createCommentVNode("",!0),a.createVNode(v,{class:"backgroundSpacer"}),a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Organs display")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[a.createVNode(M,{modelValue:e.colourRadio,"onUpdate:modelValue":t[26]||(t[26]=V=>e.colourRadio=V),class:"flatmap-radio",onChange:o.setColour},{default:a.withCtx(()=>[a.createVNode(w,{label:!0},{default:a.withCtx(()=>[a.createTextVNode("Colour")]),_:1}),a.createVNode(w,{label:!1},{default:a.withCtx(()=>[a.createTextVNode("Greyscale")]),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),a.createVNode(v,{class:"backgroundSpacer"}),a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Outlines display")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[a.createVNode(M,{modelValue:e.outlinesRadio,"onUpdate:modelValue":t[27]||(t[27]=V=>e.outlinesRadio=V),class:"flatmap-radio",onChange:o.setOutlines},{default:a.withCtx(()=>[a.createVNode(w,{label:!0},{default:a.withCtx(()=>[a.createTextVNode("Show")]),_:1}),a.createVNode(w,{label:!1},{default:a.withCtx(()=>[a.createTextVNode("Hide")]),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),a.createVNode(v,{class:"backgroundSpacer"}),a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Change background")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.availableBackground,V=>(a.openBlock(),a.createElementBlock("div",{key:V,class:a.normalizeClass(["backgroundChoice",V,V==e.currentBackground?"active":""]),onClick:N=>o.backgroundChangeCallback(V)},null,10,eSr))),128))]),_:1})])]),_:1},8,["virtual-ref"]),a.withDirectives(a.createElementVNode("div",{class:a.normalizeClass(["settings-group",{open:e.drawerOpen,close:!e.drawerOpen}])},[a.createVNode(v,null,{default:a.withCtx(()=>[a.createVNode(u,{visible:e.hoverVisibilities[8].value,content:"Open new map",placement:"right",teleported:!1,"popper-class":"flatmap-popper",ref:"openMapPopover"},{reference:a.withCtx(()=>[r.enableOpenMapUI&&r.openMapOptions.length>0?(a.openBlock(),a.createBlock(p,{key:0,ref:"openMapRef",icon:"openMap",class:"icon-button open-map-button",onMouseover:t[28]||(t[28]=V=>o.showTooltip(8)),onMouseout:t[29]||(t[29]=V=>o.hideTooltip(8))},null,512)):a.createCommentVNode("",!0)]),_:1},8,["visible"])]),_:1}),a.createVNode(v,null,{default:a.withCtx(()=>[a.createVNode(u,{content:"Change settings",placement:"right",visible:e.hoverVisibilities[3].value,teleported:!1,trigger:"manual","popper-class":"flatmap-popper",ref:"settingsPopover"},{reference:a.withCtx(()=>[a.createVNode(p,{ref:"backgroundIconRef",icon:"changeBckgd",class:"icon-button",onMouseover:t[30]||(t[30]=V=>o.showTooltip(3)),onMouseout:t[31]||(t[31]=V=>o.hideTooltip(3))},null,512)]),_:1},8,["visible"])]),_:1})],2),[[a.vShow,!r.disableUI]]),a.withDirectives(a.createVNode(C,{ref:"tooltip",class:"tooltip",annotationEntry:e.annotationEntry,entry:e.tooltipEntry,annotationDisplay:e.viewingMode==="Annotation",onAnnotation:o.commitAnnotationEvent},null,8,["annotationEntry","entry","annotationDisplay","onAnnotation"]),[[a.vShow,e.tooltipDisplay]])])])),[[O,e.loading]])}const Ese=id(ALr,[["render",tSr],["__scopeId","data-v-02529f2e"]]),dNe={"NCBITaxon:10114":"01fedbf9-d783-509c-a10c-827941ab13da","NCBITaxon:9823":"a336ac04-24db-561f-a25f-1c994fe17410","NCBITaxon:9606":"42ed6323-f645-5fbe-bada-9581819cf689","NCBITaxon:10090":"25285fab-48a0-5620-a6a0-f9a0374837d5","NCBITaxon:9685":"73060497-46a6-52bf-b975-cac511c127cb"},rSr={name:"MultiFlatmapVuer",components:{Col:Hp,Row:Dh,Option:SN,Select:yb,Popover:Tb,FlatmapVuer:Ese},beforeMount(){this._resolveList=[],this._initialised=!1},mounted:function(){this.initialise(),bb.on("onActionClick",e=>{this.resourceSelected(e)}),bb.on("open-pubmed-url",e=>{this.$emit("open-pubmed-url",e)})},methods:{initialise:function(){return new Promise(e=>{this.requireInitialisation?(this.requireInitialisation=!1,fetch(this.flatmapAPI).then(t=>t.json()).then(t=>{Object.keys(this.availableSpecies).forEach(n=>{const i=this.availableSpecies[n].uuid;if(i&&t.map(o=>o.uuid).indexOf(i)>0)this.speciesList[n]=a.reactive(this.availableSpecies[n]);else for(let o=0;o<t.length;o++)if(this.availableSpecies[n].taxo===t[o].taxon)if(this.availableSpecies[n].biologicalSex){if(t[o].biologicalSex&&t[o].biologicalSex===this.availableSpecies[n].biologicalSex){this.speciesList[n]=a.reactive(this.availableSpecies[n]);break}}else{this.speciesList[n]=a.reactive(this.availableSpecies[n]);break}});let r=this.initial;if(this.state){const n=this.state.state;(!n||!n.uuid&&!n.entry)&&this.state.species?r=this.state.species:r=void 0}r&&(r&&this.speciesList[r]!==void 0?this.activeSpecies=r:this.activeSpecies=Object.keys(this.speciesList)[0],this.setSpecies(this.activeSpecies,this.state?this.state.state:void 0,5)),this._initialised=!0,e(),this._resolveList.forEach(n=>{n()})})):this._initialised?e():this._resolveList.push(e)})},resourceSelected:function(e){this.$emit("resource-selected",e)},FlatmapReady:function(e){this.$emit("ready",e)},getCurrentFlatmap:function(){return this.$refs[this.activeSpecies][0]},panZoomCallback:function(e){this.$emit("pan-zoom-callback",e)},onSelectionsDataChanged:function(e){this.$emit("pathway-selection-changed",e)},showPopup:function(e,t,r){this.getCurrentFlatmap().showPopup(e,t,r)},showMarkerPopup:function(e,t,r){this.getCurrentFlatmap().showMarkerPopup(e,t,r)},setSpecies:function(e,t,r){if(this.$refs&&e in this.$refs)this.activeSpecies=e,this.$refs[this.activeSpecies][0].createFlatmap(t),this.$emit("flatmapChanged",this.activeSpecies);else if(r){const n=r-1;n>=0&&this.$nextTick(()=>{this.setSpecies(e,t,n)})}},viewLatestMap:function(e){const t=Object.keys(this.speciesList);for(let r=0;r<t.length;r++){const n=this.speciesList[t[r]];if(!n.isLegacy&&n.taxo===e.entry&&n.biologicalSex===e.biologicalSex){this.setSpecies(t[r],e,0);return}}},createLegacyEntry:function(e,t,r){if(r&&t){let n="Legacy";return e.species&&(e.species.slice(0,6)==="Legacy"?n=e.species:n=n+` ${e.species}`),this.speciesList[n]=a.reactive({taxo:t,isLegacy:!0,displayWarning:!0}),{species:n,state:{entry:t,uuid:r,viewport:e.state.viewport,searchTerm:e.state.searchTerm}}}},updateState:function(e){return new Promise(t=>{if(e&&e.state){const r=e.state;if(r.uuid){if(r.entry)return new Promise(()=>{const n=new xse(this.flatmapAPI),i={taxon:r.entry};r.biologicalSex&&(i.biologicalSex=r.biologicalSex),n.findMap_(i).then(o=>{if(o.uuid!==r.uuid)return this.createLegacyEntry(e,r.entry,r.uuid)}).then(o=>{t(o||e)}).catch(()=>{t(e)})})}else if(r.entry){const n=r.entry in dNe?dNe[r.entry]:void 0,i=this.createLegacyEntry(e,r.entry,n);t(i||e)}}t(e)})},getState:function(){let e={species:this.activeSpecies,state:void 0},t=this.getCurrentFlatmap();return e.state=t.getState(),e},setState:function(e){e&&this.updateState(e).then(t=>{this.initialise().then(()=>{t.species&&t.species!==this.activeSpecies?this.setSpecies(t.species,t.state,5):t.state&&this.getCurrentFlatmap().setState(t.state)})})},activateTooltipByIndex:function(e){return e===this.helpModeActiveItem&&this.helpMode},onHelpModeLastItem:function(e){e&&this.$emit("help-mode-last-item",!0)},onTooltipShown:function(){this.$emit("shown-tooltip")},onMapTooltipShown:function(){this.$emit("shown-map-tooltip")}},props:{initial:{type:String,default:""},minZoom:{type:Number,default:4},renderAtMounted:{type:Boolean,default:!1},helpMode:{type:Boolean,default:!1},helpModeActiveItem:{type:Number,default:0},helpModeDialog:{type:Boolean,default:!1},helpModeLastItem:{type:Boolean,default:!1},displayMinimap:{type:Boolean,default:!1},showStarInLegend:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array},availableSpecies:{type:Object,default:function(){return{"Human Female":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000383",iconClass:"mapicon-icon_human",displayWarning:!0},"Human Male":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000384",iconClass:"mapicon-icon_human",displayWarning:!0},Rat:{taxo:"NCBITaxon:10114",iconClass:"mapicon-icon_rat",displayLatestChanges:!0},Mouse:{taxo:"NCBITaxon:10090",iconClass:"mapicon-icon_mouse",displayWarning:!0},Pig:{taxo:"NCBITaxon:9823",iconClass:"mapicon-icon_pig",displayWarning:!0},Cat:{taxo:"NCBITaxon:9685",iconClass:"mapicon-icon_cat",displayWarning:!0}}}},state:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},disableUI:{type:Boolean,default:!1}},data:function(){return{activeSpecies:void 0,speciesList:{},requireInitialisation:!0}},watch:{state:{handler:function(e){this.setState(e)},immediate:!0,deep:!0}}},nSr=e=>(a.pushScopeId("data-v-e3a812a8"),e=e(),a.popScopeId(),e),iSr={class:"multi-container",ref:"multiContainer"},oSr={key:0,style:{position:"absolute","z-index":"10"}},aSr=nSr(()=>a.createElementVNode("div",{class:"species-display-text"},"Species",-1)),sSr={class:"select-box-icon"};function lSr(e,t,r,n,i,o){const s=SN,l=yb,c=Tb,u=Ese;return a.openBlock(),a.createElementBlock("div",iSr,[r.disableUI?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",oSr,[aSr,a.createVNode(c,{content:"Select a species",placement:"right",trigger:"manual","popper-class":"flatmap-popper flatmap-teleport-popper right-popper",width:"max-content",visible:o.activateTooltipByIndex(0),teleported:!1,ref:"selectPopover"},{reference:a.withCtx(()=>[a.createVNode(l,{id:"flatmap-select",teleported:!1,modelValue:e.activeSpecies,"onUpdate:modelValue":t[0]||(t[0]=d=>e.activeSpecies=d),placeholder:"Select",class:"select-box","popper-class":"flatmap-dropdown",onChange:o.setSpecies},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.speciesList,(d,h)=>(a.openBlock(),a.createBlock(s,{key:h,label:h,value:h},{default:a.withCtx(()=>[a.createElementVNode("span",sSr,[a.createElementVNode("i",{class:a.normalizeClass(d.iconClass)},null,2)]),a.createTextVNode(" "+a.toDisplayString(h),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["visible"])])),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.speciesList,(d,h)=>a.withDirectives((a.openBlock(),a.createBlock(u,{key:h,entry:d.taxo,uuid:d.uuid,biologicalSex:d.biologicalSex,displayWarning:d.displayWarning,displayLatestChanges:d.displayLatestChanges,isLegacy:d.isLegacy,ref_for:!0,ref:h,enableOpenMapUI:r.enableOpenMapUI,openMapOptions:r.openMapOptions,disableUI:r.disableUI,onViewLatestMap:o.viewLatestMap,onResourceSelected:o.resourceSelected,onReady:o.FlatmapReady,onPanZoomCallback:o.panZoomCallback,onOpenMap:t[1]||(t[1]=p=>e.$emit("open-map",p)),onPathwaySelectionChanged:o.onSelectionsDataChanged,minZoom:r.minZoom,helpMode:e.activeSpecies==h&&r.helpMode,helpModeActiveItem:r.helpModeActiveItem,helpModeDialog:r.helpModeDialog,helpModeInitialIndex:-2,onHelpModeLastItem:o.onHelpModeLastItem,onShownTooltip:o.onTooltipShown,onShownMapTooltip:o.onMapTooltipShown,renderAtMounted:r.renderAtMounted,displayMinimap:r.displayMinimap,showStarInLegend:r.showStarInLegend,style:{height:"100%"},flatmapAPI:r.flatmapAPI,sparcAPI:r.sparcAPI},null,8,["entry","uuid","biologicalSex","displayWarning","displayLatestChanges","isLegacy","enableOpenMapUI","openMapOptions","disableUI","onViewLatestMap","onResourceSelected","onReady","onPanZoomCallback","onPathwaySelectionChanged","minZoom","helpMode","helpModeActiveItem","helpModeDialog","onHelpModeLastItem","onShownTooltip","onShownMapTooltip","renderAtMounted","displayMinimap","showStarInLegend","flatmapAPI","sparcAPI"])),[[a.vShow,e.activeSpecies==h]])),128))],512)}const cSr=id(rSr,[["render",lSr],["__scopeId","data-v-e3a812a8"]]),uSr={name:"HelpModeDialog",components:{Button:Yu},props:{multiflatmapRef:{type:Object,default:null},flatmapRef:{type:Object,default:null},scaffoldRef:{type:Object,default:null},lastItem:{type:Boolean,default:!1,required:!1}},mounted:function(){this.toggleHelpModeHighlight(!0),this.toggleTooltipHighlight()},unmounted:function(){this.toggleHelpModeHighlight(!1)},watch:{lastItem:function(e){e&&this.toggleTooltipHighlight()}},methods:{showNext:function(){this.$emit("show-next")},finishHelpMode:function(){this.$emit("finish-help-mode")},toggleTooltipPinHighlight:function(){const e=this.getCurrentFlatmap();this.resetHighlightedItems(),this.$nextTick(()=>{var t;const r=e.querySelectorAll(".maplibregl-marker"),n=e.querySelector(".flatmap-popup-popper"),i=((t=n==null?void 0:n.style)==null?void 0:t.transform)||"",o=this.extractMarkerPosition(i);r.forEach(s=>{const l=s.style.transform;this.extractMarkerPosition(l)===o&&s.classList.add("in-help-highlight")})})},toggleTooltipHighlight:function(){this.resetHighlightedItems(),this.$nextTick(()=>{document.querySelectorAll('.el-popper:not([style*="none"])').forEach(e=>{const t=e.classList.contains("flatmap-popper"),r=e.classList.contains("el-fade-in-linear-enter-active");(t||r)&&this.toggleHighlight(e)})})},toggleHighlight:function(e){const t=(e==null?void 0:e.id)||"",r=document.querySelector(`[aria-describedby="${t}"]`);r&&r.classList.add("in-help-highlight")},resetHighlightedItems:function(){document.querySelectorAll(".in-help-highlight").forEach(e=>{e.classList.remove("in-help-highlight")})},getCurrentScaffold:function(){var e;return((e=this.scaffoldRef)==null?void 0:e.$el)||null},getCurrentMultiflatmap:function(){var e;return((e=this.multiflatmapRef)==null?void 0:e.$el)||null},getCurrentFlatmap:function(){var e;const t=this.flatmapRef||((e=this.multiflatmapRef)==null?void 0:e.getCurrentFlatmap());return(t==null?void 0:t.$el)||null},toggleHelpModeHighlight:function(e){const t=this.getCurrentMultiflatmap(),r=this.getCurrentFlatmap(),n=this.getCurrentScaffold(),i=document.querySelectorAll(".in-help-highlight");t&&(e?t.classList.add("in-help"):t.classList.remove("in-help")),r&&(e?r.classList.add("in-help"):r.classList.remove("in-help")),n&&(e?n.classList.add("in-help"):n.classList.remove("in-help")),e||i.forEach(o=>{o.classList.remove("in-help-highlight")})},extractMarkerPosition:function(e){const t=/translate\((.*?)\)/g,r=e.match(t);return r?r[r.length-1].slice(10,-1):""}}},Ase=e=>(a.pushScopeId("data-v-8f3f8060"),e=e(),a.popScopeId(),e),dSr=Ase(()=>a.createElementVNode("h4",null,"Help Mode",-1)),hSr=Ase(()=>a.createElementVNode("p",null,[a.createTextVNode(" All caught up! "),a.createElementVNode("br"),a.createTextVNode(" Click 'Help' to restart. ")],-1)),pSr=Ase(()=>a.createElementVNode("p",null,'Click "Next" to see the next item.',-1));function fSr(e,t,r,n,i,o){const s=Yu;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["help-mode-dialog",{finish:r.lastItem}])},[dSr,r.lastItem?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[hSr,a.createElementVNode("div",null,[a.createVNode(s,{class:"button",onClick:o.finishHelpMode},{default:a.withCtx(()=>[a.createTextVNode(" Finish ")]),_:1},8,["onClick"])])],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[pSr,a.createElementVNode("div",null,[a.createVNode(s,{class:"button",onClick:o.showNext},{default:a.withCtx(()=>[a.createTextVNode(" Next ")]),_:1},8,["onClick"]),a.createVNode(s,{class:"button secondary",onClick:o.finishHelpMode},{default:a.withCtx(()=>[a.createTextVNode(" Exit Help Mode ")]),_:1},8,["onClick"])])],64))],2)}const hNe=id(uSr,[["render",fSr],["__scopeId","data-v-8f3f8060"]]),uE=[{id:"ilxtr:neuron-type-keast-13",centrelines:["n_71"]},{id:"ilxtr:neuron-type-keast-2",centrelines:["bladder_n"]},{id:"ilxtr:neuron-type-keast-3",centrelines:["bladder_n","hypogastric_n"]},{id:"ilxtr:neuron-type-keast-15",centrelines:["n_73"]},{id:"ilxtr:neuron-type-keast-1",centrelines:["bladder_n"]},{id:"ilxtr:neuron-type-keast-7",centrelines:["L1_ventral_root_ramus","L1_spinal_n-1","lumbar_splanchnic_n","L2_spinal_n","L2_ventral_root_ramus"]},{id:"ilxtr:neuron-type-keast-9",centrelines:["L6_spinal_n-1","L6_ventral_root","pudendal_n","L5_spinal_n","L5_ventral_root"]},{id:"ilxtr:neuron-type-keast-10",centrelines:["S1_dorsal_root","S1_spinal_n-2","pelvic_splanchnic_n","L6_spinal_n-2","L6_dorsal_root","bladder_n"]},{id:"ilxtr:neuron-type-keast-11",centrelines:["lumbar_splanchnic_n","L2_spinal_n","L1_spinal_n-1","hypogastric_n","bladder_n","L1_dorsal_root","L2_dorsal_root"]},{id:"ilxtr:neuron-type-keast-12",centrelines:["L6_spinal_n-1","L6_dorsal_root","pudendal_n","S1_spinal_n-1","S1_dorsal_root"]},{id:"ilxtr:neuron-type-keast-8",centrelines:["L1_ventral_root_paravertebral_ganglion","L1-L2_interganglionic_segment","sympathetic_trunk_T13-L1","L2_ventral_root_paravertebral_ganglion","sympathetic_trunk_L2-L3","sympathetic_trunk_L4-L5","sympathetic_trunk_L3-L4","sympathetic_trunk_L5-L6","sympathetic_trunk_T12-T13"]},{id:"ilxtr:neuron-type-keast-20",centrelines:["T1_T2_cns","C8_T1_cns","T2_T3_cns","T10_T11_cns","T9_T10_cns","T11_T12_cns","T8_T9_cns","C7_C8_cns","C6_C7_cns","C4_C5_cns","C3_C4_cns","C5_C6_cns","medulla_C1_cns","pons_medulla_cns","C1_C2_cns","T5_T6_cns","T4_T5_cns","T6_T7_cns","L3_L4_cns","L2_L3_cns","L4_L5_cns","L5_L6_cns","T13_L1_cns","T12_T13_cns","L1_L2_cns","T3_T4_cns","n_69","C2_C3_cns","T7_T8_cns"]},{id:"ilxtr:neuron-type-keast-16",centrelines:["n_74"]},{id:"ilxtr:neuron-type-keast-4",centrelines:["sympathetic_trunk_L6-S1","L6_gray_ramus-spinal_n","sympathetic_trunk_L5-L6","S1_gray_ramus-spinal_n","S1_spinal_n-2","pelvic_splanchnic_n","L6_spinal_n-2","L1-L2_interganglionic_segment","sympathetic_trunk_T13-L1","sympathetic_trunk_L2-L3","bladder_n","sympathetic_trunk_L4-L5","sympathetic_trunk_L3-L4","sympathetic_trunk_T12-T13"]},{id:"ilxtr:neuron-type-keast-17",centrelines:["n_75"]},{id:"ilxtr:neuron-type-keast-5",centrelines:["S1_ventral_root","S1_spinal_n-2","pelvic_splanchnic_n","L6_spinal_n-2","L6_ventral_root"]},{id:"ilxtr:neuron-type-keast-18",centrelines:["n_70"]},{id:"ilxtr:neuron-type-keast-6",centrelines:["L1_ventral_root_ramus","L1_spinal_n-1","lumbar_splanchnic_n","L2_spinal_n","hypogastric_n","L2_ventral_root_ramus"]},{id:"ilxtr:neuron-type-keast-19",centrelines:["n_69"]},{id:"ilxtr:neuron-type-keast-14",centrelines:["n_72"]}];function ZQ(e,t,r,n,i){let o={};if(o.dataset=r,o.scaffold=n,o.simulations=i,t?o.title=t:o.title=e,o.description="",o.actions=[],e)switch(e){case"ICN":o.title="RNA",o.description="The distribution of neurons in the intrinsic cardiac nervous system (ICN) were mapped and visualized in a 3D reconstruction of a male rat heart.",o.actions={search:{title:"Explore data",resource:"icn",type:"Search",label:"ICN",filter:{facet:"genotype",term:"heart"}},plot:{title:"View plot",label:"ICN",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/ISAN/csv-data/use-case-4/RNA_Seq.csv",type:"Plot",plotType:"heatmap",datasetTitle:"Molecular Phenotype Distribution of Single Rat Intracardiac Neurons",datasetDescription:"Images collected from serial cryostat sectioning of a cryopreserved heart was used to reconstruct the 3D context. Transcriptional profiles taken from isolated single neurons and mapped back into the previously generated 3D context.",datasetUrl:"https://discover.pennsieve.io/datasets/29",datasetImage:"https://assets.discover.pennsieve.io/dataset-assets/29/6/revisions/1/banner.jpg"}};break}else o.actions=[];return o}function mSr(e,t,r,n,i){if(e||t){let o={};switch(e){case"UBERON:0001157":o.title="Colon",o.description="",o.actions={search:{title:"Explore data",label:"Colon",resource:"https://sparc.science/data?type=dataset&q=colon",type:"Search",filter:{facet:"genotype",term:"colon"}},scaffold:{title:"View 3D scaffold",label:"Colon",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Colon/human/humanColon_metadata.json",type:"Scaffold"}};break;case"UBERON:0000948":case"UBERON:0002080":o.title="Heart",o.description="",o.actions={search:{title:"Explore data",label:"Heart",resource:"https://sparc.science/data?type=dataset&q=colon",type:"Search",filter:{facet:"genotype",term:"heart"}},scaffold:{title:"View 3D scaffold",label:"Heart",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Heart/human/humanHeart_metadata.json",type:"Scaffold"}};break;case"UBERON:0002048":o.title="Lung",o.description="",o.actions={search:{title:"Explore data",label:"Lung",resource:"https://sparc.science/data?type=dataset&q=lung",type:"Search"},scaffold:{title:"View 3D scaffold",label:"Lung",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Lungs/human/humanLeftLung_metadata.json",type:"Scaffold"}};break;default:o=ZQ(e,t,r,n,i);break}return o}}function gSr(e,t,r,n,i){if(e||t){let o={};switch(e){case"UBERON:0000948":case"UBERON:0002080":i?o=ZQ(e,t,r,n,i):(o.title="Heart",o.description="",o.actions={search:{title:"Explore data",label:"Heart",resource:"https://sparc.science/data?type=dataset&q=heart",type:"Search",filter:{facet:"genotype",term:"heart"}},scaffold:{title:"View 3D scaffold",label:"Heart",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Heart/rat/ratHeart_metadata.json",type:"Scaffold"},simulation:{title:"Explore simulations",label:"Heart",resource:"https://sparc.science/data?type=simulation&q=heart",type:"URL"}});break;case"UBERON:0001156":o.title="Colon",o.description="",o.actions={search:{title:"Explore data",label:"Colon",resource:"https://sparc.science/data?type=dataset&q=colon",type:"Search"}};break;case"UBERON:0002108":o.title="Small intestines",o.description="",o.actions={search:{title:"Explore data",label:"Colon",resource:"https://sparc.science/data?type=dataset&q=small+intestines",type:"Search"}};break;case"UBERON:0001255":o.title="Urinary bladder",o.description="",o.actions={search:{title:"Explore data",label:"Urinary Bladder",resource:"https://sparc.science/data?type=dataset&q=bladder",type:"Search"},scaffold:{title:"View 3D scaffold",label:"Bladder",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Bladder/rat/ratBladder_metadata.json",type:"Scaffold"}};break;case"UBERON:0002048":o.title="Lung",o.description="",o.actions={search:{title:"Explore data",label:"Lung",resource:"https://sparc.science/data?type=dataset&q=lung",type:"Search"}};break;case"ICN":o.title="RNA",o.description="The distribution of neurons in the intrinsic cardiac nervous system (ICN) were mapped and visualized in a 3D reconstruction of a male rat heart.",o.actions={search:{title:"Explore data",resource:"icn",type:"Search"},plot:{title:"View plot",label:"ICN",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/ISAN/csv-data/use-case-4/RNA_Seq.csv",type:"Plot",plotType:"heatmap",datasetTitle:"Molecular Phenotype Distribution of Single Rat Intracardiac Neurons",datasetDescription:"Images collected from serial cryostat sectioning of a cryopreserved heart was used to reconstruct the 3D context. Transcriptional profiles taken from isolated single neurons and mapped back into the previously generated 3D context.",datasetUrl:"https://discover.pennsieve.io/datasets/29",datasetImage:"https://assets.discover.pennsieve.io/dataset-assets/29/6/revisions/1/banner.jpg"}};break;case"UBERON:0000945":case"UBERON:0001160":case"UBERON:0001161":o.title="Stomach",o.description="",o.actions={search:{title:"Explore data",label:"Stomach",resource:"https://sparc.science/data?type=dataset&q=stomach",type:"Search"},scaffold:{title:"View 3D scaffold",label:"Stomach",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Stomach/rat/ratStomach_metadata.json",type:"Scaffold"}};break;case"UBERON:0001759":t?o.title=t:o.title="Vagus nerve",o.actions={search:{title:"Explore data",label:"Vagus nerve",resource:"https://sparc.science/data?type=dataset&q=vagus+nerve",type:"Search"},simulation:{title:"Explore simulations",label:"Vagus nerve",resource:"https://sparc.science/data?type=simulation&q=vagus%20nerve",type:"simulation"}};break;default:o=ZQ(e,t,r,n,i);break}return o}}function ySr(e,t,r,n,i){if(e||t){let o={};switch(e){case"UBERON:0001156":o.title="Colon",o.description="",o.actions={search:{title:"Explore data",label:"Colon",resource:"https://sparc.science/data?type=dataset&q=colon",type:"Search"},scaffold:{title:"View 3D scaffold",label:"Colon",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Colon/mouse/mouseColon_metadata.json",type:"Scaffold"}};break;case"UBERON:0002048":o.title="Lung",o.description="",o.actions={search:{title:"Explore data",label:"Lung",resource:"https://sparc.science/data?type=dataset&q=lung",type:"Search"},scaffold:{title:"View 3D scaffold",label:"Lung",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Lungs/mouse/mouseLeftLung_metadata.json",type:"Scaffold"}};break;case"UBERON:0002108":o.title="Small intestines",o.description="",o.actions={search:{title:"Explore data",label:"Colon",resource:"https://sparc.science/data?type=dataset&q=small+intestines",type:"Search"}};break;default:o=ZQ(e,t,r,n,i);break}return o}}function TSr(e,t,r,n,i){if(e||t){let o={};switch(e){case"UBERON:0008972":o.title="Colon",o.description="",o.actions={search:{title:"Explore data",label:"Colon",resource:"https://sparc.science/data?type=dataset&q=colon",type:"Search"},scaffold:{title:"View 3D scaffold",label:"Colon",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Colon/pig/pigColon_metadata.json",type:"Scaffold"}};break;case"UBERON:0002108":o.title="Small intestines",o.description="",o.actions={search:{title:"Explore data",label:"Colon",resource:"https://sparc.science/data?type=dataset&q=small+intestines",type:"Search"}};break;case"UBERON:0000948":case"UBERON:0002080":o.title="Heart",o.description="",o.actions={search:{title:"Explore data",label:"Heart",resource:"https://sparc.science/data?type=dataset&q=colon",type:"Search",filter:{facet:"genotype",term:"heart"}},scaffold:{title:"View 3D scaffold",label:"Heart",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Heart/pig/pigHeart_metadata.json",type:"Scaffold"}};break;default:o=ZQ(e,t,r,n,i);break}return o}}function vSr(e,t,r,n,i,o){switch(t){case"NCBITaxon:9606":return mSr(e,r,n,i,o);case"NCBITaxon:9823":return TSr(e,r,n,i,o);case"NCBITaxon:10090":return ySr(e,r,n,i,o);case"NCBITaxon:10114":return gSr(e,r,n,i,o);default:return ZQ(e,t,r,n,i)}}function bSr(){return[{id:"UBERON:0000948",name:"Heart",type:"simulation"},{id:"UBERON:0001156",name:"Colon",type:"simulation"},{id:"UBERON:0001255",name:"Bladder",type:"simulation"},{id:"UBERON:0000945",name:"Stomach",type:"simulation"},{id:"UBERON:0001759",name:"Vagus nerve",type:"simulation"},{id:"UBERON:0002108",name:"Small intestines",type:"simulation"},{id:"UBERON:0002107",name:"Liver",type:"simulation"}]}function QSr(){return bSr()}function pNe(e){if(e)for(let t=0;t<uE.length;t++){if(uE[t].id==e)return uE[t].centrelines;if(uE[t].centrelines.find(n=>n===e))return[uE[t].id]}return[]}function xSr(e){if(e){const t=e.toLowerCase();if(t.includes("heart"))return{id:"UBERON:0000948",name:"Heart"};if(t.includes("liver"))return{id:"UBERON:0002107",name:"Liver"};if(t.includes("stomach"))return{id:"UBERON:0000945",name:"Stomach"};if(t.includes("colon"))return{id:"UBERON:0001156",name:"Colon"};if(t.includes("bladder"))return{id:"UBERON:0001255",name:"Bladder"}}}function _Sr(e,t){if(e&&e.resource){let r=e.resource;Array.isArray(r)&&r[0]&&(r=r[0]);let n,i,o,s,l,c=r.taxonomy;if(r.data&&r.data.id?(n=r.data.id,i=r.data.id):r.feature&&(n=r.feature.models,i=r.feature.label,o=r.feature.dataset,s=r.feature.scaffold,l=r.feature.simulations),n||i){let u=vSr(n,c,i,o,s,l);if(u&&u.actions)return u.actions[t]}}}let Ose=7,u4=5;const wSr=[{id:"UBERON:0000948",name:"heart",showAtZoom:1},{id:"UBERON:0001759",name:"vagus nerve",showAtZoom:1},{id:"UBERON:0001155",name:"colon",showAtZoom:1},{id:"UBERON:0000945",name:"stomach",showAtZoom:1},{id:"UBERON:0001013",name:"adipose tissue",showAtZoom:1},{id:"UBERON:0001255",name:"urinary bladder",showAtZoom:1},{id:"UBERON:0001348",name:"brown adipose tissue",showAtZoom:6},{id:"UBERON:0002008",name:"cardiac nerve plexus",showAtZoom:1},{id:"UBERON:0002240",name:"spinal cord",showAtZoom:1},{id:"UBERON:0002005",name:"Enteric Nervous System",showAtZoom:4},{id:"UBERON:0013702",name:"body proper",showAtZoom:1},{id:"UBERON:0002298",name:"brainstem",showAtZoom:1},{id:"UBERON:0002439",name:"myenteric nerve plexus",showAtZoom:6},{id:"UBERON:0000010",name:"peripheral nervous system",showAtZoom:6},{id:"UBERON:0002048",name:"lung",showAtZoom:1},{id:"UBERON:0002410",name:"autonomic nervous system",showAtZoom:6},{id:"UBERON:0002441",name:"cervicothoracic ganglion",showAtZoom:6},{id:"UBERON:0005363",name:"inferior vagus X ganglion",showAtZoom:6},{id:"UBERON:0001264",name:"pancreas",showAtZoom:1},{id:"UBERON:0001884",name:"phrenic nerve",showAtZoom:6},{id:"UBERON:0002059",name:"submandibular ganglion",showAtZoom:7},{id:"UBERON:0001347",name:"white adipose tissue",showAtZoom:6},{id:"UBERON:0001556",name:"lower urinary tract",showAtZoom:1},{id:"UBERON:0002262",name:"celiac ganglion",showAtZoom:5},{id:"UBERON:0000955",name:"Brain",showAtZoom:1},{id:"UBERON:0000160",name:"intestine",showAtZoom:1},{id:"UBERON:0001322",name:"sciatic nerve",showAtZoom:1},{id:"UBERON:0001649",name:"glossopharyngeal nerve",showAtZoom:6},{id:"UBERON:0002063",name:"sinus venosus",showAtZoom:6},{id:"UBERON:0002107",name:"liver",showAtZoom:1},{id:"UBERON:0002113",name:"kidney",showAtZoom:1},{id:"UBERON:0002481",name:"bone tissue",showAtZoom:1},{id:"UBERON:0004907",name:"lower digestive tract",showAtZoom:4},{id:"UBERON:0000044",name:"Dorsal root ganglion",showAtZoom:5},{id:"UBERON:0001736",name:"Submandibular gland",showAtZoom:Ose,keyword:!0},{id:"UBERON:0001103",name:"Diaphragm",showAtZoom:u4,keyword:!0},{id:"UBERON:0001160",name:"Fundus of stomach",showAtZoom:u4,keyword:!0},{id:"UBERON:0000955",name:"Brain",showAtZoom:u4,keyword:!0},{id:"UBERON:0003708",name:"Carotid sinus",showAtZoom:Ose,keyword:!0},{id:"UBERON:0002079",name:"Left cardiac atrium",showAtZoom:u4,keyword:!0},{id:"ILX:0485722",name:"Nodose ganglion",showAtZoom:Ose,keyword:!0},{id:"UBERON:0002078",name:"Right cardiac atrium",showAtZoom:u4,keyword:!0},{id:"UBERON:0002084",name:"Heart left ventricle",showAtZoom:u4,keyword:!0},{id:"UBERON:0002080",name:"Heart right ventricle",showAtZoom:u4,keyword:!0},{id:"UBERON:0001508",name:"Arch of Aorta",showAtZoom:u4,keyword:!0},{id:"UBERON:0001738",name:"Thyroid cartilage",showAtZoom:u4,keyword:!0},{id:"UBERON:0000388",name:"Epiglottis",showAtZoom:u4,keyword:!0}];function LSr(e){return e[0].toUpperCase()+e.substring(1)}const qQ={emits:["flatmap-provenance-ready","resource-selected","species-changed"],props:{entry:Object,visible:{type:Boolean,default:!0},mouseHovered:{type:Boolean,default:!1}},computed:{...fc.mapStores(Qv,sm),syncMode(){return this.splitFlowStore.syncMode},useHelpModeDialog(){return this.settingsStore.useHelpModeDialog}},mounted:function(){Zo.on("startHelp",()=>{this.startHelp()}),this.multiflatmapRef=this.$refs.multiflatmap,this.flatmapRef=this.$refs.flatmap,this.scaffoldRef=this.$refs.scaffold},methods:{toggleSyncMode:function(){},getState:function(){},openMap:function(e){e==="SYNC"?(this.toggleSyncMode(),this.trackOpenMap("toggle_map_sync_mode")):(Zo.emit("OpenNewMap",e),this.trackOpenMap(`open_new_${e}_map`))},trackOpenMap:function(e){k1.sendEvent({event:"interaction_event",event_name:"portal_maps_open_map",category:e,location:"open_new_map"})},updateWithViewUrl:function(){},search:function(){return!1},searchSuggestions:function(){},resourceSelected:function(e,t,r){var l,c,u;if(this.resourceHasAction(t)){Zo.emit("PopoverActionClick",t);return}let n,i="none",o=!1;const s={paneIndex:this.entry.id,type:e,resource:t,internalName:void 0,eventType:void 0};if(e=="MultiFlatmap"||e=="Flatmap")if(s.internalName=this.idNamePair[t.feature.models],t.eventType=="click")if(s.eventType="selected",t.feature.type=="marker"){let d=this.idNamePair[t.feature.models],h=wSr.filter(p=>p.id===t.feature.models);this.settingsStore.isFeaturedMarkerIdentifier(t.feature.id)?n={type:"Search",term:this.settingsStore.featuredMarkerDoi(t.feature.id),featuredDataset:!0}:h.filter(p=>p.keyword).length>0?n={type:"Search",term:"http://purl.obolibrary.org/obo/"+t.feature.models.replace(":","_")}:n={type:"Facet",facet:d,facetPropPath:"anatomy.organ.category.name",term:"Anatomical structure"},o=!0,e=="MultiFlatmap"&&this.$refs.multiflatmap.getCurrentFlatmap().mapImp.clearSearchResults()}else t.feature.type=="feature"&&(this.syncMode?o=!0:i="scaffold");else t.eventType=="mouseenter"&&(s.eventType="highlighted",o=!0);else e=="Scaffold"&&(t&&t[0]&&((((l=t[0].data)==null?void 0:l.id)===void 0||((c=t[0].data)==null?void 0:c.id)==="")&&(t[0].data.id=(u=t[0].data)==null?void 0:u.group),s.internalName=t[0].data.id,t[0].data.lastActionOnMarker===!0&&(n={type:"Facet",facet:LSr(t[0].data.id),facetPropPath:"anatomy.organ.category.name",term:"Anatomical structure"})),s.eventType="selected",o=!0,i="search");n===void 0&&r&&(n=_Sr(s,i)),n&&Zo.emit("PopoverActionClick",n),o&&this.$emit("resource-selected",s)},resourceHasAction:function(e){return e.type==="URL"||e.type==="Search"||e.type==="Neuron Search"||e.type=="Facet"||e.type=="Facets"},isVisible:function(){return this.splitFlowStore.getPaneNameById(this.entry.id)!==void 0},displayTooltip:function(){},getNameAndIdFromSyncData:async function(e){let t=e.internalName;t===void 0&&e.resource&&(t=e.resource.label);let r;if(e.resource&&e.resource.resource&&(r=e.resource.resource[0]),this.entry.type==="Scaffold"){if(this.$refs.scaffold.findObjectsWithGroupName(t).length===0){if(e.resource&&e.resource.feature){const o=pNe(e.resource.feature.models);if(o.length>0)return o}let i=xSr(t);if(i)return i;if(r&&e.eventType==="selected")return fetch(`${this.apiLocation}get-related-terms/${r}`).then(o=>o.json()).then(o=>{if(o.uberon.array.length>0)return t=o.uberon.array[0].name.charAt(0).toUpperCase()+o.uberon.array[0].name.slice(1),r=o.uberon.array[0].id.toUpperCase(),{id:r,name:t}})}}else if(this.entry.type==="MultiFlatmap")if(t==="Bladder")t="Urinary Bladder";else{const n=pNe(t);n.length>0&&(t=n[0])}return{id:r,name:t}},getDatasetAnatomyInfo:function(e){fetch(`${this.apiLocation}dataset_info/anatomy?identifier=${e}`).then(t=>t.json()).then(t=>{const r=t.result[0];let n;try{n=r.anatomy.organ[0].curie}catch{n=void 0}let i;try{i=r.item.curie}catch{i=void 0}let o;try{let s=0,l=!1;for(;!l&&s<r.organisms.subject.length;){const c=r.organisms.subject[s];c.species&&(o=c.species.name,l=!0),s+=1}}catch{o=void 0}this.settingsStore.updateFeaturedMarker({identifier:e,marker:n,doi:i,species:o})})},oldFeaturedDatasetApiHasInfo:async function(){let t=await(await fetch(`${this.apiLocation}get_featured_datasets_identifiers`)).json();return!t.identifiers||t.identifiers.length==0?!1:t.identifiers},newFeaturedDatasetApiHasInfo:async function(){let t=await(await fetch(`${this.apiLocation}get_featured_dataset`)).json();return!t.datasets||t.datasets.length==0?!1:t.datasets.map(r=>r.id)},getFeaturedDatasets:async function(){let e=[],t=await this.oldFeaturedDatasetApiHasInfo();if(t)e=t;else{let r=await this.newFeaturedDatasetApiHasInfo();r&&(e=r)}this.settingsStore.updateFeatured(e),e.forEach(r=>{this.getDatasetAnatomyInfo(r)})},zoomToFeatures:function(){},handleSyncMouseEvent:async function(e){let t=await this.getNameAndIdFromSyncData(e);e.eventType==="highlighted"?this.highlightFeatures(t):e.eventType==="selected"&&this.displayTooltip(t)},handleSyncPanZoomEvent:function(){},highlightFeatures:function(){},receiveSynchronisedEvent:async function(e){if(e.paneIndex!==this.entry.id)e.eventType=="panZoom"||this.handleSyncMouseEvent(e);else if(e.eventType=="selected"){let t=await this.getNameAndIdFromSyncData(e);this.zoomToFeatures(t,!1)}},requestSynchronisedEvent:function(){},getAvailableTerms:function(){let e=QSr();for(let t=0;t<e.length;t++)this.idNamePair[e[t].id]=e[t].name;if(this.apiLocation){this._controller&&this._controller.abort(),this._controller=new AbortController;let t=this._controller.signal;fetch(`${this.apiLocation}get-organ-curies`,{signal:t}).then(r=>r.json()).then(r=>{this._controller=void 0,r.uberon.array.forEach(n=>{this.idNamePair[n.id.toUpperCase()]=n.name.charAt(0).toUpperCase()+n.name.slice(1)})})}},flatmapMarkerUpdate(){},onResize:function(){},startHelp:function(){this.isInHelp===!1&&(this.helpMode=!0,window.addEventListener("mousedown",this.checkEndHelpMouseDown),this.isInHelp=!0)},endHelp:function(){window.removeEventListener("mousedown",this.checkEndHelpMouseDown),this.helpMode=!1,setTimeout(()=>{this.isInHelp=!1},200)},onHelpModeShowNext:function(){this.helpModeActiveItem+=1},onHelpModeLastItem:function(e){e&&(this.helpModeLastItem=!0)},onFinishHelpMode:function(){this.helpMode=!1,this.helpModeActiveItem=0,this.helpModeLastItem=!1},onTooltipShown:function(){this.$refs.multiflatmap&&this.$refs.multiflatmapHelp&&this.$refs.multiflatmapHelp.toggleTooltipHighlight(),this.$refs.flatmap&&this.$refs.flatmapHelp&&this.$refs.flatmapHelp.toggleTooltipHighlight(),this.$refs.scaffold&&this.$refs.scaffoldHelp&&this.$refs.scaffoldHelp.toggleTooltipHighlight()},onMapTooltipShown:function(){this.$refs.multiflatmap&&this.$refs.multiflatmapHelp&&this.$refs.multiflatmapHelp.toggleTooltipPinHighlight(),this.$refs.flatmap&&this.$refs.flatmapHelp&&this.$refs.flatmapHelp.toggleTooltipPinHighlight(),this.$refs.scaffold&&this.$refs.scaffoldHelp&&this.$refs.scaffoldHelp.toggleTooltipPinHighlight()},checkEndHelpMouseDown:function(e){e.target.closest(".help-mode-dialog")||this.endHelp()}},data:function(){return{apiLocation:void 0,activeSpecies:"Rat",scaffoldCamera:void 0,mainStyle:{height:this.entry.datasetTitle?"calc(100% - 30px)":"100%",width:"100%",bottom:"0px"},helpMode:!1,helpModeActiveItem:0,helpModeLastItem:!1,multiflatmapRef:null,flatmapRef:null,scaffoldRef:null,idNamePair:{},scaffoldLoaded:!1,isInHelp:!1}},created:function(){this.flatmapAPI=void 0,this.apiLocation=void 0,this.settingsStore.flatmapAPI&&(this.flatmapAPI=this.settingsStore.flatmapAPI),this.settingsStore.sparcApi&&(this.apiLocation=this.settingsStore.sparcApi)},watch:{helpMode:function(e){e||(this.helpModeActiveItem=0)}}},SSr=function(e){return e?[...new Set(e.map(t=>JSON.stringify(t)))].map(t=>JSON.parse(t)):[]},fNe={computed:{...fc.mapStores(Qv)},methods:{flatmapPanZoomCallback:function(e){if(this.mouseHovered){const t={paneIndex:this.entry.id,eventType:"panZoom",payload:e,type:this.entry.type};this.$emit("resource-selected",t)}},flatmapMarkerUpdate(e){if(!this.flatmapReady)return;let t=e;if(t||(t=this.getFlatmapImp()),t){let r=this.settingsStore.markers;r=SSr(r);let n=this.removeMarkersNotOnFlatmap(t,r);t.clearMarkers(),t.clearDatasetMarkers(),t.addDatasetMarkers(n);let i=this.settingsStore.hoveredMarkers,o=this.settingsStore.previousHoveredMarkers;i.forEach(s=>{t.addMarker(s,{className:"standard-marker hovered",cluster:!1})}),o!==null&&o.length>=0&&o.forEach(s=>{t.addMarker(s,{className:"standard-marker",cluster:!0})}),this.entry.type==="MultiFlatmap"&&this.restoreFeaturedMarkers(t)}},removeMarkersNotOnFlatmap(e,t){let r=e.anatomicalIdentifiers,n=[];for(let i=0;i<t.length;i++){let o=t[i],s={id:o.id,terms:[]};for(let l=0;l<o.terms.length;l++)r.includes(o.terms[l])&&s.terms.push(o.terms[l]);n.push(s)}return n},flatmapReadyForMarkerUpdates:function(e){if(e){e.enablePanZoomEvents(!0),this.flatmapReady=!0;const t=e.mapImp;this.flatmapMarkerUpdate(t)}}}},MSr={name:"Flatmap",mixins:[qQ,fNe],components:{FlatmapVuer:Ese,HelpModeDialog:hNe},methods:{getState:function(){return this.$refs.flatmap.getState()},search:function(e){return this.$refs.flatmap.searchAndShowResult(e)},getFlatmapImp(){var e;return(e=this.$refs.flatmap)==null?void 0:e.mapImp},flatmaprResourceSelected:function(e,t){if(this.resourceSelected(e,t,this.$refs.flatmap.viewingMode==="Exploration"),t.eventType==="click"&&t.feature.type==="feature"){const r={label:t.label||"",id:t.feature.id||"",featureId:t.feature.featureId||"",taxonomy:t.taxonomy||"",resources:t.resource.join(", ")},n=t7e(r);k1.sendEvent({event:"interaction_event",event_name:"portal_maps_connectivity",category:n,location:e+" "+this.$refs.flatmap.viewingMode})}},flatmapReadyCall:function(e){let t={id:this.entry.id,prov:this.getFlatmapImp().provenance};Zo.emit("mapImpProv",t),this.$emit("flatmap-provenance-ready",t),this.getAvailableTerms(),this.entry.resource==="FunctionalConnectivity"&&this.flatmapReadyForMarkerUpdates(e)},onPathwaySelectionChanged:function(e){const{label:t,property:r,checked:n,selectionsTitle:i}=e;k1.sendEvent({event:"interaction_event",event_name:"portal_maps_pathway_change",category:t+" ["+r+"] "+n,location:i})},highlightFeatures:function(e){let t=e.name;const r=this.$refs.flatmap.mapImp;if(t){const n=r.search(t);n.featureIds[0]&&r.highlightFeatures([r.modelForFeature(n.featureIds[0])])}},searchSuggestions:function(e,t){e&&this.$refs.flatmap.mapImp&&this.$refs.flatmap.mapImp.search(e).__featureIds.forEach(n=>{const i=this.$refs.flatmap.mapImp.annotation(n);i&&i.label&&t.push(i.label)})},zoomToFeatures:function(e,t){let r=e.name;const n=this.$refs.flatmap.mapImp;if(r){const i=n.search(r);if(i.featureIds.length){let o=n.modelForFeature(i.featureIds[0]);o?(t&&n.selectFeatures(o),n.zoomToFeatures(o)):n.clearSearchResults()}}else n.clearSearchResults()}},computed:{facetSpecies(){return this.settingsStore.facets.species}},mounted:function(){this.getAvailableTerms(),Zo.on("markerUpdate",()=>{this.flatmapMarkerUpdate(void 0)})}},kSr={class:"viewer-container"};function CSr(e,t,r,n,i,o){const s=a.resolveComponent("FlatmapVuer"),l=a.resolveComponent("HelpModeDialog");return a.openBlock(),a.createElementBlock("div",kSr,[a.createVNode(s,{state:e.entry.state,entry:e.entry.resource,onResourceSelected:t[0]||(t[0]=c=>o.flatmaprResourceSelected(e.entry.type,c)),onPanZoomCallback:e.flatmapPanZoomCallback,name:e.entry.resource,style:{height:"100%",width:"100%"},minZoom:e.entry.minZoom,helpMode:e.helpMode,helpModeActiveItem:e.helpModeActiveItem,helpModeInitialIndex:-1,helpModeDialog:e.useHelpModeDialog,onHelpModeLastItem:e.onHelpModeLastItem,onShownTooltip:e.onTooltipShown,onShownMapTooltip:e.onMapTooltipShown,pathControls:!0,ref:"flatmap",onReady:o.flatmapReadyCall,displayMinimap:!1,displayWarning:!0,enableOpenMapUI:!0,flatmapAPI:e.flatmapAPI,sparcAPI:e.apiLocation,onOpenMap:e.openMap,onPathwaySelectionChanged:o.onPathwaySelectionChanged},null,8,["state","entry","onPanZoomCallback","name","minZoom","helpMode","helpModeActiveItem","helpModeDialog","onHelpModeLastItem","onShownTooltip","onShownMapTooltip","onReady","flatmapAPI","sparcAPI","onOpenMap","onPathwaySelectionChanged"]),e.helpMode&&e.useHelpModeDialog?(a.openBlock(),a.createBlock(l,{key:0,ref:"flatmapHelp",flatmapRef:e.flatmapRef,lastItem:e.helpModeLastItem,onShowNext:e.onHelpModeShowNext,onFinishHelpMode:e.onFinishHelpMode},null,8,["flatmapRef","lastItem","onShowNext","onFinishHelpMode"])):a.createCommentVNode("",!0)])}const ESr=Object.freeze(Object.defineProperty({__proto__:null,default:Dc(MSr,[["render",CSr],["__scopeId","data-v-22cc3124"]])},Symbol.toStringTag,{value:"Module"})),ASr={name:"Iframe",mixins:[qQ]},OSr={class:"map-iframe-container"},ISr=["src"];function PSr(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("div",OSr,[a.createElementVNode("iframe",{class:"my-iframe",src:e.entry.resource.share_link},null,8,ISr)])}const VSr=Object.freeze(Object.defineProperty({__proto__:null,default:Dc(ASr,[["render",PSr],["__scopeId","data-v-60f8bfe1"]])},Symbol.toStringTag,{value:"Module"})),HSr='<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><path d="M11.0748 3.25583C11.4141 2.42845 12.5859 2.42845 12.9252 3.25583L14.6493 7.45955C14.793 7.80979 15.1221 8.04889 15.4995 8.07727L20.0303 8.41798C20.922 8.48504 21.2841 9.59942 20.6021 10.1778L17.1369 13.1166C16.8482 13.3614 16.7225 13.7483 16.8122 14.1161L17.8882 18.5304C18.1 19.3992 17.152 20.0879 16.3912 19.618L12.5255 17.2305C12.2034 17.0316 11.7966 17.0316 11.4745 17.2305L7.60881 19.618C6.84796 20.0879 5.90001 19.3992 6.1118 18.5304L7.18785 14.1161C7.2775 13.7483 7.1518 13.3614 6.86309 13.1166L3.3979 10.1778C2.71588 9.59942 3.07796 8.48504 3.96971 8.41798L8.50046 8.07727C8.87794 8.04889 9.20704 7.80979 9.35068 7.45955L11.0748 3.25583Z" stroke="#000000" stroke-width="2"/></svg>',mNe=e=>{const t=[{display:"Open AC Map",key:"AC"},{display:"Open FC Map",key:"FC"},{display:"Open 3D Human Map",key:"3D"}];switch(e){case"Human Male":case"Human Female":case"Rat":t.push({display:"Open Sync Map",key:"SYNC"});break}return t},NSr={name:"MultiFlatmap",mixins:[qQ,fNe],components:{MultiFlatmapVuer:cSr,HelpModeDialog:hNe},data:function(){return{zoomLevel:6,flatmapReady:!1,availableSpecies:e7e(),scaffoldResource:{},showStarInLegend:!1,openMapOptions:mNe("Rat")}},methods:{toggleSyncMode:async function(){if(this.syncMode==!1){let e;this.activeSpecies==="Rat"?e={contextCard:void 0,discoverId:void 0,label:"Rat Body",resource:"https://mapcore-bucket1.s3.us-west-2.amazonaws.com/WholeBody/31-May-2021/ratBody/ratBody_syncmap_metadata.json",title:"View 3D scaffold",layout:"2horpanel",type:"SyncMap"}:(this.activeSpecies==="Human Male"||this.activeSpecies==="Human Female")&&("human"in this.scaffoldResource||(this.scaffoldResource.human=await oY(this.apiLocation,"human")),e={contextCardUrl:this.scaffoldResource.human.datasetInfo.contextCardUrl,discoverId:this.scaffoldResource.human.datasetInfo.discoverId,s3uri:this.scaffoldResource.human.datasetInfo.s3uri,version:this.scaffoldResource.human.datasetInfo.version,label:"Human Body",resource:this.scaffoldResource.human.url,title:"View 3D scaffold",layout:"2vertpanel",type:"SyncMap",isBodyScaffold:!0}),e&&Zo.emit("SyncModeRequest",{flag:!0,action:e})}else Zo.emit("SyncModeRequest",{flag:!1})},getState:function(){if(this.flatmapReady)return this.$refs.multiflatmap.getState()},flatmapPanZoomCallback:function(e){if(this.mouseHovered){const t={paneIndex:this.entry.id,eventType:"panZoom",payload:e,type:this.entry.type};this.$emit("resource-selected",t)}},search:function(e){return this.$refs.multiflatmap.getCurrentFlatmap().searchAndShowResult(e,!0)},searchSuggestions:function(e,t){const r=this.$refs.multiflatmap.getCurrentFlatmap();e&&r.mapImp&&r.mapImp.search(e).__featureIds.forEach(i=>{const o=r.mapImp.annotation(i);o&&o.label&&t.push(o.label)})},flatmaprResourceSelected:function(e,t){const r=this.$refs.multiflatmap.getCurrentFlatmap();if(this.resourceSelected(e,t,r.viewingMode==="Exploration"),t.eventType==="click"&&t.feature.type==="feature"){const n={label:t.label||"",id:t.feature.id||"",featureId:t.feature.featureId||"",taxonomy:t.taxonomy||"",resources:t.resource.join(", ")},i=t7e(n);k1.sendEvent({event:"interaction_event",event_name:"portal_maps_connectivity",category:i,location:e+" "+r.viewingMode})}},onPathwaySelectionChanged:function(e){const{label:t,property:r,checked:n,selectionsTitle:i}=e;k1.sendEvent({event:"interaction_event",event_name:"portal_maps_pathway_change",category:t+" ["+r+"] "+n,location:i})},onOpenPubmedUrl:function(e){k1.sendEvent({event:"interaction_event",event_name:"portal_maps_pubmed_url",file_path:e,location:"map_popup_button"})},handleSyncPanZoomEvent:function(e){if(!this.mouseHovered&&e.type!==this.entry.type){const t=e.payload.zoom,r=e.payload.target,n=this.$el.clientHeight,i=this.$el.clientWidth,o=Math.max(i,n);let s=i/o/t;const l=n/o/t,c=[r[0]/2+.5-s/2,.5-r[1]/2-l/2];this.$refs.multiflatmap.getCurrentFlatmap().mapImp.panZoomTo(c,[s,l])}},displayTooltip:function(e){if(e){let t=e.name;t?this.search(t):this.$refs.multiflatmap.getCurrentFlatmap().mapImp.clearSearchResults()}},zoomToFeatures:function(e,t){let r=e.name;const n=this.$refs.multiflatmap.getCurrentFlatmap().mapImp;if(r){const i=n.search(r);i.featureIds.length>0?(t&&n.selectFeatures(i.featureIds),n.zoomToFeatures(i.featureIds)):n.clearSearchResults()}else n.clearSearchResults()},highlightFeatures:function(e){let t=e.name;const r=this.$refs.multiflatmap.getCurrentFlatmap().mapImp;if(t){const n=r.search(t);n.featureIds.length>0&&r.zoomToFeatures(n.featureIds,{noZoomIn:!0})}},updateProvCard:function(){const e=this.getFlatmapImp();if(e){let t={id:this.entry.id,prov:e.provenance};this.$emit("flatmap-provenance-ready",t)}},flatmapChanged:async function(e){this.activeSpecies=e,this.openMapOptions=mNe(e),this.$emit("species-changed",e),this.entry.state&&this.entry.state.species===this.activeSpecies||this.syncMode==!0&&await this.toggleSyncMode(),this.updateProvCard(),k1.sendEvent({event:"interaction_event",event_name:"portal_maps_species_change",category:this.activeSpecies})},multiFlatmapReady:function(e){if(e){e.enablePanZoomEvents(!0),this.flatmapReady=!0;const t=e.mapImp;this.flatmapMarkerUpdate(t),this.updateProvCard()}},getFlatmapImp:function(){if(this.entry.type==="MultiFlatmap"&&this.flatmapReady&&this.$refs.multiflatmap)return this.$refs.multiflatmap.getCurrentFlatmap().mapImp},flatmapAreaSearch(){let r={type:"Facets",label:"Unused",val:this.getFlatmapImp().visibleMarkerAnatomicalIds().map(n=>this.idNamePair[n])};Zo.emit("PopoverActionClick",r)},restoreFeaturedMarkers:function(e){this.settingsStore.resetFeaturedMarkerIdentifier();const t=this.settingsStore.featuredMarkers;this.updateFeaturedMarkers(t,e)},updateFeaturedMarkers:function(e,t){this.showStarInLegend=!1;for(let r=0;r<e.length;++r)e[r]&&(this.settingsStore.featuredMarkerIdentifiers[r]||this.addFeaturedMarker(e[r],r,t)&&(this.showStarInLegend=!0))},addFeaturedMarker:function(e,t,r){const n=this.settingsStore.featuredMarkerSpecies[t];if(n&&!this.activeSpecies.startsWith(n))return!1;let i=r;if(i||(i=this.getFlatmapImp()),i){let o=document.createElement("div");o.innerHTML=HSr;const s=i.addMarker(e,{element:o,className:"highlight-marker",cluster:!1});return this.settingsStore.updateFeaturedMarkerIdentifier({index:t,markerIdentifier:s}),!0}return!1}},computed:{facetSpecies(){return this.settingsStore.facets.species},featuredMarkers(){return this.settingsStore.featuredMarkers}},watch:{syncMode:function(e){this.$refs.multiflatmap.getCurrentFlatmap()&&this.$refs.multiflatmap.getCurrentFlatmap().enablePanZoomEvents(e)},featuredMarkers:function(e){this.flatmapReady&&this.updateFeaturedMarkers(e,void 0)}},mounted:function(){this.getAvailableTerms(),this.getFeaturedDatasets(),Zo.on("markerUpdate",()=>{this.flatmapReady&&this.flatmapMarkerUpdate(this.$refs.multiflatmap.getCurrentFlatmap().mapImp)})}},RSr={class:"viewer-container"};function BSr(e,t,r,n,i,o){const s=a.resolveComponent("MultiFlatmapVuer"),l=a.resolveComponent("HelpModeDialog");return a.openBlock(),a.createElementBlock("div",RSr,[a.createVNode(s,{availableSpecies:e.availableSpecies,onFlatmapChanged:o.flatmapChanged,onReady:o.multiFlatmapReady,state:e.entry.state,onResourceSelected:t[0]||(t[0]=c=>o.flatmaprResourceSelected(e.entry.type,c)),style:{height:"100%",width:"100%"},initial:e.entry.resource,helpMode:e.helpMode,helpModeActiveItem:e.helpModeActiveItem,helpModeDialog:e.useHelpModeDialog,onHelpModeLastItem:e.onHelpModeLastItem,onShownTooltip:e.onTooltipShown,onShownMapTooltip:e.onMapTooltipShown,ref:"multiflatmap",displayMinimap:!0,showStarInLegend:e.showStarInLegend,enableOpenMapUI:!0,openMapOptions:e.openMapOptions,flatmapAPI:e.flatmapAPI,sparcAPI:e.apiLocation,onPanZoomCallback:o.flatmapPanZoomCallback,onOpenMap:e.openMap,onFinishHelpMode:e.endHelp,onPathwaySelectionChanged:o.onPathwaySelectionChanged,onOpenPubmedUrl:o.onOpenPubmedUrl},null,8,["availableSpecies","onFlatmapChanged","onReady","state","initial","helpMode","helpModeActiveItem","helpModeDialog","onHelpModeLastItem","onShownTooltip","onShownMapTooltip","showStarInLegend","openMapOptions","flatmapAPI","sparcAPI","onPanZoomCallback","onOpenMap","onFinishHelpMode","onPathwaySelectionChanged","onOpenPubmedUrl"]),e.helpMode&&e.useHelpModeDialog?(a.openBlock(),a.createBlock(l,{key:0,ref:"multiflatmapHelp",multiflatmapRef:e.multiflatmapRef,lastItem:e.helpModeLastItem,onShowNext:e.onHelpModeShowNext,onFinishHelpMode:e.onFinishHelpMode},null,8,["multiflatmapRef","lastItem","onShowNext","onFinishHelpMode"])):a.createCommentVNode("",!0)])}const DSr=Object.freeze(Object.defineProperty({__proto__:null,default:Dc(NSr,[["render",BSr],["__scopeId","data-v-3e284237"]])},Symbol.toStringTag,{value:"Module"}));function FSr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gNe={exports:{}},el=gNe.exports={},d4,h4;function Ise(){throw new Error("setTimeout has not been defined")}function Pse(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?d4=setTimeout:d4=Ise}catch{d4=Ise}try{typeof clearTimeout=="function"?h4=clearTimeout:h4=Pse}catch{h4=Pse}})();function yNe(e){if(d4===setTimeout)return setTimeout(e,0);if((d4===Ise||!d4)&&setTimeout)return d4=setTimeout,setTimeout(e,0);try{return d4(e,0)}catch{try{return d4.call(null,e,0)}catch{return d4.call(this,e,0)}}}function zSr(e){if(h4===clearTimeout)return clearTimeout(e);if((h4===Pse||!h4)&&clearTimeout)return h4=clearTimeout,clearTimeout(e);try{return h4(e)}catch{try{return h4.call(null,e)}catch{return h4.call(this,e)}}}var O6=[],KQ=!1,ey,zz=-1;function jSr(){!KQ||!ey||(KQ=!1,ey.length?O6=ey.concat(O6):zz=-1,O6.length&&TNe())}function TNe(){if(!KQ){var e=yNe(jSr);KQ=!0;for(var t=O6.length;t;){for(ey=O6,O6=[];++zz<t;)ey&&ey[zz].run();zz=-1,t=O6.length}ey=null,KQ=!1,zSr(e)}}el.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];O6.push(new vNe(e,t)),O6.length===1&&!KQ&&yNe(TNe)};function vNe(e,t){this.fun=e,this.array=t}vNe.prototype.run=function(){this.fun.apply(null,this.array)},el.title="browser",el.browser=!0,el.env={},el.argv=[],el.version="",el.versions={};function I6(){}el.on=I6,el.addListener=I6,el.once=I6,el.off=I6,el.removeListener=I6,el.removeAllListeners=I6,el.emit=I6,el.prependListener=I6,el.prependOnceListener=I6,el.listeners=function(e){return[]},el.binding=function(e){throw new Error("process.binding is not supported")},el.cwd=function(){return"/"},el.chdir=function(e){throw new Error("process.chdir is not supported")},el.umask=function(){return 0};var USr=gNe.exports;const XQ=FSr(USr),P6=(e,t,{checkForDefaultPrevented:r=!0}={})=>n=>{const i=e==null?void 0:e(n);if(r===!1||!i)return t==null?void 0:t(n)},YQ=globalThis||void 0||self;var bNe;const H1=typeof window<"u",GSr=e=>typeof e=="string",QNe=()=>{},WSr=H1&&((bNe=window==null?void 0:window.navigator)==null?void 0:bNe.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function xNe(e){return typeof e=="function"?e():a.unref(e)}function ZSr(e){return e}function jz(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}function qSr(e,t=!0){a.getCurrentInstance()?a.onMounted(e):t?e():a.nextTick(e)}function V6(e){var t;const r=xNe(e);return(t=r==null?void 0:r.$el)!=null?t:r}const Uz=H1?window:void 0;function ty(...e){let t,r,n,i;if(GSr(e[0])||Array.isArray(e[0])?([r,n,i]=e,t=Uz):[t,r,n,i]=e,!t)return QNe;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const o=[],s=()=>{o.forEach(d=>d()),o.length=0},l=(d,h,p,f)=>(d.addEventListener(h,p,f),()=>d.removeEventListener(h,p,f)),c=a.watch(()=>[V6(t),xNe(i)],([d,h])=>{s(),d&&o.push(...r.flatMap(p=>n.map(f=>l(d,p,f,h))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return jz(u),u}let _Ne=!1;function KSr(e,t,r={}){const{window:n=Uz,ignore:i=[],capture:o=!0,detectIframe:s=!1}=r;if(!n)return;WSr&&!_Ne&&(_Ne=!0,Array.from(n.document.body.children).forEach(d=>d.addEventListener("click",QNe)));let l=!0;const c=d=>i.some(h=>{if(typeof h=="string")return Array.from(n.document.querySelectorAll(h)).some(p=>p===d.target||d.composedPath().includes(p));{const p=V6(h);return p&&(d.target===p||d.composedPath().includes(p))}}),u=[ty(n,"click",d=>{const h=V6(e);if(!(!h||h===d.target||d.composedPath().includes(h))){if(d.detail===0&&(l=!c(d)),!l){l=!0;return}t(d)}},{passive:!0,capture:o}),ty(n,"pointerdown",d=>{const h=V6(e);h&&(l=!d.composedPath().includes(h)&&!c(d))},{passive:!0}),s&&ty(n,"blur",d=>{var h;const p=V6(e);((h=n.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(p!=null&&p.contains(n.document.activeElement))&&t(d)})].filter(Boolean);return()=>u.forEach(d=>d())}function wNe(e,t=!1){const r=a.ref(),n=()=>r.value=!!e();return n(),qSr(n,t),r}const Vse=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof YQ<"u"?YQ:typeof self<"u"?self:{},Hse="__vueuse_ssr_handlers__";Vse[Hse]=Vse[Hse]||{},Vse[Hse];var LNe=Object.getOwnPropertySymbols,XSr=Object.prototype.hasOwnProperty,YSr=Object.prototype.propertyIsEnumerable,JSr=(e,t)=>{var r={};for(var n in e)XSr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&LNe)for(var n of LNe(e))t.indexOf(n)<0&&YSr.call(e,n)&&(r[n]=e[n]);return r};function H6(e,t,r={}){const n=r,{window:i=Uz}=n,o=JSr(n,["window"]);let s;const l=wNe(()=>i&&"ResizeObserver"in i),c=()=>{s&&(s.disconnect(),s=void 0)},u=a.watch(()=>V6(e),h=>{c(),l.value&&i&&h&&(s=new ResizeObserver(t),s.observe(h,o))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return jz(d),{isSupported:l,stop:d}}var SNe=Object.getOwnPropertySymbols,$Sr=Object.prototype.hasOwnProperty,eMr=Object.prototype.propertyIsEnumerable,tMr=(e,t)=>{var r={};for(var n in e)$Sr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&SNe)for(var n of SNe(e))t.indexOf(n)<0&&eMr.call(e,n)&&(r[n]=e[n]);return r};function rMr(e,t,r={}){const n=r,{window:i=Uz}=n,o=tMr(n,["window"]);let s;const l=wNe(()=>i&&"MutationObserver"in i),c=()=>{s&&(s.disconnect(),s=void 0)},u=a.watch(()=>V6(e),h=>{c(),l.value&&i&&h&&(s=new MutationObserver(t),s.observe(h,o))},{immediate:!0}),d=()=>{c(),u()};return jz(d),{isSupported:l,stop:d}}var MNe;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(MNe||(MNe={}));var nMr=Object.defineProperty,kNe=Object.getOwnPropertySymbols,iMr=Object.prototype.hasOwnProperty,oMr=Object.prototype.propertyIsEnumerable,CNe=(e,t,r)=>t in e?nMr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,aMr=(e,t)=>{for(var r in t||(t={}))iMr.call(t,r)&&CNe(e,r,t[r]);if(kNe)for(var r of kNe(t))oMr.call(t,r)&&CNe(e,r,t[r]);return e};aMr({linear:ZSr},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const sMr=()=>H1&&/firefox/i.test(window.navigator.userAgent);XQ.env.NODE_ENV!=="production"&&Object.freeze({}),XQ.env.NODE_ENV!=="production"&&Object.freeze([]);const dE=()=>{},lMr=Object.prototype.hasOwnProperty,ENe=(e,t)=>lMr.call(e,t),bd=Array.isArray,Qd=e=>typeof e=="function",p4=e=>typeof e=="string",xd=e=>e!==null&&typeof e=="object",cMr=Object.prototype.toString,uMr=e=>cMr.call(e),Nse=e=>uMr(e).slice(8,-1);var ANe=typeof YQ=="object"&&YQ&&YQ.Object===Object&&YQ,dMr=typeof self=="object"&&self&&self.Object===Object&&self,f4=ANe||dMr||Function("return this")(),y8=f4.Symbol,ONe=Object.prototype,hMr=ONe.hasOwnProperty,pMr=ONe.toString,hE=y8?y8.toStringTag:void 0;function fMr(e){var t=hMr.call(e,hE),r=e[hE];try{e[hE]=void 0;var n=!0}catch{}var i=pMr.call(e);return n&&(t?e[hE]=r:delete e[hE]),i}var mMr=Object.prototype,gMr=mMr.toString;function yMr(e){return gMr.call(e)}var TMr="[object Null]",vMr="[object Undefined]",INe=y8?y8.toStringTag:void 0;function JQ(e){return e==null?e===void 0?vMr:TMr:INe&&INe in Object(e)?fMr(e):yMr(e)}function $Q(e){return e!=null&&typeof e=="object"}var bMr="[object Symbol]";function Gz(e){return typeof e=="symbol"||$Q(e)&&JQ(e)==bMr}function QMr(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var m4=Array.isArray,xMr=1/0,PNe=y8?y8.prototype:void 0,VNe=PNe?PNe.toString:void 0;function HNe(e){if(typeof e=="string")return e;if(m4(e))return QMr(e,HNe)+"";if(Gz(e))return VNe?VNe.call(e):"";var t=e+"";return t=="0"&&1/e==-xMr?"-0":t}var _Mr=/\s/;function wMr(e){for(var t=e.length;t--&&_Mr.test(e.charAt(t)););return t}var LMr=/^\s+/;function SMr(e){return e&&e.slice(0,wMr(e)+1).replace(LMr,"")}function ex(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var NNe=NaN,MMr=/^[-+]0x[0-9a-f]+$/i,kMr=/^0b[01]+$/i,CMr=/^0o[0-7]+$/i,EMr=parseInt;function Rse(e){if(typeof e=="number")return e;if(Gz(e))return NNe;if(ex(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ex(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=SMr(e);var r=kMr.test(e);return r||CMr.test(e)?EMr(e.slice(2),r?2:8):MMr.test(e)?NNe:+e}var RNe=1/0,AMr=17976931348623157e292;function OMr(e){if(!e)return e===0?e:0;if(e=Rse(e),e===RNe||e===-RNe){var t=e<0?-1:1;return t*AMr}return e===e?e:0}function IMr(e){var t=OMr(e),r=t%1;return t===t?r?t-r:t:0}function PMr(e){return e}var VMr="[object AsyncFunction]",HMr="[object Function]",NMr="[object GeneratorFunction]",RMr="[object Proxy]";function BNe(e){if(!ex(e))return!1;var t=JQ(e);return t==HMr||t==NMr||t==VMr||t==RMr}var Bse=f4["__core-js_shared__"],DNe=function(){var e=/[^.]+$/.exec(Bse&&Bse.keys&&Bse.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function BMr(e){return!!DNe&&DNe in e}var DMr=Function.prototype,FMr=DMr.toString;function ry(e){if(e!=null){try{return FMr.call(e)}catch{}try{return e+""}catch{}}return""}var zMr=/[\\^$.*+?()[\]{}|]/g,jMr=/^\[object .+?Constructor\]$/,UMr=Function.prototype,GMr=Object.prototype,WMr=UMr.toString,ZMr=GMr.hasOwnProperty,qMr=RegExp("^"+WMr.call(ZMr).replace(zMr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function KMr(e){if(!ex(e)||BMr(e))return!1;var t=BNe(e)?qMr:jMr;return t.test(ry(e))}function XMr(e,t){return e==null?void 0:e[t]}function tx(e,t){var r=XMr(e,t);return KMr(r)?r:void 0}var Dse=tx(f4,"WeakMap");function YMr(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var JMr=9007199254740991,$Mr=/^(?:0|[1-9]\d*)$/;function FNe(e,t){var r=typeof e;return t=t??JMr,!!t&&(r=="number"||r!="symbol"&&$Mr.test(e))&&e>-1&&e%1==0&&e<t}function zNe(e,t){return e===t||e!==e&&t!==t}var ekr=9007199254740991;function Fse(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ekr}function tkr(e){return e!=null&&Fse(e.length)&&!BNe(e)}var rkr=Object.prototype;function nkr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||rkr;return e===r}function ikr(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var okr="[object Arguments]";function jNe(e){return $Q(e)&&JQ(e)==okr}var UNe=Object.prototype,akr=UNe.hasOwnProperty,skr=UNe.propertyIsEnumerable,GNe=jNe(function(){return arguments}())?jNe:function(e){return $Q(e)&&akr.call(e,"callee")&&!skr.call(e,"callee")};function lkr(){return!1}var WNe=typeof Gn=="object"&&Gn&&!Gn.nodeType&&Gn,ZNe=WNe&&typeof module=="object"&&module&&!module.nodeType&&module,ckr=ZNe&&ZNe.exports===WNe,qNe=ckr?f4.Buffer:void 0,ukr=qNe?qNe.isBuffer:void 0,zse=ukr||lkr,dkr="[object Arguments]",hkr="[object Array]",pkr="[object Boolean]",fkr="[object Date]",mkr="[object Error]",gkr="[object Function]",ykr="[object Map]",Tkr="[object Number]",vkr="[object Object]",bkr="[object RegExp]",Qkr="[object Set]",xkr="[object String]",_kr="[object WeakMap]",wkr="[object ArrayBuffer]",Lkr="[object DataView]",Skr="[object Float32Array]",Mkr="[object Float64Array]",kkr="[object Int8Array]",Ckr="[object Int16Array]",Ekr="[object Int32Array]",Akr="[object Uint8Array]",Okr="[object Uint8ClampedArray]",Ikr="[object Uint16Array]",Pkr="[object Uint32Array]",Ya={};Ya[Skr]=Ya[Mkr]=Ya[kkr]=Ya[Ckr]=Ya[Ekr]=Ya[Akr]=Ya[Okr]=Ya[Ikr]=Ya[Pkr]=!0,Ya[dkr]=Ya[hkr]=Ya[wkr]=Ya[pkr]=Ya[Lkr]=Ya[fkr]=Ya[mkr]=Ya[gkr]=Ya[ykr]=Ya[Tkr]=Ya[vkr]=Ya[bkr]=Ya[Qkr]=Ya[xkr]=Ya[_kr]=!1;function Vkr(e){return $Q(e)&&Fse(e.length)&&!!Ya[JQ(e)]}function Hkr(e){return function(t){return e(t)}}var KNe=typeof Gn=="object"&&Gn&&!Gn.nodeType&&Gn,pE=KNe&&typeof module=="object"&&module&&!module.nodeType&&module,Nkr=pE&&pE.exports===KNe,jse=Nkr&&ANe.process,XNe=function(){try{var e=pE&&pE.require&&pE.require("util").types;return e||jse&&jse.binding&&jse.binding("util")}catch{}}(),YNe=XNe&&XNe.isTypedArray,JNe=YNe?Hkr(YNe):Vkr,Rkr=Object.prototype,Bkr=Rkr.hasOwnProperty;function Dkr(e,t){var r=m4(e),n=!r&&GNe(e),i=!r&&!n&&zse(e),o=!r&&!n&&!i&&JNe(e),s=r||n||i||o,l=s?ikr(e.length,String):[],c=l.length;for(var u in e)(t||Bkr.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||FNe(u,c)))&&l.push(u);return l}function Fkr(e,t){return function(r){return e(t(r))}}var zkr=Fkr(Object.keys,Object),jkr=Object.prototype,Ukr=jkr.hasOwnProperty;function Gkr(e){if(!nkr(e))return zkr(e);var t=[];for(var r in Object(e))Ukr.call(e,r)&&r!="constructor"&&t.push(r);return t}function $Ne(e){return tkr(e)?Dkr(e):Gkr(e)}var Wkr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zkr=/^\w*$/;function Use(e,t){if(m4(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Gz(e)?!0:Zkr.test(e)||!Wkr.test(e)||t!=null&&e in Object(t)}var fE=tx(Object,"create");function qkr(){this.__data__=fE?fE(null):{},this.size=0}function Kkr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Xkr="__lodash_hash_undefined__",Ykr=Object.prototype,Jkr=Ykr.hasOwnProperty;function $kr(e){var t=this.__data__;if(fE){var r=t[e];return r===Xkr?void 0:r}return Jkr.call(t,e)?t[e]:void 0}var eCr=Object.prototype,tCr=eCr.hasOwnProperty;function rCr(e){var t=this.__data__;return fE?t[e]!==void 0:tCr.call(t,e)}var nCr="__lodash_hash_undefined__";function iCr(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=fE&&t===void 0?nCr:t,this}function ny(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ny.prototype.clear=qkr,ny.prototype.delete=Kkr,ny.prototype.get=$kr,ny.prototype.has=rCr,ny.prototype.set=iCr;function oCr(){this.__data__=[],this.size=0}function Wz(e,t){for(var r=e.length;r--;)if(zNe(e[r][0],t))return r;return-1}var aCr=Array.prototype,sCr=aCr.splice;function lCr(e){var t=this.__data__,r=Wz(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():sCr.call(t,r,1),--this.size,!0}function cCr(e){var t=this.__data__,r=Wz(t,e);return r<0?void 0:t[r][1]}function uCr(e){return Wz(this.__data__,e)>-1}function dCr(e,t){var r=this.__data__,n=Wz(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function N6(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}N6.prototype.clear=oCr,N6.prototype.delete=lCr,N6.prototype.get=cCr,N6.prototype.has=uCr,N6.prototype.set=dCr;var mE=tx(f4,"Map");function hCr(){this.size=0,this.__data__={hash:new ny,map:new(mE||N6),string:new ny}}function pCr(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Zz(e,t){var r=e.__data__;return pCr(t)?r[typeof t=="string"?"string":"hash"]:r.map}function fCr(e){var t=Zz(this,e).delete(e);return this.size-=t?1:0,t}function mCr(e){return Zz(this,e).get(e)}function gCr(e){return Zz(this,e).has(e)}function yCr(e,t){var r=Zz(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function R6(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}R6.prototype.clear=hCr,R6.prototype.delete=fCr,R6.prototype.get=mCr,R6.prototype.has=gCr,R6.prototype.set=yCr;var TCr="Expected a function";function Gse(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(TCr);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Gse.Cache||R6),r}Gse.Cache=R6;var vCr=500;function bCr(e){var t=Gse(e,function(n){return r.size===vCr&&r.clear(),n}),r=t.cache;return t}var QCr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xCr=/\\(\\)?/g,_Cr=bCr(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(QCr,function(r,n,i,o){t.push(i?o.replace(xCr,"$1"):n||r)}),t});function wCr(e){return e==null?"":HNe(e)}function eRe(e,t){return m4(e)?e:Use(e,t)?[e]:_Cr(wCr(e))}var LCr=1/0;function qz(e){if(typeof e=="string"||Gz(e))return e;var t=e+"";return t=="0"&&1/e==-LCr?"-0":t}function tRe(e,t){t=eRe(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[qz(t[r++])];return r&&r==n?e:void 0}function B6(e,t,r){var n=e==null?void 0:tRe(e,t);return n===void 0?r:n}function SCr(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function rRe(){if(!arguments.length)return[];var e=arguments[0];return m4(e)?e:[e]}function MCr(){this.__data__=new N6,this.size=0}function kCr(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function CCr(e){return this.__data__.get(e)}function ECr(e){return this.__data__.has(e)}var ACr=200;function OCr(e,t){var r=this.__data__;if(r instanceof N6){var n=r.__data__;if(!mE||n.length<ACr-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new R6(n)}return r.set(e,t),this.size=r.size,this}function D6(e){var t=this.__data__=new N6(e);this.size=t.size}D6.prototype.clear=MCr,D6.prototype.delete=kCr,D6.prototype.get=CCr,D6.prototype.has=ECr,D6.prototype.set=OCr;function ICr(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}function PCr(){return[]}var VCr=Object.prototype,HCr=VCr.propertyIsEnumerable,nRe=Object.getOwnPropertySymbols,NCr=nRe?function(e){return e==null?[]:(e=Object(e),ICr(nRe(e),function(t){return HCr.call(e,t)}))}:PCr;const RCr=NCr;function BCr(e,t,r){var n=t(e);return m4(e)?n:SCr(n,r(e))}function iRe(e){return BCr(e,$Ne,RCr)}var Wse=tx(f4,"DataView"),Zse=tx(f4,"Promise"),qse=tx(f4,"Set"),oRe="[object Map]",DCr="[object Object]",aRe="[object Promise]",sRe="[object Set]",lRe="[object WeakMap]",cRe="[object DataView]",FCr=ry(Wse),zCr=ry(mE),jCr=ry(Zse),UCr=ry(qse),GCr=ry(Dse),iy=JQ;(Wse&&iy(new Wse(new ArrayBuffer(1)))!=cRe||mE&&iy(new mE)!=oRe||Zse&&iy(Zse.resolve())!=aRe||qse&&iy(new qse)!=sRe||Dse&&iy(new Dse)!=lRe)&&(iy=function(e){var t=JQ(e),r=t==DCr?e.constructor:void 0,n=r?ry(r):"";if(n)switch(n){case FCr:return cRe;case zCr:return oRe;case jCr:return aRe;case UCr:return sRe;case GCr:return lRe}return t});const uRe=iy;var WCr=f4.Uint8Array;const dRe=WCr;var ZCr="__lodash_hash_undefined__";function qCr(e){return this.__data__.set(e,ZCr),this}function KCr(e){return this.__data__.has(e)}function Kz(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new R6;++t<r;)this.add(e[t])}Kz.prototype.add=Kz.prototype.push=qCr,Kz.prototype.has=KCr;function XCr(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function YCr(e,t){return e.has(t)}var JCr=1,$Cr=2;function hRe(e,t,r,n,i,o){var s=r&JCr,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var h=-1,p=!0,f=r&$Cr?new Kz:void 0;for(o.set(e,t),o.set(t,e);++h<l;){var m=e[h],g=t[h];if(n)var T=s?n(g,m,h,t,e,o):n(m,g,h,e,t,o);if(T!==void 0){if(T)continue;p=!1;break}if(f){if(!XCr(t,function(y,v){if(!YCr(f,v)&&(m===y||i(m,y,r,n,o)))return f.push(v)})){p=!1;break}}else if(!(m===g||i(m,g,r,n,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function eEr(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function tEr(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var rEr=1,nEr=2,iEr="[object Boolean]",oEr="[object Date]",aEr="[object Error]",sEr="[object Map]",lEr="[object Number]",cEr="[object RegExp]",uEr="[object Set]",dEr="[object String]",hEr="[object Symbol]",pEr="[object ArrayBuffer]",fEr="[object DataView]",pRe=y8?y8.prototype:void 0,Kse=pRe?pRe.valueOf:void 0;function mEr(e,t,r,n,i,o,s){switch(r){case fEr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case pEr:return!(e.byteLength!=t.byteLength||!o(new dRe(e),new dRe(t)));case iEr:case oEr:case lEr:return zNe(+e,+t);case aEr:return e.name==t.name&&e.message==t.message;case cEr:case dEr:return e==t+"";case sEr:var l=eEr;case uEr:var c=n&rEr;if(l||(l=tEr),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;n|=nEr,s.set(e,t);var d=hRe(l(e),l(t),n,i,o,s);return s.delete(e),d;case hEr:if(Kse)return Kse.call(e)==Kse.call(t)}return!1}var gEr=1,yEr=Object.prototype,TEr=yEr.hasOwnProperty;function vEr(e,t,r,n,i,o){var s=r&gEr,l=iRe(e),c=l.length,u=iRe(t),d=u.length;if(c!=d&&!s)return!1;for(var h=c;h--;){var p=l[h];if(!(s?p in t:TEr.call(t,p)))return!1}var f=o.get(e),m=o.get(t);if(f&&m)return f==t&&m==e;var g=!0;o.set(e,t),o.set(t,e);for(var T=s;++h<c;){p=l[h];var y=e[p],v=t[p];if(n)var _=s?n(v,y,p,t,e,o):n(y,v,p,e,t,o);if(!(_===void 0?y===v||i(y,v,r,n,o):_)){g=!1;break}T||(T=p=="constructor")}if(g&&!T){var x=e.constructor,L=t.constructor;x!=L&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof L=="function"&&L instanceof L)&&(g=!1)}return o.delete(e),o.delete(t),g}var bEr=1,fRe="[object Arguments]",mRe="[object Array]",Xz="[object Object]",QEr=Object.prototype,gRe=QEr.hasOwnProperty;function xEr(e,t,r,n,i,o){var s=m4(e),l=m4(t),c=s?mRe:uRe(e),u=l?mRe:uRe(t);c=c==fRe?Xz:c,u=u==fRe?Xz:u;var d=c==Xz,h=u==Xz,p=c==u;if(p&&zse(e)){if(!zse(t))return!1;s=!0,d=!1}if(p&&!d)return o||(o=new D6),s||JNe(e)?hRe(e,t,r,n,i,o):mEr(e,t,c,r,n,i,o);if(!(r&bEr)){var f=d&&gRe.call(e,"__wrapped__"),m=h&&gRe.call(t,"__wrapped__");if(f||m){var g=f?e.value():e,T=m?t.value():t;return o||(o=new D6),i(g,T,r,n,o)}}return p?(o||(o=new D6),vEr(e,t,r,n,i,o)):!1}function Yz(e,t,r,n,i){return e===t?!0:e==null||t==null||!$Q(e)&&!$Q(t)?e!==e&&t!==t:xEr(e,t,r,n,Yz,i)}var _Er=1,wEr=2;function LEr(e,t,r,n){var i=r.length,o=i,s=!n;if(e==null)return!o;for(e=Object(e);i--;){var l=r[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){l=r[i];var c=l[0],u=e[c],d=l[1];if(s&&l[2]){if(u===void 0&&!(c in e))return!1}else{var h=new D6;if(n)var p=n(u,d,c,e,t,h);if(!(p===void 0?Yz(d,u,_Er|wEr,n,h):p))return!1}}return!0}function yRe(e){return e===e&&!ex(e)}function SEr(e){for(var t=$Ne(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,yRe(i)]}return t}function TRe(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function MEr(e){var t=SEr(e);return t.length==1&&t[0][2]?TRe(t[0][0],t[0][1]):function(r){return r===e||LEr(r,e,t)}}function kEr(e,t){return e!=null&&t in Object(e)}function CEr(e,t,r){t=eRe(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var s=qz(t[n]);if(!(o=e!=null&&r(e,s)))break;e=e[s]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&Fse(i)&&FNe(s,i)&&(m4(e)||GNe(e)))}function EEr(e,t){return e!=null&&CEr(e,t,kEr)}var AEr=1,OEr=2;function IEr(e,t){return Use(e)&&yRe(t)?TRe(qz(e),t):function(r){var n=B6(r,e);return n===void 0&&n===t?EEr(r,e):Yz(t,n,AEr|OEr)}}function PEr(e){return function(t){return t==null?void 0:t[e]}}function VEr(e){return function(t){return tRe(t,e)}}function HEr(e){return Use(e)?PEr(qz(e)):VEr(e)}function NEr(e){return typeof e=="function"?e:e==null?PMr:typeof e=="object"?m4(e)?IEr(e[0],e[1]):MEr(e):HEr(e)}var Xse=function(){return f4.Date.now()},REr="Expected a function",BEr=Math.max,DEr=Math.min;function FEr(e,t,r){var n,i,o,s,l,c,u=0,d=!1,h=!1,p=!0;if(typeof e!="function")throw new TypeError(REr);t=Rse(t)||0,ex(r)&&(d=!!r.leading,h="maxWait"in r,o=h?BEr(Rse(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p);function f(w){var M=n,C=i;return n=i=void 0,u=w,s=e.apply(C,M),s}function m(w){return u=w,l=setTimeout(y,t),d?f(w):s}function g(w){var M=w-c,C=w-u,E=t-M;return h?DEr(E,o-C):E}function T(w){var M=w-c,C=w-u;return c===void 0||M>=t||M<0||h&&C>=o}function y(){var w=Xse();if(T(w))return v(w);l=setTimeout(y,g(w))}function v(w){return l=void 0,p&&n?f(w):(n=i=void 0,s)}function _(){l!==void 0&&clearTimeout(l),u=0,n=c=i=l=void 0}function x(){return l===void 0?s:v(Xse())}function L(){var w=Xse(),M=T(w);if(n=arguments,i=this,c=w,M){if(l===void 0)return m(c);if(h)return clearTimeout(l),l=setTimeout(y,t),f(c)}return l===void 0&&(l=setTimeout(y,t)),s}return L.cancel=_,L.flush=x,L}var zEr=Math.max,jEr=Math.min;function UEr(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=n-1;return r!==void 0&&(i=IMr(r),i=r<0?zEr(n+i,0):jEr(i,n-1)),YMr(e,NEr(t),i,!0)}function Jz(e){for(var t=-1,r=e==null?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n}function gE(e,t){return Yz(e,t)}function $z(e){return e==null}function GEr(e){return e===void 0}const vRe=e=>e===void 0,Yse=e=>typeof e=="boolean",n0=e=>typeof e=="number",yE=e=>typeof Element>"u"?!1:e instanceof Element,WEr=e=>p4(e)?!Number.isNaN(Number(e)):!1,ZEr=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");let bRe=class extends Error{constructor(t){super(t),this.name="ElementPlusError"}};function qEr(e,t){throw new bRe(`[${e}] ${t}`)}function _d(e,t){if(XQ.env.NODE_ENV!=="production"){const r=p4(e)?new bRe(`[${e}] ${t}`):e;console.warn(r)}}const KEr="utils/dom/style";function ej(e,t="px"){if(!e)return"";if(n0(e)||WEr(e))return`${e}${t}`;if(p4(e))return e;_d(KEr,"binding value must be a string or number")}function XEr(e,t){if(!H1)return;if(!t){e.scrollTop=0;return}const r=[];let n=t.offsetParent;for(;n!==null&&e!==n&&e.contains(n);)r.push(n),n=n.offsetParent;const i=t.offsetTop+r.reduce((c,u)=>c+u.offsetTop,0),o=i+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;i<s?e.scrollTop=i:o>l&&(e.scrollTop=o-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var YEr=a.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),JEr=YEr,$Er=a.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),eAr=$Er,tAr=a.defineComponent({name:"CircleCheck",__name:"circle-check",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),a.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),rAr=tAr,nAr=a.defineComponent({name:"CircleClose",__name:"circle-close",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),a.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Jse=nAr,iAr=a.defineComponent({name:"Close",__name:"close",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),QRe=iAr,oAr=a.defineComponent({name:"Hide",__name:"hide",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),a.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),aAr=oAr,sAr=a.defineComponent({name:"Loading",__name:"loading",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),xRe=sAr,lAr=a.defineComponent({name:"View",__name:"view",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),cAr=lAr;const _Re="__epPropKey",$i=e=>e,uAr=e=>xd(e)&&!!e[_Re],tj=(e,t)=>{if(!xd(e)||uAr(e))return e;const{values:r,required:n,default:i,type:o,validator:s}=e,l={type:o,required:!!n,validator:r||s?c=>{let u=!1,d=[];if(r&&(d=Array.from(r),ENe(e,"default")&&d.push(i),u||(u=d.includes(c))),s&&(u||(u=s(c))),!u&&d.length>0){const h=[...new Set(d)].map(p=>JSON.stringify(p)).join(", ");a.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return u}:void 0,[_Re]:!0};return ENe(e,"default")&&(l.default=i),l},Qs=e=>Jz(Object.entries(e).map(([t,r])=>[t,tj(r,t)])),oy=$i([String,Object,Function]),wRe={validating:xRe,success:rAr,error:Jse},g4=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(t??{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e},dAr=(e,t)=>(e.install=r=>{r.directive(t,e)},e),rj=e=>(e.install=dE,e),TE={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Y0="update:modelValue",nj="change",LRe=["","default","small","large"],SRe=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),MRe=e=>e,hAr=["class","style"],pAr=/^on[A-Z]/,fAr=(e={})=>{const{excludeListeners:t=!1,excludeKeys:r}=e,n=a.computed(()=>((r==null?void 0:r.value)||[]).concat(hAr)),i=a.getCurrentInstance();return i?a.computed(()=>{var o;return Jz(Object.entries((o=i.proxy)==null?void 0:o.$attrs).filter(([s])=>!n.value.includes(s)&&!(t&&pAr.test(s))))}):(_d("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),a.computed(()=>({})))},kRe=({from:e,replacement:t,scope:r,version:n,ref:i,type:o="API"},s)=>{a.watch(()=>a.unref(s),l=>{l&&_d(r,`[${o}] ${e} is about to be deprecated in version ${n}, please use ${t} instead.
|
2610
|
+
This will fail in production.`);l=lE,l._s.has(n)||(o?Cse(n,t,i,l):cNe(n,i,l),process.env.NODE_ENV!=="production"&&(s._pinia=l));const d=l._s.get(n);if(process.env.NODE_ENV!=="production"&&c){const h="__hot:"+n,p=o?Cse(h,t,i,l,!0):cNe(h,vd({},i),l,!0);c._hotUpdate(p),delete l.state.value[h],l._s.delete(h)}if(process.env.NODE_ENV!=="production"&&Sse){const h=a.getCurrentInstance();if(h&&h.proxy&&!c){const p=h.proxy,f="_pStores"in p?p._pStores:p._pStores={};f[n]=d}}return d}return s.$id=n,s}function MLr(e,t){return Array.isArray(t)?t.reduce((r,n)=>(r[n]=function(){return e(this.$pinia)[n]},r),{}):Object.keys(t).reduce((r,n)=>(r[n]=function(){const i=e(this.$pinia),o=t[n];return typeof o=="function"?o.call(this,i):i[o]},r),{})}const kLr=SLr("main",{state:()=>({userProfile:{token:""}}),getters:{userToken(e){return e.userProfile.token}},actions:{setUserToken(e){this.userProfile.token=e}}}),CLr=e=>{let t={lng:0,lat:0},r;return e.type==="Polygon"?r=e.coordinates[0]:r=e.coordinates,e.type!=="Point"?(r.map(n=>{t.lng+=parseFloat(n[0]),t.lat+=parseFloat(n[1])}),t.lng=t.lng/r.length,t.lat=t.lat/r.length):(t.lng+=parseFloat(r[0]),t.lat+=parseFloat(r[1])),t},uNe=(e,t)=>{const r=[];let n=e.organs?e.organs:e.ftus;const i=n?n.filter((o,s)=>n.findIndex(l=>l.label===o.label)===s):void 0;return i&&i.forEach(o=>{const s={label:o.label,models:o.models,key:`${t}.${o.label}`},l=uNe(o,s.key);l.length>0&&(s.children=l),r.push(s)}),r},ELr=function(){return{destinations:[],origins:[],components:[],destinationsWithDatasets:[],originsWithDatasets:[],componentsWithDatasets:[],resource:void 0}},ALr={name:"FlatmapVuer",components:{Button:Yu,Col:Hp,Loading:QYt,Radio:owe,Icon:Ys,RadioGroup:awe,Row:Dh,Select:yb,Dialog:QXt,MapSvgIcon:bv,MapSvgSpriteColor:sV,Tooltip:Jee,TreeControls:Hwe,SelectionsGroup:Vwe,SvgLegends:Nwe,ElIconWarningFilled:wxe,ElIconArrowDown:Em,ElIconArrowLeft:xxe,DrawTool:Rwe},beforeCreate:function(){this.mapManager=void 0,this.mapImp=void 0,this.setStateRequired=!1},setup(e){return{annotator:a.markRaw(new bLr(`${e.flatmapAPI}annotator`))}},methods:{initialiseDrawing:function(){this.connectionEntry={},this.activeDrawTool=void 0,this.activeDrawMode=void 0,this.drawnCreatedEvent=void 0},cancelDrawnFeature:function(){this.drawnCreatedEvent&&(this.closeTooltip(),this.annotationEntry={...this.drawnCreatedEvent.feature,resourceId:this.serverURL},this.rollbackAnnotationEvent(),this.initialiseDrawing())},connectedFeatureTooltip:function(e){if(this.mapImp)if(e){const t=Number(e);let r={feature:{}};if(t){const n=this.mapImp.featureProperties(t);r.feature=n}else{const n=this.existDrawnFeatures.find(i=>i.id===e.replace(" ",""));r.feature.feature=n}this.checkAndCreatePopups(r)}else this.closeTooltip()},confirmDrawnFeature:function(){this.drawnCreatedEvent&&(this.checkAndCreatePopups(this.drawnCreatedEvent),Object.keys(this.connectionEntry).length>0&&(this.annotationEntry.feature.connection=this.connectionEntry),this.initialiseDrawing())},drawToolbarEvent:function(e){this.closeTooltip(),this.doubleClickedFeature=!1,e==="Delete"?this.activeDrawMode=this.activeDrawMode==="Delete"?void 0:"Delete":e==="Edit"?this.activeDrawMode=this.activeDrawMode==="Edit"?void 0:"Edit":this.activeDrawTool=e,Object.keys(this.annotationEntry).length>0&&!this.featureAnnotationSubmitted&&this.rollbackAnnotationEvent()},drawModeEvent:function(e){this.activeDrawMode==="Edit"&&this.doubleClickedFeature&&(e.feature.feature.geometry.type!=="Point"&&(this.changeAnnotationDrawMode({mode:"direct_select",options:{featureId:e.feature.feature.id}}),this.modifyAnnotationFeature()),this.doubleClickedFeature=!1),this.activeDrawMode==="Delete"&&(this.changeAnnotationDrawMode({mode:"simple_select",options:{featureIds:[e.feature.feature.id]}}),this.modifyAnnotationFeature())},createConnectivityBody:function(){if(Object.keys(this.connectionEntry).length>0){const e=Object.values(this.connectionEntry),t={type:"connectivity",source:e[0],target:e[e.length-1],intermediates:e.filter((r,n)=>n!==0&&n!==e.length-1)};this.annotationEntry.body=t}},changeAnnotationDrawMode:function(e){this.mapImp&&this.mapImp.changeAnnotationDrawMode(e)},clearAnnotationFeature:function(){this.mapImp&&this.existDrawnFeatures.length>0&&this.mapImp.clearAnnotationFeature()},modifyAnnotationFeature:function(){this.mapImp&&this.mapImp.removeAnnotationFeature()},rollbackAnnotationEvent:function(){this.mapImp&&["created","updated","deleted"].includes(this.annotationEntry.type)&&(this.mapImp.rollbackAnnotationEvent(this.annotationEntry),this.annotationEntry={})},commitAnnotationEvent:function(e){this.mapImp&&["created","updated","deleted"].includes(this.annotationEntry.type)&&e&&(this.featureAnnotationSubmitted=!0,this.mapImp.commitAnnotationEvent(this.annotationEntry),this.annotationEntry.type==="deleted"?this.closeTooltip():this.addAnnotationFeature())},fetchAnnotatedItemIds:async function(e=void 0,t=void 0){let r=await this.annotator.annotatedItemIds(this.userToken,this.serverURL,e,t);return"resource"in r&&(r=r.itemIds),r},setFeatureAnnotated:async function(){if(this.mapImp){const e=await this.fetchAnnotatedItemIds();for(const t of e)this.mapImp.setFeatureAnnotated(t)}},fetchDrawnFeatures:async function(e,t){const r=await this.fetchAnnotatedItemIds(e,t);let n=await this.annotator.drawnFeatures(this.userToken,this.serverURL,r);return"resource"in n&&(n=n.features),this.drawnType!=="All tools"&&(n=n.filter(i=>i.geometry.type===this.drawnType)),n},addAnnotationFeature:async function(){if(this.mapImp&&(this.featureAnnotationSubmitted||this.clearAnnotationFeature(),this.drawnType!=="None")){this.featureAnnotationSubmitted||(this.loading=!0);const e=this.annotatedType==="Anyone"?void 0:this.userInformation.orcid?this.userInformation.orcid:"0000-0000-0000-0000",t=this.annotatedType==="Anyone"?void 0:this.annotatedType==="Me",r=await this.fetchDrawnFeatures(e,t);if(this.existDrawnFeatures=r,this.loading=!1,!this.featureAnnotationSubmitted)for(const n of r)this.mapImp.addAnnotationFeature(n)}},showAnnotator:function(e){this.mapImp&&(this.mapImp.showAnnotator(e),this.$el.querySelector(".maplibregl-ctrl-group").style.display="none")},setDrawnType:function(e){this.drawnType=e,this.mapImp&&(this.addAnnotationFeature(),this.initialiseDrawing())},setAnnotatedType:function(e){this.annotatedType=e,this.mapImp&&this.addAnnotationFeature()},setFlightPath3D:function(e){this.flightPath3DRadio=e,this.mapImp&&this.mapImp.enableFlightPaths(e)},viewLatestMap:function(){let e=this.biologicalSex?this.biologicalSex:void 0;this.entry==="NCBITaxon:9606"&&(e="PATO:0000384");const t={entry:this.entry,biologicalSex:e,viewport:this.mapImp.getState()};this.$emit("view-latest-map",t)},backgroundChangeCallback:function(e){this.currentBackground=e,this.mapImp&&this.mapImp.setBackgroundColour(this.currentBackground,1)},processSystems:function(e){if(this.systems.length=0,e&&e.length>0){const t={label:"All",key:"All",children:[]};e.forEach(r=>{const n={colour:r.colour,enabled:r.enabled,label:r.id,key:r.id},i=uNe(r,n.key);i.length>0&&(n.children=i),t.children.push(n)}),this.systems.push(t)}},processTaxon:function(e,t){this.taxonConnectivity.length=0,t.forEach(r=>{Bwe(e,r).then(n=>{const i={taxon:r,label:n};this.taxonConnectivity.push(i)})})},toggleDrawer:function(){this.drawerOpen=!this.drawerOpen},setColour:function(e){this.colourRadio=e,this.mapImp&&this.mapImp.setColour({colour:e,outline:this.outlinesRadio})},setOutlines:function(e){this.outlineRadio=e,this.mapImp&&this.mapImp.setColour({colour:this.colourRadio,outline:e})},resetView:function(){this.mapImp&&(this.mapImp.resetMap(),this.$refs.centrelinesSelection&&this.$refs.centrelinesSelection.reset(),this.$refs.skcanSelection&&this.$refs.skcanSelection.reset(),this.$refs.layersSelection&&this.$refs.layersSelection.reset(),this.$refs.systemsSelection&&this.$refs.pathwaysSelection.reset(),this.$refs.pathwaysSelection&&this.$refs.pathwaysSelection.reset())},zoomIn:function(){this.mapImp&&this.mapImp.zoomIn()},zoomOut:function(){this.mapImp&&this.mapImp.zoomOut()},centreLinesSelected:function(e){this.mapImp&&this.mapImp.enableCentrelines(e.value)},onSelectionsDataChanged:function(e){this.$emit("pathway-selection-changed",e)},sckanSelected:function(e){this.mapImp&&this.mapImp.enableSckanPath(e.key,e.value)},checkAllSCKAN:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableSckanPath(t,e.value))},highlightConnectedPaths:async function(e){var t,r;if(this.mapImp){let n=[...this.mapImp.pathModelNodes(e)].map(c=>this.mapImp.featureProperties(c)),i=await this.flatmapQueries.queryForConnectivity(e),o=(r=(t=i==null?void 0:i.ids)==null?void 0:t.dendrites)==null?void 0:r.flat().flat(),s=[],l=!1;n.forEach(c=>{this.mapImp.nodePathModels(c.featureId).forEach(u=>{l=!0,this.mapImp.pathModelNodes(u).forEach(d=>{let h=this.mapImp.featureProperties([d]);if(o.includes(h.models)){l=!1;return}}),l&&s.push(u)})}),this.mapImp.zoomToFeatures(s,{noZoomIn:!0})}},resetMapFilter:function(){const e=this.mapFilters.alert;let t;e.with?e.without||(t={HAS:"alert"}):e.without?t={NOT:{HAS:"alert"}}:t={AND:[{NOT:{HAS:"alert"}},{HAS:"alert"}]},t?this.mapImp.setVisibilityFilter(t):this.mapImp.clearVisibilityFilter()},alertMouseEnterEmitted:function(e){if(this.mapImp)if(e.value){let t;e.key==="alert"?t={HAS:"alert"}:e.key==="withoutAlert"&&(t={NOT:{HAS:"alert"}}),this.mapImp.setVisibilityFilter(t)}else this.resetMapFilter()},alertSelected:function(e){this.mapImp&&(e.key==="alert"?e.value?this.mapFilters.alert.with=!0:this.mapFilters.alert.with=!1:e.key==="withoutAlert"&&(e.value?this.mapFilters.alert.without=!0:this.mapFilters.alert.without=!1),this.resetMapFilter())},checkAllAlerts:function(e){this.mapImp&&(e.value?(this.mapFilters.alert.without=!0,this.mapFilters.alert.with=!0):(this.mapFilters.alert.without=!1,this.mapFilters.alert.with=!1),this.resetMapFilter())},systemSelected:function(e){this.mapImp&&this.mapImp.enableSystem(e.key,e.value)},checkAllSystems:function(e){this.mapImp&&this.systems[0].children.forEach(t=>this.mapImp.enableSystem(t.label,e))},ftuSelected:function(e){this.searchAndShowResult(e,!0)},layersSelected:function(e){this.mapImp&&this.mapImp.enableLayer(e.key,e.value)},checkAllLayers:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableLayer(t,e.value))},taxonsSelected:function(e){this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(e.key,e.value)},taxonMouseEnterEmitted:function(e){if(this.mapImp)if(e.value){let t=this.mapImp.taxonFeatureIds(e.key);this.mapImp.enableConnectivityByTaxonIds(e.key,e.value),this.mapImp.zoomToGeoJSONFeatures(t,{noZoomIn:!0})}else this.mapImp.selectGeoJSONFeatures("-1"),e.selections.forEach(t=>{let r=e.checked.includes(t.taxon);this.mapImp.enableConnectivityByTaxonIds(t.taxon,r)})},checkAllTaxons:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableConnectivityByTaxonIds(t,e.value))},pathwaysSelected:function(e){this.mapImp&&this.mapImp.enablePath(e.key,e.value)},checkAllPathways:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enablePath(t,e.value))},enablePanZoomEvents:function(e){this.mapImp.enablePanZoomEvents(e)},annotationEventCallback:function(e,t){if(t.type==="aborted")this.featureAnnotationSubmitted?this.featureAnnotationSubmitted=!1:this.rollbackAnnotationEvent();else if(t.type==="modeChanged")t.feature.mode==="simple_select"&&this.activeDrawTool?this.drawnCreatedEvent||this.initialiseDrawing():t.feature.mode==="direct_select"&&(this.doubleClickedFeature=!0);else if(t.type==="selectionChanged"){if(this.selectedDrawnFeature=t.feature.features.length===0?void 0:t.feature.features[0],e.feature.feature=this.selectedDrawnFeature,!this.activeDrawTool&&(this.connectionEntry={},this.selectedDrawnFeature)){const r=this.existDrawnFeatures.find(n=>n.id===this.selectedDrawnFeature.id);r&&r.connection&&(this.connectionEntry=r.connection),this.drawModeEvent(e)}}else{if(t.type==="created"||t.type==="updated"){t.type==="updated"&&t.feature.action&&(t.positionUpdated=t.feature.action==="move");const r=this.mapImp.refreshAnnotationFeatureGeometry(t.feature);e.feature.feature=r}t.type==="created"?this.drawnCreatedEvent=e:this.checkAndCreatePopups(e)}},eventCallback:function(){return(e,t,...r)=>{if(e==="annotation"){const n={feature:t,userData:r,eventType:e};this.annotationEventCallback(n,t)}else if(e!=="pan-zoom"){const n=t.label,i=[t.models],o=this.entry,s=this.biologicalSex;let l;t.taxons&&(typeof t.taxons!="object"?l=JSON.parse(t.taxons):l=t.taxons);const c={dataset:t.dataset,biologicalSex:s,taxonomy:o,resource:i,label:n,feature:t,userData:r,eventType:e,provenanceTaxonomy:l};if(e==="click"){if(this.featuresAlert=t.alert,this.viewingMode==="Neuron Connection")this.highlightConnectedPaths([t.models]);else if(this.currentActive=t.models?t.models:"",this.activeDrawTool&&!this.drawnCreatedEvent){const u=t.featureId||this.existDrawnFeatures.find(d=>d.id===t.id);if(this.activeDrawTool==="LineString"&&u){const d=t.featureId?t.featureId:t.id,h=t.label?t.label:`Feature ${t.id}`;this.connectionEntry[` ${d}`]=Object.assign({label:h},Object.fromEntries(Object.entries(t).filter(([p])=>["featureId","models"].includes(p)).map(([p,f])=>[p==="featureId"?"id":p,f])))}}}else e==="mouseenter"&&this.viewingMode!=="Neuron Connection"&&(this.currentHover=t.models?t.models:"");t&&t.type!=="marker"&&e==="click"&&this.viewingMode!=="Neuron Connection"&&!this.activeDrawTool&&this.checkAndCreatePopups(c),this.$emit("resource-selected",c)}else this.$emit("pan-zoom-callback",t)}},changeViewingMode:function(e=null){if(e!==null){this.viewingMode=this.viewingModes[e].name;let t=this.viewingModes[0];this.viewingModes[0]=this.viewingModes[e],this.viewingModes[e]=t}this.closeTooltip()},checkAndCreatePopups:async function(e){if(this.viewingMode==="Annotation")e.feature?(this.annotationEntry={...e.feature,resourceId:this.serverURL},e.feature.featureId&&e.feature.models?this.displayTooltip(e.feature.models):e.feature.feature&&(this.activeDrawTool||this.activeDrawMode||Object.keys(this.connectionEntry).length>0?(this.featureAnnotationSubmitted=!1,this.annotationEntry.featureId=e.feature.feature.id,this.activeDrawTool&&this.createConnectivityBody(),this.displayTooltip(e.feature.feature.id,CLr(e.feature.feature.geometry))):this.rollbackAnnotationEvent())):this.annotation={};else{let t=await this.flatmapQueries.retrieveFlatmapKnowledgeForEvent(e);(t[0]||t[1]||e.feature.hyperlinks&&e.feature.hyperlinks.length>0)&&(this.resourceForTooltip=e.resource[0],e.resourceForTooltip=this.resourceForTooltip,this.createTooltipFromNeuronCuration(e))}},popUpCssHacks:function(){const e=document.querySelector(".flatmap-tooltip-popup"),t=document.querySelector(".maplibregl-popup-close-button");e&&(e.style.display="none"),t.style.display="block",this.$refs.tooltip.$el.style.display="flex",t.onclick=()=>{e&&(e.style.display="block")}},closeTooltip:function(){this.$refs.tooltip.$el.style.display="none",document.querySelectorAll(".maplibregl-popup").forEach(e=>{e.style.display="none"})},createTooltipFromNeuronCuration:async function(e){this.tooltipEntry=await this.flatmapQueries.createTooltipData(e),this.displayTooltip(e.resource[0])},showPopup:function(e,t,r){let n=r;this.mapImp&&(n?n.className||(n.className="custom-popup"):n={className:"custom-popup",positionAtLastClick:!0},this.mapImp.showPopup(e,t,n))},showMarkerPopup:function(e,t,r){this.mapImp&&this.mapImp.showMarkerPopup(e,t,r)},closeMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");this.minimapSmall?(e.classList.add("enlarge"),e.classList.remove("shrink")):(e.classList.add("shrink"),e.classList.remove("enlarge")),this.minimapSmall=!this.minimapSmall},addResizeButtonToMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");e&&(this.$refs.minimapResize&&this.$refs.minimapResize.$el.parentNode&&this.$refs.minimapResize.$el.parentNode.removeChild(this.$refs.minimapResize.$el),e.appendChild(this.$refs.minimapResize.$el),this.minimapResizeShow=!0)},setHelpMode:function(e){const t=this.hoverVisibilities.length,r=t-1,n=this.hoverVisibilities[this.helpModeActiveIndex];if(n){const i=n==null?void 0:n.refs,o=n==null?void 0:n.ref,s=this.$refs[i||o];if(s){const{parentElement:l,nextElementSibling:c}=s.$el,u=d=>d&&(d.classList.contains("pathway-container")||d.classList.contains("pathway-location"));(u(l)||u(c))&&(this.drawerOpen=!0)}else this.helpModeActiveIndex+=1}e||(this.helpModeActiveIndex=this.helpModeInitialIndex),this.viewingMode!=="Annotation"&&this.helpModeActiveIndex>9&&(this.helpModeActiveIndex=r),e&&this.helpModeActiveIndex>=r&&this.$emit("help-mode-last-item",!0),e&&!this.helpModeDialog?(this.inHelp=!0,this.hoverVisibilities.forEach(i=>{i.value=!0})):e&&this.helpModeDialog&&t>this.helpModeActiveIndex?this.helpModeActiveIndex>-1?(this.closeFlatmapHelpPopup(),setTimeout(()=>{this.inHelp=!1,this.hoverVisibilities.forEach(i=>{i.value=!1}),this.showTooltip(this.helpModeActiveIndex,200)},300)):this.helpModeActiveIndex===-1&&this.openFlatmapHelpPopup():(this.inHelp=!1,this.hoverVisibilities.forEach(i=>{i.value=!1}),this.closeFlatmapHelpPopup())},showTooltip:function(e,t=500){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!0,this.$emit("shown-tooltip")},t))},hideTooltip:function(e,t=500){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!1},t))},displayTooltip:function(e,t=void 0){this.tooltipDisplay=!0;let r,n={className:"flatmapvuer-popover"};t?(r=e,n.annotationFeatureGeometry=t):(r=this.mapImp.modelFeatureIds(e)[0],this.activeDrawTool||(n.positionAtLastClick=!0)),this.disableUI||this.$nextTick(()=>{this.mapImp.showPopup(r,this.$refs.tooltip.$el,n),this.popUpCssHacks()})},openFlatmapHelpPopup:function(){if(this.mapImp){let e=this.mapImp.modelFeatureIds("UBERON:0000948");e&&e.length>0&&(this.mapImp.showPopup(e[0],"Click for more information",{anchor:"top",className:"flatmap-popup-popper"}),this.$emit("shown-map-tooltip"))}},closeFlatmapHelpPopup:function(){this.$el.querySelectorAll(".maplibregl-popup-close-button").forEach(e=>{e.click()})},getLabels:function(){let e=[];if(this.mapImp){let t=this.mapImp.annotations;for(let r of t.values())r.label&&e.push(r.label);return Array.from(new Set(e))}},getState:function(){if(this.mapImp){let e={entry:this.entry,viewport:this.mapImp.getState()};const t=this.mapImp.getIdentifier();return this.biologicalSex?e.biologicalSex=this.biologicalSex:t&&t.biologicalSex&&(e.biologicalSex=t.biologicalSex),t&&t.uuid&&(e.uuid=t.uuid),e}},setState:function(e){e&&(this.mapImp&&e.entry&&this.entry==e.entry&&(!e.biologicalSex||e.biologicalSex===this.biologicalSex)?e.viewport&&this.mapImp.setState(e.viewport):this.createFlatmap(e),this.setStateRequired=!1)},restoreMapState:function(e){e&&(e.viewport&&this.mapImp.setState(e.viewport),e.searchTerm&&this.searchAndShowResult(e.searchTerm,!0))},setFlightPathInfo:function(e){(e===1.6||e>1.6)&&(this.displayFlightPathOption=!0,this.setFlightPath3D(!1))},createFlatmap:function(e){if(!this.mapImp&&!this.loading){this.loading=!0;let t=!1;this.displayMinimap&&(t={position:"top-right"});let r={taxon:this.entry};this.uuid&&(r.uuid=this.uuid),e?e.uuid?r={uuid:e.uuid}:e.entry&&(r.taxon=e.entry,e.biologicalSex?r.biologicalSex=e.biologicalSex:r.taxon==="NCBITaxon:9606"&&(r.biologicalSex="PATO:0000384")):this.biologicalSex&&(r.biologicalSex=this.biologicalSex),this.mapManager.loadMap(r,this.$refs.display,this.eventCallback(),{minZoom:this.minZoom,tooltips:this.tooltips,minimap:t}).then(n=>{this.mapImp=n,this.serverURL=this.mapImp.makeServerUrl("").slice(0,-1);let i=this.mapImp.details.version;this.setFlightPathInfo(i),this.onFlatmapReady(),this._stateToBeSet?this.restoreMapState(this._stateToBeSet):this.restoreMapState(e)})}else e&&(this._stateToBeSet={viewport:e.viewport,searchTerm:e.searchTerm},this.mapImp&&!this.loading&&this.restoreMapState(this._stateToBeSet))},computePathControlsMaximumHeight(){const e=this.$refs.display;if(e){const t=getComputedStyle(e),r=parseInt(t.paddingTop)+parseInt(t.paddingBottom),n=e.clientHeight-r;this.pathwaysMaxHeight=n-170}},mapResize:function(){try{this.computePathControlsMaximumHeight(),this.mapImp&&(this.mapImp.resize(),this.showMinimap(this.displayMinimap),this.mapImp._minimap&&this.mapImp._minimap._miniMap.resize())}catch{console.error("Map resize error")}},onFlatmapReady:function(){this.sensor=new $Jt(this.$refs.display,this.mapResize),this.mapImp.options&&this.mapImp.options.style==="functional"&&(this.isFC=!0),this.mapImp.setBackgroundOpacity(1),this.backgroundChangeCallback(this.currentBackground),this.pathways=this.mapImp.pathTypes(),this.mapImp.enableCentrelines(!1),this.processSystems(this.mapImp.getSystems()),this.processTaxon(this.flatmapAPI,this.mapImp.taxonIdentifiers),this.containsAlert="alert"in this.mapImp.featureFilterRanges(),this.addResizeButtonToMinimap(),this.loading=!1,this.computePathControlsMaximumHeight(),this.drawerOpen=!0,this.mapResize(),this.$emit("ready",this)},showMinimap:function(e){this.mapImp&&this.mapImp.showMinimap(e)},showPathwaysDrawer:function(e){this.drawerOpen=e},searchAndShowResult:function(e,t){if(this.mapImp){if(e===void 0||e==="")return this.mapImp.clearSearchResults(),!0;{const r=this.mapImp.search(e);if(r&&r.results&&r.results.length>0){if(this.mapImp.showSearchResults(r),t&&r.results[0].featureId&&r.results[0].text){const n=this.mapImp.annotation(r.results[0].featureId);this.mapImp.showPopup(r.results[0].featureId,n.label,{className:"custom-popup",positionAtLastClick:!1,preserveSelection:!0})}return!0}else this.mapImp.clearSearchResults()}}return!1},searchSuggestions:function(e){return this.mapImp?this.mapImp.search(e):[]}},props:{entry:{type:String,required:!0},uuid:String,biologicalSex:{type:String,default:""},minZoom:{type:Number,default:4},tooltips:{type:Boolean,default:!0},helpMode:{type:Boolean,default:!1},helpModeActiveItem:{type:Number,default:0},helpModeDialog:{type:Boolean,default:!1},helpModeLastItem:{type:Boolean,default:!1},helpModeInitialIndex:{type:Number,default:0},renderAtMounted:{type:Boolean,default:!0},displayMinimap:{type:Boolean,default:!1},displayWarning:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array,default:function(){return[{display:"Open AC Map",key:"AC"},{display:"Open FC Map",key:"FC"},{display:"Open 3D Human Map",key:"3D"}]}},showStarInLegend:{type:Boolean,default:!1},isLegacy:{type:Boolean,default:!1},displayLatestChanges:{type:Boolean,default:!1},state:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},disableUI:{type:Boolean,default:!1}},provide(){return{flatmapAPI:this.flatmapAPI,sparcAPI:this.sparcAPI,$annotator:this.annotator,getFeaturesAlert:()=>this.featuresAlert,userApiKey:this.userToken}},data:function(){return{annotationEntry:{},tooltipDisplay:!1,serverURL:void 0,layers:[],pathways:[],sckanDisplay:[{label:"Display Path with SCKAN",key:"VALID"}],centreLines:[{label:"Display Nerves",key:"centrelines",enabled:!1}],systems:[],taxonConnectivity:[],pathwaysMaxHeight:1e3,hoverVisibilities:[{value:!1,ref:"zoomInPopover"},{value:!1,ref:"zoomOutPopover"},{value:!1,ref:"zoomFitPopover"},{value:!1,ref:"settingsPopover"},{value:!1,ref:"checkBoxPopover"},{value:!1,ref:"markerPopover"},{value:!1,ref:"warningPopover"},{value:!1,ref:"whatsNewPopover"},{value:!1,ref:"openMapPopover"},{value:!1,ref:"featuredMarkerPopover"},{value:!1,refs:"drawToolPopover",ref:"connectionPopover"},{value:!1,refs:"drawToolPopover",ref:"drawPointPopover"},{value:!1,refs:"drawToolPopover",ref:"drawLinePopover"},{value:!1,refs:"drawToolPopover",ref:"drawPolygonPopover"},{value:!1,refs:"drawToolPopover",ref:"deletePopover"},{value:!1,refs:"drawToolPopover",ref:"editPopover"}],helpModeActiveIndex:this.helpModeInitialIndex,yellowstar:YJt,isFC:!1,inHelp:!1,currentBackground:"white",availableBackground:["white","lightskyblue","black"],loading:!1,flatmapMarker:KJt,tooltipEntry:ELr(),connectivityTooltipVisible:!1,drawerOpen:!1,featuresAlert:void 0,flightPath3DRadio:!1,displayFlightPathOption:!1,colourRadio:!0,outlinesRadio:!0,minimapResizeShow:!1,minimapSmall:!1,currentActive:"",selectedDrawnFeature:void 0,currentHover:"",viewingMode:"Exploration",viewingModes:{0:{name:"Exploration",description:"Find relevant research and view detail of neural pathways by selecting a pathway to view its connections and data sources"},1:{name:"Neuron Connection",description:"Discover Neuron connections by selecting a neuron and viewing its associated network connections"},2:{name:"Annotation",description:"View internal identifiers of features"}},drawnType:"All tools",drawnTypes:["All tools","Point","LineString","Polygon","None"],annotatedType:"Anyone",annotatedTypes:["Anyone","Me","Others"],openMapRef:void 0,backgroundIconRef:void 0,annotator:void 0,userInformation:void 0,activeDrawTool:void 0,drawnCreatedEvent:void 0,featureAnnotationSubmitted:!1,connectionEntry:{},existDrawnFeatures:[],doubleClickedFeature:!1,activeDrawMode:void 0,drawModes:["Delete","Edit"],containsAlert:!1,alertOptions:[{label:"Display Path With Alerts",key:"alert",enabled:!0},{label:"Display Path Without Alerts",key:"withoutAlert",enabled:!0}],mapFilters:a.markRaw({alert:{with:!0,without:!0}})}},computed:{...MLr(kLr,["userToken"])},watch:{entry:function(){this.state||this.createFlatmap()},helpMode:function(e,t){e!==t&&this.setHelpMode(e)},helpModeActiveItem:function(){this.helpMode&&(this.helpModeActiveIndex+=1,this.setHelpMode(this.helpMode))},state:{handler:function(e,t){e!==t&&(this.mapManager?this.setState(e):this.setStateRequired=!0)},immediate:!0,deep:!0},viewingMode:function(e){e==="Annotation"?(this.loading=!0,this.annotator.authenticate(this.userToken).then(t=>{t.name&&t.email&&(this.showAnnotator(!0),this.userInformation=t,this.setFeatureAnnotated(),this.existDrawnFeatures.length===0&&this.addAnnotationFeature()),this.loading=!1})):this.showAnnotator(!1)},activeDrawMode:function(){this.changeAnnotationDrawMode({mode:"simple_select"}),this.connectionEntry={}},disableUI:function(e){e&&this.closeTooltip()}},mounted:function(){this.openMapRef=a.shallowRef(this.$refs.openMapRef),this.backgroundIconRef=a.shallowRef(this.$refs.backgroundIconRef),this.tooltipWait=[],this.tooltipWait.length=this.hoverVisibilities.length,this.mapManager=new xse(this.flatmapAPI),this.flatmapQueries=new XJt,this.flatmapQueries.initialise(this.flatmapAPI),this.state?this.setStateRequired&&this.setState(this.state):this.renderAtMounted&&this.createFlatmap()}},r3=e=>(a.pushScopeId("data-v-b25d5ae4"),e=e(),a.popScopeId(),e),OLr={class:"flatmap-container",ref:"flatmapContainer","element-loading-text":"Loading...","element-loading-background":"rgba(0, 0, 0, 0.3)"},ILr={style:{height:"100%",width:"100%",position:"relative","overflow-y":"none"}},PLr={style:{height:"100%",width:"100%"},ref:"display"},VLr={class:"beta-popovers"},HLr=r3(()=>a.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1)),NLr=r3(()=>a.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1)),RLr=r3(()=>a.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1)),BLr=r3(()=>a.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1)),DLr=r3(()=>a.createElementVNode("span",{class:"warning-text"},"Legacy Map",-1)),FLr={key:1,class:"warning-text"},zLr=r3(()=>a.createElementVNode("span",{class:"warning-text"},"What's new?",-1)),jLr=r3(()=>a.createElementVNode("b",null,"Neuron Connection mode",-1)),ULr=r3(()=>a.createElementVNode("p",null," You can now view the network of neurons connected to a selected neuron. This mode is located in the settings at the bottom right. Once discovery mode is on, click on a neuron to see its connections. ",-1)),GLr=r3(()=>a.createElementVNode("b",null,"Now can display up to 6 panes",-1)),WLr=r3(()=>a.createElementVNode("p",null," You can now display up to 6 panes in the flatmap. This allows you to compare between different datasets and/or different views of the same dataset. ",-1)),ZLr={class:"bottom-right-control"},qLr=r3(()=>a.createElementVNode("div",null,[a.createTextVNode(" Fit to "),a.createElementVNode("br"),a.createTextVNode(" window ")],-1)),KLr=["innerHTML"],XLr=["innerHTML"],YLr={style:{"margin-bottom":"2px"}},JLr={key:0,class:"viewing-mode-title"},$Lr=["onClick"],eSr=["onClick"];function tSr(e,t,r,n,i,o){const s=a.resolveComponent("map-svg-sprite-color"),l=wxe,c=Ys,u=Tb,d=Em,h=Rwe,p=a.resolveComponent("map-svg-icon"),f=Nwe,m=Hwe,g=Vwe,T=xxe,y=Yu,v=Dh,_=Hp,x=SN,L=yb,w=owe,M=awe,C=Jee,E=Lwe,O=ON;return a.withDirectives((a.openBlock(),a.createElementBlock("div",OLr,[a.createVNode(s),a.createElementVNode("div",ILr,[a.createElementVNode("div",PLr,null,512),a.withDirectives(a.createElementVNode("div",VLr,[a.createElementVNode("div",null,[a.createVNode(u,{placement:"right","popper-class":"warning-popper flatmap-popper",teleported:!1,visible:e.hoverVisibilities[6].value,ref:"warningPopover"},{reference:a.withCtx(()=>[r.displayWarning?(a.openBlock(),a.createElementBlock("div",{key:0,class:"warning-icon",onMouseover:t[7]||(t[7]=V=>o.showTooltip(6)),onMouseout:t[8]||(t[8]=V=>o.hideTooltip(6))},[a.createVNode(c,null,{default:a.withCtx(()=>[a.createVNode(l)]),_:1}),r.isLegacy?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[DLr,a.createElementVNode("div",{class:"latest-map-text",onClick:t[6]||(t[6]=(...V)=>o.viewLatestMap&&o.viewLatestMap(...V))}," Click here for the latest map ")],64)):(a.openBlock(),a.createElementBlock("span",FLr,"Beta"))],32)):a.createCommentVNode("",!0)]),default:a.withCtx(()=>[r.isLegacy?(a.openBlock(),a.createElementBlock("p",{key:0,onMouseover:t[0]||(t[0]=V=>o.showTooltip(6)),onMouseout:t[1]||(t[1]=V=>o.hideTooltip(6))}," This is a legacy map, you may view the latest map instead. ",32)):e.isFC?(a.openBlock(),a.createElementBlock("p",{key:1,onMouseover:t[2]||(t[2]=V=>o.showTooltip(6)),onMouseout:t[3]||(t[3]=V=>o.hideTooltip(6))},[a.createTextVNode(" This map displays the connectivity of individual neurons. Specifically, those which align with (parts of) the neuron populations from the "),HLr,a.createTextVNode(" models available in "),NLr,a.createTextVNode(". ")],32)):(a.openBlock(),a.createElementBlock("p",{key:2,onMouseover:t[4]||(t[4]=V=>o.showTooltip(6)),onMouseout:t[5]||(t[5]=V=>o.hideTooltip(6))},[a.createTextVNode(" This map displays the connectivity of neuron populations. Specifically, those from the primarily rat-based "),RLr,a.createTextVNode(" models available in "),BLr,a.createTextVNode(". New connectivity and species specificity will be added as the SPARC program progresses. ")],32))]),_:1},8,["visible"])]),r.displayLatestChanges?(a.openBlock(),a.createBlock(u,{key:0,placement:"right",teleported:!1,trigger:"manual","popper-class":"warning-popper flatmap-popper",visible:e.hoverVisibilities[7].value,ref:"whatsNewPopover"},{reference:a.withCtx(()=>[r.displayLatestChanges?(a.openBlock(),a.createElementBlock("div",{key:0,class:"latest-changesicon",onMouseover:t[9]||(t[9]=V=>o.showTooltip(7)),onMouseout:t[10]||(t[10]=V=>o.hideTooltip(7))},[a.createVNode(c,null,{default:a.withCtx(()=>[a.createVNode(l)]),_:1}),zLr],32)):a.createCommentVNode("",!0)]),default:a.withCtx(()=>[jLr,ULr,GLr,WLr]),_:1},8,["visible"])):a.createCommentVNode("",!0)],512),[[a.vShow,!r.disableUI]]),a.withDirectives(a.createVNode(c,{class:a.normalizeClass(["minimap-resize",{enlarge:e.minimapSmall,shrink:!e.minimapSmall}]),ref:"minimapResize",onClick:o.closeMinimap},{default:a.withCtx(()=>[a.createVNode(d)]),_:1},8,["class","onClick"]),[[a.vShow,e.minimapResizeShow]]),e.viewingMode==="Annotation"&&e.userInformation&&!r.disableUI?(a.openBlock(),a.createBlock(h,{key:0,helpMode:r.helpMode,hoverVisibilities:e.hoverVisibilities,flatmapCanvas:this.$el,drawnType:e.drawnType,activeDrawTool:e.activeDrawTool,activeDrawMode:e.activeDrawMode,drawnCreatedEvent:e.drawnCreatedEvent,connectionEntry:e.connectionEntry,onDrawToolbarEvent:o.drawToolbarEvent,onConfirmDrawn:o.confirmDrawnFeature,onCancelDrawn:o.cancelDrawnFeature,onFeatureTooltip:o.connectedFeatureTooltip,onShowTooltip:o.showTooltip,onHideTooltip:o.hideTooltip,ref:"drawToolPopover"},null,8,["helpMode","hoverVisibilities","flatmapCanvas","drawnType","activeDrawTool","activeDrawMode","drawnCreatedEvent","connectionEntry","onDrawToolbarEvent","onConfirmDrawn","onCancelDrawn","onFeatureTooltip","onShowTooltip","onHideTooltip"])):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("div",ZLr,[a.createVNode(u,{content:"Zoom in",placement:"left",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[0].value,ref:"zoomInPopover"},{reference:a.withCtx(()=>[a.createVNode(p,{icon:"zoomIn",class:"icon-button zoomIn",onClick:t[11]||(t[11]=V=>o.zoomIn()),onMouseover:t[12]||(t[12]=V=>o.showTooltip(0)),onMouseout:t[13]||(t[13]=V=>o.hideTooltip(0))})]),_:1},8,["visible"]),a.createVNode(u,{content:"Zoom out",placement:"top-end",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[1].value,ref:"zoomOutPopover"},{reference:a.withCtx(()=>[a.createVNode(p,{icon:"zoomOut",class:"icon-button zoomOut",onClick:t[14]||(t[14]=V=>o.zoomOut()),onMouseover:t[15]||(t[15]=V=>o.showTooltip(1)),onMouseout:t[16]||(t[16]=V=>o.hideTooltip(1))})]),_:1},8,["visible"]),a.createVNode(u,{content:"Reset",placement:"top",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[2].value,ref:"zoomFitPopover"},{reference:a.withCtx(()=>[a.createVNode(p,{icon:"fitWindow",class:"icon-button fitWindow",onClick:t[17]||(t[17]=V=>o.resetView()),onMouseover:t[18]||(t[18]=V=>o.showTooltip(2)),onMouseout:t[19]||(t[19]=V=>o.hideTooltip(2))})]),default:a.withCtx(()=>[qLr]),_:1},8,["visible"])],512),[[a.vShow,!r.disableUI]]),a.createVNode(u,{content:"Change pathway visibility",placement:"right",teleported:!1,trigger:"manual",offset:-18,"popper-class":"flatmap-popper",visible:e.hoverVisibilities[4].value,ref:"checkBoxPopover"},{reference:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",{class:a.normalizeClass(["pathway-location",{open:e.drawerOpen,close:!e.drawerOpen}])},[a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["pathway-container",{open:e.drawerOpen,close:!e.drawerOpen}]),style:a.normalizeStyle({"max-height":e.pathwaysMaxHeight+"px"})},[e.isFC?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(f,{key:0,class:"svg-legends-container"})),r.showStarInLegend?(a.openBlock(),a.createBlock(u,{key:1,content:"Location of the featured dataset",placement:"right",teleported:!0,trigger:"manual",width:"max-content",offset:-10,"popper-class":"flatmap-popper flatmap-teleport-popper",visible:e.hoverVisibilities[9].value,ref:"featuredMarkerPopover"},{reference:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",{class:"yellow-star-legend",innerHTML:e.yellowstar,onMouseover:t[20]||(t[20]=V=>o.showTooltip(9)),onMouseout:t[21]||(t[21]=V=>o.hideTooltip(9))},null,40,KLr),[[E,void 0,"featuredMarkerPopover"]])]),_:1},8,["visible"])):a.createCommentVNode("",!0),a.createVNode(u,{content:"Find these markers for data. The numbers represent the number of datasets in the area.",placement:"right",teleported:!1,width:"200",trigger:"manual","popper-class":"flatmap-popper flatmap-marker-popper",visible:e.hoverVisibilities[5].value,ref:"markerPopover"},{reference:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",{class:"flatmap-marker-help",innerHTML:e.flatmapMarker},null,8,XLr),[[a.vShow,e.hoverVisibilities[5].value],[E,void 0,"markerPopover"]])]),_:1},8,["visible"]),e.isFC&&e.systems&&e.systems.length>0?(a.openBlock(),a.createBlock(m,{key:2,active:e.currentActive,hover:e.currentHover,"tree-data":e.systems,ref:"treeControls",onChanged:o.systemSelected,onCheckAll:o.checkAllSystems,onChangeActive:o.ftuSelected},null,8,["active","hover","tree-data","onChanged","onCheckAll","onChangeActive"])):a.createCommentVNode("",!0),e.containsAlert&&e.alertOptions?(a.openBlock(),a.createBlock(g,{title:"Alert",labelKey:"label",identifierKey:"key",selections:e.alertOptions,onChanged:o.alertSelected,onCheckboxMouseEnter:o.alertMouseEnterEmitted,onSelectionsDataChanged:o.onSelectionsDataChanged,onCheckAll:o.checkAllAlerts,ref:"alertSelection",key:"alertSelection"},null,8,["selections","onChanged","onCheckboxMouseEnter","onSelectionsDataChanged","onCheckAll"])):a.createCommentVNode("",!0),e.pathways&&e.pathways.length>0?(a.openBlock(),a.createBlock(g,{title:"Pathways",labelKey:"label",identifierKey:"type",colourStyle:"line",selections:e.pathways,onChanged:o.pathwaysSelected,onSelectionsDataChanged:o.onSelectionsDataChanged,onCheckAll:o.checkAllPathways,ref:"pathwaysSelection",key:"pathwaysSelection"},null,8,["selections","onChanged","onSelectionsDataChanged","onCheckAll"])):a.createCommentVNode("",!0),!e.isFC&&e.taxonConnectivity&&e.taxonConnectivity.length>0?(a.openBlock(),a.createBlock(g,{title:"Studied in",labelKey:"label",identifierKey:"taxon",helpMessage:"Evidence exists that this set of neuron populations have been studied in the given species.",selections:e.taxonConnectivity,onChanged:o.taxonsSelected,onCheckboxMouseEnter:o.taxonMouseEnterEmitted,onSelectionsDataChanged:o.onSelectionsDataChanged,onCheckAll:o.checkAllTaxons,ref:"taxonSelection",key:"taxonSelection"},null,8,["selections","onChanged","onCheckboxMouseEnter","onSelectionsDataChanged","onCheckAll"])):a.createCommentVNode("",!0),!e.isFC&&e.centreLines&&e.centreLines.length>0?(a.openBlock(),a.createBlock(g,{title:"Nerves",labelKey:"label",identifierKey:"key",selections:e.centreLines,onChanged:o.centreLinesSelected,onSelectionsDataChanged:o.onSelectionsDataChanged,ref:"centrelinesSelection",key:"centrelinesSelection"},null,8,["selections","onChanged","onSelectionsDataChanged"])):a.createCommentVNode("",!0)],6)),[[E,void 0,"checkBoxPopover"]]),a.createElementVNode("div",{onClick:t[22]||(t[22]=(...V)=>o.toggleDrawer&&o.toggleDrawer(...V)),class:a.normalizeClass(["drawer-button",{open:e.drawerOpen,close:!e.drawerOpen}])},[a.createVNode(c,null,{default:a.withCtx(()=>[a.createVNode(T)]),_:1})],2)],2),[[a.vShow,!r.disableUI]])]),_:1},8,["visible"]),e.openMapRef?(a.openBlock(),a.createBlock(u,{key:1,ref:"open-map-popover","virtual-ref":e.openMapRef,placement:"top-start",width:"136",teleported:!1,trigger:"click","popper-class":"open-map-popper non-selectable","virtual-triggering":""},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.openMapOptions,V=>(a.openBlock(),a.createBlock(v,{key:V.key},{default:a.withCtx(()=>[a.createVNode(y,{type:"primary",plain:"",onClick:N=>e.$emit("open-map",V.key)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(V.display),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1},8,["virtual-ref"])):a.createCommentVNode("",!0),a.createVNode(u,{ref:"backgroundPopover","virtual-ref":e.backgroundIconRef,placement:"top-start",width:"320",teleported:!1,trigger:"click","popper-class":"background-popper h-auto","virtual-triggering":""},{default:a.withCtx(()=>[a.createElementVNode("div",null,[a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Viewing Mode")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[a.createElementVNode("div",YLr,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.viewingModes,(V,N)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:V+N},[V.name===e.viewingMode?(a.openBlock(),a.createElementBlock("span",JLr,[a.createElementVNode("b",null,a.toDisplayString(e.viewingMode),1)])):(a.openBlock(),a.createElementBlock("span",{key:1,class:"viewing-mode-unselected",onClick:B=>o.changeViewingMode(N)},a.toDisplayString(V.name),9,$Lr))],64))),128))]),a.createVNode(v,{class:"viewing-mode-description"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.viewingModes[0].description),1)]),_:1})]),_:1}),e.viewingMode==="Annotation"&&e.userInformation?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Drawn By*")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[a.createVNode(L,{teleported:!1,modelValue:e.drawnType,"onUpdate:modelValue":t[23]||(t[23]=V=>e.drawnType=V),placeholder:"Select",class:"select-box","popper-class":"flatmap_dropdown",onChange:o.setDrawnType},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.drawnTypes,V=>(a.openBlock(),a.createBlock(x,{key:V,label:V,value:V},{default:a.withCtx(()=>[a.createVNode(v,null,{default:a.withCtx(()=>[a.createVNode(_,{span:12},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(V),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Annotated By*")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[a.createVNode(L,{teleported:!1,modelValue:e.annotatedType,"onUpdate:modelValue":t[24]||(t[24]=V=>e.annotatedType=V),placeholder:"Select",class:"select-box","popper-class":"flatmap_dropdown",onChange:o.setAnnotatedType},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.annotatedTypes,V=>(a.openBlock(),a.createBlock(x,{key:V,label:V,value:V},{default:a.withCtx(()=>[a.createVNode(v,null,{default:a.withCtx(()=>[a.createVNode(_,{span:12},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(V),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1})],64)):a.createCommentVNode("",!0),e.displayFlightPathOption?(a.openBlock(),a.createBlock(v,{key:1,class:"backgroundSpacer"})):a.createCommentVNode("",!0),e.displayFlightPathOption?(a.openBlock(),a.createBlock(v,{key:2,class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Flight path display")]),_:1})):a.createCommentVNode("",!0),e.displayFlightPathOption?(a.openBlock(),a.createBlock(v,{key:3,class:"backgroundControl"},{default:a.withCtx(()=>[a.createVNode(M,{modelValue:e.flightPath3DRadio,"onUpdate:modelValue":t[25]||(t[25]=V=>e.flightPath3DRadio=V),class:"flatmap-radio",onChange:o.setFlightPath3D},{default:a.withCtx(()=>[a.createVNode(w,{label:!1},{default:a.withCtx(()=>[a.createTextVNode("2D")]),_:1}),a.createVNode(w,{label:!0},{default:a.withCtx(()=>[a.createTextVNode("3D")]),_:1})]),_:1},8,["modelValue","onChange"])]),_:1})):a.createCommentVNode("",!0),a.createVNode(v,{class:"backgroundSpacer"}),a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Organs display")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[a.createVNode(M,{modelValue:e.colourRadio,"onUpdate:modelValue":t[26]||(t[26]=V=>e.colourRadio=V),class:"flatmap-radio",onChange:o.setColour},{default:a.withCtx(()=>[a.createVNode(w,{label:!0},{default:a.withCtx(()=>[a.createTextVNode("Colour")]),_:1}),a.createVNode(w,{label:!1},{default:a.withCtx(()=>[a.createTextVNode("Greyscale")]),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),a.createVNode(v,{class:"backgroundSpacer"}),a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Outlines display")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[a.createVNode(M,{modelValue:e.outlinesRadio,"onUpdate:modelValue":t[27]||(t[27]=V=>e.outlinesRadio=V),class:"flatmap-radio",onChange:o.setOutlines},{default:a.withCtx(()=>[a.createVNode(w,{label:!0},{default:a.withCtx(()=>[a.createTextVNode("Show")]),_:1}),a.createVNode(w,{label:!1},{default:a.withCtx(()=>[a.createTextVNode("Hide")]),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),a.createVNode(v,{class:"backgroundSpacer"}),a.createVNode(v,{class:"backgroundText"},{default:a.withCtx(()=>[a.createTextVNode("Change background")]),_:1}),a.createVNode(v,{class:"backgroundControl"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.availableBackground,V=>(a.openBlock(),a.createElementBlock("div",{key:V,class:a.normalizeClass(["backgroundChoice",V,V==e.currentBackground?"active":""]),onClick:N=>o.backgroundChangeCallback(V)},null,10,eSr))),128))]),_:1})])]),_:1},8,["virtual-ref"]),a.withDirectives(a.createElementVNode("div",{class:a.normalizeClass(["settings-group",{open:e.drawerOpen,close:!e.drawerOpen}])},[a.createVNode(v,null,{default:a.withCtx(()=>[a.createVNode(u,{visible:e.hoverVisibilities[8].value,content:"Open new map",placement:"right",teleported:!1,"popper-class":"flatmap-popper",ref:"openMapPopover"},{reference:a.withCtx(()=>[r.enableOpenMapUI&&r.openMapOptions.length>0?(a.openBlock(),a.createBlock(p,{key:0,ref:"openMapRef",icon:"openMap",class:"icon-button open-map-button",onMouseover:t[28]||(t[28]=V=>o.showTooltip(8)),onMouseout:t[29]||(t[29]=V=>o.hideTooltip(8))},null,512)):a.createCommentVNode("",!0)]),_:1},8,["visible"])]),_:1}),a.createVNode(v,null,{default:a.withCtx(()=>[a.createVNode(u,{content:"Change settings",placement:"right",visible:e.hoverVisibilities[3].value,teleported:!1,trigger:"manual","popper-class":"flatmap-popper",ref:"settingsPopover"},{reference:a.withCtx(()=>[a.createVNode(p,{ref:"backgroundIconRef",icon:"changeBckgd",class:"icon-button",onMouseover:t[30]||(t[30]=V=>o.showTooltip(3)),onMouseout:t[31]||(t[31]=V=>o.hideTooltip(3))},null,512)]),_:1},8,["visible"])]),_:1})],2),[[a.vShow,!r.disableUI]]),a.withDirectives(a.createVNode(C,{ref:"tooltip",class:"tooltip",annotationEntry:e.annotationEntry,entry:e.tooltipEntry,annotationDisplay:e.viewingMode==="Annotation",onAnnotation:o.commitAnnotationEvent},null,8,["annotationEntry","entry","annotationDisplay","onAnnotation"]),[[a.vShow,e.tooltipDisplay]])])])),[[O,e.loading]])}const Ese=id(ALr,[["render",tSr],["__scopeId","data-v-b25d5ae4"]]),dNe={"NCBITaxon:10114":"01fedbf9-d783-509c-a10c-827941ab13da","NCBITaxon:9823":"a336ac04-24db-561f-a25f-1c994fe17410","NCBITaxon:9606":"42ed6323-f645-5fbe-bada-9581819cf689","NCBITaxon:10090":"25285fab-48a0-5620-a6a0-f9a0374837d5","NCBITaxon:9685":"73060497-46a6-52bf-b975-cac511c127cb"},rSr={name:"MultiFlatmapVuer",components:{Col:Hp,Row:Dh,Option:SN,Select:yb,Popover:Tb,FlatmapVuer:Ese},beforeMount(){this._resolveList=[],this._initialised=!1},mounted:function(){this.initialise(),bb.on("onActionClick",e=>{this.resourceSelected(e)}),bb.on("open-pubmed-url",e=>{this.$emit("open-pubmed-url",e)})},methods:{initialise:function(){return new Promise(e=>{this.requireInitialisation?(this.requireInitialisation=!1,fetch(this.flatmapAPI).then(t=>t.json()).then(t=>{Object.keys(this.availableSpecies).forEach(n=>{const i=this.availableSpecies[n].uuid;if(i&&t.map(o=>o.uuid).indexOf(i)>0)this.speciesList[n]=a.reactive(this.availableSpecies[n]);else for(let o=0;o<t.length;o++)if(this.availableSpecies[n].taxo===t[o].taxon)if(this.availableSpecies[n].biologicalSex){if(t[o].biologicalSex&&t[o].biologicalSex===this.availableSpecies[n].biologicalSex){this.speciesList[n]=a.reactive(this.availableSpecies[n]);break}}else{this.speciesList[n]=a.reactive(this.availableSpecies[n]);break}});let r=this.initial;if(this.state){const n=this.state.state;(!n||!n.uuid&&!n.entry)&&this.state.species?r=this.state.species:r=void 0}r&&(r&&this.speciesList[r]!==void 0?this.activeSpecies=r:this.activeSpecies=Object.keys(this.speciesList)[0],this.setSpecies(this.activeSpecies,this.state?this.state.state:void 0,5)),this._initialised=!0,e(),this._resolveList.forEach(n=>{n()})})):this._initialised?e():this._resolveList.push(e)})},resourceSelected:function(e){this.$emit("resource-selected",e)},FlatmapReady:function(e){this.$emit("ready",e)},getCurrentFlatmap:function(){return this.$refs[this.activeSpecies][0]},panZoomCallback:function(e){this.$emit("pan-zoom-callback",e)},onSelectionsDataChanged:function(e){this.$emit("pathway-selection-changed",e)},showPopup:function(e,t,r){this.getCurrentFlatmap().showPopup(e,t,r)},showMarkerPopup:function(e,t,r){this.getCurrentFlatmap().showMarkerPopup(e,t,r)},setSpecies:function(e,t,r){if(this.$refs&&e in this.$refs)this.activeSpecies=e,this.$refs[this.activeSpecies][0].createFlatmap(t),this.$emit("flatmapChanged",this.activeSpecies);else if(r){const n=r-1;n>=0&&this.$nextTick(()=>{this.setSpecies(e,t,n)})}},viewLatestMap:function(e){const t=Object.keys(this.speciesList);for(let r=0;r<t.length;r++){const n=this.speciesList[t[r]];if(!n.isLegacy&&n.taxo===e.entry&&n.biologicalSex===e.biologicalSex){this.setSpecies(t[r],e,0);return}}},createLegacyEntry:function(e,t,r){if(r&&t){let n="Legacy";return e.species&&(e.species.slice(0,6)==="Legacy"?n=e.species:n=n+` ${e.species}`),this.speciesList[n]=a.reactive({taxo:t,isLegacy:!0,displayWarning:!0}),{species:n,state:{entry:t,uuid:r,viewport:e.state.viewport,searchTerm:e.state.searchTerm}}}},updateState:function(e){return new Promise(t=>{if(e&&e.state){const r=e.state;if(r.uuid){if(r.entry)return new Promise(()=>{const n=new xse(this.flatmapAPI),i={taxon:r.entry};r.biologicalSex&&(i.biologicalSex=r.biologicalSex),n.findMap_(i).then(o=>{if(o.uuid!==r.uuid)return this.createLegacyEntry(e,r.entry,r.uuid)}).then(o=>{t(o||e)}).catch(()=>{t(e)})})}else if(r.entry){const n=r.entry in dNe?dNe[r.entry]:void 0,i=this.createLegacyEntry(e,r.entry,n);t(i||e)}}t(e)})},getState:function(){let e={species:this.activeSpecies,state:void 0},t=this.getCurrentFlatmap();return e.state=t.getState(),e},setState:function(e){e&&this.updateState(e).then(t=>{this.initialise().then(()=>{t.species&&t.species!==this.activeSpecies?this.setSpecies(t.species,t.state,5):t.state&&this.getCurrentFlatmap().setState(t.state)})})},activateTooltipByIndex:function(e){return e===this.helpModeActiveItem&&this.helpMode},onHelpModeLastItem:function(e){e&&this.$emit("help-mode-last-item",!0)},onTooltipShown:function(){this.$emit("shown-tooltip")},onMapTooltipShown:function(){this.$emit("shown-map-tooltip")}},props:{initial:{type:String,default:""},minZoom:{type:Number,default:4},renderAtMounted:{type:Boolean,default:!1},helpMode:{type:Boolean,default:!1},helpModeActiveItem:{type:Number,default:0},helpModeDialog:{type:Boolean,default:!1},helpModeLastItem:{type:Boolean,default:!1},displayMinimap:{type:Boolean,default:!1},showStarInLegend:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array},availableSpecies:{type:Object,default:function(){return{"Human Female":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000383",iconClass:"mapicon-icon_human",displayWarning:!0},"Human Male":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000384",iconClass:"mapicon-icon_human",displayWarning:!0},Rat:{taxo:"NCBITaxon:10114",iconClass:"mapicon-icon_rat",displayLatestChanges:!0},Mouse:{taxo:"NCBITaxon:10090",iconClass:"mapicon-icon_mouse",displayWarning:!0},Pig:{taxo:"NCBITaxon:9823",iconClass:"mapicon-icon_pig",displayWarning:!0},Cat:{taxo:"NCBITaxon:9685",iconClass:"mapicon-icon_cat",displayWarning:!0}}}},state:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},disableUI:{type:Boolean,default:!1}},data:function(){return{activeSpecies:void 0,speciesList:{},requireInitialisation:!0}},watch:{state:{handler:function(e){this.setState(e)},immediate:!0,deep:!0}}},nSr=e=>(a.pushScopeId("data-v-e3a812a8"),e=e(),a.popScopeId(),e),iSr={class:"multi-container",ref:"multiContainer"},oSr={key:0,style:{position:"absolute","z-index":"10"}},aSr=nSr(()=>a.createElementVNode("div",{class:"species-display-text"},"Species",-1)),sSr={class:"select-box-icon"};function lSr(e,t,r,n,i,o){const s=SN,l=yb,c=Tb,u=Ese;return a.openBlock(),a.createElementBlock("div",iSr,[r.disableUI?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",oSr,[aSr,a.createVNode(c,{content:"Select a species",placement:"right",trigger:"manual","popper-class":"flatmap-popper flatmap-teleport-popper right-popper",width:"max-content",visible:o.activateTooltipByIndex(0),teleported:!1,ref:"selectPopover"},{reference:a.withCtx(()=>[a.createVNode(l,{id:"flatmap-select",teleported:!1,modelValue:e.activeSpecies,"onUpdate:modelValue":t[0]||(t[0]=d=>e.activeSpecies=d),placeholder:"Select",class:"select-box","popper-class":"flatmap-dropdown",onChange:o.setSpecies},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.speciesList,(d,h)=>(a.openBlock(),a.createBlock(s,{key:h,label:h,value:h},{default:a.withCtx(()=>[a.createElementVNode("span",sSr,[a.createElementVNode("i",{class:a.normalizeClass(d.iconClass)},null,2)]),a.createTextVNode(" "+a.toDisplayString(h),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["visible"])])),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.speciesList,(d,h)=>a.withDirectives((a.openBlock(),a.createBlock(u,{key:h,entry:d.taxo,uuid:d.uuid,biologicalSex:d.biologicalSex,displayWarning:d.displayWarning,displayLatestChanges:d.displayLatestChanges,isLegacy:d.isLegacy,ref_for:!0,ref:h,enableOpenMapUI:r.enableOpenMapUI,openMapOptions:r.openMapOptions,disableUI:r.disableUI,onViewLatestMap:o.viewLatestMap,onResourceSelected:o.resourceSelected,onReady:o.FlatmapReady,onPanZoomCallback:o.panZoomCallback,onOpenMap:t[1]||(t[1]=p=>e.$emit("open-map",p)),onPathwaySelectionChanged:o.onSelectionsDataChanged,minZoom:r.minZoom,helpMode:e.activeSpecies==h&&r.helpMode,helpModeActiveItem:r.helpModeActiveItem,helpModeDialog:r.helpModeDialog,helpModeInitialIndex:-2,onHelpModeLastItem:o.onHelpModeLastItem,onShownTooltip:o.onTooltipShown,onShownMapTooltip:o.onMapTooltipShown,renderAtMounted:r.renderAtMounted,displayMinimap:r.displayMinimap,showStarInLegend:r.showStarInLegend,style:{height:"100%"},flatmapAPI:r.flatmapAPI,sparcAPI:r.sparcAPI},null,8,["entry","uuid","biologicalSex","displayWarning","displayLatestChanges","isLegacy","enableOpenMapUI","openMapOptions","disableUI","onViewLatestMap","onResourceSelected","onReady","onPanZoomCallback","onPathwaySelectionChanged","minZoom","helpMode","helpModeActiveItem","helpModeDialog","onHelpModeLastItem","onShownTooltip","onShownMapTooltip","renderAtMounted","displayMinimap","showStarInLegend","flatmapAPI","sparcAPI"])),[[a.vShow,e.activeSpecies==h]])),128))],512)}const cSr=id(rSr,[["render",lSr],["__scopeId","data-v-e3a812a8"]]),uSr={name:"HelpModeDialog",components:{Button:Yu},props:{multiflatmapRef:{type:Object,default:null},flatmapRef:{type:Object,default:null},scaffoldRef:{type:Object,default:null},lastItem:{type:Boolean,default:!1,required:!1}},mounted:function(){this.toggleHelpModeHighlight(!0),this.toggleTooltipHighlight()},unmounted:function(){this.toggleHelpModeHighlight(!1)},watch:{lastItem:function(e){e&&this.toggleTooltipHighlight()}},methods:{showNext:function(){this.$emit("show-next")},finishHelpMode:function(){this.$emit("finish-help-mode")},toggleTooltipPinHighlight:function(){const e=this.getCurrentFlatmap();this.resetHighlightedItems(),this.$nextTick(()=>{var t;const r=e.querySelectorAll(".maplibregl-marker"),n=e.querySelector(".flatmap-popup-popper"),i=((t=n==null?void 0:n.style)==null?void 0:t.transform)||"",o=this.extractMarkerPosition(i);r.forEach(s=>{const l=s.style.transform;this.extractMarkerPosition(l)===o&&s.classList.add("in-help-highlight")})})},toggleTooltipHighlight:function(){this.resetHighlightedItems(),this.$nextTick(()=>{document.querySelectorAll('.el-popper:not([style*="none"])').forEach(e=>{const t=e.classList.contains("flatmap-popper"),r=e.classList.contains("el-fade-in-linear-enter-active");(t||r)&&this.toggleHighlight(e)})})},toggleHighlight:function(e){const t=(e==null?void 0:e.id)||"",r=document.querySelector(`[aria-describedby="${t}"]`);r&&r.classList.add("in-help-highlight")},resetHighlightedItems:function(){document.querySelectorAll(".in-help-highlight").forEach(e=>{e.classList.remove("in-help-highlight")})},getCurrentScaffold:function(){var e;return((e=this.scaffoldRef)==null?void 0:e.$el)||null},getCurrentMultiflatmap:function(){var e;return((e=this.multiflatmapRef)==null?void 0:e.$el)||null},getCurrentFlatmap:function(){var e;const t=this.flatmapRef||((e=this.multiflatmapRef)==null?void 0:e.getCurrentFlatmap());return(t==null?void 0:t.$el)||null},toggleHelpModeHighlight:function(e){const t=this.getCurrentMultiflatmap(),r=this.getCurrentFlatmap(),n=this.getCurrentScaffold(),i=document.querySelectorAll(".in-help-highlight");t&&(e?t.classList.add("in-help"):t.classList.remove("in-help")),r&&(e?r.classList.add("in-help"):r.classList.remove("in-help")),n&&(e?n.classList.add("in-help"):n.classList.remove("in-help")),e||i.forEach(o=>{o.classList.remove("in-help-highlight")})},extractMarkerPosition:function(e){const t=/translate\((.*?)\)/g,r=e.match(t);return r?r[r.length-1].slice(10,-1):""}}},Ase=e=>(a.pushScopeId("data-v-8f3f8060"),e=e(),a.popScopeId(),e),dSr=Ase(()=>a.createElementVNode("h4",null,"Help Mode",-1)),hSr=Ase(()=>a.createElementVNode("p",null,[a.createTextVNode(" All caught up! "),a.createElementVNode("br"),a.createTextVNode(" Click 'Help' to restart. ")],-1)),pSr=Ase(()=>a.createElementVNode("p",null,'Click "Next" to see the next item.',-1));function fSr(e,t,r,n,i,o){const s=Yu;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["help-mode-dialog",{finish:r.lastItem}])},[dSr,r.lastItem?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[hSr,a.createElementVNode("div",null,[a.createVNode(s,{class:"button",onClick:o.finishHelpMode},{default:a.withCtx(()=>[a.createTextVNode(" Finish ")]),_:1},8,["onClick"])])],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[pSr,a.createElementVNode("div",null,[a.createVNode(s,{class:"button",onClick:o.showNext},{default:a.withCtx(()=>[a.createTextVNode(" Next ")]),_:1},8,["onClick"]),a.createVNode(s,{class:"button secondary",onClick:o.finishHelpMode},{default:a.withCtx(()=>[a.createTextVNode(" Exit Help Mode ")]),_:1},8,["onClick"])])],64))],2)}const hNe=id(uSr,[["render",fSr],["__scopeId","data-v-8f3f8060"]]),uE=[{id:"ilxtr:neuron-type-keast-13",centrelines:["n_71"]},{id:"ilxtr:neuron-type-keast-2",centrelines:["bladder_n"]},{id:"ilxtr:neuron-type-keast-3",centrelines:["bladder_n","hypogastric_n"]},{id:"ilxtr:neuron-type-keast-15",centrelines:["n_73"]},{id:"ilxtr:neuron-type-keast-1",centrelines:["bladder_n"]},{id:"ilxtr:neuron-type-keast-7",centrelines:["L1_ventral_root_ramus","L1_spinal_n-1","lumbar_splanchnic_n","L2_spinal_n","L2_ventral_root_ramus"]},{id:"ilxtr:neuron-type-keast-9",centrelines:["L6_spinal_n-1","L6_ventral_root","pudendal_n","L5_spinal_n","L5_ventral_root"]},{id:"ilxtr:neuron-type-keast-10",centrelines:["S1_dorsal_root","S1_spinal_n-2","pelvic_splanchnic_n","L6_spinal_n-2","L6_dorsal_root","bladder_n"]},{id:"ilxtr:neuron-type-keast-11",centrelines:["lumbar_splanchnic_n","L2_spinal_n","L1_spinal_n-1","hypogastric_n","bladder_n","L1_dorsal_root","L2_dorsal_root"]},{id:"ilxtr:neuron-type-keast-12",centrelines:["L6_spinal_n-1","L6_dorsal_root","pudendal_n","S1_spinal_n-1","S1_dorsal_root"]},{id:"ilxtr:neuron-type-keast-8",centrelines:["L1_ventral_root_paravertebral_ganglion","L1-L2_interganglionic_segment","sympathetic_trunk_T13-L1","L2_ventral_root_paravertebral_ganglion","sympathetic_trunk_L2-L3","sympathetic_trunk_L4-L5","sympathetic_trunk_L3-L4","sympathetic_trunk_L5-L6","sympathetic_trunk_T12-T13"]},{id:"ilxtr:neuron-type-keast-20",centrelines:["T1_T2_cns","C8_T1_cns","T2_T3_cns","T10_T11_cns","T9_T10_cns","T11_T12_cns","T8_T9_cns","C7_C8_cns","C6_C7_cns","C4_C5_cns","C3_C4_cns","C5_C6_cns","medulla_C1_cns","pons_medulla_cns","C1_C2_cns","T5_T6_cns","T4_T5_cns","T6_T7_cns","L3_L4_cns","L2_L3_cns","L4_L5_cns","L5_L6_cns","T13_L1_cns","T12_T13_cns","L1_L2_cns","T3_T4_cns","n_69","C2_C3_cns","T7_T8_cns"]},{id:"ilxtr:neuron-type-keast-16",centrelines:["n_74"]},{id:"ilxtr:neuron-type-keast-4",centrelines:["sympathetic_trunk_L6-S1","L6_gray_ramus-spinal_n","sympathetic_trunk_L5-L6","S1_gray_ramus-spinal_n","S1_spinal_n-2","pelvic_splanchnic_n","L6_spinal_n-2","L1-L2_interganglionic_segment","sympathetic_trunk_T13-L1","sympathetic_trunk_L2-L3","bladder_n","sympathetic_trunk_L4-L5","sympathetic_trunk_L3-L4","sympathetic_trunk_T12-T13"]},{id:"ilxtr:neuron-type-keast-17",centrelines:["n_75"]},{id:"ilxtr:neuron-type-keast-5",centrelines:["S1_ventral_root","S1_spinal_n-2","pelvic_splanchnic_n","L6_spinal_n-2","L6_ventral_root"]},{id:"ilxtr:neuron-type-keast-18",centrelines:["n_70"]},{id:"ilxtr:neuron-type-keast-6",centrelines:["L1_ventral_root_ramus","L1_spinal_n-1","lumbar_splanchnic_n","L2_spinal_n","hypogastric_n","L2_ventral_root_ramus"]},{id:"ilxtr:neuron-type-keast-19",centrelines:["n_69"]},{id:"ilxtr:neuron-type-keast-14",centrelines:["n_72"]}];function ZQ(e,t,r,n,i){let o={};if(o.dataset=r,o.scaffold=n,o.simulations=i,t?o.title=t:o.title=e,o.description="",o.actions=[],e)switch(e){case"ICN":o.title="RNA",o.description="The distribution of neurons in the intrinsic cardiac nervous system (ICN) were mapped and visualized in a 3D reconstruction of a male rat heart.",o.actions={search:{title:"Explore data",resource:"icn",type:"Search",label:"ICN",filter:{facet:"genotype",term:"heart"}},plot:{title:"View plot",label:"ICN",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/ISAN/csv-data/use-case-4/RNA_Seq.csv",type:"Plot",plotType:"heatmap",datasetTitle:"Molecular Phenotype Distribution of Single Rat Intracardiac Neurons",datasetDescription:"Images collected from serial cryostat sectioning of a cryopreserved heart was used to reconstruct the 3D context. Transcriptional profiles taken from isolated single neurons and mapped back into the previously generated 3D context.",datasetUrl:"https://discover.pennsieve.io/datasets/29",datasetImage:"https://assets.discover.pennsieve.io/dataset-assets/29/6/revisions/1/banner.jpg"}};break}else o.actions=[];return o}function mSr(e,t,r,n,i){if(e||t){let o={};switch(e){case"UBERON:0001157":o.title="Colon",o.description="",o.actions={search:{title:"Explore data",label:"Colon",resource:"https://sparc.science/data?type=dataset&q=colon",type:"Search",filter:{facet:"genotype",term:"colon"}},scaffold:{title:"View 3D scaffold",label:"Colon",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Colon/human/humanColon_metadata.json",type:"Scaffold"}};break;case"UBERON:0000948":case"UBERON:0002080":o.title="Heart",o.description="",o.actions={search:{title:"Explore data",label:"Heart",resource:"https://sparc.science/data?type=dataset&q=colon",type:"Search",filter:{facet:"genotype",term:"heart"}},scaffold:{title:"View 3D scaffold",label:"Heart",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Heart/human/humanHeart_metadata.json",type:"Scaffold"}};break;case"UBERON:0002048":o.title="Lung",o.description="",o.actions={search:{title:"Explore data",label:"Lung",resource:"https://sparc.science/data?type=dataset&q=lung",type:"Search"},scaffold:{title:"View 3D scaffold",label:"Lung",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Lungs/human/humanLeftLung_metadata.json",type:"Scaffold"}};break;default:o=ZQ(e,t,r,n,i);break}return o}}function gSr(e,t,r,n,i){if(e||t){let o={};switch(e){case"UBERON:0000948":case"UBERON:0002080":i?o=ZQ(e,t,r,n,i):(o.title="Heart",o.description="",o.actions={search:{title:"Explore data",label:"Heart",resource:"https://sparc.science/data?type=dataset&q=heart",type:"Search",filter:{facet:"genotype",term:"heart"}},scaffold:{title:"View 3D scaffold",label:"Heart",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Heart/rat/ratHeart_metadata.json",type:"Scaffold"},simulation:{title:"Explore simulations",label:"Heart",resource:"https://sparc.science/data?type=simulation&q=heart",type:"URL"}});break;case"UBERON:0001156":o.title="Colon",o.description="",o.actions={search:{title:"Explore data",label:"Colon",resource:"https://sparc.science/data?type=dataset&q=colon",type:"Search"}};break;case"UBERON:0002108":o.title="Small intestines",o.description="",o.actions={search:{title:"Explore data",label:"Colon",resource:"https://sparc.science/data?type=dataset&q=small+intestines",type:"Search"}};break;case"UBERON:0001255":o.title="Urinary bladder",o.description="",o.actions={search:{title:"Explore data",label:"Urinary Bladder",resource:"https://sparc.science/data?type=dataset&q=bladder",type:"Search"},scaffold:{title:"View 3D scaffold",label:"Bladder",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Bladder/rat/ratBladder_metadata.json",type:"Scaffold"}};break;case"UBERON:0002048":o.title="Lung",o.description="",o.actions={search:{title:"Explore data",label:"Lung",resource:"https://sparc.science/data?type=dataset&q=lung",type:"Search"}};break;case"ICN":o.title="RNA",o.description="The distribution of neurons in the intrinsic cardiac nervous system (ICN) were mapped and visualized in a 3D reconstruction of a male rat heart.",o.actions={search:{title:"Explore data",resource:"icn",type:"Search"},plot:{title:"View plot",label:"ICN",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/ISAN/csv-data/use-case-4/RNA_Seq.csv",type:"Plot",plotType:"heatmap",datasetTitle:"Molecular Phenotype Distribution of Single Rat Intracardiac Neurons",datasetDescription:"Images collected from serial cryostat sectioning of a cryopreserved heart was used to reconstruct the 3D context. Transcriptional profiles taken from isolated single neurons and mapped back into the previously generated 3D context.",datasetUrl:"https://discover.pennsieve.io/datasets/29",datasetImage:"https://assets.discover.pennsieve.io/dataset-assets/29/6/revisions/1/banner.jpg"}};break;case"UBERON:0000945":case"UBERON:0001160":case"UBERON:0001161":o.title="Stomach",o.description="",o.actions={search:{title:"Explore data",label:"Stomach",resource:"https://sparc.science/data?type=dataset&q=stomach",type:"Search"},scaffold:{title:"View 3D scaffold",label:"Stomach",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Stomach/rat/ratStomach_metadata.json",type:"Scaffold"}};break;case"UBERON:0001759":t?o.title=t:o.title="Vagus nerve",o.actions={search:{title:"Explore data",label:"Vagus nerve",resource:"https://sparc.science/data?type=dataset&q=vagus+nerve",type:"Search"},simulation:{title:"Explore simulations",label:"Vagus nerve",resource:"https://sparc.science/data?type=simulation&q=vagus%20nerve",type:"simulation"}};break;default:o=ZQ(e,t,r,n,i);break}return o}}function ySr(e,t,r,n,i){if(e||t){let o={};switch(e){case"UBERON:0001156":o.title="Colon",o.description="",o.actions={search:{title:"Explore data",label:"Colon",resource:"https://sparc.science/data?type=dataset&q=colon",type:"Search"},scaffold:{title:"View 3D scaffold",label:"Colon",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Colon/mouse/mouseColon_metadata.json",type:"Scaffold"}};break;case"UBERON:0002048":o.title="Lung",o.description="",o.actions={search:{title:"Explore data",label:"Lung",resource:"https://sparc.science/data?type=dataset&q=lung",type:"Search"},scaffold:{title:"View 3D scaffold",label:"Lung",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Lungs/mouse/mouseLeftLung_metadata.json",type:"Scaffold"}};break;case"UBERON:0002108":o.title="Small intestines",o.description="",o.actions={search:{title:"Explore data",label:"Colon",resource:"https://sparc.science/data?type=dataset&q=small+intestines",type:"Search"}};break;default:o=ZQ(e,t,r,n,i);break}return o}}function TSr(e,t,r,n,i){if(e||t){let o={};switch(e){case"UBERON:0008972":o.title="Colon",o.description="",o.actions={search:{title:"Explore data",label:"Colon",resource:"https://sparc.science/data?type=dataset&q=colon",type:"Search"},scaffold:{title:"View 3D scaffold",label:"Colon",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Colon/pig/pigColon_metadata.json",type:"Scaffold"}};break;case"UBERON:0002108":o.title="Small intestines",o.description="",o.actions={search:{title:"Explore data",label:"Colon",resource:"https://sparc.science/data?type=dataset&q=small+intestines",type:"Search"}};break;case"UBERON:0000948":case"UBERON:0002080":o.title="Heart",o.description="",o.actions={search:{title:"Explore data",label:"Heart",resource:"https://sparc.science/data?type=dataset&q=colon",type:"Search",filter:{facet:"genotype",term:"heart"}},scaffold:{title:"View 3D scaffold",label:"Heart",resource:"https://mapcore-bucket1.s3-us-west-2.amazonaws.com/Generic+Scaffold/Heart/pig/pigHeart_metadata.json",type:"Scaffold"}};break;default:o=ZQ(e,t,r,n,i);break}return o}}function vSr(e,t,r,n,i,o){switch(t){case"NCBITaxon:9606":return mSr(e,r,n,i,o);case"NCBITaxon:9823":return TSr(e,r,n,i,o);case"NCBITaxon:10090":return ySr(e,r,n,i,o);case"NCBITaxon:10114":return gSr(e,r,n,i,o);default:return ZQ(e,t,r,n,i)}}function bSr(){return[{id:"UBERON:0000948",name:"Heart",type:"simulation"},{id:"UBERON:0001156",name:"Colon",type:"simulation"},{id:"UBERON:0001255",name:"Bladder",type:"simulation"},{id:"UBERON:0000945",name:"Stomach",type:"simulation"},{id:"UBERON:0001759",name:"Vagus nerve",type:"simulation"},{id:"UBERON:0002108",name:"Small intestines",type:"simulation"},{id:"UBERON:0002107",name:"Liver",type:"simulation"}]}function QSr(){return bSr()}function pNe(e){if(e)for(let t=0;t<uE.length;t++){if(uE[t].id==e)return uE[t].centrelines;if(uE[t].centrelines.find(n=>n===e))return[uE[t].id]}return[]}function xSr(e){if(e){const t=e.toLowerCase();if(t.includes("heart"))return{id:"UBERON:0000948",name:"Heart"};if(t.includes("liver"))return{id:"UBERON:0002107",name:"Liver"};if(t.includes("stomach"))return{id:"UBERON:0000945",name:"Stomach"};if(t.includes("colon"))return{id:"UBERON:0001156",name:"Colon"};if(t.includes("bladder"))return{id:"UBERON:0001255",name:"Bladder"}}}function _Sr(e,t){if(e&&e.resource){let r=e.resource;Array.isArray(r)&&r[0]&&(r=r[0]);let n,i,o,s,l,c=r.taxonomy;if(r.data&&r.data.id?(n=r.data.id,i=r.data.id):r.feature&&(n=r.feature.models,i=r.feature.label,o=r.feature.dataset,s=r.feature.scaffold,l=r.feature.simulations),n||i){let u=vSr(n,c,i,o,s,l);if(u&&u.actions)return u.actions[t]}}}let Ose=7,u4=5;const wSr=[{id:"UBERON:0000948",name:"heart",showAtZoom:1},{id:"UBERON:0001759",name:"vagus nerve",showAtZoom:1},{id:"UBERON:0001155",name:"colon",showAtZoom:1},{id:"UBERON:0000945",name:"stomach",showAtZoom:1},{id:"UBERON:0001013",name:"adipose tissue",showAtZoom:1},{id:"UBERON:0001255",name:"urinary bladder",showAtZoom:1},{id:"UBERON:0001348",name:"brown adipose tissue",showAtZoom:6},{id:"UBERON:0002008",name:"cardiac nerve plexus",showAtZoom:1},{id:"UBERON:0002240",name:"spinal cord",showAtZoom:1},{id:"UBERON:0002005",name:"Enteric Nervous System",showAtZoom:4},{id:"UBERON:0013702",name:"body proper",showAtZoom:1},{id:"UBERON:0002298",name:"brainstem",showAtZoom:1},{id:"UBERON:0002439",name:"myenteric nerve plexus",showAtZoom:6},{id:"UBERON:0000010",name:"peripheral nervous system",showAtZoom:6},{id:"UBERON:0002048",name:"lung",showAtZoom:1},{id:"UBERON:0002410",name:"autonomic nervous system",showAtZoom:6},{id:"UBERON:0002441",name:"cervicothoracic ganglion",showAtZoom:6},{id:"UBERON:0005363",name:"inferior vagus X ganglion",showAtZoom:6},{id:"UBERON:0001264",name:"pancreas",showAtZoom:1},{id:"UBERON:0001884",name:"phrenic nerve",showAtZoom:6},{id:"UBERON:0002059",name:"submandibular ganglion",showAtZoom:7},{id:"UBERON:0001347",name:"white adipose tissue",showAtZoom:6},{id:"UBERON:0001556",name:"lower urinary tract",showAtZoom:1},{id:"UBERON:0002262",name:"celiac ganglion",showAtZoom:5},{id:"UBERON:0000955",name:"Brain",showAtZoom:1},{id:"UBERON:0000160",name:"intestine",showAtZoom:1},{id:"UBERON:0001322",name:"sciatic nerve",showAtZoom:1},{id:"UBERON:0001649",name:"glossopharyngeal nerve",showAtZoom:6},{id:"UBERON:0002063",name:"sinus venosus",showAtZoom:6},{id:"UBERON:0002107",name:"liver",showAtZoom:1},{id:"UBERON:0002113",name:"kidney",showAtZoom:1},{id:"UBERON:0002481",name:"bone tissue",showAtZoom:1},{id:"UBERON:0004907",name:"lower digestive tract",showAtZoom:4},{id:"UBERON:0000044",name:"Dorsal root ganglion",showAtZoom:5},{id:"UBERON:0001736",name:"Submandibular gland",showAtZoom:Ose,keyword:!0},{id:"UBERON:0001103",name:"Diaphragm",showAtZoom:u4,keyword:!0},{id:"UBERON:0001160",name:"Fundus of stomach",showAtZoom:u4,keyword:!0},{id:"UBERON:0000955",name:"Brain",showAtZoom:u4,keyword:!0},{id:"UBERON:0003708",name:"Carotid sinus",showAtZoom:Ose,keyword:!0},{id:"UBERON:0002079",name:"Left cardiac atrium",showAtZoom:u4,keyword:!0},{id:"ILX:0485722",name:"Nodose ganglion",showAtZoom:Ose,keyword:!0},{id:"UBERON:0002078",name:"Right cardiac atrium",showAtZoom:u4,keyword:!0},{id:"UBERON:0002084",name:"Heart left ventricle",showAtZoom:u4,keyword:!0},{id:"UBERON:0002080",name:"Heart right ventricle",showAtZoom:u4,keyword:!0},{id:"UBERON:0001508",name:"Arch of Aorta",showAtZoom:u4,keyword:!0},{id:"UBERON:0001738",name:"Thyroid cartilage",showAtZoom:u4,keyword:!0},{id:"UBERON:0000388",name:"Epiglottis",showAtZoom:u4,keyword:!0}];function LSr(e){return e[0].toUpperCase()+e.substring(1)}const qQ={emits:["flatmap-provenance-ready","resource-selected","species-changed"],props:{entry:Object,visible:{type:Boolean,default:!0},mouseHovered:{type:Boolean,default:!1}},computed:{...fc.mapStores(Qv,sm),syncMode(){return this.splitFlowStore.syncMode},useHelpModeDialog(){return this.settingsStore.useHelpModeDialog}},mounted:function(){Zo.on("startHelp",()=>{this.startHelp()}),this.multiflatmapRef=this.$refs.multiflatmap,this.flatmapRef=this.$refs.flatmap,this.scaffoldRef=this.$refs.scaffold},methods:{toggleSyncMode:function(){},getState:function(){},openMap:function(e){e==="SYNC"?(this.toggleSyncMode(),this.trackOpenMap("toggle_map_sync_mode")):(Zo.emit("OpenNewMap",e),this.trackOpenMap(`open_new_${e}_map`))},trackOpenMap:function(e){k1.sendEvent({event:"interaction_event",event_name:"portal_maps_open_map",category:e,location:"open_new_map"})},updateWithViewUrl:function(){},search:function(){return!1},searchSuggestions:function(){},resourceSelected:function(e,t,r){var l,c,u;if(this.resourceHasAction(t)){Zo.emit("PopoverActionClick",t);return}let n,i="none",o=!1;const s={paneIndex:this.entry.id,type:e,resource:t,internalName:void 0,eventType:void 0};if(e=="MultiFlatmap"||e=="Flatmap")if(s.internalName=this.idNamePair[t.feature.models],t.eventType=="click")if(s.eventType="selected",t.feature.type=="marker"){let d=this.idNamePair[t.feature.models],h=wSr.filter(p=>p.id===t.feature.models);this.settingsStore.isFeaturedMarkerIdentifier(t.feature.id)?n={type:"Search",term:this.settingsStore.featuredMarkerDoi(t.feature.id),featuredDataset:!0}:h.filter(p=>p.keyword).length>0?n={type:"Search",term:"http://purl.obolibrary.org/obo/"+t.feature.models.replace(":","_")}:n={type:"Facet",facet:d,facetPropPath:"anatomy.organ.category.name",term:"Anatomical structure"},o=!0,e=="MultiFlatmap"&&this.$refs.multiflatmap.getCurrentFlatmap().mapImp.clearSearchResults()}else t.feature.type=="feature"&&(this.syncMode?o=!0:i="scaffold");else t.eventType=="mouseenter"&&(s.eventType="highlighted",o=!0);else e=="Scaffold"&&(t&&t[0]&&((((l=t[0].data)==null?void 0:l.id)===void 0||((c=t[0].data)==null?void 0:c.id)==="")&&(t[0].data.id=(u=t[0].data)==null?void 0:u.group),s.internalName=t[0].data.id,t[0].data.lastActionOnMarker===!0&&(n={type:"Facet",facet:LSr(t[0].data.id),facetPropPath:"anatomy.organ.category.name",term:"Anatomical structure"})),s.eventType="selected",o=!0,i="search");n===void 0&&r&&(n=_Sr(s,i)),n&&Zo.emit("PopoverActionClick",n),o&&this.$emit("resource-selected",s)},resourceHasAction:function(e){return e.type==="URL"||e.type==="Search"||e.type==="Neuron Search"||e.type=="Facet"||e.type=="Facets"},isVisible:function(){return this.splitFlowStore.getPaneNameById(this.entry.id)!==void 0},displayTooltip:function(){},getNameAndIdFromSyncData:async function(e){let t=e.internalName;t===void 0&&e.resource&&(t=e.resource.label);let r;if(e.resource&&e.resource.resource&&(r=e.resource.resource[0]),this.entry.type==="Scaffold"){if(this.$refs.scaffold.findObjectsWithGroupName(t).length===0){if(e.resource&&e.resource.feature){const o=pNe(e.resource.feature.models);if(o.length>0)return o}let i=xSr(t);if(i)return i;if(r&&e.eventType==="selected")return fetch(`${this.apiLocation}get-related-terms/${r}`).then(o=>o.json()).then(o=>{if(o.uberon.array.length>0)return t=o.uberon.array[0].name.charAt(0).toUpperCase()+o.uberon.array[0].name.slice(1),r=o.uberon.array[0].id.toUpperCase(),{id:r,name:t}})}}else if(this.entry.type==="MultiFlatmap")if(t==="Bladder")t="Urinary Bladder";else{const n=pNe(t);n.length>0&&(t=n[0])}return{id:r,name:t}},getDatasetAnatomyInfo:function(e){fetch(`${this.apiLocation}dataset_info/anatomy?identifier=${e}`).then(t=>t.json()).then(t=>{const r=t.result[0];let n;try{n=r.anatomy.organ[0].curie}catch{n=void 0}let i;try{i=r.item.curie}catch{i=void 0}let o;try{let s=0,l=!1;for(;!l&&s<r.organisms.subject.length;){const c=r.organisms.subject[s];c.species&&(o=c.species.name,l=!0),s+=1}}catch{o=void 0}this.settingsStore.updateFeaturedMarker({identifier:e,marker:n,doi:i,species:o})})},oldFeaturedDatasetApiHasInfo:async function(){let t=await(await fetch(`${this.apiLocation}get_featured_datasets_identifiers`)).json();return!t.identifiers||t.identifiers.length==0?!1:t.identifiers},newFeaturedDatasetApiHasInfo:async function(){let t=await(await fetch(`${this.apiLocation}get_featured_dataset`)).json();return!t.datasets||t.datasets.length==0?!1:t.datasets.map(r=>r.id)},getFeaturedDatasets:async function(){let e=[],t=await this.oldFeaturedDatasetApiHasInfo();if(t)e=t;else{let r=await this.newFeaturedDatasetApiHasInfo();r&&(e=r)}this.settingsStore.updateFeatured(e),e.forEach(r=>{this.getDatasetAnatomyInfo(r)})},zoomToFeatures:function(){},handleSyncMouseEvent:async function(e){let t=await this.getNameAndIdFromSyncData(e);e.eventType==="highlighted"?this.highlightFeatures(t):e.eventType==="selected"&&this.displayTooltip(t)},handleSyncPanZoomEvent:function(){},highlightFeatures:function(){},receiveSynchronisedEvent:async function(e){if(e.paneIndex!==this.entry.id)e.eventType=="panZoom"||this.handleSyncMouseEvent(e);else if(e.eventType=="selected"){let t=await this.getNameAndIdFromSyncData(e);this.zoomToFeatures(t,!1)}},requestSynchronisedEvent:function(){},getAvailableTerms:function(){let e=QSr();for(let t=0;t<e.length;t++)this.idNamePair[e[t].id]=e[t].name;if(this.apiLocation){this._controller&&this._controller.abort(),this._controller=new AbortController;let t=this._controller.signal;fetch(`${this.apiLocation}get-organ-curies`,{signal:t}).then(r=>r.json()).then(r=>{this._controller=void 0,r.uberon.array.forEach(n=>{this.idNamePair[n.id.toUpperCase()]=n.name.charAt(0).toUpperCase()+n.name.slice(1)})})}},flatmapMarkerUpdate(){},onResize:function(){},startHelp:function(){this.isInHelp===!1&&(this.helpMode=!0,window.addEventListener("mousedown",this.checkEndHelpMouseDown),this.isInHelp=!0)},endHelp:function(){window.removeEventListener("mousedown",this.checkEndHelpMouseDown),this.helpMode=!1,setTimeout(()=>{this.isInHelp=!1},200)},onHelpModeShowNext:function(){this.helpModeActiveItem+=1},onHelpModeLastItem:function(e){e&&(this.helpModeLastItem=!0)},onFinishHelpMode:function(){this.helpMode=!1,this.helpModeActiveItem=0,this.helpModeLastItem=!1},onTooltipShown:function(){this.$refs.multiflatmap&&this.$refs.multiflatmapHelp&&this.$refs.multiflatmapHelp.toggleTooltipHighlight(),this.$refs.flatmap&&this.$refs.flatmapHelp&&this.$refs.flatmapHelp.toggleTooltipHighlight(),this.$refs.scaffold&&this.$refs.scaffoldHelp&&this.$refs.scaffoldHelp.toggleTooltipHighlight()},onMapTooltipShown:function(){this.$refs.multiflatmap&&this.$refs.multiflatmapHelp&&this.$refs.multiflatmapHelp.toggleTooltipPinHighlight(),this.$refs.flatmap&&this.$refs.flatmapHelp&&this.$refs.flatmapHelp.toggleTooltipPinHighlight(),this.$refs.scaffold&&this.$refs.scaffoldHelp&&this.$refs.scaffoldHelp.toggleTooltipPinHighlight()},checkEndHelpMouseDown:function(e){e.target.closest(".help-mode-dialog")||this.endHelp()}},data:function(){return{apiLocation:void 0,activeSpecies:"Rat",scaffoldCamera:void 0,mainStyle:{height:this.entry.datasetTitle?"calc(100% - 30px)":"100%",width:"100%",bottom:"0px"},helpMode:!1,helpModeActiveItem:0,helpModeLastItem:!1,multiflatmapRef:null,flatmapRef:null,scaffoldRef:null,idNamePair:{},scaffoldLoaded:!1,isInHelp:!1}},created:function(){this.flatmapAPI=void 0,this.apiLocation=void 0,this.settingsStore.flatmapAPI&&(this.flatmapAPI=this.settingsStore.flatmapAPI),this.settingsStore.sparcApi&&(this.apiLocation=this.settingsStore.sparcApi)},watch:{helpMode:function(e){e||(this.helpModeActiveItem=0)}}},SSr=function(e){return e?[...new Set(e.map(t=>JSON.stringify(t)))].map(t=>JSON.parse(t)):[]},fNe={computed:{...fc.mapStores(Qv)},methods:{flatmapPanZoomCallback:function(e){if(this.mouseHovered){const t={paneIndex:this.entry.id,eventType:"panZoom",payload:e,type:this.entry.type};this.$emit("resource-selected",t)}},flatmapMarkerUpdate(e){if(!this.flatmapReady)return;let t=e;if(t||(t=this.getFlatmapImp()),t){let r=this.settingsStore.markers;r=SSr(r);let n=this.removeMarkersNotOnFlatmap(t,r);t.clearMarkers(),t.clearDatasetMarkers(),t.addDatasetMarkers(n);let i=this.settingsStore.hoveredMarkers,o=this.settingsStore.previousHoveredMarkers;i.forEach(s=>{t.addMarker(s,{className:"standard-marker hovered",cluster:!1})}),o!==null&&o.length>=0&&o.forEach(s=>{t.addMarker(s,{className:"standard-marker",cluster:!0})}),this.entry.type==="MultiFlatmap"&&this.restoreFeaturedMarkers(t)}},removeMarkersNotOnFlatmap(e,t){let r=e.anatomicalIdentifiers,n=[];for(let i=0;i<t.length;i++){let o=t[i],s={id:o.id,terms:[]};for(let l=0;l<o.terms.length;l++)r.includes(o.terms[l])&&s.terms.push(o.terms[l]);n.push(s)}return n},flatmapReadyForMarkerUpdates:function(e){if(e){e.enablePanZoomEvents(!0),this.flatmapReady=!0;const t=e.mapImp;this.flatmapMarkerUpdate(t)}}}},MSr={name:"Flatmap",mixins:[qQ,fNe],components:{FlatmapVuer:Ese,HelpModeDialog:hNe},methods:{getState:function(){return this.$refs.flatmap.getState()},search:function(e){return this.$refs.flatmap.searchAndShowResult(e)},getFlatmapImp(){var e;return(e=this.$refs.flatmap)==null?void 0:e.mapImp},flatmaprResourceSelected:function(e,t){if(this.resourceSelected(e,t,this.$refs.flatmap.viewingMode==="Exploration"),t.eventType==="click"&&t.feature.type==="feature"){const r={label:t.label||"",id:t.feature.id||"",featureId:t.feature.featureId||"",taxonomy:t.taxonomy||"",resources:t.resource.join(", ")},n=t7e(r);k1.sendEvent({event:"interaction_event",event_name:"portal_maps_connectivity",category:n,location:e+" "+this.$refs.flatmap.viewingMode})}},flatmapReadyCall:function(e){let t={id:this.entry.id,prov:this.getFlatmapImp().provenance};Zo.emit("mapImpProv",t),this.$emit("flatmap-provenance-ready",t),this.getAvailableTerms(),this.entry.resource==="FunctionalConnectivity"&&this.flatmapReadyForMarkerUpdates(e)},onPathwaySelectionChanged:function(e){const{label:t,property:r,checked:n,selectionsTitle:i}=e;k1.sendEvent({event:"interaction_event",event_name:"portal_maps_pathway_change",category:t+" ["+r+"] "+n,location:i})},highlightFeatures:function(e){let t=e.name;const r=this.$refs.flatmap.mapImp;if(t){const n=r.search(t);n.featureIds[0]&&r.highlightFeatures([r.modelForFeature(n.featureIds[0])])}},searchSuggestions:function(e,t){e&&this.$refs.flatmap.mapImp&&this.$refs.flatmap.mapImp.search(e).__featureIds.forEach(n=>{const i=this.$refs.flatmap.mapImp.annotation(n);i&&i.label&&t.push(i.label)})},zoomToFeatures:function(e,t){let r=e.name;const n=this.$refs.flatmap.mapImp;if(r){const i=n.search(r);if(i.featureIds.length){let o=n.modelForFeature(i.featureIds[0]);o?(t&&n.selectFeatures(o),n.zoomToFeatures(o)):n.clearSearchResults()}}else n.clearSearchResults()}},computed:{facetSpecies(){return this.settingsStore.facets.species}},mounted:function(){this.getAvailableTerms(),Zo.on("markerUpdate",()=>{this.flatmapMarkerUpdate(void 0)})}},kSr={class:"viewer-container"};function CSr(e,t,r,n,i,o){const s=a.resolveComponent("FlatmapVuer"),l=a.resolveComponent("HelpModeDialog");return a.openBlock(),a.createElementBlock("div",kSr,[a.createVNode(s,{state:e.entry.state,entry:e.entry.resource,onResourceSelected:t[0]||(t[0]=c=>o.flatmaprResourceSelected(e.entry.type,c)),onPanZoomCallback:e.flatmapPanZoomCallback,name:e.entry.resource,style:{height:"100%",width:"100%"},minZoom:e.entry.minZoom,helpMode:e.helpMode,helpModeActiveItem:e.helpModeActiveItem,helpModeInitialIndex:-1,helpModeDialog:e.useHelpModeDialog,onHelpModeLastItem:e.onHelpModeLastItem,onShownTooltip:e.onTooltipShown,onShownMapTooltip:e.onMapTooltipShown,pathControls:!0,ref:"flatmap",onReady:o.flatmapReadyCall,displayMinimap:!1,displayWarning:!0,enableOpenMapUI:!0,flatmapAPI:e.flatmapAPI,sparcAPI:e.apiLocation,onOpenMap:e.openMap,onPathwaySelectionChanged:o.onPathwaySelectionChanged},null,8,["state","entry","onPanZoomCallback","name","minZoom","helpMode","helpModeActiveItem","helpModeDialog","onHelpModeLastItem","onShownTooltip","onShownMapTooltip","onReady","flatmapAPI","sparcAPI","onOpenMap","onPathwaySelectionChanged"]),e.helpMode&&e.useHelpModeDialog?(a.openBlock(),a.createBlock(l,{key:0,ref:"flatmapHelp",flatmapRef:e.flatmapRef,lastItem:e.helpModeLastItem,onShowNext:e.onHelpModeShowNext,onFinishHelpMode:e.onFinishHelpMode},null,8,["flatmapRef","lastItem","onShowNext","onFinishHelpMode"])):a.createCommentVNode("",!0)])}const ESr=Object.freeze(Object.defineProperty({__proto__:null,default:Dc(MSr,[["render",CSr],["__scopeId","data-v-22cc3124"]])},Symbol.toStringTag,{value:"Module"})),ASr={name:"Iframe",mixins:[qQ]},OSr={class:"map-iframe-container"},ISr=["src"];function PSr(e,t,r,n,i,o){return a.openBlock(),a.createElementBlock("div",OSr,[a.createElementVNode("iframe",{class:"my-iframe",src:e.entry.resource.share_link},null,8,ISr)])}const VSr=Object.freeze(Object.defineProperty({__proto__:null,default:Dc(ASr,[["render",PSr],["__scopeId","data-v-60f8bfe1"]])},Symbol.toStringTag,{value:"Module"})),HSr='<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><path d="M11.0748 3.25583C11.4141 2.42845 12.5859 2.42845 12.9252 3.25583L14.6493 7.45955C14.793 7.80979 15.1221 8.04889 15.4995 8.07727L20.0303 8.41798C20.922 8.48504 21.2841 9.59942 20.6021 10.1778L17.1369 13.1166C16.8482 13.3614 16.7225 13.7483 16.8122 14.1161L17.8882 18.5304C18.1 19.3992 17.152 20.0879 16.3912 19.618L12.5255 17.2305C12.2034 17.0316 11.7966 17.0316 11.4745 17.2305L7.60881 19.618C6.84796 20.0879 5.90001 19.3992 6.1118 18.5304L7.18785 14.1161C7.2775 13.7483 7.1518 13.3614 6.86309 13.1166L3.3979 10.1778C2.71588 9.59942 3.07796 8.48504 3.96971 8.41798L8.50046 8.07727C8.87794 8.04889 9.20704 7.80979 9.35068 7.45955L11.0748 3.25583Z" stroke="#000000" stroke-width="2"/></svg>',mNe=e=>{const t=[{display:"Open AC Map",key:"AC"},{display:"Open FC Map",key:"FC"},{display:"Open 3D Human Map",key:"3D"}];switch(e){case"Human Male":case"Human Female":case"Rat":t.push({display:"Open Sync Map",key:"SYNC"});break}return t},NSr={name:"MultiFlatmap",mixins:[qQ,fNe],components:{MultiFlatmapVuer:cSr,HelpModeDialog:hNe},data:function(){return{zoomLevel:6,flatmapReady:!1,availableSpecies:e7e(),scaffoldResource:{},showStarInLegend:!1,openMapOptions:mNe("Rat")}},methods:{toggleSyncMode:async function(){if(this.syncMode==!1){let e;this.activeSpecies==="Rat"?e={contextCard:void 0,discoverId:void 0,label:"Rat Body",resource:"https://mapcore-bucket1.s3.us-west-2.amazonaws.com/WholeBody/31-May-2021/ratBody/ratBody_syncmap_metadata.json",title:"View 3D scaffold",layout:"2horpanel",type:"SyncMap"}:(this.activeSpecies==="Human Male"||this.activeSpecies==="Human Female")&&("human"in this.scaffoldResource||(this.scaffoldResource.human=await oY(this.apiLocation,"human")),e={contextCardUrl:this.scaffoldResource.human.datasetInfo.contextCardUrl,discoverId:this.scaffoldResource.human.datasetInfo.discoverId,s3uri:this.scaffoldResource.human.datasetInfo.s3uri,version:this.scaffoldResource.human.datasetInfo.version,label:"Human Body",resource:this.scaffoldResource.human.url,title:"View 3D scaffold",layout:"2vertpanel",type:"SyncMap",isBodyScaffold:!0}),e&&Zo.emit("SyncModeRequest",{flag:!0,action:e})}else Zo.emit("SyncModeRequest",{flag:!1})},getState:function(){if(this.flatmapReady)return this.$refs.multiflatmap.getState()},flatmapPanZoomCallback:function(e){if(this.mouseHovered){const t={paneIndex:this.entry.id,eventType:"panZoom",payload:e,type:this.entry.type};this.$emit("resource-selected",t)}},search:function(e){return this.$refs.multiflatmap.getCurrentFlatmap().searchAndShowResult(e,!0)},searchSuggestions:function(e,t){const r=this.$refs.multiflatmap.getCurrentFlatmap();e&&r.mapImp&&r.mapImp.search(e).__featureIds.forEach(i=>{const o=r.mapImp.annotation(i);o&&o.label&&t.push(o.label)})},flatmaprResourceSelected:function(e,t){const r=this.$refs.multiflatmap.getCurrentFlatmap();if(this.resourceSelected(e,t,r.viewingMode==="Exploration"),t.eventType==="click"&&t.feature.type==="feature"){const n={label:t.label||"",id:t.feature.id||"",featureId:t.feature.featureId||"",taxonomy:t.taxonomy||"",resources:t.resource.join(", ")},i=t7e(n);k1.sendEvent({event:"interaction_event",event_name:"portal_maps_connectivity",category:i,location:e+" "+r.viewingMode})}},onPathwaySelectionChanged:function(e){const{label:t,property:r,checked:n,selectionsTitle:i}=e;k1.sendEvent({event:"interaction_event",event_name:"portal_maps_pathway_change",category:t+" ["+r+"] "+n,location:i})},onOpenPubmedUrl:function(e){k1.sendEvent({event:"interaction_event",event_name:"portal_maps_pubmed_url",file_path:e,location:"map_popup_button"})},handleSyncPanZoomEvent:function(e){if(!this.mouseHovered&&e.type!==this.entry.type){const t=e.payload.zoom,r=e.payload.target,n=this.$el.clientHeight,i=this.$el.clientWidth,o=Math.max(i,n);let s=i/o/t;const l=n/o/t,c=[r[0]/2+.5-s/2,.5-r[1]/2-l/2];this.$refs.multiflatmap.getCurrentFlatmap().mapImp.panZoomTo(c,[s,l])}},displayTooltip:function(e){if(e){let t=e.name;t?this.search(t):this.$refs.multiflatmap.getCurrentFlatmap().mapImp.clearSearchResults()}},zoomToFeatures:function(e,t){let r=e.name;const n=this.$refs.multiflatmap.getCurrentFlatmap().mapImp;if(r){const i=n.search(r);i.featureIds.length>0?(t&&n.selectFeatures(i.featureIds),n.zoomToFeatures(i.featureIds)):n.clearSearchResults()}else n.clearSearchResults()},highlightFeatures:function(e){let t=e.name;const r=this.$refs.multiflatmap.getCurrentFlatmap().mapImp;if(t){const n=r.search(t);n.featureIds.length>0&&r.zoomToFeatures(n.featureIds,{noZoomIn:!0})}},updateProvCard:function(){const e=this.getFlatmapImp();if(e){let t={id:this.entry.id,prov:e.provenance};this.$emit("flatmap-provenance-ready",t)}},flatmapChanged:async function(e){this.activeSpecies=e,this.openMapOptions=mNe(e),this.$emit("species-changed",e),this.entry.state&&this.entry.state.species===this.activeSpecies||this.syncMode==!0&&await this.toggleSyncMode(),this.updateProvCard(),k1.sendEvent({event:"interaction_event",event_name:"portal_maps_species_change",category:this.activeSpecies})},multiFlatmapReady:function(e){if(e){e.enablePanZoomEvents(!0),this.flatmapReady=!0;const t=e.mapImp;this.flatmapMarkerUpdate(t),this.updateProvCard()}},getFlatmapImp:function(){if(this.entry.type==="MultiFlatmap"&&this.flatmapReady&&this.$refs.multiflatmap)return this.$refs.multiflatmap.getCurrentFlatmap().mapImp},flatmapAreaSearch(){let r={type:"Facets",label:"Unused",val:this.getFlatmapImp().visibleMarkerAnatomicalIds().map(n=>this.idNamePair[n])};Zo.emit("PopoverActionClick",r)},restoreFeaturedMarkers:function(e){this.settingsStore.resetFeaturedMarkerIdentifier();const t=this.settingsStore.featuredMarkers;this.updateFeaturedMarkers(t,e)},updateFeaturedMarkers:function(e,t){this.showStarInLegend=!1;for(let r=0;r<e.length;++r)e[r]&&(this.settingsStore.featuredMarkerIdentifiers[r]||this.addFeaturedMarker(e[r],r,t)&&(this.showStarInLegend=!0))},addFeaturedMarker:function(e,t,r){const n=this.settingsStore.featuredMarkerSpecies[t];if(n&&!this.activeSpecies.startsWith(n))return!1;let i=r;if(i||(i=this.getFlatmapImp()),i){let o=document.createElement("div");o.innerHTML=HSr;const s=i.addMarker(e,{element:o,className:"highlight-marker",cluster:!1});return this.settingsStore.updateFeaturedMarkerIdentifier({index:t,markerIdentifier:s}),!0}return!1}},computed:{facetSpecies(){return this.settingsStore.facets.species},featuredMarkers(){return this.settingsStore.featuredMarkers}},watch:{syncMode:function(e){this.$refs.multiflatmap.getCurrentFlatmap()&&this.$refs.multiflatmap.getCurrentFlatmap().enablePanZoomEvents(e)},featuredMarkers:function(e){this.flatmapReady&&this.updateFeaturedMarkers(e,void 0)}},mounted:function(){this.getAvailableTerms(),this.getFeaturedDatasets(),Zo.on("markerUpdate",()=>{this.flatmapReady&&this.flatmapMarkerUpdate(this.$refs.multiflatmap.getCurrentFlatmap().mapImp)})}},RSr={class:"viewer-container"};function BSr(e,t,r,n,i,o){const s=a.resolveComponent("MultiFlatmapVuer"),l=a.resolveComponent("HelpModeDialog");return a.openBlock(),a.createElementBlock("div",RSr,[a.createVNode(s,{availableSpecies:e.availableSpecies,onFlatmapChanged:o.flatmapChanged,onReady:o.multiFlatmapReady,state:e.entry.state,onResourceSelected:t[0]||(t[0]=c=>o.flatmaprResourceSelected(e.entry.type,c)),style:{height:"100%",width:"100%"},initial:e.entry.resource,helpMode:e.helpMode,helpModeActiveItem:e.helpModeActiveItem,helpModeDialog:e.useHelpModeDialog,onHelpModeLastItem:e.onHelpModeLastItem,onShownTooltip:e.onTooltipShown,onShownMapTooltip:e.onMapTooltipShown,ref:"multiflatmap",displayMinimap:!0,showStarInLegend:e.showStarInLegend,enableOpenMapUI:!0,openMapOptions:e.openMapOptions,flatmapAPI:e.flatmapAPI,sparcAPI:e.apiLocation,onPanZoomCallback:o.flatmapPanZoomCallback,onOpenMap:e.openMap,onFinishHelpMode:e.endHelp,onPathwaySelectionChanged:o.onPathwaySelectionChanged,onOpenPubmedUrl:o.onOpenPubmedUrl},null,8,["availableSpecies","onFlatmapChanged","onReady","state","initial","helpMode","helpModeActiveItem","helpModeDialog","onHelpModeLastItem","onShownTooltip","onShownMapTooltip","showStarInLegend","openMapOptions","flatmapAPI","sparcAPI","onPanZoomCallback","onOpenMap","onFinishHelpMode","onPathwaySelectionChanged","onOpenPubmedUrl"]),e.helpMode&&e.useHelpModeDialog?(a.openBlock(),a.createBlock(l,{key:0,ref:"multiflatmapHelp",multiflatmapRef:e.multiflatmapRef,lastItem:e.helpModeLastItem,onShowNext:e.onHelpModeShowNext,onFinishHelpMode:e.onFinishHelpMode},null,8,["multiflatmapRef","lastItem","onShowNext","onFinishHelpMode"])):a.createCommentVNode("",!0)])}const DSr=Object.freeze(Object.defineProperty({__proto__:null,default:Dc(NSr,[["render",BSr],["__scopeId","data-v-3e284237"]])},Symbol.toStringTag,{value:"Module"}));function FSr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gNe={exports:{}},el=gNe.exports={},d4,h4;function Ise(){throw new Error("setTimeout has not been defined")}function Pse(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?d4=setTimeout:d4=Ise}catch{d4=Ise}try{typeof clearTimeout=="function"?h4=clearTimeout:h4=Pse}catch{h4=Pse}})();function yNe(e){if(d4===setTimeout)return setTimeout(e,0);if((d4===Ise||!d4)&&setTimeout)return d4=setTimeout,setTimeout(e,0);try{return d4(e,0)}catch{try{return d4.call(null,e,0)}catch{return d4.call(this,e,0)}}}function zSr(e){if(h4===clearTimeout)return clearTimeout(e);if((h4===Pse||!h4)&&clearTimeout)return h4=clearTimeout,clearTimeout(e);try{return h4(e)}catch{try{return h4.call(null,e)}catch{return h4.call(this,e)}}}var O6=[],KQ=!1,ey,zz=-1;function jSr(){!KQ||!ey||(KQ=!1,ey.length?O6=ey.concat(O6):zz=-1,O6.length&&TNe())}function TNe(){if(!KQ){var e=yNe(jSr);KQ=!0;for(var t=O6.length;t;){for(ey=O6,O6=[];++zz<t;)ey&&ey[zz].run();zz=-1,t=O6.length}ey=null,KQ=!1,zSr(e)}}el.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];O6.push(new vNe(e,t)),O6.length===1&&!KQ&&yNe(TNe)};function vNe(e,t){this.fun=e,this.array=t}vNe.prototype.run=function(){this.fun.apply(null,this.array)},el.title="browser",el.browser=!0,el.env={},el.argv=[],el.version="",el.versions={};function I6(){}el.on=I6,el.addListener=I6,el.once=I6,el.off=I6,el.removeListener=I6,el.removeAllListeners=I6,el.emit=I6,el.prependListener=I6,el.prependOnceListener=I6,el.listeners=function(e){return[]},el.binding=function(e){throw new Error("process.binding is not supported")},el.cwd=function(){return"/"},el.chdir=function(e){throw new Error("process.chdir is not supported")},el.umask=function(){return 0};var USr=gNe.exports;const XQ=FSr(USr),P6=(e,t,{checkForDefaultPrevented:r=!0}={})=>n=>{const i=e==null?void 0:e(n);if(r===!1||!i)return t==null?void 0:t(n)},YQ=globalThis||void 0||self;var bNe;const H1=typeof window<"u",GSr=e=>typeof e=="string",QNe=()=>{},WSr=H1&&((bNe=window==null?void 0:window.navigator)==null?void 0:bNe.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function xNe(e){return typeof e=="function"?e():a.unref(e)}function ZSr(e){return e}function jz(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}function qSr(e,t=!0){a.getCurrentInstance()?a.onMounted(e):t?e():a.nextTick(e)}function V6(e){var t;const r=xNe(e);return(t=r==null?void 0:r.$el)!=null?t:r}const Uz=H1?window:void 0;function ty(...e){let t,r,n,i;if(GSr(e[0])||Array.isArray(e[0])?([r,n,i]=e,t=Uz):[t,r,n,i]=e,!t)return QNe;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const o=[],s=()=>{o.forEach(d=>d()),o.length=0},l=(d,h,p,f)=>(d.addEventListener(h,p,f),()=>d.removeEventListener(h,p,f)),c=a.watch(()=>[V6(t),xNe(i)],([d,h])=>{s(),d&&o.push(...r.flatMap(p=>n.map(f=>l(d,p,f,h))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return jz(u),u}let _Ne=!1;function KSr(e,t,r={}){const{window:n=Uz,ignore:i=[],capture:o=!0,detectIframe:s=!1}=r;if(!n)return;WSr&&!_Ne&&(_Ne=!0,Array.from(n.document.body.children).forEach(d=>d.addEventListener("click",QNe)));let l=!0;const c=d=>i.some(h=>{if(typeof h=="string")return Array.from(n.document.querySelectorAll(h)).some(p=>p===d.target||d.composedPath().includes(p));{const p=V6(h);return p&&(d.target===p||d.composedPath().includes(p))}}),u=[ty(n,"click",d=>{const h=V6(e);if(!(!h||h===d.target||d.composedPath().includes(h))){if(d.detail===0&&(l=!c(d)),!l){l=!0;return}t(d)}},{passive:!0,capture:o}),ty(n,"pointerdown",d=>{const h=V6(e);h&&(l=!d.composedPath().includes(h)&&!c(d))},{passive:!0}),s&&ty(n,"blur",d=>{var h;const p=V6(e);((h=n.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(p!=null&&p.contains(n.document.activeElement))&&t(d)})].filter(Boolean);return()=>u.forEach(d=>d())}function wNe(e,t=!1){const r=a.ref(),n=()=>r.value=!!e();return n(),qSr(n,t),r}const Vse=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof YQ<"u"?YQ:typeof self<"u"?self:{},Hse="__vueuse_ssr_handlers__";Vse[Hse]=Vse[Hse]||{},Vse[Hse];var LNe=Object.getOwnPropertySymbols,XSr=Object.prototype.hasOwnProperty,YSr=Object.prototype.propertyIsEnumerable,JSr=(e,t)=>{var r={};for(var n in e)XSr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&LNe)for(var n of LNe(e))t.indexOf(n)<0&&YSr.call(e,n)&&(r[n]=e[n]);return r};function H6(e,t,r={}){const n=r,{window:i=Uz}=n,o=JSr(n,["window"]);let s;const l=wNe(()=>i&&"ResizeObserver"in i),c=()=>{s&&(s.disconnect(),s=void 0)},u=a.watch(()=>V6(e),h=>{c(),l.value&&i&&h&&(s=new ResizeObserver(t),s.observe(h,o))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return jz(d),{isSupported:l,stop:d}}var SNe=Object.getOwnPropertySymbols,$Sr=Object.prototype.hasOwnProperty,eMr=Object.prototype.propertyIsEnumerable,tMr=(e,t)=>{var r={};for(var n in e)$Sr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&SNe)for(var n of SNe(e))t.indexOf(n)<0&&eMr.call(e,n)&&(r[n]=e[n]);return r};function rMr(e,t,r={}){const n=r,{window:i=Uz}=n,o=tMr(n,["window"]);let s;const l=wNe(()=>i&&"MutationObserver"in i),c=()=>{s&&(s.disconnect(),s=void 0)},u=a.watch(()=>V6(e),h=>{c(),l.value&&i&&h&&(s=new MutationObserver(t),s.observe(h,o))},{immediate:!0}),d=()=>{c(),u()};return jz(d),{isSupported:l,stop:d}}var MNe;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(MNe||(MNe={}));var nMr=Object.defineProperty,kNe=Object.getOwnPropertySymbols,iMr=Object.prototype.hasOwnProperty,oMr=Object.prototype.propertyIsEnumerable,CNe=(e,t,r)=>t in e?nMr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,aMr=(e,t)=>{for(var r in t||(t={}))iMr.call(t,r)&&CNe(e,r,t[r]);if(kNe)for(var r of kNe(t))oMr.call(t,r)&&CNe(e,r,t[r]);return e};aMr({linear:ZSr},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const sMr=()=>H1&&/firefox/i.test(window.navigator.userAgent);XQ.env.NODE_ENV!=="production"&&Object.freeze({}),XQ.env.NODE_ENV!=="production"&&Object.freeze([]);const dE=()=>{},lMr=Object.prototype.hasOwnProperty,ENe=(e,t)=>lMr.call(e,t),bd=Array.isArray,Qd=e=>typeof e=="function",p4=e=>typeof e=="string",xd=e=>e!==null&&typeof e=="object",cMr=Object.prototype.toString,uMr=e=>cMr.call(e),Nse=e=>uMr(e).slice(8,-1);var ANe=typeof YQ=="object"&&YQ&&YQ.Object===Object&&YQ,dMr=typeof self=="object"&&self&&self.Object===Object&&self,f4=ANe||dMr||Function("return this")(),y8=f4.Symbol,ONe=Object.prototype,hMr=ONe.hasOwnProperty,pMr=ONe.toString,hE=y8?y8.toStringTag:void 0;function fMr(e){var t=hMr.call(e,hE),r=e[hE];try{e[hE]=void 0;var n=!0}catch{}var i=pMr.call(e);return n&&(t?e[hE]=r:delete e[hE]),i}var mMr=Object.prototype,gMr=mMr.toString;function yMr(e){return gMr.call(e)}var TMr="[object Null]",vMr="[object Undefined]",INe=y8?y8.toStringTag:void 0;function JQ(e){return e==null?e===void 0?vMr:TMr:INe&&INe in Object(e)?fMr(e):yMr(e)}function $Q(e){return e!=null&&typeof e=="object"}var bMr="[object Symbol]";function Gz(e){return typeof e=="symbol"||$Q(e)&&JQ(e)==bMr}function QMr(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var m4=Array.isArray,xMr=1/0,PNe=y8?y8.prototype:void 0,VNe=PNe?PNe.toString:void 0;function HNe(e){if(typeof e=="string")return e;if(m4(e))return QMr(e,HNe)+"";if(Gz(e))return VNe?VNe.call(e):"";var t=e+"";return t=="0"&&1/e==-xMr?"-0":t}var _Mr=/\s/;function wMr(e){for(var t=e.length;t--&&_Mr.test(e.charAt(t)););return t}var LMr=/^\s+/;function SMr(e){return e&&e.slice(0,wMr(e)+1).replace(LMr,"")}function ex(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var NNe=NaN,MMr=/^[-+]0x[0-9a-f]+$/i,kMr=/^0b[01]+$/i,CMr=/^0o[0-7]+$/i,EMr=parseInt;function Rse(e){if(typeof e=="number")return e;if(Gz(e))return NNe;if(ex(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ex(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=SMr(e);var r=kMr.test(e);return r||CMr.test(e)?EMr(e.slice(2),r?2:8):MMr.test(e)?NNe:+e}var RNe=1/0,AMr=17976931348623157e292;function OMr(e){if(!e)return e===0?e:0;if(e=Rse(e),e===RNe||e===-RNe){var t=e<0?-1:1;return t*AMr}return e===e?e:0}function IMr(e){var t=OMr(e),r=t%1;return t===t?r?t-r:t:0}function PMr(e){return e}var VMr="[object AsyncFunction]",HMr="[object Function]",NMr="[object GeneratorFunction]",RMr="[object Proxy]";function BNe(e){if(!ex(e))return!1;var t=JQ(e);return t==HMr||t==NMr||t==VMr||t==RMr}var Bse=f4["__core-js_shared__"],DNe=function(){var e=/[^.]+$/.exec(Bse&&Bse.keys&&Bse.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function BMr(e){return!!DNe&&DNe in e}var DMr=Function.prototype,FMr=DMr.toString;function ry(e){if(e!=null){try{return FMr.call(e)}catch{}try{return e+""}catch{}}return""}var zMr=/[\\^$.*+?()[\]{}|]/g,jMr=/^\[object .+?Constructor\]$/,UMr=Function.prototype,GMr=Object.prototype,WMr=UMr.toString,ZMr=GMr.hasOwnProperty,qMr=RegExp("^"+WMr.call(ZMr).replace(zMr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function KMr(e){if(!ex(e)||BMr(e))return!1;var t=BNe(e)?qMr:jMr;return t.test(ry(e))}function XMr(e,t){return e==null?void 0:e[t]}function tx(e,t){var r=XMr(e,t);return KMr(r)?r:void 0}var Dse=tx(f4,"WeakMap");function YMr(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var JMr=9007199254740991,$Mr=/^(?:0|[1-9]\d*)$/;function FNe(e,t){var r=typeof e;return t=t??JMr,!!t&&(r=="number"||r!="symbol"&&$Mr.test(e))&&e>-1&&e%1==0&&e<t}function zNe(e,t){return e===t||e!==e&&t!==t}var ekr=9007199254740991;function Fse(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ekr}function tkr(e){return e!=null&&Fse(e.length)&&!BNe(e)}var rkr=Object.prototype;function nkr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||rkr;return e===r}function ikr(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var okr="[object Arguments]";function jNe(e){return $Q(e)&&JQ(e)==okr}var UNe=Object.prototype,akr=UNe.hasOwnProperty,skr=UNe.propertyIsEnumerable,GNe=jNe(function(){return arguments}())?jNe:function(e){return $Q(e)&&akr.call(e,"callee")&&!skr.call(e,"callee")};function lkr(){return!1}var WNe=typeof Gn=="object"&&Gn&&!Gn.nodeType&&Gn,ZNe=WNe&&typeof module=="object"&&module&&!module.nodeType&&module,ckr=ZNe&&ZNe.exports===WNe,qNe=ckr?f4.Buffer:void 0,ukr=qNe?qNe.isBuffer:void 0,zse=ukr||lkr,dkr="[object Arguments]",hkr="[object Array]",pkr="[object Boolean]",fkr="[object Date]",mkr="[object Error]",gkr="[object Function]",ykr="[object Map]",Tkr="[object Number]",vkr="[object Object]",bkr="[object RegExp]",Qkr="[object Set]",xkr="[object String]",_kr="[object WeakMap]",wkr="[object ArrayBuffer]",Lkr="[object DataView]",Skr="[object Float32Array]",Mkr="[object Float64Array]",kkr="[object Int8Array]",Ckr="[object Int16Array]",Ekr="[object Int32Array]",Akr="[object Uint8Array]",Okr="[object Uint8ClampedArray]",Ikr="[object Uint16Array]",Pkr="[object Uint32Array]",Ya={};Ya[Skr]=Ya[Mkr]=Ya[kkr]=Ya[Ckr]=Ya[Ekr]=Ya[Akr]=Ya[Okr]=Ya[Ikr]=Ya[Pkr]=!0,Ya[dkr]=Ya[hkr]=Ya[wkr]=Ya[pkr]=Ya[Lkr]=Ya[fkr]=Ya[mkr]=Ya[gkr]=Ya[ykr]=Ya[Tkr]=Ya[vkr]=Ya[bkr]=Ya[Qkr]=Ya[xkr]=Ya[_kr]=!1;function Vkr(e){return $Q(e)&&Fse(e.length)&&!!Ya[JQ(e)]}function Hkr(e){return function(t){return e(t)}}var KNe=typeof Gn=="object"&&Gn&&!Gn.nodeType&&Gn,pE=KNe&&typeof module=="object"&&module&&!module.nodeType&&module,Nkr=pE&&pE.exports===KNe,jse=Nkr&&ANe.process,XNe=function(){try{var e=pE&&pE.require&&pE.require("util").types;return e||jse&&jse.binding&&jse.binding("util")}catch{}}(),YNe=XNe&&XNe.isTypedArray,JNe=YNe?Hkr(YNe):Vkr,Rkr=Object.prototype,Bkr=Rkr.hasOwnProperty;function Dkr(e,t){var r=m4(e),n=!r&&GNe(e),i=!r&&!n&&zse(e),o=!r&&!n&&!i&&JNe(e),s=r||n||i||o,l=s?ikr(e.length,String):[],c=l.length;for(var u in e)(t||Bkr.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||FNe(u,c)))&&l.push(u);return l}function Fkr(e,t){return function(r){return e(t(r))}}var zkr=Fkr(Object.keys,Object),jkr=Object.prototype,Ukr=jkr.hasOwnProperty;function Gkr(e){if(!nkr(e))return zkr(e);var t=[];for(var r in Object(e))Ukr.call(e,r)&&r!="constructor"&&t.push(r);return t}function $Ne(e){return tkr(e)?Dkr(e):Gkr(e)}var Wkr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zkr=/^\w*$/;function Use(e,t){if(m4(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Gz(e)?!0:Zkr.test(e)||!Wkr.test(e)||t!=null&&e in Object(t)}var fE=tx(Object,"create");function qkr(){this.__data__=fE?fE(null):{},this.size=0}function Kkr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Xkr="__lodash_hash_undefined__",Ykr=Object.prototype,Jkr=Ykr.hasOwnProperty;function $kr(e){var t=this.__data__;if(fE){var r=t[e];return r===Xkr?void 0:r}return Jkr.call(t,e)?t[e]:void 0}var eCr=Object.prototype,tCr=eCr.hasOwnProperty;function rCr(e){var t=this.__data__;return fE?t[e]!==void 0:tCr.call(t,e)}var nCr="__lodash_hash_undefined__";function iCr(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=fE&&t===void 0?nCr:t,this}function ny(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ny.prototype.clear=qkr,ny.prototype.delete=Kkr,ny.prototype.get=$kr,ny.prototype.has=rCr,ny.prototype.set=iCr;function oCr(){this.__data__=[],this.size=0}function Wz(e,t){for(var r=e.length;r--;)if(zNe(e[r][0],t))return r;return-1}var aCr=Array.prototype,sCr=aCr.splice;function lCr(e){var t=this.__data__,r=Wz(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():sCr.call(t,r,1),--this.size,!0}function cCr(e){var t=this.__data__,r=Wz(t,e);return r<0?void 0:t[r][1]}function uCr(e){return Wz(this.__data__,e)>-1}function dCr(e,t){var r=this.__data__,n=Wz(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function N6(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}N6.prototype.clear=oCr,N6.prototype.delete=lCr,N6.prototype.get=cCr,N6.prototype.has=uCr,N6.prototype.set=dCr;var mE=tx(f4,"Map");function hCr(){this.size=0,this.__data__={hash:new ny,map:new(mE||N6),string:new ny}}function pCr(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Zz(e,t){var r=e.__data__;return pCr(t)?r[typeof t=="string"?"string":"hash"]:r.map}function fCr(e){var t=Zz(this,e).delete(e);return this.size-=t?1:0,t}function mCr(e){return Zz(this,e).get(e)}function gCr(e){return Zz(this,e).has(e)}function yCr(e,t){var r=Zz(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function R6(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}R6.prototype.clear=hCr,R6.prototype.delete=fCr,R6.prototype.get=mCr,R6.prototype.has=gCr,R6.prototype.set=yCr;var TCr="Expected a function";function Gse(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(TCr);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Gse.Cache||R6),r}Gse.Cache=R6;var vCr=500;function bCr(e){var t=Gse(e,function(n){return r.size===vCr&&r.clear(),n}),r=t.cache;return t}var QCr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xCr=/\\(\\)?/g,_Cr=bCr(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(QCr,function(r,n,i,o){t.push(i?o.replace(xCr,"$1"):n||r)}),t});function wCr(e){return e==null?"":HNe(e)}function eRe(e,t){return m4(e)?e:Use(e,t)?[e]:_Cr(wCr(e))}var LCr=1/0;function qz(e){if(typeof e=="string"||Gz(e))return e;var t=e+"";return t=="0"&&1/e==-LCr?"-0":t}function tRe(e,t){t=eRe(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[qz(t[r++])];return r&&r==n?e:void 0}function B6(e,t,r){var n=e==null?void 0:tRe(e,t);return n===void 0?r:n}function SCr(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function rRe(){if(!arguments.length)return[];var e=arguments[0];return m4(e)?e:[e]}function MCr(){this.__data__=new N6,this.size=0}function kCr(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function CCr(e){return this.__data__.get(e)}function ECr(e){return this.__data__.has(e)}var ACr=200;function OCr(e,t){var r=this.__data__;if(r instanceof N6){var n=r.__data__;if(!mE||n.length<ACr-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new R6(n)}return r.set(e,t),this.size=r.size,this}function D6(e){var t=this.__data__=new N6(e);this.size=t.size}D6.prototype.clear=MCr,D6.prototype.delete=kCr,D6.prototype.get=CCr,D6.prototype.has=ECr,D6.prototype.set=OCr;function ICr(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}function PCr(){return[]}var VCr=Object.prototype,HCr=VCr.propertyIsEnumerable,nRe=Object.getOwnPropertySymbols,NCr=nRe?function(e){return e==null?[]:(e=Object(e),ICr(nRe(e),function(t){return HCr.call(e,t)}))}:PCr;const RCr=NCr;function BCr(e,t,r){var n=t(e);return m4(e)?n:SCr(n,r(e))}function iRe(e){return BCr(e,$Ne,RCr)}var Wse=tx(f4,"DataView"),Zse=tx(f4,"Promise"),qse=tx(f4,"Set"),oRe="[object Map]",DCr="[object Object]",aRe="[object Promise]",sRe="[object Set]",lRe="[object WeakMap]",cRe="[object DataView]",FCr=ry(Wse),zCr=ry(mE),jCr=ry(Zse),UCr=ry(qse),GCr=ry(Dse),iy=JQ;(Wse&&iy(new Wse(new ArrayBuffer(1)))!=cRe||mE&&iy(new mE)!=oRe||Zse&&iy(Zse.resolve())!=aRe||qse&&iy(new qse)!=sRe||Dse&&iy(new Dse)!=lRe)&&(iy=function(e){var t=JQ(e),r=t==DCr?e.constructor:void 0,n=r?ry(r):"";if(n)switch(n){case FCr:return cRe;case zCr:return oRe;case jCr:return aRe;case UCr:return sRe;case GCr:return lRe}return t});const uRe=iy;var WCr=f4.Uint8Array;const dRe=WCr;var ZCr="__lodash_hash_undefined__";function qCr(e){return this.__data__.set(e,ZCr),this}function KCr(e){return this.__data__.has(e)}function Kz(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new R6;++t<r;)this.add(e[t])}Kz.prototype.add=Kz.prototype.push=qCr,Kz.prototype.has=KCr;function XCr(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function YCr(e,t){return e.has(t)}var JCr=1,$Cr=2;function hRe(e,t,r,n,i,o){var s=r&JCr,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var h=-1,p=!0,f=r&$Cr?new Kz:void 0;for(o.set(e,t),o.set(t,e);++h<l;){var m=e[h],g=t[h];if(n)var T=s?n(g,m,h,t,e,o):n(m,g,h,e,t,o);if(T!==void 0){if(T)continue;p=!1;break}if(f){if(!XCr(t,function(y,v){if(!YCr(f,v)&&(m===y||i(m,y,r,n,o)))return f.push(v)})){p=!1;break}}else if(!(m===g||i(m,g,r,n,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function eEr(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function tEr(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var rEr=1,nEr=2,iEr="[object Boolean]",oEr="[object Date]",aEr="[object Error]",sEr="[object Map]",lEr="[object Number]",cEr="[object RegExp]",uEr="[object Set]",dEr="[object String]",hEr="[object Symbol]",pEr="[object ArrayBuffer]",fEr="[object DataView]",pRe=y8?y8.prototype:void 0,Kse=pRe?pRe.valueOf:void 0;function mEr(e,t,r,n,i,o,s){switch(r){case fEr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case pEr:return!(e.byteLength!=t.byteLength||!o(new dRe(e),new dRe(t)));case iEr:case oEr:case lEr:return zNe(+e,+t);case aEr:return e.name==t.name&&e.message==t.message;case cEr:case dEr:return e==t+"";case sEr:var l=eEr;case uEr:var c=n&rEr;if(l||(l=tEr),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;n|=nEr,s.set(e,t);var d=hRe(l(e),l(t),n,i,o,s);return s.delete(e),d;case hEr:if(Kse)return Kse.call(e)==Kse.call(t)}return!1}var gEr=1,yEr=Object.prototype,TEr=yEr.hasOwnProperty;function vEr(e,t,r,n,i,o){var s=r&gEr,l=iRe(e),c=l.length,u=iRe(t),d=u.length;if(c!=d&&!s)return!1;for(var h=c;h--;){var p=l[h];if(!(s?p in t:TEr.call(t,p)))return!1}var f=o.get(e),m=o.get(t);if(f&&m)return f==t&&m==e;var g=!0;o.set(e,t),o.set(t,e);for(var T=s;++h<c;){p=l[h];var y=e[p],v=t[p];if(n)var _=s?n(v,y,p,t,e,o):n(y,v,p,e,t,o);if(!(_===void 0?y===v||i(y,v,r,n,o):_)){g=!1;break}T||(T=p=="constructor")}if(g&&!T){var x=e.constructor,L=t.constructor;x!=L&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof L=="function"&&L instanceof L)&&(g=!1)}return o.delete(e),o.delete(t),g}var bEr=1,fRe="[object Arguments]",mRe="[object Array]",Xz="[object Object]",QEr=Object.prototype,gRe=QEr.hasOwnProperty;function xEr(e,t,r,n,i,o){var s=m4(e),l=m4(t),c=s?mRe:uRe(e),u=l?mRe:uRe(t);c=c==fRe?Xz:c,u=u==fRe?Xz:u;var d=c==Xz,h=u==Xz,p=c==u;if(p&&zse(e)){if(!zse(t))return!1;s=!0,d=!1}if(p&&!d)return o||(o=new D6),s||JNe(e)?hRe(e,t,r,n,i,o):mEr(e,t,c,r,n,i,o);if(!(r&bEr)){var f=d&&gRe.call(e,"__wrapped__"),m=h&&gRe.call(t,"__wrapped__");if(f||m){var g=f?e.value():e,T=m?t.value():t;return o||(o=new D6),i(g,T,r,n,o)}}return p?(o||(o=new D6),vEr(e,t,r,n,i,o)):!1}function Yz(e,t,r,n,i){return e===t?!0:e==null||t==null||!$Q(e)&&!$Q(t)?e!==e&&t!==t:xEr(e,t,r,n,Yz,i)}var _Er=1,wEr=2;function LEr(e,t,r,n){var i=r.length,o=i,s=!n;if(e==null)return!o;for(e=Object(e);i--;){var l=r[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){l=r[i];var c=l[0],u=e[c],d=l[1];if(s&&l[2]){if(u===void 0&&!(c in e))return!1}else{var h=new D6;if(n)var p=n(u,d,c,e,t,h);if(!(p===void 0?Yz(d,u,_Er|wEr,n,h):p))return!1}}return!0}function yRe(e){return e===e&&!ex(e)}function SEr(e){for(var t=$Ne(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,yRe(i)]}return t}function TRe(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function MEr(e){var t=SEr(e);return t.length==1&&t[0][2]?TRe(t[0][0],t[0][1]):function(r){return r===e||LEr(r,e,t)}}function kEr(e,t){return e!=null&&t in Object(e)}function CEr(e,t,r){t=eRe(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var s=qz(t[n]);if(!(o=e!=null&&r(e,s)))break;e=e[s]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&Fse(i)&&FNe(s,i)&&(m4(e)||GNe(e)))}function EEr(e,t){return e!=null&&CEr(e,t,kEr)}var AEr=1,OEr=2;function IEr(e,t){return Use(e)&&yRe(t)?TRe(qz(e),t):function(r){var n=B6(r,e);return n===void 0&&n===t?EEr(r,e):Yz(t,n,AEr|OEr)}}function PEr(e){return function(t){return t==null?void 0:t[e]}}function VEr(e){return function(t){return tRe(t,e)}}function HEr(e){return Use(e)?PEr(qz(e)):VEr(e)}function NEr(e){return typeof e=="function"?e:e==null?PMr:typeof e=="object"?m4(e)?IEr(e[0],e[1]):MEr(e):HEr(e)}var Xse=function(){return f4.Date.now()},REr="Expected a function",BEr=Math.max,DEr=Math.min;function FEr(e,t,r){var n,i,o,s,l,c,u=0,d=!1,h=!1,p=!0;if(typeof e!="function")throw new TypeError(REr);t=Rse(t)||0,ex(r)&&(d=!!r.leading,h="maxWait"in r,o=h?BEr(Rse(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p);function f(w){var M=n,C=i;return n=i=void 0,u=w,s=e.apply(C,M),s}function m(w){return u=w,l=setTimeout(y,t),d?f(w):s}function g(w){var M=w-c,C=w-u,E=t-M;return h?DEr(E,o-C):E}function T(w){var M=w-c,C=w-u;return c===void 0||M>=t||M<0||h&&C>=o}function y(){var w=Xse();if(T(w))return v(w);l=setTimeout(y,g(w))}function v(w){return l=void 0,p&&n?f(w):(n=i=void 0,s)}function _(){l!==void 0&&clearTimeout(l),u=0,n=c=i=l=void 0}function x(){return l===void 0?s:v(Xse())}function L(){var w=Xse(),M=T(w);if(n=arguments,i=this,c=w,M){if(l===void 0)return m(c);if(h)return clearTimeout(l),l=setTimeout(y,t),f(c)}return l===void 0&&(l=setTimeout(y,t)),s}return L.cancel=_,L.flush=x,L}var zEr=Math.max,jEr=Math.min;function UEr(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=n-1;return r!==void 0&&(i=IMr(r),i=r<0?zEr(n+i,0):jEr(i,n-1)),YMr(e,NEr(t),i,!0)}function Jz(e){for(var t=-1,r=e==null?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n}function gE(e,t){return Yz(e,t)}function $z(e){return e==null}function GEr(e){return e===void 0}const vRe=e=>e===void 0,Yse=e=>typeof e=="boolean",n0=e=>typeof e=="number",yE=e=>typeof Element>"u"?!1:e instanceof Element,WEr=e=>p4(e)?!Number.isNaN(Number(e)):!1,ZEr=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");let bRe=class extends Error{constructor(t){super(t),this.name="ElementPlusError"}};function qEr(e,t){throw new bRe(`[${e}] ${t}`)}function _d(e,t){if(XQ.env.NODE_ENV!=="production"){const r=p4(e)?new bRe(`[${e}] ${t}`):e;console.warn(r)}}const KEr="utils/dom/style";function ej(e,t="px"){if(!e)return"";if(n0(e)||WEr(e))return`${e}${t}`;if(p4(e))return e;_d(KEr,"binding value must be a string or number")}function XEr(e,t){if(!H1)return;if(!t){e.scrollTop=0;return}const r=[];let n=t.offsetParent;for(;n!==null&&e!==n&&e.contains(n);)r.push(n),n=n.offsetParent;const i=t.offsetTop+r.reduce((c,u)=>c+u.offsetTop,0),o=i+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;i<s?e.scrollTop=i:o>l&&(e.scrollTop=o-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var YEr=a.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),JEr=YEr,$Er=a.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),eAr=$Er,tAr=a.defineComponent({name:"CircleCheck",__name:"circle-check",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),a.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),rAr=tAr,nAr=a.defineComponent({name:"CircleClose",__name:"circle-close",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),a.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Jse=nAr,iAr=a.defineComponent({name:"Close",__name:"close",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),QRe=iAr,oAr=a.defineComponent({name:"Hide",__name:"hide",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),a.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),aAr=oAr,sAr=a.defineComponent({name:"Loading",__name:"loading",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),xRe=sAr,lAr=a.defineComponent({name:"View",__name:"view",setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),cAr=lAr;const _Re="__epPropKey",$i=e=>e,uAr=e=>xd(e)&&!!e[_Re],tj=(e,t)=>{if(!xd(e)||uAr(e))return e;const{values:r,required:n,default:i,type:o,validator:s}=e,l={type:o,required:!!n,validator:r||s?c=>{let u=!1,d=[];if(r&&(d=Array.from(r),ENe(e,"default")&&d.push(i),u||(u=d.includes(c))),s&&(u||(u=s(c))),!u&&d.length>0){const h=[...new Set(d)].map(p=>JSON.stringify(p)).join(", ");a.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return u}:void 0,[_Re]:!0};return ENe(e,"default")&&(l.default=i),l},Qs=e=>Jz(Object.entries(e).map(([t,r])=>[t,tj(r,t)])),oy=$i([String,Object,Function]),wRe={validating:xRe,success:rAr,error:Jse},g4=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(t??{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e},dAr=(e,t)=>(e.install=r=>{r.directive(t,e)},e),rj=e=>(e.install=dE,e),TE={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Y0="update:modelValue",nj="change",LRe=["","default","small","large"],SRe=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),MRe=e=>e,hAr=["class","style"],pAr=/^on[A-Z]/,fAr=(e={})=>{const{excludeListeners:t=!1,excludeKeys:r}=e,n=a.computed(()=>((r==null?void 0:r.value)||[]).concat(hAr)),i=a.getCurrentInstance();return i?a.computed(()=>{var o;return Jz(Object.entries((o=i.proxy)==null?void 0:o.$attrs).filter(([s])=>!n.value.includes(s)&&!(t&&pAr.test(s))))}):(_d("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),a.computed(()=>({})))},kRe=({from:e,replacement:t,scope:r,version:n,ref:i,type:o="API"},s)=>{a.watch(()=>a.unref(s),l=>{l&&_d(r,`[${o}] ${e} is about to be deprecated in version ${n}, please use ${t} instead.
|
2611
2611
|
For more detail, please visit: ${i}
|
2612
2612
|
`)},{immediate:!0})};var mAr={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const gAr=e=>(t,r)=>yAr(t,r,a.unref(e)),yAr=(e,t,r)=>B6(r,e,e).replace(/\{(\w+)\}/g,(n,i)=>{var o;return`${(o=t==null?void 0:t[i])!=null?o:`{${i}}`}`}),TAr=e=>{const t=a.computed(()=>a.unref(e).name),r=a.isRef(e)?e:a.ref(e);return{lang:t,locale:r,t:gAr(e)}},vAr=Symbol("localeContextKey"),bAr=e=>{const t=e||a.inject(vAr,a.ref());return TAr(a.computed(()=>t.value||mAr))},$se="el",QAr="is-",ay=(e,t,r,n,i)=>{let o=`${e}-${t}`;return r&&(o+=`-${r}`),n&&(o+=`__${n}`),i&&(o+=`--${i}`),o},xAr=Symbol("namespaceContextKey"),ele=e=>{const t=e||(a.getCurrentInstance()?a.inject(xAr,a.ref($se)):a.ref($se));return a.computed(()=>a.unref(t)||$se)},us=(e,t)=>{const r=ele(t);return{namespace:r,b:(n="")=>ay(r.value,e,n,"",""),e:n=>n?ay(r.value,e,"",n,""):"",m:n=>n?ay(r.value,e,"","",n):"",be:(n,i)=>n&&i?ay(r.value,e,n,i,""):"",em:(n,i)=>n&&i?ay(r.value,e,"",n,i):"",bm:(n,i)=>n&&i?ay(r.value,e,n,"",i):"",bem:(n,i,o)=>n&&i&&o?ay(r.value,e,n,i,o):"",is:(n,...i)=>{const o=i.length>=1?i[0]:!0;return n&&o?`${QAr}${n}`:""},cssVar:n=>{const i={};for(const o in n)n[o]&&(i[`--${r.value}-${o}`]=n[o]);return i},cssVarName:n=>`--${r.value}-${n}`,cssVarBlock:n=>{const i={};for(const o in n)n[o]&&(i[`--${r.value}-${e}-${o}`]=n[o]);return i},cssVarBlockName:n=>`--${r.value}-${e}-${n}`}},_Ar=tj({type:$i(Boolean),default:null}),wAr=tj({type:$i(Function)}),LAr=e=>{const t=`update:${e}`,r=`onUpdate:${e}`,n=[t],i={[e]:_Ar,[r]:wAr};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:c,onShow:u,onHide:d})=>{const h=a.getCurrentInstance(),{emit:p}=h,f=h.props,m=a.computed(()=>Qd(f[r])),g=a.computed(()=>f[e]===null),T=w=>{o.value!==!0&&(o.value=!0,s&&(s.value=w),Qd(u)&&u(w))},y=w=>{o.value!==!1&&(o.value=!1,s&&(s.value=w),Qd(d)&&d(w))},v=w=>{if(f.disabled===!0||Qd(c)&&!c())return;const M=m.value&&H1;M&&p(t,!0),(g.value||!M)&&T(w)},_=w=>{if(f.disabled===!0||!H1)return;const M=m.value&&H1;M&&p(t,!1),(g.value||!M)&&y(w)},x=w=>{Yse(w)&&(f.disabled&&w?m.value&&p(t,!1):o.value!==w&&(w?T():y()))},L=()=>{o.value?_():v()};return a.watch(()=>f[e],x),l&&h.appContext.config.globalProperties.$route!==void 0&&a.watch(()=>({...h.proxy.$route}),()=>{l.value&&o.value&&_()}),a.onMounted(()=>{x(f[e])}),{hide:_,show:v,toggle:L,hasUpdateHandler:m}},useModelToggleProps:i,useModelToggleEmits:n}},CRe=e=>{const t=a.getCurrentInstance();return a.computed(()=>{var r,n;return(n=(r=t==null?void 0:t.proxy)==null?void 0:r.$props)==null?void 0:n[e]})};var i0="top",wd="bottom",Ld="right",o0="left",tle="auto",vE=[i0,wd,Ld,o0],rx="start",bE="end",SAr="clippingParents",ERe="viewport",QE="popper",MAr="reference",ARe=vE.reduce(function(e,t){return e.concat([t+"-"+rx,t+"-"+bE])},[]),ij=[].concat(vE,[tle]).reduce(function(e,t){return e.concat([t,t+"-"+rx,t+"-"+bE])},[]),kAr="beforeRead",CAr="read",EAr="afterRead",AAr="beforeMain",OAr="main",IAr="afterMain",PAr="beforeWrite",VAr="write",HAr="afterWrite",NAr=[kAr,CAr,EAr,AAr,OAr,IAr,PAr,VAr,HAr];function y4(e){return e?(e.nodeName||"").toLowerCase():null}function n3(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function nx(e){var t=n3(e).Element;return e instanceof t||e instanceof Element}function Sd(e){var t=n3(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function rle(e){if(typeof ShadowRoot>"u")return!1;var t=n3(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function RAr(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},o=t.elements[r];!Sd(o)||!y4(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(s){var l=i[s];l===!1?o.removeAttribute(s):o.setAttribute(s,l===!0?"":l)}))})}function BAr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],o=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=s.reduce(function(c,u){return c[u]="",c},{});!Sd(i)||!y4(i)||(Object.assign(i.style,l),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}var ORe={name:"applyStyles",enabled:!0,phase:"write",fn:RAr,effect:BAr,requires:["computeStyles"]};function T4(e){return e.split("-")[0]}var sy=Math.max,oj=Math.min,ix=Math.round;function ox(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),n=1,i=1;if(Sd(e)&&t){var o=e.offsetHeight,s=e.offsetWidth;s>0&&(n=ix(r.width)/s||1),o>0&&(i=ix(r.height)/o||1)}return{width:r.width/n,height:r.height/i,top:r.top/i,right:r.right/n,bottom:r.bottom/i,left:r.left/n,x:r.left/n,y:r.top/i}}function nle(e){var t=ox(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function IRe(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&rle(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function F6(e){return n3(e).getComputedStyle(e)}function DAr(e){return["table","td","th"].indexOf(y4(e))>=0}function T8(e){return((nx(e)?e.ownerDocument:e.document)||window.document).documentElement}function aj(e){return y4(e)==="html"?e:e.assignedSlot||e.parentNode||(rle(e)?e.host:null)||T8(e)}function PRe(e){return!Sd(e)||F6(e).position==="fixed"?null:e.offsetParent}function FAr(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&Sd(e)){var n=F6(e);if(n.position==="fixed")return null}var i=aj(e);for(rle(i)&&(i=i.host);Sd(i)&&["html","body"].indexOf(y4(i))<0;){var o=F6(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function xE(e){for(var t=n3(e),r=PRe(e);r&&DAr(r)&&F6(r).position==="static";)r=PRe(r);return r&&(y4(r)==="html"||y4(r)==="body"&&F6(r).position==="static")?t:r||FAr(e)||t}function ile(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _E(e,t,r){return sy(e,oj(t,r))}function zAr(e,t,r){var n=_E(e,t,r);return n>r?r:n}function VRe(){return{top:0,right:0,bottom:0,left:0}}function HRe(e){return Object.assign({},VRe(),e)}function NRe(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var jAr=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,HRe(typeof e!="number"?e:NRe(e,vE))};function UAr(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,l=T4(r.placement),c=ile(l),u=[o0,Ld].indexOf(l)>=0,d=u?"height":"width";if(!(!o||!s)){var h=jAr(i.padding,r),p=nle(o),f=c==="y"?i0:o0,m=c==="y"?wd:Ld,g=r.rects.reference[d]+r.rects.reference[c]-s[c]-r.rects.popper[d],T=s[c]-r.rects.reference[c],y=xE(o),v=y?c==="y"?y.clientHeight||0:y.clientWidth||0:0,_=g/2-T/2,x=h[f],L=v-p[d]-h[m],w=v/2-p[d]/2+_,M=_E(x,w,L),C=c;r.modifiersData[n]=(t={},t[C]=M,t.centerOffset=M-w,t)}}function GAr(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!IRe(t.elements.popper,i)||(t.elements.arrow=i))}var WAr={name:"arrow",enabled:!0,phase:"main",fn:UAr,effect:GAr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ax(e){return e.split("-")[1]}var ZAr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qAr(e){var t=e.x,r=e.y,n=window,i=n.devicePixelRatio||1;return{x:ix(t*i)/i||0,y:ix(r*i)/i||0}}function RRe(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,h=e.isFixed,p=s.x,f=p===void 0?0:p,m=s.y,g=m===void 0?0:m,T=typeof d=="function"?d({x:f,y:g}):{x:f,y:g};f=T.x,g=T.y;var y=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),_=o0,x=i0,L=window;if(u){var w=xE(r),M="clientHeight",C="clientWidth";if(w===n3(r)&&(w=T8(r),F6(w).position!=="static"&&l==="absolute"&&(M="scrollHeight",C="scrollWidth")),w=w,i===i0||(i===o0||i===Ld)&&o===bE){x=wd;var E=h&&w===L&&L.visualViewport?L.visualViewport.height:w[M];g-=E-n.height,g*=c?1:-1}if(i===o0||(i===i0||i===wd)&&o===bE){_=Ld;var O=h&&w===L&&L.visualViewport?L.visualViewport.width:w[C];f-=O-n.width,f*=c?1:-1}}var V=Object.assign({position:l},u&&ZAr),N=d===!0?qAr({x:f,y:g}):{x:f,y:g};if(f=N.x,g=N.y,c){var B;return Object.assign({},V,(B={},B[x]=v?"0":"",B[_]=y?"0":"",B.transform=(L.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",B))}return Object.assign({},V,(t={},t[x]=v?g+"px":"",t[_]=y?f+"px":"",t.transform="",t))}function KAr(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,s=o===void 0?!0:o,l=r.roundOffsets,c=l===void 0?!0:l,u={placement:T4(t.placement),variation:ax(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,RRe(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,RRe(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var BRe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:KAr,data:{}},sj={passive:!0};function XAr(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,s=n.resize,l=s===void 0?!0:s,c=n3(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",r.update,sj)}),l&&c.addEventListener("resize",r.update,sj),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",r.update,sj)}),l&&c.removeEventListener("resize",r.update,sj)}}var DRe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:XAr,data:{}},YAr={left:"right",right:"left",bottom:"top",top:"bottom"};function lj(e){return e.replace(/left|right|bottom|top/g,function(t){return YAr[t]})}var JAr={start:"end",end:"start"};function FRe(e){return e.replace(/start|end/g,function(t){return JAr[t]})}function ole(e){var t=n3(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function ale(e){return ox(T8(e)).left+ole(e).scrollLeft}function $Ar(e){var t=n3(e),r=T8(e),n=t.visualViewport,i=r.clientWidth,o=r.clientHeight,s=0,l=0;return n&&(i=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=n.offsetLeft,l=n.offsetTop)),{width:i,height:o,x:s+ale(e),y:l}}function eOr(e){var t,r=T8(e),n=ole(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=sy(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=sy(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-n.scrollLeft+ale(e),c=-n.scrollTop;return F6(i||r).direction==="rtl"&&(l+=sy(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:l,y:c}}function sle(e){var t=F6(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function zRe(e){return["html","body","#document"].indexOf(y4(e))>=0?e.ownerDocument.body:Sd(e)&&sle(e)?e:zRe(aj(e))}function wE(e,t){var r;t===void 0&&(t=[]);var n=zRe(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=n3(n),s=i?[o].concat(o.visualViewport||[],sle(n)?n:[]):n,l=t.concat(s);return i?l:l.concat(wE(aj(s)))}function lle(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tOr(e){var t=ox(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function jRe(e,t){return t===ERe?lle($Ar(e)):nx(t)?tOr(t):lle(eOr(T8(e)))}function rOr(e){var t=wE(aj(e)),r=["absolute","fixed"].indexOf(F6(e).position)>=0,n=r&&Sd(e)?xE(e):e;return nx(n)?t.filter(function(i){return nx(i)&&IRe(i,n)&&y4(i)!=="body"}):[]}function nOr(e,t,r){var n=t==="clippingParents"?rOr(e):[].concat(t),i=[].concat(n,[r]),o=i[0],s=i.reduce(function(l,c){var u=jRe(e,c);return l.top=sy(u.top,l.top),l.right=oj(u.right,l.right),l.bottom=oj(u.bottom,l.bottom),l.left=sy(u.left,l.left),l},jRe(e,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function URe(e){var t=e.reference,r=e.element,n=e.placement,i=n?T4(n):null,o=n?ax(n):null,s=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,c;switch(i){case i0:c={x:s,y:t.y-r.height};break;case wd:c={x:s,y:t.y+t.height};break;case Ld:c={x:t.x+t.width,y:l};break;case o0:c={x:t.x-r.width,y:l};break;default:c={x:t.x,y:t.y}}var u=i?ile(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case rx:c[u]=c[u]-(t[d]/2-r[d]/2);break;case bE:c[u]=c[u]+(t[d]/2-r[d]/2);break}}return c}function LE(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.boundary,s=o===void 0?SAr:o,l=r.rootBoundary,c=l===void 0?ERe:l,u=r.elementContext,d=u===void 0?QE:u,h=r.altBoundary,p=h===void 0?!1:h,f=r.padding,m=f===void 0?0:f,g=HRe(typeof m!="number"?m:NRe(m,vE)),T=d===QE?MAr:QE,y=e.rects.popper,v=e.elements[p?T:d],_=nOr(nx(v)?v:v.contextElement||T8(e.elements.popper),s,c),x=ox(e.elements.reference),L=URe({reference:x,element:y,strategy:"absolute",placement:i}),w=lle(Object.assign({},y,L)),M=d===QE?w:x,C={top:_.top-M.top+g.top,bottom:M.bottom-_.bottom+g.bottom,left:_.left-M.left+g.left,right:M.right-_.right+g.right},E=e.modifiersData.offset;if(d===QE&&E){var O=E[i];Object.keys(C).forEach(function(V){var N=[Ld,wd].indexOf(V)>=0?1:-1,B=[i0,wd].indexOf(V)>=0?"y":"x";C[V]+=O[B]*N})}return C}function iOr(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,s=r.padding,l=r.flipVariations,c=r.allowedAutoPlacements,u=c===void 0?ij:c,d=ax(n),h=d?l?ARe:ARe.filter(function(m){return ax(m)===d}):vE,p=h.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=h);var f=p.reduce(function(m,g){return m[g]=LE(e,{placement:g,boundary:i,rootBoundary:o,padding:s})[T4(g)],m},{});return Object.keys(f).sort(function(m,g){return f[m]-f[g]})}function oOr(e){if(T4(e)===tle)return[];var t=lj(e);return[FRe(e),t,FRe(t)]}function aOr(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,s=r.altAxis,l=s===void 0?!0:s,c=r.fallbackPlacements,u=r.padding,d=r.boundary,h=r.rootBoundary,p=r.altBoundary,f=r.flipVariations,m=f===void 0?!0:f,g=r.allowedAutoPlacements,T=t.options.placement,y=T4(T),v=y===T,_=c||(v||!m?[lj(T)]:oOr(T)),x=[T].concat(_).reduce(function(xe,ve){return xe.concat(T4(ve)===tle?iOr(t,{placement:ve,boundary:d,rootBoundary:h,padding:u,flipVariations:m,allowedAutoPlacements:g}):ve)},[]),L=t.rects.reference,w=t.rects.popper,M=new Map,C=!0,E=x[0],O=0;O<x.length;O++){var V=x[O],N=T4(V),B=ax(V)===rx,j=[i0,wd].indexOf(N)>=0,U=j?"width":"height",R=LE(t,{placement:V,boundary:d,rootBoundary:h,altBoundary:p,padding:u}),P=j?B?Ld:o0:B?wd:i0;L[U]>w[U]&&(P=lj(P));var W=lj(P),G=[];if(o&&G.push(R[N]<=0),l&&G.push(R[P]<=0,R[W]<=0),G.every(function(xe){return xe})){E=V,C=!1;break}M.set(V,G)}if(C)for(var K=m?3:1,$=function(xe){var ve=x.find(function(oe){var he=M.get(oe);if(he)return he.slice(0,xe).every(function(te){return te})});if(ve)return E=ve,"break"},ne=K;ne>0;ne--){var fe=$(ne);if(fe==="break")break}t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}}var sOr={name:"flip",enabled:!0,phase:"main",fn:aOr,requiresIfExists:["offset"],data:{_skip:!1}};function GRe(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function WRe(e){return[i0,Ld,wd,o0].some(function(t){return e[t]>=0})}function lOr(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=LE(t,{elementContext:"reference"}),l=LE(t,{altBoundary:!0}),c=GRe(s,n),u=GRe(l,i,o),d=WRe(c),h=WRe(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}var cOr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lOr};function uOr(e,t,r){var n=T4(e),i=[o0,i0].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=o[0],l=o[1];return s=s||0,l=(l||0)*i,[o0,Ld].indexOf(n)>=0?{x:l,y:s}:{x:s,y:l}}function dOr(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,s=ij.reduce(function(d,h){return d[h]=uOr(h,t.rects,o),d},{}),l=s[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=s}var hOr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:dOr};function pOr(e){var t=e.state,r=e.name;t.modifiersData[r]=URe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var ZRe={name:"popperOffsets",enabled:!0,phase:"read",fn:pOr,data:{}};function fOr(e){return e==="x"?"y":"x"}function mOr(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,s=r.altAxis,l=s===void 0?!1:s,c=r.boundary,u=r.rootBoundary,d=r.altBoundary,h=r.padding,p=r.tether,f=p===void 0?!0:p,m=r.tetherOffset,g=m===void 0?0:m,T=LE(t,{boundary:c,rootBoundary:u,padding:h,altBoundary:d}),y=T4(t.placement),v=ax(t.placement),_=!v,x=ile(y),L=fOr(x),w=t.modifiersData.popperOffsets,M=t.rects.reference,C=t.rects.popper,E=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,O=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(w){if(o){var B,j=x==="y"?i0:o0,U=x==="y"?wd:Ld,R=x==="y"?"height":"width",P=w[x],W=P+T[j],G=P-T[U],K=f?-C[R]/2:0,$=v===rx?M[R]:C[R],ne=v===rx?-C[R]:-M[R],fe=t.elements.arrow,xe=f&&fe?nle(fe):{width:0,height:0},ve=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:VRe(),oe=ve[j],he=ve[U],te=_E(0,M[R],xe[R]),ae=_?M[R]/2-K-te-oe-O.mainAxis:$-te-oe-O.mainAxis,ie=_?-M[R]/2+K+te+he+O.mainAxis:ne+te+he+O.mainAxis,pe=t.elements.arrow&&xE(t.elements.arrow),le=pe?x==="y"?pe.clientTop||0:pe.clientLeft||0:0,Se=(B=V==null?void 0:V[x])!=null?B:0,ke=P+ae-Se-le,Ae=P+ie-Se,Ee=_E(f?oj(W,ke):W,P,f?sy(G,Ae):G);w[x]=Ee,N[x]=Ee-P}if(l){var Be,Ue=x==="x"?i0:o0,at=x==="x"?wd:Ld,tt=w[L],ht=L==="y"?"height":"width",St=tt+T[Ue],yt=tt-T[at],Le=[i0,o0].indexOf(y)!==-1,Ye=(Be=V==null?void 0:V[L])!=null?Be:0,gt=Le?St:tt-M[ht]-C[ht]-Ye+O.altAxis,ft=Le?tt+M[ht]+C[ht]-Ye-O.altAxis:yt,Qt=f&&Le?zAr(gt,tt,ft):_E(f?gt:St,tt,f?ft:yt);w[L]=Qt,N[L]=Qt-tt}t.modifiersData[n]=N}}var gOr={name:"preventOverflow",enabled:!0,phase:"main",fn:mOr,requiresIfExists:["offset"]};function yOr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function TOr(e){return e===n3(e)||!Sd(e)?ole(e):yOr(e)}function vOr(e){var t=e.getBoundingClientRect(),r=ix(t.width)/e.offsetWidth||1,n=ix(t.height)/e.offsetHeight||1;return r!==1||n!==1}function bOr(e,t,r){r===void 0&&(r=!1);var n=Sd(t),i=Sd(t)&&vOr(t),o=T8(t),s=ox(e,i),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((y4(t)!=="body"||sle(o))&&(l=TOr(t)),Sd(t)?(c=ox(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=ale(o))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function QOr(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!r.has(l)){var c=t.get(l);c&&i(c)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function xOr(e){var t=QOr(e);return NAr.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function _Or(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function wOr(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var qRe={placement:"bottom",modifiers:[],strategy:"absolute"};function KRe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function cle(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,o=i===void 0?qRe:i;return function(s,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},qRe,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],h=!1,p={state:u,setOptions:function(g){var T=typeof g=="function"?g(u.options):g;m(),u.options=Object.assign({},o,u.options,T),u.scrollParents={reference:nx(s)?wE(s):s.contextElement?wE(s.contextElement):[],popper:wE(l)};var y=xOr(wOr([].concat(n,u.options.modifiers)));return u.orderedModifiers=y.filter(function(v){return v.enabled}),f(),p.update()},forceUpdate:function(){if(!h){var g=u.elements,T=g.reference,y=g.popper;if(KRe(T,y)){u.rects={reference:bOr(T,xE(y),u.options.strategy==="fixed"),popper:nle(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(C){return u.modifiersData[C.name]=Object.assign({},C.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var _=u.orderedModifiers[v],x=_.fn,L=_.options,w=L===void 0?{}:L,M=_.name;typeof x=="function"&&(u=x({state:u,options:w,name:M,instance:p})||u)}}}},update:_Or(function(){return new Promise(function(g){p.forceUpdate(),g(u)})}),destroy:function(){m(),h=!0}};if(!KRe(s,l))return p;p.setOptions(c).then(function(g){!h&&c.onFirstUpdate&&c.onFirstUpdate(g)});function f(){u.orderedModifiers.forEach(function(g){var T=g.name,y=g.options,v=y===void 0?{}:y,_=g.effect;if(typeof _=="function"){var x=_({state:u,name:T,instance:p,options:v}),L=function(){};d.push(x||L)}})}function m(){d.forEach(function(g){return g()}),d=[]}return p}}cle();var LOr=[DRe,ZRe,BRe,ORe];cle({defaultModifiers:LOr});var SOr=[DRe,ZRe,BRe,ORe,hOr,sOr,gOr,WAr,cOr],MOr=cle({defaultModifiers:SOr});const kOr=(e,t,r={})=>{const n={name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const u=COr(c);Object.assign(s.value,u)},requires:["computeStyles"]},i=a.computed(()=>{const{onFirstUpdate:c,placement:u,strategy:d,modifiers:h}=a.unref(r);return{onFirstUpdate:c,placement:u||"bottom",strategy:d||"absolute",modifiers:[...h||[],n,{name:"applyStyles",enabled:!1}]}}),o=a.shallowRef(),s=a.ref({styles:{popper:{position:a.unref(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return a.watch(i,c=>{const u=a.unref(o);u&&u.setOptions(c)},{deep:!0}),a.watch([e,t],([c,u])=>{l(),!(!c||!u)&&(o.value=MOr(c,u,a.unref(i)))}),a.onBeforeUnmount(()=>{l()}),{state:a.computed(()=>{var c;return{...((c=a.unref(o))==null?void 0:c.state)||{}}}),styles:a.computed(()=>a.unref(s).styles),attributes:a.computed(()=>a.unref(s).attributes),update:()=>{var c;return(c=a.unref(o))==null?void 0:c.update()},forceUpdate:()=>{var c;return(c=a.unref(o))==null?void 0:c.forceUpdate()},instanceRef:a.computed(()=>a.unref(o))}};function COr(e){const t=Object.keys(e.elements),r=Jz(t.map(i=>[i,e.styles[i]||{}])),n=Jz(t.map(i=>[i,e.attributes[i]]));return{styles:r,attributes:n}}function XRe(){let e;const t=(n,i)=>{r(),e=window.setTimeout(n,i)},r=()=>window.clearTimeout(e);return jz(()=>r()),{registerTimeout:t,cancelTimeout:r}}const ule={prefix:Math.floor(Math.random()*1e4),current:0},EOr=Symbol("elIdInjection"),dle=()=>a.getCurrentInstance()?a.inject(EOr,ule):ule,cj=e=>{const t=dle();!H1&&t===ule&&_d("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
2613
2613
|
usage: app.provide(ID_INJECTION_KEY, {
|