studiograph 1.3.44-next.2 → 1.3.44-next.21

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.
Files changed (97) hide show
  1. package/dist/server/routes/insights-api.js +7 -1
  2. package/dist/server/routes/insights-api.js.map +1 -1
  3. package/dist/services/auth-service.d.ts +2 -0
  4. package/dist/services/auth-service.js +15 -1
  5. package/dist/services/auth-service.js.map +1 -1
  6. package/dist/services/insights.js +52 -24
  7. package/dist/services/insights.js.map +1 -1
  8. package/dist/services/sync/model-factory.d.ts +6 -3
  9. package/dist/services/sync/model-factory.js +19 -5
  10. package/dist/services/sync/model-factory.js.map +1 -1
  11. package/dist/web/_app/immutable/assets/2.usgqms6b.css +1 -0
  12. package/dist/web/_app/immutable/assets/4.B3dbj90y.css +1 -0
  13. package/dist/web/_app/immutable/assets/{7.5LBMlZdT.css → 7.D55lTQ_F.css} +1 -1
  14. package/dist/web/_app/immutable/assets/8.DKYjn_lM.css +1 -0
  15. package/dist/web/_app/immutable/assets/ViewToolbar.CnlOM0gQ.css +1 -0
  16. package/dist/web/_app/immutable/chunks/1BE_eYuA.js +1 -0
  17. package/dist/web/_app/immutable/chunks/{Sk0ODu4Y.js → B1c_qzmY.js} +1 -1
  18. package/dist/web/_app/immutable/chunks/{CFtRXHDP.js → BKHfe9E-.js} +1 -1
  19. package/dist/web/_app/immutable/chunks/{Diui_MO0.js → BN6gr1HX.js} +1 -1
  20. package/dist/web/_app/immutable/chunks/{DC9z5DEo.js → BVhp5b7F.js} +1 -1
  21. package/dist/web/_app/immutable/chunks/BZ2Q53D5.js +1 -0
  22. package/dist/web/_app/immutable/chunks/{Bs4ovbtO.js → BdNoKWAr.js} +2 -2
  23. package/dist/web/_app/immutable/chunks/BgRr0V7g.js +1 -0
  24. package/dist/web/_app/immutable/chunks/BpdrS9kL.js +1 -0
  25. package/dist/web/_app/immutable/chunks/{DQJwHeKh.js → BzjUB_Ym.js} +1 -1
  26. package/dist/web/_app/immutable/chunks/{BU2bHQbQ.js → C1S8fyYX.js} +1 -1
  27. package/dist/web/_app/immutable/chunks/{CSzKZPD4.js → C74mA5aC.js} +1 -1
  28. package/dist/web/_app/immutable/chunks/{DSh-OF2y.js → CCA2E2CK.js} +1 -1
  29. package/dist/web/_app/immutable/chunks/{DodWDTE5.js → Ca2kuiZq.js} +1 -1
  30. package/dist/web/_app/immutable/chunks/CwUXqlAx.js +1 -0
  31. package/dist/web/_app/immutable/chunks/{APIqItee.js → CwnWYvfz.js} +1 -1
  32. package/dist/web/_app/immutable/chunks/{BUcIsKRk.js → D-H9HeD_.js} +1 -1
  33. package/dist/web/_app/immutable/chunks/{DQ5NTKSo.js → D8mTIH9Y.js} +1 -1
  34. package/dist/web/_app/immutable/chunks/DD3_vCgV.js +1 -0
  35. package/dist/web/_app/immutable/chunks/{D-yNNNdf.js → DHholpIc.js} +1 -1
  36. package/dist/web/_app/immutable/chunks/{vZ2iBqLE.js → DIBaaeCL.js} +1 -1
  37. package/dist/web/_app/immutable/chunks/DLZAjAct.js +1 -0
  38. package/dist/web/_app/immutable/chunks/DO03XMS-.js +1 -0
  39. package/dist/web/_app/immutable/chunks/DYLAPjKD.js +1 -0
  40. package/dist/web/_app/immutable/chunks/DeyUjeaz.js +1 -0
  41. package/dist/web/_app/immutable/chunks/Dgs7g6Xf.js +1 -0
  42. package/dist/web/_app/immutable/chunks/{CRnhIQbv.js → DkuxRPZv.js} +1 -1
  43. package/dist/web/_app/immutable/chunks/Mtmwulo1.js +1 -0
  44. package/dist/web/_app/immutable/chunks/NuvuAeCX.js +1 -0
  45. package/dist/web/_app/immutable/chunks/csGnu8Rb.js +1 -0
  46. package/dist/web/_app/immutable/chunks/e8QVPHqJ.js +5 -0
  47. package/dist/web/_app/immutable/chunks/oz3vOf3Y.js +1 -0
  48. package/dist/web/_app/immutable/chunks/{DiWKchgv.js → pQmxOXKv.js} +1 -1
  49. package/dist/web/_app/immutable/chunks/{b0XUoOIH.js → usxM-xOh.js} +2 -2
  50. package/dist/web/_app/immutable/chunks/y7AXCX7T.js +1 -0
  51. package/dist/web/_app/immutable/chunks/{DT3KtxWU.js → yUs562n0.js} +1 -1
  52. package/dist/web/_app/immutable/entry/{app.DA5OyPOi.js → app.Ci1ytk_v.js} +2 -2
  53. package/dist/web/_app/immutable/entry/start.DNk71wbw.js +1 -0
  54. package/dist/web/_app/immutable/nodes/0.D4NmzO9T.js +2 -0
  55. package/dist/web/_app/immutable/nodes/{1.y3j9wcQE.js → 1.B49NrV3g.js} +1 -1
  56. package/dist/web/_app/immutable/nodes/{10.D03BZcr1.js → 10.OXZpT8w9.js} +1 -1
  57. package/dist/web/_app/immutable/nodes/2.DaqdIYKU.js +84 -0
  58. package/dist/web/_app/immutable/nodes/3.Q_RC4D9P.js +1 -0
  59. package/dist/web/_app/immutable/nodes/4.CIDSQYhF.js +11 -0
  60. package/dist/web/_app/immutable/nodes/{5.CipwuwB3.js → 5.U-zEu0Mw.js} +1 -1
  61. package/dist/web/_app/immutable/nodes/{6.Daxwm3Lw.js → 6.SYsyu9GD.js} +1 -1
  62. package/dist/web/_app/immutable/nodes/7.BLgQGI-C.js +2 -0
  63. package/dist/web/_app/immutable/nodes/8.67Laxdj-.js +1 -0
  64. package/dist/web/_app/immutable/nodes/{9.BuTZk7Le.js → 9.D0aRCiZD.js} +1 -1
  65. package/dist/web/_app/version.json +1 -1
  66. package/dist/web/index.html +11 -11
  67. package/package.json +1 -1
  68. package/dist/web/_app/immutable/assets/2.DNpjFx0k.css +0 -1
  69. package/dist/web/_app/immutable/assets/4.CjSyz-ka.css +0 -1
  70. package/dist/web/_app/immutable/assets/8.DfcI2i9H.css +0 -1
  71. package/dist/web/_app/immutable/assets/ViewToolbar.BX74Ki7U.css +0 -1
  72. package/dist/web/_app/immutable/chunks/0rsp5-Up.js +0 -1
  73. package/dist/web/_app/immutable/chunks/0wBGAod7.js +0 -1
  74. package/dist/web/_app/immutable/chunks/B3NI-DOv.js +0 -1
  75. package/dist/web/_app/immutable/chunks/BAAbylyg.js +0 -1
  76. package/dist/web/_app/immutable/chunks/BHue2Ock.js +0 -1
  77. package/dist/web/_app/immutable/chunks/BPXdu_FX.js +0 -1
  78. package/dist/web/_app/immutable/chunks/BgBJ0u3M.js +0 -1
  79. package/dist/web/_app/immutable/chunks/Bnl5ADsW.js +0 -1
  80. package/dist/web/_app/immutable/chunks/Bt5_mycY.js +0 -1
  81. package/dist/web/_app/immutable/chunks/By_Wtb5J.js +0 -1
  82. package/dist/web/_app/immutable/chunks/DCVmM0L5.js +0 -1
  83. package/dist/web/_app/immutable/chunks/DHtLlmE0.js +0 -1
  84. package/dist/web/_app/immutable/chunks/DQYNi3YK.js +0 -5
  85. package/dist/web/_app/immutable/chunks/DSkxw4Ss.js +0 -1
  86. package/dist/web/_app/immutable/chunks/DVx_0hnZ.js +0 -1
  87. package/dist/web/_app/immutable/chunks/KHKAD2Ng.js +0 -1
  88. package/dist/web/_app/immutable/chunks/azUmHUDT.js +0 -1
  89. package/dist/web/_app/immutable/chunks/lsAKkphT.js +0 -1
  90. package/dist/web/_app/immutable/entry/start.DTjSVtws.js +0 -1
  91. package/dist/web/_app/immutable/nodes/0.BIvpQ3Qk.js +0 -2
  92. package/dist/web/_app/immutable/nodes/2.Du0xZVQg.js +0 -84
  93. package/dist/web/_app/immutable/nodes/3.weQEi2lI.js +0 -1
  94. package/dist/web/_app/immutable/nodes/4.DJyhWznw.js +0 -11
  95. package/dist/web/_app/immutable/nodes/7.TxeJDMtw.js +0 -2
  96. package/dist/web/_app/immutable/nodes/8.DWNdmB4l.js +0 -1
  97. /package/dist/web/_app/immutable/assets/{checkbox.D6tMDJWk.css → index.D6tMDJWk.css} +0 -0
