graview 0.1.51 → 0.1.52
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/preview/chunk.2EB7COX5.js +1 -0
- package/dist/preview/{chunk.K7ECYKZL.js → chunk.2K3YQJW3.js} +1 -1
- package/dist/preview/{chunk.PPZ2TOB5.js → chunk.2X3UZJWI.js} +1 -1
- package/dist/preview/{chunk.KRODTMGR.js → chunk.337JMOTL.js} +1 -1
- package/dist/preview/{chunk.5ZAK57JA.js → chunk.3FKP32RG.js} +2 -2
- package/dist/preview/{chunk.ACB4TD4W.js → chunk.3TME4BG3.js} +1 -1
- package/dist/preview/chunk.3ZQAPPJ5.js +18 -0
- package/dist/preview/{chunk.EA2NMVRE.js → chunk.4LI73QOY.js} +1 -1
- package/dist/preview/{chunk.UIWI4GKW.js → chunk.4VI3EYDL.js} +1 -1
- package/dist/preview/{chunk.OHDJYGH7.js → chunk.4ZLCMATU.js} +1 -1
- package/dist/preview/{chunk.GJQF7I22.js → chunk.52J42KR5.js} +1 -1
- package/dist/preview/{chunk.4EZFOZBA.js → chunk.5DDHFNZM.js} +1 -1
- package/dist/preview/chunk.5LWPNOJA.js +1 -0
- package/dist/preview/{chunk.FKJ3HIA5.js → chunk.5WU2UTP7.js} +1 -1
- package/dist/preview/{chunk.OPCBZNKF.js → chunk.63SRVTG2.js} +2 -2
- package/dist/preview/{chunk.CV55N3Y6.js → chunk.6BA6RUK7.js} +1 -1
- package/dist/preview/{chunk.WFHFWJ6E.js → chunk.6CY3EA6U.js} +1 -1
- package/dist/preview/{chunk.IBJBCZKG.js → chunk.6JERQFZI.js} +1 -1
- package/dist/preview/{chunk.IFL2MYTQ.js → chunk.6NIE3ILA.js} +1 -1
- package/dist/preview/{chunk.JMDKAP23.js → chunk.6QNBUBGD.js} +1 -1
- package/dist/preview/chunk.6YGRRXJB.js +2 -0
- package/dist/preview/{chunk.JX2C3HVD.js → chunk.7354O67H.js} +1 -1
- package/dist/preview/{chunk.MY5OXSS7.js → chunk.73EKJ4JN.js} +1 -1
- package/dist/preview/{chunk.CQPNDJAC.js → chunk.7EA7THSM.js} +1 -1
- package/dist/preview/{chunk.IUIDDNN3.js → chunk.7FMS57QO.js} +1 -1
- package/dist/preview/{chunk.3TVAE7LE.js → chunk.7FZY5E2U.js} +1 -1
- package/dist/preview/{chunk.R5R7CLOU.js → chunk.7IOC6U3C.js} +1 -1
- package/dist/preview/{chunk.JI2UVZUU.js → chunk.7KZ44FEU.js} +1 -1
- package/dist/preview/chunk.7OAXW7QF.js +1 -0
- package/dist/preview/chunk.7SNIX56B.js +1 -0
- package/dist/preview/{chunk.OJ64WTLW.js → chunk.7UJZP3YK.js} +2 -2
- package/dist/preview/{chunk.353CGK6C.js → chunk.7UXDIEPK.js} +1 -1
- package/dist/preview/{chunk.NQ26KMSQ.js → chunk.7XJ3XQZD.js} +1 -1
- package/dist/preview/chunk.AI2HBKVP.js +359 -0
- package/dist/preview/{chunk.KOBCLWPC.js → chunk.BDQ4FUKO.js} +1 -1
- package/dist/preview/{chunk.ESSENNHM.js → chunk.BHPZK4WJ.js} +2 -2
- package/dist/preview/{chunk.W2DKFQ6R.js → chunk.BJL6EL6B.js} +1 -1
- package/dist/preview/{chunk.UK5F3S2N.js → chunk.C4EPMV7O.js} +1 -1
- package/dist/preview/{chunk.DQNN5FE5.js → chunk.C4UNAJWC.js} +1 -1
- package/dist/preview/{chunk.Z7N3MJ36.js → chunk.C7EEYSAM.js} +1 -1
- package/dist/preview/{chunk.7RIFDWDF.js → chunk.CBGKWYGI.js} +1 -1
- package/dist/preview/chunk.CC7E6NUQ.js +1 -0
- package/dist/preview/chunk.CHMUL36A.js +1 -0
- package/dist/preview/{chunk.VICCAWAN.js → chunk.CV4QA4ZF.js} +1 -1
- package/dist/preview/{chunk.5ON3JSAK.js → chunk.D2T563AA.js} +1 -1
- package/dist/preview/{chunk.B7LBG4UP.js → chunk.D62V3TBW.js} +1 -1
- package/dist/preview/{chunk.2W45NM7Q.js → chunk.DC7M56NM.js} +2 -2
- package/dist/preview/{chunk.6KYWJXZR.js → chunk.DGWNVDZB.js} +1 -1
- package/dist/preview/{chunk.TBSPEO2L.js → chunk.DIS7JS7X.js} +1 -1
- package/dist/preview/{chunk.FYDDFOSD.js → chunk.DVLWSCIC.js} +1 -1
- package/dist/preview/{chunk.FU4YSVWX.js → chunk.DXZ5VYCQ.js} +1 -1
- package/dist/preview/{chunk.PMV6XVVZ.js → chunk.EHOEMVQP.js} +1 -1
- package/dist/preview/{chunk.B4PUI3GO.js → chunk.EIWTZC4A.js} +1 -1
- package/dist/preview/chunk.EME5HQ3H.js +1 -0
- package/dist/preview/{chunk.HVX7LFWR.js → chunk.FEBCIEI3.js} +1 -1
- package/dist/preview/{chunk.IE4ZJQV3.js → chunk.FJC6PMOG.js} +1 -1
- package/dist/preview/{chunk.2W2YVB6X.js → chunk.FJEXINFF.js} +1 -1
- package/dist/preview/{chunk.APFRPN5S.js → chunk.FLNYLE6S.js} +1 -1
- package/dist/preview/{chunk.2VJ52LGS.js → chunk.G7XKQNOL.js} +1 -1
- package/dist/preview/{chunk.SSAY4ITS.js → chunk.GL3YVGAP.js} +2 -2
- package/dist/preview/{chunk.K7RKWB2K.js → chunk.GZHEGKPF.js} +1 -1
- package/dist/preview/{chunk.KK46XLGU.js → chunk.HSGUXMAO.js} +1 -1
- package/dist/preview/{chunk.AZOW57MT.js → chunk.HST7BYFW.js} +1 -1
- package/dist/preview/{chunk.T3RTFTOZ.js → chunk.I2W7HSBU.js} +1 -1
- package/dist/preview/{chunk.XCQ7ZPR5.js → chunk.I43ONAEL.js} +1 -1
- package/dist/preview/{chunk.NVRK6A7T.js → chunk.INL4OZI7.js} +1 -1
- package/dist/preview/{chunk.ALCH5H7U.js → chunk.IVI3HRSF.js} +1 -1
- package/dist/preview/{chunk.XCCBUWMC.js → chunk.J263VQF5.js} +1 -1
- package/dist/preview/{chunk.TNL2BVCH.js → chunk.J2R55TM7.js} +1 -1
- package/dist/preview/{chunk.U7SNDY3F.js → chunk.J6IB2HUZ.js} +1 -1
- package/dist/preview/{chunk.Y5AMZBHA.js → chunk.JOWJNIWH.js} +2 -2
- package/dist/preview/{chunk.7GAC7U34.js → chunk.JQBP6QWQ.js} +1 -1
- package/dist/preview/chunk.JV7FLVUV.js +1 -0
- package/dist/preview/{chunk.SJKHVIHA.js → chunk.KFTZLNHY.js} +2 -2
- package/dist/preview/{chunk.NZDHXREL.js → chunk.KPUX27ZT.js} +1 -1
- package/dist/preview/chunk.KSJ3J5UN.js +1 -0
- package/dist/preview/chunk.LESRQN3Y.js +32 -0
- package/dist/preview/{chunk.CTOBNZLM.js → chunk.LSL25VXW.js} +1 -1
- package/dist/preview/{chunk.SRFZKDQ6.js → chunk.LTJYKQJG.js} +1 -1
- package/dist/preview/{chunk.32BOL7OL.js → chunk.LXJW2Z2M.js} +1 -1
- package/dist/preview/{chunk.WQLAIEWJ.js → chunk.M33LUF3Q.js} +1 -1
- package/dist/preview/{chunk.B6LKLV32.js → chunk.MBNZ2HK7.js} +1 -1
- package/dist/preview/{chunk.SJYQ72EC.js → chunk.MYKRJ4SV.js} +1 -1
- package/dist/preview/{chunk.UWFEXEY3.js → chunk.N7D5LKBI.js} +1 -1
- package/dist/preview/{chunk.AL7LFNOS.js → chunk.NAPTE3S6.js} +1 -1
- package/dist/preview/{chunk.MX3Y3LPH.js → chunk.NB6WN4DO.js} +1 -1
- package/dist/preview/{chunk.MN6WHE4B.js → chunk.NHIPVAGR.js} +1 -1
- package/dist/preview/chunk.NICCIJV4.js +1 -0
- package/dist/preview/{chunk.MRXQBEPQ.js → chunk.NQPNK6I5.js} +1 -1
- package/dist/preview/{chunk.MG3DMURZ.js → chunk.NVNQSZ43.js} +1 -1
- package/dist/preview/{chunk.CI4DEKPX.js → chunk.NWK4E7TJ.js} +1 -1
- package/dist/preview/{chunk.HASVT7IC.js → chunk.NZB5S5UO.js} +1 -1
- package/dist/preview/{chunk.WESWDXRW.js → chunk.OS3WZV6C.js} +1 -1
- package/dist/preview/{chunk.OU5TRY4N.js → chunk.OYRZ2DEI.js} +1 -1
- package/dist/preview/{chunk.4T67XS2D.js → chunk.P5PXWOHI.js} +1 -1
- package/dist/preview/{chunk.KYKHZZT7.js → chunk.PRCWGE7A.js} +1 -1
- package/dist/preview/{chunk.DUY27OJV.js → chunk.PXHBPLTQ.js} +1 -1
- package/dist/preview/chunk.PXVJBL2C.js +1 -0
- package/dist/preview/{chunk.V4GAOZAW.js → chunk.Q3XKNZQW.js} +1 -1
- package/dist/preview/chunk.Q5IAXTF5.js +25 -0
- package/dist/preview/{chunk.2534FLZZ.js → chunk.QPP3OJVR.js} +1 -1
- package/dist/preview/{chunk.GLTWLQ6L.js → chunk.QRCTTDDQ.js} +1 -1
- package/dist/preview/{chunk.CMEETACI.js → chunk.QWQBPJ4U.js} +1 -1
- package/dist/preview/chunk.QXCYAFRT.js +1 -0
- package/dist/preview/{chunk.ESK3UZRC.js → chunk.R6FHEEJ7.js} +1 -1
- package/dist/preview/{chunk.GMAXA5GV.js → chunk.R77TACXU.js} +1 -1
- package/dist/preview/{chunk.HFKGND5Q.js → chunk.R7CRV2FE.js} +1 -1
- package/dist/preview/{chunk.XWXYC3BJ.js → chunk.R7ZZJOJW.js} +1 -1
- package/dist/preview/{chunk.S32AGJ3W.js → chunk.RBWYXVUW.js} +1 -1
- package/dist/preview/{chunk.N5XONWU2.js → chunk.RMRO5JZX.js} +1 -1
- package/dist/preview/{chunk.FFCUZPTC.js → chunk.RWCWRJJC.js} +1 -1
- package/dist/preview/{chunk.CXC5FOIO.js → chunk.S4ZWBCYC.js} +1 -1
- package/dist/preview/{chunk.UVAWWCFW.js → chunk.SELLAVIQ.js} +1 -1
- package/dist/preview/{chunk.7NQROWHU.js → chunk.SM6HTPYF.js} +1 -1
- package/dist/preview/chunk.SZCZD2GM.js +1 -0
- package/dist/preview/{chunk.SPU3BVAO.js → chunk.T2Q3AAQI.js} +1 -1
- package/dist/preview/{chunk.BV6HKTHK.js → chunk.T6KKNWZT.js} +1 -1
- package/dist/preview/{chunk.76QSPWSJ.js → chunk.U6PCKJ26.js} +1 -1
- package/dist/preview/{chunk.FEIJ7ETK.js → chunk.UEPVA6IS.js} +1 -1
- package/dist/preview/{chunk.PYRJDTVS.js → chunk.ULAMIQ52.js} +1 -1
- package/dist/preview/chunk.UMS7XRPO.js +1 -0
- package/dist/preview/{chunk.RNOBACJ6.js → chunk.VGIWQNJB.js} +1 -1
- package/dist/preview/{chunk.3H7YIKKC.js → chunk.VGTEEANA.js} +1 -1
- package/dist/preview/{chunk.ZZODDJYK.js → chunk.VKOCD5CL.js} +1 -1
- package/dist/preview/{chunk.P4CLT32V.js → chunk.VOHRQXCF.js} +5 -5
- package/dist/preview/chunk.W5UJLKIT.js +1 -0
- package/dist/preview/{chunk.E2R6VFZX.js → chunk.WUEU3QBL.js} +1 -1
- package/dist/preview/{chunk.34HGT7HQ.js → chunk.WWUMSCYC.js} +1 -1
- package/dist/preview/{chunk.3MU37W5D.js → chunk.XLM4ONUB.js} +1 -1
- package/dist/preview/{chunk.TVWN5I4M.js → chunk.XPR3QFF4.js} +1 -1
- package/dist/preview/{chunk.BYY7YXBI.js → chunk.XZLKTOJE.js} +1 -1
- package/dist/preview/{chunk.LYIHPVDZ.js → chunk.Y37DXEHG.js} +1 -1
- package/dist/preview/{chunk.OW72XZF4.js → chunk.YKACMLLU.js} +1 -1
- package/dist/preview/{chunk.DEH6O3K4.js → chunk.YKXUDACI.js} +1 -1
- package/dist/preview/{chunk.7G4M2PX3.js → chunk.YUEOUV7G.js} +2 -2
- package/dist/preview/chunk.YYWLYVAW.js +1 -0
- package/dist/preview/chunk.Z2JMTRF4.js +1 -0
- package/dist/preview/{chunk.SKG4IHT5.js → chunk.Z2UFPOAN.js} +1 -1
- package/dist/preview/chunk.ZEKKIMKI.js +1 -0
- package/dist/preview/{chunk.RMMJQYJJ.js → chunk.ZK42LPF5.js} +1 -1
- package/dist/preview/{chunk.GRYS6VSF.js → chunk.ZZGXVYW2.js} +1 -1
- package/dist/preview/index.html +50 -50
- package/dist/preview/page.js +2 -2
- package/package.json +6 -6
- package/dist/preview/chunk.3SBTQ66X.js +0 -1
- package/dist/preview/chunk.4N5R4K6O.js +0 -1
- package/dist/preview/chunk.AJAMTRZ3.js +0 -1
- package/dist/preview/chunk.AL45OI4A.js +0 -1
- package/dist/preview/chunk.CUB4IAUJ.js +0 -1
- package/dist/preview/chunk.CUN4VN42.js +0 -1
- package/dist/preview/chunk.ET3XJDPX.js +0 -1
- package/dist/preview/chunk.FG5ZFYYL.js +0 -1
- package/dist/preview/chunk.FTBH7CPZ.js +0 -1
- package/dist/preview/chunk.GYTVL6GR.js +0 -359
- package/dist/preview/chunk.JBR66TUP.js +0 -1
- package/dist/preview/chunk.JG2FGZF2.js +0 -18
- package/dist/preview/chunk.MMVCZOEX.js +0 -32
- package/dist/preview/chunk.NNUUD26E.js +0 -1
- package/dist/preview/chunk.QEQQXWYU.js +0 -1
- package/dist/preview/chunk.QPAJCRFB.js +0 -1
- package/dist/preview/chunk.S4CKKT3C.js +0 -1
- package/dist/preview/chunk.TMYGLXR6.js +0 -25
- package/dist/preview/chunk.UCUWEYKM.js +0 -1
- package/dist/preview/chunk.XZVPVAIS.js +0 -1
- package/dist/preview/chunk.Y2ZBVWII.js +0 -1
- package/dist/preview/chunk.Y3LTHEN7.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=globalThis.__graviewPreloaded??=new Set;for(const file of files){const href=new URL(file,base).href;if(asked.has(href))continue;asked.add(href);const link=document.createElement("link");link.rel="modulepreload";link.href=href;document.head.append(link)}};import{a as ne}from"./chunk.GJQF7I22.js";import{o as be,p as te,s as V,t as Me}from"./chunk.OW72XZF4.js";import{m as X,n as we,o as ke,p as Z,q as ee}from"./chunk.OJGHDWI6.js";import{c as Se}from"./chunk.CQPNDJAC.js";import{b as pe,c as ve,d as j,e as J,g as ye,o as Ae}from"./chunk.GYTVL6GR.js";import{D as q,Da as ge,Ea as he,F as K,Fa as T,G as O,J as me,La as F,Na as Q,O as fe,T as M,aa as A,ba as B,ca as _,m as ce,v as ue,z as de}from"./chunk.TMYGLXR6.js";import{a as E}from"./chunk.SDO3U72B.js";import{Jc as ae,Oc as se,ia as z,jd as le}from"./chunk.P4CLT32V.js";import{b as y}from"./chunk.AJZBJBMO.js";var P=y(O(),1),D=y(M(),1),re=T(E(()=>(__graviewPreload(import.meta.url,["./chunk.TMYGLXR6.js","./chunk.SDO3U72B.js","./chunk.P4CLT32V.js","./chunk.SLBWPVIY.js","./chunk.AJZBJBMO.js"]),import("./chunk.SRFZKDQ6.js")))),De=re.part(t=>(0,D.jsx)(t.HoverChipDoor,{}),{quiet:!0}),xe="A",$=T(E(()=>(__graviewPreload(import.meta.url,["./chunk.KHRS2SKB.js","./chunk.MX3Y3LPH.js","./chunk.B6LKLV32.js","./chunk.Y5AMZBHA.js","./chunk.SPU3BVAO.js","./chunk.2VJ52LGS.js","./chunk.JI2UVZUU.js","./chunk.HJCQ6I3S.js","./chunk.7GAC7U34.js","./chunk.T3RTFTOZ.js","./chunk.MN6WHE4B.js","./chunk.W2DKFQ6R.js","./chunk.LYIHPVDZ.js","./chunk.FU4YSVWX.js","./chunk.TNL2BVCH.js","./chunk.TBSPEO2L.js","./chunk.3SBTQ66X.js","./chunk.3H7YIKKC.js","./chunk.ET3XJDPX.js","./chunk.3TVAE7LE.js","./chunk.JX2C3HVD.js","./chunk.3MU37W5D.js","./chunk.XOZU4OFA.js","./chunk.Z7N3MJ36.js","./chunk.ZJXUWOG3.js","./chunk.TI4OSTQV.js","./chunk.HVX7LFWR.js","./chunk.GLTWLQ6L.js","./chunk.ACB4TD4W.js","./chunk.XCQ7ZPR5.js","./chunk.MY5OXSS7.js","./chunk.NVRK6A7T.js","./chunk.FKJ3HIA5.js","./chunk.OW72XZF4.js","./chunk.OJGHDWI6.js","./chunk.KRODTMGR.js","./chunk.VICCAWAN.js","./chunk.OU5TRY4N.js","./chunk.CQPNDJAC.js","./chunk.GYTVL6GR.js","./chunk.TMYGLXR6.js","./chunk.SDO3U72B.js","./chunk.P4CLT32V.js","./chunk.SLBWPVIY.js","./chunk.AJZBJBMO.js"]),import("./chunk.OHDJYGH7.js"))));var Ce=$.part((t,e)=>(0,D.jsx)(t.InspectorPane,{...e}),{what:"This card's acts"});function Le(t){let e=()=>{(typeof navigator>"u"||navigator.onLine!==!1)&&t()},n=globalThis;if(n.requestIdleCallback){let c=n.requestIdleCallback(e,{timeout:5e3});return()=>n.cancelIdleCallback?.(c)}let o=setTimeout(e,2500);return()=>clearTimeout(o)}var Oe=150,Ne="[data-graview-pick], [data-graview-view], [data-graview-record], [data-graview-act], [data-graview-field], a[href]";function Re(t){if(t.closest("[data-graview-face='pages'], [data-graview-popover]"))return null;let e=t.closest("[data-graview-pick]")?.getAttribute("data-graview-pick")??t.closest("[data-graview-view]")?.getAttribute("data-graview-view");return e?{face:"scene",on:e,about:[e]}:null}function We(t){let{store:e,principal:n,providers:o,ai:c}=A(),u=Me(),v=K(c),r=(0,P.useRef)({aimAt:t,store:e,principal:n,providers:o,prepareSections:u,chipsOn:v});r.current={aimAt:t,store:e,principal:n,providers:o,prepareSections:u,chipsOn:v},(0,P.useEffect)(()=>{if(typeof document>"u")return;let i=null,w=null,k=null,f=h=>{let d=r.current,b=d.chipsOn?d.aimAt(h):null;b&&(k=h,re.load().then(H=>{k===h&&H.restOn(b,h)},()=>{}))},l=()=>{i&&clearTimeout(i.timer),i=null},p=h=>{let d=r.current,b=d.aimAt(h);if(!b)return;let H=JSON.stringify([b.face,b.on,b.about,b.field,b.place,b.act,d.store.log.length]);H!==w&&(w=H,d.prepareSections(b),$.load().then(Pe=>Pe.prepareActs(d.store,b,{principal:d.principal,providers:d.providers}),()=>{}))},a=h=>h.target instanceof Element?h.target.closest(Ne):null,m=h=>{if(h.pointerType==="touch")return;let d=a(h);d!==null&&d===i?.element||(l(),d!==null&&(i={element:d,timer:setTimeout(()=>{i=null,p(d),f(d)},Oe)}))},g=h=>{let d=h.relatedTarget;k!==null&&!(d instanceof Node&&k.contains(d))&&(k=null,re.current?.leaveRest()),i!==null&&(d instanceof Node&&i.element.contains(d)||l())},S=h=>{if(h.pointerType==="mouse")return;let d=a(h);d&&p(d)},I=h=>{if(!ge())return;let d=a(h);d&&p(d)};return document.addEventListener("pointerover",m,{passive:!0}),document.addEventListener("pointerout",g,{passive:!0}),document.addEventListener("pointerdown",S,{capture:!0,passive:!0}),document.addEventListener("focusin",I),()=>{l(),document.removeEventListener("pointerover",m),document.removeEventListener("pointerout",g),document.removeEventListener("pointerdown",S,{capture:!0}),document.removeEventListener("focusin",I)}},[])}function ot({placement:t="float",openActs:e,aimAt:n}={}){let{menuAt:o,setMenuAt:c,registerActsDoor:u,ai:v}=A(),{selection:r}=F();We(n??Re),(0,P.useEffect)(()=>{if($.current)return;let l=()=>{g(),$.prefetch()},p=()=>{},a=he(()=>void(p=Le(l))),m=["pointerdown","keydown"];for(let S of m)document.addEventListener(S,l,{capture:!0,passive:!0});function g(){a(),p();for(let S of m)document.removeEventListener(S,l,{capture:!0})}return g},[]),(0,P.useEffect)(()=>{if(t==="menu")return u({key:xe,open:e??(l=>{let p=l.getBoundingClientRect(),a=l.closest("[data-graview-pick]")?.getAttribute("data-graview-pick")??l.closest("[data-graview-view]")?.getAttribute("data-graview-view")??void 0;c({x:Math.round(p.left+Math.min(16,p.width/2)),y:Math.round(Math.min(p.bottom,p.top+36)),...a?{on:a}:{}})})}),()=>u(null)},[t,u,c,e]);let i=o!==null||r.length>0&&e===void 0,[w,k]=(0,P.useState)(i);(0,P.useEffect)(()=>{i&&k(!0)},[i]);let f=K(v)?(0,D.jsx)(P.Suspense,{fallback:null,children:(0,D.jsx)(De,{})}):null;return!w&&!i?f:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(P.Suspense,{fallback:null,children:(0,D.jsx)(Ce,{placement:t,chosen:e===void 0})}),f]})}var U=y(O(),1),Y=y(M(),1),Ge=T(E(()=>(__graviewPreload(import.meta.url,["./chunk.25VJPUDH.js","./chunk.KHRS2SKB.js","./chunk.MX3Y3LPH.js","./chunk.B6LKLV32.js","./chunk.ESK3UZRC.js","./chunk.MMVCZOEX.js","./chunk.OJ64WTLW.js","./chunk.GMAXA5GV.js","./chunk.Y5AMZBHA.js","./chunk.IBJBCZKG.js","./chunk.NQ26KMSQ.js","./chunk.GJQF7I22.js","./chunk.SPU3BVAO.js","./chunk.OPCBZNKF.js","./chunk.UK5F3S2N.js","./chunk.2VJ52LGS.js","./chunk.JI2UVZUU.js","./chunk.HJCQ6I3S.js","./chunk.7GAC7U34.js","./chunk.T3RTFTOZ.js","./chunk.MN6WHE4B.js","./chunk.W2DKFQ6R.js","./chunk.LYIHPVDZ.js","./chunk.FU4YSVWX.js","./chunk.TNL2BVCH.js","./chunk.NZDHXREL.js","./chunk.TBSPEO2L.js","./chunk.5ON3JSAK.js","./chunk.3SBTQ66X.js","./chunk.SSAY4ITS.js","./chunk.3H7YIKKC.js","./chunk.ET3XJDPX.js","./chunk.3TVAE7LE.js","./chunk.JX2C3HVD.js","./chunk.3MU37W5D.js","./chunk.XOZU4OFA.js","./chunk.Z7N3MJ36.js","./chunk.ZJXUWOG3.js","./chunk.TI4OSTQV.js","./chunk.HVX7LFWR.js","./chunk.WVUJXDXZ.js","./chunk.GLTWLQ6L.js","./chunk.ACB4TD4W.js","./chunk.XCQ7ZPR5.js","./chunk.MY5OXSS7.js","./chunk.NVRK6A7T.js","./chunk.FKJ3HIA5.js","./chunk.GZHZLJBF.js","./chunk.OW72XZF4.js","./chunk.OJGHDWI6.js","./chunk.KRODTMGR.js","./chunk.VICCAWAN.js","./chunk.OU5TRY4N.js","./chunk.CQPNDJAC.js","./chunk.GYTVL6GR.js","./chunk.TMYGLXR6.js","./chunk.SDO3U72B.js","./chunk.P4CLT32V.js","./chunk.SLBWPVIY.js","./chunk.AJZBJBMO.js"]),import("./chunk.HASVT7IC.js")))),He=Ge.part((t,e)=>{let n=t.DraftFrame;return(0,Y.jsx)(n,{...e})},{what:"The view"});function lt(t){let{seatTalk:e}=A();return(0,U.useSyncExternalStore)(e.subscribe,()=>e.get().draft!==null,()=>!1)?(0,Y.jsx)(U.Suspense,{fallback:null,children:(0,Y.jsx)(He,{...t})}):null}var C=y(O(),1),x=y(M(),1),Ee=T(E(()=>(__graviewPreload(import.meta.url,["./chunk.JI2UVZUU.js","./chunk.R5R7CLOU.js","./chunk.3TVAE7LE.js","./chunk.JX2C3HVD.js","./chunk.3MU37W5D.js","./chunk.XOZU4OFA.js","./chunk.Z7N3MJ36.js","./chunk.6KYWJXZR.js","./chunk.TI4OSTQV.js","./chunk.ACB4TD4W.js","./chunk.VICCAWAN.js","./chunk.OU5TRY4N.js","./chunk.CQPNDJAC.js","./chunk.GYTVL6GR.js","./chunk.TMYGLXR6.js","./chunk.SDO3U72B.js","./chunk.P4CLT32V.js","./chunk.SLBWPVIY.js","./chunk.AJZBJBMO.js"]),import("./chunk.IFL2MYTQ.js")))),ze=Ee.part((t,e)=>{let n=t.QuickAskCard;return(0,x.jsx)(n,{...e})},{what:"The quick ask"});function ft({face:t,on:e=!0}){let{ai:n,aiDesk:o,selection:c,view:u}=A(),v=fe()?.open??!1,r=e&&q(n)&&!v,i=ye(o),w=(0,C.useRef)(null),k=(0,C.useRef)({selection:c,place:u.within?.view});return k.current={selection:c,place:u.within?.view},(0,C.useEffect)(()=>{if(!r)return;let f=ve(o);return f.drawn+=1,j(f),()=>{f.drawn=Math.max(0,f.drawn-1),f.drawn===0&&(f.open=null),j(f)}},[r,o]),(0,C.useEffect)(()=>{if(!r)return;let f=l=>{if(l.defaultPrevented||l.key.toLowerCase()!=="k"||!(l.metaKey||l.ctrlKey)||l.altKey||l.shiftKey)return;let p=w.current?.closest("[data-graview-embed]"),a=l.target,m=!(a instanceof Node)||a===document.body||a===document.documentElement;if(p&&!(m||a instanceof Node&&p.contains(a)))return;l.preventDefault(),Ee.prefetch();let g=document.activeElement,{selection:S,place:I}=k.current;J(o,{pointed:{...S[0]!==void 0?{on:S[0]}:{},about:S,...I?{place:I}:{}},returnTo:g instanceof HTMLElement&&g!==document.body?g:null})};return window.addEventListener("keydown",f,!0),()=>window.removeEventListener("keydown",f,!0)},[r,o]),r?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("span",{ref:w,hidden:!0,"data-graview-quick-ask":t}),i?(0,x.jsx)(C.Suspense,{fallback:null,children:(0,x.jsx)(ze,{face:t,opening:i,close:()=>J(o,null)},i.at)}):null]}):null}var R=y(O(),1),L=y(M(),1),oe=T(E(()=>(__graviewPreload(import.meta.url,["./chunk.R5R7CLOU.js","./chunk.3TVAE7LE.js","./chunk.JX2C3HVD.js","./chunk.3MU37W5D.js","./chunk.XOZU4OFA.js","./chunk.Z7N3MJ36.js","./chunk.6KYWJXZR.js","./chunk.TI4OSTQV.js","./chunk.ACB4TD4W.js","./chunk.VICCAWAN.js","./chunk.OU5TRY4N.js","./chunk.CQPNDJAC.js","./chunk.GYTVL6GR.js","./chunk.TMYGLXR6.js","./chunk.SDO3U72B.js","./chunk.P4CLT32V.js","./chunk.SLBWPVIY.js","./chunk.AJZBJBMO.js"]),import("./chunk.QPAJCRFB.js")))),qe=oe.part((t,e)=>{let n=t.InlineAiMenu;return(0,L.jsx)(n,{...e})},{what:"The AI's suggestions"}),Be=oe.part((t,e)=>{let n=t.GhostTray;return(0,L.jsx)(n,{...e})},{quiet:!0});function _e(){let{ai:t}=A(),e=q(t);return(0,R.useMemo)(()=>e?n=>({id:"inline-ai",heading:"AI",render:o=>(0,L.jsx)(R.Suspense,{fallback:null,children:(0,L.jsx)(qe,{target:n,close:o})}),prepare:()=>oe.prefetch()}):null,[e])}var Fe=[];function kt({children:t}){let e=_e(),n=(0,R.useMemo)(()=>e?[e]:Fe,[e]);return(0,L.jsx)(V,{sections:n,children:t})}function St(t){let{ai:e,aiDesk:n}=A(),{ghost:o}=me(n);return o===null||o.onCard||e.off?null:(0,L.jsx)(R.Suspense,{fallback:null,children:(0,L.jsx)(Be,{...t})})}var N=y(O(),1);var Te=y(M(),1),W=T(E(()=>(__graviewPreload(import.meta.url,["./chunk.GYTVL6GR.js","./chunk.TMYGLXR6.js","./chunk.SDO3U72B.js","./chunk.P4CLT32V.js","./chunk.SLBWPVIY.js","./chunk.AJZBJBMO.js"]),import("./chunk.WESWDXRW.js"))));function Ve(t){let e=t.about[0];if(t.about.length!==1||!e?.startsWith("aggregate:"))return;let n=e.slice(10).split("+");return n.length===1?n[0]:void 0}function $e(t,e){return t.filter(n=>n.as!==e.as&&!n.hidden&&(n.kind===e.kind||n.over?.includes(e.kind)===!0)).at(-1)}function Ye(t){let e=B(),n=e?.keptViews,o=e?.views,c=(0,N.useContext)(Ae);return(0,N.useMemo)(()=>!n||!o?null:u=>{let v=n.current(),r=Ve(u);if(u.place===void 0){if(u.face!=="pages"||r===void 0||u.on!==void 0||!v.may.lenses||!n.lens)return null;let l=o.arrangement?.()?.hide?.includes(r)===!0,p=m=>void W.load().then(g=>g.setListHidden(r,z(e.store.schema,r),n,m,c),String);return{id:"tidy-view",items:[l?{id:"show-list",label:"Show",hint:"Back in the places, for everyone",run:()=>p(!1)}:{id:"hide-list",label:"Hide",hint:"Off the places, for everyone; still at its address",run:()=>p(!0)}],prepare:()=>W.prefetch()}}let i=o.places().find(l=>l.as===u.place&&(r===void 0||l.kind===r||l.over?.includes(r)===!0));if(!i)return null;let w=le(i,v,n);if(!w)return null;let k=l=>void W.load().then(p=>p.setHidden(i,w,n,l,c),String);return{id:"tidy-view",items:[i.hidden?{id:"show-view",label:"Show",hint:"Back in the places, for everyone",run:()=>k(!1)}:{id:"hide-view",label:"Hide",hint:"Off the places and the scene, for everyone",run:()=>k(!0)},{id:"delete-view",label:"Delete",hint:`Kept ${30} days under Recently deleted`,run:()=>{let l=$e(o.places(),i);W.load().then(p=>p.remove(i,w,n,c).then(a=>a&&t?.(i,l)),String)}}],prepare:()=>W.prefetch()}},[n,o,c,t])}var Ue=[];function Dt({children:t}){let{view:e,go:n}=Q(),o=(0,N.useCallback)((v,r)=>{let i=e.within?.view;e.focusId===ue(v.kind)&&(i===void 0||i===v.as)&&n(r?de(e,r.kind,r.as):ce(e,!0))},[e,n]),c=Ye(o),u=(0,N.useMemo)(()=>c?[c]:Ue,[c]);return(0,Te.jsx)(V,{sections:u,children:t})}function Ot(t={}){return t.scope===void 0?ne:pe(ne,t.scope)}var G=y(O(),1),s=y(M(),1);function qt({inside:t=!1,widthOf:e}={}){let{store:n,view:o,emphasis:c,setEmphasis:u}=A(),v=be(),{selection:r,set:i}=F(),{show:w}=Q(),k=_(),f=(0,G.useMemo)(()=>{let a=new Map;for(let m of n.graph.allEdges()){let g=a.get(m.kind)??{count:0,ends:new Set};g.count+=1;for(let S of[m.from,m.to]){let I=n.graph.getNode(S);I&&g.ends.add(`kind:${I.kind}`)}a.set(m.kind,g)}return[...a.entries()].sort(([m],[g])=>m.localeCompare(g)).map(([m,g])=>({kind:m,count:g.count,ends:[...g.ends]}))},[n,k]),l=Math.max(0,...f.map(a=>a.count));if((0,G.useEffect)(()=>()=>u(null),[u]),!o.overview&&!t||f.length===0)return null;let p=new Set;for(let a of r){if(a.startsWith("kind:")){p.add(a);continue}let m=n.graph.getNode(a);m&&p.add(`kind:${m.kind}`)}return(0,s.jsxs)("section",{"aria-label":"What the lines mean",role:t?"group":void 0,"data-testid":"relation-key",style:t?{display:"grid",gap:1}:{position:"absolute",left:16,top:14,zIndex:se("rail"),display:"grid",gap:1,padding:"8px 10px",borderRadius:10,border:"1px solid var(--graview-edge)",background:"var(--graview-float)",boxShadow:"var(--graview-lift-low)",maxWidth:Ke,animation:"graview-settle 380ms 280ms ease backwards"},children:[t?null:(0,s.jsx)("span",{style:{fontSize:"0.75rem",letterSpacing:"0.16em",textTransform:"uppercase",color:"var(--graview-ink-faint)",paddingBottom:2},children:f.length===1?"1 relation":`${f.length} relations`}),e?(0,s.jsx)(Je,{aloft:o.overview===!0}):null,f.map(({kind:a,count:m,ends:g})=>{let{connector:S,style:I}=te(v,a),h=je(n.schema,a),d=c!==null?c===a:p.size===0||g.some(b=>p.has(b));return(0,s.jsxs)("button",{type:"button",title:n.schema.edge(a)?.description===void 0?`${m} of these`:h.words,onMouseEnter:()=>u(a),onMouseLeave:()=>u(null),onFocus:()=>u(a),onBlur:()=>u(null),onClick:()=>{i(g),w(null)},style:{all:"unset",outline:"revert-layer",cursor:"pointer",display:"grid",gridTemplateColumns:"30px 1fr auto",alignItems:"center",gap:8,minHeight:23,padding:"2px 4px",borderRadius:6,opacity:d?1:.4},children:[(0,s.jsx)("svg",{width:"30",height:"10","aria-hidden":"true",style:{display:"block",opacity:S.visible?1:.35},children:o.overview&&e?(0,s.jsx)("path",{d:"M 1 5 L 29 5",fill:"none",className:"graview-key-ribbon",stroke:"var(--graview-ink)",strokeOpacity:.35,strokeWidth:e(m,l)}):(0,s.jsx)("path",{d:"M 1 5 L 29 5",fill:"none",stroke:Z(I),strokeWidth:ee(I,!0),strokeDasharray:X[I.pattern],strokeLinecap:"round"})}),(0,s.jsxs)("span",{style:{display:"grid",minWidth:0},"data-graview-relation-words":a,children:[(0,s.jsx)("span",{style:{fontSize:"0.8125rem",color:"var(--graview-ink)"},children:h.words}),(0,s.jsx)("span",{style:{fontSize:"0.6875rem",color:"var(--graview-ink-faint)"},children:h.ends})]}),S.visible?null:(0,s.jsx)("span",{"data-graview-quiet":a,style:{fontSize:"0.75rem",color:"var(--graview-ink-faint)",fontStyle:"italic"},children:"not drawn"}),(0,s.jsx)("span",{style:{fontSize:"0.75rem",color:"var(--graview-ink-faint)",fontVariantNumeric:"tabular-nums"},children:m})]},a)})]})}var Ke="min(280px, calc(100% - 28px))";function je(t,e,n){let o=t.edge(e)?.from??[],c=new Map;for(let r of n!==void 0&&o.includes(n)?[n]:o.length>0?o:[""]){let i=Se(t,r,e,"out");c.set(i,[...c.get(i)??[],r])}let u=r=>r==="*"?"anything":z(t,r),v=[...c].map(([r,i])=>{let w=i.flatMap(f=>t.tryDefinition(f)?.edges[e]?.to??[]),k=i[0]&&w.length>0?`${i.map(u).join(", ")} \u2192 ${(w.includes("*")?["*"]:[...new Set(w)]).map(u).join(", ")}`:"";return[r.charAt(0).toUpperCase()+r.slice(1),k]});return{words:v.map(([r])=>r).join(" \xB7 "),ends:v.flatMap(([,r])=>r?[r]:[]).join(" \xB7 ")}}function Bt({edgeKind:t,kit:e,width:n=30}){let o=B(),c=(0,G.useMemo)(()=>ae(e??o?.brand?.kit),[e,o?.brand?.kit]),{connector:u,style:v}=te(c,t);return(0,s.jsx)("svg",{width:n,height:"8","aria-hidden":"true","data-testid":"relation-mark","data-graview-relation":t,style:{display:"inline-block",verticalAlign:"middle",opacity:u.visible?1:.35},children:(0,s.jsx)("path",{d:`M 1 4 L ${n-1} 4`,fill:"none",stroke:Z(v),strokeWidth:ee(v,!0),strokeDasharray:X[v.pattern],strokeLinecap:"round"})})}function Je({aloft:t}){let e={display:"grid",gridTemplateColumns:"30px 1fr",alignItems:"center",gap:8,minHeight:23,padding:"2px 4px"},n={fontSize:"0.75rem",color:"var(--graview-ink-muted)"};return(0,s.jsxs)("div",{role:"group","aria-label":"The lines","data-testid":"line-manners",style:{display:"grid",gap:1,paddingBottom:6,marginBottom:4,borderBottom:"1px solid var(--graview-edge)"},children:[t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{style:e,"data-graview-manner":"ribbon",children:[(0,s.jsx)("svg",{width:"30",height:"10","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M 1 5 L 29 5",stroke:"var(--graview-ink)",strokeOpacity:.35,strokeWidth:6})}),(0,s.jsx)("span",{style:n,children:"A relation between two districts, as wide as the links along it \u2014 point at one for its words"})]}),(0,s.jsxs)("div",{style:e,"data-graview-manner":"record",children:[(0,s.jsxs)("svg",{width:"30",height:"10","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M 1 5 L 25 5",stroke:"var(--graview-accent)",strokeWidth:1.8,strokeLinecap:"round"}),(0,s.jsx)("circle",{cx:26,cy:5,r:3,fill:"var(--graview-accent)"})]}),(0,s.jsx)("span",{style:n,children:"A chosen record's link to another record, labeled with the relation"})]}),(0,s.jsxs)("div",{style:e,"data-graview-manner":"district",children:[(0,s.jsx)("svg",{width:"30",height:"10","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M 1 5 L 29 5",stroke:"var(--graview-accent)",strokeWidth:1.8,strokeDasharray:"5 4"})}),(0,s.jsx)("span",{style:n,children:"A chosen record's links into a district, with how many"})]})]}):null,(0,s.jsxs)("div",{style:e,"data-graview-manner":"unsure",children:[(0,s.jsx)("svg",{width:"30",height:"10","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M 1 5 L 29 5",stroke:"var(--graview-accent)",strokeOpacity:ke,strokeWidth:1.8,strokeDasharray:we,strokeLinecap:"round"})}),(0,s.jsx)("span",{style:n,children:"Unsure: a link its maker was less than sure of, until a person keeps it \u2014 point at its words for what it was based on"})]})]})}var Ie=y(O(),1),ie=y(M(),1),Xe=T(E(()=>(__graviewPreload(import.meta.url,["./chunk.25VJPUDH.js","./chunk.LYIHPVDZ.js","./chunk.FU4YSVWX.js","./chunk.TNL2BVCH.js","./chunk.TBSPEO2L.js","./chunk.3SBTQ66X.js","./chunk.JX2C3HVD.js","./chunk.TI4OSTQV.js","./chunk.VICCAWAN.js","./chunk.OU5TRY4N.js","./chunk.CQPNDJAC.js","./chunk.GYTVL6GR.js","./chunk.TMYGLXR6.js","./chunk.SDO3U72B.js","./chunk.P4CLT32V.js","./chunk.SLBWPVIY.js","./chunk.AJZBJBMO.js"]),import("./chunk.32BOL7OL.js")))),Ze=Xe.part(t=>(0,ie.jsx)(t.SuggestedTray,{}),{quiet:!0});function Vt(){let{store:t,whileAway:e}=A(),n=_();return(0,Ie.useMemo)(()=>t.log.all().some(c=>c.suggests!==void 0&&!c.withheld),[t,n])||e?.tidied?(0,ie.jsx)(Ze,{}):null}export{ot as a,lt as b,ft as c,qt as d,Ke as e,Bt as f,_e as g,kt as h,St as i,Ye as j,Dt as k,Ot as l,Vt as m};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as n}from"./chunk.JG2FGZF2.js";import"./chunk.IE4ZJQV3.js";import"./chunk.TVWN5I4M.js";import"./chunk.B7LBG4UP.js";import"./chunk.7G4M2PX3.js";import"./chunk.UGFDSE37.js";import{l as s}from"./chunk.NNUUD26E.js";import"./chunk.PXQVXBNG.js";import"./chunk.OJ64WTLW.js";import"./chunk.GMAXA5GV.js";import"./chunk.IBJBCZKG.js";import"./chunk.NQ26KMSQ.js";import"./chunk.GJQF7I22.js";import"./chunk.SPU3BVAO.js";import"./chunk.OPCBZNKF.js";import"./chunk.UK5F3S2N.js";import"./chunk.2VJ52LGS.js";import"./chunk.JI2UVZUU.js";import"./chunk.CTOBNZLM.js";import"./chunk.34HGT7HQ.js";import"./chunk.TNL2BVCH.js";import"./chunk.NZDHXREL.js";import"./chunk.TBSPEO2L.js";import"./chunk.5ON3JSAK.js";import"./chunk.3SBTQ66X.js";import"./chunk.SSAY4ITS.js";import"./chunk.3TVAE7LE.js";import"./chunk.JX2C3HVD.js";import"./chunk.XOZU4OFA.js";import"./chunk.Z7N3MJ36.js";import"./chunk.MB7LKKUD.js";import"./chunk.WVUJXDXZ.js";import"./chunk.GLTWLQ6L.js";import"./chunk.ACB4TD4W.js";import"./chunk.XCQ7ZPR5.js";import"./chunk.MY5OXSS7.js";import"./chunk.NVRK6A7T.js";import"./chunk.FKJ3HIA5.js";import"./chunk.GZHZLJBF.js";import"./chunk.OW72XZF4.js";import"./chunk.OJGHDWI6.js";import"./chunk.KRODTMGR.js";import"./chunk.VICCAWAN.js";import"./chunk.OU5TRY4N.js";import"./chunk.CQPNDJAC.js";import"./chunk.GYTVL6GR.js";import{G as y,T as i}from"./chunk.TMYGLXR6.js";import"./chunk.SDO3U72B.js";import"./chunk.P4CLT32V.js";import"./chunk.SLBWPVIY.js";import{b as r}from"./chunk.AJZBJBMO.js";var c=r(y(),1),e=r(i(),1);function v({store:d,views:t,as:a,scope:o}){let l=(0,c.useMemo)(()=>s({scope:`.${o}`}),[o]);return(0,e.jsxs)("div",{"data-testid":"embed-picture","data-embed-content":"",tabIndex:0,"aria-label":t.places().find(m=>m.as===a)?.title??"The picture",style:{flex:"1 1 auto",minHeight:0,display:"grid",gridTemplateRows:"minmax(0, 1fr)",overflow:"auto",background:"var(--graview-ground)",color:"var(--graview-ink)",fontFamily:"var(--graview-font-body, system-ui)"},children:[(0,e.jsx)("style",{children:l}),(0,e.jsx)(n,{store:d,views:t,as:a})]})}export{v as PictureFace};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{k as a,l as b,m as c,n as d,o as e,p as f,q as g,r as h,s as i}from"./chunk.R5R7CLOU.js";import"./chunk.3TVAE7LE.js";import"./chunk.JX2C3HVD.js";import"./chunk.3MU37W5D.js";import"./chunk.XOZU4OFA.js";import"./chunk.Z7N3MJ36.js";import"./chunk.6KYWJXZR.js";import"./chunk.TI4OSTQV.js";import"./chunk.ACB4TD4W.js";import"./chunk.VICCAWAN.js";import"./chunk.OU5TRY4N.js";import"./chunk.CQPNDJAC.js";import"./chunk.GYTVL6GR.js";import"./chunk.TMYGLXR6.js";import"./chunk.SDO3U72B.js";import"./chunk.P4CLT32V.js";import"./chunk.SLBWPVIY.js";import"./chunk.AJZBJBMO.js";export{i as GhostTray,h as InlineAiMenu,g as askAgain,c as askInline,a as askOf,b as drawPanel,d as heldSuggestion,e as suggestOnce,f as takeOffer};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk.FEIJ7ETK.js";import"./chunk.34HGT7HQ.js";import"./chunk.LYIHPVDZ.js";import"./chunk.FU4YSVWX.js";import"./chunk.TNL2BVCH.js";import"./chunk.TBSPEO2L.js";import"./chunk.3SBTQ66X.js";import"./chunk.JX2C3HVD.js";import{b as n}from"./chunk.KYKHZZT7.js";import"./chunk.6KYWJXZR.js";import"./chunk.TI4OSTQV.js";import"./chunk.GZHZLJBF.js";import"./chunk.OW72XZF4.js";import"./chunk.OJGHDWI6.js";import"./chunk.KRODTMGR.js";import"./chunk.VICCAWAN.js";import"./chunk.OU5TRY4N.js";import"./chunk.CQPNDJAC.js";import"./chunk.GYTVL6GR.js";import{T as i}from"./chunk.TMYGLXR6.js";import"./chunk.SDO3U72B.js";import"./chunk.P4CLT32V.js";import"./chunk.SLBWPVIY.js";import{b as o}from"./chunk.AJZBJBMO.js";var e=o(i(),1);function g({entries:d,style:l,headingStyle:p,className:r}){return(0,e.jsxs)("section",{...r?{className:r}:{},"data-testid":"record-ai","aria-label":"What AI did here",style:{display:"grid",gap:10,...l},children:[(0,e.jsx)("h2",{style:p??{margin:0,fontSize:"1rem"},children:"What AI did here"}),(0,e.jsx)("ol",{style:{margin:0,padding:0,listStyle:"none",display:"grid",gap:8,fontSize:"0.875rem"},children:d.slice(0,8).map(t=>(0,e.jsx)(n,{entry:t,undo:s=>(0,e.jsx)(a,{batch:s})},t.id))})]})}export{g as RecordInteractions};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=globalThis.__graviewPreloaded??=new Set;for(const file of files){const href=new URL(file,base).href;if(asked.has(href))continue;asked.add(href);const link=document.createElement("link");link.rel="modulepreload";link.href=href;document.head.append(link)}};import{a as $e}from"./chunk.SDO3U72B.js";import{Ga as Yn,J as Un,Jd as ir,Ka as Pt,Ma as Zn,Nd as ar,Oc as Qn,Pd as ze,Qd as At,Ya as Xn,Yc as er,_c as tr,bd as nr,ed as rr,rc as Jn,td as or}from"./chunk.P4CLT32V.js";import{a as qe,b as L}from"./chunk.AJZBJBMO.js";var Ar=qe(w=>{"use strict";var It=Symbol.for("react.transitional.element"),Qo=Symbol.for("react.portal"),ei=Symbol.for("react.fragment"),ti=Symbol.for("react.strict_mode"),ni=Symbol.for("react.profiler"),ri=Symbol.for("react.consumer"),oi=Symbol.for("react.context"),ii=Symbol.for("react.forward_ref"),ai=Symbol.for("react.suspense"),si=Symbol.for("react.memo"),wr=Symbol.for("react.lazy"),li=Symbol.for("react.activity"),mr=Symbol.iterator;function di(e){return e===null||typeof e!="object"?null:(e=mr&&e[mr]||e["@@iterator"],typeof e=="function"?e:null)}var vr={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},br=Object.assign,xr={};function ge(e,t,n){this.props=e,this.context=t,this.refs=xr,this.updater=n||vr}ge.prototype.isReactComponent={};ge.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ge.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Er(){}Er.prototype=ge.prototype;function Lt(e,t,n){this.props=e,this.context=t,this.refs=xr,this.updater=n||vr}var _t=Lt.prototype=new Er;_t.constructor=Lt;br(_t,ge.prototype);_t.isPureReactComponent=!0;var gr=Array.isArray;function Vt(){}var O={H:null,A:null,T:null,S:null},Pr=Object.prototype.hasOwnProperty;function Ht(e,t,n){var r=n.ref;return{$$typeof:It,type:e,key:t,ref:r!==void 0?r:null,props:n}}function ui(e,t){return Ht(e.type,t,e.props)}function Dt(e){return typeof e=="object"&&e!==null&&e.$$typeof===It}function ci(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var hr=/\/+/g;function Ot(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ci(""+e.key):t.toString(36)}function fi(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Vt,Vt):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function me(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case It:case Qo:a=!0;break;case wr:return a=e._init,me(a(e._payload),t,n,r,o)}}if(a)return o=o(e),a=r===""?"."+Ot(e,0):r,gr(o)?(n="",a!=null&&(n=a.replace(hr,"$&/")+"/"),me(o,t,n,"",function(c){return c})):o!=null&&(Dt(o)&&(o=ui(o,n+(o.key==null||e&&e.key===o.key?"":(""+o.key).replace(hr,"$&/")+"/")+a)),t.push(o)),1;a=0;var s=r===""?".":r+":";if(gr(e))for(var l=0;l<e.length;l++)r=e[l],i=s+Ot(r,l),a+=me(r,t,n,i,o);else if(l=di(e),typeof l=="function")for(e=l.call(e),l=0;!(r=e.next()).done;)r=r.value,i=s+Ot(r,l++),a+=me(r,t,n,i,o);else if(i==="object"){if(typeof e.then=="function")return me(fi(e),t,n,r,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return a}function tt(e,t,n){if(e==null)return e;var r=[],o=0;return me(e,r,"","",function(i){return t.call(n,i,o++)}),r}function pi(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Sr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},yi={map:tt,forEach:function(e,t,n){tt(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return tt(e,function(){t++}),t},toArray:function(e){return tt(e,function(t){return t})||[]},only:function(e){if(!Dt(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};w.Activity=li;w.Children=yi;w.Component=ge;w.Fragment=ei;w.Profiler=ni;w.PureComponent=Lt;w.StrictMode=ti;w.Suspense=ai;w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O;w.__COMPILER_RUNTIME={__proto__:null,c:function(e){return O.H.useMemoCache(e)}};w.cache=function(e){return function(){return e.apply(null,arguments)}};w.cacheSignal=function(){return null};w.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=br({},e.props),o=e.key;if(t!=null)for(i in t.key!==void 0&&(o=""+t.key),t)!Pr.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(r[i]=t[i]);var i=arguments.length-2;if(i===1)r.children=n;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];r.children=a}return Ht(e.type,o,r)};w.createContext=function(e){return e={$$typeof:oi,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:ri,_context:e},e};w.createElement=function(e,t,n){var r,o={},i=null;if(t!=null)for(r in t.key!==void 0&&(i=""+t.key),t)Pr.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return Ht(e,i,o)};w.createRef=function(){return{current:null}};w.forwardRef=function(e){return{$$typeof:ii,render:e}};w.isValidElement=Dt;w.lazy=function(e){return{$$typeof:wr,_payload:{_status:-1,_result:e},_init:pi}};w.memo=function(e,t){return{$$typeof:si,type:e,compare:t===void 0?null:t}};w.startTransition=function(e){var t=O.T,n={};O.T=n;try{var r=e(),o=O.S;o!==null&&o(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(Vt,Sr)}catch(i){Sr(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),O.T=t}};w.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()};w.use=function(e){return O.H.use(e)};w.useActionState=function(e,t,n){return O.H.useActionState(e,t,n)};w.useCallback=function(e,t){return O.H.useCallback(e,t)};w.useContext=function(e){return O.H.useContext(e)};w.useDebugValue=function(){};w.useDeferredValue=function(e,t){return O.H.useDeferredValue(e,t)};w.useEffect=function(e,t){return O.H.useEffect(e,t)};w.useEffectEvent=function(e){return O.H.useEffectEvent(e)};w.useId=function(){return O.H.useId()};w.useImperativeHandle=function(e,t,n){return O.H.useImperativeHandle(e,t,n)};w.useInsertionEffect=function(e,t){return O.H.useInsertionEffect(e,t)};w.useLayoutEffect=function(e,t){return O.H.useLayoutEffect(e,t)};w.useMemo=function(e,t){return O.H.useMemo(e,t)};w.useOptimistic=function(e,t){return O.H.useOptimistic(e,t)};w.useReducer=function(e,t,n){return O.H.useReducer(e,t,n)};w.useRef=function(e){return O.H.useRef(e)};w.useState=function(e){return O.H.useState(e)};w.useSyncExternalStore=function(e,t,n){return O.H.useSyncExternalStore(e,t,n)};w.useTransition=function(){return O.H.useTransition()};w.version="19.2.8"});var N=qe((Ja,kr)=>{"use strict";kr.exports=Ar()});var Dr=qe(ot=>{"use strict";var Pi=Symbol.for("react.transitional.element"),Ai=Symbol.for("react.fragment");function Hr(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var o in t)o!=="key"&&(n[o]=t[o])}else n=t;return t=n.ref,{$$typeof:Pi,type:e,key:r,ref:t!==void 0?t:null,props:n}}ot.Fragment=Ai;ot.jsx=Hr;ot.jsxs=Hr});var Le=qe((ls,Nr)=>{"use strict";Nr.exports=Dr()});var fe={focusId:null,relation:null,expanded:[],pins:{}},Ue=e=>{let t=Number(e);return Number.isFinite(t)?t:null};function Q(e){let t=new URLSearchParams;e.focusId&&t.set("focus",e.focusId),e.relation&&t.set("relation",e.relation),e.overview&&t.set("overview","1"),e.zoom&&t.set("zoom","1"),e.past&&t.set("past","1"),e.shown&&e.shown.length>0&&t.set("show",[...e.shown].sort().join(",")),e.selection!==void 0&&e.selection.length>0&&t.set("sel",[...e.selection].sort().join(",")),e.expanded.length>0&&t.set("expand",[...e.expanded].sort().join(","));for(let r of Object.keys(e.pins).sort()){let o=e.pins[r];t.set(`pin.${r}`,`${Ye(o.x)},${Ye(o.y)}`)}e.pan&&(e.pan.x!==0||e.pan.y!==0)&&t.set("pan",`${Ye(e.pan.x)},${Ye(e.pan.y)}`);for(let r of Object.keys(e.within??{}).sort()){let o=e.within[r];o.length>0&&t.set(`in.${r}`,o)}e.q&&e.q.trim().length>0&&t.set("q",e.q);let n=t.toString();return n?`#${n}`:"#"}function $o(e){return e&&e.startsWith("agg:")?`aggregate:${e.slice(4)}`:e}function Ze(e){let t=e.includes("#")?e.slice(e.indexOf("#")+1):e,n=new URLSearchParams(t),r=Object.create(null);for(let[m,p]of n){if(!m.startsWith("pin."))continue;let[g,x]=p.split(","),R=g===void 0?null:Ue(g),y=x===void 0?null:Ue(x);R===null||y===null||(r[m.slice(4)]={x:R,y})}let o=Object.create(null);for(let[m,p]of n)!m.startsWith("in.")||p.length===0||(o[m.slice(3)]=p);let i=n.get("view");i&&i.length>0&&o.view===void 0&&(o.view=i);let a=n.get("pan")?.split(",")??[],s=a[0]===void 0?null:Ue(a[0]),l=a[1]===void 0?null:Ue(a[1]),c=(n.get("sel")??"").split(",").filter(m=>m.length>0).sort(),u=n.get("overview")==="1";return{...c.length>0?{selection:c}:{},...u?{overview:!0}:{},...n.get("zoom")==="1"?{zoom:!0}:{},...n.get("past")==="1"?{past:!0}:{},...n.get("show")?{shown:[...new Set(n.get("show").split(",").filter(Boolean))].sort()}:{},...s!==null&&l!==null?{pan:{x:s,y:l}}:{},...Object.keys(o).length>0?{within:o}:{},...n.get("q")?.trim()?{q:n.get("q")}:{},focusId:$o(n.get("focus")),relation:n.get("relation"),expanded:(n.get("expand")??"").split(",").filter(m=>m.length>0&&(u||!m.startsWith("kind:"))).sort(),pins:r}}function _a(e){let t=Ze(e);return Q(t)==="#"?{...t,overview:!0}:t}function Ha(e){let t=Q(e);return t==="#overview=1"?"":t}function Ye(e){return Math.round(e*100)/100}function lr(e,t){return Q(e)===Q(t)}var sr="edge:";function dr(e){if(!e.startsWith(sr))return null;let t=e.slice(sr.length).split(":");if(t.length!==3)return null;let[n,r,o]=t;if(!n||!r||!o)return null;try{return{kind:decodeURIComponent(n),from:decodeURIComponent(r),to:decodeURIComponent(o)}}catch{return null}}function kt(e){let{pan:t,...n}=e;return{...n,pins:{}}}function $(e,t){if(t===e.focusId)return{...e,focusId:t};let n=kt(e);return{...n.within?.q!==void 0?se(n,"q",null):n,focusId:t}}function ur(e,t){return{...e,relation:t}}function se(e,t,n){let r={...e.within??{}};if(n===null?delete r[t]:r[t]=n,Object.keys(r).length===0){let{within:o,...i}=e;return i}return{...e,within:r}}function pe(e,t){if(t!==e.overview&&(e=kt(e)),!t){let n=e.expanded.filter(r=>!r.startsWith("kind:"));return{...e,overview:!1,expanded:n}}return{...e,overview:t}}function Xe(e,t){if(t.length===0){let{selection:n,...r}=e;return r}return{...e,selection:[...t]}}function Ve(e,t){if(t!==(e.zoom===!0)&&(e=kt(e)),!t){let{zoom:n,...r}=e;return r}return{...e,zoom:!0}}function Je(e,t){let n=new Set(e.expanded);return n.has(t)?n.delete(t):n.add(t),{...e,expanded:[...n].sort()}}var et="aggregate:",Qe="kind:";function Rt(e){return`${Qe}${e}`}function ye(e){return e.startsWith(Qe)?e.slice(Qe.length):null}var ja="kinds:beyond";function Uo(e){let t=ye(e);return t?[t]:le(e)}function ee(...e){return`${et}${[...e].sort().join("+")}`}function cr(e){return e.startsWith(et)}function le(e){return!cr(e)||e.includes("|")?[]:e.slice(et.length).split("+").filter(Boolean)}function fr(e,t,n={}){let r=ye(t);if(r!==null&&e.overview&&n.ownPicture!==!0)return Je(e,t);let o=r!==null?ee(r):t;if(e.zoom&&e.focusId===o&&!(r!==null&&n.carry))return Ve(e,!1);if(r!==null&&n.carry){let i=pe({...$(e,o),relation:null},!1);return se(Ve(i,!0),"q",n.carry)}return Ve({...$(e,o),relation:null},!0)}function Yo(e,t,n){return se(pe($(e,ee(t)),!1),"view",n)}function Wa(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var pr="aggregate:";function Tt(e){return e.startsWith(pr)&&e.includes("|")}var Mt=e=>e?.off===!0,Zo=e=>e!==void 0&&!Mt(e)&&(e.fast!==void 0||e.thinking!==void 0||e.answer!==void 0||e.decide!==void 0||e.complete!==void 0||e.turn!==void 0),yr=e=>e!==void 0&&!Mt(e)&&(e.fast!==void 0||e.decide!==void 0),Xo=e=>e?.suggestOnOpen!==!1&&yr(e),Jo=e=>e?.hoverChips===!0&&yr(e);var Ct={};var Rr=L(N(),1),mi={turns:[],outcomes:new Map,busy:!1,pending:null,draft:null,draftNote:null},Tr=e=>`graview:seat:${e}`;function gi(e){if(!e)return{};try{let t=sessionStorage.getItem(e);if(!t)return{};let n=JSON.parse(t);return{...Array.isArray(n.turns)?{turns:n.turns}:{},...Array.isArray(n.outcomes)?{outcomes:new Map(n.outcomes)}:{},...n.draft?.drawn?{draft:n.draft}:{}}}catch{return{}}}function hi(e,t){if(e)try{sessionStorage.setItem(e,JSON.stringify({turns:t.turns.slice(-40),outcomes:[...t.outcomes],draft:t.draft}))}catch{}}function Nt(e){let t=e===null?null:Tr(e),n={...mi,...gi(t)},r=new Set,o=(i,a=!0)=>{n=i,a&&hi(t,n);for(let s of[...r])s()};return{get:()=>n,subscribe(i){return r.add(i),()=>void r.delete(i)},setTurns:i=>o({...n,turns:i(n.turns)}),settle:(i,a)=>o({...n,outcomes:new Map(n.outcomes).set(i,a)}),setBusy:i=>o({...n,busy:i},!1),ask:i=>o({...n,pending:i.trim()||null}),takePending(){let i=n.pending;return i!==null&&o({...n,pending:null},!1),i},setDraft:(i,a=null)=>o({...n,draft:i,draftNote:a})}}function Si(e){return(0,Rr.useSyncExternalStore)(e.subscribe,e.get,e.get)}var Cr=L(N(),1),wi={entries:[],ghost:null,loaded:!1};function Mr(e,t){let n=new Map(e.map(r=>[r.id,r]));for(let r of t)n.set(r.id,{...n.get(r.id),...r});return[...n.values()].sort((r,o)=>r.at<o.at?1:r.at>o.at?-1:0)}function jt(e){let t=wi,n=new Set,r=o=>{t=o;for(let i of[...n])i()};return{get:()=>t,subscribe:o=>(n.add(o),()=>n.delete(o)),record:o=>{r({...t,entries:Mr(t.entries,[o])}),Promise.resolve(e()?.keep?.(o)).catch(i=>{console.warn("The host did not keep an AI interaction:",i)})},setGhost:o=>r({...t,ghost:o}),load:()=>{if(t.loaded)return;r({...t,loaded:!0});let o=e()?.load;o&&Promise.resolve(o()).then(i=>r({...t,entries:Mr(t.entries,i)})).catch(i=>{console.warn("The host's AI interactions could not be read:",i)})}}}function vi(e){return(0,Cr.useSyncExternalStore)(e.subscribe,e.get,e.get)}function Or(e){return e?.closest?.("[data-graview-pick]")?.getAttribute("data-graview-pick")??null}var nt=L(N(),1),rt=(0,nt.createContext)(void 0),bi=()=>(0,nt.useContext)(rt);var P=L(N(),1),Ie=(0,P.createContext)(null);function Ir(){return(0,P.useContext)(Ie)}function xi(e,t){let n=Ir(),r=(0,P.useMemo)(()=>n?n.live.seenBy(t):e,[n,e,t]),o=(0,P.useRef)(0),i=(0,P.useCallback)(a=>r.subscribe(()=>{o.current+=1,a()}),[r]);return(0,P.useSyncExternalStore)(i,()=>o.current,()=>0),r}var Lr=$e(()=>(__graviewPreload(import.meta.url,["./chunk.ZJXUWOG3.js","./chunk.TI4OSTQV.js","./chunk.SLBWPVIY.js","./chunk.AJZBJBMO.js"]),import("./chunk.PFXGWY3P.js")));function Wt(e){let[,t]=(0,P.useReducer)(r=>r+1,0),n=e.publishing?.mode==="on-publish"&&!er();return(0,P.useEffect)(()=>{n&&Lr().then(t,()=>{})},[n]),!n}var Vr,Ei=400;function Gt(e,t,n){let r=(0,P.useContext)(Ie),o=r!==null&&r.owns(e,t),[i,a]=(0,P.useState)(null),[s,l]=(0,P.useState)(Vr);(0,P.useEffect)(()=>{if(s||o||i===null)return;let b=!0;return Lr().then(V=>{Vr=V,b&&l(V)},()=>{}),()=>{b=!1}},[s,o,i]);let[c,u]=(0,P.useState)(0),m=(0,P.useMemo)(()=>o||i===null||i>=e.log.length||!s?void 0:s.askArchived(e,i,n)??s.askDeclaration(n,i),[o,e,i,n,s,c]),p=m&&"waiting"in m?m.waiting:void 0,g=m&&"seq"in m?m:null,[x,R]=(0,P.useState)(void 0);(0,P.useEffect)(()=>{if(!p)return;let b=!0,V=setTimeout(()=>b&&R(p),Ei);return p.then(()=>b&&u(I=>I+1)),()=>{b=!1,clearTimeout(V)}},[p]);let y=p!==void 0&&x!==p||g!==null,v=(0,P.useMemo)(()=>{if(o||i===null||i>=e.log.length||!s||y)return null;try{let b=s.pastAt(e,i,n);return{seq:i,at:b.past?.at,store:b}}catch{return null}},[o,e,i,n,s,y,c]),S=(0,P.useRef)(null),E=y?S.current:v;(0,P.useEffect)(()=>{S.current=E},[E]);let A=(0,P.useCallback)(b=>a(b===null?null:b>=e.log.length?Number.POSITIVE_INFINITY:b),[e]),F=(0,P.useCallback)((b,V)=>[e,E?.store].some(I=>I!==void 0&&(I===b||I.seenBy(V)===b)),[e,E]),H=i!==null,j=(0,P.useMemo)(()=>({past:E,open:H,show:A,live:e,host:n,owns:F,archive:g}),[E,H,A,e,n,F,g]);return o?r:j}var _r=L(N(),1),Ft=(0,_r.createContext)(null);var jr=e=>`graview:setting:${e}`;function Wr(){return localStorage}function Gr(e,t){try{let n=(t??Wr()).getItem(jr(e.name));if(n!==null&&e.options.some(r=>r.value===n))return n}catch{}return e.initial}function Fr(e,t,n){try{(n??Wr()).setItem(jr(e.name),t)}catch{}}function Kr(e,t){if(typeof document>"u")return;let n=document.documentElement;if(e.honored==="root-font-size"){n.style.fontSize=t===e.initial?"":t;return}let r=`graview${e.name.replace(/-([a-z0-9])/g,(o,i)=>i.toUpperCase()).replace(/^[a-z]/,o=>o.toUpperCase())}`;t===e.initial?delete n.dataset[r]:n.dataset[r]=t}var _=L(N(),1);function Kt(e){return ze(e)}var ki=12,Ri=4;function Ti(e,t,n){let r=Kt(t);return e.get(r)??{participant:r,who:t.id??t.kind,at:null,mode:"docked",since:n,trail:[]}}var it=(e,t)=>t===null||e[e.length-1]===t?e:[...e,t].slice(-ki);function Br(e,t){let n=e.filter(o=>o.length>0);if(n.length===0)return null;if(n.length<=Ri)return n[0];let r=new Set(n.map(o=>t(o)).filter(o=>o!==void 0));return r.size===1?Rt([...r][0]):n[0]}function Bt(e,t,n){let r=new Map(e);if(t.type==="rest"){for(let[a,s]of e)s.mode!=="asking"&&s.mode!=="docked"&&t.at-s.since>=t.holdMs&&r.set(a,{...s,mode:"docked",at:null,trail:[],say:void 0,confidence:void 0});return r}if(t.author.kind!=="agent")return r;let o=Ti(e,t.author,t.at),i=a=>r.set(o.participant,{...o,...a,since:t.at});switch(t.type){case"read":{let a=Br(t.ids,n);return i({at:a,mode:"reading",trail:it(o.trail,a)}),r}case"about-to-write":case"write":{let a=Br(t.ids,n);return i({at:a,mode:"writing",trail:it(o.trail,a),say:void 0,confidence:void 0}),r}case"refused":return i({at:t.where,mode:"refused",say:t.say,confidence:void 0,trail:it(o.trail,t.where)}),r;case"asking":return i({at:t.where??o.at,mode:"asking",say:t.say,...t.confidence!==void 0?{confidence:t.confidence}:{confidence:void 0},trail:it(o.trail,t.where)}),r;case"said":return i({say:t.say,...t.confidence!==void 0?{confidence:t.confidence}:{confidence:void 0},...t.caption?{caption:t.caption}:{}}),r;case"over":return i({over:t.over}),r;case"home":return i({at:null,mode:"docked",trail:[],say:void 0,confidence:void 0,over:null}),r;default:return r}}var qr="graview:session";function zr(e){let t=()=>typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID().slice(0,8):Math.random().toString(36).slice(2,10);try{let n=e??sessionStorage,r=n.getItem(qr);if(r)return r;let o=t();return n.setItem(qr,o),o}catch{return t()}}var qt={name:"share-where",title:"Where you are",description:"Whether the others here see which stop you are on.",honored:"root-attribute",options:[{value:"shared",label:"Shown"},{value:"private",label:"Hidden"}],initial:"shared"},zt={name:"share-over",title:"What you point at",description:"Whether the others see the thing under your pointer, outlined in your color.",honored:"root-attribute",options:[{value:"private",label:"Kept to yourself"},{value:"shared",label:"Outlined for others"}],initial:"private"},$r=[qt,zt],Mi=800;function Ur(e){let{channel:t,store:n,view:r,principal:o,session:i,robots:a,seatWho:s,settingValues:l,setView:c,ttlMs:u=ar,people:m,seats:p}=e,[g,x]=(0,_.useState)(()=>new Map),[R,y]=(0,_.useState)(null),[v,S]=(0,_.useState)(null),[E,A]=(0,_.useState)(null),F=typeof o.id=="string"&&o.id.length>0,H=F&&(l[qt.name]??qt.initial)==="shared",j=H&&(l[zt.name]??zt.initial)==="shared",b=Kt({kind:o.kind,...o.id?{id:o.id}:{},session:i}),V=F?Xn(o,{graph:n.graph,schema:n.schema,...p?{seats:p}:{},...m?{people:m}:{}}):"",I=s?a.get(`agent:${s}:${i}`):void 0,W=(0,_.useMemo)(()=>!t||!H?null:{participant:b,kind:o.kind,name:V,...o.onBehalfOf?.id?{onBehalfOf:o.onBehalfOf.id,...o.onBehalfOf.name?{onBehalfOfName:o.onBehalfOf.name}:{}}:{},hue:Jn(o.id??"nobody"),stop:E??Q(r),...j?{over:R}:{},...I?{robot:{at:I.at,mode:I.mode}}:{},at:new Date().toISOString()},[t,H,j,b,V,o.id,o.kind,o.onBehalfOf?.id,o.onBehalfOf?.name,r,E,R,I?.at,I?.mode]),De=(0,_.useRef)(null),de=k=>k&&t?.here({...k,caret:De.current??void 0,at:new Date().toISOString()}),Ee=(0,_.useCallback)(k=>{De.current=k,de(W)},[t,W]);(0,_.useEffect)(()=>{if(!W)return;de(W);let k=setInterval(()=>de(W),Mi);return()=>clearInterval(k)},[t,W]),(0,_.useEffect)(()=>t?t.onWho(K=>x(At(new Map,K,Date.now(),u))):void 0,[t,u]);let Ne=g.size>0;(0,_.useEffect)(()=>{if(!Ne)return;let k=setInterval(()=>{x(K=>{let re=At(K,[],Date.now(),u);return re.size===K.size?K:re})},Math.max(250,Math.min(1e3,u/4)));return()=>clearInterval(k)},[Ne,u]),(0,_.useEffect)(()=>{if(!t||typeof window>"u")return;let k=()=>t.leave();return window.addEventListener("pagehide",k),()=>window.removeEventListener("pagehide",k)},[t]),(0,_.useEffect)(()=>{if(!j||typeof document>"u")return;let k=null,K=re=>{let oe=Or(re.target);oe!==k&&(k=oe,y(oe))};return document.addEventListener("pointermove",K,{passive:!0}),()=>document.removeEventListener("pointermove",K)},[j]);let q=(0,_.useRef)(null),B=v?g.get(v)??null:null,Pe=(0,_.useCallback)(k=>{q.current=null,S(k)},[]);return(0,_.useEffect)(()=>{if(v){if(!B){S(null);return}B.stop!==q.current?.stop&&(q.current={stop:B.stop,at:Date.now()},c(Ze(B.stop)))}},[v,B,c]),(0,_.useEffect)(()=>{let k=q.current;!v||k===null||Date.now()-k.at<400||lr(r,Ze(k.stop))||S(null)},[r,v]),(0,_.useEffect)(()=>{if(!v||typeof document>"u")return;let k=K=>{K.key==="Escape"&&S(null)};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[v]),(0,_.useMemo)(()=>({who:g,sharing:W?{participant:b,name:V}:null,following:B,follow:Pe,sayWhere:A,sayCaret:Ee}),[g,W,b,V,B,Pe,Ee])}var Y=L(N(),1);function Yr(e){return ze(e.author)}function Ci(e,t){return e.length>1?"co-edited":t==="rule"?"rule":t==="agent"?"autonomous":"directed"}function Zr(e,t,n,r,o){let i=new Map;for(let[l,c]of e)r-c.at<o&&i.set(l,c);let a=new Set(n.flatMap(l=>l.nodeIds)),s=(l,c,u)=>{let m=i.get(l),p=m?.participants.includes(Yr(c))?m.participants:[...m?.participants??[],Yr(c)];i.set(l,{at:r,manner:Ci(p,c.author.kind),intent:c.intent,wrote:(m?.wrote??!1)||(u.wrote??!1),read:(m?.read??!1)||(u.read??!1),broke:(m?.broke??!1)||a.has(l),participants:p})};for(let l of t){for(let c of l.writes)s(c,l,{wrote:!0});for(let c of l.reads)l.writes.includes(c)||s(c,l,{read:!0})}for(let l of n)for(let c of l.nodeIds){let u=i.get(c);i.set(c,{at:r,manner:u?.manner??"rule",intent:u?.intent??l.message,wrote:u?.wrote??!1,read:u?.read??!1,broke:!0,participants:u?.participants??["rule::"]})}return i}var Oi=2600;function Xr(e,t=Oi){let[n,r]=(0,Y.useState)(()=>new Map),o=(0,Y.useRef)(n);o.current=n;let i=(0,Y.useRef)(null),a=(0,Y.useCallback)(l=>{o.current=l,r(l),i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{o.current=new Map,r(new Map)},t)},[t]);(0,Y.useEffect)(()=>{let l=e.violations(),c=e.subscribe((u,m)=>{let p=e.violations(),g=rr(e.allInvariants(),l,p).introduces;l=p,a(Zr(o.current,m,g.map(x=>({nodeIds:x.nodeIds,message:x.message})),Date.now(),t))});return()=>{c(),i.current&&clearTimeout(i.current)}},[e,t,a]);let s=(0,Y.useCallback)(l=>{l.reads.length!==0&&a(Zr(o.current,[Vi(l)],[],Date.now(),t))},[t,a]);return{activity:n,noteAttention:s}}function Vi(e){return{id:`attention:${e.intent}`,seq:-1,batch:"attention",author:e.author,intent:e.intent,mutation:null,primitives:[],reads:e.reads,writes:[],at:new Date().toISOString()}}var d=L(N(),1);function Jr(){let e=null,t=new Set,n=new Set,r=o=>{for(let i of n)i(o)};return{subscribe(o){return t.add(o),t.size===1&&r(!0),()=>{t.delete(o),t.size===0&&(e=null,r(!1))}},snapshot:()=>e,set(o){if(!(e===o||e&&o&&e.x===o.x&&e.y===o.y)){e=o;for(let i of t)i()}},get listeners(){return t.size},onActive(o){return n.add(o),()=>void n.delete(o)}}}var at=L(N(),1),Ii=e=>e.definitions.some(t=>Yn(t).size>0);function Qr(e,t,n){let[r,o]=(0,at.useState)(void 0),i=(n.roles??[]).join("\0");return(0,at.useEffect)(()=>{if(!t||!Ii(e.schema)){o(void 0);return}let a=!0,s=!1,l=e.graph,c=()=>{s||(s=!0,queueMicrotask(()=>{s=!1,a&&e.reread()}))},u=Zn(t,{kind:n.kind,...n.id===void 0?{}:{id:n.id},...n.roles?{roles:n.roles}:{}},c);return Pt(l,u.read),o(u),e.reread(),()=>{a=!1,Pt(l,void 0)}},[e,t,n.kind,n.id,i]),r}function eo(){let e=!1,t=new Set;return{moving:()=>e,set(n){if(n!==e){e=n;for(let r of t)r()}},subscribe(n){return t.add(n),()=>t.delete(n)}}}var te=L(Le(),1),Li="graview:place-menu",_e=(0,d.createContext)(null),oo=(0,d.createContext)("scene");function _i({mode:e,children:t}){return(0,te.jsx)(oo.Provider,{value:e,children:t})}function Hi(){return(0,d.useContext)(oo)}var io={kind:"human"},Di=[],Ni=[],ji=[],$t=[];function ao(e,t){let n=(0,d.useId)();(0,d.useEffect)(()=>{if(!globalThis.__graviewWatch)return;let r=t??io,o=()=>nr(e,r,n);o();let i,a=e.subscribe(()=>{clearTimeout(i),i=setTimeout(o,250)});return()=>{clearTimeout(i),a(),globalThis.__graviewWatch?.unseen?.({words:[],from:n,gone:!0})}},[e,t,n])}var Wi=()=>{try{return typeof location<"u"&&new URLSearchParams(location.search).get("as")==="published"?"published":void 0}catch{return}},Gi={off:!0};function Fi({store:e,views:t,initialView:n,scheme:r="dark",initialSelection:o,principal:i,as:a,seats:s=Di,onSeat:l,people:c=Ni,memory:u,presenceTtlMs:m,app:p,settings:g=p?.settings??ji,presence:x,typing:R,brand:y,locale:v,timeZone:S,onKeepLens:E,providers:A,ai:F,files:H,resolveApp:j,history:b,linkedRecords:V,menuSections:I,keptViews:W,subscriptions:De,dismissals:de,whileAway:Ee,signIn:Ne,view:q,onViewChange:B,children:Pe}){let k=(0,d.useContext)(_e),K=I??k?.menuSections,re=Ne??k?.signIn,oe=W??k?.keptViews,[Io,Lo]=(0,d.useState)(null),ue=Io??i??s[0]?.principal??io,je=Gt(e,ue,b),cn=je.past&&je.live===e?je.past.store:e,ht=a??Wi(),St=!Wt(e),D=(0,d.useMemo)(()=>St?e:cn.seenBy(ue,ht?{as:ht}:void 0),[St,e,cn,ue,ht]);ao(e,ue);let[ie]=(0,d.useState)(()=>zr(u)),[fn,_o]=(0,d.useState)(!1),pn=(0,d.useCallback)(()=>_o(!0),[]),ae=(0,d.useMemo)(()=>x?[...g,...$r]:g,[g,x]),[wt]=(0,d.useState)(()=>n??Xt(t,e.schema)),[Ho,yn]=(0,d.useState)(()=>Xe(wt??fe,o??wt?.selection??[])),Ae=(0,d.useRef)(wt??fe).current,[mn,Do]=(0,d.useState)(null),[gn,No]=(0,d.useState)(null),X=(0,d.useContext)(_e),[hn]=(0,d.useState)(()=>X?.seatTalk??Nt(y?.name??e.schema.kinds.join(","))),vt=F??X?.ai??Ct,We=(0,d.useMemo)(()=>vt.off?Gi:vt,[vt]),Sn=(0,d.useRef)(We.interactions);Sn.current=We.interactions;let[wn]=(0,d.useState)(()=>X?.aiDesk??jt(()=>Sn.current)),[jo]=(0,d.useState)(()=>X?.subscriptions??tr()),vn=De??X?.subscriptions??jo,bt=E??X?.onKeepLens,Ge=p??X?.app,Fe=v??X?.locale,Wo=y?.locale??Ge?.brand?.locale,Ke=S??X?.timeZone;Un({reader:Fe,app:Wo,readerTimeZone:Ke,appTimeZone:y?.timeZone??Ge?.brand?.timeZone});let bn=(0,d.useRef)(null),xn=(0,d.useCallback)(f=>{bn.current=f},[]),En=(0,d.useCallback)(f=>bn.current?.whereIs(f)??null,[]),[Pn]=(0,d.useState)(()=>Jr()),[An]=(0,d.useState)(()=>eo()),[xt,Go]=(0,d.useState)(null),[ke,kn]=(0,d.useState)(()=>new Map),Re=(0,d.useRef)(ke);Re.current=ke;let Te=(0,d.useRef)(null),Et=(0,d.useCallback)(f=>D.graph.getNode(f)?.kind,[D]),J=(0,d.useCallback)(f=>{let h=Bt(Re.current,f,Et);Re.current=h,kn(h),Te.current&&clearTimeout(Te.current),[...h.values()].some(C=>C.mode!=="docked"&&C.mode!=="asking")&&(Te.current=setTimeout(()=>{let C=Bt(Re.current,{type:"rest",at:Date.now(),holdMs:Zt},Et);Re.current=C,kn(C)},Zt+20))},[Et]),Rn=(0,d.useCallback)(f=>J({...f,at:f.at??Date.now()}),[J]),Tn=(0,d.useCallback)(f=>{Go(f),f&&J({type:"home",author:{kind:"agent",id:f,session:ie},at:Date.now()})},[J,ie]);(0,d.useEffect)(()=>D.subscribe((f,h)=>{for(let T of h)T.author.kind==="agent"&&J({type:"write",author:T.author,ids:T.writes,at:Date.now()})}),[D,J]),(0,d.useEffect)(()=>()=>{Te.current&&clearTimeout(Te.current)},[]);let U=(0,d.useMemo)(()=>({...ue,session:ie}),[ue,ie]),Mn=Qr(D,V,U),Cn=(0,d.useCallback)(f=>{Lo(f),l?.(f)},[l]),[Me,Fo]=(0,d.useState)(()=>Object.fromEntries(ae.map(f=>[f.name,Gr(f,u)])));(0,d.useEffect)(()=>{for(let f of ae)Kr(f,Me[f.name]??f.initial)},[ae,Me]);let On=(0,d.useCallback)((f,h)=>{let T=ae.find(C=>C.name===f);!T||!T.options.some(C=>C.value===h)||(Fr(T,h,u),Fo(C=>({...C,[f]:h})))},[ae,u]),[Vn,Ko]=(0,d.useState)(null),{activity:In,noteAttention:Ln}=Xr(D),_n=(0,d.useCallback)(f=>{Ln(f),J({type:"read",author:f.author,ids:f.reads,at:Date.now()})},[Ln,J]),ce=(0,d.useCallback)(f=>{if(ye(f)!==null||le(f).length>0||Tt(f))return!0;let h=dr(f);return h?D.graph.allEdges().some(T=>T.kind===h.kind&&T.from===h.from&&T.to===h.to):D.graph.getNode(f)!==void 0},[D]),Hn=(0,d.useCallback)(f=>{let h=f.selection??$t,T=h.filter(ce),C=T.length===h.length?f:Xe(f,T);return C.focusId!==null&&!ce(C.focusId)&&(C=$(C,null)),C},[ce]),Ce=(0,d.useCallback)(f=>{let h=Hn(f),T=ro(D,U,h.shown);if(h.focusId!==null&&T.size>0){let C=le(h.focusId),$n=D.graph.getNode(h.focusId);(C.length>0?C.every(zo=>T.has(zo)):$n?T.has($n.kind):!1)&&(h={...h,focusId:null})}if(!h.overview&&h.focusId===null){let C=Ae.focusId!==null&&!ce(Ae.focusId)?Xt(t,e.schema)??{...fe,overview:!0}:Ae;C.focusId!==null&&ce(C.focusId)?h={...h,focusId:C.focusId}:C.overview===!0&&(h={...h,overview:!0})}return h},[Hn,ce,D,Ae,U,t,e.schema]),z=Ce(q??Ho),Dn=(0,d.useMemo)(()=>ro(D,U,z.shown),[D,U,z.shown]),Nn=(0,d.useMemo)(()=>[...D.modules.administered.entries()].map(([f,h])=>{let T=D.mayAdminister(f,U);return{name:f,...h.description?{description:h.description}:{},kinds:h.kinds??[],canShow:T,shown:T&&(z.shown??[]).includes(f)}}),[D,U,z.shown]),Oe=(0,d.useCallback)(f=>{let h=T=>Ce(typeof f=="function"?f(T):f);if(q!==void 0){B?.(h(q));return}B&&B(h(z)),yn(T=>h(T))},[z,B,q,Ce]);(0,d.useEffect)(()=>{q===void 0&&yn(f=>{let h=Ce(f);return h===f?f:h})},[z,q,Ce]);let jn=z.selection??$t,Wn=(0,d.useCallback)(f=>{Oe(h=>Xe(h,typeof f=="function"?f(h.selection??$t):f))},[Oe]),{who:Be,following:Gn,follow:Fn,sayWhere:Bo,sayCaret:Kn,sharing:Bn}=Ur({channel:x,store:D,view:z,principal:U,session:ie,robots:ke,seatWho:xt,settingValues:Me,setView:Oe,seats:s,people:c,...m!==void 0?{ttlMs:m}:{}}),qo=(0,d.useMemo)(()=>({store:D,scheme:r,views:t,view:z,setView:Oe,homeView:Ae,selection:jn,setSelection:Wn,menuAt:mn,setMenuAt:Do,whereIs:En,pointer:Pn,motion:An,registerScene:xn,robots:ke,noteSeat:Rn,seatWho:xt,registerSeatWho:Tn,actsDoor:gn,registerActsDoor:No,seatTalk:hn,aiDesk:wn,...u?{memory:u}:{},who:Be,following:Gn,follow:Fn,sayWhere:Bo,sharing:Bn,session:ie,ai:We,resolveApp:j,linkedRecords:V,menuSections:K,...oe?{keptViews:oe}:{},subscriptions:vn,dismissals:de,whileAway:Ee,signIn:re,linkedReads:Mn,movedByHand:fn,noteMoved:pn,emphasis:Vn,setEmphasis:Ko,activity:In,noteAttention:_n,principal:U,seats:s,people:c,takeSeat:Cn,settings:ae,settingValues:Me,chooseSetting:On,hiddenKinds:Dn,administered:Nn,...A?{providers:A}:{},...y?{brand:y}:{},...bt?{onKeepLens:bt}:{},app:Ge,...Fe?{locale:Fe}:{},...Ke?{timeZone:Ke}:{}}),[D,r,t,z,Oe,jn,Wn,mn,En,Pn,An,xn,ke,Rn,xt,Tn,gn,hn,wn,u,Be,Gn,Fn,Bn,ie,We,j,V,K,oe,vn,de,Ee,re,Mn,fn,pn,Vn,In,_n,U,s,c,Cn,ae,Me,On,Dn,Nn,A,y,bt,Ge,Fe,Ke]),qn=(0,d.useMemo)(()=>R?{typing:R,sayCaret:Kn,who:Be}:null,[R,Kn,Be]),zn=H?(0,te.jsx)(rt.Provider,{value:H,children:Pe}):Pe;return(0,te.jsx)(_e.Provider,{value:qo,children:(0,te.jsx)(Ie.Provider,{value:je,children:(0,te.jsx)($i,{children:St?null:qn?(0,te.jsx)(Ft.Provider,{value:qn,children:zn}):zn})})})}var so=(0,d.createContext)(null),Ut,Yt=new Set,Ki=e=>(Yt.add(e),()=>void Yt.delete(e)),to=()=>Ut;function Bi(e){if(!Ut){Ut=e;for(let t of[...Yt])t()}}var qi=300;function zi(e){let t=0;return async(n,r)=>{let o=++t;return await new Promise(i=>setTimeout(i,qi)),o===t?e(n,r):[]}}function $i({children:e}){let{store:t,view:n,views:r,principal:o,hiddenKinds:i,selection:a,ai:s}=ne(),l=st(),c=n.q,u=n.focusId,m=!!(c&&c.trim().length>0),p=(0,d.useSyncExternalStore)(Ki,to,to),g=(0,d.useMemo)(()=>m&&p?{flagged:new Set(t.violations().flatMap(E=>E.nodeIds)),touched:p.touchWeights(t.log.all())}:null,[t,l,m,p]),x=u?t.graph.getNode(u)?.kind??ye(u)??(le(u).length===1?le(u)[0]:void 0):void 0,R=(0,d.useMemo)(()=>s.near&&zi(s.near),[s.near]),y=(0,d.useMemo)(()=>!c||!g||!p?null:p.search(t,c,{...x?{inKind:x}:{},principal:o,places:r.places(),kinds:t.schema.kinds.filter(E=>!i.has(E)),from:[...a,...u&&t.graph.has(u)?[u]:[]],flagged:g.flagged,touched:g.touched,limit:200,rank:R}),[t,c,o,r,i,a,u,x,g,R]),[v,S]=(0,d.useState)();return(0,d.useEffect)(()=>void y?.later?.then(E=>S([y,E])),[y]),(0,te.jsx)(so.Provider,{value:v?.[0]===y?v[1]:y,children:e})}var no=new WeakMap;function js(e){let t=no.get(e);return t||no.set(e,t=new Set(e.matched)),t}function Ui(){return(0,d.useContext)(so)}function ne(){let e=(0,d.useContext)(_e);if(!e)throw new Error("useGraview must be used inside a <GraviewProvider>.");return e}function Jt(){return(0,d.useContext)(_e)??null}function st(){let{store:e}=ne(),t=(0,d.useRef)(null),n=(0,d.useRef)(null),r=(0,d.useCallback)(()=>(n.current!==e&&(n.current=e,t.current=null),t.current??=e.graph.allNodes(),t.current),[e]),o=(0,d.useCallback)(i=>e.subscribe(()=>{t.current=null,i()}),[e]);return(0,d.useSyncExternalStore)(o,r,r)}function Yi(e){let{store:t}=ne(),n=(0,d.useCallback)(o=>t.subscribe(o),[t]),r=(0,d.useCallback)(()=>e===null?void 0:t.graph.getNode(e),[t,e]);return(0,d.useSyncExternalStore)(n,r,r)}function ro(e,t,n){let r=new Set(e.modules.disabledKinds);for(let o of e.kindsKeptFrom(t))r.add(o);for(let[o,i]of e.modules.administered)if(!(e.mayAdminister(o,t)&&(n??[]).includes(o)))for(let a of i.kinds??[])r.add(a);return r}var Zt=2600;var lo=new WeakSet,Zi=e=>lo.has(e),Xi=e=>void lo.add(e);function Xt(e,t){let n=ir(e.arrangement?.()?.first,t,e.places());if(!(!n||n.to==="home"))return n.to==="place"?{...fe,focusId:ee(n.place.kind),within:{view:n.place.as}}:{...fe,focusId:ee(n.kind)}}var uo=L(N(),1),Ji=(0,uo.createContext)(!1);var lt=Symbol.for("graview.default-view");function co(e){return Object.defineProperty(e,lt,{value:!0,enumerable:!1}),e}function fo(e){return typeof e=="function"&&e[lt]===!0}var dt=Symbol.for("graview.replaces-page");function po(e){return Object.defineProperty(e,dt,{value:!0,enumerable:!1}),e}function yo(e){return typeof e=="function"&&e[dt]===!0}var ut=Symbol.for("graview.bleeds");function mo(e){return Object.defineProperty(e,ut,{value:!0,enumerable:!1}),e}function go(e){return typeof e=="function"&&e[ut]===!0}var ct=Symbol.for("graview.previews");function ho(e,t={}){return Object.defineProperty(e,ct,{value:t,enumerable:!1}),e}function So(e){return typeof e=="function"?e[ct]:void 0}function Qi(e){return or(e)}function ea(e,t){if(t===e)return e;for(let o of t.registrations())e.register(o.kind,o,o.view,o);let n=t.arrangement?.();n&&e.arrange?.(n);let r=t.homeView?.();return r&&e.home?.(r),e}var M=L(N(),1),Z=L(Le(),1),Qt=new Set,ft=0;function en(e){return()=>{ft+=1;let t=e();return t.then(()=>void(ft-=1),()=>void(ft-=1)),t}}var ta=()=>ft,yt=(0,M.createContext)(null);function na(){return{waiting:new Map,at:0}}function ra(e){for(let[t,n]of e.waiting)n<e.at&&e.waiting.delete(t);e.at+=1}var oa=e=>e?.waiting.size??0;function bo(e,t){e?.waiting.set(t,e.at)}function xo(e){let t=(0,M.useContext)(yt);(0,M.useLayoutEffect)(()=>{t?.waiting.delete(e)},[t,e])}function ia(e){let t={},n=!1,r=new Set,o=(0,M.lazy)(en(()=>e().then(a=>{n=!0;let s=a.default;function l(c){return xo(t),(0,M.createElement)(s,c)}return{default:l}},a=>{for(let s of r)s.waiting.delete(t);throw a})));function i(a){let s=(0,M.useContext)(yt);return!n&&s&&(r.add(s),bo(s,t)),(0,M.createElement)(o,a)}return i}var Eo=!1,Po=!1,pt=new Set;function aa(){Eo=!0}function sa(){Po=!0;for(let e of[...pt])e();pt.clear()}var Ao=()=>Po||!Eo;function la(e){return Ao()?(e(),()=>{}):(pt.add(e),()=>void pt.delete(e))}var wo=!1;function tn(){for(let e of[...Qt])e()}function da(){wo||typeof window>"u"||(wo=!0,window.addEventListener("online",tn))}function nn(e){let t,n=!1,r=!1,o,i=0,a=new Set,s=()=>{i+=1;for(let p of[...a])p()},l=p=>(a.add(p),()=>void a.delete(p)),c=()=>i,u=()=>void m().catch(()=>{});function m(){if(n)return Promise.resolve(t);if(o)return o;let p=e().then(g=>(t=g,n=!0,r=!1,o=void 0,Qt.delete(u),s(),g),g=>{throw o=void 0,r=!0,Qt.add(u),da(),s(),g});return p.catch(()=>{}),o=p,p}return{load:m,prefetch:u,get current(){return t},get failed(){return r},part(p,g={}){let x=g.what??"This part",R={};function y(E){(0,M.useSyncExternalStore)(l,c,c),xo(R);let A=(0,M.useRef)(null),F=(0,M.useRef)(null),H=(0,M.useRef)(!1);return(0,M.useEffect)(()=>{r&&o===void 0&&u()},[]),n&&typeof document<"u"&&A.current!==null&&document.activeElement===A.current&&(H.current=!0),(0,M.useLayoutEffect)(()=>{if(!(!n||!H.current)){H.current=!1;for(let j=F.current?.nextElementSibling??null;j!==null;j=j.nextElementSibling){let b=j.matches(vo)?j:j.querySelector(vo);if(b instanceof HTMLElement){b.focus();return}}}}),n?(0,Z.jsxs)(Z.Fragment,{children:[H.current?(0,Z.jsx)("span",{ref:F,hidden:!0}):null,p(t,E)]}):g.quiet?null:(0,Z.jsx)(ua,{what:x,button:A,...g.as?{as:g.as}:{}})}let v=(0,M.lazy)(en(()=>m().then(()=>({default:y}),()=>({default:y}))));function S(E){let A=(0,M.useContext)(yt),[F]=(0,M.useState)(()=>n||r);return!n&&!r&&bo(A,R),(0,M.createElement)(F?y:v,E)}return S}}}var vo="button,a[href],input,select,textarea,[tabindex]:not([tabindex='-1'])";function ua({what:e,button:t,as:n="p"}){let o=typeof navigator<"u"&&navigator.onLine===!1?`${e} will load when you're back online.`:`${e} didn't load.`;return(0,Z.jsxs)(n,{"data-testid":"lazy-part-missing",style:{margin:0,fontSize:"0.875rem",color:"var(--graview-ink-muted)"},children:[(0,Z.jsx)("span",{role:"status",children:o})," ",(0,Z.jsx)("button",{ref:t,type:"button","data-testid":"lazy-part-retry",onClick:tn,style:{font:"inherit",fontWeight:600,color:"var(--graview-ink)",background:"none",border:"1px solid var(--graview-edge)",borderRadius:6,padding:"2px 10px"},children:"Try again"})]})}var Se=L(N(),1);function ca(){let{selection:e,setSelection:t}=ne();return(0,Se.useMemo)(()=>({selection:e,set:n=>t(n),clear:()=>t([]),toggle:n=>t(r=>r.includes(n)?r.filter(o=>o!==n):[...r,n]),isSelected:n=>e.includes(n)}),[e,t])}function fa(){let{store:e}=ne(),t=st();return(0,Se.useMemo)(()=>pa(e),[e,t])}var ko=new WeakMap;function pa(e){let t=ko.get(e);if(!t){let n={violations:null};e.subscribe(()=>{n.violations=null}),ko.set(e,n),t=n}return t.violations??=e.violations(),t.violations}function ya(){let{view:e,setView:t}=ne();return(0,Se.useMemo)(()=>({view:e,url:Q(e),focus:n=>t(r=>$(r,n)),show:n=>t(r=>ur(r,n)),toggle:n=>t(r=>Je(r,n)),go:n=>t(n)}),[e,t])}var he={at:0,depth:0,listeners:new Set,tell(){for(let e of this.listeners)e()}};typeof window<"u"&&window.addEventListener("popstate",e=>{let t=e.state;he.at=typeof t?.graview=="number"?t.graview:0,he.at>he.depth&&(he.depth=he.at),he.tell()});var G=L(N(),1),on={profile:{trigger:"profile-button",pane:"profile",opens:"press",focus:"into",drawn:["shell","embed"]},problems:{trigger:"standing",pane:"problems",opens:"press",focus:"into",drawn:["shell","embed"]},places:{trigger:"app-places-open",pane:"app-places",opens:"press",focus:"into",drawn:["embed"]},here:{trigger:"here-open",pane:"here-list",opens:"press",focus:"into",drawn:["shell","embed","pages"]},suggested:{trigger:"suggested-button",pane:"suggested",opens:"press",focus:"into",drawn:["shell","embed","pages"]},activity:{trigger:"activity-button",pane:"activity",opens:"press",focus:"into",drawn:["shell","embed","pages"]},find:{trigger:"find-box",pane:"find-strip",opens:"typing",focus:"stays",drawn:["shell"]},districts:{trigger:"beyond-more",pane:"beyond-list",opens:"press",focus:"into",drawn:["shell","embed"]},acts:{trigger:null,pane:"context-menu",opens:"context-menu",focus:"into",drawn:["shell","embed","pages"]},arrange:{trigger:"arrange-add",pane:"arrange-list",opens:"press",focus:"into",drawn:["pages"]},"studio-ask":{trigger:"studio-agent",pane:"studio-agent-panel",opens:"press",focus:"into",drawn:["studio"]}},ma={position:"fixed",inset:"auto",margin:0,zIndex:Qn("popover"),boxSizing:"border-box"},mt=6,we=8,ga=e=>typeof e.showPopover=="function";function gt(e){try{return e.matches(":popover-open")}catch{return!1}}function ha(e){if(typeof e=="function"){let r=e();return r?{left:r.x,right:r.x,top:r.y,bottom:r.y}:null}let t=e.current;if(!t||!t.isConnected)return null;let n=t.getBoundingClientRect();return{left:n.left,right:n.right,top:n.top,bottom:n.bottom}}function an(e,t,n={}){let r=ha(t);if(!r)return;let o={width:document.documentElement.clientWidth||innerWidth,height:innerHeight},i=e.dataset.graviewDesignedHeight??=e.style.maxHeight;e.style.maxHeight=i;let a=e.getBoundingClientRect(),s=o.height-r.bottom-mt-we,l=r.top-mt-we,c=a.height<=s||s>=l,u=Math.max(96,Math.floor(c?s:l)),m=Math.min(a.height,u);a.height>u&&(e.style.maxHeight=i?`min(${i}, ${u}px)`:`${u}px`);let p=a.width,g=n.align==="start"?r.left:r.right-p,x=typeof t=="function"?null:t.current?.closest("[data-graview-embed]")?.getBoundingClientRect();x&&p<=x.right-x.left&&(g<x.left?g=r.left+p<=x.right?r.left:x.left:g+p>x.right&&(g=r.right-p>=x.left?r.right-p:x.right-p));let R=p>=o.width-2*we?Math.max(0,(o.width-p)/2):Math.max(we,Math.min(g,o.width-we-p)),y=c?r.bottom+mt:Math.max(we,r.top-mt-m);e.style.left=`${Math.round(R)}px`,e.style.top=`${Math.round(y)}px`}function Ro(e,t,n,r={}){let o=r.align??"end";(0,G.useLayoutEffect)(()=>{let i=e.current;if(!t||!i)return;if(ga(i)&&!gt(i))try{i.showPopover(),wa()}catch{}let a=0,s=c=>{c?.target instanceof Node&&i.contains(c.target)||(cancelAnimationFrame(a),a=requestAnimationFrame(()=>an(i,n,{align:o})))};an(i,n,{align:o}),addEventListener("resize",s),addEventListener("scroll",s,!0);let l=typeof ResizeObserver>"u"?null:new ResizeObserver(()=>s());return l?.observe(i),()=>{if(cancelAnimationFrame(a),removeEventListener("resize",s),removeEventListener("scroll",s,!0),l?.disconnect(),i.isConnected&>(i))try{i.hidePopover()}catch{}}},[t,e,o])}var sn=new Set;function Sa(e){return sn.add(e),()=>sn.delete(e)}function wa(){for(let e of sn)if(!(!e.isConnected||!gt(e)))try{e.hidePopover(),e.showPopover()}catch{}}var ve=null,va='button:not([disabled]), [href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), summary, [tabindex]:not([tabindex="-1"])';function ba(e){for(let t of e.querySelectorAll(va))if(t.closest("[hidden]")===null&&getComputedStyle(t).visibility!=="hidden")return t;return e}var rn=()=>{let e=document.activeElement;return e===null||e===document.body};function xa(e,t={}){let{at:n,returnTo:r,onOpenChange:o}=t,i=t.popover!==!1,[a,s]=(0,G.useState)(!1),l=t.open??a,c=(0,G.useRef)(null),u=(0,G.useRef)(null),m=(0,G.useCallback)(S=>{c.current=S},[]),p=(0,G.useCallback)(S=>{u.current=S},[]),g=`graview-popover-${(0,G.useId)().replace(/:/g,"")}`,x=(0,G.useRef)({onOpenChange:o,returnTo:r,controlled:t.open!==void 0});x.current={onOpenChange:o,returnTo:r,controlled:t.open!==void 0};let R=(0,G.useCallback)(S=>{x.current.controlled||s(S),x.current.onOpenChange?.(S)},[]),y=(0,G.useCallback)(()=>{(document.querySelector(`[aria-controls="${g}"]`)??c.current??x.current.returnTo?.()??null)?.focus({preventScroll:!0})},[g]),v=(0,G.useCallback)(S=>{let E=u.current,A=typeof document>"u"?null:document.activeElement,F=A===null||A===document.body||E!==null&&E.contains(A);R(!1),!(!S||!F)&&(y(),requestAnimationFrame(()=>{rn()&&y()}))},[R,y]);return Ro(u,i&&l,n??c,t.align?{align:t.align}:{}),(0,G.useEffect)(()=>{if(!i||!l)return;let S={name:e,close:()=>v(!1)};if(ve&&ve.close!==S.close&&ve.close(),ve=S,on[e].focus==="into"){let b=u.current;b&&!b.contains(document.activeElement)&&ba(b).focus({preventScroll:!0})}let E=b=>{b.key==="Escape"&&v(!0)},A=b=>{let V=b.target;if(!(V instanceof Node))return;let I=u.current;if(I?.contains(V)||c.current?.contains(V))return;let W=V instanceof Element?V.closest('[role="dialog"], [role="alertdialog"]'):null;W&&!(I&&W.contains(I))||(v(!1),on[e].focus==="into"&&requestAnimationFrame(()=>{(rn()||I!==null&&I.contains(document.activeElement))&&y()}))},F=null,H=null,j=b=>{let V=b.target;if(!(V instanceof Element))return;let I=u.current,W=V.closest('[role="dialog"], [role="alertdialog"]');!W||I&&(I.contains(W)||W.contains(I))||(F=W,v(!1))};return document.addEventListener("keydown",E),document.addEventListener("pointerdown",A,!0),document.addEventListener("focusin",j),()=>{document.removeEventListener("keydown",E),document.removeEventListener("pointerdown",A,!0),document.removeEventListener("focusin",j);let b=F;b&&typeof MutationObserver<"u"&&(H?.disconnect(),H=new MutationObserver(()=>{b.isConnected||(H?.disconnect(),requestAnimationFrame(()=>{(rn()||document.activeElement.closest("[hidden]")!==null)&&y()}))}),H.observe(document.body,{childList:!0,subtree:!0}),setTimeout(()=>H?.disconnect(),10*6e4)),ve?.close===S.close&&(ve=null)}},[i,l,e,v,y]),{open:l,setOpen:S=>S?R(!0):v(!0),toggle:()=>l?v(!0):R(!0),trigger:{ref:m,"aria-expanded":l,"aria-controls":g,"data-graview-popover-trigger":e},pane:{ref:p,id:g,popover:"manual",tabIndex:-1,"data-graview-popover":e,"data-graview-overlay":""}}}var be=L(N(),1);var To=(0,be.createContext)(null);function Ea(){let e=(0,be.useContext)(To),t=Jt(),n=(r,o,i)=>t?.setView(a=>se(se(pe($(a,ee(r)),!1),"view",o),"filter",i?.filter??null));return(0,be.useMemo)(()=>e??{record:r=>{t&&(t.setView(o=>$(pe(o,!1),r)),t.setSelection([r]))},place:(r,o)=>{let i=t?.views.places().find(a=>a.as===r);i&&n(i.kind,i.as,o)},list:(r,o)=>n(r,null,o)},[e,t])}var xe=L(N(),1);var Pa=nn($e(()=>(__graviewPreload(import.meta.url,["./chunk.TMYGLXR6.js","./chunk.SDO3U72B.js","./chunk.P4CLT32V.js","./chunk.SLBWPVIY.js","./chunk.AJZBJBMO.js"]),import("./chunk.AZOW57MT.js"))));function Aa(e,t,n){let r,o=!1,i=()=>{let{hidden:s,removed:l}=t.current();r||o||s.length+l.length===0||(r=()=>{},Pa.load().then(c=>{o||(r=c.watchTidied(e,t,n))},String))};i();let a=t.onChange?.(i);return()=>{o=!0,a?.(),r?.()}}function ka(e,t){let[n,r]=(0,xe.useState)();return(0,xe.useEffect)(()=>t?Aa(e,t,o=>r([e,o])):void 0,[e,t]),n?.[0]===e?n[1]:e}var Mo=L(N(),1),Ra=(0,Mo.createContext)(!1);var ln=L(N(),1),Ta=(0,ln.createContext)(null),Ma=(0,ln.createContext)(null);var Co=L(N(),1),Ca=(0,Co.createContext)(null);var Oo=L(N(),1),dn='button:not([disabled]), a[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), summary, [tabindex]:not([tabindex="-1"])',un=e=>e instanceof HTMLElement&&(e.matches(dn)||e.hasAttribute("tabindex")),He=e=>typeof e.checkVisibility=="function"?e.checkVisibility():e.getClientRects().length>0;function Oa(e,t){let n=l=>l.replace(/["\\]/g,"\\$&"),r=t.getAttribute("data-testid"),o=t.getAttribute("data-graview-pick"),i=t.getAttribute("aria-label"),a=r?`[data-testid="${n(r)}"]`:o?`[data-graview-pick="${n(o)}"]`:i?`${t.tagName.toLowerCase()}[aria-label="${n(i)}"]`:null;if(!a)return null;let s=e.querySelector(a);return s&&un(s)&&He(s)?s:null}var Va=e=>e.isConnected&&un(e)&&!e.matches(":disabled")&&e instanceof HTMLElement&&He(e);function Vo(e,t){let n=t?Oa(e,t):null;if(n)return n;let r=e.querySelector("[data-graview-view][tabindex]");if(r&&He(r))return r;for(let o of e.querySelectorAll(dn))if(He(o))return o;return un(e)&&He(e)?e:null}function Ia(e){(0,Oo.useEffect)(()=>{let t=e.current;if(!t||typeof MutationObserver>"u")return;let n=[],r=y=>{let v=y.target;if(v instanceof Element){n=[];for(let S=v;S&&S!==t.parentElement;S=S.parentElement)n.push(S)}},o=!1,i=!1,a=t.ownerDocument,s=()=>!i&&a.defaultView!==null,l=(y,v)=>void setTimeout(()=>s()&&v(),y),c=y=>void requestAnimationFrame(()=>s()&&y()),u=y=>{if(o=!1,i)return;let v=a.activeElement;if(!(!(v===null||v===a.body||v===a.documentElement)||n.length===0)){if(Va(n[0])){y&&n[0]instanceof HTMLElement&&n[0].focus({preventScroll:!0});return}for(let E of n.slice(1)){if(!E.isConnected)continue;let A=Vo(E,n[0]);if(A){A.focus({preventScroll:!0}),n=[];return}}}},m=(y,v=Date.now()+2500)=>{l(100,()=>{u(y);let S=a.activeElement;(S===null||S===a.body||S===a.documentElement)&&n.length>0&&Date.now()<v&&m(y,v)})},p=()=>{o||n.length===0||(o=!0,l(60,()=>c(()=>{u(!1),m(!1)})))},g=y=>{if(!(y instanceof KeyboardEvent&&!["Enter"," ","Escape"].includes(y.key))){if(!(y instanceof KeyboardEvent)){let v=y.target instanceof Element?y.target.closest(dn):null,S=a.activeElement,E=S===null||S===a.body||S===a.documentElement;if(v&&E&&t.contains(v)){n=[];for(let A=v;A&&A!==t.parentElement;A=A.parentElement)n.push(A);l(150,()=>c(()=>{u(!1),m(!1)}));return}}!(y instanceof KeyboardEvent)&&!(y.target instanceof Node&&n[0]?.contains(y.target))||l(150,()=>c(()=>{u(!0),m(!0)}))}},x=new MutationObserver(()=>{n.length>0&&!n[0].isConnected&&p()}),R=y=>{y.relatedTarget===null&&p()};return t.addEventListener("focusin",r),t.addEventListener("focusout",R),t.addEventListener("click",g),t.addEventListener("keydown",g),x.observe(t,{childList:!0,subtree:!0}),()=>{i=!0,t.removeEventListener("focusin",r),t.removeEventListener("focusout",R),t.removeEventListener("click",g),t.removeEventListener("keydown",g),x.disconnect()}},[e])}export{fe as a,Q as b,Ze as c,_a as d,Ha as e,lr as f,sr as g,dr as h,kt as i,$ as j,ur as k,se as l,pe as m,Xe as n,Ve as o,Je as p,et as q,Rt as r,ye as s,ja as t,Uo as u,ee as v,cr as w,le as x,fr as y,Yo as z,Wa as A,pr as B,Tt as C,Zo as D,Xo as E,Jo as F,N as G,Nt as H,Si as I,vi as J,Or as K,rt as L,bi as M,Ie as N,Ir as O,xi as P,Wt as Q,Gt as R,Ft as S,Le as T,Li as U,_i as V,Hi as W,ao as X,Fi as Y,Bi as Z,js as _,Ui as $,ne as aa,Jt as ba,st as ca,Yi as da,Zi as ea,Xi as fa,Xt as ga,To as ha,Ea as ia,Ji as ja,co as ka,fo as la,po as ma,yo as na,mo as oa,go as pa,ho as qa,So as ra,Qi as sa,ea as ta,en as ua,ta as va,yt as wa,na as xa,ra as ya,oa as za,ia as Aa,aa as Ba,sa as Ca,Ao as Da,la as Ea,nn as Fa,ka as Ga,Ra as Ha,Ta as Ia,Ma as Ja,Ca as Ka,ca as La,fa as Ma,ya as Na,he as Oa,Ia as Pa,ma as Qa,gt as Ra,Ro as Sa,Sa as Ta,xa as Ua};
|
|
2
|
-
/*! Bundled license information:
|
|
3
|
-
|
|
4
|
-
react/cjs/react.production.js:
|
|
5
|
-
(**
|
|
6
|
-
* @license React
|
|
7
|
-
* react.production.js
|
|
8
|
-
*
|
|
9
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the MIT license found in the
|
|
12
|
-
* LICENSE file in the root directory of this source tree.
|
|
13
|
-
*)
|
|
14
|
-
|
|
15
|
-
react/cjs/react-jsx-runtime.production.js:
|
|
16
|
-
(**
|
|
17
|
-
* @license React
|
|
18
|
-
* react-jsx-runtime.production.js
|
|
19
|
-
*
|
|
20
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
21
|
-
*
|
|
22
|
-
* This source code is licensed under the MIT license found in the
|
|
23
|
-
* LICENSE file in the root directory of this source tree.
|
|
24
|
-
*)
|
|
25
|
-
*/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}from"./chunk.EA2NMVRE.js";import"./chunk.G4JJXA63.js";import"./chunk.3H7YIKKC.js";import"./chunk.ET3XJDPX.js";import"./chunk.3MU37W5D.js";import"./chunk.XOZU4OFA.js";import"./chunk.Z7N3MJ36.js";import"./chunk.Q5WEOX3Q.js";import"./chunk.JBR66TUP.js";import"./chunk.76QSPWSJ.js";import"./chunk.HVX7LFWR.js";import"./chunk.WVUJXDXZ.js";import"./chunk.GLTWLQ6L.js";import"./chunk.ACB4TD4W.js";import"./chunk.XCQ7ZPR5.js";import"./chunk.MY5OXSS7.js";import"./chunk.NVRK6A7T.js";import"./chunk.FKJ3HIA5.js";import"./chunk.VICCAWAN.js";import"./chunk.OU5TRY4N.js";import"./chunk.CQPNDJAC.js";import"./chunk.P4CLT32V.js";import"./chunk.SLBWPVIY.js";import"./chunk.AJZBJBMO.js";export{i as draftAnswer,h as draftFromLens,b as draftSight,l as draftView,a as isDraftFailure,c as judgeLens,d as lensEditOf,f as lensFromSpec,j as recipeDraft,g as recipeOfLens,m as refineDraft,o as runDraftTool,e as takeBackEditOf,k as templateDraft,n as withReaderLenses};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b}from"./chunk.MN6WHE4B.js";import"./chunk.W2DKFQ6R.js";import"./chunk.ET3XJDPX.js";import"./chunk.3TVAE7LE.js";import"./chunk.JX2C3HVD.js";import"./chunk.Z7N3MJ36.js";import"./chunk.GLTWLQ6L.js";import"./chunk.ACB4TD4W.js";import"./chunk.XCQ7ZPR5.js";import"./chunk.MY5OXSS7.js";import"./chunk.NVRK6A7T.js";import"./chunk.FKJ3HIA5.js";import"./chunk.VICCAWAN.js";import"./chunk.OU5TRY4N.js";import"./chunk.CQPNDJAC.js";import"./chunk.P4CLT32V.js";import"./chunk.SLBWPVIY.js";import"./chunk.AJZBJBMO.js";export{b as actOnSeveral,a as actsForSeveral};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as f}from"./chunk.JG2FGZF2.js";import"./chunk.IE4ZJQV3.js";import"./chunk.TVWN5I4M.js";import"./chunk.B7LBG4UP.js";import"./chunk.7G4M2PX3.js";import"./chunk.UGFDSE37.js";import{l as g}from"./chunk.NNUUD26E.js";import"./chunk.PXQVXBNG.js";import"./chunk.OJ64WTLW.js";import"./chunk.GMAXA5GV.js";import"./chunk.IBJBCZKG.js";import"./chunk.NQ26KMSQ.js";import"./chunk.GJQF7I22.js";import"./chunk.SPU3BVAO.js";import"./chunk.OPCBZNKF.js";import"./chunk.UK5F3S2N.js";import"./chunk.2VJ52LGS.js";import"./chunk.JI2UVZUU.js";import"./chunk.CTOBNZLM.js";import"./chunk.34HGT7HQ.js";import"./chunk.TNL2BVCH.js";import"./chunk.NZDHXREL.js";import"./chunk.TBSPEO2L.js";import"./chunk.5ON3JSAK.js";import"./chunk.3SBTQ66X.js";import"./chunk.SSAY4ITS.js";import"./chunk.3TVAE7LE.js";import"./chunk.JX2C3HVD.js";import"./chunk.XOZU4OFA.js";import"./chunk.Z7N3MJ36.js";import"./chunk.MB7LKKUD.js";import"./chunk.WVUJXDXZ.js";import"./chunk.GLTWLQ6L.js";import"./chunk.ACB4TD4W.js";import"./chunk.XCQ7ZPR5.js";import"./chunk.MY5OXSS7.js";import"./chunk.NVRK6A7T.js";import"./chunk.FKJ3HIA5.js";import"./chunk.GZHZLJBF.js";import"./chunk.OW72XZF4.js";import"./chunk.OJGHDWI6.js";import"./chunk.KRODTMGR.js";import"./chunk.VICCAWAN.js";import"./chunk.OU5TRY4N.js";import"./chunk.CQPNDJAC.js";import"./chunk.GYTVL6GR.js";import{G as b,T as h}from"./chunk.TMYGLXR6.js";import"./chunk.SDO3U72B.js";import{Kd as n}from"./chunk.P4CLT32V.js";import"./chunk.SLBWPVIY.js";import{b as t}from"./chunk.AJZBJBMO.js";var m=t(b(),1),a=t(h(),1);function P({store:c,auto:y,brand:i,views:u,presence:s,steering:r,overview:o,scope:d,titleLevel:w=2,quickAsk:l,props:e}){let v=(0,m.useMemo)(()=>g({scope:`.${d}`}),[d]);return(0,a.jsxs)("div",{"data-embed-content":"",style:y?{flex:"0 0 auto",background:"var(--graview-ground)"}:{flex:"1 1 auto",minHeight:0,overflow:"auto",background:"var(--graview-ground)"},children:[(0,a.jsx)("style",{children:v}),(0,a.jsx)("div",{"data-embed-measure":"",style:{display:"flow-root"},children:(0,a.jsx)(f,{context:{store:c,embedded:!0,...e.bar!==!1?{barAbove:!0}:{},...o?{overview:o}:{},titleLevel:w,views:u,settings:e.app.settings??[],...s?{presence:s}:{},...i?{brand:i}:{},...e.locale?{locale:e.locale}:{},...e.timeZone?{timeZone:e.timeZone}:{},...e.principal?{principal:e.principal}:{},...e.seats?{seats:e.seats}:{},...e.people?{people:e.people}:{},...e.subscriptions?{subscriptions:e.subscriptions}:{},dismissals:e.dismissals,whileAway:e.whileAway,...e.signIn?{signIn:e.signIn}:{},...l!==void 0?{quickAsk:l}:{}},...e.pages?{registry:e.pages}:{},...r?{steering:r}:{},...e.routing==="address"?n(e.basePath)===""?{}:{basename:n(e.basePath)}:{initialPath:e.path??"/"},...e.path!==void 0?{path:e.path}:{},...e.hrefOf?{hrefOf:e.hrefOf}:e.routing==="address"?{}:{hrefOf:!1},...e.onNavigate?{onNavigate:e.onNavigate}:{}})})]})}export{P as PagesContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as n}from"./chunk.IBJBCZKG.js";import"./chunk.NQ26KMSQ.js";import"./chunk.GJQF7I22.js";import"./chunk.SPU3BVAO.js";import"./chunk.UK5F3S2N.js";import"./chunk.2VJ52LGS.js";import"./chunk.JI2UVZUU.js";import"./chunk.NZDHXREL.js";import"./chunk.TBSPEO2L.js";import"./chunk.5ON3JSAK.js";import"./chunk.3SBTQ66X.js";import"./chunk.SSAY4ITS.js";import"./chunk.WVUJXDXZ.js";import{e as p}from"./chunk.GLTWLQ6L.js";import"./chunk.ACB4TD4W.js";import"./chunk.XCQ7ZPR5.js";import"./chunk.MY5OXSS7.js";import"./chunk.NVRK6A7T.js";import"./chunk.FKJ3HIA5.js";import"./chunk.GZHZLJBF.js";import"./chunk.OW72XZF4.js";import"./chunk.OJGHDWI6.js";import"./chunk.KRODTMGR.js";import"./chunk.VICCAWAN.js";import"./chunk.OU5TRY4N.js";import"./chunk.CQPNDJAC.js";import"./chunk.GYTVL6GR.js";import{T as m}from"./chunk.TMYGLXR6.js";import"./chunk.SDO3U72B.js";import"./chunk.P4CLT32V.js";import"./chunk.SLBWPVIY.js";import{b as t}from"./chunk.AJZBJBMO.js";var i=t(m(),1),a=new WeakMap;function s(o){let e=a.get(o);if(!e){let r=p(o);e=c=>c.mode==="fullscreen"?(0,i.jsx)(n,{blocks:r,slot:"home",heading:2,firstHeading:1}):(0,i.jsx)(n,{blocks:r,slot:"home",heading:3,firstHeading:2}),a.set(o,e)}return e}export{s as homeView};
|