@rubytech/create-maxy-code 0.1.473 → 0.1.474
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__tests__/google-client-id-env.test.js +3 -2
- package/package.json +1 -1
- package/payload/platform/neo4j/schema.cypher +4 -1
- package/payload/platform/plugins/admin/skills/platform-architecture/SKILL.md +14 -10
- package/payload/platform/plugins/docs/references/admin-ui.md +1 -1
- package/payload/platform/plugins/docs/references/google-guide.md +10 -6
- package/payload/platform/plugins/docs/references/voice-mirror-guide.md +2 -2
- package/payload/platform/plugins/google/.claude-plugin/plugin.json +1 -1
- package/payload/platform/plugins/google/PLUGIN.md +25 -14
- package/payload/platform/plugins/google/references/auth.md +250 -365
- package/payload/platform/plugins/voice-mirror/PLUGIN.md +1 -1
- package/payload/platform/plugins/voice-mirror/mcp/dist/index.js +3 -3
- package/payload/platform/plugins/voice-mirror/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/voice-mirror/mcp/dist/lib/voice-corpus.d.ts +14 -1
- package/payload/platform/plugins/voice-mirror/mcp/dist/lib/voice-corpus.d.ts.map +1 -1
- package/payload/platform/plugins/voice-mirror/mcp/dist/lib/voice-corpus.js +15 -0
- package/payload/platform/plugins/voice-mirror/mcp/dist/lib/voice-corpus.js.map +1 -1
- package/payload/platform/plugins/voice-mirror/mcp/dist/tools/voice-distil-profile.d.ts.map +1 -1
- package/payload/platform/plugins/voice-mirror/mcp/dist/tools/voice-distil-profile.js +3 -1
- package/payload/platform/plugins/voice-mirror/mcp/dist/tools/voice-distil-profile.js.map +1 -1
- package/payload/platform/plugins/voice-mirror/mcp/scripts/smoke.mjs +51 -4
- package/payload/platform/plugins/voice-mirror/skills/voice-mirror/SKILL.md +4 -0
- package/payload/platform/scripts/backfill-task-ids.sh +206 -0
- package/payload/server/public/activity.html +6 -6
- package/payload/server/public/assets/{AdminLoginScreens-B7TQZV8u.js → AdminLoginScreens-B44KbEuC.js} +1 -1
- package/payload/server/public/assets/{AdminShell-DAuri4Yh.js → AdminShell-BjxV2qkb.js} +2 -2
- package/payload/server/public/assets/{Checkbox-B1XhnhPk.js → Checkbox-DSeZNGNA.js} +1 -1
- package/payload/server/public/assets/{activity-kRwzxEKU.js → activity-CdipMTDp.js} +1 -1
- package/payload/server/public/assets/{admin-BdcccSb5.js → admin-B4LpTCur.js} +1 -1
- package/payload/server/public/assets/{browser-B6woQ2qX.js → browser-CEFvaWwI.js} +1 -1
- package/payload/server/public/assets/{calendar-CalCeg5T.js → calendar-B3zo6V34.js} +1 -1
- package/payload/server/public/assets/chat-5tJdo9i_.js +1 -0
- package/payload/server/public/assets/chevron-left-BJllrPBj.js +1 -0
- package/payload/server/public/assets/data-Du79EgR-.js +1 -0
- package/payload/server/public/assets/{graph-HeZaatSQ.js → graph-RaOrnSf2.js} +1 -1
- package/payload/server/public/assets/{graph-labels-4W7JuOgG.js → graph-labels-GlTEIYJj.js} +1 -1
- package/payload/server/public/assets/{maximize-2-DKx-aTPb.js → maximize-2-CHDa8p5h.js} +1 -1
- package/payload/server/public/assets/{operator-DD9L2VJM.js → operator-DtqHY4jV.js} +1 -1
- package/payload/server/public/assets/{page-tJxw0zNO.js → page-CkhFj8GQ.js} +1 -1
- package/payload/server/public/assets/{page-Ceado9Kr.js → page-DxnWgPtd.js} +1 -1
- package/payload/server/public/assets/{public-BYFWxyeC.js → public-D5TUfQ3I.js} +1 -1
- package/payload/server/public/assets/{rotate-ccw-DrzdV9h7.js → rotate-ccw-BJjVAQQY.js} +1 -1
- package/payload/server/public/assets/tasks-CM9pYYG1.js +1 -0
- package/payload/server/public/assets/{time-entry-format-Bn79w6tq.js → time-entry-format-C5RYEYjM.js} +1 -1
- package/payload/server/public/assets/{triangle-alert-CjDVh6r-.js → triangle-alert-DLfIsuo_.js} +1 -1
- package/payload/server/public/assets/{useCopyFeedback-DXHkkJw-.js → useCopyFeedback-7yKeiAzV.js} +1 -1
- package/payload/server/public/assets/{useSelectionMode-D2H8jAhE.js → useSelectionMode-CWlh6AEq.js} +1 -1
- package/payload/server/public/assets/{useSubAccountSwitcher-Br7Z6Cpu.css → useSubAccountSwitcher-B2n9QPVI.css} +1 -1
- package/payload/server/public/assets/{useVoiceRecorder-zUvPe55I.js → useVoiceRecorder-j3ZArZ2H.js} +1 -1
- package/payload/server/public/browser.html +5 -5
- package/payload/server/public/calendar.html +6 -6
- package/payload/server/public/chat.html +12 -12
- package/payload/server/public/data.html +11 -11
- package/payload/server/public/graph.html +11 -11
- package/payload/server/public/index.html +14 -14
- package/payload/server/public/operator.html +14 -14
- package/payload/server/public/public.html +12 -12
- package/payload/server/public/tasks.html +5 -5
- package/payload/server/server.js +65 -13
- package/payload/server/public/assets/chat-9s2-L06v.js +0 -1
- package/payload/server/public/assets/chevron-left-C3ho8SnB.js +0 -1
- package/payload/server/public/assets/data-Cfr-7ERI.js +0 -1
- package/payload/server/public/assets/tasks-DSwoxGzh.js +0 -1
- /package/payload/server/public/assets/{useSubAccountSwitcher-CUJpgkKI.js → useSubAccountSwitcher-CBlKgwms.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./chunk-TPjIAO9U.js";import{D as t,S as n,T as r,_ as i,a,d as o,l as s,o as c,p as l,r as u,w as d}from"./useSubAccountSwitcher-CUJpgkKI.js";import{d as f,t as p,y as m}from"./AdminShell-DAuri4Yh.js";import{t as h}from"./chevron-left-C3ho8SnB.js";import{h as g}from"./useSelectionMode-D2H8jAhE.js";var _=i(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),v=i(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),y=i(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),b=i(`map-pin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]),x=i(`sticky-note`,[[`path`,{d:`M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z`,key:`1dfntj`}],[`path`,{d:`M15 3v5a1 1 0 0 0 1 1h5`,key:`6s6qgf`}]]),S=i(`user-plus`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]),C=r(),w=e(t(),1);function T(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function E(e,t){let n=new Date(e);return n.setDate(n.getDate()+t),n}function D(e){let t=T(e),n=t.getDay();return E(t,n===0?-6:1-n)}function O(e){let t=D(e);return Array.from({length:7},(e,n)=>E(t,n))}function k(e){let t=D(new Date(e.getFullYear(),e.getMonth(),1));return Array.from({length:42},(e,n)=>E(t,n))}function A(){return Array.from({length:24},(e,t)=>t)}function ee(e){let t=e.getFullYear();return Array.from({length:12},(e,n)=>new Date(t,n,1))}function j(e,t){switch(e){case`day`:{let e=T(t);return{from:e,to:E(e,1)}}case`week`:{let e=D(t);return{from:e,to:E(e,7)}}case`month`:{let e=D(new Date(t.getFullYear(),t.getMonth(),1));return{from:e,to:E(e,42)}}case`year`:return{from:new Date(t.getFullYear(),0,1),to:new Date(t.getFullYear()+1,0,1)}}}function M(e,t,n){switch(e){case`day`:return E(t,n);case`week`:return E(t,n*7);case`month`:return new Date(t.getFullYear(),t.getMonth()+n,1);case`year`:return new Date(t.getFullYear()+n,t.getMonth(),1)}}function N(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function P(e,t){return{role:`button`,tabIndex:0,onClick:()=>t(e),onKeyDown:n=>{(n.key===`Enter`||n.key===` `)&&(n.preventDefault(),t(e))}}}var F=n(),I=[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sun`],L=3;function R(e){return e.toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})}function te({anchor:e,meetings:t,onSelect:n}){let r=k(e),i=e.getMonth(),a=new Date;return(0,F.jsxs)(`div`,{className:`cal-month`,children:[(0,F.jsx)(`div`,{className:`cal-weekday-row`,children:I.map(e=>(0,F.jsx)(`div`,{className:`cal-weekday`,children:e},e))}),(0,F.jsx)(`div`,{className:`cal-month-grid`,children:r.map(e=>{let r=t.filter(t=>N(new Date(t.startsAt),e)).sort((e,t)=>e.startsAt.localeCompare(t.startsAt)),o=e.getMonth()!==i,s=N(e,a);return(0,F.jsxs)(`div`,{className:`cal-cell${o?` cal-cell-out`:``}${s?` cal-cell-today`:``}`,children:[(0,F.jsx)(`div`,{className:`cal-cell-num`,children:e.getDate()}),r.slice(0,L).map(e=>(0,F.jsxs)(`div`,{className:`cal-chip`,title:e.title??`Untitled`,...P(e,n),children:[!e.isAllDay&&(0,F.jsx)(`span`,{className:`cal-chip-time`,children:R(new Date(e.startsAt))}),e.title??`Untitled`]},e.meetingId)),r.length>L&&(0,F.jsxs)(`div`,{className:`cal-more`,children:[`+`,r.length-L,` more`]})]},e.toISOString())})})]})}var z=1440,B=1.8;function V(e){return e.getHours()*60+e.getMinutes()}function H(e){return e.toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})}function U({day:e,meetings:t,hourHeight:n,onSelect:r}){let i=n*24,a=t.filter(t=>!t.isAllDay&&N(new Date(t.startsAt),e));return(0,F.jsx)(`div`,{className:`cal-day-col`,children:(0,F.jsxs)(`div`,{className:`cal-hours`,style:{height:`${i}px`},children:[Array.from({length:24},(e,t)=>(0,F.jsx)(`div`,{className:`cal-hour-line`,style:{top:`${t*n}px`}},t)),a.map(t=>{let n=new Date(t.startsAt),i=t.endsAt?new Date(t.endsAt):new Date(n.getTime()+30*6e4),a=V(n),o=N(i,e)?V(i):z,s=a/z*100,c=Math.max((o-a)/z*100,B);return(0,F.jsxs)(`div`,{className:`cal-event`,style:{top:`${s}%`,height:`${c}%`},title:t.title??`Untitled`,...P(t,r),children:[(0,F.jsx)(`span`,{className:`cal-event-time`,children:H(n)}),(0,F.jsx)(`span`,{className:`cal-event-title`,children:t.title??`Untitled`})]},t.meetingId)})]})})}var W=44;function G(e){let t=new Date;return t.setHours(e,0,0,0),t.toLocaleTimeString([],{hour:`numeric`})}function K({anchor:e,meetings:t,onSelect:n}){let r=O(e),i=new Date;return(0,F.jsxs)(`div`,{className:`cal-timed`,children:[(0,F.jsxs)(`div`,{className:`cal-day-headrow`,children:[(0,F.jsx)(`div`,{className:`cal-timed-gutter`}),r.map(e=>(0,F.jsxs)(`div`,{className:`cal-day-head${N(e,i)?` cal-day-head-today`:``}`,children:[(0,F.jsx)(`span`,{className:`cal-day-head-name`,children:e.toLocaleDateString([],{weekday:`short`})}),(0,F.jsx)(`span`,{className:`cal-day-head-num`,children:e.getDate()})]},e.toISOString()))]}),(0,F.jsxs)(`div`,{className:`cal-allday-band`,children:[(0,F.jsx)(`div`,{className:`cal-timed-gutter`,children:`All-day`}),r.map(e=>(0,F.jsx)(`div`,{className:`cal-allday-cell`,children:t.filter(t=>t.isAllDay&&N(new Date(t.startsAt),e)).map(e=>(0,F.jsx)(`div`,{className:`cal-allday-chip`,title:e.title??`Untitled`,...P(e,n),children:e.title??`Untitled`},e.meetingId))},e.toISOString()))]}),(0,F.jsxs)(`div`,{className:`cal-timed-cols`,children:[(0,F.jsx)(`div`,{className:`cal-timed-gutter`,children:A().map(e=>(0,F.jsx)(`div`,{className:`cal-hour-label`,style:{height:`${W}px`},children:e===0?``:G(e)},e))}),r.map(e=>(0,F.jsx)(U,{day:e,meetings:t,hourHeight:W,onSelect:n},e.toISOString()))]})]})}var q=52;function J(e){let t=new Date;return t.setHours(e,0,0,0),t.toLocaleTimeString([],{hour:`numeric`})}function Y({anchor:e,meetings:t,onSelect:n}){let r=t.filter(t=>t.isAllDay&&N(new Date(t.startsAt),e));return(0,F.jsxs)(`div`,{className:`cal-timed cal-timed-single`,children:[(0,F.jsxs)(`div`,{className:`cal-allday-band`,children:[(0,F.jsx)(`div`,{className:`cal-timed-gutter`,children:`All-day`}),(0,F.jsx)(`div`,{className:`cal-allday-cell`,children:r.map(e=>(0,F.jsx)(`div`,{className:`cal-allday-chip`,title:e.title??`Untitled`,...P(e,n),children:e.title??`Untitled`},e.meetingId))})]}),(0,F.jsxs)(`div`,{className:`cal-timed-cols`,children:[(0,F.jsx)(`div`,{className:`cal-timed-gutter`,children:A().map(e=>(0,F.jsx)(`div`,{className:`cal-hour-label`,style:{height:`${q}px`},children:e===0?``:J(e)},e))}),(0,F.jsx)(U,{day:e,meetings:t,hourHeight:q,onSelect:n})]})]})}var X=[`M`,`T`,`W`,`T`,`F`,`S`,`S`];function Z(e){return`${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`}function ne({anchor:e,meetings:t,onPickMonth:n}){let r=new Date,i=new Set(t.map(e=>Z(new Date(e.startsAt))));return(0,F.jsx)(`div`,{className:`cal-year`,children:(0,F.jsx)(`div`,{className:`cal-year-grid`,children:ee(e).map(e=>{let t=k(e),a=e.getMonth();return(0,F.jsxs)(`button`,{type:`button`,className:`cal-mini`,onClick:()=>n(e),title:e.toLocaleDateString([],{month:`long`,year:`numeric`}),children:[(0,F.jsx)(`div`,{className:`cal-mini-title`,children:e.toLocaleDateString([],{month:`long`})}),(0,F.jsx)(`div`,{className:`cal-mini-weekrow`,children:X.map((e,t)=>(0,F.jsx)(`span`,{className:`cal-mini-weekday`,children:e},t))}),(0,F.jsx)(`div`,{className:`cal-mini-grid`,children:t.map(e=>{let t=e.getMonth()!==a,n=N(e,r),o=!t&&i.has(Z(e));return(0,F.jsxs)(`span`,{className:`cal-mini-day${t?` cal-mini-day-out`:``}${n?` cal-mini-day-today`:``}`,children:[e.getDate(),o&&(0,F.jsx)(`span`,{className:`cal-mini-dot`})]},e.toISOString())})})]},a)})})})}var re={meeting:`Meeting`,event:`Event`,task:`Task`};function ie(e){let t=new Date(e),n=e=>String(e).padStart(2,`0`);return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())}T${n(t.getHours())}:${n(t.getMinutes())}`}function ae(e){return new Date(e).toISOString()}function Q(e){return Math.floor(new Date(e).getTime()/6e4)}function oe(e){let t=new Date(e.startsAt);if(e.isAllDay)return t.toLocaleDateString([],{weekday:`long`,day:`numeric`,month:`long`,year:`numeric`});let n=t.toLocaleDateString([],{weekday:`long`,day:`numeric`,month:`long`,year:`numeric`}),r=t.toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`});return e.endsAt?`${n} · ${r} – ${new Date(e.endsAt).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})}`:`${n} · ${r}`}function se(e){if(!e)return null;let t=e.match(/filename="([^"]+)"/);return t?t[1]:null}function ce(e,t){return e.email??`${e.name??`unknown`}-${t}`}function le({a:e}){let t=e.name||e.email||`Unknown`,n=e.name&&e.email?e.email:null;return(0,F.jsxs)(`span`,{className:`cal-attendee-lines`,children:[(0,F.jsx)(`span`,{className:`cal-attendee-name`,children:t}),n&&(0,F.jsx)(`span`,{className:`cal-attendee-email`,children:n})]})}function ue({meeting:e,adminFetch:t,onClose:n,onSaved:r,onDeleted:i}){let l=e.kind===`meeting`,[u,d]=(0,w.useState)(!1),[p,m]=(0,w.useState)(!1),[h,v]=(0,w.useState)(!1),[C,T]=(0,w.useState)(!1),[E,D]=(0,w.useState)(null),[O,k]=(0,w.useState)(e),[A,ee]=(0,w.useState)(e.title??``),[j,M]=(0,w.useState)(ie(e.startsAt)),[N,P]=(0,w.useState)(e.endsAt?ie(e.endsAt):``),[I,L]=(0,w.useState)(e.location??``),[R,te]=(0,w.useState)(e.privateNote??``),[z,B]=(0,w.useState)(``),[V,H]=(0,w.useState)(``);(0,w.useEffect)(()=>{let e=e=>{e.key===`Escape`&&!C&&n()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[C,n]);let U=(0,w.useCallback)(()=>{let e={},t=A.trim();t!==(O.title??``)&&(e.title=t);let n=ae(j);Q(n)!==Q(O.startsAt)&&(e.startsAt=n);let r=N?ae(N):null;(r===null?O.endsAt!==null:O.endsAt===null||Q(r)!==Q(O.endsAt))&&(e.endsAt=r);let i=I.trim()||null;i!==(O.location??null)&&(e.location=i);let a=R.trim()||null;return a!==(O.privateNote??null)&&(e.privateNote=a),e},[A,j,N,I,R,O]),W=(0,w.useCallback)(async()=>{let n=U();if(Object.keys(n).length===0){d(!1);return}T(!0),D(null);try{let i=await t(`/api/admin/calendar/meetings/${encodeURIComponent(e.meetingId)}`,{method:`PATCH`,headers:{"content-type":`application/json`},body:JSON.stringify(n)});if(!i.ok)throw Error(`HTTP ${i.status}`);let a=await i.json();k(a.meeting),r(a.meeting),d(!1)}catch(e){D(e instanceof Error?e.message:`Save failed`)}finally{T(!1)}},[t,U,e.meetingId,r]),G=(0,w.useCallback)(async()=>{let n=z.trim(),i=V.trim();if(!(!n&&!i)){T(!0),D(null);try{let a=await t(`/api/admin/calendar/meetings/${encodeURIComponent(e.meetingId)}/attendees`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({name:n||void 0,email:i||void 0})});if(!a.ok)throw Error(`HTTP ${a.status}`);let o=await a.json();k(o.meeting),r(o.meeting),B(``),H(``)}catch(e){D(e instanceof Error?e.message:`Add failed`)}finally{T(!1)}}},[t,z,V,e.meetingId,r]),K=(0,w.useCallback)(async n=>{let i=n.email?{email:n.email}:{name:n.name};T(!0),D(null);try{let n=await t(`/api/admin/calendar/meetings/${encodeURIComponent(e.meetingId)}/attendees`,{method:`DELETE`,headers:{"content-type":`application/json`},body:JSON.stringify(i)});if(!n.ok)throw Error(`HTTP ${n.status}`);let a=await n.json();k(a.meeting),r(a.meeting)}catch(e){D(e instanceof Error?e.message:`Remove failed`)}finally{T(!1)}},[t,e.meetingId,r]),q=(0,w.useCallback)(async()=>{T(!0),D(null);try{let n=await t(`/api/admin/calendar/meetings/${encodeURIComponent(e.meetingId)}`,{method:`DELETE`});if(!n.ok)throw Error(`HTTP ${n.status}`);i(e.meetingId)}catch(e){D(e instanceof Error?e.message:`Delete failed`),T(!1)}},[t,e.meetingId,i]),J=(0,w.useCallback)(async n=>{v(!1),T(!0),D(null);try{let r=await t(`/api/admin/calendar/meetings/${encodeURIComponent(e.meetingId)}/ics?attendees=${n?`1`:`0`}`);if(!r.ok)throw Error(`HTTP ${r.status}`);let i=await r.blob(),a=se(r.headers.get(`content-disposition`))??`meeting.ics`,o=URL.createObjectURL(i),s=document.createElement(`a`);s.href=o,s.download=a,document.body.appendChild(s),s.click(),s.remove(),URL.revokeObjectURL(o)}catch(e){D(e instanceof Error?e.message:`Download failed`)}finally{T(!1)}},[t,e.meetingId]),Y=re[e.kind??`meeting`],X=z.trim().length>0||V.trim().length>0;return(0,F.jsx)(`div`,{className:`cal-modal-overlay`,onClick:()=>{C||n()},children:(0,F.jsxs)(`div`,{className:`cal-modal`,role:`dialog`,"aria-modal":`true`,"aria-label":u?`Edit meeting`:`Meeting detail`,onClick:e=>e.stopPropagation(),children:[(0,F.jsxs)(`div`,{className:`cal-modal-header`,children:[(0,F.jsx)(`span`,{className:`cal-modal-kind`,children:Y}),(0,F.jsx)(`button`,{type:`button`,className:`cal-modal-close`,onClick:n,"aria-label":`Close`,autoFocus:!0,disabled:C,children:(0,F.jsx)(a,{size:16})})]}),!u&&(0,F.jsxs)(`div`,{className:`cal-modal-body`,children:[(0,F.jsx)(`div`,{className:`cal-modal-title`,children:O.title??`Untitled`}),(0,F.jsxs)(`div`,{className:`cal-modal-row`,children:[(0,F.jsx)(y,{size:14}),(0,F.jsx)(`span`,{children:oe(O)})]}),O.location&&(0,F.jsxs)(`div`,{className:`cal-modal-row`,children:[(0,F.jsx)(b,{size:14}),(0,F.jsx)(`span`,{children:O.location})]}),O.attendees.length>0&&(0,F.jsxs)(`div`,{className:`cal-modal-row cal-modal-row-top`,children:[(0,F.jsx)(f,{size:14}),(0,F.jsx)(`div`,{className:`cal-modal-attendees`,children:O.attendees.map((e,t)=>(0,F.jsx)(`div`,{className:`cal-attendee-row`,children:(0,F.jsx)(le,{a:e})},ce(e,t)))})]}),O.privateNote&&(0,F.jsxs)(`div`,{className:`cal-modal-row cal-modal-row-top`,children:[(0,F.jsx)(x,{size:14}),(0,F.jsx)(`span`,{className:`cal-modal-note`,children:O.privateNote})]}),(0,F.jsxs)(`div`,{className:`cal-modal-row cal-modal-meta`,children:[(0,F.jsx)(_,{size:14}),(0,F.jsx)(`span`,{children:Y})]})]}),u&&(0,F.jsxs)(`div`,{className:`cal-modal-body`,children:[(0,F.jsxs)(`label`,{className:`cal-modal-field`,children:[(0,F.jsx)(`span`,{children:`Title`}),(0,F.jsx)(`input`,{type:`text`,value:A,onChange:e=>ee(e.target.value),disabled:C})]}),(0,F.jsxs)(`label`,{className:`cal-modal-field`,children:[(0,F.jsx)(`span`,{children:`Start`}),(0,F.jsx)(`input`,{type:`datetime-local`,value:j,onChange:e=>M(e.target.value),disabled:C})]}),(0,F.jsxs)(`label`,{className:`cal-modal-field`,children:[(0,F.jsx)(`span`,{children:`End`}),(0,F.jsx)(`input`,{type:`datetime-local`,value:N,onChange:e=>P(e.target.value),disabled:C})]}),(0,F.jsxs)(`label`,{className:`cal-modal-field`,children:[(0,F.jsx)(`span`,{children:`Location`}),(0,F.jsx)(`input`,{type:`text`,value:I,onChange:e=>L(e.target.value),disabled:C})]}),(0,F.jsxs)(`div`,{className:`cal-modal-field`,children:[(0,F.jsx)(`span`,{children:`Attendees`}),(0,F.jsxs)(`div`,{className:`cal-modal-attendees cal-modal-attendees-edit`,children:[O.attendees.length===0&&(0,F.jsx)(`div`,{className:`cal-attendee-empty`,children:`No attendees yet.`}),O.attendees.map((e,t)=>(0,F.jsxs)(`div`,{className:`cal-attendee-row cal-attendee-row-edit`,children:[(0,F.jsx)(le,{a:e}),(0,F.jsx)(`button`,{type:`button`,className:`cal-attendee-remove`,onClick:()=>K(e),disabled:C,"aria-label":`Remove ${e.name||e.email||`attendee`}`,children:(0,F.jsx)(a,{size:13})})]},ce(e,t)))]}),(0,F.jsxs)(`div`,{className:`cal-attendee-add`,children:[(0,F.jsx)(`input`,{type:`text`,placeholder:`Name`,value:z,onChange:e=>B(e.target.value),disabled:C,"aria-label":`Attendee name`}),(0,F.jsx)(`input`,{type:`email`,placeholder:`Email`,value:V,onChange:e=>H(e.target.value),disabled:C,"aria-label":`Attendee email`}),(0,F.jsx)(`button`,{type:`button`,className:`cal-modal-btn cal-attendee-add-btn`,onClick:G,disabled:C||!X,"aria-label":`Add attendee`,children:C?(0,F.jsx)(o,{size:13,className:`spin`}):(0,F.jsx)(S,{size:13})})]})]}),(0,F.jsxs)(`label`,{className:`cal-modal-field`,children:[(0,F.jsx)(`span`,{children:`Private note`}),(0,F.jsx)(`textarea`,{className:`cal-modal-textarea`,value:R,onChange:e=>te(e.target.value),disabled:C,rows:3,placeholder:`Only you and your team can see this.`})]})]}),E&&(0,F.jsx)(`div`,{className:`cal-modal-error`,children:E}),l&&(0,F.jsxs)(`div`,{className:`cal-modal-actions`,children:[!u&&!p&&!h&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`button`,{type:`button`,className:`cal-modal-btn`,onClick:()=>d(!0),disabled:C,children:[(0,F.jsx)(s,{size:14}),` Edit`]}),(0,F.jsxs)(`button`,{type:`button`,className:`cal-modal-btn cal-modal-btn-danger`,onClick:()=>m(!0),disabled:C,children:[(0,F.jsx)(c,{size:14}),` Delete`]}),(0,F.jsxs)(`button`,{type:`button`,className:`cal-modal-btn cal-modal-btn-download`,onClick:()=>{O.attendees.length>0?v(!0):J(!1)},disabled:C,children:[C?(0,F.jsx)(o,{size:14,className:`spin`}):(0,F.jsx)(g,{size:14}),` Download`]})]}),h&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{className:`cal-modal-confirm-text`,children:`Include attendees in the file?`}),(0,F.jsxs)(`button`,{type:`button`,className:`cal-modal-btn cal-modal-btn-primary`,onClick:()=>J(!0),disabled:C,children:[C?(0,F.jsx)(o,{size:14,className:`spin`}):null,` Yes`]}),(0,F.jsx)(`button`,{type:`button`,className:`cal-modal-btn`,onClick:()=>J(!1),disabled:C,children:`No`}),(0,F.jsx)(`button`,{type:`button`,className:`cal-modal-btn`,onClick:()=>v(!1),disabled:C,children:`Cancel`})]}),u&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`button`,{type:`button`,className:`cal-modal-btn cal-modal-btn-primary`,onClick:W,disabled:C,children:[C?(0,F.jsx)(o,{size:14,className:`spin`}):null,` Save`]}),(0,F.jsx)(`button`,{type:`button`,className:`cal-modal-btn`,onClick:()=>{d(!1),D(null)},disabled:C,children:`Cancel`})]}),p&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{className:`cal-modal-confirm-text`,children:`Delete this meeting?`}),(0,F.jsxs)(`button`,{type:`button`,className:`cal-modal-btn cal-modal-btn-danger`,onClick:q,disabled:C,children:[C?(0,F.jsx)(o,{size:14,className:`spin`}):null,` Delete`]}),(0,F.jsx)(`button`,{type:`button`,className:`cal-modal-btn`,onClick:()=>m(!1),disabled:C,children:`Cancel`})]})]})]})})}var $=`maxy-admin-session-key`,de=[`day`,`week`,`month`,`year`];function fe(e,t){switch(e){case`day`:return t.toLocaleDateString([],{weekday:`long`,day:`numeric`,month:`long`,year:`numeric`});case`week`:{let{from:e,to:n}=j(`week`,t),r=new Date(n.getTime()-1);return`${e.toLocaleDateString([],{day:`numeric`,month:`short`})} – ${r.toLocaleDateString([],{day:`numeric`,month:`short`,year:`numeric`})}`}case`month`:return t.toLocaleDateString([],{month:`long`,year:`numeric`});case`year`:return String(t.getFullYear())}}function pe(){let[e,t]=(0,w.useState)(null),[n,r]=(0,w.useState)(!1),[i,a]=(0,w.useState)(void 0),[s,c]=(0,w.useState)(null),[l,d]=(0,w.useState)(void 0),[f,h]=(0,w.useState)(null),[g,_]=(0,w.useState)(null);(0,w.useEffect)(()=>{let e=!1,n=null;try{n=sessionStorage.getItem($)}catch{}if(!n){r(!0);return}return fetch(`/api/admin/session?session_key=${encodeURIComponent(n)}`).then(async i=>{if(!e){if(i.status===401){try{sessionStorage.removeItem($)}catch{}window.location.href=`/`;return}if(i.ok)try{let e=await i.json();typeof e.businessName==`string`&&a(e.businessName),e.sessionId!==void 0&&c(e.sessionId??null),_(e.role??null),d(e.userName===void 0?null:e.userName),h(e.avatar??null)}catch{}t(n),r(!0)}}).catch(()=>{e||(t(n),r(!0))}),()=>{e=!0}},[]);let v=(0,w.useCallback)(()=>{try{sessionStorage.removeItem($)}catch{}window.location.href=`/`},[]),[y,b]=(0,w.useState)(!1),x=(0,w.useCallback)(async()=>{b(!0);try{let e=await m();if(e){try{sessionStorage.removeItem($)}catch{}window.location.href=`/`}return e}finally{b(!1)}},[]);return n?e?(0,F.jsx)(u,{cacheKey:e,surface:`calendar`,onSessionExpired:({code:e,path:t})=>{console.warn(`[admin-auth] outcome=session-expired-redirect code=${e} path=${t} surface=calendar`);try{sessionStorage.removeItem($)}catch{}window.location.href=`/`},children:(0,F.jsx)(p,{cacheKey:e,businessName:i,sessionId:s,onLogout:v,onDisconnect:x,disconnecting:y,userName:l,userAvatar:f,role:g,children:(0,F.jsx)(me,{cacheKey:e})})}):(0,F.jsx)(`div`,{className:`cal-page`,children:(0,F.jsxs)(`div`,{className:`cal-empty`,children:[(0,F.jsx)(`p`,{children:`You are not signed in.`}),(0,F.jsxs)(`p`,{children:[`Open the `,(0,F.jsx)(`a`,{href:`/`,className:`cal-link`,children:`main admin page`}),` and log in, then return here.`]})]})}):(0,F.jsx)(`div`,{className:`cal-page`,children:(0,F.jsxs)(`div`,{className:`cal-loading`,children:[(0,F.jsx)(o,{size:18,className:`spin`}),` Loading…`]})})}function me({cacheKey:e}){let{adminFetch:t,sessionRefetchNonce:n}=d({initialCacheKey:e,surface:`calendar`}),[r,i]=(0,w.useState)(`month`),[a,s]=(0,w.useState)(()=>new Date),[c,u]=(0,w.useState)([]),[f,p]=(0,w.useState)(!1),[m,g]=(0,w.useState)(null),[y,b]=(0,w.useState)(null),[x,S]=(0,w.useState)(null);(0,w.useEffect)(()=>{let e=!1;return t(`/api/admin/calendar/booking-link`).then(async t=>{if(e||!t.ok)return;let n=await t.json();typeof n.bookingDomain==`string`&&n.bookingDomain&&S(n.bookingDomain)}).catch(()=>{}),()=>{e=!0}},[t]),(0,w.useEffect)(()=>{let e=!1,{from:n,to:i}=j(r,a);return p(!0),g(null),t(`/api/admin/calendar/meetings?from=${encodeURIComponent(n.toISOString())}&to=${encodeURIComponent(i.toISOString())}`).then(async t=>{if(e)return;if(!t.ok)throw Error(`HTTP ${t.status}`);let n=await t.json();u(Array.isArray(n.meetings)?n.meetings:[])}).catch(t=>{e||(g(t instanceof Error?t.message:`Failed to load`),u([]))}).finally(()=>{e||p(!1)}),()=>{e=!0}},[r,a,n,t]);let C=(0,w.useCallback)(()=>s(new Date),[]),T=(0,w.useCallback)(()=>s(e=>M(r,e,-1)),[r]),E=(0,w.useCallback)(()=>s(e=>M(r,e,1)),[r]),D=(0,w.useCallback)(e=>{s(e),i(`month`)},[]);(0,w.useEffect)(()=>{b(null)},[r,a]);let O=(0,w.useCallback)(e=>{u(t=>t.map(t=>t.meetingId===e.meetingId?e:t)),b(e)},[]),k=(0,w.useCallback)(e=>{u(t=>t.filter(t=>t.meetingId!==e)),b(null)},[]);return(0,F.jsxs)(`div`,{className:`cal-page`,children:[(0,F.jsxs)(`header`,{className:`cal-header`,children:[(0,F.jsxs)(`div`,{className:`cal-title`,children:[(0,F.jsx)(_,{size:20}),` Calendar`]}),(0,F.jsxs)(`div`,{className:`cal-nav`,children:[(0,F.jsx)(`button`,{type:`button`,className:`cal-today-btn`,onClick:C,children:`Today`}),(0,F.jsx)(`button`,{type:`button`,className:`cal-nav-btn`,onClick:T,"aria-label":`Previous`,children:(0,F.jsx)(h,{size:18})}),(0,F.jsx)(`button`,{type:`button`,className:`cal-nav-btn`,onClick:E,"aria-label":`Next`,children:(0,F.jsx)(v,{size:18})}),(0,F.jsx)(`span`,{className:`cal-range-label`,children:fe(r,a)}),f&&(0,F.jsx)(o,{size:16,className:`spin`})]}),(0,F.jsx)(`div`,{className:`cal-views`,children:de.map(e=>(0,F.jsx)(`button`,{type:`button`,className:`cal-view-btn${e===r?` cal-view-btn-active`:``}`,onClick:()=>i(e),children:e.charAt(0).toUpperCase()+e.slice(1)},e))}),x&&(0,F.jsxs)(`a`,{className:`cal-booking-link`,href:`https://${x}`,target:`_blank`,rel:`noopener noreferrer`,children:[(0,F.jsx)(l,{size:14}),` Booking page`]})]}),(0,F.jsxs)(`div`,{className:`cal-body`,children:[m&&(0,F.jsxs)(`div`,{className:`cal-error`,children:[`Could not load the calendar: `,m]}),r===`day`&&(0,F.jsx)(Y,{anchor:a,meetings:c,onSelect:b}),r===`week`&&(0,F.jsx)(K,{anchor:a,meetings:c,onSelect:b}),r===`month`&&(0,F.jsx)(te,{anchor:a,meetings:c,onSelect:b}),r===`year`&&(0,F.jsx)(ne,{anchor:a,meetings:c,onPickMonth:D})]}),y&&(0,F.jsx)(ue,{meeting:y,adminFetch:t,onClose:()=>b(null),onSaved:O,onDeleted:k})]})}(0,C.createRoot)(document.getElementById(`root`)).render((0,F.jsx)(pe,{}));
|
|
1
|
+
import{o as e}from"./chunk-TPjIAO9U.js";import{D as t,S as n,T as r,_ as i,a,d as o,l as s,o as c,p as l,r as u,w as d}from"./useSubAccountSwitcher-CBlKgwms.js";import{d as f,t as p,y as m}from"./AdminShell-BjxV2qkb.js";import{t as h}from"./chevron-left-BJllrPBj.js";import{h as g}from"./useSelectionMode-CWlh6AEq.js";var _=i(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),v=i(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),y=i(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),b=i(`map-pin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]),x=i(`sticky-note`,[[`path`,{d:`M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z`,key:`1dfntj`}],[`path`,{d:`M15 3v5a1 1 0 0 0 1 1h5`,key:`6s6qgf`}]]),S=i(`user-plus`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]),C=r(),w=e(t(),1);function T(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function E(e,t){let n=new Date(e);return n.setDate(n.getDate()+t),n}function D(e){let t=T(e),n=t.getDay();return E(t,n===0?-6:1-n)}function O(e){let t=D(e);return Array.from({length:7},(e,n)=>E(t,n))}function k(e){let t=D(new Date(e.getFullYear(),e.getMonth(),1));return Array.from({length:42},(e,n)=>E(t,n))}function A(){return Array.from({length:24},(e,t)=>t)}function ee(e){let t=e.getFullYear();return Array.from({length:12},(e,n)=>new Date(t,n,1))}function j(e,t){switch(e){case`day`:{let e=T(t);return{from:e,to:E(e,1)}}case`week`:{let e=D(t);return{from:e,to:E(e,7)}}case`month`:{let e=D(new Date(t.getFullYear(),t.getMonth(),1));return{from:e,to:E(e,42)}}case`year`:return{from:new Date(t.getFullYear(),0,1),to:new Date(t.getFullYear()+1,0,1)}}}function M(e,t,n){switch(e){case`day`:return E(t,n);case`week`:return E(t,n*7);case`month`:return new Date(t.getFullYear(),t.getMonth()+n,1);case`year`:return new Date(t.getFullYear()+n,t.getMonth(),1)}}function N(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function P(e,t){return{role:`button`,tabIndex:0,onClick:()=>t(e),onKeyDown:n=>{(n.key===`Enter`||n.key===` `)&&(n.preventDefault(),t(e))}}}var F=n(),I=[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sun`],L=3;function R(e){return e.toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})}function te({anchor:e,meetings:t,onSelect:n}){let r=k(e),i=e.getMonth(),a=new Date;return(0,F.jsxs)(`div`,{className:`cal-month`,children:[(0,F.jsx)(`div`,{className:`cal-weekday-row`,children:I.map(e=>(0,F.jsx)(`div`,{className:`cal-weekday`,children:e},e))}),(0,F.jsx)(`div`,{className:`cal-month-grid`,children:r.map(e=>{let r=t.filter(t=>N(new Date(t.startsAt),e)).sort((e,t)=>e.startsAt.localeCompare(t.startsAt)),o=e.getMonth()!==i,s=N(e,a);return(0,F.jsxs)(`div`,{className:`cal-cell${o?` cal-cell-out`:``}${s?` cal-cell-today`:``}`,children:[(0,F.jsx)(`div`,{className:`cal-cell-num`,children:e.getDate()}),r.slice(0,L).map(e=>(0,F.jsxs)(`div`,{className:`cal-chip`,title:e.title??`Untitled`,...P(e,n),children:[!e.isAllDay&&(0,F.jsx)(`span`,{className:`cal-chip-time`,children:R(new Date(e.startsAt))}),e.title??`Untitled`]},e.meetingId)),r.length>L&&(0,F.jsxs)(`div`,{className:`cal-more`,children:[`+`,r.length-L,` more`]})]},e.toISOString())})})]})}var z=1440,B=1.8;function V(e){return e.getHours()*60+e.getMinutes()}function H(e){return e.toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})}function U({day:e,meetings:t,hourHeight:n,onSelect:r}){let i=n*24,a=t.filter(t=>!t.isAllDay&&N(new Date(t.startsAt),e));return(0,F.jsx)(`div`,{className:`cal-day-col`,children:(0,F.jsxs)(`div`,{className:`cal-hours`,style:{height:`${i}px`},children:[Array.from({length:24},(e,t)=>(0,F.jsx)(`div`,{className:`cal-hour-line`,style:{top:`${t*n}px`}},t)),a.map(t=>{let n=new Date(t.startsAt),i=t.endsAt?new Date(t.endsAt):new Date(n.getTime()+30*6e4),a=V(n),o=N(i,e)?V(i):z,s=a/z*100,c=Math.max((o-a)/z*100,B);return(0,F.jsxs)(`div`,{className:`cal-event`,style:{top:`${s}%`,height:`${c}%`},title:t.title??`Untitled`,...P(t,r),children:[(0,F.jsx)(`span`,{className:`cal-event-time`,children:H(n)}),(0,F.jsx)(`span`,{className:`cal-event-title`,children:t.title??`Untitled`})]},t.meetingId)})]})})}var W=44;function G(e){let t=new Date;return t.setHours(e,0,0,0),t.toLocaleTimeString([],{hour:`numeric`})}function K({anchor:e,meetings:t,onSelect:n}){let r=O(e),i=new Date;return(0,F.jsxs)(`div`,{className:`cal-timed`,children:[(0,F.jsxs)(`div`,{className:`cal-day-headrow`,children:[(0,F.jsx)(`div`,{className:`cal-timed-gutter`}),r.map(e=>(0,F.jsxs)(`div`,{className:`cal-day-head${N(e,i)?` cal-day-head-today`:``}`,children:[(0,F.jsx)(`span`,{className:`cal-day-head-name`,children:e.toLocaleDateString([],{weekday:`short`})}),(0,F.jsx)(`span`,{className:`cal-day-head-num`,children:e.getDate()})]},e.toISOString()))]}),(0,F.jsxs)(`div`,{className:`cal-allday-band`,children:[(0,F.jsx)(`div`,{className:`cal-timed-gutter`,children:`All-day`}),r.map(e=>(0,F.jsx)(`div`,{className:`cal-allday-cell`,children:t.filter(t=>t.isAllDay&&N(new Date(t.startsAt),e)).map(e=>(0,F.jsx)(`div`,{className:`cal-allday-chip`,title:e.title??`Untitled`,...P(e,n),children:e.title??`Untitled`},e.meetingId))},e.toISOString()))]}),(0,F.jsxs)(`div`,{className:`cal-timed-cols`,children:[(0,F.jsx)(`div`,{className:`cal-timed-gutter`,children:A().map(e=>(0,F.jsx)(`div`,{className:`cal-hour-label`,style:{height:`${W}px`},children:e===0?``:G(e)},e))}),r.map(e=>(0,F.jsx)(U,{day:e,meetings:t,hourHeight:W,onSelect:n},e.toISOString()))]})]})}var q=52;function J(e){let t=new Date;return t.setHours(e,0,0,0),t.toLocaleTimeString([],{hour:`numeric`})}function Y({anchor:e,meetings:t,onSelect:n}){let r=t.filter(t=>t.isAllDay&&N(new Date(t.startsAt),e));return(0,F.jsxs)(`div`,{className:`cal-timed cal-timed-single`,children:[(0,F.jsxs)(`div`,{className:`cal-allday-band`,children:[(0,F.jsx)(`div`,{className:`cal-timed-gutter`,children:`All-day`}),(0,F.jsx)(`div`,{className:`cal-allday-cell`,children:r.map(e=>(0,F.jsx)(`div`,{className:`cal-allday-chip`,title:e.title??`Untitled`,...P(e,n),children:e.title??`Untitled`},e.meetingId))})]}),(0,F.jsxs)(`div`,{className:`cal-timed-cols`,children:[(0,F.jsx)(`div`,{className:`cal-timed-gutter`,children:A().map(e=>(0,F.jsx)(`div`,{className:`cal-hour-label`,style:{height:`${q}px`},children:e===0?``:J(e)},e))}),(0,F.jsx)(U,{day:e,meetings:t,hourHeight:q,onSelect:n})]})]})}var X=[`M`,`T`,`W`,`T`,`F`,`S`,`S`];function Z(e){return`${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`}function ne({anchor:e,meetings:t,onPickMonth:n}){let r=new Date,i=new Set(t.map(e=>Z(new Date(e.startsAt))));return(0,F.jsx)(`div`,{className:`cal-year`,children:(0,F.jsx)(`div`,{className:`cal-year-grid`,children:ee(e).map(e=>{let t=k(e),a=e.getMonth();return(0,F.jsxs)(`button`,{type:`button`,className:`cal-mini`,onClick:()=>n(e),title:e.toLocaleDateString([],{month:`long`,year:`numeric`}),children:[(0,F.jsx)(`div`,{className:`cal-mini-title`,children:e.toLocaleDateString([],{month:`long`})}),(0,F.jsx)(`div`,{className:`cal-mini-weekrow`,children:X.map((e,t)=>(0,F.jsx)(`span`,{className:`cal-mini-weekday`,children:e},t))}),(0,F.jsx)(`div`,{className:`cal-mini-grid`,children:t.map(e=>{let t=e.getMonth()!==a,n=N(e,r),o=!t&&i.has(Z(e));return(0,F.jsxs)(`span`,{className:`cal-mini-day${t?` cal-mini-day-out`:``}${n?` cal-mini-day-today`:``}`,children:[e.getDate(),o&&(0,F.jsx)(`span`,{className:`cal-mini-dot`})]},e.toISOString())})})]},a)})})})}var re={meeting:`Meeting`,event:`Event`,task:`Task`};function ie(e){let t=new Date(e),n=e=>String(e).padStart(2,`0`);return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())}T${n(t.getHours())}:${n(t.getMinutes())}`}function ae(e){return new Date(e).toISOString()}function Q(e){return Math.floor(new Date(e).getTime()/6e4)}function oe(e){let t=new Date(e.startsAt);if(e.isAllDay)return t.toLocaleDateString([],{weekday:`long`,day:`numeric`,month:`long`,year:`numeric`});let n=t.toLocaleDateString([],{weekday:`long`,day:`numeric`,month:`long`,year:`numeric`}),r=t.toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`});return e.endsAt?`${n} · ${r} – ${new Date(e.endsAt).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})}`:`${n} · ${r}`}function se(e){if(!e)return null;let t=e.match(/filename="([^"]+)"/);return t?t[1]:null}function ce(e,t){return e.email??`${e.name??`unknown`}-${t}`}function le({a:e}){let t=e.name||e.email||`Unknown`,n=e.name&&e.email?e.email:null;return(0,F.jsxs)(`span`,{className:`cal-attendee-lines`,children:[(0,F.jsx)(`span`,{className:`cal-attendee-name`,children:t}),n&&(0,F.jsx)(`span`,{className:`cal-attendee-email`,children:n})]})}function ue({meeting:e,adminFetch:t,onClose:n,onSaved:r,onDeleted:i}){let l=e.kind===`meeting`,[u,d]=(0,w.useState)(!1),[p,m]=(0,w.useState)(!1),[h,v]=(0,w.useState)(!1),[C,T]=(0,w.useState)(!1),[E,D]=(0,w.useState)(null),[O,k]=(0,w.useState)(e),[A,ee]=(0,w.useState)(e.title??``),[j,M]=(0,w.useState)(ie(e.startsAt)),[N,P]=(0,w.useState)(e.endsAt?ie(e.endsAt):``),[I,L]=(0,w.useState)(e.location??``),[R,te]=(0,w.useState)(e.privateNote??``),[z,B]=(0,w.useState)(``),[V,H]=(0,w.useState)(``);(0,w.useEffect)(()=>{let e=e=>{e.key===`Escape`&&!C&&n()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[C,n]);let U=(0,w.useCallback)(()=>{let e={},t=A.trim();t!==(O.title??``)&&(e.title=t);let n=ae(j);Q(n)!==Q(O.startsAt)&&(e.startsAt=n);let r=N?ae(N):null;(r===null?O.endsAt!==null:O.endsAt===null||Q(r)!==Q(O.endsAt))&&(e.endsAt=r);let i=I.trim()||null;i!==(O.location??null)&&(e.location=i);let a=R.trim()||null;return a!==(O.privateNote??null)&&(e.privateNote=a),e},[A,j,N,I,R,O]),W=(0,w.useCallback)(async()=>{let n=U();if(Object.keys(n).length===0){d(!1);return}T(!0),D(null);try{let i=await t(`/api/admin/calendar/meetings/${encodeURIComponent(e.meetingId)}`,{method:`PATCH`,headers:{"content-type":`application/json`},body:JSON.stringify(n)});if(!i.ok)throw Error(`HTTP ${i.status}`);let a=await i.json();k(a.meeting),r(a.meeting),d(!1)}catch(e){D(e instanceof Error?e.message:`Save failed`)}finally{T(!1)}},[t,U,e.meetingId,r]),G=(0,w.useCallback)(async()=>{let n=z.trim(),i=V.trim();if(!(!n&&!i)){T(!0),D(null);try{let a=await t(`/api/admin/calendar/meetings/${encodeURIComponent(e.meetingId)}/attendees`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({name:n||void 0,email:i||void 0})});if(!a.ok)throw Error(`HTTP ${a.status}`);let o=await a.json();k(o.meeting),r(o.meeting),B(``),H(``)}catch(e){D(e instanceof Error?e.message:`Add failed`)}finally{T(!1)}}},[t,z,V,e.meetingId,r]),K=(0,w.useCallback)(async n=>{let i=n.email?{email:n.email}:{name:n.name};T(!0),D(null);try{let n=await t(`/api/admin/calendar/meetings/${encodeURIComponent(e.meetingId)}/attendees`,{method:`DELETE`,headers:{"content-type":`application/json`},body:JSON.stringify(i)});if(!n.ok)throw Error(`HTTP ${n.status}`);let a=await n.json();k(a.meeting),r(a.meeting)}catch(e){D(e instanceof Error?e.message:`Remove failed`)}finally{T(!1)}},[t,e.meetingId,r]),q=(0,w.useCallback)(async()=>{T(!0),D(null);try{let n=await t(`/api/admin/calendar/meetings/${encodeURIComponent(e.meetingId)}`,{method:`DELETE`});if(!n.ok)throw Error(`HTTP ${n.status}`);i(e.meetingId)}catch(e){D(e instanceof Error?e.message:`Delete failed`),T(!1)}},[t,e.meetingId,i]),J=(0,w.useCallback)(async n=>{v(!1),T(!0),D(null);try{let r=await t(`/api/admin/calendar/meetings/${encodeURIComponent(e.meetingId)}/ics?attendees=${n?`1`:`0`}`);if(!r.ok)throw Error(`HTTP ${r.status}`);let i=await r.blob(),a=se(r.headers.get(`content-disposition`))??`meeting.ics`,o=URL.createObjectURL(i),s=document.createElement(`a`);s.href=o,s.download=a,document.body.appendChild(s),s.click(),s.remove(),URL.revokeObjectURL(o)}catch(e){D(e instanceof Error?e.message:`Download failed`)}finally{T(!1)}},[t,e.meetingId]),Y=re[e.kind??`meeting`],X=z.trim().length>0||V.trim().length>0;return(0,F.jsx)(`div`,{className:`cal-modal-overlay`,onClick:()=>{C||n()},children:(0,F.jsxs)(`div`,{className:`cal-modal`,role:`dialog`,"aria-modal":`true`,"aria-label":u?`Edit meeting`:`Meeting detail`,onClick:e=>e.stopPropagation(),children:[(0,F.jsxs)(`div`,{className:`cal-modal-header`,children:[(0,F.jsx)(`span`,{className:`cal-modal-kind`,children:Y}),(0,F.jsx)(`button`,{type:`button`,className:`cal-modal-close`,onClick:n,"aria-label":`Close`,autoFocus:!0,disabled:C,children:(0,F.jsx)(a,{size:16})})]}),!u&&(0,F.jsxs)(`div`,{className:`cal-modal-body`,children:[(0,F.jsx)(`div`,{className:`cal-modal-title`,children:O.title??`Untitled`}),(0,F.jsxs)(`div`,{className:`cal-modal-row`,children:[(0,F.jsx)(y,{size:14}),(0,F.jsx)(`span`,{children:oe(O)})]}),O.location&&(0,F.jsxs)(`div`,{className:`cal-modal-row`,children:[(0,F.jsx)(b,{size:14}),(0,F.jsx)(`span`,{children:O.location})]}),O.attendees.length>0&&(0,F.jsxs)(`div`,{className:`cal-modal-row cal-modal-row-top`,children:[(0,F.jsx)(f,{size:14}),(0,F.jsx)(`div`,{className:`cal-modal-attendees`,children:O.attendees.map((e,t)=>(0,F.jsx)(`div`,{className:`cal-attendee-row`,children:(0,F.jsx)(le,{a:e})},ce(e,t)))})]}),O.privateNote&&(0,F.jsxs)(`div`,{className:`cal-modal-row cal-modal-row-top`,children:[(0,F.jsx)(x,{size:14}),(0,F.jsx)(`span`,{className:`cal-modal-note`,children:O.privateNote})]}),(0,F.jsxs)(`div`,{className:`cal-modal-row cal-modal-meta`,children:[(0,F.jsx)(_,{size:14}),(0,F.jsx)(`span`,{children:Y})]})]}),u&&(0,F.jsxs)(`div`,{className:`cal-modal-body`,children:[(0,F.jsxs)(`label`,{className:`cal-modal-field`,children:[(0,F.jsx)(`span`,{children:`Title`}),(0,F.jsx)(`input`,{type:`text`,value:A,onChange:e=>ee(e.target.value),disabled:C})]}),(0,F.jsxs)(`label`,{className:`cal-modal-field`,children:[(0,F.jsx)(`span`,{children:`Start`}),(0,F.jsx)(`input`,{type:`datetime-local`,value:j,onChange:e=>M(e.target.value),disabled:C})]}),(0,F.jsxs)(`label`,{className:`cal-modal-field`,children:[(0,F.jsx)(`span`,{children:`End`}),(0,F.jsx)(`input`,{type:`datetime-local`,value:N,onChange:e=>P(e.target.value),disabled:C})]}),(0,F.jsxs)(`label`,{className:`cal-modal-field`,children:[(0,F.jsx)(`span`,{children:`Location`}),(0,F.jsx)(`input`,{type:`text`,value:I,onChange:e=>L(e.target.value),disabled:C})]}),(0,F.jsxs)(`div`,{className:`cal-modal-field`,children:[(0,F.jsx)(`span`,{children:`Attendees`}),(0,F.jsxs)(`div`,{className:`cal-modal-attendees cal-modal-attendees-edit`,children:[O.attendees.length===0&&(0,F.jsx)(`div`,{className:`cal-attendee-empty`,children:`No attendees yet.`}),O.attendees.map((e,t)=>(0,F.jsxs)(`div`,{className:`cal-attendee-row cal-attendee-row-edit`,children:[(0,F.jsx)(le,{a:e}),(0,F.jsx)(`button`,{type:`button`,className:`cal-attendee-remove`,onClick:()=>K(e),disabled:C,"aria-label":`Remove ${e.name||e.email||`attendee`}`,children:(0,F.jsx)(a,{size:13})})]},ce(e,t)))]}),(0,F.jsxs)(`div`,{className:`cal-attendee-add`,children:[(0,F.jsx)(`input`,{type:`text`,placeholder:`Name`,value:z,onChange:e=>B(e.target.value),disabled:C,"aria-label":`Attendee name`}),(0,F.jsx)(`input`,{type:`email`,placeholder:`Email`,value:V,onChange:e=>H(e.target.value),disabled:C,"aria-label":`Attendee email`}),(0,F.jsx)(`button`,{type:`button`,className:`cal-modal-btn cal-attendee-add-btn`,onClick:G,disabled:C||!X,"aria-label":`Add attendee`,children:C?(0,F.jsx)(o,{size:13,className:`spin`}):(0,F.jsx)(S,{size:13})})]})]}),(0,F.jsxs)(`label`,{className:`cal-modal-field`,children:[(0,F.jsx)(`span`,{children:`Private note`}),(0,F.jsx)(`textarea`,{className:`cal-modal-textarea`,value:R,onChange:e=>te(e.target.value),disabled:C,rows:3,placeholder:`Only you and your team can see this.`})]})]}),E&&(0,F.jsx)(`div`,{className:`cal-modal-error`,children:E}),l&&(0,F.jsxs)(`div`,{className:`cal-modal-actions`,children:[!u&&!p&&!h&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`button`,{type:`button`,className:`cal-modal-btn`,onClick:()=>d(!0),disabled:C,children:[(0,F.jsx)(s,{size:14}),` Edit`]}),(0,F.jsxs)(`button`,{type:`button`,className:`cal-modal-btn cal-modal-btn-danger`,onClick:()=>m(!0),disabled:C,children:[(0,F.jsx)(c,{size:14}),` Delete`]}),(0,F.jsxs)(`button`,{type:`button`,className:`cal-modal-btn cal-modal-btn-download`,onClick:()=>{O.attendees.length>0?v(!0):J(!1)},disabled:C,children:[C?(0,F.jsx)(o,{size:14,className:`spin`}):(0,F.jsx)(g,{size:14}),` Download`]})]}),h&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{className:`cal-modal-confirm-text`,children:`Include attendees in the file?`}),(0,F.jsxs)(`button`,{type:`button`,className:`cal-modal-btn cal-modal-btn-primary`,onClick:()=>J(!0),disabled:C,children:[C?(0,F.jsx)(o,{size:14,className:`spin`}):null,` Yes`]}),(0,F.jsx)(`button`,{type:`button`,className:`cal-modal-btn`,onClick:()=>J(!1),disabled:C,children:`No`}),(0,F.jsx)(`button`,{type:`button`,className:`cal-modal-btn`,onClick:()=>v(!1),disabled:C,children:`Cancel`})]}),u&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`button`,{type:`button`,className:`cal-modal-btn cal-modal-btn-primary`,onClick:W,disabled:C,children:[C?(0,F.jsx)(o,{size:14,className:`spin`}):null,` Save`]}),(0,F.jsx)(`button`,{type:`button`,className:`cal-modal-btn`,onClick:()=>{d(!1),D(null)},disabled:C,children:`Cancel`})]}),p&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{className:`cal-modal-confirm-text`,children:`Delete this meeting?`}),(0,F.jsxs)(`button`,{type:`button`,className:`cal-modal-btn cal-modal-btn-danger`,onClick:q,disabled:C,children:[C?(0,F.jsx)(o,{size:14,className:`spin`}):null,` Delete`]}),(0,F.jsx)(`button`,{type:`button`,className:`cal-modal-btn`,onClick:()=>m(!1),disabled:C,children:`Cancel`})]})]})]})})}var $=`maxy-admin-session-key`,de=[`day`,`week`,`month`,`year`];function fe(e,t){switch(e){case`day`:return t.toLocaleDateString([],{weekday:`long`,day:`numeric`,month:`long`,year:`numeric`});case`week`:{let{from:e,to:n}=j(`week`,t),r=new Date(n.getTime()-1);return`${e.toLocaleDateString([],{day:`numeric`,month:`short`})} – ${r.toLocaleDateString([],{day:`numeric`,month:`short`,year:`numeric`})}`}case`month`:return t.toLocaleDateString([],{month:`long`,year:`numeric`});case`year`:return String(t.getFullYear())}}function pe(){let[e,t]=(0,w.useState)(null),[n,r]=(0,w.useState)(!1),[i,a]=(0,w.useState)(void 0),[s,c]=(0,w.useState)(null),[l,d]=(0,w.useState)(void 0),[f,h]=(0,w.useState)(null),[g,_]=(0,w.useState)(null);(0,w.useEffect)(()=>{let e=!1,n=null;try{n=sessionStorage.getItem($)}catch{}if(!n){r(!0);return}return fetch(`/api/admin/session?session_key=${encodeURIComponent(n)}`).then(async i=>{if(!e){if(i.status===401){try{sessionStorage.removeItem($)}catch{}window.location.href=`/`;return}if(i.ok)try{let e=await i.json();typeof e.businessName==`string`&&a(e.businessName),e.sessionId!==void 0&&c(e.sessionId??null),_(e.role??null),d(e.userName===void 0?null:e.userName),h(e.avatar??null)}catch{}t(n),r(!0)}}).catch(()=>{e||(t(n),r(!0))}),()=>{e=!0}},[]);let v=(0,w.useCallback)(()=>{try{sessionStorage.removeItem($)}catch{}window.location.href=`/`},[]),[y,b]=(0,w.useState)(!1),x=(0,w.useCallback)(async()=>{b(!0);try{let e=await m();if(e){try{sessionStorage.removeItem($)}catch{}window.location.href=`/`}return e}finally{b(!1)}},[]);return n?e?(0,F.jsx)(u,{cacheKey:e,surface:`calendar`,onSessionExpired:({code:e,path:t})=>{console.warn(`[admin-auth] outcome=session-expired-redirect code=${e} path=${t} surface=calendar`);try{sessionStorage.removeItem($)}catch{}window.location.href=`/`},children:(0,F.jsx)(p,{cacheKey:e,businessName:i,sessionId:s,onLogout:v,onDisconnect:x,disconnecting:y,userName:l,userAvatar:f,role:g,children:(0,F.jsx)(me,{cacheKey:e})})}):(0,F.jsx)(`div`,{className:`cal-page`,children:(0,F.jsxs)(`div`,{className:`cal-empty`,children:[(0,F.jsx)(`p`,{children:`You are not signed in.`}),(0,F.jsxs)(`p`,{children:[`Open the `,(0,F.jsx)(`a`,{href:`/`,className:`cal-link`,children:`main admin page`}),` and log in, then return here.`]})]})}):(0,F.jsx)(`div`,{className:`cal-page`,children:(0,F.jsxs)(`div`,{className:`cal-loading`,children:[(0,F.jsx)(o,{size:18,className:`spin`}),` Loading…`]})})}function me({cacheKey:e}){let{adminFetch:t,sessionRefetchNonce:n}=d({initialCacheKey:e,surface:`calendar`}),[r,i]=(0,w.useState)(`month`),[a,s]=(0,w.useState)(()=>new Date),[c,u]=(0,w.useState)([]),[f,p]=(0,w.useState)(!1),[m,g]=(0,w.useState)(null),[y,b]=(0,w.useState)(null),[x,S]=(0,w.useState)(null);(0,w.useEffect)(()=>{let e=!1;return t(`/api/admin/calendar/booking-link`).then(async t=>{if(e||!t.ok)return;let n=await t.json();typeof n.bookingDomain==`string`&&n.bookingDomain&&S(n.bookingDomain)}).catch(()=>{}),()=>{e=!0}},[t]),(0,w.useEffect)(()=>{let e=!1,{from:n,to:i}=j(r,a);return p(!0),g(null),t(`/api/admin/calendar/meetings?from=${encodeURIComponent(n.toISOString())}&to=${encodeURIComponent(i.toISOString())}`).then(async t=>{if(e)return;if(!t.ok)throw Error(`HTTP ${t.status}`);let n=await t.json();u(Array.isArray(n.meetings)?n.meetings:[])}).catch(t=>{e||(g(t instanceof Error?t.message:`Failed to load`),u([]))}).finally(()=>{e||p(!1)}),()=>{e=!0}},[r,a,n,t]);let C=(0,w.useCallback)(()=>s(new Date),[]),T=(0,w.useCallback)(()=>s(e=>M(r,e,-1)),[r]),E=(0,w.useCallback)(()=>s(e=>M(r,e,1)),[r]),D=(0,w.useCallback)(e=>{s(e),i(`month`)},[]);(0,w.useEffect)(()=>{b(null)},[r,a]);let O=(0,w.useCallback)(e=>{u(t=>t.map(t=>t.meetingId===e.meetingId?e:t)),b(e)},[]),k=(0,w.useCallback)(e=>{u(t=>t.filter(t=>t.meetingId!==e)),b(null)},[]);return(0,F.jsxs)(`div`,{className:`cal-page`,children:[(0,F.jsxs)(`header`,{className:`cal-header`,children:[(0,F.jsxs)(`div`,{className:`cal-title`,children:[(0,F.jsx)(_,{size:20}),` Calendar`]}),(0,F.jsxs)(`div`,{className:`cal-nav`,children:[(0,F.jsx)(`button`,{type:`button`,className:`cal-today-btn`,onClick:C,children:`Today`}),(0,F.jsx)(`button`,{type:`button`,className:`cal-nav-btn`,onClick:T,"aria-label":`Previous`,children:(0,F.jsx)(h,{size:18})}),(0,F.jsx)(`button`,{type:`button`,className:`cal-nav-btn`,onClick:E,"aria-label":`Next`,children:(0,F.jsx)(v,{size:18})}),(0,F.jsx)(`span`,{className:`cal-range-label`,children:fe(r,a)}),f&&(0,F.jsx)(o,{size:16,className:`spin`})]}),(0,F.jsx)(`div`,{className:`cal-views`,children:de.map(e=>(0,F.jsx)(`button`,{type:`button`,className:`cal-view-btn${e===r?` cal-view-btn-active`:``}`,onClick:()=>i(e),children:e.charAt(0).toUpperCase()+e.slice(1)},e))}),x&&(0,F.jsxs)(`a`,{className:`cal-booking-link`,href:`https://${x}`,target:`_blank`,rel:`noopener noreferrer`,children:[(0,F.jsx)(l,{size:14}),` Booking page`]})]}),(0,F.jsxs)(`div`,{className:`cal-body`,children:[m&&(0,F.jsxs)(`div`,{className:`cal-error`,children:[`Could not load the calendar: `,m]}),r===`day`&&(0,F.jsx)(Y,{anchor:a,meetings:c,onSelect:b}),r===`week`&&(0,F.jsx)(K,{anchor:a,meetings:c,onSelect:b}),r===`month`&&(0,F.jsx)(te,{anchor:a,meetings:c,onSelect:b}),r===`year`&&(0,F.jsx)(ne,{anchor:a,meetings:c,onPickMonth:D})]}),y&&(0,F.jsx)(ue,{meeting:y,adminFetch:t,onClose:()=>b(null),onSaved:O,onDeleted:k})]})}(0,C.createRoot)(document.getElementById(`root`)).render((0,F.jsx)(pe,{}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{S as e,T as t}from"./useSubAccountSwitcher-CBlKgwms.js";import"./useVoiceRecorder-j3ZArZ2H.js";import"./AdminShell-BjxV2qkb.js";import{n}from"./page-DxnWgPtd.js";import"./useCopyFeedback-7yKeiAzV.js";import"./useSelectionMode-CWlh6AEq.js";var r=t(),i=e();(0,r.createRoot)(document.getElementById(`root`)).render((0,i.jsx)(n,{}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e}from"./useSubAccountSwitcher-CBlKgwms.js";var t=e(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]);export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{S as e,T as t}from"./useSubAccountSwitcher-CBlKgwms.js";import"./useVoiceRecorder-j3ZArZ2H.js";import{t as n}from"./page-CkhFj8GQ.js";import"./useSelectionMode-CWlh6AEq.js";import"./graph-labels-GlTEIYJj.js";var r=t(),i=e();(0,r.createRoot)(document.getElementById(`root`)).render((0,i.jsx)(n,{}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as e,t}from"./chunk-TPjIAO9U.js";import{D as n,S as r,T as i,_ as a,a as o,c as s,d as c,h as l,o as u,r as d,w as f}from"./useSubAccountSwitcher-CUJpgkKI.js";import{f as p,n as m,t as h,y as g}from"./AdminShell-DAuri4Yh.js";import{t as _}from"./Checkbox-B1XhnhPk.js";import{n as v,t as y}from"./useCopyFeedback-DXHkkJw-.js";import{t as b}from"./chevron-left-C3ho8SnB.js";import{n as x,t as S}from"./maximize-2-DKx-aTPb.js";import{f as ee,p as C}from"./useSelectionMode-D2H8jAhE.js";import{t as te}from"./rotate-ccw-DrzdV9h7.js";import{i as ne,n as re,r as w}from"./graph-labels-4W7JuOgG.js";var T=a(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),E=a(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),D=a(`grip-vertical`,[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]),O=a(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),ie=a(`minimize-2`,[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]),ae=a(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),k=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.vis=n.vis||{}))})(e,(function(e){function t(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var n=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var i={exports:{}},a=function(e){return e&&e.Math===Math&&e},o=a(typeof globalThis==`object`&&globalThis)||a(typeof window==`object`&&window)||a(typeof self==`object`&&self)||a(typeof n==`object`&&n)||(function(){return this})()||n||Function(`return this`)(),s=function(e){try{return!!e()}catch{return!0}},c=!s(function(){var e=(function(){}).bind();return typeof e!=`function`||e.hasOwnProperty(`prototype`)}),l=c,u=Function.prototype,d=u.apply,f=u.call,p=typeof Reflect==`object`&&Reflect.apply||(l?f.bind(d):function(){return f.apply(d,arguments)}),m=c,h=Function.prototype,g=h.call,_=m&&h.bind.bind(g,g),v=m?_:function(e){return function(){return g.apply(e,arguments)}},y=v,b=y({}.toString),x=y(``.slice),S=function(e){return x(b(e),8,-1)},ee=S,C=v,te=function(e){if(ee(e)===`Function`)return C(e)},ne=typeof document==`object`&&document.all,re={all:ne,IS_HTMLDDA:ne===void 0&&ne!==void 0},w=re,T=w.all,E=w.IS_HTMLDDA?function(e){return typeof e==`function`||e===T}:function(e){return typeof e==`function`},D={},O=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),ie=c,ae=Function.prototype.call,k=ie?ae.bind(ae):function(){return ae.apply(ae,arguments)},oe={},se={}.propertyIsEnumerable,ce=Object.getOwnPropertyDescriptor;oe.f=ce&&!se.call({1:2},1)?function(e){var t=ce(this,e);return!!t&&t.enumerable}:se;var le=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},A=v,ue=s,de=S,fe=Object,pe=A(``.split),me=ue(function(){return!fe(`z`).propertyIsEnumerable(0)})?function(e){return de(e)===`String`?pe(e,``):fe(e)}:fe,he=function(e){return e==null},ge=he,_e=TypeError,ve=function(e){if(ge(e))throw new _e(`Can't call method on `+e);return e},ye=me,be=ve,xe=function(e){return ye(be(e))},Se=E,Ce=re,j=Ce.all,M=Ce.IS_HTMLDDA?function(e){return typeof e==`object`?e!==null:Se(e)||e===j}:function(e){return typeof e==`object`?e!==null:Se(e)},we={},Te=we,Ee=o,De=E,N=function(e){return De(e)?e:void 0},P=function(e,t){return arguments.length<2?N(Te[e])||N(Ee[e]):Te[e]&&Te[e][t]||Ee[e]&&Ee[e][t]},F=v({}.isPrototypeOf),Oe=typeof navigator<`u`&&String(navigator.userAgent)||``,ke=o,Ae=Oe,je=ke.process,Me=ke.Deno,Ne=je&&je.versions||Me&&Me.version,Pe=Ne&&Ne.v8,Fe,Ie;Pe&&(Fe=Pe.split(`.`),Ie=Fe[0]>0&&Fe[0]<4?1:+(Fe[0]+Fe[1])),!Ie&&Ae&&(Fe=Ae.match(/Edge\/(\d+)/),(!Fe||Fe[1]>=74)&&(Fe=Ae.match(/Chrome\/(\d+)/),Fe&&(Ie=+Fe[1])));var Le=Ie,Re=Le,ze=s,Be=o.String,Ve=!!Object.getOwnPropertySymbols&&!ze(function(){var e=Symbol(`symbol detection`);return!Be(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Re&&Re<41}),He=Ve&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Ue=P,We=E,Ge=F,Ke=He,qe=Object,Je=Ke?function(e){return typeof e==`symbol`}:function(e){var t=Ue(`Symbol`);return We(t)&&Ge(t.prototype,qe(e))},Ye=String,Xe=function(e){try{return Ye(e)}catch{return`Object`}},Ze=E,Qe=Xe,$e=TypeError,et=function(e){if(Ze(e))return e;throw new $e(Qe(e)+` is not a function`)},tt=et,nt=he,rt=function(e,t){var n=e[t];return nt(n)?void 0:tt(n)},it=k,at=E,ot=M,st=TypeError,I=function(e,t){var n,r;if(t===`string`&&at(n=e.toString)&&!ot(r=it(n,e))||at(n=e.valueOf)&&!ot(r=it(n,e))||t!==`string`&&at(n=e.toString)&&!ot(r=it(n,e)))return r;throw new st(`Can't convert object to primitive value`)},ct={exports:{}},lt=!0,ut=o,dt=Object.defineProperty,ft=function(e,t){try{dt(ut,e,{value:t,configurable:!0,writable:!0})}catch{ut[e]=t}return t},pt=o,mt=ft,ht=`__core-js_shared__`,gt=pt[ht]||mt(ht,{}),_t=gt;(ct.exports=function(e,t){return _t[e]||(_t[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.33.2`,mode:`pure`,copyright:`© 2014-2023 Denis Pushkarev (zloirock.ru)`,license:`https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE`,source:`https://github.com/zloirock/core-js`});var vt=ct.exports,yt=ve,bt=Object,xt=function(e){return bt(yt(e))},St=v,Ct=xt,wt=St({}.hasOwnProperty),Tt=Object.hasOwn||function(e,t){return wt(Ct(e),t)},Et=v,Dt=0,Ot=Math.random(),kt=Et(1 .toString),L=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+kt(++Dt+Ot,36)},At=o,jt=vt,Mt=Tt,Nt=L,Pt=Ve,Ft=He,It=At.Symbol,Lt=jt(`wks`),Rt=Ft?It.for||It:It&&It.withoutSetter||Nt,zt=function(e){return Mt(Lt,e)||(Lt[e]=Pt&&Mt(It,e)?It[e]:Rt(`Symbol.`+e)),Lt[e]},Bt=k,Vt=M,Ht=Je,Ut=rt,Wt=I,Gt=zt,Kt=TypeError,qt=Gt(`toPrimitive`),Jt=function(e,t){if(!Vt(e)||Ht(e))return e;var n=Ut(e,qt),r;if(n){if(t===void 0&&(t=`default`),r=Bt(n,e,t),!Vt(r)||Ht(r))return r;throw new Kt(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),Wt(e,t)},Yt=Je,Xt=function(e){var t=Jt(e,`string`);return Yt(t)?t:t+``},Zt=o,Qt=M,$t=Zt.document,en=Qt($t)&&Qt($t.createElement),tn=function(e){return en?$t.createElement(e):{}},nn=O,rn=s,an=tn,on=!nn&&!rn(function(){return Object.defineProperty(an(`div`),`a`,{get:function(){return 7}}).a!==7}),sn=O,cn=k,ln=oe,un=le,dn=xe,fn=Xt,pn=Tt,mn=on,hn=Object.getOwnPropertyDescriptor;D.f=sn?hn:function(e,t){if(e=dn(e),t=fn(t),mn)try{return hn(e,t)}catch{}if(pn(e,t))return un(!cn(ln.f,e,t),e[t])};var gn=s,_n=E,vn=/#|\.prototype\./,yn=function(e,t){var n=xn[bn(e)];return n===Cn?!0:n===Sn?!1:_n(t)?gn(t):!!t},bn=yn.normalize=function(e){return String(e).replace(vn,`.`).toLowerCase()},xn=yn.data={},Sn=yn.NATIVE=`N`,Cn=yn.POLYFILL=`P`,wn=yn,Tn=te,En=et,Dn=c,On=Tn(Tn.bind),kn=function(e,t){return En(e),t===void 0?e:Dn?On(e,t):function(){return e.apply(t,arguments)}},An={},jn=O&&s(function(){return Object.defineProperty(function(){},`prototype`,{value:42,writable:!1}).prototype!==42}),Mn=M,Nn=String,Pn=TypeError,Fn=function(e){if(Mn(e))return e;throw new Pn(Nn(e)+` is not an object`)},In=O,Ln=on,Rn=jn,zn=Fn,Bn=Xt,Vn=TypeError,Hn=Object.defineProperty,Un=Object.getOwnPropertyDescriptor,Wn=`enumerable`,R=`configurable`,z=`writable`;An.f=In?Rn?function(e,t,n){if(zn(e),t=Bn(t),zn(n),typeof e==`function`&&t===`prototype`&&`value`in n&&z in n&&!n[z]){var r=Un(e,t);r&&r[z]&&(e[t]=n.value,n={configurable:R in n?n[R]:r[R],enumerable:Wn in n?n[Wn]:r[Wn],writable:!1})}return Hn(e,t,n)}:Hn:function(e,t,n){if(zn(e),t=Bn(t),zn(n),Ln)try{return Hn(e,t,n)}catch{}if(`get`in n||`set`in n)throw new Vn(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e};var Gn=O,Kn=An,qn=le,Jn=Gn?function(e,t,n){return Kn.f(e,t,qn(1,n))}:function(e,t,n){return e[t]=n,e},Yn=o,Xn=p,Zn=te,Qn=E,$n=D.f,er=wn,tr=we,nr=kn,rr=Jn,ir=Tt,ar=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return Xn(e,this,arguments)};return t.prototype=e.prototype,t},B=function(e,t){var n=e.target,r=e.global,i=e.stat,a=e.proto,o=r?Yn:i?Yn[n]:(Yn[n]||{}).prototype,s=r?tr:tr[n]||rr(tr,n,{})[n],c=s.prototype,l,u,d,f,p,m,h,g,_;for(f in t)l=er(r?f:n+(i?`.`:`#`)+f,e.forced),u=!l&&o&&ir(o,f),m=s[f],u&&(e.dontCallGetSet?(_=$n(o,f),h=_&&_.value):h=o[f]),p=u&&h?h:t[f],!(u&&typeof m==typeof p)&&(g=e.bind&&u?nr(p,Yn):e.wrap&&u?ar(p):a&&Qn(p)?Zn(p):p,(e.sham||p&&p.sham||m&&m.sham)&&rr(g,`sham`,!0),rr(s,f,g),a&&(d=n+`Prototype`,ir(tr,d)||rr(tr,d,{}),rr(tr[d],f,p),e.real&&c&&(l||!c[f])&&rr(c,f,p)))},or=B,sr=O,cr=An.f;or({target:`Object`,stat:!0,forced:Object.defineProperty!==cr,sham:!sr},{defineProperty:cr});var lr=we.Object,ur=i.exports=function(e,t,n){return lr.defineProperty(e,t,n)};lr.defineProperty.sham&&(ur.sham=!0);var dr=i.exports,fr=dr,pr=r(fr),mr=S,hr=Array.isArray||function(e){return mr(e)===`Array`},gr=Math.ceil,_r=Math.floor,vr=Math.trunc||function(e){var t=+e;return(t>0?_r:gr)(t)},yr=function(e){var t=+e;return t!==t||t===0?0:vr(t)},br=yr,xr=Math.min,Sr=function(e){return e>0?xr(br(e),9007199254740991):0},Cr=function(e){return Sr(e.length)},wr=TypeError,Tr=9007199254740991,Er=function(e){if(e>Tr)throw wr(`Maximum allowed index exceeded`);return e},Dr=Xt,Or=An,kr=le,Ar=function(e,t,n){var r=Dr(t);r in e?Or.f(e,r,kr(0,n)):e[r]=n},jr=zt(`toStringTag`),Mr={};Mr[jr]=`z`;var Nr=String(Mr)===`[object z]`,Pr=Nr,Fr=E,Ir=S,Lr=zt(`toStringTag`),Rr=Object,zr=Ir(function(){return arguments}())===`Arguments`,Br=function(e,t){try{return e[t]}catch{}},Vr=Pr?Ir:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=Br(t=Rr(e),Lr))==`string`?n:zr?Ir(t):(r=Ir(t))===`Object`&&Fr(t.callee)?`Arguments`:r},Hr=v,Ur=E,Wr=gt,Gr=Hr(Function.toString);Ur(Wr.inspectSource)||(Wr.inspectSource=function(e){return Gr(e)});var Kr=Wr.inspectSource,qr=v,Jr=s,Yr=E,Xr=Vr,Zr=P,V=Kr,Qr=function(){},$r=[],ei=Zr(`Reflect`,`construct`),ti=/^\s*(?:class|function)\b/,ni=qr(ti.exec),ri=!ti.test(Qr),ii=function(e){if(!Yr(e))return!1;try{return ei(Qr,$r,e),!0}catch{return!1}},ai=function(e){if(!Yr(e))return!1;switch(Xr(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}try{return ri||!!ni(ti,V(e))}catch{return!0}};ai.sham=!0;var oi=!ei||Jr(function(){var e;return ii(ii.call)||!ii(Object)||!ii(function(){e=!0})||e})?ai:ii,si=hr,ci=oi,li=M,ui=zt(`species`),di=Array,fi=function(e){var t;return si(e)&&(t=e.constructor,ci(t)&&(t===di||si(t.prototype))?t=void 0:li(t)&&(t=t[ui],t===null&&(t=void 0))),t===void 0?di:t},pi=function(e,t){return new(fi(e))(t===0?0:t)},mi=s,hi=zt,gi=Le,_i=hi(`species`),vi=function(e){return gi>=51||!mi(function(){var t=[],n=t.constructor={};return n[_i]=function(){return{foo:1}},t[e](Boolean).foo!==1})},yi=B,bi=s,xi=hr,Si=M,Ci=xt,wi=Cr,Ti=Er,Ei=Ar,Di=pi,Oi=vi,ki=zt,Ai=Le,ji=ki(`isConcatSpreadable`),Mi=Ai>=51||!bi(function(){var e=[];return e[ji]=!1,e.concat()[0]!==e}),Ni=function(e){if(!Si(e))return!1;var t=e[ji];return t===void 0?xi(e):!!t};yi({target:`Array`,proto:!0,arity:1,forced:!Mi||!Oi(`concat`)},{concat:function(e){var t=Ci(this),n=Di(t,0),r=0,i,a,o,s,c;for(i=-1,o=arguments.length;i<o;i++)if(c=i===-1?t:arguments[i],Ni(c))for(s=wi(c),Ti(r+s),a=0;a<s;a++,r++)a in c&&Ei(n,r,c[a]);else Ti(r+1),Ei(n,r++,c);return n.length=r,n}});var Pi=Vr,Fi=String,Ii=function(e){if(Pi(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Fi(e)},Li={},Ri=yr,zi=Math.max,Bi=Math.min,Vi=function(e,t){var n=Ri(e);return n<0?zi(n+t,0):Bi(n,t)},Hi=xe,Ui=Vi,Wi=Cr,Gi=function(e){return function(t,n,r){var i=Hi(t),a=Wi(i),o=Ui(r,a),s;if(e&&n!==n){for(;a>o;)if(s=i[o++],s!==s)return!0}else for(;a>o;o++)if((e||o in i)&&i[o]===n)return e||o||0;return!e&&-1}},Ki={includes:Gi(!0),indexOf:Gi(!1)},qi={},Ji=v,Yi=Tt,Xi=xe,Zi=Ki.indexOf,Qi=qi,$i=Ji([].push),ea=function(e,t){var n=Xi(e),r=0,i=[],a;for(a in n)!Yi(Qi,a)&&Yi(n,a)&&$i(i,a);for(;t.length>r;)Yi(n,a=t[r++])&&(~Zi(i,a)||$i(i,a));return i},ta=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],na=ea,ra=ta,ia=Object.keys||function(e){return na(e,ra)},aa=O,oa=jn,sa=An,ca=Fn,la=xe,ua=ia;Li.f=aa&&!oa?Object.defineProperties:function(e,t){ca(e);for(var n=la(t),r=ua(t),i=r.length,a=0,o;i>a;)sa.f(e,o=r[a++],n[o]);return e};var da=P(`document`,`documentElement`),fa=vt,pa=L,ma=fa(`keys`),ha=function(e){return ma[e]||(ma[e]=pa(e))},ga=Fn,_a=Li,va=ta,ya=qi,ba=da,xa=tn,Sa=ha,Ca=`>`,wa=`<`,Ta=`prototype`,Ea=`script`,Da=Sa(`IE_PROTO`),Oa=function(){},ka=function(e){return wa+Ea+Ca+e+wa+`/`+Ea+Ca},Aa=function(e){e.write(ka(``)),e.close();var t=e.parentWindow.Object;return e=null,t},ja=function(){var e=xa(`iframe`),t=`java`+Ea+`:`,n;return e.style.display=`none`,ba.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(ka(`document.F=Object`)),n.close(),n.F},Ma,Na=function(){try{Ma=new ActiveXObject(`htmlfile`)}catch{}Na=typeof document<`u`?document.domain&&Ma?Aa(Ma):ja():Aa(Ma);for(var e=va.length;e--;)delete Na[Ta][va[e]];return Na()};ya[Da]=!0;var Pa=Object.create||function(e,t){var n;return e===null?n=Na():(Oa[Ta]=ga(e),n=new Oa,Oa[Ta]=null,n[Da]=e),t===void 0?n:_a.f(n,t)},Fa={},Ia=ea,La=ta.concat(`length`,`prototype`);Fa.f=Object.getOwnPropertyNames||function(e){return Ia(e,La)};var Ra={},za=Vi,Ba=Cr,Va=Ar,Ha=Array,Ua=Math.max,Wa=function(e,t,n){for(var r=Ba(e),i=za(t,r),a=za(n===void 0?r:n,r),o=Ha(Ua(a-i,0)),s=0;i<a;i++,s++)Va(o,s,e[i]);return o.length=s,o},Ga=S,Ka=xe,qa=Fa.f,Ja=Wa,Ya=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Xa=function(e){try{return qa(e)}catch{return Ja(Ya)}};Ra.f=function(e){return Ya&&Ga(e)===`Window`?Xa(e):qa(Ka(e))};var Za={};Za.f=Object.getOwnPropertySymbols;var Qa=Jn,$a=function(e,t,n,r){return r&&r.enumerable?e[t]=n:Qa(e,t,n),e},eo=An,to=function(e,t,n){return eo.f(e,t,n)},no={};no.f=zt;var ro=we,io=Tt,ao=no,oo=An.f,so=function(e){var t=ro.Symbol||={};io(t,e)||oo(t,e,{value:ao.f(e)})},co=k,lo=P,uo=zt,fo=$a,po=function(){var e=lo(`Symbol`),t=e&&e.prototype,n=t&&t.valueOf,r=uo(`toPrimitive`);t&&!t[r]&&fo(t,r,function(e){return co(n,this)},{arity:1})},mo=Nr,ho=Vr,go=mo?{}.toString:function(){return`[object `+ho(this)+`]`},_o=Nr,vo=An.f,yo=Jn,bo=Tt,xo=go,So=zt(`toStringTag`),Co=function(e,t,n,r){if(e){var i=n?e:e.prototype;bo(i,So)||vo(i,So,{configurable:!0,value:t}),r&&!_o&&yo(i,`toString`,xo)}},wo=o,To=E,Eo=wo.WeakMap,Do=To(Eo)&&/native code/.test(String(Eo)),Oo=o,ko=M,Ao=Jn,jo=Tt,Mo=gt,No=ha,Po=qi,Fo=`Object already initialized`,Io=Oo.TypeError,Lo=Oo.WeakMap,Ro,zo,Bo,Vo=function(e){return Bo(e)?zo(e):Ro(e,{})},Ho=function(e){return function(t){var n;if(!ko(t)||(n=zo(t)).type!==e)throw new Io(`Incompatible receiver, `+e+` required`);return n}};if(Do||Mo.state){var Uo=Mo.state||=new Lo;Uo.get=Uo.get,Uo.has=Uo.has,Uo.set=Uo.set,Ro=function(e,t){if(Uo.has(e))throw new Io(Fo);return t.facade=e,Uo.set(e,t),t},zo=function(e){return Uo.get(e)||{}},Bo=function(e){return Uo.has(e)}}else{var Wo=No(`state`);Po[Wo]=!0,Ro=function(e,t){if(jo(e,Wo))throw new Io(Fo);return t.facade=e,Ao(e,Wo,t),t},zo=function(e){return jo(e,Wo)?e[Wo]:{}},Bo=function(e){return jo(e,Wo)}}var Go={set:Ro,get:zo,has:Bo,enforce:Vo,getterFor:Ho},Ko=kn,qo=v,Jo=me,Yo=xt,Xo=Cr,Zo=pi,Qo=qo([].push),$o=function(e){var t=e===1,n=e===2,r=e===3,i=e===4,a=e===6,o=e===7,s=e===5||a;return function(c,l,u,d){for(var f=Yo(c),p=Jo(f),m=Ko(l,u),h=Xo(p),g=0,_=d||Zo,v=t?_(c,h):n||o?_(c,0):void 0,y,b;h>g;g++)if((s||g in p)&&(y=p[g],b=m(y,g,f),e))if(t)v[g]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return g;case 2:Qo(v,y)}else switch(e){case 4:return!1;case 7:Qo(v,y)}return a?-1:r||i?i:v}},es={forEach:$o(0),map:$o(1),filter:$o(2),some:$o(3),every:$o(4),find:$o(5),findIndex:$o(6),filterReject:$o(7)},ts=B,ns=o,rs=k,is=v,as=O,os=Ve,ss=s,cs=Tt,ls=F,us=Fn,ds=xe,fs=Xt,ps=Ii,ms=le,hs=Pa,gs=ia,_s=Fa,vs=Ra,ys=Za,bs=D,xs=An,Ss=Li,Cs=oe,ws=$a,Ts=to,Es=vt,Ds=ha,Os=qi,ks=L,As=zt,js=no,Ms=so,Ns=po,Ps=Co,Fs=Go,Is=es.forEach,Ls=Ds(`hidden`),Rs=`Symbol`,zs=`prototype`,Bs=Fs.set,Vs=Fs.getterFor(Rs),Hs=Object[zs],Us=ns.Symbol,Ws=Us&&Us[zs],Gs=ns.RangeError,Ks=ns.TypeError,qs=ns.QObject,Js=bs.f,Ys=xs.f,Xs=vs.f,Zs=Cs.f,Qs=is([].push),$s=Es(`symbols`),ec=Es(`op-symbols`),tc=Es(`wks`),nc=!qs||!qs[zs]||!qs[zs].findChild,rc=function(e,t,n){var r=Js(Hs,t);r&&delete Hs[t],Ys(e,t,n),r&&e!==Hs&&Ys(Hs,t,r)},ic=as&&ss(function(){return hs(Ys({},`a`,{get:function(){return Ys(this,`a`,{value:7}).a}})).a!==7})?rc:Ys,ac=function(e,t){var n=$s[e]=hs(Ws);return Bs(n,{type:Rs,tag:e,description:t}),as||(n.description=t),n},oc=function(e,t,n){e===Hs&&oc(ec,t,n),us(e);var r=fs(t);return us(n),cs($s,r)?(n.enumerable?(cs(e,Ls)&&e[Ls][r]&&(e[Ls][r]=!1),n=hs(n,{enumerable:ms(0,!1)})):(cs(e,Ls)||Ys(e,Ls,ms(1,{})),e[Ls][r]=!0),ic(e,r,n)):Ys(e,r,n)},sc=function(e,t){us(e);var n=ds(t);return Is(gs(n).concat(fc(n)),function(t){(!as||rs(lc,n,t))&&oc(e,t,n[t])}),e},cc=function(e,t){return t===void 0?hs(e):sc(hs(e),t)},lc=function(e){var t=fs(e),n=rs(Zs,this,t);return this===Hs&&cs($s,t)&&!cs(ec,t)?!1:n||!cs(this,t)||!cs($s,t)||cs(this,Ls)&&this[Ls][t]?n:!0},uc=function(e,t){var n=ds(e),r=fs(t);if(!(n===Hs&&cs($s,r)&&!cs(ec,r))){var i=Js(n,r);return i&&cs($s,r)&&!(cs(n,Ls)&&n[Ls][r])&&(i.enumerable=!0),i}},dc=function(e){var t=Xs(ds(e)),n=[];return Is(t,function(e){!cs($s,e)&&!cs(Os,e)&&Qs(n,e)}),n},fc=function(e){var t=e===Hs,n=Xs(t?ec:ds(e)),r=[];return Is(n,function(e){cs($s,e)&&(!t||cs(Hs,e))&&Qs(r,$s[e])}),r};os||(Us=function(){if(ls(Ws,this))throw new Ks(`Symbol is not a constructor`);var e=!arguments.length||arguments[0]===void 0?void 0:ps(arguments[0]),t=ks(e),n=function(e){var r=this===void 0?ns:this;r===Hs&&rs(n,ec,e),cs(r,Ls)&&cs(r[Ls],t)&&(r[Ls][t]=!1);var i=ms(1,e);try{ic(r,t,i)}catch(e){if(!(e instanceof Gs))throw e;rc(r,t,i)}};return as&&nc&&ic(Hs,t,{configurable:!0,set:n}),ac(t,e)},Ws=Us[zs],ws(Ws,`toString`,function(){return Vs(this).tag}),ws(Us,`withoutSetter`,function(e){return ac(ks(e),e)}),Cs.f=lc,xs.f=oc,Ss.f=sc,bs.f=uc,_s.f=vs.f=dc,ys.f=fc,js.f=function(e){return ac(As(e),e)},as&&Ts(Ws,`description`,{configurable:!0,get:function(){return Vs(this).description}})),ts({global:!0,constructor:!0,wrap:!0,forced:!os,sham:!os},{Symbol:Us}),Is(gs(tc),function(e){Ms(e)}),ts({target:Rs,stat:!0,forced:!os},{useSetter:function(){nc=!0},useSimple:function(){nc=!1}}),ts({target:`Object`,stat:!0,forced:!os,sham:!as},{create:cc,defineProperty:oc,defineProperties:sc,getOwnPropertyDescriptor:uc}),ts({target:`Object`,stat:!0,forced:!os},{getOwnPropertyNames:dc}),Ns(),Ps(Us,Rs),Os[Ls]=!0;var pc=Ve&&!!Symbol.for&&!!Symbol.keyFor,mc=B,hc=P,gc=Tt,_c=Ii,vc=vt,yc=pc,bc=vc(`string-to-symbol-registry`),H=vc(`symbol-to-string-registry`);mc({target:`Symbol`,stat:!0,forced:!yc},{for:function(e){var t=_c(e);if(gc(bc,t))return bc[t];var n=hc(`Symbol`)(t);return bc[t]=n,H[n]=t,n}});var xc=B,Sc=Tt,Cc=Je,wc=Xe,Tc=vt,Ec=pc,Dc=Tc(`symbol-to-string-registry`);xc({target:`Symbol`,stat:!0,forced:!Ec},{keyFor:function(e){if(!Cc(e))throw TypeError(wc(e)+` is not a symbol`);if(Sc(Dc,e))return Dc[e]}});var Oc=v([].slice),kc=v,Ac=hr,jc=E,Mc=S,Nc=Ii,Pc=kc([].push),Fc=function(e){if(jc(e))return e;if(Ac(e)){for(var t=e.length,n=[],r=0;r<t;r++){var i=e[r];typeof i==`string`?Pc(n,i):(typeof i==`number`||Mc(i)===`Number`||Mc(i)===`String`)&&Pc(n,Nc(i))}var a=n.length,o=!0;return function(e,t){if(o)return o=!1,t;if(Ac(this))return t;for(var r=0;r<a;r++)if(n[r]===e)return t}}},Ic=B,Lc=P,Rc=p,zc=k,Bc=v,Vc=s,Hc=E,Uc=Je,Wc=Oc,Gc=Fc,Kc=Ve,qc=String,Jc=Lc(`JSON`,`stringify`),Yc=Bc(/./.exec),Xc=Bc(``.charAt),Zc=Bc(``.charCodeAt),Qc=Bc(``.replace),$c=Bc(1 .toString),el=/[\uD800-\uDFFF]/g,tl=/^[\uD800-\uDBFF]$/,nl=/^[\uDC00-\uDFFF]$/,rl=!Kc||Vc(function(){var e=Lc(`Symbol`)(`stringify detection`);return Jc([e])!==`[null]`||Jc({a:e})!==`{}`||Jc(Object(e))!==`{}`}),il=Vc(function(){return Jc(`\udf06\ud834`)!==`"\\udf06\\ud834"`||Jc(`\udead`)!==`"\\udead"`}),al=function(e,t){var n=Wc(arguments),r=Gc(t);if(!(!Hc(r)&&(e===void 0||Uc(e))))return n[1]=function(e,t){if(Hc(r)&&(t=zc(r,this,qc(e),t)),!Uc(t))return t},Rc(Jc,null,n)},ol=function(e,t,n){var r=Xc(n,t-1),i=Xc(n,t+1);return Yc(tl,e)&&!Yc(nl,i)||Yc(nl,e)&&!Yc(tl,r)?`\\u`+$c(Zc(e,0),16):e};Jc&&Ic({target:`JSON`,stat:!0,arity:3,forced:rl||il},{stringify:function(e,t,n){var r=Wc(arguments),i=Rc(rl?al:Jc,null,r);return il&&typeof i==`string`?Qc(i,el,ol):i}});var sl=B,cl=Ve,ll=s,ul=Za,dl=xt;sl({target:`Object`,stat:!0,forced:!cl||ll(function(){ul.f(1)})},{getOwnPropertySymbols:function(e){var t=ul.f;return t?t(dl(e)):[]}}),so(`asyncIterator`),so(`hasInstance`),so(`isConcatSpreadable`),so(`iterator`),so(`match`),so(`matchAll`),so(`replace`),so(`search`),so(`species`),so(`split`);var fl=so,pl=po;fl(`toPrimitive`),pl();var ml=P,hl=so,gl=Co;hl(`toStringTag`),gl(ml(`Symbol`),`Symbol`),so(`unscopables`),Co(o.JSON,`JSON`,!0);var _l=we.Symbol,vl={},yl=O,bl=Tt,xl=Function.prototype,Sl=yl&&Object.getOwnPropertyDescriptor,Cl=bl(xl,`name`),wl={EXISTS:Cl,PROPER:Cl&&(function(){}).name===`something`,CONFIGURABLE:Cl&&(!yl||yl&&Sl(xl,`name`).configurable)},Tl=!s(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),El=Tt,Dl=E,Ol=xt,kl=ha,Al=Tl,jl=kl(`IE_PROTO`),Ml=Object,Nl=Ml.prototype,Pl=Al?Ml.getPrototypeOf:function(e){var t=Ol(e);if(El(t,jl))return t[jl];var n=t.constructor;return Dl(n)&&t instanceof n?n.prototype:t instanceof Ml?Nl:null},Fl=s,Il=E,Ll=M,Rl=Pa,zl=Pl,Bl=$a,Vl=zt(`iterator`),Hl=!1,Ul,Wl,Gl;[].keys&&(Gl=[].keys(),`next`in Gl?(Wl=zl(zl(Gl)),Wl!==Object.prototype&&(Ul=Wl)):Hl=!0),Ul=!Ll(Ul)||Fl(function(){var e={};return Ul[Vl].call(e)!==e})?{}:Rl(Ul),Il(Ul[Vl])||Bl(Ul,Vl,function(){return this});var Kl={IteratorPrototype:Ul,BUGGY_SAFARI_ITERATORS:Hl},ql=Kl.IteratorPrototype,Jl=Pa,Yl=le,Xl=Co,Zl=vl,Ql=function(){return this},$l=function(e,t,n,r){var i=t+` Iterator`;return e.prototype=Jl(ql,{next:Yl(+!r,n)}),Xl(e,i,!1,!0),Zl[i]=Ql,e},eu=v,tu=et,nu=function(e,t,n){try{return eu(tu(Object.getOwnPropertyDescriptor(e,t)[n]))}catch{}},ru=E,iu=String,au=TypeError,ou=function(e){if(typeof e==`object`||ru(e))return e;throw new au(`Can't set `+iu(e)+` as a prototype`)},su=nu,cu=Fn,lu=ou,uu=Object.setPrototypeOf||(`__proto__`in{}?function(){var e=!1,t={},n;try{n=su(Object.prototype,`__proto__`,`set`),n(t,[]),e=t instanceof Array}catch{}return function(t,r){return cu(t),lu(r),e?n(t,r):t.__proto__=r,t}}():void 0),du=B,fu=k,pu=wl,mu=$l,hu=Pl,gu=Co,_u=$a,vu=zt,yu=vl,bu=Kl,xu=pu.PROPER;pu.CONFIGURABLE,bu.IteratorPrototype;var Su=bu.BUGGY_SAFARI_ITERATORS,Cu=vu(`iterator`),wu=`keys`,Tu=`values`,Eu=`entries`,Du=function(){return this},Ou=function(e,t,n,r,i,a,o){mu(n,t,r);var s=function(e){if(e===i&&f)return f;if(!Su&&e&&e in u)return u[e];switch(e){case wu:return function(){return new n(this,e)};case Tu:return function(){return new n(this,e)};case Eu:return function(){return new n(this,e)}}return function(){return new n(this)}},c=t+` Iterator`,l=!1,u=e.prototype,d=u[Cu]||u[`@@iterator`]||i&&u[i],f=!Su&&d||s(i),p=t===`Array`&&u.entries||d,m,h,g;if(p&&(m=hu(p.call(new e)),m!==Object.prototype&&m.next&&(gu(m,c,!0,!0),yu[c]=Du)),xu&&i===Tu&&d&&d.name!==Tu&&(l=!0,f=function(){return fu(d,this)}),i)if(h={values:s(Tu),keys:a?f:s(wu),entries:s(Eu)},o)for(g in h)(Su||l||!(g in u))&&_u(u,g,h[g]);else du({target:t,proto:!0,forced:Su||l},h);return o&&u[Cu]!==f&&_u(u,Cu,f,{name:i}),yu[t]=f,h},ku=function(e,t){return{value:e,done:t}},Au=xe,ju=vl,Mu=Go;An.f;var Nu=Ou,Pu=ku,Fu=`Array Iterator`,Iu=Mu.set,Lu=Mu.getterFor(Fu);Nu(Array,`Array`,function(e,t){Iu(this,{type:Fu,target:Au(e),index:0,kind:t})},function(){var e=Lu(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,Pu(void 0,!0);switch(e.kind){case`keys`:return Pu(n,!1);case`values`:return Pu(t[n],!1)}return Pu([n,t[n]],!1)},`values`),ju.Arguments=ju.Array;var Ru={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},zu=o,Bu=Vr,Vu=Jn,Hu=vl,Uu=zt(`toStringTag`);for(var Wu in Ru){var Gu=zu[Wu],Ku=Gu&&Gu.prototype;Ku&&Bu(Ku)!==Uu&&Vu(Ku,Uu,Wu),Hu[Wu]=Hu.Array}var qu=_l,Ju=zt,Yu=An.f,Xu=Ju(`metadata`),Zu=Function.prototype;Zu[Xu]===void 0&&Yu(Zu,Xu,{value:null}),so(`asyncDispose`),so(`dispose`),so(`metadata`);var Qu=qu,$u=P,ed=v,td=$u(`Symbol`),nd=td.keyFor,rd=ed(td.prototype.valueOf),id=td.isRegisteredSymbol||function(e){try{return nd(rd(e))!==void 0}catch{return!1}};B({target:`Symbol`,stat:!0},{isRegisteredSymbol:id});for(var ad=vt,od=P,sd=v,cd=Je,ld=zt,ud=od(`Symbol`),dd=ud.isWellKnownSymbol,fd=od(`Object`,`getOwnPropertyNames`),pd=sd(ud.prototype.valueOf),md=ad(`wks`),hd=0,gd=fd(ud),_d=gd.length;hd<_d;hd++)try{var vd=gd[hd];cd(ud[vd])&&ld(vd)}catch{}var yd=function(e){if(dd&&dd(e))return!0;try{for(var t=pd(e),n=0,r=fd(md),i=r.length;n<i;n++)if(md[r[n]]==t)return!0}catch{}return!1};B({target:`Symbol`,stat:!0,forced:!0},{isWellKnownSymbol:yd}),so(`matcher`),so(`observable`),B({target:`Symbol`,stat:!0,name:`isRegisteredSymbol`},{isRegistered:id}),B({target:`Symbol`,stat:!0,name:`isWellKnownSymbol`,forced:!0},{isWellKnown:yd}),so(`metadataKey`),so(`patternMatch`),so(`replaceAll`);var bd=Qu,xd=r(bd),Sd=v,Cd=yr,wd=Ii,Td=ve,Ed=Sd(``.charAt),Dd=Sd(``.charCodeAt),Od=Sd(``.slice),kd=function(e){return function(t,n){var r=wd(Td(t)),i=Cd(n),a=r.length,o,s;return i<0||i>=a?e?``:void 0:(o=Dd(r,i),o<55296||o>56319||i+1===a||(s=Dd(r,i+1))<56320||s>57343?e?Ed(r,i):o:e?Od(r,i,i+2):(o-55296<<10)+(s-56320)+65536)}},Ad={codeAt:kd(!1),charAt:kd(!0)}.charAt,jd=Ii,Md=Go,Nd=Ou,Pd=ku,Fd=`String Iterator`,Id=Md.set,Ld=Md.getterFor(Fd);Nd(String,`String`,function(e){Id(this,{type:Fd,string:jd(e),index:0})},function(){var e=Ld(this),t=e.string,n=e.index,r;return n>=t.length?Pd(void 0,!0):(r=Ad(t,n),e.index+=r.length,Pd(r,!1))});var Rd=no.f(`iterator`),zd=Rd,Bd=r(zd);function Vd(e){"@babel/helpers - typeof";return Vd=typeof xd==`function`&&typeof Bd==`symbol`?function(e){return typeof e}:function(e){return e&&typeof xd==`function`&&e.constructor===xd&&e!==xd.prototype?`symbol`:typeof e},Vd(e)}var Hd=r(no.f(`toPrimitive`));function Ud(e,t){if(Vd(e)!==`object`||e===null)return e;var n=e[Hd];if(n!==void 0){var r=n.call(e,t||`default`);if(Vd(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Wd(e){var t=Ud(e,`string`);return Vd(t)===`symbol`?t:String(t)}function Gd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),pr(e,Wd(r.key),r)}}function Kd(e,t,n){return t&&Gd(e.prototype,t),n&&Gd(e,n),pr(e,`prototype`,{writable:!1}),e}function qd(e,t,n){return t=Wd(t),t in e?pr(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jd=v,Yd=et,Xd=M,Zd=Tt,Qd=Oc,$d=c,ef=Function,tf=Jd([].concat),nf=Jd([].join),rf={},af=function(e,t,n){if(!Zd(rf,t)){for(var r=[],i=0;i<t;i++)r[i]=`a[`+i+`]`;rf[t]=ef(`C,a`,`return new C(`+nf(r,`,`)+`)`)}return rf[t](e,n)},of=$d?ef.bind:function(e){var t=Yd(this),n=t.prototype,r=Qd(arguments,1),i=function(){var n=tf(r,Qd(arguments));return this instanceof i?af(t,n.length,n):t.apply(e,n)};return Xd(n)&&(i.prototype=n),i},sf=B,cf=of;sf({target:`Function`,proto:!0,forced:Function.bind!==cf},{bind:cf});var lf=o,uf=we,df=function(e,t){var n=uf[e+`Prototype`],r=n&&n[t];if(r)return r;var i=lf[e],a=i&&i.prototype;return a&&a[t]},ff=df(`Function`,`bind`),pf=F,mf=ff,hf=Function.prototype,gf=function(e){var t=e.bind;return e===hf||pf(hf,e)&&t===hf.bind?mf:t},_f=r(gf),vf=et,yf=xt,bf=me,xf=Cr,Sf=TypeError,Cf=function(e){return function(t,n,r,i){vf(n);var a=yf(t),o=bf(a),s=xf(a),c=e?s-1:0,l=e?-1:1;if(r<2)for(;;){if(c in o){i=o[c],c+=l;break}if(c+=l,e?c<0:s<=c)throw new Sf(`Reduce of empty array with no initial value`)}for(;e?c>=0:s>c;c+=l)c in o&&(i=n(i,o[c],c,a));return i}},wf={left:Cf(!1),right:Cf(!0)},U=s,Tf=function(e,t){var n=[][e];return!!n&&U(function(){n.call(null,t||function(){return 1},1)})},Ef=S(o.process)===`process`,Df=B,Of=wf.left,kf=Tf,Af=Le;Df({target:`Array`,proto:!0,forced:!Ef&&Af>79&&Af<83||!kf(`reduce`)},{reduce:function(e){var t=arguments.length;return Of(this,e,t,t>1?arguments[1]:void 0)}});var jf=df(`Array`,`reduce`),Mf=F,Nf=jf,Pf=Array.prototype,Ff=r(function(e){var t=e.reduce;return e===Pf||Mf(Pf,e)&&t===Pf.reduce?Nf:t}),If=B,Lf=es.filter;If({target:`Array`,proto:!0,forced:!vi(`filter`)},{filter:function(e){return Lf(this,e,arguments.length>1?arguments[1]:void 0)}});var Rf=df(`Array`,`filter`),zf=F,Bf=Rf,Vf=Array.prototype,Hf=r(function(e){var t=e.filter;return e===Vf||zf(Vf,e)&&t===Vf.filter?Bf:t}),Uf=B,Wf=es.map;Uf({target:`Array`,proto:!0,forced:!vi(`map`)},{map:function(e){return Wf(this,e,arguments.length>1?arguments[1]:void 0)}});var Gf=df(`Array`,`map`),Kf=F,qf=Gf,Jf=Array.prototype,Yf=r(function(e){var t=e.map;return e===Jf||Kf(Jf,e)&&t===Jf.map?qf:t}),Xf=hr,Zf=Cr,Qf=Er,$f=kn,ep=function(e,t,n,r,i,a,o,s){for(var c=i,l=0,u=o?$f(o,s):!1,d,f;l<r;)l in n&&(d=u?u(n[l],l,t):n[l],a>0&&Xf(d)?(f=Zf(d),c=ep(e,t,d,f,c,a-1)-1):(Qf(c+1),e[c]=d),c++),l++;return c},tp=ep,np=B,rp=tp,ip=et,ap=xt,op=Cr,sp=pi;np({target:`Array`,proto:!0},{flatMap:function(e){var t=ap(this),n=op(t),r;return ip(e),r=sp(t,0),r.length=rp(r,t,t,n,0,1,e,arguments.length>1?arguments[1]:void 0),r}});var cp=df(`Array`,`flatMap`),lp=F,up=cp,dp=Array.prototype,fp=r(function(e){var t=e.flatMap;return e===dp||lp(dp,e)&&t===dp.flatMap?up:t});function pp(e){return new hp(e)}var mp=function(){function e(n,r,i){var a,o,s;t(this,e),qd(this,`_listeners`,{add:_f(a=this._add).call(a,this),remove:_f(o=this._remove).call(o,this),update:_f(s=this._update).call(s,this)}),this._source=n,this._transformers=r,this._target=i}return Kd(e,[{key:`all`,value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:`start`,value:function(){return this._source.on(`add`,this._listeners.add),this._source.on(`remove`,this._listeners.remove),this._source.on(`update`,this._listeners.update),this}},{key:`stop`,value:function(){return this._source.off(`add`,this._listeners.add),this._source.off(`remove`,this._listeners.remove),this._source.off(`update`,this._listeners.update),this}},{key:`_transformItems`,value:function(e){var t;return Ff(t=this._transformers).call(t,function(e,t){return t(e)},e)}},{key:`_add`,value:function(e,t){t!=null&&this._target.add(this._transformItems(this._source.get(t.items)))}},{key:`_update`,value:function(e,t){t!=null&&this._target.update(this._transformItems(this._source.get(t.items)))}},{key:`_remove`,value:function(e,t){t!=null&&this._target.remove(this._transformItems(t.oldData))}}]),e}(),hp=function(){function e(n){t(this,e),qd(this,`_transformers`,[]),this._source=n}return Kd(e,[{key:`filter`,value:function(e){return this._transformers.push(function(t){return Hf(t).call(t,e)}),this}},{key:`map`,value:function(e){return this._transformers.push(function(t){return Yf(t).call(t,e)}),this}},{key:`flatMap`,value:function(e){return this._transformers.push(function(t){return fp(t).call(t,e)}),this}},{key:`to`,value:function(e){return new mp(this._source,this._transformers,e)}}]),e}(),gp=k,_p=Fn,vp=rt,yp=function(e,t,n){var r,i;_p(e);try{if(r=vp(e,`return`),!r){if(t===`throw`)throw n;return n}r=gp(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return _p(r),n},bp=Fn,xp=yp,Sp=function(e,t,n,r){try{return r?t(bp(n)[0],n[1]):t(n)}catch(t){xp(e,`throw`,t)}},Cp=zt,wp=vl,Tp=Cp(`iterator`),Ep=Array.prototype,Dp=function(e){return e!==void 0&&(wp.Array===e||Ep[Tp]===e)},Op=Vr,kp=rt,Ap=he,jp=vl,Mp=zt(`iterator`),Np=function(e){if(!Ap(e))return kp(e,Mp)||kp(e,`@@iterator`)||jp[Op(e)]},Pp=k,Fp=et,Ip=Fn,Lp=Xe,Rp=Np,zp=TypeError,Bp=function(e,t){var n=arguments.length<2?Rp(e):t;if(Fp(n))return Ip(Pp(n,e));throw new zp(Lp(e)+` is not iterable`)},Vp=kn,Hp=k,Up=xt,Wp=Sp,Gp=Dp,Kp=oi,qp=Cr,Jp=Ar,Yp=Bp,Xp=Np,Zp=Array,Qp=function(e){var t=Up(e),n=Kp(this),r=arguments.length,i=r>1?arguments[1]:void 0,a=i!==void 0;a&&(i=Vp(i,r>2?arguments[2]:void 0));var o=Xp(t),s=0,c,l,u,d,f,p;if(o&&!(this===Zp&&Gp(o)))for(d=Yp(t,o),f=d.next,l=n?new this:[];!(u=Hp(f,d)).done;s++)p=a?Wp(d,i,[u.value,s],!0):u.value,Jp(l,s,p);else for(c=qp(t),l=n?new this(c):Zp(c);c>s;s++)p=a?i(t[s],s):t[s],Jp(l,s,p);return l.length=s,l},$p=zt(`iterator`),em=!1;try{var tm=0,nm={next:function(){return{done:!!tm++}},return:function(){em=!0}};nm[$p]=function(){return this},Array.from(nm,function(){throw 2})}catch{}var rm=function(e,t){try{if(!t&&!em)return!1}catch{return!1}var n=!1;try{var r={};r[$p]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},im=B,am=Qp;im({target:`Array`,stat:!0,forced:!rm(function(e){Array.from(e)})},{from:am});var om=we.Array.from,sm=r(om),cm=Np,lm=r(cm),um=r(cm);B({target:`Array`,stat:!0},{isArray:hr});var dm=we.Array.isArray,fm=r(dm);function pm(e){if(fm(e))return e}var mm=O,hm=hr,gm=TypeError,_m=Object.getOwnPropertyDescriptor,vm=mm&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],`length`,{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(hm(e)&&!_m(e,`length`).writable)throw new gm(`Cannot set read only .length`);return e.length=t}:function(e,t){return e.length=t},ym=B,bm=xt,xm=Cr,Sm=vm,Cm=Er;ym({target:`Array`,proto:!0,arity:1,forced:s(function(){return[].push.call({length:4294967296},1)!==4294967297})||!function(){try{Object.defineProperty([],`length`,{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=bm(this),n=xm(t),r=arguments.length;Cm(n+r);for(var i=0;i<r;i++)t[n]=arguments[i],n++;return Sm(t,n),n}});var wm=df(`Array`,`push`),Tm=F,Em=wm,Dm=Array.prototype,Om=function(e){var t=e.push;return e===Dm||Tm(Dm,e)&&t===Dm.push?Em:t},km=r(Om);function Am(e,t){var n=e==null?null:xd!==void 0&&lm(e)||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(km(s).call(s,r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}var jm=B,Mm=hr,Nm=oi,Pm=M,Fm=Vi,Im=Cr,Lm=xe,Rm=Ar,zm=zt,Bm=vi,Vm=Oc,Hm=Bm(`slice`),Um=zm(`species`),Wm=Array,Gm=Math.max;jm({target:`Array`,proto:!0,forced:!Hm},{slice:function(e,t){var n=Lm(this),r=Im(n),i=Fm(e,r),a=Fm(t===void 0?r:t,r),o,s,c;if(Mm(n)&&(o=n.constructor,Nm(o)&&(o===Wm||Mm(o.prototype))?o=void 0:Pm(o)&&(o=o[Um],o===null&&(o=void 0)),o===Wm||o===void 0))return Vm(n,i,a);for(s=new(o===void 0?Wm:o)(Gm(a-i,0)),c=0;i<a;i++,c++)i in n&&Rm(s,c,n[i]);return s.length=c,s}});var Km=df(`Array`,`slice`),qm=F,Jm=Km,Ym=Array.prototype,Xm=function(e){var t=e.slice;return e===Ym||qm(Ym,e)&&t===Ym.slice?Jm:t},Zm=Xm,Qm=r(Zm),$m=r(om);function eh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function th(e,t){var n;if(e){if(typeof e==`string`)return eh(e,t);var r=Qm(n=Object.prototype.toString.call(e)).call(n,8,-1);if(r===`Object`&&e.constructor&&(r=e.constructor.name),r===`Map`||r===`Set`)return $m(e);if(r===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eh(e,t)}}function nh(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1
|
+
import{o as e,t}from"./chunk-TPjIAO9U.js";import{D as n,S as r,T as i,_ as a,a as o,c as s,d as c,h as l,o as u,r as d,w as f}from"./useSubAccountSwitcher-CBlKgwms.js";import{f as p,n as m,t as h,y as g}from"./AdminShell-BjxV2qkb.js";import{t as _}from"./Checkbox-DSeZNGNA.js";import{n as v,t as y}from"./useCopyFeedback-7yKeiAzV.js";import{t as b}from"./chevron-left-BJllrPBj.js";import{n as x,t as S}from"./maximize-2-CHDa8p5h.js";import{f as ee,p as C}from"./useSelectionMode-CWlh6AEq.js";import{t as te}from"./rotate-ccw-BJjVAQQY.js";import{i as ne,n as re,r as w}from"./graph-labels-GlTEIYJj.js";var T=a(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),E=a(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),D=a(`grip-vertical`,[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]),O=a(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),ie=a(`minimize-2`,[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]),ae=a(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),k=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.vis=n.vis||{}))})(e,(function(e){function t(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var n=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var i={exports:{}},a=function(e){return e&&e.Math===Math&&e},o=a(typeof globalThis==`object`&&globalThis)||a(typeof window==`object`&&window)||a(typeof self==`object`&&self)||a(typeof n==`object`&&n)||(function(){return this})()||n||Function(`return this`)(),s=function(e){try{return!!e()}catch{return!0}},c=!s(function(){var e=(function(){}).bind();return typeof e!=`function`||e.hasOwnProperty(`prototype`)}),l=c,u=Function.prototype,d=u.apply,f=u.call,p=typeof Reflect==`object`&&Reflect.apply||(l?f.bind(d):function(){return f.apply(d,arguments)}),m=c,h=Function.prototype,g=h.call,_=m&&h.bind.bind(g,g),v=m?_:function(e){return function(){return g.apply(e,arguments)}},y=v,b=y({}.toString),x=y(``.slice),S=function(e){return x(b(e),8,-1)},ee=S,C=v,te=function(e){if(ee(e)===`Function`)return C(e)},ne=typeof document==`object`&&document.all,re={all:ne,IS_HTMLDDA:ne===void 0&&ne!==void 0},w=re,T=w.all,E=w.IS_HTMLDDA?function(e){return typeof e==`function`||e===T}:function(e){return typeof e==`function`},D={},O=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),ie=c,ae=Function.prototype.call,k=ie?ae.bind(ae):function(){return ae.apply(ae,arguments)},oe={},se={}.propertyIsEnumerable,ce=Object.getOwnPropertyDescriptor;oe.f=ce&&!se.call({1:2},1)?function(e){var t=ce(this,e);return!!t&&t.enumerable}:se;var le=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},A=v,ue=s,de=S,fe=Object,pe=A(``.split),me=ue(function(){return!fe(`z`).propertyIsEnumerable(0)})?function(e){return de(e)===`String`?pe(e,``):fe(e)}:fe,he=function(e){return e==null},ge=he,_e=TypeError,ve=function(e){if(ge(e))throw new _e(`Can't call method on `+e);return e},ye=me,be=ve,xe=function(e){return ye(be(e))},Se=E,Ce=re,j=Ce.all,M=Ce.IS_HTMLDDA?function(e){return typeof e==`object`?e!==null:Se(e)||e===j}:function(e){return typeof e==`object`?e!==null:Se(e)},we={},Te=we,Ee=o,De=E,N=function(e){return De(e)?e:void 0},P=function(e,t){return arguments.length<2?N(Te[e])||N(Ee[e]):Te[e]&&Te[e][t]||Ee[e]&&Ee[e][t]},F=v({}.isPrototypeOf),Oe=typeof navigator<`u`&&String(navigator.userAgent)||``,ke=o,Ae=Oe,je=ke.process,Me=ke.Deno,Ne=je&&je.versions||Me&&Me.version,Pe=Ne&&Ne.v8,Fe,Ie;Pe&&(Fe=Pe.split(`.`),Ie=Fe[0]>0&&Fe[0]<4?1:+(Fe[0]+Fe[1])),!Ie&&Ae&&(Fe=Ae.match(/Edge\/(\d+)/),(!Fe||Fe[1]>=74)&&(Fe=Ae.match(/Chrome\/(\d+)/),Fe&&(Ie=+Fe[1])));var Le=Ie,Re=Le,ze=s,Be=o.String,Ve=!!Object.getOwnPropertySymbols&&!ze(function(){var e=Symbol(`symbol detection`);return!Be(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Re&&Re<41}),He=Ve&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Ue=P,We=E,Ge=F,Ke=He,qe=Object,Je=Ke?function(e){return typeof e==`symbol`}:function(e){var t=Ue(`Symbol`);return We(t)&&Ge(t.prototype,qe(e))},Ye=String,Xe=function(e){try{return Ye(e)}catch{return`Object`}},Ze=E,Qe=Xe,$e=TypeError,et=function(e){if(Ze(e))return e;throw new $e(Qe(e)+` is not a function`)},tt=et,nt=he,rt=function(e,t){var n=e[t];return nt(n)?void 0:tt(n)},it=k,at=E,ot=M,st=TypeError,I=function(e,t){var n,r;if(t===`string`&&at(n=e.toString)&&!ot(r=it(n,e))||at(n=e.valueOf)&&!ot(r=it(n,e))||t!==`string`&&at(n=e.toString)&&!ot(r=it(n,e)))return r;throw new st(`Can't convert object to primitive value`)},ct={exports:{}},lt=!0,ut=o,dt=Object.defineProperty,ft=function(e,t){try{dt(ut,e,{value:t,configurable:!0,writable:!0})}catch{ut[e]=t}return t},pt=o,mt=ft,ht=`__core-js_shared__`,gt=pt[ht]||mt(ht,{}),_t=gt;(ct.exports=function(e,t){return _t[e]||(_t[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.33.2`,mode:`pure`,copyright:`© 2014-2023 Denis Pushkarev (zloirock.ru)`,license:`https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE`,source:`https://github.com/zloirock/core-js`});var vt=ct.exports,yt=ve,bt=Object,xt=function(e){return bt(yt(e))},St=v,Ct=xt,wt=St({}.hasOwnProperty),Tt=Object.hasOwn||function(e,t){return wt(Ct(e),t)},Et=v,Dt=0,Ot=Math.random(),kt=Et(1 .toString),L=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+kt(++Dt+Ot,36)},At=o,jt=vt,Mt=Tt,Nt=L,Pt=Ve,Ft=He,It=At.Symbol,Lt=jt(`wks`),Rt=Ft?It.for||It:It&&It.withoutSetter||Nt,zt=function(e){return Mt(Lt,e)||(Lt[e]=Pt&&Mt(It,e)?It[e]:Rt(`Symbol.`+e)),Lt[e]},Bt=k,Vt=M,Ht=Je,Ut=rt,Wt=I,Gt=zt,Kt=TypeError,qt=Gt(`toPrimitive`),Jt=function(e,t){if(!Vt(e)||Ht(e))return e;var n=Ut(e,qt),r;if(n){if(t===void 0&&(t=`default`),r=Bt(n,e,t),!Vt(r)||Ht(r))return r;throw new Kt(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),Wt(e,t)},Yt=Je,Xt=function(e){var t=Jt(e,`string`);return Yt(t)?t:t+``},Zt=o,Qt=M,$t=Zt.document,en=Qt($t)&&Qt($t.createElement),tn=function(e){return en?$t.createElement(e):{}},nn=O,rn=s,an=tn,on=!nn&&!rn(function(){return Object.defineProperty(an(`div`),`a`,{get:function(){return 7}}).a!==7}),sn=O,cn=k,ln=oe,un=le,dn=xe,fn=Xt,pn=Tt,mn=on,hn=Object.getOwnPropertyDescriptor;D.f=sn?hn:function(e,t){if(e=dn(e),t=fn(t),mn)try{return hn(e,t)}catch{}if(pn(e,t))return un(!cn(ln.f,e,t),e[t])};var gn=s,_n=E,vn=/#|\.prototype\./,yn=function(e,t){var n=xn[bn(e)];return n===Cn?!0:n===Sn?!1:_n(t)?gn(t):!!t},bn=yn.normalize=function(e){return String(e).replace(vn,`.`).toLowerCase()},xn=yn.data={},Sn=yn.NATIVE=`N`,Cn=yn.POLYFILL=`P`,wn=yn,Tn=te,En=et,Dn=c,On=Tn(Tn.bind),kn=function(e,t){return En(e),t===void 0?e:Dn?On(e,t):function(){return e.apply(t,arguments)}},An={},jn=O&&s(function(){return Object.defineProperty(function(){},`prototype`,{value:42,writable:!1}).prototype!==42}),Mn=M,Nn=String,Pn=TypeError,Fn=function(e){if(Mn(e))return e;throw new Pn(Nn(e)+` is not an object`)},In=O,Ln=on,Rn=jn,zn=Fn,Bn=Xt,Vn=TypeError,Hn=Object.defineProperty,Un=Object.getOwnPropertyDescriptor,Wn=`enumerable`,R=`configurable`,z=`writable`;An.f=In?Rn?function(e,t,n){if(zn(e),t=Bn(t),zn(n),typeof e==`function`&&t===`prototype`&&`value`in n&&z in n&&!n[z]){var r=Un(e,t);r&&r[z]&&(e[t]=n.value,n={configurable:R in n?n[R]:r[R],enumerable:Wn in n?n[Wn]:r[Wn],writable:!1})}return Hn(e,t,n)}:Hn:function(e,t,n){if(zn(e),t=Bn(t),zn(n),Ln)try{return Hn(e,t,n)}catch{}if(`get`in n||`set`in n)throw new Vn(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e};var Gn=O,Kn=An,qn=le,Jn=Gn?function(e,t,n){return Kn.f(e,t,qn(1,n))}:function(e,t,n){return e[t]=n,e},Yn=o,Xn=p,Zn=te,Qn=E,$n=D.f,er=wn,tr=we,nr=kn,rr=Jn,ir=Tt,ar=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return Xn(e,this,arguments)};return t.prototype=e.prototype,t},B=function(e,t){var n=e.target,r=e.global,i=e.stat,a=e.proto,o=r?Yn:i?Yn[n]:(Yn[n]||{}).prototype,s=r?tr:tr[n]||rr(tr,n,{})[n],c=s.prototype,l,u,d,f,p,m,h,g,_;for(f in t)l=er(r?f:n+(i?`.`:`#`)+f,e.forced),u=!l&&o&&ir(o,f),m=s[f],u&&(e.dontCallGetSet?(_=$n(o,f),h=_&&_.value):h=o[f]),p=u&&h?h:t[f],!(u&&typeof m==typeof p)&&(g=e.bind&&u?nr(p,Yn):e.wrap&&u?ar(p):a&&Qn(p)?Zn(p):p,(e.sham||p&&p.sham||m&&m.sham)&&rr(g,`sham`,!0),rr(s,f,g),a&&(d=n+`Prototype`,ir(tr,d)||rr(tr,d,{}),rr(tr[d],f,p),e.real&&c&&(l||!c[f])&&rr(c,f,p)))},or=B,sr=O,cr=An.f;or({target:`Object`,stat:!0,forced:Object.defineProperty!==cr,sham:!sr},{defineProperty:cr});var lr=we.Object,ur=i.exports=function(e,t,n){return lr.defineProperty(e,t,n)};lr.defineProperty.sham&&(ur.sham=!0);var dr=i.exports,fr=dr,pr=r(fr),mr=S,hr=Array.isArray||function(e){return mr(e)===`Array`},gr=Math.ceil,_r=Math.floor,vr=Math.trunc||function(e){var t=+e;return(t>0?_r:gr)(t)},yr=function(e){var t=+e;return t!==t||t===0?0:vr(t)},br=yr,xr=Math.min,Sr=function(e){return e>0?xr(br(e),9007199254740991):0},Cr=function(e){return Sr(e.length)},wr=TypeError,Tr=9007199254740991,Er=function(e){if(e>Tr)throw wr(`Maximum allowed index exceeded`);return e},Dr=Xt,Or=An,kr=le,Ar=function(e,t,n){var r=Dr(t);r in e?Or.f(e,r,kr(0,n)):e[r]=n},jr=zt(`toStringTag`),Mr={};Mr[jr]=`z`;var Nr=String(Mr)===`[object z]`,Pr=Nr,Fr=E,Ir=S,Lr=zt(`toStringTag`),Rr=Object,zr=Ir(function(){return arguments}())===`Arguments`,Br=function(e,t){try{return e[t]}catch{}},Vr=Pr?Ir:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=Br(t=Rr(e),Lr))==`string`?n:zr?Ir(t):(r=Ir(t))===`Object`&&Fr(t.callee)?`Arguments`:r},Hr=v,Ur=E,Wr=gt,Gr=Hr(Function.toString);Ur(Wr.inspectSource)||(Wr.inspectSource=function(e){return Gr(e)});var Kr=Wr.inspectSource,qr=v,Jr=s,Yr=E,Xr=Vr,Zr=P,V=Kr,Qr=function(){},$r=[],ei=Zr(`Reflect`,`construct`),ti=/^\s*(?:class|function)\b/,ni=qr(ti.exec),ri=!ti.test(Qr),ii=function(e){if(!Yr(e))return!1;try{return ei(Qr,$r,e),!0}catch{return!1}},ai=function(e){if(!Yr(e))return!1;switch(Xr(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}try{return ri||!!ni(ti,V(e))}catch{return!0}};ai.sham=!0;var oi=!ei||Jr(function(){var e;return ii(ii.call)||!ii(Object)||!ii(function(){e=!0})||e})?ai:ii,si=hr,ci=oi,li=M,ui=zt(`species`),di=Array,fi=function(e){var t;return si(e)&&(t=e.constructor,ci(t)&&(t===di||si(t.prototype))?t=void 0:li(t)&&(t=t[ui],t===null&&(t=void 0))),t===void 0?di:t},pi=function(e,t){return new(fi(e))(t===0?0:t)},mi=s,hi=zt,gi=Le,_i=hi(`species`),vi=function(e){return gi>=51||!mi(function(){var t=[],n=t.constructor={};return n[_i]=function(){return{foo:1}},t[e](Boolean).foo!==1})},yi=B,bi=s,xi=hr,Si=M,Ci=xt,wi=Cr,Ti=Er,Ei=Ar,Di=pi,Oi=vi,ki=zt,Ai=Le,ji=ki(`isConcatSpreadable`),Mi=Ai>=51||!bi(function(){var e=[];return e[ji]=!1,e.concat()[0]!==e}),Ni=function(e){if(!Si(e))return!1;var t=e[ji];return t===void 0?xi(e):!!t};yi({target:`Array`,proto:!0,arity:1,forced:!Mi||!Oi(`concat`)},{concat:function(e){var t=Ci(this),n=Di(t,0),r=0,i,a,o,s,c;for(i=-1,o=arguments.length;i<o;i++)if(c=i===-1?t:arguments[i],Ni(c))for(s=wi(c),Ti(r+s),a=0;a<s;a++,r++)a in c&&Ei(n,r,c[a]);else Ti(r+1),Ei(n,r++,c);return n.length=r,n}});var Pi=Vr,Fi=String,Ii=function(e){if(Pi(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Fi(e)},Li={},Ri=yr,zi=Math.max,Bi=Math.min,Vi=function(e,t){var n=Ri(e);return n<0?zi(n+t,0):Bi(n,t)},Hi=xe,Ui=Vi,Wi=Cr,Gi=function(e){return function(t,n,r){var i=Hi(t),a=Wi(i),o=Ui(r,a),s;if(e&&n!==n){for(;a>o;)if(s=i[o++],s!==s)return!0}else for(;a>o;o++)if((e||o in i)&&i[o]===n)return e||o||0;return!e&&-1}},Ki={includes:Gi(!0),indexOf:Gi(!1)},qi={},Ji=v,Yi=Tt,Xi=xe,Zi=Ki.indexOf,Qi=qi,$i=Ji([].push),ea=function(e,t){var n=Xi(e),r=0,i=[],a;for(a in n)!Yi(Qi,a)&&Yi(n,a)&&$i(i,a);for(;t.length>r;)Yi(n,a=t[r++])&&(~Zi(i,a)||$i(i,a));return i},ta=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],na=ea,ra=ta,ia=Object.keys||function(e){return na(e,ra)},aa=O,oa=jn,sa=An,ca=Fn,la=xe,ua=ia;Li.f=aa&&!oa?Object.defineProperties:function(e,t){ca(e);for(var n=la(t),r=ua(t),i=r.length,a=0,o;i>a;)sa.f(e,o=r[a++],n[o]);return e};var da=P(`document`,`documentElement`),fa=vt,pa=L,ma=fa(`keys`),ha=function(e){return ma[e]||(ma[e]=pa(e))},ga=Fn,_a=Li,va=ta,ya=qi,ba=da,xa=tn,Sa=ha,Ca=`>`,wa=`<`,Ta=`prototype`,Ea=`script`,Da=Sa(`IE_PROTO`),Oa=function(){},ka=function(e){return wa+Ea+Ca+e+wa+`/`+Ea+Ca},Aa=function(e){e.write(ka(``)),e.close();var t=e.parentWindow.Object;return e=null,t},ja=function(){var e=xa(`iframe`),t=`java`+Ea+`:`,n;return e.style.display=`none`,ba.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(ka(`document.F=Object`)),n.close(),n.F},Ma,Na=function(){try{Ma=new ActiveXObject(`htmlfile`)}catch{}Na=typeof document<`u`?document.domain&&Ma?Aa(Ma):ja():Aa(Ma);for(var e=va.length;e--;)delete Na[Ta][va[e]];return Na()};ya[Da]=!0;var Pa=Object.create||function(e,t){var n;return e===null?n=Na():(Oa[Ta]=ga(e),n=new Oa,Oa[Ta]=null,n[Da]=e),t===void 0?n:_a.f(n,t)},Fa={},Ia=ea,La=ta.concat(`length`,`prototype`);Fa.f=Object.getOwnPropertyNames||function(e){return Ia(e,La)};var Ra={},za=Vi,Ba=Cr,Va=Ar,Ha=Array,Ua=Math.max,Wa=function(e,t,n){for(var r=Ba(e),i=za(t,r),a=za(n===void 0?r:n,r),o=Ha(Ua(a-i,0)),s=0;i<a;i++,s++)Va(o,s,e[i]);return o.length=s,o},Ga=S,Ka=xe,qa=Fa.f,Ja=Wa,Ya=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Xa=function(e){try{return qa(e)}catch{return Ja(Ya)}};Ra.f=function(e){return Ya&&Ga(e)===`Window`?Xa(e):qa(Ka(e))};var Za={};Za.f=Object.getOwnPropertySymbols;var Qa=Jn,$a=function(e,t,n,r){return r&&r.enumerable?e[t]=n:Qa(e,t,n),e},eo=An,to=function(e,t,n){return eo.f(e,t,n)},no={};no.f=zt;var ro=we,io=Tt,ao=no,oo=An.f,so=function(e){var t=ro.Symbol||={};io(t,e)||oo(t,e,{value:ao.f(e)})},co=k,lo=P,uo=zt,fo=$a,po=function(){var e=lo(`Symbol`),t=e&&e.prototype,n=t&&t.valueOf,r=uo(`toPrimitive`);t&&!t[r]&&fo(t,r,function(e){return co(n,this)},{arity:1})},mo=Nr,ho=Vr,go=mo?{}.toString:function(){return`[object `+ho(this)+`]`},_o=Nr,vo=An.f,yo=Jn,bo=Tt,xo=go,So=zt(`toStringTag`),Co=function(e,t,n,r){if(e){var i=n?e:e.prototype;bo(i,So)||vo(i,So,{configurable:!0,value:t}),r&&!_o&&yo(i,`toString`,xo)}},wo=o,To=E,Eo=wo.WeakMap,Do=To(Eo)&&/native code/.test(String(Eo)),Oo=o,ko=M,Ao=Jn,jo=Tt,Mo=gt,No=ha,Po=qi,Fo=`Object already initialized`,Io=Oo.TypeError,Lo=Oo.WeakMap,Ro,zo,Bo,Vo=function(e){return Bo(e)?zo(e):Ro(e,{})},Ho=function(e){return function(t){var n;if(!ko(t)||(n=zo(t)).type!==e)throw new Io(`Incompatible receiver, `+e+` required`);return n}};if(Do||Mo.state){var Uo=Mo.state||=new Lo;Uo.get=Uo.get,Uo.has=Uo.has,Uo.set=Uo.set,Ro=function(e,t){if(Uo.has(e))throw new Io(Fo);return t.facade=e,Uo.set(e,t),t},zo=function(e){return Uo.get(e)||{}},Bo=function(e){return Uo.has(e)}}else{var Wo=No(`state`);Po[Wo]=!0,Ro=function(e,t){if(jo(e,Wo))throw new Io(Fo);return t.facade=e,Ao(e,Wo,t),t},zo=function(e){return jo(e,Wo)?e[Wo]:{}},Bo=function(e){return jo(e,Wo)}}var Go={set:Ro,get:zo,has:Bo,enforce:Vo,getterFor:Ho},Ko=kn,qo=v,Jo=me,Yo=xt,Xo=Cr,Zo=pi,Qo=qo([].push),$o=function(e){var t=e===1,n=e===2,r=e===3,i=e===4,a=e===6,o=e===7,s=e===5||a;return function(c,l,u,d){for(var f=Yo(c),p=Jo(f),m=Ko(l,u),h=Xo(p),g=0,_=d||Zo,v=t?_(c,h):n||o?_(c,0):void 0,y,b;h>g;g++)if((s||g in p)&&(y=p[g],b=m(y,g,f),e))if(t)v[g]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return g;case 2:Qo(v,y)}else switch(e){case 4:return!1;case 7:Qo(v,y)}return a?-1:r||i?i:v}},es={forEach:$o(0),map:$o(1),filter:$o(2),some:$o(3),every:$o(4),find:$o(5),findIndex:$o(6),filterReject:$o(7)},ts=B,ns=o,rs=k,is=v,as=O,os=Ve,ss=s,cs=Tt,ls=F,us=Fn,ds=xe,fs=Xt,ps=Ii,ms=le,hs=Pa,gs=ia,_s=Fa,vs=Ra,ys=Za,bs=D,xs=An,Ss=Li,Cs=oe,ws=$a,Ts=to,Es=vt,Ds=ha,Os=qi,ks=L,As=zt,js=no,Ms=so,Ns=po,Ps=Co,Fs=Go,Is=es.forEach,Ls=Ds(`hidden`),Rs=`Symbol`,zs=`prototype`,Bs=Fs.set,Vs=Fs.getterFor(Rs),Hs=Object[zs],Us=ns.Symbol,Ws=Us&&Us[zs],Gs=ns.RangeError,Ks=ns.TypeError,qs=ns.QObject,Js=bs.f,Ys=xs.f,Xs=vs.f,Zs=Cs.f,Qs=is([].push),$s=Es(`symbols`),ec=Es(`op-symbols`),tc=Es(`wks`),nc=!qs||!qs[zs]||!qs[zs].findChild,rc=function(e,t,n){var r=Js(Hs,t);r&&delete Hs[t],Ys(e,t,n),r&&e!==Hs&&Ys(Hs,t,r)},ic=as&&ss(function(){return hs(Ys({},`a`,{get:function(){return Ys(this,`a`,{value:7}).a}})).a!==7})?rc:Ys,ac=function(e,t){var n=$s[e]=hs(Ws);return Bs(n,{type:Rs,tag:e,description:t}),as||(n.description=t),n},oc=function(e,t,n){e===Hs&&oc(ec,t,n),us(e);var r=fs(t);return us(n),cs($s,r)?(n.enumerable?(cs(e,Ls)&&e[Ls][r]&&(e[Ls][r]=!1),n=hs(n,{enumerable:ms(0,!1)})):(cs(e,Ls)||Ys(e,Ls,ms(1,{})),e[Ls][r]=!0),ic(e,r,n)):Ys(e,r,n)},sc=function(e,t){us(e);var n=ds(t);return Is(gs(n).concat(fc(n)),function(t){(!as||rs(lc,n,t))&&oc(e,t,n[t])}),e},cc=function(e,t){return t===void 0?hs(e):sc(hs(e),t)},lc=function(e){var t=fs(e),n=rs(Zs,this,t);return this===Hs&&cs($s,t)&&!cs(ec,t)?!1:n||!cs(this,t)||!cs($s,t)||cs(this,Ls)&&this[Ls][t]?n:!0},uc=function(e,t){var n=ds(e),r=fs(t);if(!(n===Hs&&cs($s,r)&&!cs(ec,r))){var i=Js(n,r);return i&&cs($s,r)&&!(cs(n,Ls)&&n[Ls][r])&&(i.enumerable=!0),i}},dc=function(e){var t=Xs(ds(e)),n=[];return Is(t,function(e){!cs($s,e)&&!cs(Os,e)&&Qs(n,e)}),n},fc=function(e){var t=e===Hs,n=Xs(t?ec:ds(e)),r=[];return Is(n,function(e){cs($s,e)&&(!t||cs(Hs,e))&&Qs(r,$s[e])}),r};os||(Us=function(){if(ls(Ws,this))throw new Ks(`Symbol is not a constructor`);var e=!arguments.length||arguments[0]===void 0?void 0:ps(arguments[0]),t=ks(e),n=function(e){var r=this===void 0?ns:this;r===Hs&&rs(n,ec,e),cs(r,Ls)&&cs(r[Ls],t)&&(r[Ls][t]=!1);var i=ms(1,e);try{ic(r,t,i)}catch(e){if(!(e instanceof Gs))throw e;rc(r,t,i)}};return as&&nc&&ic(Hs,t,{configurable:!0,set:n}),ac(t,e)},Ws=Us[zs],ws(Ws,`toString`,function(){return Vs(this).tag}),ws(Us,`withoutSetter`,function(e){return ac(ks(e),e)}),Cs.f=lc,xs.f=oc,Ss.f=sc,bs.f=uc,_s.f=vs.f=dc,ys.f=fc,js.f=function(e){return ac(As(e),e)},as&&Ts(Ws,`description`,{configurable:!0,get:function(){return Vs(this).description}})),ts({global:!0,constructor:!0,wrap:!0,forced:!os,sham:!os},{Symbol:Us}),Is(gs(tc),function(e){Ms(e)}),ts({target:Rs,stat:!0,forced:!os},{useSetter:function(){nc=!0},useSimple:function(){nc=!1}}),ts({target:`Object`,stat:!0,forced:!os,sham:!as},{create:cc,defineProperty:oc,defineProperties:sc,getOwnPropertyDescriptor:uc}),ts({target:`Object`,stat:!0,forced:!os},{getOwnPropertyNames:dc}),Ns(),Ps(Us,Rs),Os[Ls]=!0;var pc=Ve&&!!Symbol.for&&!!Symbol.keyFor,mc=B,hc=P,gc=Tt,_c=Ii,vc=vt,yc=pc,bc=vc(`string-to-symbol-registry`),H=vc(`symbol-to-string-registry`);mc({target:`Symbol`,stat:!0,forced:!yc},{for:function(e){var t=_c(e);if(gc(bc,t))return bc[t];var n=hc(`Symbol`)(t);return bc[t]=n,H[n]=t,n}});var xc=B,Sc=Tt,Cc=Je,wc=Xe,Tc=vt,Ec=pc,Dc=Tc(`symbol-to-string-registry`);xc({target:`Symbol`,stat:!0,forced:!Ec},{keyFor:function(e){if(!Cc(e))throw TypeError(wc(e)+` is not a symbol`);if(Sc(Dc,e))return Dc[e]}});var Oc=v([].slice),kc=v,Ac=hr,jc=E,Mc=S,Nc=Ii,Pc=kc([].push),Fc=function(e){if(jc(e))return e;if(Ac(e)){for(var t=e.length,n=[],r=0;r<t;r++){var i=e[r];typeof i==`string`?Pc(n,i):(typeof i==`number`||Mc(i)===`Number`||Mc(i)===`String`)&&Pc(n,Nc(i))}var a=n.length,o=!0;return function(e,t){if(o)return o=!1,t;if(Ac(this))return t;for(var r=0;r<a;r++)if(n[r]===e)return t}}},Ic=B,Lc=P,Rc=p,zc=k,Bc=v,Vc=s,Hc=E,Uc=Je,Wc=Oc,Gc=Fc,Kc=Ve,qc=String,Jc=Lc(`JSON`,`stringify`),Yc=Bc(/./.exec),Xc=Bc(``.charAt),Zc=Bc(``.charCodeAt),Qc=Bc(``.replace),$c=Bc(1 .toString),el=/[\uD800-\uDFFF]/g,tl=/^[\uD800-\uDBFF]$/,nl=/^[\uDC00-\uDFFF]$/,rl=!Kc||Vc(function(){var e=Lc(`Symbol`)(`stringify detection`);return Jc([e])!==`[null]`||Jc({a:e})!==`{}`||Jc(Object(e))!==`{}`}),il=Vc(function(){return Jc(`\udf06\ud834`)!==`"\\udf06\\ud834"`||Jc(`\udead`)!==`"\\udead"`}),al=function(e,t){var n=Wc(arguments),r=Gc(t);if(!(!Hc(r)&&(e===void 0||Uc(e))))return n[1]=function(e,t){if(Hc(r)&&(t=zc(r,this,qc(e),t)),!Uc(t))return t},Rc(Jc,null,n)},ol=function(e,t,n){var r=Xc(n,t-1),i=Xc(n,t+1);return Yc(tl,e)&&!Yc(nl,i)||Yc(nl,e)&&!Yc(tl,r)?`\\u`+$c(Zc(e,0),16):e};Jc&&Ic({target:`JSON`,stat:!0,arity:3,forced:rl||il},{stringify:function(e,t,n){var r=Wc(arguments),i=Rc(rl?al:Jc,null,r);return il&&typeof i==`string`?Qc(i,el,ol):i}});var sl=B,cl=Ve,ll=s,ul=Za,dl=xt;sl({target:`Object`,stat:!0,forced:!cl||ll(function(){ul.f(1)})},{getOwnPropertySymbols:function(e){var t=ul.f;return t?t(dl(e)):[]}}),so(`asyncIterator`),so(`hasInstance`),so(`isConcatSpreadable`),so(`iterator`),so(`match`),so(`matchAll`),so(`replace`),so(`search`),so(`species`),so(`split`);var fl=so,pl=po;fl(`toPrimitive`),pl();var ml=P,hl=so,gl=Co;hl(`toStringTag`),gl(ml(`Symbol`),`Symbol`),so(`unscopables`),Co(o.JSON,`JSON`,!0);var _l=we.Symbol,vl={},yl=O,bl=Tt,xl=Function.prototype,Sl=yl&&Object.getOwnPropertyDescriptor,Cl=bl(xl,`name`),wl={EXISTS:Cl,PROPER:Cl&&(function(){}).name===`something`,CONFIGURABLE:Cl&&(!yl||yl&&Sl(xl,`name`).configurable)},Tl=!s(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),El=Tt,Dl=E,Ol=xt,kl=ha,Al=Tl,jl=kl(`IE_PROTO`),Ml=Object,Nl=Ml.prototype,Pl=Al?Ml.getPrototypeOf:function(e){var t=Ol(e);if(El(t,jl))return t[jl];var n=t.constructor;return Dl(n)&&t instanceof n?n.prototype:t instanceof Ml?Nl:null},Fl=s,Il=E,Ll=M,Rl=Pa,zl=Pl,Bl=$a,Vl=zt(`iterator`),Hl=!1,Ul,Wl,Gl;[].keys&&(Gl=[].keys(),`next`in Gl?(Wl=zl(zl(Gl)),Wl!==Object.prototype&&(Ul=Wl)):Hl=!0),Ul=!Ll(Ul)||Fl(function(){var e={};return Ul[Vl].call(e)!==e})?{}:Rl(Ul),Il(Ul[Vl])||Bl(Ul,Vl,function(){return this});var Kl={IteratorPrototype:Ul,BUGGY_SAFARI_ITERATORS:Hl},ql=Kl.IteratorPrototype,Jl=Pa,Yl=le,Xl=Co,Zl=vl,Ql=function(){return this},$l=function(e,t,n,r){var i=t+` Iterator`;return e.prototype=Jl(ql,{next:Yl(+!r,n)}),Xl(e,i,!1,!0),Zl[i]=Ql,e},eu=v,tu=et,nu=function(e,t,n){try{return eu(tu(Object.getOwnPropertyDescriptor(e,t)[n]))}catch{}},ru=E,iu=String,au=TypeError,ou=function(e){if(typeof e==`object`||ru(e))return e;throw new au(`Can't set `+iu(e)+` as a prototype`)},su=nu,cu=Fn,lu=ou,uu=Object.setPrototypeOf||(`__proto__`in{}?function(){var e=!1,t={},n;try{n=su(Object.prototype,`__proto__`,`set`),n(t,[]),e=t instanceof Array}catch{}return function(t,r){return cu(t),lu(r),e?n(t,r):t.__proto__=r,t}}():void 0),du=B,fu=k,pu=wl,mu=$l,hu=Pl,gu=Co,_u=$a,vu=zt,yu=vl,bu=Kl,xu=pu.PROPER;pu.CONFIGURABLE,bu.IteratorPrototype;var Su=bu.BUGGY_SAFARI_ITERATORS,Cu=vu(`iterator`),wu=`keys`,Tu=`values`,Eu=`entries`,Du=function(){return this},Ou=function(e,t,n,r,i,a,o){mu(n,t,r);var s=function(e){if(e===i&&f)return f;if(!Su&&e&&e in u)return u[e];switch(e){case wu:return function(){return new n(this,e)};case Tu:return function(){return new n(this,e)};case Eu:return function(){return new n(this,e)}}return function(){return new n(this)}},c=t+` Iterator`,l=!1,u=e.prototype,d=u[Cu]||u[`@@iterator`]||i&&u[i],f=!Su&&d||s(i),p=t===`Array`&&u.entries||d,m,h,g;if(p&&(m=hu(p.call(new e)),m!==Object.prototype&&m.next&&(gu(m,c,!0,!0),yu[c]=Du)),xu&&i===Tu&&d&&d.name!==Tu&&(l=!0,f=function(){return fu(d,this)}),i)if(h={values:s(Tu),keys:a?f:s(wu),entries:s(Eu)},o)for(g in h)(Su||l||!(g in u))&&_u(u,g,h[g]);else du({target:t,proto:!0,forced:Su||l},h);return o&&u[Cu]!==f&&_u(u,Cu,f,{name:i}),yu[t]=f,h},ku=function(e,t){return{value:e,done:t}},Au=xe,ju=vl,Mu=Go;An.f;var Nu=Ou,Pu=ku,Fu=`Array Iterator`,Iu=Mu.set,Lu=Mu.getterFor(Fu);Nu(Array,`Array`,function(e,t){Iu(this,{type:Fu,target:Au(e),index:0,kind:t})},function(){var e=Lu(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,Pu(void 0,!0);switch(e.kind){case`keys`:return Pu(n,!1);case`values`:return Pu(t[n],!1)}return Pu([n,t[n]],!1)},`values`),ju.Arguments=ju.Array;var Ru={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},zu=o,Bu=Vr,Vu=Jn,Hu=vl,Uu=zt(`toStringTag`);for(var Wu in Ru){var Gu=zu[Wu],Ku=Gu&&Gu.prototype;Ku&&Bu(Ku)!==Uu&&Vu(Ku,Uu,Wu),Hu[Wu]=Hu.Array}var qu=_l,Ju=zt,Yu=An.f,Xu=Ju(`metadata`),Zu=Function.prototype;Zu[Xu]===void 0&&Yu(Zu,Xu,{value:null}),so(`asyncDispose`),so(`dispose`),so(`metadata`);var Qu=qu,$u=P,ed=v,td=$u(`Symbol`),nd=td.keyFor,rd=ed(td.prototype.valueOf),id=td.isRegisteredSymbol||function(e){try{return nd(rd(e))!==void 0}catch{return!1}};B({target:`Symbol`,stat:!0},{isRegisteredSymbol:id});for(var ad=vt,od=P,sd=v,cd=Je,ld=zt,ud=od(`Symbol`),dd=ud.isWellKnownSymbol,fd=od(`Object`,`getOwnPropertyNames`),pd=sd(ud.prototype.valueOf),md=ad(`wks`),hd=0,gd=fd(ud),_d=gd.length;hd<_d;hd++)try{var vd=gd[hd];cd(ud[vd])&&ld(vd)}catch{}var yd=function(e){if(dd&&dd(e))return!0;try{for(var t=pd(e),n=0,r=fd(md),i=r.length;n<i;n++)if(md[r[n]]==t)return!0}catch{}return!1};B({target:`Symbol`,stat:!0,forced:!0},{isWellKnownSymbol:yd}),so(`matcher`),so(`observable`),B({target:`Symbol`,stat:!0,name:`isRegisteredSymbol`},{isRegistered:id}),B({target:`Symbol`,stat:!0,name:`isWellKnownSymbol`,forced:!0},{isWellKnown:yd}),so(`metadataKey`),so(`patternMatch`),so(`replaceAll`);var bd=Qu,xd=r(bd),Sd=v,Cd=yr,wd=Ii,Td=ve,Ed=Sd(``.charAt),Dd=Sd(``.charCodeAt),Od=Sd(``.slice),kd=function(e){return function(t,n){var r=wd(Td(t)),i=Cd(n),a=r.length,o,s;return i<0||i>=a?e?``:void 0:(o=Dd(r,i),o<55296||o>56319||i+1===a||(s=Dd(r,i+1))<56320||s>57343?e?Ed(r,i):o:e?Od(r,i,i+2):(o-55296<<10)+(s-56320)+65536)}},Ad={codeAt:kd(!1),charAt:kd(!0)}.charAt,jd=Ii,Md=Go,Nd=Ou,Pd=ku,Fd=`String Iterator`,Id=Md.set,Ld=Md.getterFor(Fd);Nd(String,`String`,function(e){Id(this,{type:Fd,string:jd(e),index:0})},function(){var e=Ld(this),t=e.string,n=e.index,r;return n>=t.length?Pd(void 0,!0):(r=Ad(t,n),e.index+=r.length,Pd(r,!1))});var Rd=no.f(`iterator`),zd=Rd,Bd=r(zd);function Vd(e){"@babel/helpers - typeof";return Vd=typeof xd==`function`&&typeof Bd==`symbol`?function(e){return typeof e}:function(e){return e&&typeof xd==`function`&&e.constructor===xd&&e!==xd.prototype?`symbol`:typeof e},Vd(e)}var Hd=r(no.f(`toPrimitive`));function Ud(e,t){if(Vd(e)!==`object`||e===null)return e;var n=e[Hd];if(n!==void 0){var r=n.call(e,t||`default`);if(Vd(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Wd(e){var t=Ud(e,`string`);return Vd(t)===`symbol`?t:String(t)}function Gd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),pr(e,Wd(r.key),r)}}function Kd(e,t,n){return t&&Gd(e.prototype,t),n&&Gd(e,n),pr(e,`prototype`,{writable:!1}),e}function qd(e,t,n){return t=Wd(t),t in e?pr(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jd=v,Yd=et,Xd=M,Zd=Tt,Qd=Oc,$d=c,ef=Function,tf=Jd([].concat),nf=Jd([].join),rf={},af=function(e,t,n){if(!Zd(rf,t)){for(var r=[],i=0;i<t;i++)r[i]=`a[`+i+`]`;rf[t]=ef(`C,a`,`return new C(`+nf(r,`,`)+`)`)}return rf[t](e,n)},of=$d?ef.bind:function(e){var t=Yd(this),n=t.prototype,r=Qd(arguments,1),i=function(){var n=tf(r,Qd(arguments));return this instanceof i?af(t,n.length,n):t.apply(e,n)};return Xd(n)&&(i.prototype=n),i},sf=B,cf=of;sf({target:`Function`,proto:!0,forced:Function.bind!==cf},{bind:cf});var lf=o,uf=we,df=function(e,t){var n=uf[e+`Prototype`],r=n&&n[t];if(r)return r;var i=lf[e],a=i&&i.prototype;return a&&a[t]},ff=df(`Function`,`bind`),pf=F,mf=ff,hf=Function.prototype,gf=function(e){var t=e.bind;return e===hf||pf(hf,e)&&t===hf.bind?mf:t},_f=r(gf),vf=et,yf=xt,bf=me,xf=Cr,Sf=TypeError,Cf=function(e){return function(t,n,r,i){vf(n);var a=yf(t),o=bf(a),s=xf(a),c=e?s-1:0,l=e?-1:1;if(r<2)for(;;){if(c in o){i=o[c],c+=l;break}if(c+=l,e?c<0:s<=c)throw new Sf(`Reduce of empty array with no initial value`)}for(;e?c>=0:s>c;c+=l)c in o&&(i=n(i,o[c],c,a));return i}},wf={left:Cf(!1),right:Cf(!0)},U=s,Tf=function(e,t){var n=[][e];return!!n&&U(function(){n.call(null,t||function(){return 1},1)})},Ef=S(o.process)===`process`,Df=B,Of=wf.left,kf=Tf,Af=Le;Df({target:`Array`,proto:!0,forced:!Ef&&Af>79&&Af<83||!kf(`reduce`)},{reduce:function(e){var t=arguments.length;return Of(this,e,t,t>1?arguments[1]:void 0)}});var jf=df(`Array`,`reduce`),Mf=F,Nf=jf,Pf=Array.prototype,Ff=r(function(e){var t=e.reduce;return e===Pf||Mf(Pf,e)&&t===Pf.reduce?Nf:t}),If=B,Lf=es.filter;If({target:`Array`,proto:!0,forced:!vi(`filter`)},{filter:function(e){return Lf(this,e,arguments.length>1?arguments[1]:void 0)}});var Rf=df(`Array`,`filter`),zf=F,Bf=Rf,Vf=Array.prototype,Hf=r(function(e){var t=e.filter;return e===Vf||zf(Vf,e)&&t===Vf.filter?Bf:t}),Uf=B,Wf=es.map;Uf({target:`Array`,proto:!0,forced:!vi(`map`)},{map:function(e){return Wf(this,e,arguments.length>1?arguments[1]:void 0)}});var Gf=df(`Array`,`map`),Kf=F,qf=Gf,Jf=Array.prototype,Yf=r(function(e){var t=e.map;return e===Jf||Kf(Jf,e)&&t===Jf.map?qf:t}),Xf=hr,Zf=Cr,Qf=Er,$f=kn,ep=function(e,t,n,r,i,a,o,s){for(var c=i,l=0,u=o?$f(o,s):!1,d,f;l<r;)l in n&&(d=u?u(n[l],l,t):n[l],a>0&&Xf(d)?(f=Zf(d),c=ep(e,t,d,f,c,a-1)-1):(Qf(c+1),e[c]=d),c++),l++;return c},tp=ep,np=B,rp=tp,ip=et,ap=xt,op=Cr,sp=pi;np({target:`Array`,proto:!0},{flatMap:function(e){var t=ap(this),n=op(t),r;return ip(e),r=sp(t,0),r.length=rp(r,t,t,n,0,1,e,arguments.length>1?arguments[1]:void 0),r}});var cp=df(`Array`,`flatMap`),lp=F,up=cp,dp=Array.prototype,fp=r(function(e){var t=e.flatMap;return e===dp||lp(dp,e)&&t===dp.flatMap?up:t});function pp(e){return new hp(e)}var mp=function(){function e(n,r,i){var a,o,s;t(this,e),qd(this,`_listeners`,{add:_f(a=this._add).call(a,this),remove:_f(o=this._remove).call(o,this),update:_f(s=this._update).call(s,this)}),this._source=n,this._transformers=r,this._target=i}return Kd(e,[{key:`all`,value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:`start`,value:function(){return this._source.on(`add`,this._listeners.add),this._source.on(`remove`,this._listeners.remove),this._source.on(`update`,this._listeners.update),this}},{key:`stop`,value:function(){return this._source.off(`add`,this._listeners.add),this._source.off(`remove`,this._listeners.remove),this._source.off(`update`,this._listeners.update),this}},{key:`_transformItems`,value:function(e){var t;return Ff(t=this._transformers).call(t,function(e,t){return t(e)},e)}},{key:`_add`,value:function(e,t){t!=null&&this._target.add(this._transformItems(this._source.get(t.items)))}},{key:`_update`,value:function(e,t){t!=null&&this._target.update(this._transformItems(this._source.get(t.items)))}},{key:`_remove`,value:function(e,t){t!=null&&this._target.remove(this._transformItems(t.oldData))}}]),e}(),hp=function(){function e(n){t(this,e),qd(this,`_transformers`,[]),this._source=n}return Kd(e,[{key:`filter`,value:function(e){return this._transformers.push(function(t){return Hf(t).call(t,e)}),this}},{key:`map`,value:function(e){return this._transformers.push(function(t){return Yf(t).call(t,e)}),this}},{key:`flatMap`,value:function(e){return this._transformers.push(function(t){return fp(t).call(t,e)}),this}},{key:`to`,value:function(e){return new mp(this._source,this._transformers,e)}}]),e}(),gp=k,_p=Fn,vp=rt,yp=function(e,t,n){var r,i;_p(e);try{if(r=vp(e,`return`),!r){if(t===`throw`)throw n;return n}r=gp(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return _p(r),n},bp=Fn,xp=yp,Sp=function(e,t,n,r){try{return r?t(bp(n)[0],n[1]):t(n)}catch(t){xp(e,`throw`,t)}},Cp=zt,wp=vl,Tp=Cp(`iterator`),Ep=Array.prototype,Dp=function(e){return e!==void 0&&(wp.Array===e||Ep[Tp]===e)},Op=Vr,kp=rt,Ap=he,jp=vl,Mp=zt(`iterator`),Np=function(e){if(!Ap(e))return kp(e,Mp)||kp(e,`@@iterator`)||jp[Op(e)]},Pp=k,Fp=et,Ip=Fn,Lp=Xe,Rp=Np,zp=TypeError,Bp=function(e,t){var n=arguments.length<2?Rp(e):t;if(Fp(n))return Ip(Pp(n,e));throw new zp(Lp(e)+` is not iterable`)},Vp=kn,Hp=k,Up=xt,Wp=Sp,Gp=Dp,Kp=oi,qp=Cr,Jp=Ar,Yp=Bp,Xp=Np,Zp=Array,Qp=function(e){var t=Up(e),n=Kp(this),r=arguments.length,i=r>1?arguments[1]:void 0,a=i!==void 0;a&&(i=Vp(i,r>2?arguments[2]:void 0));var o=Xp(t),s=0,c,l,u,d,f,p;if(o&&!(this===Zp&&Gp(o)))for(d=Yp(t,o),f=d.next,l=n?new this:[];!(u=Hp(f,d)).done;s++)p=a?Wp(d,i,[u.value,s],!0):u.value,Jp(l,s,p);else for(c=qp(t),l=n?new this(c):Zp(c);c>s;s++)p=a?i(t[s],s):t[s],Jp(l,s,p);return l.length=s,l},$p=zt(`iterator`),em=!1;try{var tm=0,nm={next:function(){return{done:!!tm++}},return:function(){em=!0}};nm[$p]=function(){return this},Array.from(nm,function(){throw 2})}catch{}var rm=function(e,t){try{if(!t&&!em)return!1}catch{return!1}var n=!1;try{var r={};r[$p]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},im=B,am=Qp;im({target:`Array`,stat:!0,forced:!rm(function(e){Array.from(e)})},{from:am});var om=we.Array.from,sm=r(om),cm=Np,lm=r(cm),um=r(cm);B({target:`Array`,stat:!0},{isArray:hr});var dm=we.Array.isArray,fm=r(dm);function pm(e){if(fm(e))return e}var mm=O,hm=hr,gm=TypeError,_m=Object.getOwnPropertyDescriptor,vm=mm&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],`length`,{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(hm(e)&&!_m(e,`length`).writable)throw new gm(`Cannot set read only .length`);return e.length=t}:function(e,t){return e.length=t},ym=B,bm=xt,xm=Cr,Sm=vm,Cm=Er;ym({target:`Array`,proto:!0,arity:1,forced:s(function(){return[].push.call({length:4294967296},1)!==4294967297})||!function(){try{Object.defineProperty([],`length`,{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=bm(this),n=xm(t),r=arguments.length;Cm(n+r);for(var i=0;i<r;i++)t[n]=arguments[i],n++;return Sm(t,n),n}});var wm=df(`Array`,`push`),Tm=F,Em=wm,Dm=Array.prototype,Om=function(e){var t=e.push;return e===Dm||Tm(Dm,e)&&t===Dm.push?Em:t},km=r(Om);function Am(e,t){var n=e==null?null:xd!==void 0&&lm(e)||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(km(s).call(s,r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}var jm=B,Mm=hr,Nm=oi,Pm=M,Fm=Vi,Im=Cr,Lm=xe,Rm=Ar,zm=zt,Bm=vi,Vm=Oc,Hm=Bm(`slice`),Um=zm(`species`),Wm=Array,Gm=Math.max;jm({target:`Array`,proto:!0,forced:!Hm},{slice:function(e,t){var n=Lm(this),r=Im(n),i=Fm(e,r),a=Fm(t===void 0?r:t,r),o,s,c;if(Mm(n)&&(o=n.constructor,Nm(o)&&(o===Wm||Mm(o.prototype))?o=void 0:Pm(o)&&(o=o[Um],o===null&&(o=void 0)),o===Wm||o===void 0))return Vm(n,i,a);for(s=new(o===void 0?Wm:o)(Gm(a-i,0)),c=0;i<a;i++,c++)i in n&&Rm(s,c,n[i]);return s.length=c,s}});var Km=df(`Array`,`slice`),qm=F,Jm=Km,Ym=Array.prototype,Xm=function(e){var t=e.slice;return e===Ym||qm(Ym,e)&&t===Ym.slice?Jm:t},Zm=Xm,Qm=r(Zm),$m=r(om);function eh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function th(e,t){var n;if(e){if(typeof e==`string`)return eh(e,t);var r=Qm(n=Object.prototype.toString.call(e)).call(n,8,-1);if(r===`Object`&&e.constructor&&(r=e.constructor.name),r===`Map`||r===`Set`)return $m(e);if(r===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eh(e,t)}}function nh(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rh(e,t){return pm(e)||Am(e,t)||th(e,t)||nh()}function ih(e){if(fm(e))return eh(e)}function ah(e){if(xd!==void 0&&lm(e)!=null||e[`@@iterator`]!=null)return $m(e)}function oh(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sh(e){return ih(e)||ah(e)||th(e)||oh()}var ch=r(qu),lh=df(`Array`,`concat`),uh=F,dh=lh,fh=Array.prototype,ph=r(function(e){var t=e.concat;return e===fh||uh(fh,e)&&t===fh.concat?dh:t}),mh=r(Xm),hh=P,gh=v,_h=Fa,vh=Za,yh=Fn,bh=gh([].concat),xh=hh(`Reflect`,`ownKeys`)||function(e){var t=_h.f(yh(e)),n=vh.f;return n?bh(t,n(e)):t};B({target:`Reflect`,stat:!0},{ownKeys:xh});var Sh=we.Reflect.ownKeys,Ch=r(Sh),wh=r(dm),Th=B,Eh=xt,Dh=ia;Th({target:`Object`,stat:!0,forced:s(function(){Dh(1)})},{keys:function(e){return Dh(Eh(e))}});var Oh=we.Object.keys,kh=r(Oh),Ah=es.forEach,jh=Tf(`forEach`)?[].forEach:function(e){return Ah(this,e,arguments.length>1?arguments[1]:void 0)},Mh=B,Nh=jh;Mh({target:`Array`,proto:!0,forced:[].forEach!==Nh},{forEach:Nh});var Ph=df(`Array`,`forEach`),Fh=Vr,Ih=Tt,Lh=F,Rh=Ph,zh=Array.prototype,Bh={DOMTokenList:!0,NodeList:!0},Vh=function(e){var t=e.forEach;return e===zh||Lh(zh,e)&&t===zh.forEach||Ih(Bh,Fh(e))?Rh:t},Hh=r(Vh),Uh=B,Wh=v,Gh=hr,Kh=Wh([].reverse),qh=[1,2];Uh({target:`Array`,proto:!0,forced:String(qh)===String(qh.reverse())},{reverse:function(){return Gh(this)&&(this.length=this.length),Kh(this)}});var Jh=df(`Array`,`reverse`),Yh=F,Xh=Jh,Zh=Array.prototype,Qh=function(e){var t=e.reverse;return e===Zh||Yh(Zh,e)&&t===Zh.reverse?Xh:t},$h=r(Qh),eg=Xe,tg=TypeError,ng=function(e,t){if(!delete e[t])throw new tg(`Cannot delete property `+eg(t)+` of `+eg(e))},rg=B,ig=xt,ag=Vi,og=yr,sg=Cr,cg=vm,lg=Er,ug=pi,dg=Ar,fg=ng,pg=vi(`splice`),mg=Math.max,hg=Math.min;rg({target:`Array`,proto:!0,forced:!pg},{splice:function(e,t){var n=ig(this),r=sg(n),i=ag(e,r),a=arguments.length,o,s,c,l,u,d;for(a===0?o=s=0:a===1?(o=0,s=r-i):(o=a-2,s=hg(mg(og(t),0),r-i)),lg(r+o-s),c=ug(n,s),l=0;l<s;l++)u=i+l,u in n&&dg(c,l,n[u]);if(c.length=s,o<s){for(l=i;l<r-s;l++)u=l+s,d=l+o,u in n?n[d]=n[u]:fg(n,d);for(l=r;l>r-s+o;l--)fg(n,l-1)}else if(o>s)for(l=r-s;l>i;l--)u=l+s-1,d=l+o-1,u in n?n[d]=n[u]:fg(n,d);for(l=0;l<o;l++)n[l+i]=arguments[l+2];return cg(n,r-s+o),c}});var gg=df(`Array`,`splice`),_g=F,vg=gg,yg=Array.prototype,bg=r(function(e){var t=e.splice;return e===yg||_g(yg,e)&&t===yg.splice?vg:t}),xg=O,Sg=v,Cg=k,wg=s,Tg=ia,Eg=Za,Dg=oe,Og=xt,kg=me,Ag=Object.assign,jg=Object.defineProperty,Mg=Sg([].concat),Ng=!Ag||wg(function(){if(xg&&Ag({b:1},Ag(jg({},`a`,{enumerable:!0,get:function(){jg(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(`assign detection`),r=`abcdefghijklmnopqrst`;return e[n]=7,r.split(``).forEach(function(e){t[e]=e}),Ag({},e)[n]!==7||Tg(Ag({},t)).join(``)!==r})?function(e,t){for(var n=Og(e),r=arguments.length,i=1,a=Eg.f,o=Dg.f;r>i;)for(var s=kg(arguments[i++]),c=a?Mg(Tg(s),a(s)):Tg(s),l=c.length,u=0,d;l>u;)d=c[u++],(!xg||Cg(o,s,d))&&(n[d]=s[d]);return n}:Ag,Pg=B,Fg=Ng;Pg({target:`Object`,stat:!0,arity:2,forced:Object.assign!==Fg},{assign:Fg});var Ig=we.Object.assign,Lg=r(Ig),Rg=B,zg=s,Bg=xt,Vg=Pl,Hg=Tl;Rg({target:`Object`,stat:!0,forced:zg(function(){Vg(1)}),sham:!Hg},{getPrototypeOf:function(e){return Vg(Bg(e))}});var Ug=we.Object.getPrototypeOf;B({target:`Object`,stat:!0,sham:!O},{create:Pa});var Wg=we.Object,Gg=function(e,t){return Wg.create(e,t)},Kg=r(Gg),qg=we,Jg=p;qg.JSON||={stringify:JSON.stringify};var Yg=r(function(e,t,n){return Jg(qg.JSON.stringify,null,arguments)}),Xg=typeof Bun==`function`&&Bun&&typeof Bun.version==`string`,Zg=TypeError,Qg=function(e,t){if(e<t)throw new Zg(`Not enough arguments`);return e},$g=o,e_=p,t_=E,n_=Xg,r_=Oe,i_=Oc,a_=Qg,o_=$g.Function,s_=/MSIE .\./.test(r_)||n_&&(function(){var e=$g.Bun.version.split(`.`);return e.length<3||e[0]===`0`&&(e[1]<3||e[1]===`3`&&e[2]===`0`)})(),c_=function(e,t){var n=t?2:1;return s_?function(r,i){var a=a_(arguments.length,1)>n,o=t_(r)?r:o_(r),s=a?i_(arguments,n):[],c=a?function(){e_(o,this,s)}:o;return t?e(c,i):e(c)}:e},l_=B,u_=o,d_=c_(u_.setInterval,!0);l_({global:!0,bind:!0,forced:u_.setInterval!==d_},{setInterval:d_});var f_=B,p_=o,m_=c_(p_.setTimeout,!0);f_({global:!0,bind:!0,forced:p_.setTimeout!==m_},{setTimeout:m_});var h_=we.setTimeout,g_=r(h_),__={exports:{}};(function(e){function t(e){if(e)return n(e);this._callbacks=new Map}function n(e){return Object.assign(e,t.prototype),e._callbacks=new Map,e}t.prototype.on=function(e,t){let n=this._callbacks.get(e)??[];return n.push(t),this._callbacks.set(e,n),this},t.prototype.once=function(e,t){let n=(...r)=>{this.off(e,n),t.apply(this,r)};return n.fn=t,this.on(e,n),this},t.prototype.off=function(e,t){if(e===void 0&&t===void 0)return this._callbacks.clear(),this;if(t===void 0)return this._callbacks.delete(e),this;let n=this._callbacks.get(e);if(n){for(let[e,r]of n.entries())if(r===t||r.fn===t){n.splice(e,1);break}n.length===0?this._callbacks.delete(e):this._callbacks.set(e,n)}return this},t.prototype.emit=function(e,...t){let n=this._callbacks.get(e);if(n){let e=[...n];for(let n of e)n.apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks.get(e)??[]},t.prototype.listenerCount=function(e){if(e)return this.listeners(e).length;let t=0;for(let e of this._callbacks.values())t+=e.length;return t},t.prototype.hasListeners=function(e){return this.listenerCount(e)>0},t.prototype.addEventListener=t.prototype.on,t.prototype.removeListener=t.prototype.off,t.prototype.removeEventListener=t.prototype.off,t.prototype.removeAllListeners=t.prototype.off,e.exports=t})(__);var v_=__.exports,y_=r(v_);function b_(){return b_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b_.apply(this,arguments)}function x_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function S_(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}var C_=typeof Object.assign==`function`?Object.assign:function(e){if(e==null)throw TypeError(`Cannot convert undefined or null to object`);for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!=null)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t},w_=[``,`webkit`,`Moz`,`MS`,`ms`,`o`],T_=typeof document>`u`?{style:{}}:document.createElement(`div`),E_=`function`,D_=Math.round,O_=Math.abs,k_=Date.now;function A_(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),a=0;a<w_.length;){if(n=w_[a],r=n?n+i:t,r in e)return r;a++}}var j_=typeof window>`u`?{}:window,M_=A_(T_.style,`touchAction`),N_=M_!==void 0;function P_(){if(!N_)return!1;var e={},t=j_.CSS&&j_.CSS.supports;return[`auto`,`manipulation`,`pan-y`,`pan-x`,`pan-x pan-y`,`none`].forEach(function(n){return e[n]=t?j_.CSS.supports(`touch-action`,n):!0}),e}var F_=`compute`,I_=`auto`,L_=`manipulation`,R_=`none`,z_=`pan-x`,B_=`pan-y`,V_=P_(),H_=/mobile|tablet|ip(ad|hone|od)|android/i,U_=`ontouchstart`in j_,W_=A_(j_,`PointerEvent`)!==void 0,G_=U_&&H_.test(navigator.userAgent),K_=`touch`,q_=`pen`,J_=`mouse`,Y_=`kinect`,X_=25,Z_=1,Q_=2,$_=4,ev=8,tv=1,nv=2,rv=4,iv=8,av=16,ov=nv|rv,sv=iv|av,cv=ov|sv,lv=[`x`,`y`],uv=[`clientX`,`clientY`];function dv(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==void 0)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function fv(e,t){return typeof e===E_?e.apply(t&&t[0]||void 0,t):e}function pv(e,t){return e.indexOf(t)>-1}function mv(e){if(pv(e,R_))return R_;var t=pv(e,z_),n=pv(e,B_);return t&&n?R_:t||n?t?z_:B_:pv(e,L_)?L_:I_}var hv=function(){function e(e,t){this.manager=e,this.set(t)}var t=e.prototype;return t.set=function(e){e===F_&&(e=this.compute()),N_&&this.manager.element.style&&V_[e]&&(this.manager.element.style[M_]=e),this.actions=e.toLowerCase().trim()},t.update=function(){this.set(this.manager.options.touchAction)},t.compute=function(){var e=[];return dv(this.manager.recognizers,function(t){fv(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),mv(e.join(` `))},t.preventDefaults=function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented){t.preventDefault();return}var r=this.actions,i=pv(r,R_)&&!V_[R_],a=pv(r,B_)&&!V_[B_],o=pv(r,z_)&&!V_[z_];if(i){var s=e.pointers.length===1,c=e.distance<2,l=e.deltaTime<250;if(s&&c&&l)return}if(!(o&&a)&&(i||a&&n&ov||o&&n&sv))return this.preventSrc(t)},t.preventSrc=function(e){this.manager.session.prevented=!0,e.preventDefault()},e}();function gv(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function _v(e){var t=e.length;if(t===1)return{x:D_(e[0].clientX),y:D_(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:D_(n/t),y:D_(r/t)}}function vv(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:D_(e.pointers[n].clientX),clientY:D_(e.pointers[n].clientY)},n++;return{timeStamp:k_(),pointers:t,center:_v(t),deltaX:e.deltaX,deltaY:e.deltaY}}function yv(e,t,n){n||=lv;var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function bv(e,t,n){n||=lv;var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.atan2(i,r)*180/Math.PI}function xv(e,t){return e===t?tv:O_(e)>=O_(t)?e<0?nv:rv:t<0?iv:av}function Sv(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},a=e.prevInput||{};(t.eventType===Z_||a.eventType===$_)&&(i=e.prevDelta={x:a.deltaX||0,y:a.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}function Cv(e,t,n){return{x:t/e||0,y:n/e||0}}function wv(e,t){return yv(t[0],t[1],uv)/yv(e[0],e[1],uv)}function Tv(e,t){return bv(t[1],t[0],uv)+bv(e[1],e[0],uv)}function Ev(e,t){var n=e.lastInterval||t,r=t.timeStamp-n.timeStamp,i,a,o,s;if(t.eventType!==ev&&(r>X_||n.velocity===void 0)){var c=t.deltaX-n.deltaX,l=t.deltaY-n.deltaY,u=Cv(r,c,l);a=u.x,o=u.y,i=O_(u.x)>O_(u.y)?u.x:u.y,s=xv(c,l),e.lastInterval=t}else i=n.velocity,a=n.velocityX,o=n.velocityY,s=n.direction;t.velocity=i,t.velocityX=a,t.velocityY=o,t.direction=s}function Dv(e,t){var n=e.session,r=t.pointers,i=r.length;n.firstInput||=vv(t),i>1&&!n.firstMultiple?n.firstMultiple=vv(t):i===1&&(n.firstMultiple=!1);var a=n.firstInput,o=n.firstMultiple,s=o?o.center:a.center,c=t.center=_v(r);t.timeStamp=k_(),t.deltaTime=t.timeStamp-a.timeStamp,t.angle=bv(s,c),t.distance=yv(s,c),Sv(n,t),t.offsetDirection=xv(t.deltaX,t.deltaY);var l=Cv(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=l.x,t.overallVelocityY=l.y,t.overallVelocity=O_(l.x)>O_(l.y)?l.x:l.y,t.scale=o?wv(o.pointers,r):1,t.rotation=o?Tv(o.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,Ev(n,t);var u=e.element,d=t.srcEvent,f=d.composedPath?d.composedPath()[0]:d.path?d.path[0]:d.target;gv(f,u)&&(u=f),t.target=u}function Ov(e,t,n){var r=n.pointers.length,i=n.changedPointers.length,a=t&Z_&&r-i===0,o=t&($_|ev)&&r-i===0;n.isFirst=!!a,n.isFinal=!!o,a&&(e.session={}),n.eventType=t,Dv(e,n),e.emit(`hammer.input`,n),e.recognize(n),e.session.prevInput=n}function kv(e){return e.trim().split(/\s+/g)}function Av(e,t,n){dv(kv(t),function(t){e.addEventListener(t,n,!1)})}function W(e,t,n){dv(kv(t),function(t){e.removeEventListener(t,n,!1)})}function jv(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||window}var Mv=function(){function e(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){fv(e.options.enable,[e])&&n.handler(t)},this.init()}var t=e.prototype;return t.handler=function(){},t.init=function(){this.evEl&&Av(this.element,this.evEl,this.domHandler),this.evTarget&&Av(this.target,this.evTarget,this.domHandler),this.evWin&&Av(jv(this.element),this.evWin,this.domHandler)},t.destroy=function(){this.evEl&&W(this.element,this.evEl,this.domHandler),this.evTarget&&W(this.target,this.evTarget,this.domHandler),this.evWin&&W(jv(this.element),this.evWin,this.domHandler)},e}();function Nv(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}var Pv={pointerdown:Z_,pointermove:Q_,pointerup:$_,pointercancel:ev,pointerout:ev},Fv={2:K_,3:q_,4:J_,5:Y_},Iv=`pointerdown`,Lv=`pointermove pointerup pointercancel`;j_.MSPointerEvent&&!j_.PointerEvent&&(Iv=`MSPointerDown`,Lv=`MSPointerMove MSPointerUp MSPointerCancel`);var Rv=function(e){x_(t,e);function t(){var n,r=t.prototype;return r.evEl=Iv,r.evWin=Lv,n=e.apply(this,arguments)||this,n.store=n.manager.session.pointerEvents=[],n}var n=t.prototype;return n.handler=function(e){var t=this.store,n=!1,r=Pv[e.type.toLowerCase().replace(`ms`,``)],i=Fv[e.pointerType]||e.pointerType,a=i===K_,o=Nv(t,e.pointerId,`pointerId`);r&Z_&&(e.button===0||a)?o<0&&(t.push(e),o=t.length-1):r&($_|ev)&&(n=!0),!(o<0)&&(t[o]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:i,srcEvent:e}),n&&t.splice(o,1))},t}(Mv);function zv(e){return Array.prototype.slice.call(e,0)}function Bv(e,t,n){for(var r=[],i=[],a=0;a<e.length;){var o=t?e[a][t]:e[a];Nv(i,o)<0&&r.push(e[a]),i[a]=o,a++}return n&&(r=t?r.sort(function(e,n){return e[t]>n[t]}):r.sort()),r}var Vv={touchstart:Z_,touchmove:Q_,touchend:$_,touchcancel:ev},Hv=`touchstart touchmove touchend touchcancel`,Uv=function(e){x_(t,e);function t(){var n;return t.prototype.evTarget=Hv,n=e.apply(this,arguments)||this,n.targetIds={},n}var n=t.prototype;return n.handler=function(e){var t=Vv[e.type],n=Wv.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:K_,srcEvent:e})},t}(Mv);function Wv(e,t){var n=zv(e.touches),r=this.targetIds;if(t&(Z_|Q_)&&n.length===1)return r[n[0].identifier]=!0,[n,n];var i,a,o=zv(e.changedTouches),s=[],c=this.target;if(a=n.filter(function(e){return gv(e.target,c)}),t===Z_)for(i=0;i<a.length;)r[a[i].identifier]=!0,i++;for(i=0;i<o.length;)r[o[i].identifier]&&s.push(o[i]),t&($_|ev)&&delete r[o[i].identifier],i++;if(s.length)return[Bv(a.concat(s),`identifier`,!0),s]}var Gv={mousedown:Z_,mousemove:Q_,mouseup:$_},Kv=`mousedown`,qv=`mousemove mouseup`,Jv=function(e){x_(t,e);function t(){var n,r=t.prototype;return r.evEl=Kv,r.evWin=qv,n=e.apply(this,arguments)||this,n.pressed=!1,n}var n=t.prototype;return n.handler=function(e){var t=Gv[e.type];t&Z_&&e.button===0&&(this.pressed=!0),t&Q_&&e.which!==1&&(t=$_),this.pressed&&(t&$_&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:J_,srcEvent:e}))},t}(Mv),Yv=2500,Xv=25;function Zv(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY},r=this.lastTouches;this.lastTouches.push(n),setTimeout(function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)},Yv)}}function Qv(e,t){e&Z_?(this.primaryTouch=t.changedPointers[0].identifier,Zv.call(this,t)):e&($_|ev)&&Zv.call(this,t)}function $v(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],a=Math.abs(t-i.x),o=Math.abs(n-i.y);if(a<=Xv&&o<=Xv)return!0}return!1}var ey=function(){return function(e){x_(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.handler=function(e,t,n){var i=n.pointerType===K_,a=n.pointerType===J_;if(!(a&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)Qv.call(S_(S_(r)),t,n);else if(a&&$v.call(S_(S_(r)),n))return;r.callback(e,t,n)}},r.touch=new Uv(r.manager,r.handler),r.mouse=new Jv(r.manager,r.handler),r.primaryTouch=null,r.lastTouches=[],r}var n=t.prototype;return n.destroy=function(){this.touch.destroy(),this.mouse.destroy()},t}(Mv)}();function ty(e){var t;return t=e.options.inputClass||(W_?Rv:G_?Uv:U_?ey:Jv),new t(e,Ov)}function ny(e,t,n){return Array.isArray(e)?(dv(e,n[t],n),!0):!1}var ry=1,iy=2,ay=4,oy=8,sy=oy,cy=16,ly=32,uy=1;function dy(){return uy++}function G(e,t){var n=t.manager;return n?n.get(e):e}function K(e){return e&cy?`cancel`:e&oy?`end`:e&ay?`move`:e&iy?`start`:``}var fy=function(){function e(e){e===void 0&&(e={}),this.options=b_({enable:!0},e),this.id=dy(),this.manager=null,this.state=ry,this.simultaneous={},this.requireFail=[]}var t=e.prototype;return t.set=function(e){return C_(this.options,e),this.manager&&this.manager.touchAction.update(),this},t.recognizeWith=function(e){if(ny(e,`recognizeWith`,this))return this;var t=this.simultaneous;return e=G(e,this),t[e.id]||(t[e.id]=e,e.recognizeWith(this)),this},t.dropRecognizeWith=function(e){return ny(e,`dropRecognizeWith`,this)?this:(e=G(e,this),delete this.simultaneous[e.id],this)},t.requireFailure=function(e){if(ny(e,`requireFailure`,this))return this;var t=this.requireFail;return e=G(e,this),Nv(t,e)===-1&&(t.push(e),e.requireFailure(this)),this},t.dropRequireFailure=function(e){if(ny(e,`dropRequireFailure`,this))return this;e=G(e,this);var t=Nv(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},t.hasRequireFailures=function(){return this.requireFail.length>0},t.canRecognizeWith=function(e){return!!this.simultaneous[e.id]},t.emit=function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<oy&&r(t.options.event+K(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=oy&&r(t.options.event+K(n))},t.tryEmit=function(e){if(this.canEmit())return this.emit(e);this.state=ly},t.canEmit=function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(ly|ry)))return!1;e++}return!0},t.recognize=function(e){var t=C_({},e);if(!fv(this.options.enable,[this,t])){this.reset(),this.state=ly;return}this.state&(sy|cy|ly)&&(this.state=ry),this.state=this.process(t),this.state&(iy|ay|oy|cy)&&this.tryEmit(t)},t.process=function(e){},t.getTouchAction=function(){},t.reset=function(){},e}(),py=function(e){x_(t,e);function t(t){var n;return t===void 0&&(t={}),n=e.call(this,b_({event:`tap`,pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},t))||this,n.pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}var n=t.prototype;return n.getTouchAction=function(){return[L_]},n.process=function(e){var t=this,n=this.options,r=e.pointers.length===n.pointers,i=e.distance<n.threshold,a=e.deltaTime<n.time;if(this.reset(),e.eventType&Z_&&this.count===0)return this.failTimeout();if(i&&a&&r){if(e.eventType!==$_)return this.failTimeout();var o=this.pTime?e.timeStamp-this.pTime<n.interval:!0,s=!this.pCenter||yv(this.pCenter,e.center)<n.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,!s||!o?this.count=1:this.count+=1,this._input=e,this.count%n.taps===0)return this.hasRequireFailures()?(this._timer=setTimeout(function(){t.state=sy,t.tryEmit()},n.interval),iy):sy}return ly},n.failTimeout=function(){var e=this;return this._timer=setTimeout(function(){e.state=ly},this.options.interval),ly},n.reset=function(){clearTimeout(this._timer)},n.emit=function(){this.state===sy&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},t}(fy),my=function(e){x_(t,e);function t(t){return t===void 0&&(t={}),e.call(this,b_({pointers:1},t))||this}var n=t.prototype;return n.attrTest=function(e){var t=this.options.pointers;return t===0||e.pointers.length===t},n.process=function(e){var t=this.state,n=e.eventType,r=t&(iy|ay),i=this.attrTest(e);return r&&(n&ev||!i)?t|cy:r||i?n&$_?t|oy:t&iy?t|ay:iy:ly},t}(fy);function hy(e){return e===av?`down`:e===iv?`up`:e===nv?`left`:e===rv?`right`:``}var gy=function(e){x_(t,e);function t(t){var n;return t===void 0&&(t={}),n=e.call(this,b_({event:`pan`,threshold:10,pointers:1,direction:cv},t))||this,n.pX=null,n.pY=null,n}var n=t.prototype;return n.getTouchAction=function(){var e=this.options.direction,t=[];return e&ov&&t.push(B_),e&sv&&t.push(z_),t},n.directionTest=function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,a=e.deltaX,o=e.deltaY;return i&t.direction||(t.direction&ov?(i=a===0?tv:a<0?nv:rv,n=a!==this.pX,r=Math.abs(e.deltaX)):(i=o===0?tv:o<0?iv:av,n=o!==this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},n.attrTest=function(e){return my.prototype.attrTest.call(this,e)&&(this.state&iy||!(this.state&iy)&&this.directionTest(e))},n.emit=function(t){this.pX=t.deltaX,this.pY=t.deltaY;var n=hy(t.direction);n&&(t.additionalEvent=this.options.event+n),e.prototype.emit.call(this,t)},t}(my),_y=function(e){x_(t,e);function t(t){return t===void 0&&(t={}),e.call(this,b_({event:`swipe`,threshold:10,velocity:.3,direction:ov|sv,pointers:1},t))||this}var n=t.prototype;return n.getTouchAction=function(){return gy.prototype.getTouchAction.call(this)},n.attrTest=function(t){var n=this.options.direction,r;return n&(ov|sv)?r=t.overallVelocity:n&ov?r=t.overallVelocityX:n&sv&&(r=t.overallVelocityY),e.prototype.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers===this.options.pointers&&O_(r)>this.options.velocity&&t.eventType&$_},n.emit=function(e){var t=hy(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)},t}(my),vy=function(e){x_(t,e);function t(t){return t===void 0&&(t={}),e.call(this,b_({event:`pinch`,threshold:0,pointers:2},t))||this}var n=t.prototype;return n.getTouchAction=function(){return[R_]},n.attrTest=function(t){return e.prototype.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&iy)},n.emit=function(t){if(t.scale!==1){var n=t.scale<1?`in`:`out`;t.additionalEvent=this.options.event+n}e.prototype.emit.call(this,t)},t}(my),yy=function(e){x_(t,e);function t(t){return t===void 0&&(t={}),e.call(this,b_({event:`rotate`,threshold:0,pointers:2},t))||this}var n=t.prototype;return n.getTouchAction=function(){return[R_]},n.attrTest=function(t){return e.prototype.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&iy)},t}(my),by=function(e){x_(t,e);function t(t){var n;return t===void 0&&(t={}),n=e.call(this,b_({event:`press`,pointers:1,time:251,threshold:9},t))||this,n._timer=null,n._input=null,n}var n=t.prototype;return n.getTouchAction=function(){return[I_]},n.process=function(e){var t=this,n=this.options,r=e.pointers.length===n.pointers,i=e.distance<n.threshold,a=e.deltaTime>n.time;if(this._input=e,!i||!r||e.eventType&($_|ev)&&!a)this.reset();else if(e.eventType&Z_)this.reset(),this._timer=setTimeout(function(){t.state=sy,t.tryEmit()},n.time);else if(e.eventType&$_)return sy;return ly},n.reset=function(){clearTimeout(this._timer)},n.emit=function(e){this.state===sy&&(e&&e.eventType&$_?this.manager.emit(this.options.event+`up`,e):(this._input.timeStamp=k_(),this.manager.emit(this.options.event,this._input)))},t}(fy),xy={domEvents:!1,touchAction:F_,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:`none`,touchSelect:`none`,touchCallout:`none`,contentZooming:`none`,userDrag:`none`,tapHighlightColor:`rgba(0,0,0,0)`}},Sy=[[yy,{enable:!1}],[vy,{enable:!1},[`rotate`]],[_y,{direction:ov}],[gy,{direction:ov},[`swipe`]],[py],[py,{event:`doubletap`,taps:2},[`tap`]],[by]],Cy=1,wy=2;function Ty(e,t){var n=e.element;if(n.style){var r;dv(e.options.cssProps,function(i,a){r=A_(n.style,a),t?(e.oldCssProps[r]=n.style[r],n.style[r]=i):n.style[r]=e.oldCssProps[r]||``}),t||(e.oldCssProps={})}}function Ey(e,t){var n=document.createEvent(`Event`);n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}var Dy=function(){function e(e,t){var n=this;this.options=C_({},xy,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=ty(this),this.touchAction=new hv(this,this.options.touchAction),Ty(this,!0),dv(this.options.recognizers,function(e){var t=n.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}var t=e.prototype;return t.set=function(e){return C_(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},t.stop=function(e){this.session.stopped=e?wy:Cy},t.recognize=function(e){var t=this.session;if(!t.stopped){this.touchAction.preventDefaults(e);var n,r=this.recognizers,i=t.curRecognizer;(!i||i&&i.state&sy)&&(t.curRecognizer=null,i=null);for(var a=0;a<r.length;)n=r[a],t.stopped!==wy&&(!i||n===i||n.canRecognizeWith(i))?n.recognize(e):n.reset(),!i&&n.state&(iy|ay|oy)&&(t.curRecognizer=n,i=n),a++}},t.get=function(e){if(e instanceof fy)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event===e)return t[n];return null},t.add=function(e){if(ny(e,`add`,this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},t.remove=function(e){if(ny(e,`remove`,this))return this;var t=this.get(e);if(e){var n=this.recognizers,r=Nv(n,t);r!==-1&&(n.splice(r,1),this.touchAction.update())}return this},t.on=function(e,t){if(e===void 0||t===void 0)return this;var n=this.handlers;return dv(kv(e),function(e){n[e]=n[e]||[],n[e].push(t)}),this},t.off=function(e,t){if(e===void 0)return this;var n=this.handlers;return dv(kv(e),function(e){t?n[e]&&n[e].splice(Nv(n[e],t),1):delete n[e]}),this},t.emit=function(e,t){this.options.domEvents&&Ey(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(!(!n||!n.length)){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},t.destroy=function(){this.element&&Ty(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},e}(),Oy={touchstart:Z_,touchmove:Q_,touchend:$_,touchcancel:ev},ky=`touchstart`,Ay=`touchstart touchmove touchend touchcancel`,jy=function(e){x_(t,e);function t(){var n,r=t.prototype;return r.evTarget=ky,r.evWin=Ay,n=e.apply(this,arguments)||this,n.started=!1,n}var n=t.prototype;return n.handler=function(e){var t=Oy[e.type];if(t===Z_&&(this.started=!0),this.started){var n=My.call(this,e,t);t&($_|ev)&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:K_,srcEvent:e})}},t}(Mv);function My(e,t){var n=zv(e.touches),r=zv(e.changedTouches);return t&($_|ev)&&(n=Bv(n.concat(r),`identifier`,!0)),[n,r]}function Ny(e,t,n){var r=`DEPRECATED METHOD: `+t+`
|
|
4
4
|
`+n+` AT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./chunk-TPjIAO9U.js";import{_ as t}from"./useSubAccountSwitcher-CUJpgkKI.js";var n=t(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),r=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FALLBACK_LABEL_SHAPE=e.EXTERNAL_LABEL_SHAPES=e.ALL_GRAPH_LABELS=e.FALLBACK_LABEL_COLOUR=e.GRAPH_LABEL_COLOURS=void 0,e.pickDisplayLabel=t,e.colourForLabel=n,e.shapeForLabel=i,e.iconForLabel=o,e.nodeImageDataUri=s,e.resolveNodeColour=c,e.formatRunTimestamp=d,e.formatMessageTimestamp=f,e.pickShortLabel=p,e.pickDisplayName=m,e.GRAPH_LABEL_COLOURS={LocalBusiness:`#4F6B8A`,Service:`#6B85A0`,PriceSpecification:`#8AA0B8`,OpeningHoursSpecification:`#A8BACE`,Listing:`#3F5670`,Property:`#5C7A99`,Viewing:`#D4A574`,Offer:`#B08850`,Job:`#8C3B2E`,Quote:`#A65A4A`,Invoice:`#6E4A1F`,InboundInvoice:`#6B2A20`,WhatsAppGroup:`#D4A096`,Customer:`#B5503C`,Site:`#C56B4A`,Asset:`#9E4A35`,Visit:`#C77A4E`,Part:`#7A3326`,PurchaseOrder:`#B07050`,PpmContract:`#8A4A3A`,Note:`#5E6B73`,Organization:`#8A6B47`,Person:`#B86E4A`,UserProfile:`#D08960`,Preference:`#DFA67A`,AdminUser:`#8C5230`,AccessGrant:`#66381F`,KnowledgeDocument:`#6E8A5A`,ConversationArchive:`#4F6B3E`,Section:`#8AA876`,Chunk:`#A6C194`,DigitalDocument:`#5A7548`,CreativeWork:`#B5C9A2`,Question:`#C7D6B5`,FAQPage:`#95B385`,DefinedTerm:`#76906A`,Review:`#3F5A2E`,ImageObject:`#A0BB8C`,Conversation:`#6B5A85`,AdminConversation:`#4F4070`,PublicConversation:`#8A75A8`,Message:`#6B7280`,UserMessage:`#DFA67A`,AssistantMessage:`#C9A876`,ToolCall:`#B5ABCB`,Task:`#B0617A`,Project:`#8E4A60`,Event:`#C68095`,Workflow:`#3A6F77`,WorkflowStep:`#5A8E96`,WorkflowRun:`#7AAAB2`,StepResult:`#9CC4CB`,Email:`#6F7F4A`,EmailAccount:`#91A063`,Agent:`#B8893D`,Objective:`#3D5A98`,KeyResult:`#5E7BC4`,Decision:`#7E60B0`,Risk:`#C15B57`,Source:`#2F8FA6`,Finding:`#4FA389`,Hypothesis:`#9A8C3E`},e.FALLBACK_LABEL_COLOUR=`#94A3B8`,e.ALL_GRAPH_LABELS=Object.freeze(Object.keys(e.GRAPH_LABEL_COLOURS));function t(t){for(let n=1;n<t.length;n++)if(Object.prototype.hasOwnProperty.call(e.GRAPH_LABEL_COLOURS,t[n]))return t[n];return t[0]??null}function n(t){return e.GRAPH_LABEL_COLOURS[t]??e.FALLBACK_LABEL_COLOUR}e.EXTERNAL_LABEL_SHAPES=[`dot`,`triangle`,`square`,`diamond`,`star`,`triangleDown`,`hexagon`],e.FALLBACK_LABEL_SHAPE=`dot`;var r=(()=>{let t={};return e.ALL_GRAPH_LABELS.forEach((n,r)=>{t[n]=e.EXTERNAL_LABEL_SHAPES[r%e.EXTERNAL_LABEL_SHAPES.length]}),t})();function i(t){return r[t]??e.FALLBACK_LABEL_SHAPE}var a={LocalBusiness:`<path d="M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5"></path><path d="M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244"></path><path d="M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05"></path>`,Service:`<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z"></path>`,PriceSpecification:`<path d="M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"></path><circle cx="7.5" cy="7.5" r=".5" fill="currentColor"></circle>`,OpeningHoursSpecification:`<circle cx="12" cy="12" r="10"></circle><path d="M12 6v6l4 2"></path>`,Listing:`<rect width="8" height="4" x="8" y="2" rx="1" ry="1"></rect><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><path d="M12 11h4"></path><path d="M12 16h4"></path><path d="M8 11h.01"></path><path d="M8 16h.01"></path>`,Property:`<path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"></path><path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>`,Viewing:`<path d="M8 2v4"></path><path d="M16 2v4"></path><rect width="18" height="18" x="3" y="4" rx="2"></rect><path d="M3 10h18"></path><path d="m9 16 2 2 4-4"></path>`,Offer:`<path d="M11 15h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 17"></path><path d="m7 21 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9"></path><path d="m2 16 6 6"></path><circle cx="16" cy="9" r="2.9"></circle><circle cx="6" cy="5" r="3"></circle>`,Job:`<path d="M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path><rect width="20" height="14" x="2" y="6" rx="2"></rect>`,Quote:`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path>`,Invoice:`<path d="M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z"></path><path d="M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8"></path><path d="M12 17.5v-11"></path>`,InboundInvoice:`<path d="M4 11V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-1"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path><path d="M2 15h10"></path><path d="m9 18 3-3-3-3"></path>`,WhatsAppGroup:`<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path><path d="M16 3.128a4 4 0 0 1 0 7.744"></path><path d="M22 21v-2a4 4 0 0 0-3-3.87"></path><circle cx="9" cy="7" r="4"></circle>`,Customer:`<path d="M16 2v2"></path><path d="M7 22v-2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2"></path><path d="M8 2v2"></path><circle cx="12" cy="11" r="3"></circle><rect x="3" y="4" width="18" height="18" rx="2"></rect>`,Site:`<path d="M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"></path><circle cx="12" cy="10" r="3"></circle>`,Asset:`<path d="M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z"></path><path d="M12 22V12"></path><polyline points="3.29 7 12 12 20.71 7"></polyline><path d="m7.5 4.27 9 5.15"></path>`,Visit:`<path d="M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2"></path><path d="M15 18H9"></path><path d="M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14"></path><circle cx="17" cy="18" r="2"></circle><circle cx="7" cy="18" r="2"></circle>`,Part:`<path d="M11 10.27 7 3.34"></path><path d="m11 13.73-4 6.93"></path><path d="M12 22v-2"></path><path d="M12 2v2"></path><path d="M14 12h8"></path><path d="m17 20.66-1-1.73"></path><path d="m17 3.34-1 1.73"></path><path d="M2 12h2"></path><path d="m20.66 17-1.73-1"></path><path d="m20.66 7-1.73 1"></path><path d="m3.34 17 1.73-1"></path><path d="m3.34 7 1.73 1"></path><circle cx="12" cy="12" r="2"></circle><circle cx="12" cy="12" r="8"></circle>`,PurchaseOrder:`<circle cx="8" cy="21" r="1"></circle><circle cx="19" cy="21" r="1"></circle><path d="M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12"></path>`,PpmContract:`<path d="m18.226 5.226-2.52-2.52A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-.351"></path><path d="M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z"></path><path d="M8 18h1"></path>`,Note:`<path d="M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z"></path><path d="M15 3v5a1 1 0 0 0 1 1h5"></path>`,Organization:`<path d="M12 10h.01"></path><path d="M12 14h.01"></path><path d="M12 6h.01"></path><path d="M16 10h.01"></path><path d="M16 14h.01"></path><path d="M16 6h.01"></path><path d="M8 10h.01"></path><path d="M8 14h.01"></path><path d="M8 6h.01"></path><path d="M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3"></path><rect x="4" y="2" width="16" height="20" rx="2"></rect>`,Person:`<path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle>`,UserProfile:`<path d="M16 10h2"></path><path d="M16 14h2"></path><path d="M6.17 15a3 3 0 0 1 5.66 0"></path><circle cx="9" cy="11" r="2"></circle><rect x="2" y="5" width="20" height="14" rx="2"></rect>`,Preference:`<path d="M10 5H3"></path><path d="M12 19H3"></path><path d="M14 3v4"></path><path d="M16 17v4"></path><path d="M21 12h-9"></path><path d="M21 19h-5"></path><path d="M21 5h-7"></path><path d="M8 10v4"></path><path d="M8 12H3"></path>`,AdminUser:`<path d="M10 15H6a4 4 0 0 0-4 4v2"></path><path d="m14.305 16.53.923-.382"></path><path d="m15.228 13.852-.923-.383"></path><path d="m16.852 12.228-.383-.923"></path><path d="m16.852 17.772-.383.924"></path><path d="m19.148 12.228.383-.923"></path><path d="m19.53 18.696-.382-.924"></path><path d="m20.772 13.852.924-.383"></path><path d="m20.772 16.148.924.383"></path><circle cx="18" cy="15" r="3"></circle><circle cx="9" cy="7" r="4"></circle>`,AccessGrant:`<path d="M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"></path><circle cx="16.5" cy="7.5" r=".5" fill="currentColor"></circle>`,KnowledgeDocument:`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path>`,ConversationArchive:`<rect width="20" height="5" x="2" y="3" rx="1"></rect><path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"></path><path d="M10 12h4"></path>`,Section:`<rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M21 9H3"></path><path d="M21 15H3"></path>`,Chunk:`<path d="M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z"></path>`,DigitalDocument:`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path>`,CreativeWork:`<path d="M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z"></path><path d="m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18"></path><path d="m2.3 2.3 7.286 7.286"></path><circle cx="11" cy="11" r="2"></circle>`,Question:`<circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><path d="M12 17h.01"></path>`,FAQPage:`<path d="M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719"></path><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><path d="M12 17h.01"></path>`,DefinedTerm:`<path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"></path><path d="m8 13 4-7 4 7"></path><path d="M9.1 11h5.7"></path>`,Review:`<path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"></path>`,ImageObject:`<rect width="18" height="18" x="3" y="3" rx="2" ry="2"></rect><circle cx="9" cy="9" r="2"></circle><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"></path>`,Conversation:`<path d="M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"></path>`,AdminConversation:`<path d="M22 8.5V5a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v16.286a.71.71 0 0 0 1.212.502l2.202-2.202A2 2 0 0 1 6.828 19H10"></path><path d="M20 15v-2a2 2 0 0 0-4 0v2"></path><rect x="14" y="15" width="8" height="5" rx="1"></rect>`,PublicConversation:`<path d="M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path><path d="M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1"></path>`,Message:`<path d="M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719"></path>`,UserMessage:`<path d="M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719"></path>`,AssistantMessage:`<path d="M12 8V4H8"></path><rect width="16" height="12" x="4" y="8" rx="2"></rect><path d="M2 14h2"></path><path d="M20 14h2"></path><path d="M15 13v2"></path><path d="M9 13v2"></path>`,ToolCall:`<path d="M12 19h8"></path><path d="m4 17 6-6-6-6"></path>`,Task:`<rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="m9 12 2 2 4-4"></path>`,Project:`<path d="M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z"></path><path d="M8 10v4"></path><path d="M12 10v2"></path><path d="M16 10v6"></path>`,Event:`<path d="M8 2v4"></path><path d="M16 2v4"></path><rect width="18" height="18" x="3" y="4" rx="2"></rect><path d="M3 10h18"></path>`,Workflow:`<rect width="8" height="8" x="3" y="3" rx="2"></rect><path d="M7 11v4a2 2 0 0 0 2 2h4"></path><rect width="8" height="8" x="13" y="13" rx="2"></rect>`,WorkflowStep:`<path d="M13 5h8"></path><path d="M13 12h8"></path><path d="M13 19h8"></path><path d="m3 17 2 2 4-4"></path><path d="m3 7 2 2 4-4"></path>`,WorkflowRun:`<path d="M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z"></path><circle cx="12" cy="12" r="10"></circle>`,StepResult:`<circle cx="12" cy="12" r="10"></circle><path d="m9 12 2 2 4-4"></path>`,Email:`<path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"></path><rect x="2" y="4" width="20" height="16" rx="2"></rect>`,EmailAccount:`<circle cx="12" cy="12" r="4"></circle><path d="M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8"></path>`,Agent:`<path d="M12 8V4H8"></path><rect width="16" height="12" x="4" y="8" rx="2"></rect><path d="M2 14h2"></path><path d="M20 14h2"></path><path d="M15 13v2"></path><path d="M9 13v2"></path>`,Objective:`<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="6"></circle><circle cx="12" cy="12" r="2"></circle>`,KeyResult:`<path d="M16 7h6v6"></path><path d="m22 7-8.5 8.5-5-5L2 17"></path>`,Decision:`<circle cx="12" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><circle cx="18" cy="6" r="3"></circle><path d="M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9"></path><path d="M12 12v3"></path>`,Risk:`<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"></path><path d="M12 9v4"></path><path d="M12 17h.01"></path>`,Source:`<path d="M12 7v14"></path><path d="M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"></path>`,Finding:`<path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"></path><path d="M9 18h6"></path><path d="M10 22h4"></path>`,Hypothesis:`<path d="M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2"></path><path d="M6.453 15h11.094"></path><path d="M8.5 2h7"></path>`};function o(e){return Object.prototype.hasOwnProperty.call(a,e)?a[e]:null}function s(e){let t=o(e);if(t===null)return null;let r=`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='`+n(e)+`'/><g transform='translate(4.8 4.8) scale(0.6)' fill='none' stroke='#fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' color='#fff'>`+t+`</g></svg>`;return`data:image/svg+xml,`+encodeURIComponent(r)}function c(r){let i=t(r),a=i?n(i):e.FALLBACK_LABEL_COLOUR,o=0;for(let t=1;t<r.length;t++)Object.prototype.hasOwnProperty.call(e.GRAPH_LABEL_COLOURS,r[t])&&o++;return{displayLabel:i,colour:a,driftCandidates:o}}var l=/^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2})/,u=/^\d{4}-\d{2}-\d{2}T(\d{2}:\d{2}:\d{2})/;function d(e){let t=e.match(l);return t?`${t[1]} ${t[2]}`:null}function f(e){let t=e.match(u);return t?t[1]:null}function p(e){let t=e.properties,n=e.labels[0];if(n===`ToolCall`){let e=t.toolName;if(typeof e==`string`&&e.length>0)return e.length>24?e.slice(0,24)+`…`:e}else if(n===`WorkflowRun`){let e=t.startedAt;if(typeof e==`string`&&e.length>0){let t=d(e);if(t)return t}}else if(n===`WorkflowStep`){let e=t.label;if(typeof e==`string`&&e.length>0)return e.length>24?e.slice(0,24)+`…`:e}else if(n===`Person`){let e=[typeof t.givenName==`string`?t.givenName:``,typeof t.familyName==`string`?t.familyName:``].filter(e=>e.length>0).join(` `);if(e.length>0)return e.length>24?e.slice(0,24)+`…`:e}else if(n===`Agent`){let e=typeof t.displayName==`string`?t.displayName:``,n=typeof t.slug==`string`?t.slug:``,r=e.length>0?e:n;if(r.length>0)return r.length>24?r.slice(0,24)+`…`:r}else if(n===`Job`){let e=typeof t.client==`string`?t.client:``,n=typeof t.jobId==`string`?t.jobId:``,r=[e,n.length>0?`#${n}`:``].filter(e=>e.length>0).join(` `);if(r.length>0)return r.length>24?r.slice(0,24)+`…`:r}else if(n===`Quote`){let e=typeof t.ref==`string`?t.ref:``;if(e.length>0)return e.length>24?e.slice(0,24)+`…`:e}else if(n===`InboundInvoice`){let e=typeof t.supplier==`string`?t.supplier:``,n=typeof t.confirmationNumber==`string`?t.confirmationNumber:``,r=[e,n.length>0?`#${n}`:``].filter(e=>e.length>0).join(` `);if(r.length>0)return r.length>24?r.slice(0,24)+`…`:r}else if(n===`WhatsAppGroup`){let e=typeof t.clientName==`string`?t.clientName:``;if(e.length>0)return e.length>24?e.slice(0,24)+`…`:e}else if(n===`Message`){let e=typeof t.role==`string`?t.role:``,n=e===`user`?`user`:e===`assistant`?`asst`:e===`system`?`sys`:e===`tool`?`tool`:null,r=typeof t.createdAt==`string`?t.createdAt:``;if(n&&r){let e=f(r);if(e)return`${n} ${e}`}}for(let e of[`name`,`title`,`summary`,`givenName`,`subject`,`text`]){let n=t[e];if(typeof n==`string`&&n.length>0)return n.length>24?n.slice(0,24)+`…`:n}if(n===`Conversation`){let e=typeof t.sessionId==`string`?t.sessionId:null;if(e)return`Conv ${e.slice(0,8)}`}return n??`…`}function m(e){let t=e.properties,n=e.labels[0];if(n===`ToolCall`){let e=t.toolName;if(typeof e==`string`&&e.length>0)return e}else if(n===`WorkflowRun`){let e=t.startedAt;if(typeof e==`string`&&e.length>0){let t=d(e);if(t)return t}}else if(n===`WorkflowStep`){let e=t.label;if(typeof e==`string`&&e.length>0)return e}else if(n===`Person`){let e=[typeof t.givenName==`string`?t.givenName:``,typeof t.familyName==`string`?t.familyName:``].filter(e=>e.length>0).join(` `);if(e.length>0)return e}else if(n===`Agent`){let e=typeof t.displayName==`string`?t.displayName:``,n=typeof t.slug==`string`?t.slug:``,r=e.length>0?e:n;if(r.length>0)return r}else if(n===`Job`){let e=typeof t.client==`string`?t.client:``,n=typeof t.jobId==`string`?t.jobId:``,r=[e,n.length>0?`#${n}`:``].filter(e=>e.length>0).join(` `);if(r.length>0)return r}else if(n===`Quote`){let e=typeof t.ref==`string`?t.ref:``;if(e.length>0)return e}else if(n===`InboundInvoice`){let e=typeof t.supplier==`string`?t.supplier:``,n=typeof t.confirmationNumber==`string`?t.confirmationNumber:``,r=[e,n.length>0?`#${n}`:``].filter(e=>e.length>0).join(` `);if(r.length>0)return r}else if(n===`WhatsAppGroup`){let e=typeof t.clientName==`string`?t.clientName:``;if(e.length>0)return e}for(let e of[`name`,`title`,`summary`,`givenName`,`subject`,`text`]){let n=t[e];if(typeof n==`string`&&n.length>0)return n}if(n===`Conversation`){let e=typeof t.sessionId==`string`?t.sessionId:null;if(e)return`Conv ${e.slice(0,8)}`}return n??`…`}})),i=r();Object.freeze(new Set([`Chunk`,`GraphPreference`]));var a=Object.freeze(new Set(`LocalBusiness.Service.PriceSpecification.OpeningHoursSpecification.Organization.Person.UserProfile.Preference.AdminUser.AccessGrant.KnowledgeDocument.DigitalDocument.CreativeWork.Question.FAQPage.DefinedTerm.Review.ImageObject.Listing.Property.Viewing.Offer.Job.Quote.Invoice.InboundInvoice.WhatsAppGroup.Customer.Site.Asset.Visit.Part.PurchaseOrder.PpmContract.Task.Project.Event.Workflow.Email.EmailAccount.Agent.Objective.KeyResult.Decision.Risk.Source.Finding.Hypothesis`.split(`.`)));Object.freeze(new Set([`ToolCall`,`StepResult`,`WorkflowStep`,`WorkflowRun`])),Object.freeze(new Set([`HAS_TOOL_CALL`,`RUN_OF`,`HAS_STEP`,`HAS_RESULT`]));export{n as i,i as n,r,a as t};
|
|
1
|
+
import{t as e}from"./chunk-TPjIAO9U.js";import{_ as t}from"./useSubAccountSwitcher-CBlKgwms.js";var n=t(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),r=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FALLBACK_LABEL_SHAPE=e.EXTERNAL_LABEL_SHAPES=e.ALL_GRAPH_LABELS=e.FALLBACK_LABEL_COLOUR=e.GRAPH_LABEL_COLOURS=void 0,e.pickDisplayLabel=t,e.colourForLabel=n,e.shapeForLabel=i,e.iconForLabel=o,e.nodeImageDataUri=s,e.resolveNodeColour=c,e.formatRunTimestamp=d,e.formatMessageTimestamp=f,e.pickShortLabel=p,e.pickDisplayName=m,e.GRAPH_LABEL_COLOURS={LocalBusiness:`#4F6B8A`,Service:`#6B85A0`,PriceSpecification:`#8AA0B8`,OpeningHoursSpecification:`#A8BACE`,Listing:`#3F5670`,Property:`#5C7A99`,Viewing:`#D4A574`,Offer:`#B08850`,Job:`#8C3B2E`,Quote:`#A65A4A`,Invoice:`#6E4A1F`,InboundInvoice:`#6B2A20`,WhatsAppGroup:`#D4A096`,Customer:`#B5503C`,Site:`#C56B4A`,Asset:`#9E4A35`,Visit:`#C77A4E`,Part:`#7A3326`,PurchaseOrder:`#B07050`,PpmContract:`#8A4A3A`,Note:`#5E6B73`,Organization:`#8A6B47`,Person:`#B86E4A`,UserProfile:`#D08960`,Preference:`#DFA67A`,AdminUser:`#8C5230`,AccessGrant:`#66381F`,KnowledgeDocument:`#6E8A5A`,ConversationArchive:`#4F6B3E`,Section:`#8AA876`,Chunk:`#A6C194`,DigitalDocument:`#5A7548`,CreativeWork:`#B5C9A2`,Question:`#C7D6B5`,FAQPage:`#95B385`,DefinedTerm:`#76906A`,Review:`#3F5A2E`,ImageObject:`#A0BB8C`,Conversation:`#6B5A85`,AdminConversation:`#4F4070`,PublicConversation:`#8A75A8`,Message:`#6B7280`,UserMessage:`#DFA67A`,AssistantMessage:`#C9A876`,ToolCall:`#B5ABCB`,Task:`#B0617A`,Project:`#8E4A60`,Event:`#C68095`,Workflow:`#3A6F77`,WorkflowStep:`#5A8E96`,WorkflowRun:`#7AAAB2`,StepResult:`#9CC4CB`,Email:`#6F7F4A`,EmailAccount:`#91A063`,Agent:`#B8893D`,Objective:`#3D5A98`,KeyResult:`#5E7BC4`,Decision:`#7E60B0`,Risk:`#C15B57`,Source:`#2F8FA6`,Finding:`#4FA389`,Hypothesis:`#9A8C3E`},e.FALLBACK_LABEL_COLOUR=`#94A3B8`,e.ALL_GRAPH_LABELS=Object.freeze(Object.keys(e.GRAPH_LABEL_COLOURS));function t(t){for(let n=1;n<t.length;n++)if(Object.prototype.hasOwnProperty.call(e.GRAPH_LABEL_COLOURS,t[n]))return t[n];return t[0]??null}function n(t){return e.GRAPH_LABEL_COLOURS[t]??e.FALLBACK_LABEL_COLOUR}e.EXTERNAL_LABEL_SHAPES=[`dot`,`triangle`,`square`,`diamond`,`star`,`triangleDown`,`hexagon`],e.FALLBACK_LABEL_SHAPE=`dot`;var r=(()=>{let t={};return e.ALL_GRAPH_LABELS.forEach((n,r)=>{t[n]=e.EXTERNAL_LABEL_SHAPES[r%e.EXTERNAL_LABEL_SHAPES.length]}),t})();function i(t){return r[t]??e.FALLBACK_LABEL_SHAPE}var a={LocalBusiness:`<path d="M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5"></path><path d="M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244"></path><path d="M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05"></path>`,Service:`<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z"></path>`,PriceSpecification:`<path d="M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"></path><circle cx="7.5" cy="7.5" r=".5" fill="currentColor"></circle>`,OpeningHoursSpecification:`<circle cx="12" cy="12" r="10"></circle><path d="M12 6v6l4 2"></path>`,Listing:`<rect width="8" height="4" x="8" y="2" rx="1" ry="1"></rect><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><path d="M12 11h4"></path><path d="M12 16h4"></path><path d="M8 11h.01"></path><path d="M8 16h.01"></path>`,Property:`<path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"></path><path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>`,Viewing:`<path d="M8 2v4"></path><path d="M16 2v4"></path><rect width="18" height="18" x="3" y="4" rx="2"></rect><path d="M3 10h18"></path><path d="m9 16 2 2 4-4"></path>`,Offer:`<path d="M11 15h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 17"></path><path d="m7 21 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9"></path><path d="m2 16 6 6"></path><circle cx="16" cy="9" r="2.9"></circle><circle cx="6" cy="5" r="3"></circle>`,Job:`<path d="M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path><rect width="20" height="14" x="2" y="6" rx="2"></rect>`,Quote:`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path>`,Invoice:`<path d="M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z"></path><path d="M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8"></path><path d="M12 17.5v-11"></path>`,InboundInvoice:`<path d="M4 11V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-1"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path><path d="M2 15h10"></path><path d="m9 18 3-3-3-3"></path>`,WhatsAppGroup:`<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path><path d="M16 3.128a4 4 0 0 1 0 7.744"></path><path d="M22 21v-2a4 4 0 0 0-3-3.87"></path><circle cx="9" cy="7" r="4"></circle>`,Customer:`<path d="M16 2v2"></path><path d="M7 22v-2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2"></path><path d="M8 2v2"></path><circle cx="12" cy="11" r="3"></circle><rect x="3" y="4" width="18" height="18" rx="2"></rect>`,Site:`<path d="M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"></path><circle cx="12" cy="10" r="3"></circle>`,Asset:`<path d="M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z"></path><path d="M12 22V12"></path><polyline points="3.29 7 12 12 20.71 7"></polyline><path d="m7.5 4.27 9 5.15"></path>`,Visit:`<path d="M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2"></path><path d="M15 18H9"></path><path d="M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14"></path><circle cx="17" cy="18" r="2"></circle><circle cx="7" cy="18" r="2"></circle>`,Part:`<path d="M11 10.27 7 3.34"></path><path d="m11 13.73-4 6.93"></path><path d="M12 22v-2"></path><path d="M12 2v2"></path><path d="M14 12h8"></path><path d="m17 20.66-1-1.73"></path><path d="m17 3.34-1 1.73"></path><path d="M2 12h2"></path><path d="m20.66 17-1.73-1"></path><path d="m20.66 7-1.73 1"></path><path d="m3.34 17 1.73-1"></path><path d="m3.34 7 1.73 1"></path><circle cx="12" cy="12" r="2"></circle><circle cx="12" cy="12" r="8"></circle>`,PurchaseOrder:`<circle cx="8" cy="21" r="1"></circle><circle cx="19" cy="21" r="1"></circle><path d="M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12"></path>`,PpmContract:`<path d="m18.226 5.226-2.52-2.52A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-.351"></path><path d="M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z"></path><path d="M8 18h1"></path>`,Note:`<path d="M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z"></path><path d="M15 3v5a1 1 0 0 0 1 1h5"></path>`,Organization:`<path d="M12 10h.01"></path><path d="M12 14h.01"></path><path d="M12 6h.01"></path><path d="M16 10h.01"></path><path d="M16 14h.01"></path><path d="M16 6h.01"></path><path d="M8 10h.01"></path><path d="M8 14h.01"></path><path d="M8 6h.01"></path><path d="M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3"></path><rect x="4" y="2" width="16" height="20" rx="2"></rect>`,Person:`<path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle>`,UserProfile:`<path d="M16 10h2"></path><path d="M16 14h2"></path><path d="M6.17 15a3 3 0 0 1 5.66 0"></path><circle cx="9" cy="11" r="2"></circle><rect x="2" y="5" width="20" height="14" rx="2"></rect>`,Preference:`<path d="M10 5H3"></path><path d="M12 19H3"></path><path d="M14 3v4"></path><path d="M16 17v4"></path><path d="M21 12h-9"></path><path d="M21 19h-5"></path><path d="M21 5h-7"></path><path d="M8 10v4"></path><path d="M8 12H3"></path>`,AdminUser:`<path d="M10 15H6a4 4 0 0 0-4 4v2"></path><path d="m14.305 16.53.923-.382"></path><path d="m15.228 13.852-.923-.383"></path><path d="m16.852 12.228-.383-.923"></path><path d="m16.852 17.772-.383.924"></path><path d="m19.148 12.228.383-.923"></path><path d="m19.53 18.696-.382-.924"></path><path d="m20.772 13.852.924-.383"></path><path d="m20.772 16.148.924.383"></path><circle cx="18" cy="15" r="3"></circle><circle cx="9" cy="7" r="4"></circle>`,AccessGrant:`<path d="M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"></path><circle cx="16.5" cy="7.5" r=".5" fill="currentColor"></circle>`,KnowledgeDocument:`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path>`,ConversationArchive:`<rect width="20" height="5" x="2" y="3" rx="1"></rect><path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"></path><path d="M10 12h4"></path>`,Section:`<rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M21 9H3"></path><path d="M21 15H3"></path>`,Chunk:`<path d="M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z"></path>`,DigitalDocument:`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path>`,CreativeWork:`<path d="M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z"></path><path d="m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18"></path><path d="m2.3 2.3 7.286 7.286"></path><circle cx="11" cy="11" r="2"></circle>`,Question:`<circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><path d="M12 17h.01"></path>`,FAQPage:`<path d="M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719"></path><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><path d="M12 17h.01"></path>`,DefinedTerm:`<path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"></path><path d="m8 13 4-7 4 7"></path><path d="M9.1 11h5.7"></path>`,Review:`<path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"></path>`,ImageObject:`<rect width="18" height="18" x="3" y="3" rx="2" ry="2"></rect><circle cx="9" cy="9" r="2"></circle><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"></path>`,Conversation:`<path d="M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"></path>`,AdminConversation:`<path d="M22 8.5V5a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v16.286a.71.71 0 0 0 1.212.502l2.202-2.202A2 2 0 0 1 6.828 19H10"></path><path d="M20 15v-2a2 2 0 0 0-4 0v2"></path><rect x="14" y="15" width="8" height="5" rx="1"></rect>`,PublicConversation:`<path d="M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path><path d="M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1"></path>`,Message:`<path d="M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719"></path>`,UserMessage:`<path d="M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719"></path>`,AssistantMessage:`<path d="M12 8V4H8"></path><rect width="16" height="12" x="4" y="8" rx="2"></rect><path d="M2 14h2"></path><path d="M20 14h2"></path><path d="M15 13v2"></path><path d="M9 13v2"></path>`,ToolCall:`<path d="M12 19h8"></path><path d="m4 17 6-6-6-6"></path>`,Task:`<rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="m9 12 2 2 4-4"></path>`,Project:`<path d="M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z"></path><path d="M8 10v4"></path><path d="M12 10v2"></path><path d="M16 10v6"></path>`,Event:`<path d="M8 2v4"></path><path d="M16 2v4"></path><rect width="18" height="18" x="3" y="4" rx="2"></rect><path d="M3 10h18"></path>`,Workflow:`<rect width="8" height="8" x="3" y="3" rx="2"></rect><path d="M7 11v4a2 2 0 0 0 2 2h4"></path><rect width="8" height="8" x="13" y="13" rx="2"></rect>`,WorkflowStep:`<path d="M13 5h8"></path><path d="M13 12h8"></path><path d="M13 19h8"></path><path d="m3 17 2 2 4-4"></path><path d="m3 7 2 2 4-4"></path>`,WorkflowRun:`<path d="M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z"></path><circle cx="12" cy="12" r="10"></circle>`,StepResult:`<circle cx="12" cy="12" r="10"></circle><path d="m9 12 2 2 4-4"></path>`,Email:`<path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"></path><rect x="2" y="4" width="20" height="16" rx="2"></rect>`,EmailAccount:`<circle cx="12" cy="12" r="4"></circle><path d="M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8"></path>`,Agent:`<path d="M12 8V4H8"></path><rect width="16" height="12" x="4" y="8" rx="2"></rect><path d="M2 14h2"></path><path d="M20 14h2"></path><path d="M15 13v2"></path><path d="M9 13v2"></path>`,Objective:`<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="6"></circle><circle cx="12" cy="12" r="2"></circle>`,KeyResult:`<path d="M16 7h6v6"></path><path d="m22 7-8.5 8.5-5-5L2 17"></path>`,Decision:`<circle cx="12" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><circle cx="18" cy="6" r="3"></circle><path d="M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9"></path><path d="M12 12v3"></path>`,Risk:`<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"></path><path d="M12 9v4"></path><path d="M12 17h.01"></path>`,Source:`<path d="M12 7v14"></path><path d="M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"></path>`,Finding:`<path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"></path><path d="M9 18h6"></path><path d="M10 22h4"></path>`,Hypothesis:`<path d="M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2"></path><path d="M6.453 15h11.094"></path><path d="M8.5 2h7"></path>`};function o(e){return Object.prototype.hasOwnProperty.call(a,e)?a[e]:null}function s(e){let t=o(e);if(t===null)return null;let r=`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='`+n(e)+`'/><g transform='translate(4.8 4.8) scale(0.6)' fill='none' stroke='#fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' color='#fff'>`+t+`</g></svg>`;return`data:image/svg+xml,`+encodeURIComponent(r)}function c(r){let i=t(r),a=i?n(i):e.FALLBACK_LABEL_COLOUR,o=0;for(let t=1;t<r.length;t++)Object.prototype.hasOwnProperty.call(e.GRAPH_LABEL_COLOURS,r[t])&&o++;return{displayLabel:i,colour:a,driftCandidates:o}}var l=/^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2})/,u=/^\d{4}-\d{2}-\d{2}T(\d{2}:\d{2}:\d{2})/;function d(e){let t=e.match(l);return t?`${t[1]} ${t[2]}`:null}function f(e){let t=e.match(u);return t?t[1]:null}function p(e){let t=e.properties,n=e.labels[0];if(n===`ToolCall`){let e=t.toolName;if(typeof e==`string`&&e.length>0)return e.length>24?e.slice(0,24)+`…`:e}else if(n===`WorkflowRun`){let e=t.startedAt;if(typeof e==`string`&&e.length>0){let t=d(e);if(t)return t}}else if(n===`WorkflowStep`){let e=t.label;if(typeof e==`string`&&e.length>0)return e.length>24?e.slice(0,24)+`…`:e}else if(n===`Person`){let e=[typeof t.givenName==`string`?t.givenName:``,typeof t.familyName==`string`?t.familyName:``].filter(e=>e.length>0).join(` `);if(e.length>0)return e.length>24?e.slice(0,24)+`…`:e}else if(n===`Agent`){let e=typeof t.displayName==`string`?t.displayName:``,n=typeof t.slug==`string`?t.slug:``,r=e.length>0?e:n;if(r.length>0)return r.length>24?r.slice(0,24)+`…`:r}else if(n===`Job`){let e=typeof t.client==`string`?t.client:``,n=typeof t.jobId==`string`?t.jobId:``,r=[e,n.length>0?`#${n}`:``].filter(e=>e.length>0).join(` `);if(r.length>0)return r.length>24?r.slice(0,24)+`…`:r}else if(n===`Quote`){let e=typeof t.ref==`string`?t.ref:``;if(e.length>0)return e.length>24?e.slice(0,24)+`…`:e}else if(n===`InboundInvoice`){let e=typeof t.supplier==`string`?t.supplier:``,n=typeof t.confirmationNumber==`string`?t.confirmationNumber:``,r=[e,n.length>0?`#${n}`:``].filter(e=>e.length>0).join(` `);if(r.length>0)return r.length>24?r.slice(0,24)+`…`:r}else if(n===`WhatsAppGroup`){let e=typeof t.clientName==`string`?t.clientName:``;if(e.length>0)return e.length>24?e.slice(0,24)+`…`:e}else if(n===`Message`){let e=typeof t.role==`string`?t.role:``,n=e===`user`?`user`:e===`assistant`?`asst`:e===`system`?`sys`:e===`tool`?`tool`:null,r=typeof t.createdAt==`string`?t.createdAt:``;if(n&&r){let e=f(r);if(e)return`${n} ${e}`}}for(let e of[`name`,`title`,`summary`,`givenName`,`subject`,`text`]){let n=t[e];if(typeof n==`string`&&n.length>0)return n.length>24?n.slice(0,24)+`…`:n}if(n===`Conversation`){let e=typeof t.sessionId==`string`?t.sessionId:null;if(e)return`Conv ${e.slice(0,8)}`}return n??`…`}function m(e){let t=e.properties,n=e.labels[0];if(n===`ToolCall`){let e=t.toolName;if(typeof e==`string`&&e.length>0)return e}else if(n===`WorkflowRun`){let e=t.startedAt;if(typeof e==`string`&&e.length>0){let t=d(e);if(t)return t}}else if(n===`WorkflowStep`){let e=t.label;if(typeof e==`string`&&e.length>0)return e}else if(n===`Person`){let e=[typeof t.givenName==`string`?t.givenName:``,typeof t.familyName==`string`?t.familyName:``].filter(e=>e.length>0).join(` `);if(e.length>0)return e}else if(n===`Agent`){let e=typeof t.displayName==`string`?t.displayName:``,n=typeof t.slug==`string`?t.slug:``,r=e.length>0?e:n;if(r.length>0)return r}else if(n===`Job`){let e=typeof t.client==`string`?t.client:``,n=typeof t.jobId==`string`?t.jobId:``,r=[e,n.length>0?`#${n}`:``].filter(e=>e.length>0).join(` `);if(r.length>0)return r}else if(n===`Quote`){let e=typeof t.ref==`string`?t.ref:``;if(e.length>0)return e}else if(n===`InboundInvoice`){let e=typeof t.supplier==`string`?t.supplier:``,n=typeof t.confirmationNumber==`string`?t.confirmationNumber:``,r=[e,n.length>0?`#${n}`:``].filter(e=>e.length>0).join(` `);if(r.length>0)return r}else if(n===`WhatsAppGroup`){let e=typeof t.clientName==`string`?t.clientName:``;if(e.length>0)return e}for(let e of[`name`,`title`,`summary`,`givenName`,`subject`,`text`]){let n=t[e];if(typeof n==`string`&&n.length>0)return n}if(n===`Conversation`){let e=typeof t.sessionId==`string`?t.sessionId:null;if(e)return`Conv ${e.slice(0,8)}`}return n??`…`}})),i=r();Object.freeze(new Set([`Chunk`,`GraphPreference`]));var a=Object.freeze(new Set(`LocalBusiness.Service.PriceSpecification.OpeningHoursSpecification.Organization.Person.UserProfile.Preference.AdminUser.AccessGrant.KnowledgeDocument.DigitalDocument.CreativeWork.Question.FAQPage.DefinedTerm.Review.ImageObject.Listing.Property.Viewing.Offer.Job.Quote.Invoice.InboundInvoice.WhatsAppGroup.Customer.Site.Asset.Visit.Part.PurchaseOrder.PpmContract.Task.Project.Event.Workflow.Email.EmailAccount.Agent.Objective.KeyResult.Decision.Risk.Source.Finding.Hypothesis`.split(`.`)));Object.freeze(new Set([`ToolCall`,`StepResult`,`WorkflowStep`,`WorkflowRun`])),Object.freeze(new Set([`HAS_TOOL_CALL`,`RUN_OF`,`HAS_STEP`,`HAS_RESULT`]));export{n as i,i as n,r,a as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./useSubAccountSwitcher-
|
|
1
|
+
import{_ as e}from"./useSubAccountSwitcher-CBlKgwms.js";var t=e(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),n=e(`maximize-2`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]);export{t as n,n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./chunk-TPjIAO9U.js";import{D as t,S as n,T as r}from"./useSubAccountSwitcher-
|
|
1
|
+
import{o as e}from"./chunk-TPjIAO9U.js";import{D as t,S as n,T as r}from"./useSubAccountSwitcher-CBlKgwms.js";import{n as i,t as a}from"./AdminLoginScreens-B44KbEuC.js";import"./useVoiceRecorder-j3ZArZ2H.js";import"./AdminShell-BjxV2qkb.js";import"./Checkbox-DSeZNGNA.js";import{t as o}from"./page-DxnWgPtd.js";import"./useCopyFeedback-7yKeiAzV.js";import"./useSelectionMode-CWlh6AEq.js";var s=r(),c=e(t(),1),l=n();function u(){let e=i(`operator`),t=(0,c.useRef)(null);return(0,c.useEffect)(()=>{e.appState!==`chat`&&t.current!==e.appState&&(t.current=e.appState,console.info(`[operator-ui] op=auth-gate state=${e.appState}`))},[e.appState]),e.appState===`chat`?(0,l.jsx)(o,{variant:`operator`,forceCanonicalSession:window.location.pathname!==`/chat`}):(0,l.jsx)(a,{auth:e})}(0,s.createRoot)(document.getElementById(`root`)).render((0,l.jsx)(u,{}));
|