const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./private-DMOoB-_Q.js","./v-form-D_e5Nhu8.js","./chunk-BGWvJHEH.js","./en-US-BGEzo6dP.js","./vue-i18n-DKV6VSTe.js","./vue.runtime.esm-bundler-DGm7kVdE.js","./dist-Deh478ZK.js","./startOfWeek-Bxd3V7OW.js","./pinia-d99F2GoM.js","./matchbrackets-B00ULl18.js","./codemirror-YcO0vRQv.js","./simple-CLXRiiBz.js","./matchesonscrollbar-BuEd1lbC.js","./javascript-CWDYpi9A.js","./markdown-DqvRb3Dm.js","./xml-Cx622jgj.js","./normalizeDates-DU8o2UpA.js","./en-US-D2iCGFKZ.js","./buildMatchPatternFn-DH5kA2NT.js","./formatDistance-BFAwF3eX.js","./match-BXy5jrvc.js","./vue-router-DVuWcUA5.js","./v-form-6_rCx-tz.css"])))=>i.map(i=>d[i]);
import{Bt as e,G as t,Ht as n,It as r,J as i,K as a,L as o,N as ee,Qt as te,Sn as s,Tr as c,W as l,Yt as u,_n as d,er as f,et as p,kr as m,nt as h,o as g,pt as _,q as v,qn as y,r as ne,rr as b,rt as x,tt as S}from"./vue.runtime.esm-bundler-DGm7kVdE.js";import{Bt as C,In as re,Ln as w,cn as T,in as ie,jt as E}from"./dist-Deh478ZK.js";import{i as ae}from"./pinia-d99F2GoM.js";import{$ as oe,$t as D,A as se,At as ce,B as le,Bt as ue,C as de,Ct as fe,D as pe,Dt as me,E as he,Et as ge,F as _e,Ft as ve,G as ye,Gt as O,H as be,Ht as k,I as xe,It as Se,J as Ce,Jt as A,K as we,Kt as Te,L as Ee,Lt as De,Mt as Oe,N as ke,Nt as Ae,O as je,Ot as Me,P as Ne,Pt as Pe,Q as Fe,Qt as Ie,R as Le,Rt as Re,St as ze,T as Be,Tt as Ve,U as He,Ut as j,V as Ue,Vt as We,Wt as Ge,Xt as M,Yt as N,Z as Ke,Zt as P,_ as qe,_t as Je,a as Ye,an as Xe,at as Ze,b as Qe,bt as $e,c as et,cn as tt,ct as nt,d as rt,dn as it,dt as at,en as ot,et as st,f as ct,fn as lt,ft as ut,g as dt,gt as ft,h as pt,ht as mt,i as ht,in as gt,it as _t,jt as vt,kt as yt,ln as bt,m as xt,mn as F,n as St,nn as Ct,nt as wt,o as Tt,on as I,ot as Et,p as Dt,pn as Ot,pt as kt,q as At,qt as jt,r as Mt,rn as Nt,rt as Pt,s as Ft,sn as It,st as Lt,t as Rt,tn as zt,tt as Bt,u as L,ut as Vt,vt as Ht,w as Ut,wt as Wt,x as Gt,xt as Kt,yt as qt,z as Jt,zt as Yt}from"./v-form-D_e5Nhu8.js";import{n as Xt}from"./vue-router-DVuWcUA5.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Zt=Ot(),R=[`pointermove`,`pointerdown`,`keydown`],Qt=300*1e3,z,B=!0,V=!1,H=(0,Zt.throttle)(tn,500);function $t(){document.addEventListener(`visibilitychange`,U);for(let e of R)document.addEventListener(e,H);W()}function en(){document.removeEventListener(`visibilitychange`,U);for(let e of R)document.removeEventListener(e,H)}function tn(){V===!0&&(V=!1,P.emit(M.tabActive)),W()}function U(){document.visibilityState===`hidden`&&B===!0&&(B=!1,P.emit(M.tabIdle)),document.visibilityState===`visible`&&B===!1&&(B=!0,P.emit(M.tabActive))}function W(){z&&=(window.clearTimeout(z),null),z=window.setTimeout(()=>{V=!0,P.emit(M.tabIdle)},Qt)}var nn=(e,t)=>`
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200">
	<style>
		circle {
			fill: ${e};
		}
	</style>

	<circle cx="100" cy="100" r="100"/>

	${t?`<path d="M143.122 109.533c-.663-.167-1.216-.334-1.715-.557a3.945 3.945 0 01-1.216-.836c.332-2.952 0-5.514.276-8.411 1.106-11.253 8.132-7.688 14.439-9.526 3.928-1.114 7.855-3.398 8.851-8.078-4.315-5.069-9.128-9.526-14.383-13.314-17.094-12.255-39.444-17.157-59.747-13.76a30.762 30.762 0 0013.428 12.535s-5.502 0-10.218-3.548c-1.383.558-4.15 1.654-5.478 2.322 10.788 10.417 27.66 11.587 39.776 2.228-.055.112-1.107 1.727-2.379 8.468-2.821 14.372-10.954 13.258-21.022 9.637-20.911-7.631-32.418-.557-42.873-15.04a9.73 9.73 0 00-4.924 8.467c0 3.621 1.992 6.685 4.868 8.356 1.57-2.098 2.275-2.695 5.014-2.695-4.239 2.42-4.737 4.533-6.563 10.382-2.213 7.075-1.272 14.317-11.617 16.211-5.477.279-5.366 4.011-7.358 9.582-2.489 7.242-5.808 10.139-12.281 16.99 2.655 3.231 5.421 3.621 8.243 2.451 5.808-2.45 10.29-10.027 14.494-14.929 4.702-5.46 15.988-3.12 24.507-8.467 5.864-3.622 8.74-8.524 4.868-16.824 2.49 2.785 3.983 6.295 4.204 10.027 9.848-1.28 23.014 10.807 35.019 12.813-1.217-1.56-2.213-3.231-2.932-4.958-1.383-3.342-1.826-6.406-1.55-9.08 1.107 6.629 7.746 15.152 18.423 15.932 2.71.223 5.697-.112 8.795-1.058 3.707-1.115 7.137-2.563 11.23-1.783 3.043.557 5.864 2.117 7.635 4.735 2.655 3.9 8.464 4.735 11.064-.056-5.864-15.43-22.018-16.433-28.878-18.216z" fill="#FFF"/>`:``}