@@ -0,0 +1 @@
1
+ import{bB as Le,aD as Ge,e as A,g as U,s as P,aE as ne,bC as vt}from"./CCA2E2CK.js";class Ae{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ue{constructor(t,n){this.status=t,this.location=n}}class Pe extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function wt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function yt(e){return e.split("%25").map(decodeURI).join("%25")}function bt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function me({href:e}){return e.split("#")[0]}function kt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(s,o){if(o==="get"||o==="getAll"||o==="has")return(c,...d)=>(n(c),s[o](c,...d));t();const l=Reflect.get(s,o);return typeof l=="function"?l.bind(s):l}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];r&&i.push("hash");for(const s of i)Object.defineProperty(a,s,{get(){return t(),e[s]},enumerable:!0,configurable:!0});return a}function Et(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function St(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const Rt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&G.delete(Te(e)),Rt(e,t));const G=new Map;function xt(e,t){const n=Te(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...i}=JSON.parse(r.textContent);const s=r.getAttribute("data-ttl");return s&&G.set(n,{body:a,init:i,ttl:1e3*Number(s)}),r.getAttribute("data-b64")!==null&&(a=St(a)),Promise.resolve(new Response(a,i))}return window.fetch(e,t)}function Lt(e,t,n){if(G.size>0){const r=Te(e,n),a=G.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);G.delete(r)}}return window.fetch(t,n)}function Te(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${Et(...a)}"]`}return r}const At=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Ut(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Tt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const s=r.split(/\[(.+?)\](?!\])/);return"/"+s.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return _e(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return _e(String.fromCharCode(...l.slice(2).split("-").map(v=>parseInt(v,16))));const d=At.exec(l),[,p,f,u,h]=d;return t.push({name:u,matcher:h,optional:!!p,rest:!!f,chained:f?c===1&&s[0]==="":!1}),f?"([^]*?)":p?"([^/]*)?":"([^/]+?)"}return _e(l)}).join("")}).join("")}/?$`),params:t}}function Pt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Tt(e){return e.slice(1).split("/").filter(Pt)}function It(e,t,n){const r={},a=e.slice(1),i=a.filter(o=>o!==void 0);let s=0;for(let o=0;o<t.length;o+=1){const l=t[o];let c=a[o-s];if(l.chained&&l.rest&&s&&(c=a.slice(o-s,o+1).filter(d=>d).join("/"),s=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||n[l.matcher](c)){r[l.name]=c;const d=t[o+1],p=a[o+1];d&&!d.rest&&d.optional&&p&&l.chained&&(s=0),!d&&!p&&Object.keys(r).length===i.length&&(s=0);continue}if(l.optional&&l.chained){s++;continue}return}if(!s)return r}function _e(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ot({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[l,c,d]])=>{const{pattern:p,params:f}=Ut(o),u={id:o,exec:h=>{const v=p.exec(h);if(v)return It(v,f,r)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...c||[]].map(s),leaf:i(l)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(o){const l=o<0;return l&&(o=~o),[l,e[o]]}function s(o){return o===void 0?o:[a.has(o),e[o]]}}function Xe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Me(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const x=globalThis.__sveltekit_1rnh5at?.base??"",Ct=globalThis.__sveltekit_1rnh5at?.assets??x??"",$t="1774894833558",Qe="sveltekit:snapshot",Ze="sveltekit:scroll",et="sveltekit:states",jt="sveltekit:pageurl",B="sveltekit:history",H="sveltekit:navigation",N={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},he=location.origin;function Ie(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function D(){return{x:pageXOffset,y:pageYOffset}}function V(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const He={...N,"":N.hover};function tt(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function nt(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=tt(e)}}function be(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,i=!r||!!a||pe(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),s=r?.origin===he&&e.hasAttribute("download");return{url:r,external:i,target:a,download:s}}function re(e){let t=null,n=null,r=null,a=null,i=null,s=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=V(o,"preload-code")),a===null&&(a=V(o,"preload-data")),t===null&&(t=V(o,"keepfocus")),n===null&&(n=V(o,"noscroll")),i===null&&(i=V(o,"reload")),s===null&&(s=V(o,"replacestate")),o=tt(o);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:He[r??"off"],preload_data:He[a??"off"],keepfocus:l(t),noscroll:l(n),reload:l(i),replace_state:l(s)}}function We(e){const t=Le(e);let n=!0;function r(){n=!0,t.update(s=>s)}function a(s){n=!1,t.set(s)}function i(s){let o;return t.subscribe(l=>{(o===void 0||n&&l!==o)&&s(o=l)})}return{notify:r,set:a,subscribe:i}}const rt={v:()=>{}};function Nt(){const{set:e,subscribe:t}=Le(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Ct}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const s=(await a.json()).version!==$t;return s&&(e(!0),rt.v(),clearTimeout(n)),s}catch{return!1}}return{subscribe:t,check:r}}function pe(e,t,n){return e.origin!==he||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function cn(e){}const at=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...at];const Dt=new Set([...at]);[...Dt];function qt(e){return e.filter(t=>t!=null)}function Oe(e){return e instanceof Ae||e instanceof Pe?e.status:500}function Vt(e){return e instanceof Pe?e.text:"Internal Error"}let b,W,ve;const Bt=Ge.toString().includes("$$")||/function \w+\(\) \{\}/.test(Ge.toString());Bt?(b={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},W={current:null},ve={current:!1}):(b=new class{#e=A({});get data(){return U(this.#e)}set data(t){P(this.#e,t)}#t=A(null);get form(){return U(this.#t)}set form(t){P(this.#t,t)}#n=A(null);get error(){return U(this.#n)}set error(t){P(this.#n,t)}#r=A({});get params(){return U(this.#r)}set params(t){P(this.#r,t)}#a=A({id:null});get route(){return U(this.#a)}set route(t){P(this.#a,t)}#o=A({});get state(){return U(this.#o)}set state(t){P(this.#o,t)}#s=A(-1);get status(){return U(this.#s)}set status(t){P(this.#s,t)}#i=A(new URL("https://example.com"));get url(){return U(this.#i)}set url(t){P(this.#i,t)}},W=new class{#e=A(null);get current(){return U(this.#e)}set current(t){P(this.#e,t)}},ve=new class{#e=A(!1);get current(){return U(this.#e)}set current(t){P(this.#e,t)}},rt.v=()=>ve.current=!0);function ot(e){Object.assign(b,e)}const Je={spanContext(){return Kt},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Kt={traceId:"",spanId:"",traceFlags:0},Ft=new Set(["icon","shortcut icon","apple-touch-icon"]),j=Xe(Ze)??{},J=Xe(Qe)??{},$={url:We({}),page:We({}),navigating:Le(null),updated:Nt()};function Ce(e){j[e]=D()}function Gt(e,t){let n=e+1;for(;j[n];)delete j[n],n+=1;for(n=t+1;J[n];)delete J[n],n+=1}function Y(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function st(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(x||"/");e&&await e.update()}}function ke(){}let $e,Ee,ae,T,Se,w;const oe=[],se=[];let L=null;function ie(){L?.fork?.then(e=>e?.discard()),L=null}const te=new Map,it=new Set,Mt=new Set,M=new Set;let _={branch:[],error:null,url:null},lt=!1,le=!1,Ye=!0,z=!1,F=!1,ct=!1,Q=!1,je,y,R,I;const ce=new Set;let we;const ue=new Map;async function hn(e,t,n){globalThis.__sveltekit_1rnh5at?.data&&globalThis.__sveltekit_1rnh5at.data,document.URL!==location.href&&(location.href=location.href),w=e,await e.hooks.init?.(),$e=Ot(e),T=document.documentElement,Se=t,Ee=e.nodes[0],ae=e.nodes[1],Ee(),ae(),y=history.state?.[B],R=history.state?.[H],y||(y=R=Date.now(),history.replaceState({...history.state,[B]:y,[H]:R},""));const r=j[y];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await rn(Se,n)):(await K({type:"enter",url:Ie(w.hash?sn(new URL(location.href)):location.href),replace_state:!0}),a()),nn()}async function Ht(e=!0,t=!0){if(await(we||=Promise.resolve()),!we)return;we=null;const n=I={},r=await Z(_.url,!0);if(ie(),Q&&ue.forEach(({resource:a})=>{a.refresh?.()}),e){const a=b.state,i=r&&await Ve(r);if(!i||n!==I)return;if(i.type==="redirect")return Ne(new URL(i.location,_.url).href,{replaceState:!0},1,n);t||(i.props.page.state=a),ot(i.props.page),_=i.state,Re(),je.$set(i.props)}else Re();await Promise.all([...ue.values()].map(({resource:a})=>a)).catch(ke)}function Re(){oe.length=0,Q=!1}function ut(e){se.some(t=>t?.snapshot)&&(J[e]=se.map(t=>t?.snapshot?.capture()))}function ft(e){J[e]?.forEach((t,n)=>{se[n]?.snapshot?.restore(t)})}function ze(){Ce(y),Me(Ze,j),ut(R),Me(Qe,J)}async function Ne(e,t,n,r){let a;t.invalidateAll&&ie(),await K({type:"goto",url:Ie(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Q=!0,a=[...ue.keys()]),t.invalidate&&t.invalidate.forEach(tn)}}),t.invalidateAll&&ne().then(ne).then(()=>{ue.forEach(({resource:i},s)=>{a?.includes(s)&&i.refresh?.()})})}async function Wt(e){if(e.id!==L?.id){ie();const t={};ce.add(t),L={id:e.id,token:t,promise:Ve({...e,preload:t}).then(n=>(ce.delete(t),n.type==="loaded"&&n.state.error&&ie(),n)),fork:null}}return L.promise}async function ye(e){const t=(await Z(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function dt(e,t,n){_=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(b,e.props.page),je=new w.root({target:t,props:{...e.props,stores:$,components:se},hydrate:n,sync:!1}),await Promise.resolve(),ft(R),n){const a={from:null,to:{params:_.params,route:{id:_.route?.id??null},url:new URL(location.href),scroll:j[y]??D()},willUnload:!1,type:"enter",complete:Promise.resolve()};M.forEach(i=>i(a))}le=!0}function fe({url:e,params:t,branch:n,status:r,error:a,route:i,form:s}){let o="never";if(x&&(e.pathname===x||e.pathname===x+"/"))o="always";else for(const u of n)u?.slash!==void 0&&(o=u.slash);e.pathname=wt(e.pathname,o),e.search=e.search;const l={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:i},props:{constructors:qt(n).map(u=>u.node.component),page:Fe(b)}};s!==void 0&&(l.props.form=s);let c={},d=!b,p=0;for(let u=0;u<Math.max(n.length,_.branch.length);u+=1){const h=n[u],v=_.branch[u];h?.data!==v?.data&&(d=!0),h&&(c={...c,...h.data},d&&(l.props[`data_${p}`]=c),p+=1)}return(!_.url||e.href!==_.url.href||_.error!==a||s!==void 0&&s!==b.form||d)&&(l.props.page={error:a,params:t,route:{id:i?.id??null},state:{},status:r,url:new URL(e),form:s??null,data:d?c:b.data}),l}async function De({loader:e,parent:t,url:n,params:r,route:a,server_data_node:i}){let s=null,o=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();if(c.universal?.load){let d=function(...f){for(const u of f){const{href:h}=new URL(u,n);l.dependencies.add(h)}};const p={tracing:{enabled:!1,root:Je,current:Je},route:new Proxy(a,{get:(f,u)=>(o&&(l.route=!0),f[u])}),params:new Proxy(r,{get:(f,u)=>(o&&l.params.add(u),f[u])}),data:i?.data??null,url:kt(n,()=>{o&&(l.url=!0)},f=>{o&&l.search_params.add(f)},w.hash),async fetch(f,u){f instanceof Request&&(u={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:[...f.headers].length>0?f?.headers:void 0,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...u});const{resolved:h,promise:v}=ht(f,u,n);return o&&d(h.href),v},setHeaders:()=>{},depends:d,parent(){return o&&(l.parent=!0),t()},untrack(f){o=!1;try{return f()}finally{o=!0}}};s=await c.universal.load.call(null,p)??null}return{node:c,loader:e,server:i,universal:c.universal?.load?{type:"data",data:s,uses:l}:null,data:s??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function ht(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const i=le?Lt(r,a.href,t):xt(r,t);return{resolved:a,promise:i}}function Jt(e,t,n,r,a,i){if(Q)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const s of a.search_params)if(r.has(s))return!0;for(const s of a.params)if(i[s]!==_.params[s])return!0;for(const s of a.dependencies)if(oe.some(o=>o(new URL(s))))return!0;return!1}function qe(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Yt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),i=t.searchParams.getAll(r);a.every(s=>i.includes(s))&&i.every(s=>a.includes(s))&&n.delete(r)}return n}function zt({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Fe(b),constructors:[]}}}async function Ve({id:e,invalidating:t,url:n,params:r,route:a,preload:i}){if(L?.id===e)return ce.delete(L.token),L.promise;const{errors:s,layouts:o,leaf:l}=a,c=[...o,l];s.forEach(m=>m?.().catch(()=>{})),c.forEach(m=>m?.[1]().catch(()=>{}));const d=_.url?e!==de(_.url):!1,p=_.route?a.id!==_.route.id:!1,f=Yt(_.url,n);let u=!1;const h=c.map(async(m,g)=>{if(!m)return;const E=_.branch[g];return m[1]===E?.loader&&!Jt(u,p,d,f,E.universal?.uses,r)?E:(u=!0,De({loader:m[1],url:n,params:r,route:a,parent:async()=>{const O={};for(let C=0;C<g;C+=1)Object.assign(O,(await h[C])?.data);return O},server_data_node:qe(m[0]?{type:"skip"}:null,m[0]?E?.server:void 0)}))});for(const m of h)m.catch(()=>{});const v=[];for(let m=0;m<c.length;m+=1)if(c[m])try{v.push(await h[m])}catch(g){if(g instanceof Ue)return{type:"redirect",location:g.location};if(ce.has(i))return zt({error:await X(g,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let E=Oe(g),S;if(g instanceof Ae)S=g.body;else{if(await $.updated.check())return await st(),await Y(n);S=await X(g,{params:r,url:n,route:{id:a.id}})}const O=await Xt(m,v,s);return O?fe({url:n,params:r,branch:v.slice(0,O.idx).concat(O.node),status:E,error:S,route:a}):await gt(n,{id:a.id},S,E)}else v.push(void 0);return fe({url:n,params:r,branch:v,status:200,error:null,route:a,form:t?void 0:null})}async function Xt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function Be({status:e,error:t,url:n,route:r}){const a={};let i=null;try{const s=await De({loader:Ee,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:qe(i)}),o={node:await ae(),loader:ae,universal:null,server:null,data:null};return fe({url:n,params:a,branch:[s,o],status:e,error:t,route:null})}catch(s){if(s instanceof Ue)return Ne(new URL(s.location,location.href),{},0);throw s}}async function Qt(e){const t=e.href;if(te.has(t))return te.get(t);let n;try{const r=(async()=>{let a=await w.hooks.reroute({url:new URL(e),fetch:async(i,s)=>ht(i,s,e).promise})??e;if(typeof a=="string"){const i=new URL(e);w.hash?i.hash=a:i.pathname=a,a=i}return a})();te.set(t,r),n=await r}catch{te.delete(t);return}return n}async function Z(e,t){if(e&&!pe(e,x,w.hash)){const n=await Qt(e);if(!n)return;const r=Zt(n);for(const a of $e){const i=a.exec(r);if(i)return{id:de(e),invalidating:t,route:a,params:bt(i),url:e}}}}function Zt(e){return yt(w.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(x.length))||"/"}function de(e){return(w.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function pt({url:e,type:t,intent:n,delta:r,event:a,scroll:i}){let s=!1;const o=Ke(_,n,e,t,i??null);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const l={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return z||it.forEach(c=>c(l)),s?null:o}async function K({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s={},redirect_count:o=0,nav_token:l={},accept:c=ke,block:d=ke,event:p}){const f=I;I=l;const u=await Z(t,!1),h=e==="enter"?Ke(_,u,t,e):pt({url:t,type:e,delta:n?.delta,intent:u,scroll:n?.scroll,event:p});if(!h){d(),I===l&&(I=f);return}const v=y,m=R;c(),z=!0,le&&h.navigation.type!=="enter"&&$.navigating.set(W.current=h.navigation);let g=u&&await Ve(u);if(!g){if(pe(t,x,w.hash))return await Y(t,i);g=await gt(t,{id:null},await X(new Pe(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,I!==l)return h.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(o<20){await K({type:e,url:new URL(g.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s,redirect_count:o+1,nav_token:l}),h.fulfil(void 0);return}g=await Be({status:500,error:await X(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else g.props.page.status>=400&&await $.updated.check()&&(await st(),await Y(t,i));if(Re(),Ce(v),ut(m),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),s=n?n.state:s,!n){const k=i?0:1,ee={[B]:y+=k,[H]:R+=k,[et]:s};(i?history.replaceState:history.pushState).call(history,ee,"",t),i||Gt(y,R)}const E=u&&L?.id===u.id?L.fork:null;L=null,g.props.page.state=s;let S;if(le){const k=(await Promise.all(Array.from(Mt,q=>q(h.navigation)))).filter(q=>typeof q=="function");if(k.length>0){let q=function(){k.forEach(ge=>{M.delete(ge)})};k.push(q),k.forEach(ge=>{M.add(ge)})}_=g.state,g.props.page&&(g.props.page.url=t);const ee=E&&await E;ee?S=ee.commit():(je.$set(g.props),ot(g.props.page),S=vt?.()),ct=!0}else await dt(g,Se,!1);const{activeElement:O}=document;await S,await ne(),await ne();let C=null;if(Ye){const k=n?n.scroll:a?D():null;k?scrollTo(k.x,k.y):(C=t.hash&&document.getElementById(mt(t)))?C.scrollIntoView():scrollTo(0,0)}const _t=document.activeElement!==O&&document.activeElement!==document.body;!r&&!_t&&on(t,!C),Ye=!0,g.props.page&&Object.assign(b,g.props.page),z=!1,e==="popstate"&&ft(R),h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=D()),M.forEach(k=>k(h.navigation)),$.navigating.set(W.current=null)}async function gt(e,t,n,r,a){return e.origin===he&&e.pathname===location.pathname&&!lt?await Be({status:r,error:n,url:e,route:t}):await Y(e,a)}function en(){let e,t={element:void 0,href:void 0},n;T.addEventListener("mousemove",o=>{const l=o.target;clearTimeout(e),e=setTimeout(()=>{i(l,N.hover)},20)});function r(o){o.defaultPrevented||i(o.composedPath()[0],N.tap)}T.addEventListener("mousedown",r),T.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const l of o)l.isIntersecting&&(ye(new URL(l.target.href)),a.unobserve(l.target))},{threshold:0});async function i(o,l){const c=nt(o,T),d=c===t.element&&c?.href===t.href&&l>=n;if(!c||d)return;const{url:p,external:f,download:u}=be(c,x,w.hash);if(f||u)return;const h=re(c),v=p&&de(_.url)===de(p);if(!(h.reload||v))if(l<=h.preload_data){t={element:c,href:c.href},n=N.tap;const m=await Z(p,!1);if(!m)return;Wt(m)}else l<=h.preload_code&&(t={element:c,href:c.href},n=l,ye(p))}function s(){a.disconnect();for(const o of T.querySelectorAll("a")){const{url:l,external:c,download:d}=be(o,x,w.hash);if(c||d)continue;const p=re(o);p.reload||(p.preload_code===N.viewport&&a.observe(o),p.preload_code===N.eager&&ye(l))}}M.add(s),s()}function X(e,t){if(e instanceof Ae)return e.body;const n=Oe(e),r=Vt(e);return w.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function pn(e,t={}){return e=new URL(Ie(e)),e.origin!==he?Promise.reject(new Error("goto: invalid URL")):Ne(e,t,0)}function tn(e){if(typeof e=="function")oe.push(e);else{const{href:t}=new URL(e,location.href);oe.push(n=>n.href===t)}}function gn(){return Q=!0,Ht()}function nn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(ze(),!z){const r=Ke(_,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};it.forEach(i=>i(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ze()}),navigator.connection?.saveData||en(),T.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=nt(t.composedPath()[0],T);if(!n)return;const{url:r,external:a,target:i,download:s}=be(n,x,w.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const o=re(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;const[c,d]=(w.hash?r.hash.replace(/^#/,""):r.href).split("#"),p=c===me(location);if(a||o.reload&&(!p||!d)){pt({url:r,type:"link",event:t})?z=!0:t.preventDefault();return}if(d!==void 0&&p){const[,f]=_.url.href.split("#");if(f===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(d));u&&(u.scrollIntoView(),u.focus())}return}if(F=!0,Ce(y),e(r),!o.replace_state)return;F=!1}t.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await K({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href,event:t})}),T.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const s=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(pe(s,x,!1))return;const o=t.target,l=re(o);if(l.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(o,r);s.search=new URLSearchParams(c).toString(),K({type:"form",url:s,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??s.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!xe){if(t.state?.[B]){const n=t.state[B];if(I={},n===y)return;const r=j[n],a=t.state[et]??{},i=new URL(t.state[jt]??location.href),s=t.state[H],o=_.url?me(location)===me(_.url):!1;if(s===R&&(ct||o)){a!==b.state&&(b.state=a),e(i),j[y]=D(),r&&scrollTo(r.x,r.y),y=n;return}const c=n-y;await K({type:"popstate",url:i,popped:{state:a,scroll:r,delta:c},accept:()=>{y=n,R=s},block:()=>{history.go(-c)},nav_token:I,event:t})}else if(!F){const n=new URL(location.href);e(n),w.hash&&location.reload()}}}),addEventListener("hashchange",()=>{F&&(F=!1,history.replaceState({...history.state,[B]:++y,[H]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Ft.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&$.navigating.set(W.current=null)});function e(t){_.url=b.url=t,$.page.set(Fe(b)),$.page.notify()}}async function rn(e,{status:t=200,error:n,node_ids:r,params:a,route:i,server_route:s,data:o,form:l}){lt=!0;const c=new URL(location.href);let d;({params:a={},route:i={id:null}}=await Z(c,!1)||{}),d=$e.find(({id:u})=>u===i.id);let p,f=!0;try{const u=r.map(async(v,m)=>{const g=o[m];return g?.uses&&(g.uses=an(g.uses)),De({loader:w.nodes[v],url:c,params:a,route:i,parent:async()=>{const E={};for(let S=0;S<m;S+=1)Object.assign(E,(await u[S]).data);return E},server_data_node:qe(g)})}),h=await Promise.all(u);if(d){const v=d.layouts;for(let m=0;m<v.length;m++)v[m]||h.splice(m,0,void 0)}p=fe({url:c,params:a,branch:h,status:t,error:n,form:l,route:d??null})}catch(u){if(u instanceof Ue){await Y(new URL(u.location,location.href));return}p=await Be({status:Oe(u),error:await X(u,{url:c,params:a,route:i}),url:c,route:i}),e.textContent="",f=!1}p.props.page&&(p.props.page.state={}),await dt(p,e,f)}function an(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let xe=!1;function on(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=mt(e);if(r&&document.getElementById(r)){const{x:i,y:s}=D();setTimeout(()=>{const o=history.state;xe=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(o,"",e),t&&scrollTo(i,s),xe=!1})}else{const i=document.body,s=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),s!==null?i.setAttribute("tabindex",s):i.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const i=[];for(let s=0;s<a.rangeCount;s+=1)i.push(a.getRangeAt(s));setTimeout(()=>{if(a.rangeCount===i.length){for(let s=0;s<a.rangeCount;s+=1){const o=i[s],l=a.getRangeAt(s);if(o.commonAncestorContainer!==l.commonAncestorContainer||o.startContainer!==l.startContainer||o.endContainer!==l.endContainer||o.startOffset!==l.startOffset||o.endOffset!==l.endOffset)return}a.removeAllRanges()}})}}}function Ke(e,t,n,r,a=null){let i,s;const o=new Promise((c,d)=>{i=c,s=d});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:D()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:a},willUnload:!t,type:r,complete:o},fulfil:i,reject:s}}function Fe(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function sn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function mt(e){let t;if(w.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{hn as a,pn as g,gn as i,cn as l,b as p,$ as s};
@@ -0,0 +1,5 @@
1
+ import{l as Qn,o as V,c as M,a as C,p as Ht,b as ct,m as so,u as ao}from"./usxM-xOh.js";import{aM as co,j as uo,q as lo,bx as fo,i as ho,e as T,by as Pn,N as go,g as l,s as y,aZ as Zt,a4 as x,f as Bt,aX as po,a1 as Tn,aW as mo,a6 as vo,a2 as Z,a7 as Ve,aE as yo,p as k,a0 as P,b as N,ae as L,c as St,r as At,bz as bo,bA as $n,a3 as ge,aD as wo}from"./CCA2E2CK.js";import{s as D,a as Ot}from"./DkuxRPZv.js";import{p as v,r as W,s as J}from"./DHholpIc.js";import{B as xo,i as nt,b as tr}from"./yUs562n0.js";import{c as Et}from"./NuvuAeCX.js";import{c as Ct,a as er}from"./D8mTIH9Y.js";import{b as Be}from"./BKHfe9E-.js";function So(){return Symbol(co)}const Ao=Symbol("NaN");function Oo(e,t,n){uo&&lo();var r=new xo(e),o=!fo();ho(()=>{var s=t();s!==s&&(s=Ao),o&&s!==null&&typeof s=="object"&&(s={}),r.ensure(s,n)})}class Eo extends Map{#t=new Map;#e=T(0);#n=T(0);#r=Pn||-1;constructor(t){if(super(),t){for(var[n,r]of t)super.set(n,r);this.#n.v=super.size}}#o(t){return Pn===this.#r?T(t):go(t)}has(t){var n=this.#t,r=n.get(t);if(r===void 0)if(super.has(t))r=this.#o(0),n.set(t,r);else return l(this.#e),!1;return l(r),!0}forEach(t,n){this.#i(),super.forEach(t,n)}get(t){var n=this.#t,r=n.get(t);if(r===void 0)if(super.has(t))r=this.#o(0),n.set(t,r);else{l(this.#e);return}return l(r),super.get(t)}set(t,n){var r=this.#t,o=r.get(t),s=super.get(t),i=super.set(t,n),a=this.#e;if(o===void 0)o=this.#o(0),r.set(t,o),y(this.#n,super.size),Zt(a);else if(s!==n){Zt(o);var c=a.reactions===null?null:new Set(a.reactions),u=c===null||!o.reactions?.every(h=>c.has(h));u&&Zt(a)}return i}delete(t){var n=this.#t,r=n.get(t),o=super.delete(t);return r!==void 0&&(n.delete(t),y(r,-1)),o&&(y(this.#n,super.size),Zt(this.#e)),o}clear(){if(super.size!==0){super.clear();var t=this.#t;y(this.#n,0);for(var n of t.values())y(n,-1);Zt(this.#e),t.clear()}}#i(){l(this.#e);var t=this.#t;if(this.#n.v!==t.size){for(var n of super.keys())if(!t.has(n)){var r=this.#o(0);t.set(n,r)}}for([,r]of this.#t)l(r)}keys(){return l(this.#e),super.keys()}values(){return this.#i(),super.values()}entries(){return this.#i(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return l(this.#n),super.size}}function Co(e){return typeof e=="function"}function oe(e){return e!==null&&typeof e=="object"}const Po=["string","number","bigint","boolean"];function ze(e){return e==null||Po.includes(typeof e)?!0:Array.isArray(e)?e.every(t=>ze(t)):typeof e=="object"?Object.getPrototypeOf(e)===Object.prototype:!1}const Wt=Symbol("box"),Me=Symbol("is-writable");function w(e,t){const n=x(e);return t?{[Wt]:!0,[Me]:!0,get current(){return l(n)},set current(r){t(r)}}:{[Wt]:!0,get current(){return e()}}}function ie(e){return oe(e)&&Wt in e}function Je(e){return ie(e)&&Me in e}function nr(e){return ie(e)?e:Co(e)?w(e):ut(e)}function To(e){return Object.entries(e).reduce((t,[n,r])=>ie(r)?(Je(r)?Object.defineProperty(t,n,{get(){return r.current},set(o){r.current=o}}):Object.defineProperty(t,n,{get(){return r.current}}),t):Object.assign(t,{[n]:r}),{})}function Mo(e){return Je(e)?{[Wt]:!0,get current(){return e.current}}:e}function ut(e){let t=T(Bt(e));return{[Wt]:!0,[Me]:!0,get current(){return l(t)},set current(n){y(t,n,!0)}}}function Dt(e){let t=T(Bt(e));return{[Wt]:!0,[Me]:!0,get current(){return l(t)},set current(n){y(t,n,!0)}}}Dt.from=nr;Dt.with=w;Dt.flatten=To;Dt.readonly=Mo;Dt.isBox=ie;Dt.isWritableBox=Je;function rr(...e){return function(t){for(const n of e)if(n){if(t.defaultPrevented)return;typeof n=="function"?n.call(this,t):n.current?.call(this,t)}}}var Mn=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Fo=/\n/g,Io=/^\s*/,Ro=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ko=/^:\s*/,No=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Do=/^[;\s]*/,_o=/^\s+|\s+$/g,Bo=`
2
+ `,Fn="/",In="*",It="",Lo="comment",Wo="declaration";function Ko(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(g){var p=g.match(Fo);p&&(n+=p.length);var b=g.lastIndexOf(Bo);r=~b?g.length-b:r+g.length}function s(){var g={line:n,column:r};return function(p){return p.position=new i(g),u(),p}}function i(g){this.start=g,this.end={line:n,column:r},this.source=t.source}i.prototype.content=e;function a(g){var p=new Error(t.source+":"+n+":"+r+": "+g);if(p.reason=g,p.filename=t.source,p.line=n,p.column=r,p.source=e,!t.silent)throw p}function c(g){var p=g.exec(e);if(p){var b=p[0];return o(b),e=e.slice(b.length),p}}function u(){c(Io)}function h(g){var p;for(g=g||[];p=d();)p!==!1&&g.push(p);return g}function d(){var g=s();if(!(Fn!=e.charAt(0)||In!=e.charAt(1))){for(var p=2;It!=e.charAt(p)&&(In!=e.charAt(p)||Fn!=e.charAt(p+1));)++p;if(p+=2,It===e.charAt(p-1))return a("End of comment missing");var b=e.slice(2,p-2);return r+=2,o(b),e=e.slice(p),r+=2,g({type:Lo,comment:b})}}function m(){var g=s(),p=c(Ro);if(p){if(d(),!c(ko))return a("property missing ':'");var b=c(No),S=g({type:Wo,property:Rn(p[0].replace(Mn,It)),value:b?Rn(b[0].replace(Mn,It)):It});return c(Do),S}}function f(){var g=[];h(g);for(var p;p=m();)p!==!1&&(g.push(p),h(g));return g}return u(),f()}function Rn(e){return e?e.replace(_o,It):It}function Vo(e,t){let n=null;if(!e||typeof e!="string")return n;const r=Ko(e),o=typeof t=="function";return r.forEach(s=>{if(s.type!=="declaration")return;const{property:i,value:a}=s;o?t(i,a,s):a&&(n=n||{},n[i]=a)}),n}const zo=/\d/,Ho=["-","_","/","."];function Uo(e=""){if(!zo.test(e))return e!==e.toLowerCase()}function jo(e){const t=[];let n="",r,o;for(const s of e){const i=Ho.includes(s);if(i===!0){t.push(n),n="",r=void 0;continue}const a=Uo(s);if(o===!1){if(r===!1&&a===!0){t.push(n),n=s,r=a;continue}if(r===!0&&a===!1&&n.length>1){const c=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=c+s,r=a;continue}}n+=s,r=a,o=i}return t.push(n),t}function or(e){return e?jo(e).map(t=>Yo(t)).join(""):""}function Go(e){return Xo(or(e||""))}function Yo(e){return e?e[0].toUpperCase()+e.slice(1):""}function Xo(e){return e?e[0].toLowerCase()+e.slice(1):""}function te(e){if(!e)return{};const t={};function n(r,o){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[or(r)]=o;return}if(r.startsWith("--")){t[r]=o;return}t[Go(r)]=o}return Vo(e,n),t}function Rt(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}function qo(e,t){const n=RegExp(e,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(n)?r.replace(n,t):r}}const Zo=qo(/[A-Z]/,e=>`-${e.toLowerCase()}`);function Jo(e){if(!e||typeof e!="object"||Array.isArray(e))throw new TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${Zo(t)}: ${e[t]};`).join(`
3
+ `)}function ir(e={}){return Jo(e).replace(`
4
+ `," ")}const Qo=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],$o=new Set(Qo);function ti(e){return $o.has(e)}function tt(...e){const t={...e[0]};for(let n=1;n<e.length;n++){const r=e[n];if(r){for(const o of Object.keys(r)){const s=t[o],i=r[o],a=typeof s=="function",c=typeof i=="function";if(a&&ti(o)){const u=s,h=i;t[o]=rr(u,h)}else if(a&&c)t[o]=Rt(s,i);else if(o==="class"){const u=ze(s),h=ze(i);u&&h?t[o]=Be(s,i):u?t[o]=Be(s):h&&(t[o]=Be(i))}else if(o==="style"){const u=typeof s=="object",h=typeof i=="object",d=typeof s=="string",m=typeof i=="string";if(u&&h)t[o]={...s,...i};else if(u&&m){const f=te(i);t[o]={...s,...f}}else if(d&&h){const f=te(s);t[o]={...f,...i}}else if(d&&m){const f=te(s),g=te(i);t[o]={...f,...g}}else u?t[o]=s:h?t[o]=i:d?t[o]=s:m&&(t[o]=i)}else t[o]=i!==void 0?i:s}for(const o of Object.getOwnPropertySymbols(r)){const s=t[o],i=r[o];t[o]=i!==void 0?i:s}}}return typeof t.style=="object"&&(t.style=ir(t.style).replaceAll(`
5
+ `," ")),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}const sr=typeof window<"u"?window:void 0;function ei(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class ni{#t;#e;constructor(t={}){const{window:n=sr,document:r=n?.document}=t;n!==void 0&&(this.#t=r,this.#e=Qn(o=>{const s=V(n,"focusin",o),i=V(n,"focusout",o);return()=>{s(),i()}}))}get current(){return this.#e?.(),this.#t?ei(this.#t):null}}new ni;function ri(e){return typeof e=="function"}class Pt{#t;#e;constructor(t){this.#t=t,this.#e=Symbol(t)}get key(){return this.#e}exists(){return po(this.#e)}get(){const t=Tn(this.#e);if(t===void 0)throw new Error(`Context "${this.#t}" not found`);return t}getOr(t){const n=Tn(this.#e);return n===void 0?t:n}set(t){return mo(this.#e,t)}}function oi(e,t){switch(e){case"post":Z(t);break;case"pre":vo(t);break}}function ar(e,t,n,r={}){const{lazy:o=!1}=r;let s=!o,i=Array.isArray(e)?[]:void 0;oi(t,()=>{const a=Array.isArray(e)?e.map(u=>u()):e();if(!s){s=!0,i=a;return}const c=Ve(()=>n(a,i));return i=a,c})}function H(e,t,n){ar(e,"post",t,n)}function ii(e,t,n){ar(e,"pre",t,n)}H.pre=ii;function kn(e){return ri(e)?e():e}class si{#t={width:0,height:0};#e=!1;#n;#r;#o;#i=x(()=>(l(this.#s)?.(),this.getSize().width));#a=x(()=>(l(this.#s)?.(),this.getSize().height));#s=x(()=>{const t=kn(this.#r);if(t)return Qn(n=>{if(!this.#o)return;const r=new this.#o.ResizeObserver(o=>{this.#e=!0;for(const s of o){const i=this.#n.box==="content-box"?s.contentBoxSize:s.borderBoxSize,a=Array.isArray(i)?i:[i];this.#t.width=a.reduce((c,u)=>Math.max(c,u.inlineSize),0),this.#t.height=a.reduce((c,u)=>Math.max(c,u.blockSize),0)}n()});return r.observe(t),()=>{this.#e=!1,r.disconnect()}})});constructor(t,n={box:"border-box"}){this.#o=n.window??sr,this.#n=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=kn(this.#r);if(!t||!this.#o)return;const n=t.offsetWidth,r=t.offsetHeight;if(this.#n.box==="border-box")return{width:n,height:r};const o=this.#o.getComputedStyle(t),s=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),i=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),a=parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),c=parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),u=n-s-a,h=r-i-c;return{width:u,height:h}}getSize(){return this.#e?this.#t:this.calculateSize()??this.#t}get current(){return l(this.#s)?.(),this.getSize()}get width(){return l(this.#i)}get height(){return l(this.#a)}}function _t(e){Z(()=>()=>{e()})}function cr(e,t){return setTimeout(t,e)}function lt(e){yo().then(e)}const ai=1,ci=9,ui=11;function He(e){return oe(e)&&e.nodeType===ai&&typeof e.nodeName=="string"}function ur(e){return oe(e)&&e.nodeType===ci}function li(e){return oe(e)&&e.constructor?.name==="VisualViewport"}function di(e){return oe(e)&&e.nodeType!==void 0}function lr(e){return di(e)&&e.nodeType===ui&&"host"in e}function fi(e,t){if(!e||!t||!He(e)||!He(t))return!1;const n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&lr(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function se(e){return ur(e)?e:li(e)?e.document:e?.ownerDocument??document}function Qe(e){return lr(e)?Qe(e.host):ur(e)?e.defaultView??window:He(e)?e.ownerDocument?.defaultView??window:window}function hi(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class $e{element;#t=x(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return l(this.#t)}set root(t){y(this.#t,t)}constructor(t){typeof t=="function"?this.element=w(t):this.element=t}getDocument=()=>se(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>hi(this.root);isActiveElement=t=>t===this.getActiveElement();getElementById(t){return this.root.getElementById(t)}querySelector=t=>this.root?this.root.querySelector(t):null;querySelectorAll=t=>this.root?this.root.querySelectorAll(t):[];setTimeout=(t,n)=>this.getWindow().setTimeout(t,n);clearTimeout=t=>this.getWindow().clearTimeout(t)}function Q(e,t){return{[So()]:n=>ie(e)?(e.current=n,Ve(()=>t?.(n)),()=>{"isConnected"in n&&n.isConnected||(e.current=null,t?.(null))}):(e(n),Ve(()=>t?.(n)),()=>{"isConnected"in n&&n.isConnected||(e(null),t?.(null))})}}function tn(e){return e?"true":"false"}function fc(e){return e?"true":void 0}function Kt(e){return e?"":void 0}function hc(e){return e?!0:void 0}function Fe(e){return e?"open":"closed"}function gc(e,t){return t?"mixed":e?"true":"false"}class gi{#t;#e;attrs;constructor(t){this.#t=t.getVariant?t.getVariant():null,this.#e=this.#t?`data-${this.#t}-`:`data-${t.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(t.parts.map(n=>[n,this.getAttr(n)]))}getAttr(t,n){return n?`data-${n}-${t}`:`${this.#e}${t}`}selector(t,n){return`[${this.getAttr(t,n)}]`}}function dr(e){const t=new gi(e);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}const ne="ArrowDown",ae="ArrowLeft",ce="ArrowRight",pe="ArrowUp",fr="End",Ie="Enter",pi="Escape",hr="Home",mi="PageDown",vi="PageUp",Ut=" ",yi="Tab";function bi(e){return window.getComputedStyle(e).getPropertyValue("direction")}function wi(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?ae:ce,vertical:ne}[t]}function xi(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?ce:ae,vertical:pe}[t]}function Si(e="ltr",t="horizontal"){return["ltr","rtl"].includes(e)||(e="ltr"),["horizontal","vertical"].includes(t)||(t="horizontal"),{nextKey:wi(e,t),prevKey:xi(e,t)}}const gr=typeof document<"u",Nn=Ai();function Ai(){return gr&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function ht(e){return e instanceof HTMLElement}function Ue(e){return e instanceof Element}function pr(e){return e instanceof Element||e instanceof SVGElement}function pc(e){return e===null}function mc(e){return e.pointerType==="touch"}function Oi(e){return e!==null}function Ei(e){return e instanceof HTMLInputElement&&"select"in e}class Ci{#t;#e=Dt(null);constructor(t){this.#t=t}getCandidateNodes(){return this.#t.rootNode.current?this.#t.candidateSelector?Array.from(this.#t.rootNode.current.querySelectorAll(this.#t.candidateSelector)):this.#t.candidateAttr?Array.from(this.#t.rootNode.current.querySelectorAll(`[${this.#t.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const t=this.getCandidateNodes();t.length&&t[0]?.focus()}handleKeydown(t,n,r=!1){const o=this.#t.rootNode.current;if(!o||!t)return;const s=this.getCandidateNodes();if(!s.length)return;const i=s.indexOf(t),a=bi(o),{nextKey:c,prevKey:u}=Si(a,this.#t.orientation.current),h=this.#t.loop.current,d={[c]:i+1,[u]:i-1,[hr]:0,[fr]:s.length-1};if(r){const g=c===ne?ce:ne,p=u===pe?ae:pe;d[g]=i+1,d[p]=i-1}let m=d[n.key];if(m===void 0)return;n.preventDefault(),m<0&&h?m=s.length-1:m===s.length&&h&&(m=0);const f=s[m];if(f)return f.focus(),this.#e.current=f.id,this.#t.onCandidateFocus?.(f),f}getTabIndex(t){const n=this.getCandidateNodes(),r=this.#e.current!==null;return t&&!r&&n[0]===t?(this.#e.current=t.id,0):t?.id===this.#e.current?0:-1}setCurrentTabStopId(t){this.#e.current=t}focusCurrentTabStop(){const t=this.#e.current;if(!t)return;const n=this.#t.rootNode.current?.querySelector(`#${t}`);!n||!ht(n)||n.focus()}}class Pi{#t;#e=null;constructor(t){this.#t=t,_t(()=>this.#n())}#n(){this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null)}run(t){this.#n();const n=this.#t.ref.current;if(n){if(typeof n.getAnimations!="function"){this.#r(t);return}this.#e=window.requestAnimationFrame(()=>{const r=n.getAnimations();if(r.length===0){this.#r(t);return}Promise.allSettled(r.map(o=>o.finished)).then(()=>{this.#r(t)})})}}#r(t){const n=()=>{t()};this.#t.afterTick?lt(n):n()}}class je{#t;#e;#n;#r=T(!1);constructor(t){this.#t=t,y(this.#r,t.open.current,!0),this.#e=t.enabled??!0,this.#n=new Pi({ref:this.#t.ref,afterTick:this.#t.open}),H(()=>this.#t.open.current,n=>{n&&y(this.#r,!0),this.#e&&this.#n.run(()=>{n===this.#t.open.current&&(this.#t.open.current||y(this.#r,!1),this.#t.onComplete?.())})})}get shouldRender(){return l(this.#r)}}function B(){}function jt(e,t){return`bits-${e}`}const Ti=dr({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),mt=new Pt("Dialog.Root | AlertDialog.Root");class en{static create(t){const n=mt.getOr(null);return mt.set(new en(t,n))}opts;#t=T(null);get triggerNode(){return l(this.#t)}set triggerNode(t){y(this.#t,t,!0)}#e=T(null);get contentNode(){return l(this.#e)}set contentNode(t){y(this.#e,t,!0)}#n=T(null);get overlayNode(){return l(this.#n)}set overlayNode(t){y(this.#n,t,!0)}#r=T(null);get descriptionNode(){return l(this.#r)}set descriptionNode(t){y(this.#r,t,!0)}#o=T(void 0);get contentId(){return l(this.#o)}set contentId(t){y(this.#o,t,!0)}#i=T(void 0);get titleId(){return l(this.#i)}set titleId(t){y(this.#i,t,!0)}#a=T(void 0);get triggerId(){return l(this.#a)}set triggerId(t){y(this.#a,t,!0)}#s=T(void 0);get descriptionId(){return l(this.#s)}set descriptionId(t){y(this.#s,t,!0)}#c=T(null);get cancelNode(){return l(this.#c)}set cancelNode(t){y(this.#c,t,!0)}#l=T(0);get nestedOpenCount(){return l(this.#l)}set nestedOpenCount(t){y(this.#l,t,!0)}depth;parent;contentPresence;overlayPresence;constructor(t,n){this.opts=t,this.parent=n,this.depth=n?n.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new je({ref:w(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new je({ref:w(()=>this.overlayNode),open:this.opts.open,enabled:!0}),H(()=>this.opts.open.current,r=>{this.parent&&(r?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),_t(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=t=>Ti.getAttr(t,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#u=x(()=>({"data-state":Fe(this.opts.open.current)}));get sharedProps(){return l(this.#u)}set sharedProps(t){y(this.#u,t)}}class mr{static create(t){return new mr(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===Ut||t.key===Ie)&&(t.preventDefault(),this.root.handleClose())}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return l(this.#t)}set props(t){y(this.#t,t)}}class nn{static create(t){return new nn(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(this.opts.ref)}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("action")]:"",...this.root.sharedProps,...this.attachment}));get props(){return l(this.#t)}set props(t){y(this.#t,t)}}class rn{static create(t){return new rn(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.root.titleId=this.opts.id.current,this.attachment=Q(this.opts.ref),H.pre(()=>this.opts.id.current,r=>{this.root.titleId=r})}#t=x(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment}));get props(){return l(this.#t)}set props(t){y(this.#t,t)}}class on{static create(t){return new on(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.root.descriptionId=this.opts.id.current,this.attachment=Q(this.opts.ref,r=>{this.root.descriptionNode=r}),H.pre(()=>this.opts.id.current,r=>{this.root.descriptionId=r})}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment}));get props(){return l(this.#t)}set props(t){y(this.#t,t)}}class sn{static create(t){return new sn(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(this.opts.ref,r=>{this.root.contentNode=r,this.root.contentId=r?.id})}#t=x(()=>({open:this.root.opts.open.current}));get snippetProps(){return l(this.#t)}set snippetProps(t){y(this.#t,t)}#e=x(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Kt(this.root.nestedOpenCount>0),"data-nested":Kt(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return l(this.#e)}set props(t){y(this.#e,t)}get shouldRender(){return this.root.contentPresence.shouldRender}}class an{static create(t){return new an(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(this.opts.ref,r=>this.root.overlayNode=r)}#t=x(()=>({open:this.root.opts.open.current}));get snippetProps(){return l(this.#t)}set snippetProps(t){y(this.#t,t)}#e=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Kt(this.root.nestedOpenCount>0),"data-nested":Kt(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return l(this.#e)}set props(t){y(this.#e,t)}get shouldRender(){return this.root.overlayPresence.shouldRender}}class cn{static create(t){return new cn(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(this.opts.ref,r=>this.root.cancelNode=r),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===Ut||t.key===Ie)&&(t.preventDefault(),this.root.handleClose())}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("cancel")]:"",onclick:this.onclick,onkeydown:this.onkeydown,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return l(this.#t)}set props(t){y(this.#t,t)}}function Mi(e,t){k(t,!0);let n=v(t,"open",15,!1),r=v(t,"onOpenChange",3,B),o=v(t,"onOpenChangeComplete",3,B);en.create({variant:w(()=>"alert-dialog"),open:w(()=>n(),a=>{n(a),r()(a)}),onOpenChangeComplete:w(()=>o())});var s=M(),i=P(s);D(i,()=>t.children??L),C(e,s),N()}var Fi=ct("<div><!></div>");function Ii(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>jt(n)),o=v(t,"ref",15,null),s=v(t,"level",3,2),i=W(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const a=rn.create({id:w(()=>r()),level:w(()=>s()),ref:w(()=>o(),f=>o(f))}),c=x(()=>tt(i,a.props));var u=M(),h=P(u);{var d=f=>{var g=M(),p=P(g);D(p,()=>t.child,()=>({props:l(c)})),C(f,g)},m=f=>{var g=Fi();Ot(g,()=>({...l(c)}));var p=St(g);D(p,()=>t.children??L),At(g),C(f,g)};nt(h,f=>{t.child?f(d):f(m,!1)})}C(e,u),N()}var Ri=ct("<button><!></button>");function ki(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>jt(n)),o=v(t,"ref",15,null),s=W(t,["$$slots","$$events","$$legacy","children","child","id","ref"]);const i=nn.create({id:w(()=>r()),ref:w(()=>o(),m=>o(m))}),a=x(()=>tt(s,i.props));var c=M(),u=P(c);{var h=m=>{var f=M(),g=P(f);D(g,()=>t.child,()=>({props:l(a)})),C(m,f)},d=m=>{var f=Ri();Ot(f,()=>({...l(a)}));var g=St(f);D(g,()=>t.children??L),At(f),C(m,f)};nt(u,m=>{t.child?m(h):m(d,!1)})}C(e,c),N()}var Ni=ct("<button><!></button>");function Di(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>jt(n)),o=v(t,"ref",15,null),s=v(t,"disabled",3,!1),i=W(t,["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]);const a=cn.create({id:w(()=>r()),ref:w(()=>o(),f=>o(f)),disabled:w(()=>!!s())}),c=x(()=>tt(i,a.props));var u=M(),h=P(u);{var d=f=>{var g=M(),p=P(g);D(p,()=>t.child,()=>({props:l(c)})),C(f,g)},m=f=>{var g=Ni();Ot(g,()=>({...l(c)}));var p=St(g);D(p,()=>t.children??L),At(g),C(f,g)};nt(h,f=>{t.child?f(d):f(m,!1)})}C(e,u),N()}function _i(e,t){var n=M(),r=P(n);Oo(r,()=>t.children,o=>{var s=M(),i=P(s);D(i,()=>t.children??L),C(o,s)}),C(e,n)}const Bi=new Pt("BitsConfig");function Li(){const e=new Wi(null,{});return Bi.getOr(e).opts}class Wi{opts;constructor(t,n){const r=Ki(t,n);this.opts={defaultPortalTo:r(o=>o.defaultPortalTo),defaultLocale:r(o=>o.defaultLocale)}}}function Ki(e,t){return n=>w(()=>{const o=n(t)?.current;if(o!==void 0)return o;if(e!==null)return n(e.opts)?.current})}function vr(e,t){return n=>{const r=Li();return w(()=>{const o=n();if(o!==void 0)return o;const s=e(r).current;return s!==void 0?s:t})}}const vc=vr(e=>e.defaultLocale,"en"),Vi=vr(e=>e.defaultPortalTo,"body");function zi(e,t){k(t,!0);const n=Vi(()=>t.to),r=bo();let o=x(s);function s(){if(!gr||t.disabled)return null;let d=null;return typeof n.current=="string"?d=document.querySelector(n.current):d=n.current,d}let i;function a(){i&&(ao(i),i=null)}H([()=>l(o),()=>t.disabled],([d,m])=>{if(!d||m){a();return}return i=so(_i,{target:d,props:{children:t.children},context:r}),()=>{a()}});var c=M(),u=P(c);{var h=d=>{var m=M(),f=P(m);D(f,()=>t.children??L),C(d,m)};nt(u,d=>{t.disabled&&d(h)})}C(e,c),N()}class Hi{eventName;options;constructor(t,n={bubbles:!0,cancelable:!0}){this.eventName=t,this.options=n}createEvent(t){return new CustomEvent(this.eventName,{...this.options,detail:t})}dispatch(t,n){const r=this.createEvent(n);return t.dispatchEvent(r),r}listen(t,n,r){const o=s=>{n(s)};return V(t,this.eventName,o,r)}}function Dn(e,t=500){let n=null;const r=(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...o)},t)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function yr(e,t){return e===t||e.contains(t)}function br(e){return e?.ownerDocument??document}function Ui(e,t){const{clientX:n,clientY:r}=e,o=t.getBoundingClientRect();return n<o.left||n>o.right||r<o.top||r>o.bottom}const Ge=[Ie,Ut],ji=[ne,vi,hr],wr=[pe,mi,fr],Gi=[...ji,...wr],Yi={ltr:[...Ge,ce],rtl:[...Ge,ae]},yc={ltr:[ae],rtl:[ce]};function me(e){return e.pointerType==="mouse"}function Xi(e,{select:t=!1}={}){if(!e||!e.focus)return;const n=se(e);if(n.activeElement===e)return;const r=n.activeElement;e.focus({preventScroll:!0}),e!==r&&Ei(e)&&t&&e.select()}function qi(e,{select:t=!1}={},n){const r=n();for(const o of e)if(Xi(o,{select:t}),n()!==r)return!0}let Jt=T(!1);class bt{static _refs=0;static _cleanup;constructor(){Z(()=>(bt._refs===0&&(bt._cleanup=$n(()=>{const t=[],n=o=>{y(Jt,!1)},r=o=>{y(Jt,!0)};return t.push(V(document,"pointerdown",n,{capture:!0}),V(document,"pointermove",n,{capture:!0}),V(document,"keydown",r,{capture:!0})),Rt(...t)})),bt._refs++,()=>{bt._refs--,bt._refs===0&&(y(Jt,!1),bt._cleanup?.())}))}get current(){return l(Jt)}set current(t){y(Jt,t,!0)}}var xr=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],ve=xr.join(","),Sr=typeof Element>"u",kt=Sr?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ye=!Sr&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},be=function(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),s=o===""||o==="true",i=s||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):be(t.parentNode));return i},Zi=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Ar=function(t,n,r){if(be(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(ve));return n&&kt.call(t,ve)&&o.unshift(t),o=o.filter(r),o},we=function(t,n,r){for(var o=[],s=Array.from(t);s.length;){var i=s.shift();if(!be(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),c=a.length?a:i.children,u=we(c,!0,r);r.flatten?o.push.apply(o,u):o.push({scopeParent:i,candidates:u})}else{var h=kt.call(i,ve);h&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var d=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),m=!be(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(d&&m){var f=we(d===!0?i.children:d.children,!0,r);r.flatten?o.push.apply(o,f):o.push({scopeParent:i,candidates:f})}else s.unshift.apply(s,i.children)}}return o},Or=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Er=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Zi(t))&&!Or(t)?0:t.tabIndex},Ji=function(t,n){var r=Er(t);return r<0&&n&&!Or(t)?0:r},Qi=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Cr=function(t){return t.tagName==="INPUT"},$i=function(t){return Cr(t)&&t.type==="hidden"},ts=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},es=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},ns=function(t){if(!t.name)return!0;var n=t.form||ye(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var s=es(o,t.form);return!s||s===t},rs=function(t){return Cr(t)&&t.type==="radio"},os=function(t){return rs(t)&&!ns(t)},is=function(t){var n,r=t&&ye(t),o=(n=r)===null||n===void 0?void 0:n.host,s=!1;if(r&&r!==t){var i,a,c;for(s=!!((i=o)!==null&&i!==void 0&&(a=i.ownerDocument)!==null&&a!==void 0&&a.contains(o)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!s&&o;){var u,h,d;r=ye(o),o=(u=r)===null||u===void 0?void 0:u.host,s=!!((h=o)!==null&&h!==void 0&&(d=h.ownerDocument)!==null&&d!==void 0&&d.contains(o))}}return s},_n=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},ss=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(t).visibility==="hidden")return!0;var i=kt.call(t,"details>summary:first-of-type"),a=i?t.parentElement:t;if(kt.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof o=="function"){for(var c=t;t;){var u=t.parentElement,h=ye(t);if(u&&!u.shadowRoot&&o(u)===!0)return _n(t);t.assignedSlot?t=t.assignedSlot:!u&&h!==t.ownerDocument?t=h.host:t=u}t=c}if(is(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return _n(t);return!1},as=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return kt.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},xe=function(t,n){return!(n.disabled||$i(n)||ss(n,t)||ts(n)||as(n))},Ye=function(t,n){return!(os(n)||Er(n)<0||!xe(t,n))},cs=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Pr=function(t){var n=[],r=[];return t.forEach(function(o,s){var i=!!o.scopeParent,a=i?o.scopeParent:o,c=Ji(a,i),u=i?Pr(o.candidates):a;c===0?i?n.push.apply(n,u):n.push(a):r.push({documentOrder:s,tabIndex:c,item:o,isScope:i,content:u})}),r.sort(Qi).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(n)},Tr=function(t,n){n=n||{};var r;return n.getShadowRoot?r=we([t],n.includeContainer,{filter:Ye.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:cs}):r=Ar(t,n.includeContainer,Ye.bind(null,n)),Pr(r)},Mr=function(t,n){n=n||{};var r;return n.getShadowRoot?r=we([t],n.includeContainer,{filter:xe.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=Ar(t,n.includeContainer,xe.bind(null,n)),r},un=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return kt.call(t,ve)===!1?!1:Ye(n,t)},us=xr.concat("iframe:not([inert]):not([inert] *)").join(","),Fr=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return kt.call(t,us)===!1?!1:xe(n,t)};function ee(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function ls(e,t){if(!un(e,ee()))return ds(e,t);const n=se(e),r=Tr(n.body,ee());t==="prev"&&r.reverse();const o=r.indexOf(e);return o===-1?n.body:r.slice(o+1)[0]}function ds(e,t){const n=se(e);if(!Fr(e,ee()))return n.body;const r=Mr(n.body,ee());t==="prev"&&r.reverse();const o=r.indexOf(e);return o===-1?n.body:r.slice(o+1).find(i=>un(i,ee()))??n.body}function fs(e,t){return e.length!==t.length?!1:e.every((n,r)=>Ir(n,t[r]))}function Ir(e,t){return Number.isNaN(e)&&Number.isNaN(t)?!0:Array.isArray(e)&&Array.isArray(t)?fs(e,t):typeof e=="object"&&typeof t=="object"?hs(e,t):Object.is(e,t)}function hs(e,t){if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!r.includes(o)||!Ir(e[o],t[o]))return!1;return!0}function bc(e,t){const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}function wc(e,t){return e>=0&&e<t.length}function xc(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===e.length-1?n?e[0]:void 0:e[t+1]}function Sc(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===0?n?e[e.length-1]:void 0:e[t-1]}function Ac(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let o=t+n;return r?o=(o%e.length+e.length)%e.length:o=Math.max(0,Math.min(o,e.length-1)),e[o]}function Oc(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let o=t-n;return r?o=(o%e.length+e.length)%e.length:o=Math.max(0,Math.min(o,e.length-1)),e[o]}function Rr(e,t,n){const r=t.toLowerCase();if(r.endsWith(" ")){const d=r.slice(0,-1);if(e.filter(p=>p.toLowerCase().startsWith(d)).length<=1)return Rr(e,d,n);const f=n?.toLowerCase();if(f&&f.startsWith(d)&&f.charAt(d.length)===" "&&t.trim()===d)return n;const g=e.filter(p=>p.toLowerCase().startsWith(r));if(g.length>0){const p=n?e.indexOf(n):-1;return Bn(g,Math.max(p,0)).find(O=>O!==n)||n}}const s=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,i=s.toLowerCase(),a=n?e.indexOf(n):-1;let c=Bn(e,Math.max(a,0));s.length===1&&(c=c.filter(d=>d!==n));const h=c.find(d=>d?.toLowerCase().startsWith(i));return h!==n?h:void 0}function Bn(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const gs={afterMs:1e4,onChange:B};function kr(e,t){const{afterMs:n,onChange:r,getWindow:o}={...gs,...t};let s=null,i=T(Bt(e));function a(){return o().setTimeout(()=>{y(i,e,!0),r?.(e)},n)}return Z(()=>()=>{s&&o().clearTimeout(s)}),w(()=>l(i),c=>{y(i,c,!0),r?.(c),s&&o().clearTimeout(s),s=a()})}class ps{#t;#e;#n=x(()=>this.#t.onMatch?this.#t.onMatch:t=>t.focus());#r=x(()=>this.#t.getCurrentItem?this.#t.getCurrentItem:this.#t.getActiveElement);constructor(t){this.#t=t,this.#e=kr("",{afterMs:1e3,getWindow:t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t,n){if(!n.length)return;this.#e.current=this.#e.current+t;const r=l(this.#r)(),o=n.find(c=>c===r)?.textContent?.trim()??"",s=n.map(c=>c.textContent?.trim()??""),i=Rr(s,this.#e.current,o),a=n.find(c=>c.textContent?.trim()===i);return a&&l(this.#n)(a),a}resetTypeahead(){this.#e.current=""}get search(){return this.#e.current}}class ms{#t;#e;#n;#r=T(null);constructor(t){this.#t=t,this.#e=x(()=>this.#t.enabled()),this.#n=kr(!1,{afterMs:t.transitTimeout??300,onChange:n=>{l(this.#e)&&this.#t.setIsPointerInTransit?.(n)},getWindow:()=>Qe(this.#t.triggerNode())}),H([t.triggerNode,t.contentNode,t.enabled],([n,r,o])=>{if(!n||!r||!o)return;const s=a=>{this.#i(a,r)},i=a=>{this.#i(a,n)};return Rt(V(n,"pointerleave",s),V(r,"pointerleave",i))}),H(()=>l(this.#r),()=>{const n=o=>{if(!l(this.#r))return;const s=o.target;if(!Ue(s))return;const i={x:o.clientX,y:o.clientY},a=t.triggerNode()?.contains(s)||t.contentNode()?.contains(s),c=!ws(i,l(this.#r));a?this.#o():c&&(this.#o(),t.onPointerExit())},r=se(t.triggerNode()??t.contentNode());if(r)return V(r,"pointermove",n)})}#o(){y(this.#r,null),this.#n.current=!1}#i(t,n){const r=t.currentTarget;if(!ht(r))return;const o={x:t.clientX,y:t.clientY},s=vs(o,r.getBoundingClientRect()),i=ys(o,s),a=bs(n.getBoundingClientRect()),c=xs([...i,...a]);y(this.#r,c,!0),this.#n.current=!0}}function vs(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function ys(e,t,n=5){const r=n*1.5;switch(t){case"top":return[{x:e.x-n,y:e.y+n},{x:e.x,y:e.y-r},{x:e.x+n,y:e.y+n}];case"bottom":return[{x:e.x-n,y:e.y-n},{x:e.x,y:e.y+r},{x:e.x+n,y:e.y-n}];case"left":return[{x:e.x+n,y:e.y-n},{x:e.x-r,y:e.y},{x:e.x+n,y:e.y+n}];case"right":return[{x:e.x-n,y:e.y-n},{x:e.x+r,y:e.y},{x:e.x-n,y:e.y+n}]}}function bs(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function ws(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s].x,c=t[s].y,u=t[i].x,h=t[i].y;c>r!=h>r&&n<(u-a)*(r-c)/(h-c)+a&&(o=!o)}return o}function xs(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Ss(t)}function Ss(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const As="data-context-menu-trigger",Os="data-context-menu-content",Nr=new Pt("Menu.Root"),Vt=new Pt("Menu.Root | Menu.Sub"),ln=new Pt("Menu.Content"),Dr=new Hi("bitsmenuopen",{bubbles:!1,cancelable:!0}),Es=dr({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});class _r{static create(t){const n=new _r(t);return Nr.set(n)}opts;isUsingKeyboard=new bt;#t=T(!1);get ignoreCloseAutoFocus(){return l(this.#t)}set ignoreCloseAutoFocus(t){y(this.#t,t,!0)}#e=T(!1);get isPointerInTransit(){return l(this.#e)}set isPointerInTransit(t){y(this.#e,t,!0)}constructor(t){this.opts=t}getBitsAttr=t=>Es.getAttr(t,this.opts.variant.current)}class dn{static create(t,n){return Vt.set(new dn(t,n,null))}opts;root;parentMenu;contentId=w(()=>"");#t=T(null);get contentNode(){return l(this.#t)}set contentNode(t){y(this.#t,t,!0)}contentPresence;#e=T(null);get triggerNode(){return l(this.#e)}set triggerNode(t){y(this.#e,t,!0)}constructor(t,n,r){this.opts=t,this.root=n,this.parentMenu=r,this.contentPresence=new je({ref:w(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),r&&H(()=>r.opts.open.current,()=>{r.opts.open.current||(this.opts.open.current=!1)})}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}}class Br{static create(t){return ln.set(new Br(t,Vt.get()))}opts;parentMenu;rovingFocusGroup;domContext;attachment;#t=T("");get search(){return l(this.#t)}set search(t){y(this.#t,t,!0)}#e=0;#n;#r=T(!1);get mounted(){return l(this.#r)}set mounted(t){y(this.#r,t,!0)}#o;constructor(t,n){this.opts=t,this.parentMenu=n,this.domContext=new $e(t.ref),this.attachment=Q(this.opts.ref,r=>{this.parentMenu.contentNode!==r&&(this.parentMenu.contentNode=r)}),n.contentId=t.id,this.#o=t.isSub??!1,this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new ms({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,enabled:()=>this.parentMenu.opts.open.current&&!!this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")),onPointerExit:()=>{this.parentMenu.opts.open.current=!1},setIsPointerInTransit:r=>{this.parentMenu.root.isPointerInTransit=r}}),this.#n=new ps({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch,this.rovingFocusGroup=new Ci({rootNode:w(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:w(()=>"vertical")}),H(()=>this.parentMenu.contentNode,r=>{if(!r)return;const o=()=>{lt(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return Dr.listen(r,o)}),Z(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(this.#e)})}#i(){const t=this.parentMenu.contentNode;return t?Array.from(t.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]}#a(){return this.parentMenu.root.isPointerInTransit}onCloseAutoFocus=t=>{this.opts.onCloseAutoFocus.current?.(t),!(t.defaultPrevented||this.#o)&&this.parentMenu.triggerNode&&un(this.parentMenu.triggerNode)&&(t.preventDefault(),this.parentMenu.triggerNode.focus())};handleTabKeyDown(t){let n=this.parentMenu;for(;n.parentMenu!==null;)n=n.parentMenu;if(!n.triggerNode)return;t.preventDefault();const r=ls(n.triggerNode,t.shiftKey?"prev":"next");r?(this.parentMenu.root.ignoreCloseAutoFocus=!0,n.onClose(),lt(()=>{r.focus(),lt(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(t){if(t.defaultPrevented)return;if(t.key===yi){this.handleTabKeyDown(t);return}const n=t.target,r=t.currentTarget;if(!ht(n)||!ht(r))return;const o=n.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`)?.id===this.parentMenu.contentId.current,s=t.ctrlKey||t.altKey||t.metaKey,i=t.key.length===1;if(this.rovingFocusGroup.handleKeydown(n,t)||t.code==="Space")return;const c=this.#i();o&&!s&&i&&this.#n(t.key,c),t.target?.id===this.parentMenu.contentId.current&&Gi.includes(t.key)&&(t.preventDefault(),wr.includes(t.key)&&c.reverse(),qi(c,{select:!1},()=>this.domContext.getActiveElement()))}onblur(t){Ue(t.currentTarget)&&Ue(t.target)&&(t.currentTarget.contains?.(t.target)||(this.domContext.getWindow().clearTimeout(this.#e),this.search=""))}onfocus(t){this.parentMenu.root.isUsingKeyboard.current&&lt(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return this.#a()}onItemLeave(t){if(t.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||this.#a()||this.parentMenu.root.isUsingKeyboard.current)return;this.parentMenu.contentNode?.focus(),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!this.#a()}handleInteractOutside(t){if(!pr(t.target))return;const n=this.parentMenu.triggerNode?.id;if(t.target.id===n){t.preventDefault();return}t.target.closest(`#${n}`)&&t.preventDefault()}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}#s=x(()=>({open:this.parentMenu.opts.open.current}));get snippetProps(){return l(this.#s)}set snippetProps(t){y(this.#s,t)}#c=x(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":Fe(this.parentMenu.opts.open.current),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto",contain:"layout style"},...this.attachment}));get props(){return l(this.#c)}set props(t){y(this.#c,t)}popperProps={onCloseAutoFocus:t=>this.onCloseAutoFocus(t)}}class Lr{opts;content;attachment;#t=T(!1);constructor(t,n){this.opts=t,this.content=n,this.attachment=Q(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(t){if(!t.defaultPrevented&&me(t))if(this.opts.disabled.current)this.content.onItemLeave(t);else{if(this.content.onItemEnter())return;const r=t.currentTarget;if(!ht(r))return;r.focus()}}onpointerleave(t){t.defaultPrevented||me(t)&&this.content.onItemLeave(t)}onfocus(t){lt(()=>{t.defaultPrevented||this.opts.disabled.current||y(this.#t,!0)})}onblur(t){lt(()=>{t.defaultPrevented||y(this.#t,!1)})}#e=x(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":tn(this.opts.disabled.current),"data-disabled":Kt(this.opts.disabled.current),"data-highlighted":l(this.#t)?"":void 0,[this.content.parentMenu.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment}));get props(){return l(this.#e)}set props(t){y(this.#e,t)}}class Wr{static create(t){const n=new Lr(t,ln.get());return new Wr(t,n)}opts;item;root;#t=!1;constructor(t,n){this.opts=t,this.item=n,this.root=n.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}#e(){if(this.item.opts.disabled.current)return;const t=new CustomEvent("menuitemselect",{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(t),t.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()}onkeydown(t){const n=this.item.content.search!=="";if(!(this.item.opts.disabled.current||n&&t.key===Ut)&&Ge.includes(t.key)){if(!ht(t.currentTarget))return;t.currentTarget.click(),t.preventDefault()}}onclick(t){this.item.opts.disabled.current||this.#e()}onpointerup(t){if(!t.defaultPrevented&&!this.#t){if(!ht(t.currentTarget))return;t.currentTarget?.click()}}onpointerdown(t){this.#t=!0}#n=x(()=>tt(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown}));get props(){return l(this.#n)}set props(t){y(this.#n,t)}}class Kr{static create(t){const n=ln.get(),r=new Lr(t,n),o=Vt.get();return new Kr(t,r,n,o)}opts;item;content;submenu;attachment;#t=null;constructor(t,n,r,o){this.opts=t,this.item=n,this.content=r,this.submenu=o,this.attachment=Q(this.opts.ref,s=>this.submenu.triggerNode=s),this.onpointerleave=this.onpointerleave.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),_t(()=>{this.#e()})}#e(){this.#t!==null&&(this.content.domContext.getWindow().clearTimeout(this.#t),this.#t=null)}onpointermove(t){me(t)&&!this.item.opts.disabled.current&&!this.submenu.opts.open.current&&!this.#t&&!this.content.parentMenu.root.isPointerInTransit&&(this.#t=this.content.domContext.setTimeout(()=>{this.submenu.onOpen(),this.#e()},this.opts.openDelay.current))}onpointerleave(t){me(t)&&this.#e()}onkeydown(t){const n=this.content.search!=="";this.item.opts.disabled.current||n&&t.key===Ut||Yi[this.submenu.root.opts.dir.current].includes(t.key)&&(t.currentTarget.click(),t.preventDefault())}onclick(t){if(this.item.opts.disabled.current||!ht(t.currentTarget))return;t.currentTarget.focus();const n=new CustomEvent("menusubtriggerselect",{bubbles:!0,cancelable:!0});this.opts.onSelect.current(n),this.submenu.opts.open.current||(this.submenu.onOpen(),lt(()=>{const r=this.submenu.contentNode;r&&Dr.dispatch(r)}))}#n=x(()=>tt({"aria-haspopup":"menu","aria-expanded":tn(this.submenu.opts.open.current),"data-state":Fe(this.submenu.opts.open.current),"aria-controls":this.submenu.opts.open.current?this.submenu.contentId.current:void 0,[this.submenu.root.getBitsAttr("sub-trigger")]:"",onclick:this.onclick,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onkeydown:this.onkeydown,...this.attachment},this.item.props));get props(){return l(this.#n)}set props(t){y(this.#n,t)}}class Vr{static create(t){return new Vr(t,Nr.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(this.opts.ref)}#t=x(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("separator")]:"",...this.attachment}));get props(){return l(this.#t)}set props(t){y(this.#t,t)}}class zr{static create(t){return new zr(t,Vt.get())}opts;parentMenu;attachment;constructor(t,n){this.opts=t,this.parentMenu=n,this.attachment=Q(this.opts.ref,r=>this.parentMenu.triggerNode=r)}onclick=t=>{this.opts.disabled.current||t.detail!==0||(this.parentMenu.toggleOpen(),t.preventDefault())};onpointerdown=t=>{if(!this.opts.disabled.current){if(t.pointerType==="touch")return t.preventDefault();t.button===0&&t.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||t.preventDefault())}};onpointerup=t=>{this.opts.disabled.current||t.pointerType==="touch"&&(t.preventDefault(),this.parentMenu.toggleOpen())};onkeydown=t=>{if(!this.opts.disabled.current){if(t.key===Ut||t.key===Ie){this.parentMenu.toggleOpen(),t.preventDefault();return}t.key===ne&&(this.parentMenu.onOpen(),t.preventDefault())}};#t=x(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current});#e=x(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":tn(this.parentMenu.opts.open.current),"aria-controls":l(this.#t),"data-disabled":Kt(this.opts.disabled.current),"data-state":Fe(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment}));get props(){return l(this.#e)}set props(t){y(this.#e,t)}}class Ec{static create(t){const n=Vt.get();return Vt.set(new dn(t,n.root,n))}}globalThis.bitsDismissableLayers??=new Map;class fn{static create(t){return new fn(t)}opts;#t;#e;#n={pointerdown:!1};#r=!1;#o=!1;#i=void 0;#a;#s=B;constructor(t){this.opts=t,this.#e=t.interactOutsideBehavior,this.#t=t.onInteractOutside,this.#a=t.onFocusOutside,Z(()=>{this.#i=br(this.opts.ref.current)});let n=B;const r=()=>{this.#f(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),n()};H([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return cr(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,this.#e),n(),n=this.#l())}),r}),_t(()=>{this.#f.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),this.#s(),n()})}#c=t=>{t.defaultPrevented||this.opts.ref.current&&lt(()=>{!this.opts.ref.current||this.#m(t.target)||t.target&&!this.#o&&this.#a.current?.(t)})};#l(){return Rt(V(this.#i,"pointerdown",Rt(this.#h,this.#p),{capture:!0}),V(this.#i,"pointerdown",Rt(this.#g,this.#d)),V(this.#i,"focusin",this.#c))}#u=t=>{let n=t;n.defaultPrevented&&(n=Ln(t)),this.#t.current(t)};#d=Dn(t=>{if(!this.opts.ref.current){this.#s();return}const n=this.opts.isValidEvent.current(t,this.opts.ref.current)||Ts(t,this.opts.ref.current);if(!this.#r||this.#v()||!n){this.#s();return}let r=t;if(r.defaultPrevented&&(r=Ln(r)),this.#e.current!=="close"&&this.#e.current!=="defer-otherwise-close"){this.#s();return}t.pointerType==="touch"?(this.#s(),this.#s=V(this.#i,"click",this.#u,{once:!0})):this.#t.current(r)},10);#h=t=>{this.#n[t.type]=!0};#g=t=>{this.#n[t.type]=!1};#p=()=>{this.opts.ref.current&&(this.#r=Ps(this.opts.ref.current))};#m=t=>this.opts.ref.current?yr(this.opts.ref.current,t):!1;#f=Dn(()=>{for(const t in this.#n)this.#n[t]=!1;this.#r=!1},20);#v(){return Object.values(this.#n).some(Boolean)}#y=()=>{this.#o=!0};#b=()=>{this.#o=!1};props={onfocuscapture:this.#y,onblurcapture:this.#b}}function Cs(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([t,{current:n}])=>n==="close"||n==="ignore")}function Ps(e){const t=[...globalThis.bitsDismissableLayers],n=Cs(t);if(n)return n[0].opts.ref.current===e;const[r]=t[0];return r.opts.ref.current===e}function Ts(e,t){const n=e.target;if(!pr(n))return!1;const r=!!n.closest(`[${As}]`);if("button"in e&&e.button>0&&!r)return!1;if("button"in e&&e.button===0&&r)return!0;const o=!!t.closest(`[${Os}]`);return r&&o?!1:br(n).documentElement.contains(n)&&!yr(t,n)&&Ui(e,t)}function Ln(e){const t=e.currentTarget,n=e.target;let r;e instanceof PointerEvent?r=new PointerEvent(e.type,e):r=new PointerEvent("pointerdown",e);let o=!1;return new Proxy(r,{get:(i,a)=>a==="currentTarget"?t:a==="target"?n:a==="preventDefault"?()=>{o=!0,typeof i.preventDefault=="function"&&i.preventDefault()}:a==="defaultPrevented"?o:a in i?i[a]:e[a]})}function Hr(e,t){k(t,!0);let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"onInteractOutside",3,B),o=v(t,"onFocusOutside",3,B),s=v(t,"isValidEvent",3,()=>!1);const i=fn.create({id:w(()=>t.id),interactOutsideBehavior:w(()=>n()),onInteractOutside:w(()=>r()),enabled:w(()=>t.enabled),onFocusOutside:w(()=>o()),isValidEvent:w(()=>s()),ref:t.ref});var a=M(),c=P(a);D(c,()=>t.children??L,()=>({props:i.props})),C(e,a),N()}globalThis.bitsEscapeLayers??=new Map;class hn{static create(t){return new hn(t)}opts;domContext;constructor(t){this.opts=t,this.domContext=new $e(this.opts.ref);let n=B;H(()=>t.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),n=this.#t()),()=>{n(),globalThis.bitsEscapeLayers.delete(this)}))}#t=()=>V(this.domContext.getDocument(),"keydown",this.#e,{passive:!1});#e=t=>{if(t.key!==pi||!Ms(this))return;const n=new KeyboardEvent(t.type,t);t.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(n)}}function Ms(e){const t=[...globalThis.bitsEscapeLayers],n=t.findLast(([o,{current:s}])=>s==="close"||s==="ignore");if(n)return n[0]===e;const[r]=t[0];return r===e}function Ur(e,t){k(t,!0);let n=v(t,"escapeKeydownBehavior",3,"close"),r=v(t,"onEscapeKeydown",3,B);hn.create({escapeKeydownBehavior:w(()=>n()),onEscapeKeydown:w(()=>r()),enabled:w(()=>t.enabled),ref:t.ref});var o=M(),s=P(o);D(s,()=>t.children??L),C(e,o),N()}class gn{static instance;#t=ut([]);#e=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||(this.instance=new gn),this.instance}register(t){const n=this.getActive();n&&n!==t&&n.pause();const r=document.activeElement;r&&r!==document.body&&this.#n.set(t,r),this.#t.current=this.#t.current.filter(o=>o!==t),this.#t.current.unshift(t)}unregister(t){this.#t.current=this.#t.current.filter(r=>r!==t);const n=this.getActive();n&&n.resume()}getActive(){return this.#t.current[0]}setFocusMemory(t,n){this.#e.set(t,n)}getFocusMemory(t){return this.#e.get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,n){this.#n.set(t,n)}getPreFocusMemory(t){return this.#n.get(t)}clearPreFocusMemory(t){this.#n.delete(t)}}class pn{#t=!1;#e=null;#n=gn.getInstance();#r=[];#o;constructor(t){this.#o=t}get paused(){return this.#t}pause(){this.#t=!0}resume(){this.#t=!1}#i(){for(const t of this.#r)t();this.#r=[]}mount(t){this.#e&&this.unmount(),this.#e=t,this.#n.register(this),this.#c(),this.#a()}unmount(){this.#e&&(this.#i(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),this.#e=null)}#a(){if(!this.#e)return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});this.#o.onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!this.#e)return;const n=this.#u();n?(n.focus(),this.#n.setFocusMemory(this,n)):this.#e.focus()})}#s(){const t=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if(this.#o.onCloseAutoFocus.current?.(t),!t.defaultPrevented){const n=this.#n.getPreFocusMemory(this);if(n&&document.contains(n))try{n.focus()}catch{document.body.focus()}}}#c(){if(!this.#e||!this.#o.trap.current)return;const t=this.#e,n=t.ownerDocument,r=i=>{if(this.#t||!this.#n.isActiveScope(this))return;const a=i.target;if(!a)return;if(t.contains(a))this.#n.setFocusMemory(this,a);else{const u=this.#n.getFocusMemory(this);if(u&&t.contains(u)&&Fr(u))i.preventDefault(),u.focus();else{const h=this.#u(),d=this.#d()[0];(h||d||t).focus()}}},o=i=>{if(!this.#o.loop||this.#t||i.key!=="Tab"||!this.#n.isActiveScope(this))return;const a=this.#l();if(a.length===0)return;const c=a[0],u=a[a.length-1];!i.shiftKey&&n.activeElement===u?(i.preventDefault(),c.focus()):i.shiftKey&&n.activeElement===c&&(i.preventDefault(),u.focus())};this.#r.push(V(n,"focusin",r,{capture:!0}),V(t,"keydown",o));const s=new MutationObserver(()=>{const i=this.#n.getFocusMemory(this);if(i&&!t.contains(i)){const a=this.#u(),c=this.#d()[0],u=a||c;u?(u.focus(),this.#n.setFocusMemory(this,u)):t.focus()}});s.observe(t,{childList:!0,subtree:!0}),this.#r.push(()=>s.disconnect())}#l(){return this.#e?Tr(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}#u(){return this.#l()[0]||null}#d(){return this.#e?Mr(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let n=null;return H([()=>t.ref.current,()=>t.enabled.current],([r,o])=>{r&&o?(n||(n=new pn(t)),n.mount(r)):n&&(n.unmount(),n=null)}),_t(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}}function jr(e,t){k(t,!0);let n=v(t,"enabled",3,!1),r=v(t,"trapFocus",3,!1),o=v(t,"loop",3,!1),s=v(t,"onCloseAutoFocus",3,B),i=v(t,"onOpenAutoFocus",3,B);const a=pn.use({enabled:w(()=>n()),trap:w(()=>r()),loop:o(),onCloseAutoFocus:w(()=>s()),onOpenAutoFocus:w(()=>i()),ref:t.ref});var c=M(),u=P(c);D(u,()=>t.focusScope??L,()=>({props:a.props})),C(e,c),N()}globalThis.bitsTextSelectionLayers??=new Map;class mn{static create(t){return new mn(t)}opts;domContext;#t=B;constructor(t){this.opts=t,this.domContext=new $e(t.ref);let n=B;H(()=>this.opts.enabled.current,r=>(r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),n(),n=this.#e()),()=>{n(),this.#r(),globalThis.bitsTextSelectionLayers.delete(this)}))}#e(){return Rt(V(this.domContext.getDocument(),"pointerdown",this.#n),V(this.domContext.getDocument(),"pointerup",rr(this.#r,this.opts.onPointerUp.current)))}#n=t=>{const n=this.opts.ref.current,r=t.target;!ht(n)||!ht(r)||!this.opts.enabled.current||!Is(this)||!fi(n,r)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&(this.#t=Fs(n,this.domContext.getDocument().body)))};#r=()=>{this.#t(),this.#t=B}}const Wn=e=>e.style.userSelect||e.style.webkitUserSelect;function Fs(e,t){const n=Wn(t),r=Wn(e);return le(t,"none"),le(e,"text"),()=>{le(t,n),le(e,r)}}function le(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function Is(e){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const n=t.at(-1);return n?n[0]===e:!1}function Gr(e,t){k(t,!0);let n=v(t,"preventOverflowTextSelection",3,!0),r=v(t,"onPointerDown",3,B),o=v(t,"onPointerUp",3,B);mn.create({id:w(()=>t.id),onPointerDown:w(()=>r()),onPointerUp:w(()=>o()),enabled:w(()=>t.enabled&&n()),ref:t.ref});var s=M(),i=P(s);D(i,()=>t.children??L),C(e,s),N()}globalThis.bitsIdCounter??={current:0};function vn(e="bits"){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}class Rs{#t;#e=0;#n=T();#r;constructor(t){this.#t=t}#o(){this.#e-=1,this.#r&&this.#e<=0&&(this.#r(),y(this.#n,void 0),this.#r=void 0)}get(...t){return this.#e+=1,l(this.#n)===void 0&&(this.#r=$n(()=>{y(this.#n,this.#t(...t),!0)})),Z(()=>()=>{this.#o()}),l(this.#n)}}const he=new Eo;let de=T(null),Le=null,Qt=null,$t=!1;const Kn=w(()=>{for(const e of he.values())if(e)return!0;return!1});let We=null;const ks=new Rs(()=>{function e(){document.body.setAttribute("style",l(de)??""),document.body.style.removeProperty("--scrollbar-width"),Nn&&Le?.(),y(de,null)}function t(){Qt!==null&&(window.clearTimeout(Qt),Qt=null)}function n(o,s){t(),$t=!0,We=Date.now();const i=We,a=()=>{Qt=null,We===i&&(Yr(he)?$t=!1:($t=!1,s()))},c=o===null?24:o;Qt=window.setTimeout(a,c)}function r(){l(de)===null&&he.size===0&&!$t&&y(de,document.body.getAttribute("style"),!0)}return H(()=>Kn.current,()=>{if(!Kn.current)return;r(),$t=!1;const o=getComputedStyle(document.documentElement),s=getComputedStyle(document.body),i=o.scrollbarGutter?.includes("stable")||s.scrollbarGutter?.includes("stable"),a=window.innerWidth-document.documentElement.clientWidth,u={padding:Number.parseInt(s.paddingRight??"0",10)+a,margin:Number.parseInt(s.marginRight??"0",10)};a>0&&!i&&(document.body.style.paddingRight=`${u.padding}px`,document.body.style.marginRight=`${u.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`)),document.body.style.overflow="hidden",Nn&&(Le=V(document,"touchmove",h=>{h.target===document.documentElement&&(h.touches.length>1||h.preventDefault())},{passive:!1})),lt(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),_t(()=>()=>{Le?.()}),{get lockMap(){return he},resetBodyStyle:e,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}});class Ns{#t=vn();#e;#n=()=>null;#r;locked;constructor(t,n=()=>null){this.#e=t,this.#n=n,this.#r=ks.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#t,this.#e??!1),this.locked=w(()=>this.#r.lockMap.get(this.#t)??!1,r=>this.#r.lockMap.set(this.#t,r)),_t(()=>{if(this.#r.lockMap.delete(this.#t),Yr(this.#r.lockMap))return;const r=this.#n();this.#r.scheduleCleanupIfNoNewLocks(r,()=>{this.#r.resetBodyStyle()})}))}}function Yr(e){for(const[t,n]of e)if(n)return!0;return!1}function Se(e,t){k(t,!0);let n=v(t,"preventScroll",3,!0),r=v(t,"restoreScrollDelay",3,null);n()&&new Ns(n(),()=>r()),N()}var Ds=ct("<!> <!>",1),_s=ct("<!> <div><!></div>",1);function Bs(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>jt(n)),o=v(t,"ref",15,null),s=v(t,"forceMount",3,!1),i=v(t,"interactOutsideBehavior",3,"ignore"),a=v(t,"onCloseAutoFocus",3,B),c=v(t,"onEscapeKeydown",3,B),u=v(t,"onOpenAutoFocus",3,B),h=v(t,"onInteractOutside",3,B),d=v(t,"preventScroll",3,!0),m=v(t,"trapFocus",3,!0),f=v(t,"restoreScrollDelay",3,null),g=W(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","interactOutsideBehavior","onCloseAutoFocus","onEscapeKeydown","onOpenAutoFocus","onInteractOutside","preventScroll","trapFocus","restoreScrollDelay"]);const p=sn.create({id:w(()=>r()),ref:w(()=>o(),A=>o(A))}),b=x(()=>tt(g,p.props));var S=M(),O=P(S);{var E=A=>{jr(A,{get ref(){return p.opts.ref},loop:!0,get trapFocus(){return m()},get enabled(){return p.root.opts.open.current},get onCloseAutoFocus(){return a()},onOpenAutoFocus:F=>{u()(F),!F.defaultPrevented&&(F.preventDefault(),cr(0,()=>p.opts.ref.current?.focus()))},focusScope:(F,_)=>{let U=()=>_?.().props;Ur(F,J(()=>l(b),{get enabled(){return p.root.opts.open.current},get ref(){return p.opts.ref},onEscapeKeydown:R=>{c()(R),!R.defaultPrevented&&p.root.handleClose()},children:(R,K)=>{Hr(R,J(()=>l(b),{get ref(){return p.opts.ref},get enabled(){return p.root.opts.open.current},get interactOutsideBehavior(){return i()},onInteractOutside:j=>{h()(j),!j.defaultPrevented&&p.root.handleClose()},children:(j,G)=>{Gr(j,J(()=>l(b),{get ref(){return p.opts.ref},get enabled(){return p.root.opts.open.current},children:(ot,z)=>{var it=M(),$=P(it);{var Y=q=>{var Tt=Ds(),Xt=P(Tt);{var qt=Mt=>{Se(Mt,{get preventScroll(){return d()},get restoreScrollDelay(){return f()}})};nt(Xt,Mt=>{p.root.opts.open.current&&Mt(qt)})}var _e=ge(Xt,2);{let Mt=x(()=>({props:tt(l(b),U()),...p.snippetProps}));D(_e,()=>t.child,()=>l(Mt))}C(q,Tt)},X=q=>{var Tt=_s(),Xt=P(Tt);Se(Xt,{get preventScroll(){return d()}});var qt=ge(Xt,2);Ot(qt,Mt=>({...Mt}),[()=>tt(l(b),U())]);var _e=St(qt);D(_e,()=>t.children??L),At(qt),C(q,Tt)};nt($,q=>{t.child?q(Y):q(X,!1)})}C(ot,it)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};nt(O,A=>{(p.shouldRender||s())&&A(E)})}C(e,S),N()}var Ls=ct("<div><!></div>");function Ws(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>jt(n)),o=v(t,"forceMount",3,!1),s=v(t,"ref",15,null),i=W(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const a=an.create({id:w(()=>r()),ref:w(()=>s(),m=>s(m))}),c=x(()=>tt(i,a.props));var u=M(),h=P(u);{var d=m=>{var f=M(),g=P(f);{var p=S=>{var O=M(),E=P(O);{let A=x(()=>({props:tt(l(c)),...a.snippetProps}));D(E,()=>t.child,()=>l(A))}C(S,O)},b=S=>{var O=Ls();Ot(O,A=>({...A}),[()=>tt(l(c))]);var E=St(O);D(E,()=>t.children??L,()=>a.snippetProps),At(O),C(S,O)};nt(g,S=>{t.child?S(p):S(b,!1)})}C(m,f)};nt(h,m=>{(a.shouldRender||o())&&m(d)})}C(e,u),N()}var Ks=ct("<div><!></div>");function Vs(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>jt(n)),o=v(t,"ref",15,null),s=W(t,["$$slots","$$events","$$legacy","id","children","child","ref"]);const i=on.create({id:w(()=>r()),ref:w(()=>o(),m=>o(m))}),a=x(()=>tt(s,i.props));var c=M(),u=P(c);{var h=m=>{var f=M(),g=P(f);D(g,()=>t.child,()=>({props:l(a)})),C(m,f)},d=m=>{var f=Ks();Ot(f,()=>({...l(a)}));var g=St(f);D(g,()=>t.children??L),At(f),C(m,f)};nt(u,m=>{t.child?m(h):m(d,!1)})}C(e,c),N()}const zs=["top","right","bottom","left"],wt=Math.min,et=Math.max,Ae=Math.round,fe=Math.floor,ft=e=>({x:e,y:e}),Hs={left:"right",right:"left",bottom:"top",top:"bottom"},Us={start:"end",end:"start"};function Xe(e,t,n){return et(e,wt(t,n))}function vt(e,t){return typeof e=="function"?e(t):e}function yt(e){return e.split("-")[0]}function Gt(e){return e.split("-")[1]}function yn(e){return e==="x"?"y":"x"}function bn(e){return e==="y"?"height":"width"}const js=new Set(["top","bottom"]);function dt(e){return js.has(yt(e))?"y":"x"}function wn(e){return yn(dt(e))}function Gs(e,t,n){n===void 0&&(n=!1);const r=Gt(e),o=wn(e),s=bn(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Oe(i)),[i,Oe(i)]}function Ys(e){const t=Oe(e);return[qe(e),t,qe(t)]}function qe(e){return e.replace(/start|end/g,t=>Us[t])}const Vn=["left","right"],zn=["right","left"],Xs=["top","bottom"],qs=["bottom","top"];function Zs(e,t,n){switch(e){case"top":case"bottom":return n?t?zn:Vn:t?Vn:zn;case"left":case"right":return t?Xs:qs;default:return[]}}function Js(e,t,n,r){const o=Gt(e);let s=Zs(yt(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(qe)))),s}function Oe(e){return e.replace(/left|right|bottom|top/g,t=>Hs[t])}function Qs(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xr(e){return typeof e!="number"?Qs(e):{top:e,right:e,bottom:e,left:e}}function Ee(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Hn(e,t,n){let{reference:r,floating:o}=e;const s=dt(t),i=wn(t),a=bn(i),c=yt(t),u=s==="y",h=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/2;let f;switch(c){case"top":f={x:h,y:r.y-o.height};break;case"bottom":f={x:h,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Gt(t)){case"start":f[i]-=m*(n&&u?-1:1);break;case"end":f[i]+=m*(n&&u?-1:1);break}return f}async function $s(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:m=!1,padding:f=0}=vt(t,e),g=Xr(f),b=a[m?d==="floating"?"reference":"floating":d],S=Ee(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:h,strategy:c})),O=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),A=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},I=Ee(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:O,offsetParent:E,strategy:c}):O);return{top:(S.top-I.top+g.top)/A.y,bottom:(I.bottom-S.bottom+g.bottom)/A.y,left:(S.left-I.left+g.left)/A.x,right:(I.right-S.right+g.right)/A.x}}const ta=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:h,y:d}=Hn(u,r,c),m=r,f={},g=0;for(let b=0;b<a.length;b++){var p;const{name:S,fn:O}=a[b],{x:E,y:A,data:I,reset:F}=await O({x:h,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:f,rects:u,platform:{...i,detectOverflow:(p=i.detectOverflow)!=null?p:$s},elements:{reference:e,floating:t}});h=E??h,d=A??d,f={...f,[S]:{...f[S],...I}},F&&g<=50&&(g++,typeof F=="object"&&(F.placement&&(m=F.placement),F.rects&&(u=F.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):F.rects),{x:h,y:d}=Hn(u,m,c)),b=-1)}return{x:h,y:d,placement:m,strategy:o,middlewareData:f}},ea=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:u,padding:h=0}=vt(e,t)||{};if(u==null)return{};const d=Xr(h),m={x:n,y:r},f=wn(o),g=bn(f),p=await i.getDimensions(u),b=f==="y",S=b?"top":"left",O=b?"bottom":"right",E=b?"clientHeight":"clientWidth",A=s.reference[g]+s.reference[f]-m[f]-s.floating[g],I=m[f]-s.reference[f],F=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let _=F?F[E]:0;(!_||!await(i.isElement==null?void 0:i.isElement(F)))&&(_=a.floating[E]||s.floating[g]);const U=A/2-I/2,R=_/2-p[g]/2-1,K=wt(d[S],R),j=wt(d[O],R),G=K,ot=_-p[g]-j,z=_/2-p[g]/2+U,it=Xe(G,z,ot),$=!c.arrow&&Gt(o)!=null&&z!==it&&s.reference[g]/2-(z<G?K:j)-p[g]/2<0,Y=$?z<G?z-G:z-ot:0;return{[f]:m[f]+Y,data:{[f]:it,centerOffset:z-it-Y,...$&&{alignmentOffset:Y}},reset:$}}}),na=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...b}=vt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const S=yt(o),O=dt(a),E=yt(a)===a,A=await(c.isRTL==null?void 0:c.isRTL(u.floating)),I=m||(E||!p?[Oe(a)]:Ys(a)),F=g!=="none";!m&&F&&I.push(...Js(a,p,g,A));const _=[a,...I],U=await c.detectOverflow(t,b),R=[];let K=((r=s.flip)==null?void 0:r.overflows)||[];if(h&&R.push(U[S]),d){const z=Gs(o,i,A);R.push(U[z[0]],U[z[1]])}if(K=[...K,{placement:o,overflows:R}],!R.every(z=>z<=0)){var j,G;const z=(((j=s.flip)==null?void 0:j.index)||0)+1,it=_[z];if(it&&(!(d==="alignment"?O!==dt(it):!1)||K.every(X=>dt(X.placement)===O?X.overflows[0]>0:!0)))return{data:{index:z,overflows:K},reset:{placement:it}};let $=(G=K.filter(Y=>Y.overflows[0]<=0).sort((Y,X)=>Y.overflows[1]-X.overflows[1])[0])==null?void 0:G.placement;if(!$)switch(f){case"bestFit":{var ot;const Y=(ot=K.filter(X=>{if(F){const q=dt(X.placement);return q===O||q==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(q=>q>0).reduce((q,Tt)=>q+Tt,0)]).sort((X,q)=>X[1]-q[1])[0])==null?void 0:ot[0];Y&&($=Y);break}case"initialPlacement":$=a;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Un(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jn(e){return zs.some(t=>e[t]>=0)}const ra=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=vt(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=Un(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:jn(a)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),a=Un(i,n.floating);return{data:{escapedOffsets:a,escaped:jn(a)}}}default:return{}}}}},qr=new Set(["left","top"]);async function oa(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=yt(n),a=Gt(n),c=dt(n)==="y",u=qr.has(i)?-1:1,h=s&&c?-1:1,d=vt(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(f=a==="end"?g*-1:g),c?{x:f*h,y:m*u}:{x:m*u,y:f*h}}const ia=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await oa(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},sa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:S=>{let{x:O,y:E}=S;return{x:O,y:E}}},...u}=vt(e,t),h={x:n,y:r},d=await s.detectOverflow(t,u),m=dt(yt(o)),f=yn(m);let g=h[f],p=h[m];if(i){const S=f==="y"?"top":"left",O=f==="y"?"bottom":"right",E=g+d[S],A=g-d[O];g=Xe(E,g,A)}if(a){const S=m==="y"?"top":"left",O=m==="y"?"bottom":"right",E=p+d[S],A=p-d[O];p=Xe(E,p,A)}const b=c.fn({...t,[f]:g,[m]:p});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[f]:i,[m]:a}}}}}},aa=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=vt(e,t),h={x:n,y:r},d=dt(o),m=yn(d);let f=h[m],g=h[d];const p=vt(a,t),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const E=m==="y"?"height":"width",A=s.reference[m]-s.floating[E]+b.mainAxis,I=s.reference[m]+s.reference[E]-b.mainAxis;f<A?f=A:f>I&&(f=I)}if(u){var S,O;const E=m==="y"?"width":"height",A=qr.has(yt(o)),I=s.reference[d]-s.floating[E]+(A&&((S=i.offset)==null?void 0:S[d])||0)+(A?0:b.crossAxis),F=s.reference[d]+s.reference[E]+(A?0:((O=i.offset)==null?void 0:O[d])||0)-(A?b.crossAxis:0);g<I?g=I:g>F&&(g=F)}return{[m]:f,[d]:g}}}},ca=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...u}=vt(e,t),h=await i.detectOverflow(t,u),d=yt(o),m=Gt(o),f=dt(o)==="y",{width:g,height:p}=s.floating;let b,S;d==="top"||d==="bottom"?(b=d,S=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(S=d,b=m==="end"?"top":"bottom");const O=p-h.top-h.bottom,E=g-h.left-h.right,A=wt(p-h[b],O),I=wt(g-h[S],E),F=!t.middlewareData.shift;let _=A,U=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(U=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=O),F&&!m){const K=et(h.left,0),j=et(h.right,0),G=et(h.top,0),ot=et(h.bottom,0);f?U=g-2*(K!==0||j!==0?K+j:et(h.left,h.right)):_=p-2*(G!==0||ot!==0?G+ot:et(h.top,h.bottom))}await c({...t,availableWidth:U,availableHeight:_});const R=await i.getDimensions(a.floating);return g!==R.width||p!==R.height?{reset:{rects:!0}}:{}}}};function Re(){return typeof window<"u"}function Yt(e){return Zr(e)?(e.nodeName||"").toLowerCase():"#document"}function rt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pt(e){var t;return(t=(Zr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zr(e){return Re()?e instanceof Node||e instanceof rt(e).Node:!1}function st(e){return Re()?e instanceof Element||e instanceof rt(e).Element:!1}function gt(e){return Re()?e instanceof HTMLElement||e instanceof rt(e).HTMLElement:!1}function Gn(e){return!Re()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof rt(e).ShadowRoot}const ua=new Set(["inline","contents"]);function ue(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=at(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ua.has(o)}const la=new Set(["table","td","th"]);function da(e){return la.has(Yt(e))}const fa=[":popover-open",":modal"];function ke(e){return fa.some(t=>{try{return e.matches(t)}catch{return!1}})}const ha=["transform","translate","scale","rotate","perspective"],ga=["transform","translate","scale","rotate","perspective","filter"],pa=["paint","layout","strict","content"];function xn(e){const t=Sn(),n=st(e)?at(e):e;return ha.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||ga.some(r=>(n.willChange||"").includes(r))||pa.some(r=>(n.contain||"").includes(r))}function ma(e){let t=xt(e);for(;gt(t)&&!zt(t);){if(xn(t))return t;if(ke(t))return null;t=xt(t)}return null}function Sn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const va=new Set(["html","body","#document"]);function zt(e){return va.has(Yt(e))}function at(e){return rt(e).getComputedStyle(e)}function Ne(e){return st(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xt(e){if(Yt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Gn(e)&&e.host||pt(e);return Gn(t)?t.host:t}function Jr(e){const t=xt(e);return zt(t)?e.ownerDocument?e.ownerDocument.body:e.body:gt(t)&&ue(t)?t:Jr(t)}function re(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Jr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=rt(o);if(s){const a=Ze(i);return t.concat(i,i.visualViewport||[],ue(o)?o:[],a&&n?re(a):[])}return t.concat(o,re(o,[],n))}function Ze(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qr(e){const t=at(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=gt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Ae(n)!==s||Ae(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function An(e){return st(e)?e:e.contextElement}function Lt(e){const t=An(e);if(!gt(t))return ft(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Qr(t);let i=(s?Ae(n.width):n.width)/r,a=(s?Ae(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const ya=ft(0);function $r(e){const t=rt(e);return!Sn()||!t.visualViewport?ya:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ba(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==rt(e)?!1:t}function Nt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=An(e);let i=ft(1);t&&(r?st(r)&&(i=Lt(r)):i=Lt(e));const a=ba(s,n,r)?$r(s):ft(0);let c=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,h=o.width/i.x,d=o.height/i.y;if(s){const m=rt(s),f=r&&st(r)?rt(r):r;let g=m,p=Ze(g);for(;p&&r&&f!==g;){const b=Lt(p),S=p.getBoundingClientRect(),O=at(p),E=S.left+(p.clientLeft+parseFloat(O.paddingLeft))*b.x,A=S.top+(p.clientTop+parseFloat(O.paddingTop))*b.y;c*=b.x,u*=b.y,h*=b.x,d*=b.y,c+=E,u+=A,g=rt(p),p=Ze(g)}}return Ee({width:h,height:d,x:c,y:u})}function De(e,t){const n=Ne(e).scrollLeft;return t?t.left+n:Nt(pt(e)).left+n}function to(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-De(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function wa(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=pt(r),a=t?ke(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},u=ft(1);const h=ft(0),d=gt(r);if((d||!d&&!s)&&((Yt(r)!=="body"||ue(i))&&(c=Ne(r)),gt(r))){const f=Nt(r);u=Lt(r),h.x=f.x+r.clientLeft,h.y=f.y+r.clientTop}const m=i&&!d&&!s?to(i,c):ft(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+h.x+m.x,y:n.y*u.y-c.scrollTop*u.y+h.y+m.y}}function xa(e){return Array.from(e.getClientRects())}function Sa(e){const t=pt(e),n=Ne(e),r=e.ownerDocument.body,o=et(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=et(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+De(e);const a=-n.scrollTop;return at(r).direction==="rtl"&&(i+=et(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const Yn=25;function Aa(e,t){const n=rt(e),r=pt(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const h=Sn();(!h||h&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const u=De(r);if(u<=0){const h=r.ownerDocument,d=h.body,m=getComputedStyle(d),f=h.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-f);g<=Yn&&(s-=g)}else u<=Yn&&(s+=u);return{width:s,height:i,x:a,y:c}}const Oa=new Set(["absolute","fixed"]);function Ea(e,t){const n=Nt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=gt(e)?Lt(e):ft(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,u=r*s.y;return{width:i,height:a,x:c,y:u}}function Xn(e,t,n){let r;if(t==="viewport")r=Aa(e,n);else if(t==="document")r=Sa(pt(e));else if(st(t))r=Ea(t,n);else{const o=$r(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ee(r)}function eo(e,t){const n=xt(e);return n===t||!st(n)||zt(n)?!1:at(n).position==="fixed"||eo(n,t)}function Ca(e,t){const n=t.get(e);if(n)return n;let r=re(e,[],!1).filter(a=>st(a)&&Yt(a)!=="body"),o=null;const s=at(e).position==="fixed";let i=s?xt(e):e;for(;st(i)&&!zt(i);){const a=at(i),c=xn(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&Oa.has(o.position)||ue(i)&&!c&&eo(e,i))?r=r.filter(h=>h!==i):o=a,i=xt(i)}return t.set(e,r),r}function Pa(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?ke(t)?[]:Ca(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((u,h)=>{const d=Xn(t,h,o);return u.top=et(d.top,u.top),u.right=wt(d.right,u.right),u.bottom=wt(d.bottom,u.bottom),u.left=et(d.left,u.left),u},Xn(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Ta(e){const{width:t,height:n}=Qr(e);return{width:t,height:n}}function Ma(e,t,n){const r=gt(t),o=pt(t),s=n==="fixed",i=Nt(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=ft(0);function u(){c.x=De(o)}if(r||!r&&!s)if((Yt(t)!=="body"||ue(o))&&(a=Ne(t)),r){const f=Nt(t,!0,s,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else o&&u();s&&!r&&o&&u();const h=o&&!r&&!s?to(o,a):ft(0),d=i.left+a.scrollLeft-c.x-h.x,m=i.top+a.scrollTop-c.y-h.y;return{x:d,y:m,width:i.width,height:i.height}}function Ke(e){return at(e).position==="static"}function qn(e,t){if(!gt(e)||at(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return pt(e)===n&&(n=n.ownerDocument.body),n}function no(e,t){const n=rt(e);if(ke(e))return n;if(!gt(e)){let o=xt(e);for(;o&&!zt(o);){if(st(o)&&!Ke(o))return o;o=xt(o)}return n}let r=qn(e,t);for(;r&&da(r)&&Ke(r);)r=qn(r,t);return r&&zt(r)&&Ke(r)&&!xn(r)?n:r||ma(e)||n}const Fa=async function(e){const t=this.getOffsetParent||no,n=this.getDimensions,r=await n(e.floating);return{reference:Ma(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ia(e){return at(e).direction==="rtl"}const Ra={convertOffsetParentRelativeRectToViewportRelativeRect:wa,getDocumentElement:pt,getClippingRect:Pa,getOffsetParent:no,getElementRects:Fa,getClientRects:xa,getDimensions:Ta,getScale:Lt,isElement:st,isRTL:Ia};function ro(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ka(e,t){let n=null,r;const o=pt(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:h,top:d,width:m,height:f}=u;if(a||t(),!m||!f)return;const g=fe(d),p=fe(o.clientWidth-(h+m)),b=fe(o.clientHeight-(d+f)),S=fe(h),E={rootMargin:-g+"px "+-p+"px "+-b+"px "+-S+"px",threshold:et(0,wt(1,c))||1};let A=!0;function I(F){const _=F[0].intersectionRatio;if(_!==c){if(!A)return i();_?i(!1,_):r=setTimeout(()=>{i(!1,1e-7)},1e3)}_===1&&!ro(u,e.getBoundingClientRect())&&i(),A=!1}try{n=new IntersectionObserver(I,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(I,E)}n.observe(e)}return i(!0),s}function Na(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=An(e),h=o||s?[...u?re(u):[],...re(t)]:[];h.forEach(S=>{o&&S.addEventListener("scroll",n,{passive:!0}),s&&S.addEventListener("resize",n)});const d=u&&a?ka(u,n):null;let m=-1,f=null;i&&(f=new ResizeObserver(S=>{let[O]=S;O&&O.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=f)==null||E.observe(t)})),n()}),u&&!c&&f.observe(u),f.observe(t));let g,p=c?Nt(e):null;c&&b();function b(){const S=Nt(e);p&&!ro(p,S)&&n(),p=S,g=requestAnimationFrame(b)}return n(),()=>{var S;h.forEach(O=>{o&&O.removeEventListener("scroll",n),s&&O.removeEventListener("resize",n)}),d?.(),(S=f)==null||S.disconnect(),f=null,c&&cancelAnimationFrame(g)}}const Da=ia,_a=sa,Ba=na,La=ca,Wa=ra,Ka=ea,Va=aa,za=(e,t,n)=>{const r=new Map,o={platform:Ra,...n},s={...o.platform,_c:r};return ta(e,t,{...o,platform:s})};function Ft(e){return typeof e=="function"?e():e}function oo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zn(e,t){const n=oo(e);return Math.round(t*n)/n}function Cc(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function Ha(e){const t=e.whileElementsMounted,n=x(()=>Ft(e.open)??!0),r=x(()=>Ft(e.middleware)),o=x(()=>Ft(e.transform)??!0),s=x(()=>Ft(e.placement)??"bottom"),i=x(()=>Ft(e.strategy)??"absolute"),a=x(()=>Ft(e.sideOffset)??0),c=x(()=>Ft(e.alignOffset)??0),u=e.reference;let h=T(0),d=T(0);const m=ut(null);let f=T(Bt(l(i))),g=T(Bt(l(s))),p=T(Bt({})),b=T(!1),S=!1;const O=x(()=>{const R=m.current?Zn(m.current,l(h)):l(h),K=m.current?Zn(m.current,l(d)):l(d);return l(o)?{position:l(f),left:"0",top:"0",transform:`translate(${R}px, ${K}px)`,...m.current&&oo(m.current)>=1.5&&{willChange:"transform"}}:{position:l(f),left:`${R}px`,top:`${K}px`}});let E;function A(){u.current===null||m.current===null||za(u.current,m.current,{middleware:l(r),placement:l(s),strategy:l(i)}).then(R=>{const K=u.current;if(Ua(K)){y(p,{...l(p),hide:{...l(p).hide,referenceHidden:!0}},!0);return}if(!l(n)&&l(h)!==0&&l(d)!==0){const G=Math.max(Math.abs(l(a)),Math.abs(l(c)),15);if(R.x<=G&&R.y<=G)return}y(h,R.x,!0),y(d,R.y,!0),y(f,R.strategy,!0),y(g,R.placement,!0),y(p,R.middlewareData,!0),y(b,!0)})}function I(){typeof E=="function"&&(E(),E=void 0)}function F(){if(I(),t===void 0){A();return}l(n)&&(u.current===null||m.current===null||(E=t(u.current,m.current,A)))}function _(){l(n)||y(b,!1)}function U(){return[l(r),l(s),l(i),l(a),l(c),l(n)]}return Z(()=>{t===void 0&&l(n)&&A()}),Z(F),Z(()=>{if(t!==void 0){if(U(),!l(n)){S=!1;return}if(!l(b)){S=!1;return}if(!S){S=!0;return}A()}}),Z(_),Z(()=>I),{floating:m,reference:u,get strategy(){return l(f)},get placement(){return l(g)},get middlewareData(){return l(p)},get isPositioned(){return l(b)},get floatingStyles(){return l(O)},get update(){return A}}}function Ua(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const ja={top:"bottom",right:"left",bottom:"top",left:"right"},On=new Pt("Floating.Root"),Jn=new Pt("Floating.Content"),En=new Pt("Floating.Root");class Ce{static create(t=!1){return t?En.set(new Ce):On.set(new Ce)}anchorNode=ut(null);customAnchorNode=ut(null);triggerNode=ut(null);constructor(){Z(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class Pe{static create(t,n=!1){return n?Jn.set(new Pe(t,En.get())):Jn.set(new Pe(t,On.get()))}opts;root;contentRef=ut(null);wrapperRef=ut(null);arrowRef=ut(null);contentAttachment=Q(this.contentRef);wrapperAttachment=Q(this.wrapperRef);arrowAttachment=Q(this.arrowRef);arrowId=ut(vn());#t=x(()=>{if(typeof this.opts.style=="string")return te(this.opts.style);if(!this.opts.style)return{}});#e=void 0;#n=new si(()=>this.arrowRef.current??void 0);#r=x(()=>this.#n?.width??0);#o=x(()=>this.#n?.height??0);#i=x(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=x(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#s=x(()=>l(this.#a).length>0);get hasExplicitBoundaries(){return l(this.#s)}set hasExplicitBoundaries(t){y(this.#s,t)}#c=x(()=>({padding:this.opts.collisionPadding.current,boundary:l(this.#a).filter(Oi),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return l(this.#c)}set detectOverflowOptions(t){y(this.#c,t)}#l=T(void 0);#u=T(void 0);#d=T(void 0);#h=T(void 0);#g=x(()=>[Da({mainAxis:this.opts.sideOffset.current+l(this.#o),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&_a({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Va():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Ba({...this.detectOverflowOptions}),La({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:s}=t.reference;y(this.#l,n,!0),y(this.#u,r,!0),y(this.#d,o,!0),y(this.#h,s,!0)}}),this.arrowRef.current&&Ka({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Ga({arrowWidth:l(this.#r),arrowHeight:l(this.#o)}),this.opts.hideWhenDetached.current&&Wa({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return l(this.#g)}set middleware(t){y(this.#g,t)}floating;#p=x(()=>Ya(this.floating.placement));get placedSide(){return l(this.#p)}set placedSide(t){y(this.#p,t)}#m=x(()=>Xa(this.floating.placement));get placedAlign(){return l(this.#m)}set placedAlign(t){y(this.#m,t)}#f=x(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return l(this.#f)}set arrowX(t){y(this.#f,t)}#v=x(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return l(this.#v)}set arrowY(t){y(this.#v,t)}#y=x(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return l(this.#y)}set cannotCenterArrow(t){y(this.#y,t)}#b=T();get contentZIndex(){return l(this.#b)}set contentZIndex(t){y(this.#b,t,!0)}#w=x(()=>ja[this.placedSide]);get arrowBaseSide(){return l(this.#w)}set arrowBaseSide(t){y(this.#w,t)}#x=x(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${l(this.#l)}px`,"--bits-floating-available-height":`${l(this.#u)}px`,"--bits-floating-anchor-width":`${l(this.#d)}px`,"--bits-floating-anchor-height":`${l(this.#h)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...l(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return l(this.#x)}set wrapperProps(t){y(this.#x,t)}#S=x(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:ir({...l(this.#t)}),...this.contentAttachment}));get props(){return l(this.#S)}set props(t){y(this.#S,t)}#A=x(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return l(this.#A)}set arrowStyle(t){y(this.#A,t)}constructor(t,n){this.opts=t,this.root=n,this.#e=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),H(()=>t.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=Ha({strategy:()=>this.opts.strategy.current,placement:()=>l(this.#i),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>Na(...r,{animationFrame:this.#e?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),Z(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),H(()=>this.contentRef.current,r=>{if(!r||!this.opts.enabled.current)return;const o=Qe(r),s=o.requestAnimationFrame(()=>{if(this.contentRef.current!==r||!this.opts.enabled.current)return;const i=o.getComputedStyle(r).zIndex;i!==this.contentZIndex&&(this.contentZIndex=i)});return()=>{o.cancelAnimationFrame(s)}}),Z(()=>{this.floating.floating.current=this.wrapperRef.current})}}class Te{static create(t,n=!1){return n?new Te(t,En.get()):new Te(t,On.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=nr(t.virtualEl.current):n.triggerNode=t.ref}}function Ga(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[u,h]=Cn(n),d={start:"0%",center:"50%",end:"100%"}[h],m=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+c/2;let g="",p="";return u==="bottom"?(g=i?d:`${m}px`,p=`${-c}px`):u==="top"?(g=i?d:`${m}px`,p=`${r.floating.height+c}px`):u==="right"?(g=`${-c}px`,p=i?d:`${f}px`):u==="left"&&(g=`${r.floating.width+c}px`,p=i?d:`${f}px`),{data:{x:g,y:p}}}}}function Cn(e){const[t,n="center"]=e.split("-");return[t,n]}function Ya(e){return Cn(e)[0]}function Xa(e){return Cn(e)[1]}function Pc(e,t){k(t,!0);let n=v(t,"tooltip",3,!1);Ce.create(n());var r=M(),o=P(r);D(o,()=>t.children??L),C(e,r),N()}function Tc(e,t){k(t,!0);let n=v(t,"tooltip",3,!1);Te.create({id:w(()=>t.id),virtualEl:w(()=>t.virtualEl),ref:t.ref},n());var r=M(),o=P(r);D(o,()=>t.children??L),C(e,r),N()}function qa(e,t){k(t,!0);let n=v(t,"side",3,"bottom"),r=v(t,"sideOffset",3,0),o=v(t,"align",3,"center"),s=v(t,"alignOffset",3,0),i=v(t,"arrowPadding",3,0),a=v(t,"avoidCollisions",3,!0),c=v(t,"collisionBoundary",19,()=>[]),u=v(t,"collisionPadding",3,0),h=v(t,"hideWhenDetached",3,!1),d=v(t,"onPlaced",3,()=>{}),m=v(t,"sticky",3,"partial"),f=v(t,"updatePositionStrategy",3,"optimized"),g=v(t,"strategy",3,"fixed"),p=v(t,"dir",3,"ltr"),b=v(t,"style",19,()=>({})),S=v(t,"wrapperId",19,vn),O=v(t,"customAnchor",3,null),E=v(t,"tooltip",3,!1);const A=Pe.create({side:w(()=>n()),sideOffset:w(()=>r()),align:w(()=>o()),alignOffset:w(()=>s()),id:w(()=>t.id),arrowPadding:w(()=>i()),avoidCollisions:w(()=>a()),collisionBoundary:w(()=>c()),collisionPadding:w(()=>u()),hideWhenDetached:w(()=>h()),onPlaced:w(()=>d()),sticky:w(()=>m()),updatePositionStrategy:w(()=>f()),strategy:w(()=>g()),dir:w(()=>p()),style:w(()=>b()),enabled:w(()=>t.enabled),wrapperId:w(()=>S()),customAnchor:w(()=>O())},E()),I=x(()=>tt(A.wrapperProps,{style:{pointerEvents:"auto"}}));var F=M(),_=P(F);D(_,()=>t.content??L,()=>({props:A.props,wrapperProps:l(I)})),C(e,F),N()}function Za(e,t){k(t,!0),wo(()=>{t.onPlaced?.()});var n=M(),r=P(n);D(r,()=>t.content??L,()=>({props:{},wrapperProps:{}})),C(e,n),N()}function Ja(e,t){let n=v(t,"isStatic",3,!1),r=W(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var o=M(),s=P(o);{var i=c=>{Za(c,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=c=>{qa(c,J({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};nt(s,c=>{n()?c(i):c(a,!1)})}C(e,o)}var Qa=ct("<!> <!>",1);function io(e,t){k(t,!0);let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"trapFocus",3,!0),o=v(t,"isValidEvent",3,()=>!1),s=v(t,"customAnchor",3,null),i=v(t,"isStatic",3,!1),a=v(t,"tooltip",3,!1),c=v(t,"contentPointerEvents",3,"auto"),u=W(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]);Ja(e,{get isStatic(){return i()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get enabled(){return t.enabled},get tooltip(){return a()},content:(d,m)=>{let f=()=>m?.().props,g=()=>m?.().wrapperProps;var p=Qa(),b=P(p);{var S=A=>{Se(A,{get preventScroll(){return t.preventScroll}})},O=A=>{Se(A,{get preventScroll(){return t.preventScroll}})};nt(b,A=>{t.forceMount&&t.enabled?A(S):t.forceMount||A(O,1)})}var E=ge(b,2);jr(E,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return r()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(I,F)=>{let _=()=>F?.().props;Ur(I,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(U,R)=>{Hr(U,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return o()},get enabled(){return t.enabled},get ref(){return t.ref},children:(j,G)=>{let ot=()=>G?.().props;Gr(j,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(z,it)=>{var $=M(),Y=P($);{let X=x(()=>({props:tt(u,f(),ot(),_(),{style:{pointerEvents:c()}}),wrapperProps:g()}));D(Y,()=>t.popper??L,()=>l(X))}C(z,$)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),C(d,p)},$$slots:{content:!0}}),N()}function Mc(e,t){let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"trapFocus",3,!0),o=v(t,"isValidEvent",3,()=>!1),s=v(t,"customAnchor",3,null),i=v(t,"isStatic",3,!1),a=W(t,["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);var c=M(),u=P(c);{var h=d=>{io(d,J({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};nt(u,d=>{t.shouldRender&&d(h)})}C(e,c)}function Fc(e,t){let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"trapFocus",3,!0),o=v(t,"isValidEvent",3,()=>!1),s=v(t,"customAnchor",3,null),i=v(t,"isStatic",3,!1),a=W(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);io(e,J({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}function Ic(e,t){k(t,!0);let n=v(t,"open",15,!1),r=W(t,["$$slots","$$events","$$legacy","open"]);var o=M(),s=P(o);Et(s,()=>Mi,(i,a)=>{a(i,J(()=>r,{get open(){return n()},set open(c){n(c)}}))}),C(e,o),N()}function $a(e,t){let n=W(t,["$$slots","$$events","$$legacy"]);var r=M(),o=P(r);Et(o,()=>zi,(s,i)=>{i(s,J(()=>n))}),C(e,r)}function Rc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class"]);var o=M(),s=P(o);{let i=x(()=>Ct("text-lg font-semibold",t.class));Et(s,()=>Ii,(a,c)=>{c(a,J({"data-slot":"alert-dialog-title",get class(){return l(i)}},()=>r,{get ref(){return n()},set ref(u){n(u)}}))})}C(e,o),N()}function kc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class"]);var o=M(),s=P(o);{let i=x(()=>t.class||Ct(er()));Et(s,()=>ki,(a,c)=>{c(a,J({"data-slot":"alert-dialog-action",get class(){return l(i)}},()=>r,{get ref(){return n()},set ref(u){n(u)}}))})}C(e,o),N()}function Nc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class"]);var o=M(),s=P(o);{let i=x(()=>t.class||Ct(er({variant:"ghost"})));Et(s,()=>Di,(a,c)=>{c(a,J({"data-slot":"alert-dialog-cancel",get class(){return l(i)}},()=>r,{get ref(){return n()},set ref(u){n(u)}}))})}C(e,o),N()}var tc=ct("<div><!></div>");function Dc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class","children"]);var o=tc();Ot(o,i=>({"data-slot":"alert-dialog-footer",class:i,...r}),[()=>Ct("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t.class)]);var s=St(o);D(s,()=>t.children??L),At(o),tr(o,i=>n(i),()=>n()),C(e,o),N()}var ec=ct("<div><!></div>");function _c(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class","children"]);var o=ec();Ot(o,i=>({"data-slot":"alert-dialog-header",class:i,...r}),[()=>Ct("flex flex-col gap-2 text-center sm:text-start",t.class)]);var s=St(o);D(s,()=>t.children??L),At(o),tr(o,i=>n(i),()=>n()),C(e,o),N()}function nc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class"]);var o=M(),s=P(o);{let i=x(()=>Ct("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t.class));Et(s,()=>Ws,(a,c)=>{c(a,J({"data-slot":"alert-dialog-overlay",get class(){return l(i)}},()=>r,{get ref(){return n()},set ref(u){n(u)}}))})}C(e,o),N()}var rc=ct("<!> <!>",1);function Bc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class","portalProps"]);$a(e,J(()=>t.portalProps,{children:(o,s)=>{var i=rc(),a=P(i);nc(a,{});var c=ge(a,2);{let u=x(()=>Ct("bg-[var(--color-bg-elevated)] border-[var(--color-border)] text-[var(--color-text-primary)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t.class));Et(c,()=>Bs,(h,d)=>{d(h,J({"data-slot":"alert-dialog-content",get class(){return l(u)}},()=>r,{get ref(){return n()},set ref(m){n(m)}}))})}C(o,i)},$$slots:{default:!0}})),N()}function Lc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class"]);var o=M(),s=P(o);{let i=x(()=>Ct("text-[var(--color-text-secondary)] text-sm",t.class));Et(s,()=>Vs,(a,c)=>{c(a,J({"data-slot":"alert-dialog-description",get class(){return l(i)}},()=>r,{get ref(){return n()},set ref(u){n(u)}}))})}C(e,o),N()}export{Ws as $,Bc as A,kc as B,Pt as C,$e as D,Ie as E,Tc as F,Ic as G,Wr as H,Vr as I,Br as J,Dr as K,yc as L,Ec as M,Kr as N,_r as O,je as P,dn as Q,zr as R,Ut as S,zi as T,en as U,sn as V,jr as W,Ur as X,Hr as Y,Gr as Z,Se as _,Q as a,Ii as a0,ir as a1,kr as a2,Rr as a3,ps as a4,pe as a5,ne as a6,yi as a7,vi as a8,hr as a9,mi as aa,fr as ab,xc as ac,Sc as ad,Ac as ae,Oc as af,_t as ag,Nn as ah,hc as ai,lt as aj,Ci as ak,Oo as al,mr as am,Eo as an,Vs as ao,gr as ap,pc as aq,ce as ar,ae as as,wc as at,bc as au,vn as av,fc as aw,ut as ax,vc as ay,Kt as b,tn as c,dr as d,fs as e,jt as f,gc as g,w as h,ht as i,se as j,Ue as k,mc as l,tt as m,Fe as n,un as o,B as p,Fc as q,Mc as r,Cc as s,Pc as t,_c as u,Rc as v,H as w,Lc as x,Dc as y,Nc as z};
@@ -0,0 +1 @@
1
+ import{a as l,s as ie,f as G,c as C,p as be,b as A}from"./usxM-xOh.js";import{i as de}from"./DIBaaeCL.js";import{p as m,l as W,s as U,d as M,g as u,a as ce,c as D,n as ue,r as S,b,m as X,t as Y,a0 as _,ae as fe,a3 as $,a4 as j}from"./CCA2E2CK.js";import{i as I}from"./yUs562n0.js";import{a as ee,s as P}from"./DkuxRPZv.js";import{l as q,p as s,s as K,r as te}from"./DHholpIc.js";import{c as L}from"./NuvuAeCX.js";import{p as F,U as ye,h as R,f as Ce,V as Pe,W as De,X as Se,Y as we,Z as xe,_ as le,m as Q,T as Oe,$ as ze,a0 as Fe}from"./e8QVPHqJ.js";import{c as Z}from"./D8mTIH9Y.js";import{c as re,s as oe}from"./BKHfe9E-.js";var Me=G("<title> </title>"),Ae=G('<svg><!><path d="M2 26H30V28H2z"></path><path d="M25.4,9c0.8-0.8,0.8-2,0-2.8c0,0,0,0,0,0l-3.6-3.6c-0.8-0.8-2-0.8-2.8,0c0,0,0,0,0,0l-15,15V24h6.4L25.4,9z M20.4,4L24,7.6 l-3,3L17.4,7L20.4,4z M6,22v-3.6l10-10l3.6,3.6l-10,10H6z"></path></svg>');function rt(a,e){const t=q(e,["children","$$slots","$$events","$$legacy"]),n=q(t,["size","title"]);m(e,!1);const r=X(),c=X();let f=s(e,"size",8,16),o=s(e,"title",8,void 0);W(()=>(M(t),M(o())),()=>{U(r,t["aria-label"]||t["aria-labelledby"]||o())}),W(()=>(u(r),M(t)),()=>{U(c,{"aria-hidden":u(r)?void 0:!0,role:u(r)?"img":void 0,focusable:Number(t.tabindex)===0?!0:void 0})}),ce(),de();var i=Ae();ee(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...u(c),...n}));var p=D(i);{var g=v=>{var h=Me(),y=D(h,!0);S(h),Y(()=>ie(y,o())),l(v,h)};I(p,v=>{o()&&v(g)})}ue(2),S(i),l(a,i),b()}function He(a,e){m(e,!0);let t=s(e,"open",15,!1),n=s(e,"onOpenChange",3,F),r=s(e,"onOpenChangeComplete",3,F);ye.create({variant:R(()=>"dialog"),open:R(()=>t(),o=>{t(o),n()(o)}),onOpenChangeComplete:R(()=>r())});var c=C(),f=_(c);P(f,()=>e.children??fe),l(a,c),b()}var Ve=A("<!> <!>",1),Ee=A("<!> <div><!></div>",1);function Ie(a,e){const t=be();m(e,!0);let n=s(e,"id",19,()=>Ce(t)),r=s(e,"ref",15,null),c=s(e,"forceMount",3,!1),f=s(e,"onCloseAutoFocus",3,F),o=s(e,"onOpenAutoFocus",3,F),i=s(e,"onEscapeKeydown",3,F),p=s(e,"onInteractOutside",3,F),g=s(e,"trapFocus",3,!0),v=s(e,"preventScroll",3,!0),h=s(e,"restoreScrollDelay",3,null),y=te(e,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const d=Pe.create({id:R(()=>n()),ref:R(()=>r(),x=>r(x))}),w=j(()=>Q(y,d.props));var k=C(),ae=_(k);{var B=x=>{De(x,{get ref(){return d.opts.ref},loop:!0,get trapFocus(){return g()},get enabled(){return d.root.opts.open.current},get onOpenAutoFocus(){return o()},get onCloseAutoFocus(){return f()},focusScope:(ve,ge)=>{let ne=()=>ge?.().props;Se(ve,K(()=>u(w),{get enabled(){return d.root.opts.open.current},get ref(){return d.opts.ref},onEscapeKeydown:N=>{i()(N),!N.defaultPrevented&&d.root.handleClose()},children:(N,Ne)=>{we(N,K(()=>u(w),{get ref(){return d.opts.ref},get enabled(){return d.root.opts.open.current},onInteractOutside:T=>{p()(T),!T.defaultPrevented&&d.root.handleClose()},children:(T,Te)=>{xe(T,K(()=>u(w),{get ref(){return d.opts.ref},get enabled(){return d.root.opts.open.current},children:(_e,We)=>{var se=C(),he=_(se);{var pe=z=>{var H=Ve(),V=_(H);{var E=O=>{le(O,{get preventScroll(){return v()},get restoreScrollDelay(){return h()}})};I(V,O=>{d.root.opts.open.current&&O(E)})}var J=$(V,2);{let O=j(()=>({props:Q(u(w),ne()),...d.snippetProps}));P(J,()=>e.child,()=>u(O))}l(z,H)},me=z=>{var H=Ee(),V=_(H);le(V,{get preventScroll(){return v()}});var E=$(V,2);ee(E,O=>({...O}),[()=>Q(u(w),ne())]);var J=D(E);P(J,()=>e.children??fe),S(E),l(z,H)};I(he,z=>{e.child?z(pe):z(me,!1)})}l(_e,se)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};I(ae,x=>{(d.shouldRender||c())&&x(B)})}l(a,k),b()}function ot(a,e){m(e,!0);let t=s(e,"open",15,!1),n=te(e,["$$slots","$$events","$$legacy","open","onOpenChange","children"]);var r=C(),c=_(r);L(c,()=>He,(f,o)=>{o(f,K({get onOpenChange(){return e.onOpenChange}},()=>n,{get open(){return t()},set open(i){t(i)},children:(i,p)=>{var g=C(),v=_(g);P(v,()=>e.children),l(i,g)},$$slots:{default:!0}}))}),l(a,r),b()}var Ke=A("<!> <!>",1);function at(a,e){m(e,!0);let t=s(e,"size",3,"md"),n=te(e,["$$slots","$$events","$$legacy","children","class","size"]);var r=C(),c=_(r);L(c,()=>Oe,(f,o)=>{o(f,{children:(i,p)=>{var g=Ke(),v=_(g);L(v,()=>ze,(y,d)=>{d(y,{class:"dialog-overlay"})});var h=$(v,2);{let y=j(()=>Z("dialog-content",`dialog-${t()}`,e.class));L(h,()=>Ie,(d,w)=>{w(d,K({get class(){return u(y)}},()=>n,{children:(k,ae)=>{var B=C(),x=_(B);P(x,()=>e.children),l(k,B)},$$slots:{default:!0}}))})}l(i,g)},$$slots:{default:!0}})}),l(a,r),b()}var Le=A("<div><!></div>");function nt(a,e){m(e,!0);var t=Le(),n=D(t);P(n,()=>e.children),S(t),Y(r=>oe(t,1,r),[()=>re(Z("dialog-header",e.class))]),l(a,t),b()}function st(a,e){m(e,!0);var t=C(),n=_(t);{let r=j(()=>Z("dialog-title",e.class));L(n,()=>Fe,(c,f)=>{f(c,{get class(){return u(r)},children:(o,i)=>{var p=C(),g=_(p);P(g,()=>e.children),l(o,p)},$$slots:{default:!0}})})}l(a,t),b()}var Re=A("<div><!></div>");function lt(a,e){m(e,!0);var t=Re(),n=D(t);P(n,()=>e.children),S(t),Y(r=>oe(t,1,r),[()=>re(Z("dialog-body",e.class))]),l(a,t),b()}var Ye=A("<div><!></div>");function it(a,e){m(e,!0);var t=Ye(),n=D(t);P(n,()=>e.children),S(t),Y(r=>oe(t,1,r),[()=>re(Z("dialog-footer",e.class))]),l(a,t),b()}var Ze=G("<title> </title>"),ke=G('<svg><!><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"></path></svg>');function dt(a,e){const t=q(e,["children","$$slots","$$events","$$legacy"]),n=q(t,["size","title"]);m(e,!1);const r=X(),c=X();let f=s(e,"size",8,16),o=s(e,"title",8,void 0);W(()=>(M(t),M(o())),()=>{U(r,t["aria-label"]||t["aria-labelledby"]||o())}),W(()=>(u(r),M(t)),()=>{U(c,{"aria-hidden":u(r)?void 0:!0,role:u(r)?"img":void 0,focusable:Number(t.tabindex)===0?!0:void 0})}),ce(),de();var i=ke();ee(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...u(c),...n}));var p=D(i);{var g=v=>{var h=Ze(),y=D(h,!0);S(h),Y(()=>ie(y,o())),l(v,h)};I(p,v=>{o()&&v(g)})}ue(2),S(i),l(a,i),b()}export{dt as C,at as D,rt as E,nt as a,st as b,lt as c,it as d,ot as e};
@@ -1 +1 @@
1
- import{a as c,s as M,f as h}from"./b0XUoOIH.js";import{i as A}from"./vZ2iBqLE.js";import{p as B,l as v,s as u,d as n,g as s,a as C,c as p,n as N,r as m,b as P,m as g,t as R}from"./DSh-OF2y.js";import{i as Y}from"./DT3KtxWU.js";import{a as k}from"./CRnhIQbv.js";import{l as _,p as b}from"./D-yNNNdf.js";var D=h("<title> </title>"),U=h('<svg><!><path d="M16 4 6 14 7.41 15.41 15 7.83 15 28 17 28 17 7.83 24.59 15.41 26 14 16 4z"></path></svg>');function K(w,t){const e=_(t,["children","$$slots","$$events","$$legacy"]),x=_(e,["size","title"]);B(t,!1);const a=g(),d=g();let f=b(t,"size",8,16),r=b(t,"title",8,void 0);v(()=>(n(e),n(r())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||r())}),v(()=>(s(a),n(e)),()=>{u(d,{"aria-hidden":s(a)?void 0:!0,role:s(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),C(),A();var i=U();k(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...s(d),...x}));var z=p(i);{var $=l=>{var o=D(),y=p(o,!0);m(o),R(()=>M(y,r())),c(l,o)};Y(z,l=>{r()&&l($)})}N(),m(i),c(w,i),P()}var j=h("<title> </title>"),q=h('<svg><!><path d="M24.59 16.59 17 24.17 17 4 15 4 15 24.17 7.41 16.59 6 18 16 28 26 18 24.59 16.59z"></path></svg>');function L(w,t){const e=_(t,["children","$$slots","$$events","$$legacy"]),x=_(e,["size","title"]);B(t,!1);const a=g(),d=g();let f=b(t,"size",8,16),r=b(t,"title",8,void 0);v(()=>(n(e),n(r())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||r())}),v(()=>(s(a),n(e)),()=>{u(d,{"aria-hidden":s(a)?void 0:!0,role:s(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),C(),A();var i=q();k(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...s(d),...x}));var z=p(i);{var $=l=>{var o=j(),y=p(o,!0);m(o),R(()=>M(y,r())),c(l,o)};Y(z,l=>{r()&&l($)})}N(),m(i),c(w,i),P()}export{K as A,L as a};
1
+ import{a as c,s as M,f as h}from"./usxM-xOh.js";import{i as A}from"./DIBaaeCL.js";import{p as B,l as v,s as u,d as n,g as s,a as C,c as p,n as N,r as m,b as P,m as g,t as R}from"./CCA2E2CK.js";import{i as Y}from"./yUs562n0.js";import{a as k}from"./DkuxRPZv.js";import{l as _,p as b}from"./DHholpIc.js";var D=h("<title> </title>"),U=h('<svg><!><path d="M16 4 6 14 7.41 15.41 15 7.83 15 28 17 28 17 7.83 24.59 15.41 26 14 16 4z"></path></svg>');function K(w,t){const e=_(t,["children","$$slots","$$events","$$legacy"]),x=_(e,["size","title"]);B(t,!1);const a=g(),d=g();let f=b(t,"size",8,16),r=b(t,"title",8,void 0);v(()=>(n(e),n(r())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||r())}),v(()=>(s(a),n(e)),()=>{u(d,{"aria-hidden":s(a)?void 0:!0,role:s(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),C(),A();var i=U();k(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...s(d),...x}));var z=p(i);{var $=l=>{var o=D(),y=p(o,!0);m(o),R(()=>M(y,r())),c(l,o)};Y(z,l=>{r()&&l($)})}N(),m(i),c(w,i),P()}var j=h("<title> </title>"),q=h('<svg><!><path d="M24.59 16.59 17 24.17 17 4 15 4 15 24.17 7.41 16.59 6 18 16 28 26 18 24.59 16.59z"></path></svg>');function L(w,t){const e=_(t,["children","$$slots","$$events","$$legacy"]),x=_(e,["size","title"]);B(t,!1);const a=g(),d=g();let f=b(t,"size",8,16),r=b(t,"title",8,void 0);v(()=>(n(e),n(r())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||r())}),v(()=>(s(a),n(e)),()=>{u(d,{"aria-hidden":s(a)?void 0:!0,role:s(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),C(),A();var i=q();k(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...s(d),...x}));var z=p(i);{var $=l=>{var o=j(),y=p(o,!0);m(o),R(()=>M(y,r())),c(l,o)};Y(z,l=>{r()&&l($)})}N(),m(i),c(w,i),P()}export{K as A,L as a};
@@ -1,2 +1,2 @@
1
- import{aX as ae,g as K,aB as oe,a7 as le,aY as q,U as N,P as Q,v as l,i as _,an as b,aZ as z,h as ue,j as V,z as fe,a_ as U,G as m,w as A,a$ as I,S as C,az as ce,b0 as X,b1 as de,b2 as G,b3 as he,b4 as _e,ax as L,b5 as O,b6 as Z,b7 as pe,b8 as ee,a5 as te,B as ve,Y as P,q as R,n as ge,o as be,b9 as D,E as me,$ as ye,ba as Ee,bb as Te,ah as we,bc as Ne,ai as Ae,bd as Re,y as S,be as Se,bf as De,bg as Me,bh as ke,bi as Le,bj as Oe,C as W,bk as F,H as xe,Z as Ie,bl as Y,u as M,bm as Ce,X as Pe,bn as Fe,M as Ye,p as $e,A as Be,bo as He,b as Ve}from"./DSh-OF2y.js";function We(t){let e=0,r=Q(0),s;return()=>{ae()&&(K(r),oe(()=>(e===0&&(s=le(()=>t(()=>q(r)))),e+=1,()=>{N(()=>{e-=1,e===0&&(s?.(),s=void 0,q(r))})})))}}var je=me|ye;function qe(t,e,r,s){new ze(t,e,r,s)}class ze{parent;is_pending=!1;transform_error;#t;#v=_?l:null;#s;#u;#e;#i=null;#r=null;#n=null;#a=null;#f=0;#l=0;#c=!1;#d=new Set;#h=new Set;#o=null;#m=We(()=>(this.#o=Q(this.#f),()=>{this.#o=null}));constructor(e,r,s,i){this.#t=e,this.#s=r,this.#u=n=>{var a=b;a.b=this,a.f|=z,s(n)},this.parent=b.b,this.transform_error=i??this.parent?.transform_error??(n=>n),this.#e=ue(()=>{if(_){const n=this.#v;V();const a=n.data===fe;if(n.data.startsWith(U)){const o=JSON.parse(n.data.slice(U.length));this.#E(o)}else a?this.#T():this.#y()}else this.#g()},je),_&&(this.#t=l)}#y(){try{this.#i=m(()=>this.#u(this.#t))}catch(e){this.error(e)}}#E(e){const r=this.#s.failed;r&&(this.#n=m(()=>{r(this.#t,()=>e,()=>()=>{})}))}#T(){const e=this.#s.pending;e&&(this.is_pending=!0,this.#r=m(()=>e(this.#t)),N(()=>{var r=this.#a=document.createDocumentFragment(),s=A();r.append(s),this.#i=this.#p(()=>(I.ensure(),m(()=>this.#u(s)))),this.#l===0&&(this.#t.before(r),this.#a=null,C(this.#r,()=>{this.#r=null}),this.#_())}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#l=0,this.#f=0,this.#i=m(()=>{this.#u(this.#t)}),this.#l>0){var e=this.#a=document.createDocumentFragment();ce(this.#i,e);const r=this.#s.pending;this.#r=m(()=>r(this.#t))}else this.#_()}catch(r){this.error(r)}}#_(){this.is_pending=!1;for(const e of this.#d)X(e,de),G(e);for(const e of this.#h)X(e,he),G(e);this.#d.clear(),this.#h.clear()}defer_effect(e){_e(e,this.#d,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#s.pending}#p(e){var r=b,s=ee,i=te;L(this.#e),O(this.#e),Z(this.#e.ctx);try{return e()}catch(n){return pe(n),null}finally{L(r),O(s),Z(i)}}#b(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(e);return}this.#l+=e,this.#l===0&&(this.#_(),this.#r&&C(this.#r,()=>{this.#r=null}),this.#a&&(this.#t.before(this.#a),this.#a=null))}update_pending_count(e){this.#b(e),this.#f+=e,!(!this.#o||this.#c)&&(this.#c=!0,N(()=>{this.#c=!1,this.#o&&ve(this.#o,this.#f)}))}get_effect_pending(){return this.#m(),K(this.#o)}error(e){var r=this.#s.onerror;let s=this.#s.failed;if(!r&&!s)throw e;this.#i&&(P(this.#i),this.#i=null),this.#r&&(P(this.#r),this.#r=null),this.#n&&(P(this.#n),this.#n=null),_&&(R(this.#v),ge(),R(be()));var i=!1,n=!1;const a=()=>{if(i){Te();return}i=!0,n&&Ee(),this.#n!==null&&C(this.#n,()=>{this.#n=null}),this.#p(()=>{I.ensure(),this.#g()})},f=o=>{try{n=!0,r?.(o,a),n=!1}catch(u){D(u,this.#e&&this.#e.parent)}s&&(this.#n=this.#p(()=>{I.ensure();try{return m(()=>{var u=b;u.b=this,u.f|=z,s(this.#t,()=>o,()=>a)})}catch(u){return D(u,this.#e.parent),null}}))};N(()=>{var o;try{o=this.transform_error(e)}catch(u){D(u,this.#e&&this.#e.parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(f,u=>D(u,this.#e&&this.#e.parent)):f(o)})}}function st(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Ue=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function it(t){return Ue.includes(t)}const Xe={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function at(t){return t=t.toLowerCase(),Xe[t]??t}const Ge=["touchstart","touchmove"];function Ze(t){return Ge.includes(t)}const Je=["textarea","script","style","title"];function ot(t){return Je.includes(t)}const w=Symbol("events"),re=new Set,$=new Set;function ne(t,e,r,s={}){function i(n){if(s.capture||B.call(e,n),!n.cancelBubble)return Ne(()=>r?.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?N(()=>{e.addEventListener(t,i,s)}):e.addEventListener(t,i,s),i}function lt(t,e,r,s={}){var i=ne(e,t,r,s);return()=>{t.removeEventListener(e,i,s)}}function ut(t,e,r,s,i){var n={capture:s,passive:i},a=ne(t,e,r,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&we(()=>{e.removeEventListener(t,a,n)})}function ft(t,e,r){(e[w]??={})[t]=r}function ct(t){for(var e=0;e<t.length;e++)re.add(t[e]);for(var r of $)r(t)}let J=null;function B(t){var e=this,r=e.ownerDocument,s=t.type,i=t.composedPath?.()||[],n=i[0]||t.target;J=t;var a=0,f=J===t&&t[w];if(f){var o=i.indexOf(f);if(o!==-1&&(e===document||e===window)){t[w]=e;return}var u=i.indexOf(e);if(u===-1)return;o<=u&&(a=o)}if(n=i[a]||t.target,n!==e){Ae(t,"currentTarget",{configurable:!0,get(){return n||r}});var y=ee,T=b;O(null),L(null);try{for(var g,d=[];n!==null;){var c=n.assignedSlot||n.parentNode||n.host||null;try{var h=n[w]?.[s];h!=null&&(!n.disabled||t.target===n)&&h.call(n,t)}catch(p){g?d.push(p):g=p}if(t.cancelBubble||c===e||c===null)break;n=c}if(g){for(let p of d)queueMicrotask(()=>{throw p});throw g}}finally{t[w]=e,delete t.currentTarget,O(y),L(T)}}}const Ke=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function Qe(t){return Ke?.createHTML(t)??t}function se(t){var e=Re("template");return e.innerHTML=Qe(t.replaceAll("<!>","<!---->")),e.content}function v(t,e){var r=b;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function dt(t,e){var r=(e&De)!==0,s=(e&Me)!==0,i,n=!t.startsWith("<!>");return()=>{if(_)return v(l,null),l;i===void 0&&(i=se(n?t:"<!>"+t),r||(i=S(i)));var a=s||Se?document.importNode(i,!0):i.cloneNode(!0);if(r){var f=S(a),o=a.lastChild;v(f,o)}else v(a,a);return a}}function et(t,e,r="svg"){var s=!t.startsWith("<!>"),i=`<${r}>${s?t:"<!>"+t}</${r}>`,n;return()=>{if(_)return v(l,null),l;if(!n){var a=se(i),f=S(a);n=S(f)}var o=n.cloneNode(!0);return v(o,o),o}}function ht(t,e){return et(t,e,"svg")}function _t(t=""){if(!_){var e=A(t+"");return v(e,e),e}var r=l;return r.nodeType!==ke?(r.before(r=A()),R(r)):Le(r),v(r,r),r}function pt(){if(_)return v(l,null),l;var t=document.createDocumentFragment(),e=document.createComment(""),r=A();return t.append(e,r),v(e,r),t}function vt(t,e){if(_){var r=b;((r.f&Oe)===0||r.nodes.end===null)&&(r.nodes.end=l),V();return}t!==null&&t.before(e)}function gt(){if(_&&l&&l.nodeType===W&&l.textContent?.startsWith("$")){const t=l.textContent.substring(1);return V(),t}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function bt(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=`${r}`)}function tt(t,e){return ie(t,e)}function mt(t,e){F(),e.intro=e.intro??!1;const r=e.target,s=_,i=l;try{for(var n=S(r);n&&(n.nodeType!==W||n.data!==xe);)n=Ie(n);if(!n)throw Y;M(!0),R(n);const a=ie(t,{...e,anchor:n});return M(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(f=>f.startsWith("https://svelte.dev/e/")))throw a;return a!==Y&&console.warn("Failed to hydrate: ",a),e.recover===!1&&Ce(),F(),Pe(r),M(!1),tt(t,e)}finally{M(s),R(i)}}const k=new Map;function ie(t,{target:e,anchor:r,props:s={},events:i,context:n,intro:a=!0,transformError:f}){F();var o=void 0,u=Fe(()=>{var y=r??e.appendChild(A());qe(y,{pending:()=>{}},d=>{$e({});var c=te;if(n&&(c.c=n),i&&(s.$$events=i),_&&v(d,null),o=t(d,s)||{},_&&(b.nodes.end=l,l===null||l.nodeType!==W||l.data!==Be))throw He(),Y;Ve()},f);var T=new Set,g=d=>{for(var c=0;c<d.length;c++){var h=d[c];if(!T.has(h)){T.add(h);var p=Ze(h);for(const x of[e,document]){var E=k.get(x);E===void 0&&(E=new Map,k.set(x,E));var j=E.get(h);j===void 0?(x.addEventListener(h,B,{passive:p}),E.set(h,1)):E.set(h,j+1)}}}};return g(Ye(re)),$.add(g),()=>{for(var d of T)for(const p of[e,document]){var c=k.get(p),h=c.get(d);--h==0?(p.removeEventListener(d,B),c.delete(d),c.size===0&&k.delete(p)):c.set(d,h)}$.delete(g),y!==r&&y.parentNode?.removeChild(y)}});return H.set(o,u),o}let H=new WeakMap;function yt(t,e){const r=H.get(t);return r?(H.delete(t),r(e)):Promise.resolve()}const rt="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(rt);export{vt as a,dt as b,pt as c,ct as d,ft as e,ht as f,ut as g,mt as h,st as i,ne as j,it as k,We as l,tt as m,at as n,lt as o,gt as p,v as q,ot as r,bt as s,_t as t,yt as u};
1
+ import{aY as ae,g as K,aB as oe,a7 as le,aZ as q,S as N,N as Q,x as l,j as _,an as b,a_ as z,i as ue,q as H,H as fe,a$ as U,D as m,h as R,b0 as I,Q as C,az as ce,b1 as X,b2 as de,b3 as G,b4 as he,b5 as _e,ay as M,b6 as O,b7 as Z,b8 as pe,b9 as ee,a5 as te,z as ve,W as F,k as S,n as ge,v as be,ba as D,Y as me,$ as ye,bb as Ee,bc as Te,ah as we,bd as Ne,ai as Re,be as Se,o as A,bf as Ae,bg as De,bh as ke,bi as Le,bj as Me,bk as Oe,C as B,bl as P,Z as xe,X as Ie,bm as V,w as k,bn as Ce,V as Fe,bo as Pe,K as Ve,p as We,y as Ye,bp as $e,b as He}from"./CCA2E2CK.js";function Be(t){let e=0,r=Q(0),s;return()=>{ae()&&(K(r),oe(()=>(e===0&&(s=le(()=>t(()=>q(r)))),e+=1,()=>{N(()=>{e-=1,e===0&&(s?.(),s=void 0,q(r))})})))}}var je=me|ye;function qe(t,e,r,s){new ze(t,e,r,s)}class ze{parent;is_pending=!1;transform_error;#t;#v=_?l:null;#s;#u;#e;#i=null;#r=null;#n=null;#a=null;#f=0;#l=0;#c=!1;#d=new Set;#h=new Set;#o=null;#m=Be(()=>(this.#o=Q(this.#f),()=>{this.#o=null}));constructor(e,r,s,i){this.#t=e,this.#s=r,this.#u=n=>{var a=b;a.b=this,a.f|=z,s(n)},this.parent=b.b,this.transform_error=i??this.parent?.transform_error??(n=>n),this.#e=ue(()=>{if(_){const n=this.#v;H();const a=n.data===fe;if(n.data.startsWith(U)){const o=JSON.parse(n.data.slice(U.length));this.#E(o)}else a?this.#T():this.#y()}else this.#g()},je),_&&(this.#t=l)}#y(){try{this.#i=m(()=>this.#u(this.#t))}catch(e){this.error(e)}}#E(e){const r=this.#s.failed;r&&(this.#n=m(()=>{r(this.#t,()=>e,()=>()=>{})}))}#T(){const e=this.#s.pending;e&&(this.is_pending=!0,this.#r=m(()=>e(this.#t)),N(()=>{var r=this.#a=document.createDocumentFragment(),s=R();r.append(s),this.#i=this.#p(()=>(I.ensure(),m(()=>this.#u(s)))),this.#l===0&&(this.#t.before(r),this.#a=null,C(this.#r,()=>{this.#r=null}),this.#_())}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#l=0,this.#f=0,this.#i=m(()=>{this.#u(this.#t)}),this.#l>0){var e=this.#a=document.createDocumentFragment();ce(this.#i,e);const r=this.#s.pending;this.#r=m(()=>r(this.#t))}else this.#_()}catch(r){this.error(r)}}#_(){this.is_pending=!1;for(const e of this.#d)X(e,de),G(e);for(const e of this.#h)X(e,he),G(e);this.#d.clear(),this.#h.clear()}defer_effect(e){_e(e,this.#d,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#s.pending}#p(e){var r=b,s=ee,i=te;M(this.#e),O(this.#e),Z(this.#e.ctx);try{return e()}catch(n){return pe(n),null}finally{M(r),O(s),Z(i)}}#b(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(e);return}this.#l+=e,this.#l===0&&(this.#_(),this.#r&&C(this.#r,()=>{this.#r=null}),this.#a&&(this.#t.before(this.#a),this.#a=null))}update_pending_count(e){this.#b(e),this.#f+=e,!(!this.#o||this.#c)&&(this.#c=!0,N(()=>{this.#c=!1,this.#o&&ve(this.#o,this.#f)}))}get_effect_pending(){return this.#m(),K(this.#o)}error(e){var r=this.#s.onerror;let s=this.#s.failed;if(!r&&!s)throw e;this.#i&&(F(this.#i),this.#i=null),this.#r&&(F(this.#r),this.#r=null),this.#n&&(F(this.#n),this.#n=null),_&&(S(this.#v),ge(),S(be()));var i=!1,n=!1;const a=()=>{if(i){Te();return}i=!0,n&&Ee(),this.#n!==null&&C(this.#n,()=>{this.#n=null}),this.#p(()=>{I.ensure(),this.#g()})},f=o=>{try{n=!0,r?.(o,a),n=!1}catch(u){D(u,this.#e&&this.#e.parent)}s&&(this.#n=this.#p(()=>{I.ensure();try{return m(()=>{var u=b;u.b=this,u.f|=z,s(this.#t,()=>o,()=>a)})}catch(u){return D(u,this.#e.parent),null}}))};N(()=>{var o;try{o=this.transform_error(e)}catch(u){D(u,this.#e&&this.#e.parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(f,u=>D(u,this.#e&&this.#e.parent)):f(o)})}}function st(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Ue=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function it(t){return Ue.includes(t)}const Xe={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function at(t){return t=t.toLowerCase(),Xe[t]??t}const Ge=["touchstart","touchmove"];function Ze(t){return Ge.includes(t)}const Je=["textarea","script","style","title"];function ot(t){return Je.includes(t)}const w=Symbol("events"),re=new Set,W=new Set;function ne(t,e,r,s={}){function i(n){if(s.capture||Y.call(e,n),!n.cancelBubble)return Ne(()=>r?.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?N(()=>{e.addEventListener(t,i,s)}):e.addEventListener(t,i,s),i}function lt(t,e,r,s={}){var i=ne(e,t,r,s);return()=>{t.removeEventListener(e,i,s)}}function ut(t,e,r,s,i){var n={capture:s,passive:i},a=ne(t,e,r,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&we(()=>{e.removeEventListener(t,a,n)})}function ft(t,e,r){(e[w]??={})[t]=r}function ct(t){for(var e=0;e<t.length;e++)re.add(t[e]);for(var r of W)r(t)}let J=null;function Y(t){var e=this,r=e.ownerDocument,s=t.type,i=t.composedPath?.()||[],n=i[0]||t.target;J=t;var a=0,f=J===t&&t[w];if(f){var o=i.indexOf(f);if(o!==-1&&(e===document||e===window)){t[w]=e;return}var u=i.indexOf(e);if(u===-1)return;o<=u&&(a=o)}if(n=i[a]||t.target,n!==e){Re(t,"currentTarget",{configurable:!0,get(){return n||r}});var y=ee,T=b;O(null),M(null);try{for(var g,d=[];n!==null;){var c=n.assignedSlot||n.parentNode||n.host||null;try{var h=n[w]?.[s];h!=null&&(!n.disabled||t.target===n)&&h.call(n,t)}catch(p){g?d.push(p):g=p}if(t.cancelBubble||c===e||c===null)break;n=c}if(g){for(let p of d)queueMicrotask(()=>{throw p});throw g}}finally{t[w]=e,delete t.currentTarget,O(y),M(T)}}}const Ke=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function Qe(t){return Ke?.createHTML(t)??t}function se(t){var e=Se("template");return e.innerHTML=Qe(t.replaceAll("<!>","<!---->")),e.content}function v(t,e){var r=b;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function dt(t,e){var r=(e&De)!==0,s=(e&ke)!==0,i,n=!t.startsWith("<!>");return()=>{if(_)return v(l,null),l;i===void 0&&(i=se(n?t:"<!>"+t),r||(i=A(i)));var a=s||Ae?document.importNode(i,!0):i.cloneNode(!0);if(r){var f=A(a),o=a.lastChild;v(f,o)}else v(a,a);return a}}function et(t,e,r="svg"){var s=!t.startsWith("<!>"),i=`<${r}>${s?t:"<!>"+t}</${r}>`,n;return()=>{if(_)return v(l,null),l;if(!n){var a=se(i),f=A(a);n=A(f)}var o=n.cloneNode(!0);return v(o,o),o}}function ht(t,e){return et(t,e,"svg")}function _t(t=""){if(!_){var e=R(t+"");return v(e,e),e}var r=l;return r.nodeType!==Le?(r.before(r=R()),S(r)):Me(r),v(r,r),r}function pt(){if(_)return v(l,null),l;var t=document.createDocumentFragment(),e=document.createComment(""),r=R();return t.append(e,r),v(e,r),t}function vt(t,e){if(_){var r=b;((r.f&Oe)===0||r.nodes.end===null)&&(r.nodes.end=l),H();return}t!==null&&t.before(e)}function gt(){if(_&&l&&l.nodeType===B&&l.textContent?.startsWith("$")){const t=l.textContent.substring(1);return H(),t}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function bt(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=`${r}`)}function tt(t,e){return ie(t,e)}function mt(t,e){P(),e.intro=e.intro??!1;const r=e.target,s=_,i=l;try{for(var n=A(r);n&&(n.nodeType!==B||n.data!==xe);)n=Ie(n);if(!n)throw V;k(!0),S(n);const a=ie(t,{...e,anchor:n});return k(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
+ `).some(f=>f.startsWith("https://svelte.dev/e/")))throw a;return a!==V&&console.warn("Failed to hydrate: ",a),e.recover===!1&&Ce(),P(),Fe(r),k(!1),tt(t,e)}finally{k(s),S(i)}}const L=new Map;function ie(t,{target:e,anchor:r,props:s={},events:i,context:n,intro:a=!0,transformError:f}){P();var o=void 0,u=Pe(()=>{var y=r??e.appendChild(R());qe(y,{pending:()=>{}},d=>{We({});var c=te;if(n&&(c.c=n),i&&(s.$$events=i),_&&v(d,null),o=t(d,s)||{},_&&(b.nodes.end=l,l===null||l.nodeType!==B||l.data!==Ye))throw $e(),V;He()},f);var T=new Set,g=d=>{for(var c=0;c<d.length;c++){var h=d[c];if(!T.has(h)){T.add(h);var p=Ze(h);for(const x of[e,document]){var E=L.get(x);E===void 0&&(E=new Map,L.set(x,E));var j=E.get(h);j===void 0?(x.addEventListener(h,Y,{passive:p}),E.set(h,1)):E.set(h,j+1)}}}};return g(Ve(re)),W.add(g),()=>{for(var d of T)for(const p of[e,document]){var c=L.get(p),h=c.get(d);--h==0?(p.removeEventListener(d,Y),c.delete(d),c.size===0&&L.delete(p)):c.set(d,h)}W.delete(g),y!==r&&y.parentNode?.removeChild(y)}});return $.set(o,u),o}let $=new WeakMap;function yt(t,e){const r=$.get(t);return r?($.delete(t),r(e)):Promise.resolve()}const rt="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(rt);export{vt as a,dt as b,pt as c,ct as d,ft as e,ht as f,ut as g,mt as h,st as i,ne as j,it as k,Be as l,tt as m,at as n,lt as o,gt as p,v as q,ot as r,bt as s,_t as t,yt as u};
@@ -0,0 +1 @@
1
+ import{e as i,f as y,g as r,s as n}from"./CCA2E2CK.js";import{g as l}from"./csGnu8Rb.js";import{d as v,u as V,c as F,f as h}from"./BgRr0V7g.js";const d={selectedType:null,groupBy:null,sortKey:"name",sortAsc:!0,filters:{text:{},enum:{},date:{}}};function x(){let a=i(y([])),o=i(null),c=i(!1);async function w(){try{n(a,await h(),!0),n(c,!0)}catch(e){console.error("Failed to load views:",e)}}async function f(e,t="list"){const s=t==="calendar"?{...d,calendar:{dateField:"due_date",year:new Date().getFullYear(),month:new Date().getMonth()+1}}:d,u=await F(e,s,t);return n(a,[...r(a),u],!0),u}async function g(e,t){await V(e,t),n(a,r(a).map(s=>s.id===e?{...s,...t}:s),!0)}async function m(e){if(await v(e),n(a,r(a).filter(t=>t.id!==e),!0),r(o)===e){const t=r(a)[0];t?(n(o,t.id,!0),l(`/views/${t.id}`,{replaceState:!0})):(n(o,null),l("/",{replaceState:!0}))}}function p(e){n(o,e,!0)}return{get views(){return r(a)},get activeViewId(){return r(o)},get loaded(){return r(c)},load:w,create:f,update:g,remove:m,setActive:p}}const D=x();export{D as v};
@@ -1 +1 @@
1
- import{R as k,Y as u,S as A,w as _,G as v,D as g,i as l,v as T,az as m,J as S,h as E,j as R,E as w,k as D,H as M,z as B,o as F,q as N,u as b,aA as Y,aB as x,a7 as H,U as I,au as O}from"./DSh-OF2y.js";class q{anchor;#e=new Map;#t=new Map;#s=new Map;#a=new Set;#i=!0;constructor(s,t=!0){this.anchor=s,this.#i=t}#r=s=>{if(this.#e.has(s)){var t=this.#e.get(s),a=this.#t.get(t);if(a)k(a),this.#a.delete(t);else{var i=this.#s.get(t);i&&(this.#t.set(t,i.effect),this.#s.delete(t),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),a=i.effect)}for(const[e,f]of this.#e){if(this.#e.delete(e),e===s)break;const r=this.#s.get(f);r&&(u(r.effect),this.#s.delete(f))}for(const[e,f]of this.#t){if(e===t||this.#a.has(e))continue;const r=()=>{if(Array.from(this.#e.values()).includes(e)){var c=document.createDocumentFragment();m(f,c),c.append(_()),this.#s.set(e,{effect:f,fragment:c})}else u(f);this.#a.delete(e),this.#t.delete(e)};this.#i||!a?(this.#a.add(e),A(f,r,!1)):r()}}};#f=s=>{this.#e.delete(s);const t=Array.from(this.#e.values());for(const[a,i]of this.#s)t.includes(a)||(u(i.effect),this.#s.delete(a))};ensure(s,t){var a=g,i=S();if(t&&!this.#t.has(s)&&!this.#s.has(s))if(i){var e=document.createDocumentFragment(),f=_();e.append(f),this.#s.set(s,{effect:v(()=>t(f)),fragment:e})}else this.#t.set(s,v(()=>t(this.anchor)));if(this.#e.set(a,s),i){for(const[r,h]of this.#t)r===s?a.unskip_effect(h):a.skip_effect(h);for(const[r,h]of this.#s)r===s?a.unskip_effect(h.effect):a.skip_effect(h.effect);a.oncommit(this.#r),a.ondiscard(this.#f)}else l&&(this.anchor=T),this.#r(a)}}function C(n,s,t=!1){var a;l&&(a=T,R());var i=new q(n),e=t?w:0;function f(r,h){if(l){var c=D(a),o;if(c===M?o=0:c===B?o=!1:o=parseInt(c.substring(1)),r!==o){var d=F();N(d),i.anchor=d,b(!1),i.ensure(r,h),b(!0);return}}i.ensure(r,h)}E(()=>{var r=!1;s((h,c=0)=>{r=!0,f(c,h)}),r||f(!1,null)},e)}function p(n,s){return n===s||n?.[O]===s}function L(n={},s,t,a){return Y(()=>{var i,e;return x(()=>{i=e,e=[],H(()=>{n!==t(...e)&&(s(n,...e),i&&p(t(...i),n)&&s(null,...i))})}),()=>{I(()=>{e&&p(t(...e),n)&&s(null,...e)})}}),n}export{q as B,L as b,C as i};
1
+ import{P as T,W as u,Q as k,h as _,D as v,A as g,j as l,x as A,az as m,G as S,i as w,q as E,Y as R,u as D,Z as M,H as x,v as B,k as F,w as b,aA as N,aB as Y,a7 as H,S as I,au as O}from"./CCA2E2CK.js";class q{anchor;#e=new Map;#t=new Map;#s=new Map;#a=new Set;#i=!0;constructor(s,t=!0){this.anchor=s,this.#i=t}#r=s=>{if(this.#e.has(s)){var t=this.#e.get(s),a=this.#t.get(t);if(a)T(a),this.#a.delete(t);else{var i=this.#s.get(t);i&&(this.#t.set(t,i.effect),this.#s.delete(t),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),a=i.effect)}for(const[e,f]of this.#e){if(this.#e.delete(e),e===s)break;const r=this.#s.get(f);r&&(u(r.effect),this.#s.delete(f))}for(const[e,f]of this.#t){if(e===t||this.#a.has(e))continue;const r=()=>{if(Array.from(this.#e.values()).includes(e)){var c=document.createDocumentFragment();m(f,c),c.append(_()),this.#s.set(e,{effect:f,fragment:c})}else u(f);this.#a.delete(e),this.#t.delete(e)};this.#i||!a?(this.#a.add(e),k(f,r,!1)):r()}}};#f=s=>{this.#e.delete(s);const t=Array.from(this.#e.values());for(const[a,i]of this.#s)t.includes(a)||(u(i.effect),this.#s.delete(a))};ensure(s,t){var a=g,i=S();if(t&&!this.#t.has(s)&&!this.#s.has(s))if(i){var e=document.createDocumentFragment(),f=_();e.append(f),this.#s.set(s,{effect:v(()=>t(f)),fragment:e})}else this.#t.set(s,v(()=>t(this.anchor)));if(this.#e.set(a,s),i){for(const[r,h]of this.#t)r===s?a.unskip_effect(h):a.skip_effect(h);for(const[r,h]of this.#s)r===s?a.unskip_effect(h.effect):a.skip_effect(h.effect);a.oncommit(this.#r),a.ondiscard(this.#f)}else l&&(this.anchor=A),this.#r(a)}}function L(n,s,t=!1){var a;l&&(a=A,E());var i=new q(n),e=t?R:0;function f(r,h){if(l){var c=D(a),o;if(c===M?o=0:c===x?o=!1:o=parseInt(c.substring(1)),r!==o){var d=B();F(d),i.anchor=d,b(!1),i.ensure(r,h),b(!0);return}}i.ensure(r,h)}w(()=>{var r=!1;s((h,c=0)=>{r=!0,f(c,h)}),r||f(!1,null)},e)}function p(n,s){return n===s||n?.[O]===s}function P(n={},s,t,a){return N(()=>{var i,e;return Y(()=>{i=e,e=[],H(()=>{n!==t(...e)&&(s(n,...e),i&&p(t(...i),n)&&s(null,...i))})}),()=>{I(()=>{e&&p(t(...e),n)&&s(null,...e)})}}),n}export{q as B,P as b,L as i};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BIvpQ3Qk.js","../chunks/PPVm8Dsz.js","../chunks/b0XUoOIH.js","../chunks/DSh-OF2y.js","../chunks/DT3KtxWU.js","../chunks/CRnhIQbv.js","../chunks/CFtRXHDP.js","../chunks/B3NI-DOv.js","../chunks/BAAbylyg.js","../chunks/DSkxw4Ss.js","../chunks/DC9z5DEo.js","../chunks/Sk0ODu4Y.js","../chunks/Bs4ovbtO.js","../chunks/0wBGAod7.js","../chunks/DVx_0hnZ.js","../chunks/D-yNNNdf.js","../chunks/BUcIsKRk.js","../chunks/DHtLlmE0.js","../chunks/DCVmM0L5.js","../chunks/vZ2iBqLE.js","../assets/Toaster.rN8r_Hzv.css","../chunks/lsAKkphT.js","../assets/0.n3qM-DRk.css","../nodes/1.y3j9wcQE.js","../nodes/2.Du0xZVQg.js","../chunks/BPXdu_FX.js","../chunks/DQYNi3YK.js","../chunks/Bnl5ADsW.js","../chunks/CdeYcEuU.js","../chunks/CSzKZPD4.js","../chunks/BgBJ0u3M.js","../chunks/azUmHUDT.js","../chunks/0rsp5-Up.js","../chunks/BHue2Ock.js","../chunks/DQ5NTKSo.js","../chunks/APIqItee.js","../chunks/KHKAD2Ng.js","../assets/Copy.FS8bdfxr.css","../chunks/DiWKchgv.js","../chunks/BU2bHQbQ.js","../assets/2.DNpjFx0k.css","../nodes/3.weQEi2lI.js","../chunks/By_Wtb5J.js","../assets/ViewToolbar.BX74Ki7U.css","../assets/3.zsEg_MDN.css","../nodes/4.DJyhWznw.js","../chunks/DodWDTE5.js","../chunks/CqkleIqs.js","../assets/4.CjSyz-ka.css","../nodes/5.CipwuwB3.js","../assets/5.DFeGxLYf.css","../nodes/6.Daxwm3Lw.js","../assets/6.CquhUpOu.css","../nodes/7.TxeJDMtw.js","../chunks/Bt5_mycY.js","../assets/checkbox.D6tMDJWk.css","../assets/7.5LBMlZdT.css","../nodes/8.DWNdmB4l.js","../assets/8.DfcI2i9H.css","../nodes/9.BuTZk7Le.js","../assets/9.CT4xL4K3.css","../nodes/10.D03BZcr1.js","../assets/10.BUrHkYry.css"])))=>i.map(i=>d[i]);
2
- import{_ as i}from"../chunks/PPVm8Dsz.js";import{s as I,av as $,g as m,aC as tt,ai as et,m as rt,p as at,a6 as st,a2 as ot,aD as nt,aE as it,a0 as v,a3 as mt,b as ct,e as j,a4 as O,c as ut,r as _t,t as dt}from"../chunks/DSh-OF2y.js";import{h as lt,m as ft,u as vt,a as _,c as E,b as Y,t as gt,s as ht}from"../chunks/b0XUoOIH.js";import{i as D,b as R}from"../chunks/DT3KtxWU.js";import{c as A}from"../chunks/DCVmM0L5.js";import{p as L}from"../chunks/D-yNNNdf.js";function Et(s){return class extends pt{constructor(t){super({component:s,...t})}}}class pt{#e;#t;constructor(t){var a=new Map,c=(r,e)=>{var u=rt(e,!1,!1);return a.set(r,u),u};const n=new Proxy({...t.props||{},$$events:{}},{get(r,e){return m(a.get(e)??c(e,Reflect.get(r,e)))},has(r,e){return e===$?!0:(m(a.get(e)??c(e,Reflect.get(r,e))),Reflect.has(r,e))},set(r,e,u){return I(a.get(e)??c(e,u),u),Reflect.set(r,e,u)}});this.#t=(t.hydrate?lt:ft)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#e=n.$$events;for(const r of Object.keys(this.#t))r==="$set"||r==="$destroy"||r==="$on"||et(this,r,{get(){return this.#t[r]},set(e){this.#t[r]=e},enumerable:!0});this.#t.$set=r=>{Object.assign(n,r)},this.#t.$destroy=()=>{vt(this.#t)}}$set(t){this.#t.$set(t)}$on(t,a){this.#e[t]=this.#e[t]||[];const c=(...n)=>a.call(this,...n);return this.#e[t].push(c),()=>{this.#e[t]=this.#e[t].filter(n=>n!==c)}}$destroy(){this.#t.$destroy()}}const wt={};var yt=Y('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Pt=Y("<!> <!>",1);function bt(s,t){at(t,!0);let a=L(t,"components",23,()=>[]),c=L(t,"data_0",3,null),n=L(t,"data_1",3,null),r=L(t,"data_2",3,null);st(()=>t.stores.page.set(t.page)),ot(()=>{t.stores,t.page,t.constructors,a(),t.form,c(),n(),r(),t.stores.page.notify()});let e=j(!1),u=j(!1),k=j(null);nt(()=>{const o=t.stores.page.subscribe(()=>{m(e)&&(I(u,!0),it().then(()=>{I(k,document.title||"untitled page",!0)}))});return I(e,!0),o});const z=O(()=>t.constructors[2]);var C=Pt(),S=v(C);{var B=o=>{const d=O(()=>t.constructors[0]);var l=E(),p=v(l);A(p,()=>m(d),(f,g)=>{R(g(f,{get data(){return c()},get form(){return t.form},get params(){return t.page.params},children:(y,Rt)=>{var M=E(),K=v(M);{var N=h=>{const T=O(()=>t.constructors[1]);var P=E(),V=v(P);A(V,()=>m(T),(x,w)=>{R(w(x,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(b,At)=>{var G=E(),U=v(G);A(U,()=>m(z),(W,X)=>{R(X(W,{get data(){return r()},get form(){return t.form},get params(){return t.page.params}}),Z=>a()[2]=Z,()=>a()?.[2])}),_(b,G)},$$slots:{default:!0}}),b=>a()[1]=b,()=>a()?.[1])}),_(h,P)},Q=h=>{const T=O(()=>t.constructors[1]);var P=E(),V=v(P);A(V,()=>m(T),(x,w)=>{R(w(x,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),b=>a()[1]=b,()=>a()?.[1])}),_(h,P)};D(K,h=>{t.constructors[2]?h(N):h(Q,!1)})}_(y,M)},$$slots:{default:!0}}),y=>a()[0]=y,()=>a()?.[0])}),_(o,l)},F=o=>{const d=O(()=>t.constructors[0]);var l=E(),p=v(l);A(p,()=>m(d),(f,g)=>{R(g(f,{get data(){return c()},get form(){return t.form},get params(){return t.page.params}}),y=>a()[0]=y,()=>a()?.[0])}),_(o,l)};D(S,o=>{t.constructors[1]?o(B):o(F,!1)})}var H=mt(S,2);{var J=o=>{var d=yt(),l=ut(d);{var p=f=>{var g=gt();dt(()=>ht(g,m(k))),_(f,g)};D(l,f=>{m(u)&&f(p)})}_t(d),_(o,d)};D(H,o=>{m(e)&&o(J)})}_(s,C),ct()}const jt=Et(bt),kt=[()=>i(()=>import("../nodes/0.BIvpQ3Qk.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),()=>i(()=>import("../nodes/1.y3j9wcQE.js"),__vite__mapDeps([23,2,3,19,8]),import.meta.url),()=>i(()=>import("../nodes/2.Du0xZVQg.js"),__vite__mapDeps([24,2,3,5,4,6,1,17,18,8,19,15,25,26,27,9,10,11,28,29,30,31,21,32,12,33,34,35,36,37,38,39,40]),import.meta.url),()=>i(()=>import("../nodes/3.weQEi2lI.js"),__vite__mapDeps([41,2,3,4,17,5,6,34,15,8,42,19,30,31,10,9,13,43,14,21,29,44]),import.meta.url),()=>i(()=>import("../nodes/4.DJyhWznw.js"),__vite__mapDeps([45,9,3,6,1,2,4,17,18,15,8,46,19,5,42,34,30,31,10,13,43,28,32,26,12,11,33,47,25,39,48]),import.meta.url),()=>i(()=>import("../nodes/5.CipwuwB3.js"),__vite__mapDeps([49,9,3,6,2,4,8,10,50]),import.meta.url),()=>i(()=>import("../nodes/6.Daxwm3Lw.js"),__vite__mapDeps([51,2,3,42,5,4,6,17,34,15,8,19,30,31,10,9,13,43,1,28,39,52]),import.meta.url),()=>i(()=>import("../nodes/7.TxeJDMtw.js"),__vite__mapDeps([53,2,3,15,46,8,19,4,5,6,26,17,18,54,34,27,55,33,36,37,35,14,9,31,1,11,21,10,56]),import.meta.url),()=>i(()=>import("../nodes/8.DWNdmB4l.js"),__vite__mapDeps([57,2,3,4,17,18,5,6,8,42,34,15,19,30,31,10,9,13,43,28,38,26,25,54,27,55,35,58]),import.meta.url),()=>i(()=>import("../nodes/9.BuTZk7Le.js"),__vite__mapDeps([59,2,3,4,7,8,11,6,34,5,15,35,60]),import.meta.url),()=>i(()=>import("../nodes/10.D03BZcr1.js"),__vite__mapDeps([61,2,3,4,7,8,11,6,9,34,5,15,35,62]),import.meta.url)],Ct=[],St={"/(app)":[3,[2]],"/(app)/graph":[6,[2]],"/login":[9],"/(app)/settings":[7,[2]],"/setup":[10],"/(app)/views/[id]":[8,[2]],"/(app)/[repo]/[type]/[id]":[4,[2]],"/(app)/[repo]/[type]/[id]/edit":[5,[2]]},q={handleError:(({error:s})=>{console.error(s)}),reroute:(()=>{}),transport:{}},Ot=Object.fromEntries(Object.entries(q.transport).map(([s,t])=>[s,t.decode])),Mt=Object.fromEntries(Object.entries(q.transport).map(([s,t])=>[s,t.encode])),Gt=!1,Yt=(s,t)=>Ot[s](t);export{Yt as decode,Ot as decoders,St as dictionary,Mt as encoders,Gt as hash,q as hooks,wt as matchers,kt as nodes,jt as root,Ct as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.D4NmzO9T.js","../chunks/PPVm8Dsz.js","../chunks/usxM-xOh.js","../chunks/CCA2E2CK.js","../chunks/yUs562n0.js","../chunks/DkuxRPZv.js","../chunks/BKHfe9E-.js","../chunks/DD3_vCgV.js","../chunks/csGnu8Rb.js","../chunks/BgRr0V7g.js","../chunks/BVhp5b7F.js","../chunks/B1c_qzmY.js","../chunks/BdNoKWAr.js","../chunks/y7AXCX7T.js","../chunks/CwUXqlAx.js","../chunks/DHholpIc.js","../chunks/D-H9HeD_.js","../chunks/BpdrS9kL.js","../chunks/NuvuAeCX.js","../chunks/DIBaaeCL.js","../assets/Toaster.rN8r_Hzv.css","../chunks/DLZAjAct.js","../assets/0.n3qM-DRk.css","../nodes/1.B49NrV3g.js","../nodes/2.DaqdIYKU.js","../chunks/Dgs7g6Xf.js","../chunks/BZ2Q53D5.js","../chunks/CdeYcEuU.js","../chunks/C74mA5aC.js","../chunks/1BE_eYuA.js","../chunks/oz3vOf3Y.js","../chunks/e8QVPHqJ.js","../chunks/D8mTIH9Y.js","../assets/Copy.FS8bdfxr.css","../chunks/DeyUjeaz.js","../chunks/CwnWYvfz.js","../chunks/pQmxOXKv.js","../chunks/C1S8fyYX.js","../assets/2.usgqms6b.css","../nodes/3.Q_RC4D9P.js","../chunks/Mtmwulo1.js","../assets/ViewToolbar.CnlOM0gQ.css","../assets/3.zsEg_MDN.css","../nodes/4.CIDSQYhF.js","../chunks/Ca2kuiZq.js","../chunks/DO03XMS-.js","../assets/index.D6tMDJWk.css","../chunks/CqkleIqs.js","../assets/4.B3dbj90y.css","../nodes/5.U-zEu0Mw.js","../assets/5.DFeGxLYf.css","../nodes/6.SYsyu9GD.js","../assets/6.CquhUpOu.css","../nodes/7.BLgQGI-C.js","../chunks/DYLAPjKD.js","../assets/7.D55lTQ_F.css","../nodes/8.67Laxdj-.js","../assets/8.DKYjn_lM.css","../nodes/9.D0aRCiZD.js","../assets/9.CT4xL4K3.css","../nodes/10.OXZpT8w9.js","../assets/10.BUrHkYry.css"])))=>i.map(i=>d[i]);
2
+ import{_ as i}from"../chunks/PPVm8Dsz.js";import{s as I,av as $,g as m,aC as tt,ai as et,m as rt,p as at,a6 as st,a2 as ot,aD as nt,aE as it,a0 as v,a3 as mt,b as ct,e as j,a4 as O,c as ut,r as _t,t as dt}from"../chunks/CCA2E2CK.js";import{h as lt,m as ft,u as vt,a as _,c as E,b as Y,t as gt,s as ht}from"../chunks/usxM-xOh.js";import{i as D,b as R}from"../chunks/yUs562n0.js";import{c as A}from"../chunks/NuvuAeCX.js";import{p as L}from"../chunks/DHholpIc.js";function Et(s){return class extends pt{constructor(t){super({component:s,...t})}}}class pt{#e;#t;constructor(t){var a=new Map,c=(r,e)=>{var u=rt(e,!1,!1);return a.set(r,u),u};const n=new Proxy({...t.props||{},$$events:{}},{get(r,e){return m(a.get(e)??c(e,Reflect.get(r,e)))},has(r,e){return e===$?!0:(m(a.get(e)??c(e,Reflect.get(r,e))),Reflect.has(r,e))},set(r,e,u){return I(a.get(e)??c(e,u),u),Reflect.set(r,e,u)}});this.#t=(t.hydrate?lt:ft)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#e=n.$$events;for(const r of Object.keys(this.#t))r==="$set"||r==="$destroy"||r==="$on"||et(this,r,{get(){return this.#t[r]},set(e){this.#t[r]=e},enumerable:!0});this.#t.$set=r=>{Object.assign(n,r)},this.#t.$destroy=()=>{vt(this.#t)}}$set(t){this.#t.$set(t)}$on(t,a){this.#e[t]=this.#e[t]||[];const c=(...n)=>a.call(this,...n);return this.#e[t].push(c),()=>{this.#e[t]=this.#e[t].filter(n=>n!==c)}}$destroy(){this.#t.$destroy()}}const wt={};var yt=Y('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Pt=Y("<!> <!>",1);function bt(s,t){at(t,!0);let a=L(t,"components",23,()=>[]),c=L(t,"data_0",3,null),n=L(t,"data_1",3,null),r=L(t,"data_2",3,null);st(()=>t.stores.page.set(t.page)),ot(()=>{t.stores,t.page,t.constructors,a(),t.form,c(),n(),r(),t.stores.page.notify()});let e=j(!1),u=j(!1),k=j(null);nt(()=>{const o=t.stores.page.subscribe(()=>{m(e)&&(I(u,!0),it().then(()=>{I(k,document.title||"untitled page",!0)}))});return I(e,!0),o});const z=O(()=>t.constructors[2]);var C=Pt(),S=v(C);{var B=o=>{const d=O(()=>t.constructors[0]);var l=E(),p=v(l);A(p,()=>m(d),(f,g)=>{R(g(f,{get data(){return c()},get form(){return t.form},get params(){return t.page.params},children:(y,Rt)=>{var M=E(),K=v(M);{var N=h=>{const T=O(()=>t.constructors[1]);var P=E(),V=v(P);A(V,()=>m(T),(x,w)=>{R(w(x,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(b,At)=>{var G=E(),U=v(G);A(U,()=>m(z),(W,X)=>{R(X(W,{get data(){return r()},get form(){return t.form},get params(){return t.page.params}}),Z=>a()[2]=Z,()=>a()?.[2])}),_(b,G)},$$slots:{default:!0}}),b=>a()[1]=b,()=>a()?.[1])}),_(h,P)},Q=h=>{const T=O(()=>t.constructors[1]);var P=E(),V=v(P);A(V,()=>m(T),(x,w)=>{R(w(x,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),b=>a()[1]=b,()=>a()?.[1])}),_(h,P)};D(K,h=>{t.constructors[2]?h(N):h(Q,!1)})}_(y,M)},$$slots:{default:!0}}),y=>a()[0]=y,()=>a()?.[0])}),_(o,l)},F=o=>{const d=O(()=>t.constructors[0]);var l=E(),p=v(l);A(p,()=>m(d),(f,g)=>{R(g(f,{get data(){return c()},get form(){return t.form},get params(){return t.page.params}}),y=>a()[0]=y,()=>a()?.[0])}),_(o,l)};D(S,o=>{t.constructors[1]?o(B):o(F,!1)})}var H=mt(S,2);{var J=o=>{var d=yt(),l=ut(d);{var p=f=>{var g=gt();dt(()=>ht(g,m(k))),_(f,g)};D(l,f=>{m(u)&&f(p)})}_t(d),_(o,d)};D(H,o=>{m(e)&&o(J)})}_(s,C),ct()}const jt=Et(bt),kt=[()=>i(()=>import("../nodes/0.D4NmzO9T.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),()=>i(()=>import("../nodes/1.B49NrV3g.js"),__vite__mapDeps([23,2,3,19,8]),import.meta.url),()=>i(()=>import("../nodes/2.DaqdIYKU.js"),__vite__mapDeps([24,2,3,5,4,6,1,17,18,8,19,15,25,26,9,10,11,27,28,29,21,30,31,32,33,34,12,35,36,37,38]),import.meta.url),()=>i(()=>import("../nodes/3.Q_RC4D9P.js"),__vite__mapDeps([39,2,3,4,17,5,6,32,15,8,40,18,19,25,10,9,13,31,41,14,21,28,42]),import.meta.url),()=>i(()=>import("../nodes/4.CIDSQYhF.js"),__vite__mapDeps([43,9,3,6,1,2,4,17,18,15,8,44,19,5,40,32,25,10,13,31,41,27,45,46,34,12,11,29,26,47,37,48]),import.meta.url),()=>i(()=>import("../nodes/5.U-zEu0Mw.js"),__vite__mapDeps([49,9,3,6,2,4,8,10,50]),import.meta.url),()=>i(()=>import("../nodes/6.SYsyu9GD.js"),__vite__mapDeps([51,2,3,40,5,4,6,17,18,32,15,8,19,25,10,9,13,31,41,1,27,37,52]),import.meta.url),()=>i(()=>import("../nodes/7.BLgQGI-C.js"),__vite__mapDeps([53,2,3,15,44,8,19,4,5,6,31,18,32,17,45,46,30,33,35,14,9,29,26,54,1,11,21,10,55]),import.meta.url),()=>i(()=>import("../nodes/8.67Laxdj-.js"),__vite__mapDeps([56,2,3,4,40,5,6,17,18,32,15,8,19,25,10,9,13,31,41,27,36,26,45,46,54,35,57]),import.meta.url),()=>i(()=>import("../nodes/9.D0aRCiZD.js"),__vite__mapDeps([58,2,3,4,7,8,11,6,32,5,15,35,59]),import.meta.url),()=>i(()=>import("../nodes/10.OXZpT8w9.js"),__vite__mapDeps([60,2,3,4,7,8,11,6,9,32,5,15,35,61]),import.meta.url)],Ct=[],St={"/(app)":[3,[2]],"/(app)/graph":[6,[2]],"/login":[9],"/(app)/settings":[7,[2]],"/setup":[10],"/(app)/views/[id]":[8,[2]],"/(app)/[repo]/[type]/[id]":[4,[2]],"/(app)/[repo]/[type]/[id]/edit":[5,[2]]},q={handleError:(({error:s})=>{console.error(s)}),reroute:(()=>{}),transport:{}},Ot=Object.fromEntries(Object.entries(q.transport).map(([s,t])=>[s,t.decode])),Mt=Object.fromEntries(Object.entries(q.transport).map(([s,t])=>[s,t.encode])),Gt=!1,Yt=(s,t)=>Ot[s](t);export{Yt as decode,Ot as decoders,St as dictionary,Mt as encoders,Gt as hash,q as hooks,wt as matchers,kt as nodes,jt as root,Ct as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,a as r}from"../chunks/csGnu8Rb.js";export{o as load_css,r as start};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/C1S8fyYX.js","../chunks/CCA2E2CK.js","../chunks/csGnu8Rb.js","../chunks/BVhp5b7F.js","../chunks/BgRr0V7g.js","../chunks/BKHfe9E-.js","../chunks/BB_5th5W.js","../chunks/PPVm8Dsz.js","../chunks/CqkleIqs.js","../chunks/DnL9f0lc.js","../chunks/CX_61fY8.js","../chunks/CscoF-YL.js","../chunks/D7ZqAKi9.js","../chunks/C7VoTosa.js","../chunks/CrdV0ttd.js"])))=>i.map(i=>d[i]);
2
+ import{_ as A}from"../chunks/PPVm8Dsz.js";import{a as _,s as T,f as z,b as te,c as ae}from"../chunks/usxM-xOh.js";import{p as E,l as $,a as V,g as t,c as w,n as k,r as M,b as P,m as x,s,d as f,t as C,a1 as re,e as O,f as B,aW as G,a2 as N,aD as oe,a3 as ie,ac as ne,ad as le,a0 as se}from"../chunks/CCA2E2CK.js";import{i as R}from"../chunks/yUs562n0.js";import{a as D,b as de,s as ce}from"../chunks/DkuxRPZv.js";import{h as ue}from"../chunks/DD3_vCgV.js";import{g as Y}from"../chunks/csGnu8Rb.js";import{w as U}from"../chunks/BgRr0V7g.js";import{n as me}from"../chunks/BVhp5b7F.js";import{a as L}from"../chunks/B1c_qzmY.js";import{r as J}from"../chunks/BdNoKWAr.js";import{v as he}from"../chunks/y7AXCX7T.js";import{insightsStore as W}from"../chunks/CwUXqlAx.js";import{l as I,p as y,s as pe,r as fe}from"../chunks/DHholpIc.js";import{T as ve}from"../chunks/D-H9HeD_.js";import{R as ge}from"../chunks/DLZAjAct.js";import{i as F}from"../chunks/DIBaaeCL.js";var _e=z("<title> </title>"),be=z('<svg><!><path d="M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"></path><path fill="none" d="M14 21.591 9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z" data-icon-path="inner-path"></path></svg>');function we(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=be();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=_e(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(2),M(i),_(v,i),P()}var Me=z("<title> </title>"),$e=z('<svg><!><path fill="none" d="M14.9 7.2H17.1V24.799H14.9z" data-icon-path="inner-path" transform="rotate(-45 16 16)"></path><path d="M16,2A13.914,13.914,0,0,0,2,16,13.914,13.914,0,0,0,16,30,13.914,13.914,0,0,0,30,16,13.914,13.914,0,0,0,16,2Zm5.4449,21L9,10.5557,10.5557,9,23,21.4448Z"></path></svg>');function xe(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=$e();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=Me(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(2),M(i),_(v,i),P()}var Ie=z("<title> </title>"),ye=z('<svg><!><path fill="none" d="M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z" data-icon-path="inner-path"></path><path d="M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,6a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"></path></svg>');function ze(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=ye();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=Ie(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(2),M(i),_(v,i),P()}var Ae=z("<title> </title>"),Ee=z('<svg><!><path fill="none" d="M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z" data-icon-path="inner-path"></path><path d="M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"></path><path d="M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"></path></svg>');function Pe(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=Ee();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=Ae(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(3),M(i),_(v,i),P()}function Se(v,o){E(o,!0);const e=re("theme");let g=fe(o,["$$slots","$$events","$$legacy"]);ve(v,pe({get theme(){return e.current},class:"toaster group",style:"--normal-bg: var(--color-bg-elevated); --normal-text: var(--color-text-primary); --normal-border: var(--color-border-strong);"},()=>g,{loadingIcon:r=>{ge(r,{class:"size-4 animate-spin"})},successIcon:r=>{we(r,{class:"size-4"})},errorIcon:r=>{xe(r,{class:"size-4"})},infoIcon:r=>{ze(r,{class:"size-4"})},warningIcon:r=>{Pe(r,{class:"size-4"})},$$slots:{loadingIcon:!0,successIcon:!0,errorIcon:!0,infoIcon:!0,warningIcon:!0}})),P()}var Ze=te('<div style="display: contents;"><!> <!></div>');function Ge(v,o){E(o,!0);const e=typeof localStorage<"u"?localStorage.getItem("theme"):null,g=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: light)").matches?"light":"dark";let a=O(B(e||g));G("theme",{get current(){return t(a)},toggle(){s(a,t(a)==="dark"?"light":"dark",!0),localStorage.setItem("theme",t(a))}});const d=typeof localStorage<"u"?localStorage.getItem("chatMode"):null,n=typeof localStorage<"u"?localStorage.getItem("chatOpen"):null,i=d==="panel"||d==="full"?d:d==="closed"?"closed":n==="true"?"panel":"closed";let r=O(B(i)),p=O(B(i==="closed"?"panel":i));function l(){localStorage.setItem("chatMode",t(r))}G("chat",{get open(){return t(r)!=="closed"},get mode(){return t(r)},toggle(){s(r,t(r)==="closed"?t(p):"closed",!0),l()},close(){s(r,"closed"),l()},expand(){s(r,"full"),s(p,"full"),l()},collapse(){s(r,"panel"),s(p,"panel"),l()},sendPrompt(u){t(r)==="closed"&&(s(r,t(p),!0),l()),A(()=>import("../chunks/C1S8fyYX.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url).then(b=>{b.chatStore.send(u),setTimeout(()=>b.chatStore.triggerScroll(),100)})}}),N(()=>{document.documentElement.setAttribute("data-theme",t(a))}),N(()=>{W.briefLoaded&&U.applyUserAccentColor(W.accentColor)});let h=O(null);N(()=>{if(L.loading)return;const u=L.user?.email??(L.authEnabled?null:"__open__");u&&u!==t(h)&&(t(h)!==null&&me.deselect(),s(h,u,!0),U.load(),he.load(),W.load(),J.connect()),!u&&t(h)&&(s(h,null),J.disconnect())}),oe(async()=>{const u=window.location.pathname,b=u==="/login",S=u==="/setup",{authenticated:j,authEnabled:X,needsSetup:ee}=await L.checkAuth();if(ee&&!S){Y("/setup");return}if(X&&!j&&!b){Y("/login");return}if(j&&(b||S)){Y("/");return}b||S||(A(()=>import("../chunks/BB_5th5W.js"),__vite__mapDeps([6,7,8]),import.meta.url).catch(()=>{}),Promise.all([A(()=>import("../chunks/CX_61fY8.js"),[],import.meta.url),A(()=>import("../chunks/DnL9f0lc.js").then(Z=>Z.i),__vite__mapDeps([9,10]),import.meta.url),A(()=>import("../chunks/CscoF-YL.js"),__vite__mapDeps([11,10,9,12,13,14]),import.meta.url),A(()=>import("../chunks/D7ZqAKi9.js"),__vite__mapDeps([12,13,10,9]),import.meta.url),A(()=>import("../chunks/C7VoTosa.js").then(Z=>Z.i),[],import.meta.url)]).catch(()=>{}),window.addEventListener("sg-theme-change",Z=>{s(a,Z.detail,!0)}))});var H=Ze();ue("12qhfyh",u=>{ne(()=>{le.title=(U.name||"Studiograph")??""})});var q=w(H);{var K=u=>{var b=ae(),S=se(b);ce(S,()=>o.children),_(u,b)};R(q,u=>{L.loading||u(K)})}var Q=ie(q,2);Se(Q,{}),M(H),C(()=>de(H,"data-theme",t(a))),_(v,H),P()}export{Ge as component};
@@ -1 +1 @@
1
- import{a as u,b as h,s}from"../chunks/b0XUoOIH.js";import{i as g}from"../chunks/vZ2iBqLE.js";import{p as l,a0 as v,t as d,b as _,c as e,r as o,a3 as x}from"../chunks/DSh-OF2y.js";import{s as b,p}from"../chunks/BAAbylyg.js";const $={get error(){return p.error},get status(){return p.status}};b.updated.check;const m=$;var k=h("<h1> </h1> <p> </p>",1);function y(i,c){l(c,!1),g();var t=k(),r=v(t),n=e(r,!0);o(r);var a=x(r,2),f=e(a,!0);o(a),d(()=>{s(n,m.status),s(f,m.error?.message)}),u(i,t),_()}export{y as component};
1
+ import{a as u,b as h,s}from"../chunks/usxM-xOh.js";import{i as g}from"../chunks/DIBaaeCL.js";import{p as l,a0 as v,t as d,b as _,c as e,r as o,a3 as x}from"../chunks/CCA2E2CK.js";import{s as b,p}from"../chunks/csGnu8Rb.js";const $={get error(){return p.error},get status(){return p.status}};b.updated.check;const m=$;var k=h("<h1> </h1> <p> </p>",1);function y(i,c){l(c,!1),g();var t=k(),r=v(t),n=e(r,!0);o(r);var a=x(r,2),f=e(a,!0);o(a),d(()=>{s(n,m.status),s(f,m.error?.message)}),u(i,t),_()}export{y as component};