</svg>`,rn=(e,t=!0)=>{e||=T(`--theme--primary`);let n=nn(e,t),r=document.createElement(`div`);if(r.innerHTML=n.trim(),r.firstChild){let e=new XMLSerializer().serializeToString(r.firstChild);return`data:image/svg+xml;base64,`+window.btoa(e)}throw Error(`Couldn't generate favicon`)},an={id:`directus`},on={key:0,class:`hydrating`},sn=N(x({__name:`app`,setup(te){let c=F(),u=I(),d=D(),{darkMode:h,themeDark:g,themeDarkOverrides:_,themeLight:y,themeLightOverrides:x}=Ie(),{hydrating:C}=f(c);re({style:[{textContent:l(()=>`:root { --project-color: ${u.info?.project?.project_color??`var(--theme--primary)`} }`)}],title:`Directus`,titleTemplate:`%s · %projectName`,templateParams:{projectName:l(()=>u.info?.project?.project_name??`Directus`)},htmlAttrs:l(()=>({lang:d.language,dir:d.textDirection})),meta:l(()=>{let e=u.info?.project?.project_color??`#6644ff`;return[{name:`msapplication-TileColor`,content:e},{name:`theme-color`,content:e}]}),link:l(()=>{let e;return e=u.info?.project?.public_favicon?We(u.info.project.public_favicon):u.info?.project?.project_color?rn(u.info.project.project_color,!u.info.project.project_logo):`/favicon.ico`,[{rel:`icon`,href:e}]}),bodyAttrs:l(()=>({class:[h.value?`dark`:`light`]}))}),r(()=>$t()),e(()=>en());let w=l(()=>u.info?.project?.custom_css||``),T=l(()=>c.error),E=()=>{window.location.reload()};return(e,r)=>(n(),i(ee,null,[S(b(ie),{"dark-mode":b(h),"theme-light":b(y),"theme-dark":b(g),"theme-light-overrides":b(x),"theme-dark-overrides":b(_)},null,8,[`dark-mode`,`theme-light`,`theme-dark`,`theme-light-overrides`,`theme-dark-overrides`]),t(`div`,an,[S(ne,{name:`fade`},{default:s(()=>[b(C)?(n(),i(`div`,on,[S(A,{indeterminate:``})])):v(``,!0)]),_:1}),T.value?(n(),a(k,{key:0,type:`danger`,title:e.$t(`unexpected_error`),icon:`error`,center:``},{append:s(()=>[S(j,{class:`error`,error:T.value},null,8,[`error`]),S(O,{small:``,onClick:E},{default:s(()=>[p(m(e.$t(`reload_page`)),1)]),_:1})]),default:s(()=>[p(m(e.$t(`unexpected_error_copy`))+` `,1)]),_:1},8,[`title`])):b(C)?v(``,!0):(n(),a(b(Xt),{key:1}))]),(n(),a(o,{to:`#custom-css`},[p(m(w.value),1)]))],64))}}),[[`__scopeId`,`data-v-ec265e7d`]]),cn={},ln={class:`v-card-subtitle`};function un(e,t){return n(),i(`div`,ln,[u(e.$slots,`default`,{},void 0,!0)])}var dn=N(cn,[[`render`,un],[`__scopeId`,`data-v-fe6f8f22`]]),fn=x({__name:`v-hover`,props:{closeDelay:{default:0},openDelay:{default:0},disabled:{type:Boolean,default:!1},tag:{default:`div`}},setup(e){let t=e,r=y(!1);function i(){t.disabled!==!0&&setTimeout(()=>{r.value=!0},t.openDelay)}function o(){t.disabled!==!0&&setTimeout(()=>{r.value=!1},t.closeDelay)}return(t,ee)=>(n(),a(te(e.tag),{onMouseenter:i,onMouseleave:o},{default:s(()=>[u(t.$slots,`default`,c(_({hover:r.value})))]),_:3},32))}}),pn={},mn={class:`v-sheet`};function hn(e,t){return n(),i(`div`,mn,[u(e.$slots,`default`,{},void 0,!0)])}var gn=N(pn,[[`render`,hn],[`__scopeId`,`data-v-2d205cb9`]]);function _n(e){e.component(`VAvatar`,De),e.component(`VBadge`,Se),e.component(`VBreadcrumb`,ve),e.component(`VButton`,O),e.component(`VCardActions`,Pe),e.component(`VCardSubtitle`,dn),e.component(`VCardText`,Ae),e.component(`VCardTitle`,Oe),e.component(`VCard`,vt),e.component(`VCheckbox`,ce),e.component(`VCheckboxTree`,Wt),e.component(`VChip`,fe),e.component(`VDetail`,at),e.component(`VDialog`,nt),e.component(`VDivider`,ft),e.component(`VError`,j),e.component(`VFancySelect`,Bt),e.component(`VFieldTemplate`,qt),e.component(`VCollectionFieldTemplate`,Je),e.component(`VFieldList`,oe),e.component(`VForm`,Rt),e.component(`VHover`,fn),e.component(`VHighlight`,yt),e.component(`VIcon`,Ge),e.component(`VImage`,Ke),e.component(`VIconFile`,ke),e.component(`VInfo`,k),e.component(`VInput`,Kt),e.component(`VItemGroup`,_e),e.component(`VItem`,Gt),e.component(`VListGroup`,ge),e.component(`VListItemContent`,ze),e.component(`VListItemHint`,be),e.component(`VListItemIcon`,Me),e.component(`VRemove`,ye),e.component(`VListItem`,me),e.component(`VList`,Ve),e.component(`VMenu`,$e),e.component(`VDrawer`,Ze),e.component(`VNotice`,Ht),e.component(`VOverlay`,Vt),e.component(`VPagination`,Ue),e.component(`VProgressCircular`,A),e.component(`VProgressLinear`,At),e.component(`VRadio`,xe),e.component(`VResizeable`,Lt),e.component(`VSelect`,kt),e.component(`VSheet`,gn),e.component(`VSkeletonLoader`,Fe),e.component(`VSlider`,pt),e.component(`VTabItem`,Tt),e.component(`VTab`,le),e.component(`VTable`,qe),e.component(`VTabsItems`,Ye),e.component(`VTabs`,Jt),e.component(`VTemplateInput`,rt),e.component(`VTextarea`,Qe),e.component(`VTextOverflow`,Et),e.component(`VUpload`,se),e.component(`VDatePicker`,ut),e.component(`VEmojiPicker`,_t),e.component(`VWorkspace`,Ft),e.component(`VWorkspaceTile`,et),e.component(`VErrorBoundary`,wt),e.component(`TransitionBounce`,ue),e.component(`TransitionDialog`,Yt),e.component(`TransitionExpand`,Re),e.component(`RenderDisplay`,xt),e.component(`RenderTemplate`,Ce),e.component(`ExportSidebarDetail`,ct),e.component(`SidebarDetail`,Dt),e.component(`UserPopover`,we),e.component(`ValueNull`,mt),e.component(`DrawerCollection`,Ee),e.component(`DrawerFiles`,Ne),e.component(`DrawerItem`,pe),e.component(`DrawerBatch`,dt)}var G=(e,{value:t})=>{let{handler:n,middleware:r,events:i,disabled:a}=yn(t);d(()=>t,n=>{JSON.stringify(n)!==JSON.stringify(t)&&q(e,{value:n,oldValue:null})}),a!==!0&&(e.$clickOutsideHandlers=i.map(t=>({event:t,handler:t=>bn({event:t,el:e,handler:n,middleware:r})})),e.$clickOutsideHandlers.forEach(({event:t,handler:n})=>{setTimeout(()=>{e.$clickOutsideHandlers&&document.documentElement.addEventListener(t,n,!1)})}))},K=e=>{(e.$clickOutsideHandlers||[]).forEach(({event:e,handler:t})=>{document.documentElement.removeEventListener(e,t,!1)})},q=(e,{value:t,oldValue:n})=>{JSON.stringify(t)!==JSON.stringify(n)&&(K(e),G(e,{value:t}))},vn={beforeMount:G,unmounted:K,updated:q};function yn(e){let t=typeof e==`function`,n;if(t)n={handler:e,middleware:()=>!0,events:[`pointerdown`],disabled:!1};else{let t=e;n={handler:t.handler||(()=>void 0),middleware:t.middleware||(()=>!0),events:t.events||[`pointerdown`],disabled:t.disabled===void 0?!1:!!t.disabled}}return n}function bn({el:e,event:t,handler:n,middleware:r}){t.stopPropagation();let i=t.composedPath();(i?i.indexOf(e)<0:e.contains(t.target)===!1)&&r(t)&&n(t)}function xn(e,t){let n=t.instance?.$refs[t.value];n&&(e.addEventListener(`contextmenu`,J(n)),document.documentElement.addEventListener(`pointerdown`,Y(n)))}function Sn(e,t){let n=t.instance?.$refs[t.value];n&&(e.removeEventListener(`contextmenu`,J(n)),document.documentElement.removeEventListener(`pointerdown`,Y(n)))}var Cn={mounted:xn,unmounted:Sn};function J(e){return t=>{t.stopPropagation(),t.preventDefault(),e&&e.activate(t)}}function Y(e){return t=>{e&&(t.composedPath().find(t=>t.id===e.id)||e.deactivate(t))}}var wn={mounted:e=>{e.onUpdate=()=>X(e),e.shadow=document.createElement(`div`),e.shadow.setAttribute(`aria-hidden`,`true`),Tn(e),document.body.appendChild(e.shadow),X(e),e.addEventListener(`input`,e.onUpdate)},updated:e=>{e.onUpdate&&e.onUpdate()},unmounted:e=>{document.body.removeChild(e.shadow),e.onUpdate&&e.removeEventListener(`input`,e.onUpdate)}};function X(e){let t=e.value||e.placeholder;e.shadow.textContent=t,e.style.inlineSize=`${e.shadow.scrollWidth}px`}function Tn(e){let t=window.getComputedStyle(e);Object.assign(e.shadow.style,{position:`absolute`,insetBlockStart:`0`,insetInlineStart:`0`,visibility:`hidden`,blockSize:`0`,overflow:`hidden`,whiteSpace:`pre`,fontSize:t.fontSize,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontStyle:t.fontStyle,letterSpacing:t.letterSpacing,textTransform:t.textTransform,paddingInlineEnd:`calc(${t.paddingInlineEnd} + ${t.borderInlineEndWidth})`,paddingInlineStart:`calc(${t.paddingInlineStart} + ${t.borderInlineStartWidth})`})}var En={beforeMount:Z,updated:Z};function Z(e,t){typeof t.value==`object`&&`value`in t.value?e.innerHTML=L(t.value.value,t.value):e.innerHTML=L(t.value??``)}var Dn={mounted(e,t){t.value&&e.addEventListener(`focusout`,Q)},updated(e,t){t.oldValue&&!t.value&&(e.removeEventListener(`focusout`,Q),e.contains(document.activeElement)||e.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,composed:!0,view:window}))),t.value&&!t.oldValue&&(e.addEventListener(`focusout`,Q),e.contains(document.activeElement)||e.dispatchEvent(new FocusEvent(`focusin`,{bubbles:!0})))}};function Q(e){e.preventDefault(),e.stopPropagation()}function On(e){e.directive(`click-outside`,vn),e.directive(`context-menu`,Cn),e.directive(`focus`,jt),e.directive(`prevent-focusout`,Dn),e.directive(`input-auto-width`,wn),e.directive(`md`,En),e.directive(`tooltip`,Te)}var $=h(()=>ot(()=>import(`./private-DMOoB-_Q.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url));function kn(e){e.component(`PublicView`,Be),e.component(`PrivateView`,$),e.component(`SharedView`,Ut)}function An(e){e.provide(C,{useAppStore:F,useCollectionsStore:Ct,useFieldsStore:gt,useFlowsStore:je,useInsightsStore:he,useNotificationsStore:Xe,usePermissionsStore:st,usePresetsStore:Le,useRelationsStore:Nt,useRequestsStore:it,useServerStore:I,useSettingsStore:He,useTranslationsStore:zt,useUserStore:D}),e.provide(`api`,tt),e.provide(`sdk`,bt),e.provide(E,ht())}jn();async function jn(){console.log(lt),console.info(`Hey! Interested in helping build this open-source data management platform?
If so, join our growing team of contributors at: https://directus.chat`),console.info(`%c🐰 Starting Directus...`,`color:Green`),console.time(`🕓 Application Loaded`);let e=g(sn);e.use(It),e.use(ae()),e.use(w()),e.config.errorHandler=(e,t,n)=>{let r=Pt(t);return console.warn(`[app-${r}-error] ${n}`),console.warn(e),!1},On(e),_n(e),kn(e),await St(),Mt(e),e.use(de),An(e),e.mount(`#app`),console.timeEnd(`🕓 Application Loaded`),console.group(`%c✨ Project Information`,`color:DodgerBlue`),console.info(`%cEnvironment: production`,`color:DodgerBlue`),console.groupEnd(),window.addEventListener(`dragover`,e=>e.preventDefault(),!1),window.addEventListener(`drop`,e=>e.preventDefault(),!1)}