PageSourceSearch

https://duosante-dashboard.vercel.app/_next/static/immutable/chunks/3p013xmqjpm74.js

js duosante-dashboard.vercel.app collected 2026-10-03 06:49:03 UTC 205,754 bytes, 7 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59866,e=>{"use strict";var t,r=e.i(91398),n=e.i(95585),i=e.i(89280);e.i(68681);var a=e.i(5578),o=e.i(11818),s=e.i(21805),l=function(e){var t=e.client,r=e.children,n=(0,s.getApolloContext)(),l=o.useContext(n),c=o.useMemo(function(){return(0,i.__assign)((0,i.__assign)({},l),{client:t||l.client})},[l,t]);return(0,a.invariant)(c.client,71),o.createElement(n.Provider,{value:c},r)},c=e.i(84936),u=e.i(62979),f=e.i(25945),d=e.i(90384),d=d,p=e.i(3828),h=e.i(91788);e.i(72040);var m=e.i(7982),v=["light","dark"],y=h.createContext(void 0),g={setTheme:e=>{},themes:[]};h.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:i,defaultTheme:a,value:o,attrs:s,nonce:l})=>{let c="system"===a,u="class"===r?`var d=document.documentElement,c=d.classList;c.remove(${s.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${r}',s='setAttribute';`,f=i?(v.includes(a)?a:null)?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${a}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",d=(e,t=!1,n=!0)=>{let a=o?o[e]:e,s=t?e+"|| ''":`'${a}'`,l="";return i&&n&&!t&&v.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===r?t||a?l+=`c.add(${s})`:l+="null":a&&(l+=`d[s](n,${s})`),l},p=e?`!function(){${u}${d(e)}}()`:n?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='(prefers-color-scheme: dark)',m=window.matchMedia(t);if(m.media!==t||m.matches){${d("dark")}}else{${d("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${d(o?"x[e]":"e",!0)}}${c?"":"else{"+d(a,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${d(o?"x[e]":"e",!0)}}else{${d(a,!1,!1)};}${f}}catch(t){}}();`;return h.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})});var b=e.i(79935);let x=({...e})=>{var t;let{theme:n="system"}=null!=(t=h.useContext(y))?t:g;return(0,r.jsx)(b.Toaster,{theme:n,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var _=e.i(41158),w=e.i(75823);e.i(43226);let S=(0,h.createContext)({}),k=({children:e})=>{let[t,n]=h.default.useState(""),[i,a]=h.default.useState(!1),[o,s]=h.default.useState(!1);async function l(){n("")}return(0,r.jsx)(S.Provider,{value:{search:t,setSearch:n,sideMenu:i,setSideMenu:a,searchIsOpen:o,setSearchIsOpen:s,reset:l},children:e})},O=(0,h.createContext)({workProfileId:null,setWorkProfileId:()=>{}}),j=({children:e})=>{let[t,n]=(0,h.useState)(null);return(0,h.useEffect)(()=>{n(sessionStorage.getItem("workProfileId"))},[]),(0,r.jsx)(O.Provider,{value:{workProfileId:t,setWorkProfileId:e=>{n(e),e?sessionStorage.setItem("workProfileId",e):sessionStorage.removeItem("workProfileId")}},children:e})};var E=e.i(66095);function N({placeholder:e="Recherche...",autoComplete:t="off",name:n="searchBar",type:i="search",value:a="",onChange:o=e=>{}}){let{search:s,setSearch:l,setSearchIsOpen:c,setSideMenu:u}=(0,h.useContext)(S);return(0,r.jsx)("input",{type:i,className:"outline-none ease-in-out duration-200 w-48 sm:w-64",placeholder:e,autoComplete:t,name:n,value:s,onFocus:()=>{c(!0),u?.(!1)},onChange:e=>{l(e.target.value),e.target.value.length>0||o("")}})}var C=e.i(16993),R=e.i(78651),F=e.i(80210),D=e.i(98933),I=e.i(91803);let T=()=>{let{data:e}=(0,E.useMeQuery)({pollInterval:6e4}),{workProfileId:t,setWorkProfileId:n}=(0,h.useContext)(O),[i,a]=(0,h.useState)(!1),o=(0,h.useMemo)(()=>e?.me?.workProfiles||[],[e]);if((0,h.useEffect)(()=>{t||sessionStorage.getItem("workProfileAutoSelected")||0!==o.length&&(sessionStorage.setItem("workProfileAutoSelected","1"),n(o[0].id),window.location.reload())},[o,t,n]),(0,h.useEffect)(()=>{e?.me&&t&&(o.some(e=>e.id===t)||n(null))},[e,o,t,n]),0===o.length)return null;let s=o.find(e=>e.id===t),l=s?`Profil ${s.name}`:"Profil normal",c=e=>{n(e),a(!1),window.location.reload()};return(0,r.jsxs)(I.Popover,{open:i,onOpenChange:a,children:[(0,r.jsx)(I.PopoverTrigger,{asChild:!0,children:(0,r.jsxs)("button",{className:"flex items-center gap-1 text-duo1000 text-sm font-medium hover:opacity-70 transition-opacity",children:[(0,r.jsx)("span",{children:l}),(0,r.jsx)(w.FiChevronDown,{size:14,className:`transition-transform ${i?"rotate-180":""}`})]})}),(0,r.jsx)(I.PopoverContent,{className:"w-48 p-1 bg-white border border-gray-200",align:"end",children:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)("button",{onClick:()=>c(null),className:"flex items-center justify-between px-3 py-2 text-sm hover:bg-gray-100 rounded transition-colors text-left",children:[(0,r.jsx)("span",{children:"Profil Normal"}),!t&&(0,r.jsx)(w.FiCheck,{size:16,className:"text-primary"})]}),o.map(e=>(0,r.jsxs)("button",{onClick:()=>c(e.id),className:"flex items-center justify-between px-3 py-2 text-sm hover:bg-gray-100 rounded transition-colors text-left",children:[(0,r.jsxs)("span",{children:["Profil ",e.name]}),t===e.id&&(0,r.jsx)(w.FiCheck,{size:16,className:"text-primary"})]},e.id))]})})]})},A=({isClient:e})=>{let t=(0,p.useRouter)(),{setSideMenu:n,setSearchIsOpen:i}=(0,h.useContext)(S),{data:a}=(0,E.useMeQuery)({pollInterval:6e4}),o=t?.pathname?.includes?.("print");return(0,r.jsx)("nav",{className:(0,C.cn)("pl-0 lg:pl-48 bg-white h-16 mt-0 fixed w-full z-30 top-0 shadow-sm hide-for-print",e&&"lg:hidden",o&&"hidden"),children:(0,r.jsxs)("div",{className:"max-w-full mx-auto flex h-full flex-1 items-center px-6 sm:space-x-6 lg:space-x-0",children:[(0,r.jsx)("div",{className:"flex lg:hidden cursor-pointer w-2/12 sm:w-auto",onClick:()=>{n?.(!0),i?.(!1)},children:(0,r.jsx)(w.FiMenu,{size:24,className:"text-duo500"})}),!e&&(0,r.jsxs)("div",{className:"flex h-full sm:ml-6 flex-grow items-center space-x-4 w-7/12",children:[(0,r.jsx)(w.FiSearch,{size:24,className:"text-duo500 min-w-[22px]"}),(0,r.jsx)(N,{})]}),(0,r.jsxs)("div",{className:(0,C.cn)("h-full w-3/12 flex justify-end items-center sm:space-x-4",e&&"flex-1"),children:[(0,r.jsxs)("div",{className:"flex items-center h-full space-x-2",children:[(0,r.jsx)("button",{className:"flex items-center justify-center relative h-full w-10 hover:opacity-50 duration-150",onClick:()=>{t?.push("/notifications?alertes")},children:(0,r.jsxs)("span",{className:"relative flex items-center justify-center w-full h-full",children:[(0,r.jsx)(D.AiOutlineAlert,{size:20,className:"text-red-500"}),(a?.me?.unreadAlertNotificationsCount??0)>0&&(0,r.jsx)("span",{className:"absolute top-1 right-0",children:(0,r.jsx)("div",{className:"inline-flex items-center min-w-[1rem] h-4 px-1 justify-center border-2 border-white rounded-full text-xs font-semibold leading-4 bg-red-500 text-white",children:(0,R.formatBadgeCount)(a?.me?.unreadAlertNotificationsCount??0)})})]})}),(0,r.jsx)("button",{className:"flex items-center justify-center relative h-full w-10 hover:opacity-50 duration-150",onClick:()=>{t?.push("/notifications?mentions")},children:(0,r.jsxs)("span",{className:"relative flex items-center justify-center w-full h-full",children:[(0,r.jsx)(F.IoAt,{size:22,className:"text-duo1000"}),(a?.me?.unreadMentionedNotificationsCount??0)>0&&(0,r.jsx)("span",{className:"absolute top-1 right-0",children:(0,r.jsx)("div",{className:"inline-flex items-center min-w-[1rem] h-4 px-1 justify-center border-2 border-white rounded-full text-xs font-semibold leading-4 bg-red-500 text-white",children:(0,R.formatBadgeCount)(a?.me?.unreadMentionedNotificationsCount??0)})})]})}),(0,r.jsx)("button",{className:"flex items-center justify-center relative h-full w-10 hover:opacity-50 duration-150",onClick:()=>{t?.push("/notifications")},children:(0,r.jsxs)("span",{className:"relative flex items-center justify-center w-full h-full",children:[(0,r.jsx)(w.FiBell,{size:20,className:"text-duo1000"}),(a?.me?.unreadNotificationsCount??0)>0&&(0,r.jsx)("span",{className:"absolute top-1 right-0",children:(0,r.jsx)("div",{className:"inline-flex items-center min-w-[1rem] h-4 px-1 justify-center border-2 border-white rounded-full text-xs font-semibold leading-4 bg-red-500 text-white",children:(0,R.formatBadgeCount)(a?.me?.unreadNotificationsCount??0)})})]})})]}),!e&&(0,r.jsx)(T,{}),(0,r.jsxs)(_.default,{href:e?"/user-client/profile":"/account",className:"min-w-fit",children:[(0,r.jsxs)("span",{className:"hidden sm:block text-duo1000 text-xs sm:text-sm uppercase font-medium",children:[a?.me?.firstName," ",a?.me?.lastName]}),(0,r.jsxs)("span",{className:"sm:hidden border-2 p-2 rounded-3xl text-duo1000 text-xs sm:text-sm uppercase font-medium",children:[a?.me?.firstName.charAt(0)," ",a?.me?.lastName.charAt(0)]})]})]})]})})};var P=e.i(41753);let M=(0,P.default)("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]),q=(0,P.default)("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
1y:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);var L=e.i(20556),V=e.i(85237);let Q=()=>{let e=(0,p.useRouter)(),t=(0,h.useContext)(L.AuthContext),n=t?.me?.id,i=(0,h.useRef)(new Set),a=(0,h.useRef)(null),o=(0,h.useRef)(!1),[s]=(0,E.useReadNotificationMutation)(),{data:l}=(0,E.useNotificationsQuery)({variables:{take:10,skip:0},pollInterval:3e4,fetchPolicy:"network-only",skip:!n}),{data:c}=(0,E.useNotificationsQuery)({variables:{take:10,skip:0,isAlert:!0},pollInterval:3e4,fetchPolicy:"network-only",skip:!n}),u=(0,h.useMemo)(()=>[...l?.me?.notifications??[],...c?.me?.notifications??[]].sort((e,t)=>new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime()),[l,c]),f=(0,h.useCallback)(()=>{let e=a.current;if(e)try{let t=Array.from(i.current).slice(-200);t.length!==i.current.size&&(i.current=new Set(t)),window.localStorage.setItem(e,JSON.stringify(t))}catch{}},[]),d=(0,h.useCallback)(t=>{s({variables:{readNotificationId:t.id}}).catch(()=>{}),t.href&&e.push(t.href).catch(()=>{})},[e,s]);(0,h.useEffect)(()=>{if(!n)return;let e=`orderReminderSeen:${n}`;a.current=e;try{let t=window.localStorage.getItem(e),r=t?JSON.parse(t):[];i.current=new Set(Array.isArray(r)?r:[])}catch{i.current=new Set}},[n]),(0,h.useEffect)(()=>{if(!("Notification"in window)||"default"!==Notification.permission)return;let e=()=>{o.current||(o.current=!0,Notification.requestPermission().catch(()=>{}),document.removeEventListener("click",e),document.removeEventListener("keydown",e))};return document.addEventListener("click",e,{once:!0}),document.addEventListener("keydown",e,{once:!0}),()=>{document.removeEventListener("click",e),document.removeEventListener("keydown",e)}},[]);let m=(0,h.useCallback)((e,t)=>{if("Notification"in window&&"granted"===Notification.permission&&document.hidden)try{let r=new Notification(t,{body:e.text,tag:e.id});r.onclick=()=>{window.focus(),d(e),r.close()}}catch{}},[d]),v=(0,h.useCallback)((e,t)=>{let n="honorabilite"===t,i=e.order?.number,a=n?"Attestation d'honorabilité à valider":`Rappel de commande${null!=i?` n\xb0 ${i}`:""}`,o=(0,b.toast)(a,{description:e.text,position:"top-right",duration:1/0,closeButton:!0,icon:n?(0,r.jsx)(q,{className:"h-5 w-5 text-red-500"}):(0,r.jsx)(M,{className:"h-5 w-5 text-amber-500"}),action:e.href?{label:"Voir",onClick:()=>{d(e),b.toast.dismiss(o)}}:void 0});m(e,a)},[d,m]);return(0,h.useEffect)(()=>{if(!a.current||!u.length)return;let e=i.current,t=Date.now(),r=!1,n=u.map(e=>({notification:e,kind:(e=>(0,V.isOrderReminderNotification)(e)?"order":e&&e.startsWith("Attestation d'honorabilité à valider")?"honorabilite":null)(e.text)})).filter(e=>null!==e.kind);for(let i=n.length-1;i>=0;i--){let{notification:a,kind:o}=n[i];if(e.has(a.id))continue;e.add(a.id),r=!0;let s=new Date(a.createdAt).getTime(),l=Number.isFinite(s)&&t-s<3e5;!a.isOpened&&l&&v(a,o)}r&&f()},[u,f,v]),null};function z({children:e,noHeader:t=!1,isClient:n=!1}){return(0,r.jsx)("div",{className:(0,C.cn)("pl-0 lg:pl-48 flex h-full w-screen print:pl-0 print:w-full",!t&&"mt-16 print:mt-0",n&&"lg:mt-0"),children:(0,r.jsx)("div",{className:"flex flex-col w-full smax-w-screen-2xl mx-auto  h-full px-5 print:px-0",children:e})})}var W=e.i(60912),B=e.i(27610),$=e.i(86041);function U({}){let{search:e,searchIsOpen:t,setSearch:n,setSearchIsOpen:i}=(0,h.useContext)(S),[a,{data:o,loading:s,error:l}]=(0,E.useGlobalSearchLazyQuery)(),c=(0,p.useRouter)(),u=(0,W.default)(e,300);(0,h.useEffect)(()=>(e&&e?.length>0?i(!0):i(!1),()=>{}),[e]),(0,h.useEffect)(()=>{u&&u.length>0&&a({variables:{search:u}})},[u]);let f=o?.globalSearch?.clients??[],d=o?.globalSearch?.candidates??[],m=f.length>0||d.length>0,v=u.toLowerCase().split(/\s+/).filter(Boolean),y=e=>{c?.push(e),i(!1)};return t?(0,r.jsx)("div",{className:"fixed left-0 lg:pl-48 w-full h-full top-16 md:mt-0.5 md:py-0 z-30 ",onClick:e=>{e?.preventDefault?.(),e?.stopPropagation?.(),i(!1)},children:(0,r.jsxs)("div",{className:"md:ml-4 z-50 md:z-50 w-full md:max-w-3xl h-full md:h-auto md:max-h-[min(44rem,calc(100vh-6rem))] md:rounded-b-xl shadow-xl overflow-y-auto text-black bg-white",onClick:e=>{e?.preventDefault?.(),e?.stopPropagation?.()},children:[(0,r.jsx)("div",{className:"absolute top-0 right-4 md:hidden cursor-pointer hover:opacity-70",onClick:()=>{i?.(!1)},children:(0,r.jsx)(D.AiFillCloseCircle,{size:30,className:"text-duo800"})}),l?(0,r.jsxs)("div",{className:"flex flex-col flex-1 justify-center items-center h-full min-h-[12rem] w-full",children:[(0,r.jsx)("p",{className:"py-4",children:"La recherche a échoué, merci de réessayer."}),(0,r.jsx)(B.default,{onClick:()=>a({variables:{search:u}}),children:"Réessayer"})]}):s&&!m?(0,r.jsx)("div",{className:"flex flex-1 justify-center items-center h-full min-h-[12rem] w-full",children:(0,r.jsx)($.default,{})}):m?(0,r.jsxs)("div",{className:"flex flex-col justify-around",children:[f.length>0&&(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsxs)("h2",{className:"sticky top-0 z-10 bg-white px-4 py-2 text-xs font-semibold uppercase tracking-wide text-duo800",children:["Clients (",f.length,")"]}),(0,r.jsx)("ul",{className:"pb-6",children:f.map(e=>
1{let t,n=(t=(e?.name??"").toLowerCase(),v.every(e=>t.includes(e)))?[]:e?.matchingServices??[];return(0,r.jsxs)("li",{onClick:t=>{t?.preventDefault?.(),t?.stopPropagation?.(),y("/clients/"+e?.id)},className:"min-h-[3.5rem] flex justify-between items-center space-x-3 border-b cursor-pointer transition-all duration-100 bg-black bg-opacity-0 hover:bg-opacity-5 px-4 py-2",children:[(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("p",{className:"truncate font-medium",children:e?.name}),n.length>0&&(0,r.jsxs)("p",{className:"truncate text-xs text-duo800",children:[n.length>1?"Services : ":"Service : ",n.map(e=>e?.name).join(", ")]}),e?.email&&(0,r.jsx)("p",{className:"truncate text-xs text-duo800",children:e?.email})]}),(0,r.jsx)("span",{className:"shrink-0 text-sm text-duo800",children:e?.city})]},e.id)})})]}),d.length>0&&(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsxs)("h2",{className:"sticky top-0 z-10 bg-white px-4 py-2 text-xs font-semibold uppercase tracking-wide text-duo800",children:["Candidats (",d.length,")"]}),(0,r.jsx)("ul",{className:"pb-6",children:d.map(e=>{let t=(e?.professions??[]).map(e=>e?.name).join(", ");return(0,r.jsxs)("li",{onClick:t=>{t?.preventDefault?.(),t?.stopPropagation?.(),y("/candidates/"+e?.id)},className:"min-h-[3.5rem] flex justify-between items-center space-x-3 border-b cursor-pointer transition-all duration-100 bg-black bg-opacity-0 hover:bg-opacity-5 px-4 py-2",children:[(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsxs)("p",{className:"truncate font-medium",children:[e?.firstName," ",e?.lastName]}),(0,r.jsx)("p",{className:"truncate text-xs text-duo800",children:[t,e?.city,e?.phone].filter(Boolean).join(" · ")})]}),(0,r.jsx)("div",{className:`flex shrink-0 w-fit rounded-full justify-center items-center py-1 px-3 ${e?.isAvailable?"bg-success":"bg-primary"} `,children:(0,r.jsx)("span",{className:"text-xs text-white",children:e?.isAvailable?"Disponible":"Indisponible"})})]},e.id)})})]})]}):(0,r.jsxs)("div",{className:"flex flex-col flex-1 justify-center items-center h-full min-h-[12rem] w-full",children:[(0,r.jsx)("p",{className:"py-4",children:"Aucun résultat pour cette recherche"}),(0,r.jsx)(B.default,{onClick:()=>n(""),children:"Effacer"})]})]})}):null}var K=e.i(15182),H=e.i(67267),G=e.i(19341);function J(e){return(0,G.GenIcon)({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 3L2.5 3.00002C1.67157 3.00002 1 3.6716 1 4.50002V9.50003C1 10.3285 1.67157 11 2.5 11H7.50003C7.63264 11 7.75982 11.0527 7.85358 11.1465L10 13.2929V11.5C10 11.2239 10.2239 11 10.5 11H12.5C13.3284 11 14 10.3285 14 9.50003V4.5C14 3.67157 13.3284 3 12.5 3ZM2.49999 2.00002L12.5 2C13.8807 2 15 3.11929 15 4.5V9.50003C15 10.8807 13.8807 12 12.5 12H11V14.5C11 14.7022 10.8782 14.8845 10.6913 14.9619C10.5045 15.0393 10.2894 14.9965 10.1464 14.8536L7.29292 12H2.5C1.11929 12 0 10.8807 0 9.50003V4.50002C0 3.11931 1.11928 2.00003 2.49999 2.00002Z",fill:"currentColor"}}]})(e)}var Y=e.i(3634),X=e.i(44678),Z=e.i(87478),ee=e.i(52244),et=e.i(68183),er=e.i(96289);let en=[{name:"Dashboard",icon:e=>(0,r.jsx)(Y.MdDashboard,{size:20,className:`${e?"text-navFocus":"text-navFocusOut"}`}),href:"/"},{name:"Tableau de bord",icon:e=>(0,r.jsx)(et.GrAction,{size:20,className:`${e?"text-navFocus":"text-navFocusOut"}`}),href:"/business-actions"},{name:"Commandes",icon:e=>(0,r.jsx)(F.IoCartSharp,{size:20,className:`${e?"text-navFocus":"text-navFocusOut"}`}),href:"/orders"},{name:"Candidats",icon:e=>(0,r.jsx)(X.RiFileUserFill,{size:20,className:`${e?"text-navFocus":"text-navFocusOut"}`}),href:"/candidates"},{name:"Clients",icon:e=>(0,r.jsx)(H.FaBuilding,{size:20,className:`${e?"text-navFocus":"text-navFocusOut"}`}),href:"/clients"},{name:"Contrats",icon:e=>(0,r.jsx)(et.GrDocument,{size:20,className:`${e?"text-navFocus":"text-navFocusOut"}`}),href:"/contracts"},{name:"Gestion",icon:e=>(0,r.jsx)(J,{size:20,className:`${e?"text-navFocus":"text-navFocusOut"}`}),href:"/interim-direct"},{name:"Bilans",icon:e=>(0,r.jsx)(Y.MdOutlineRateReview,{size:20,className:`${e?"text-navFocus":"text-navFocusOut"}`}),href:"/bilans"}],ei=()=>{let{data:e}=(0,E.useMeQuery)({pollInterval:6e4}),{data:t}=(0,E.useGetSectorsQuery)(),{sectorId:n,setSectorId:i}=(0,h.useContext)(ee.SectorContext),a=e?.me?.roles?.includes("ADMIN"),o=t?.sectors?[...t.sectors].sort((e,t)=>
1e.name.localeCompare(t.name)):[];return((0,h.useEffect)(()=>{n||!(o.length>0)||a||i(o[0].id)},[o,n,i,a]),o.length<2)?null:(0,r.jsx)("div",{className:"px-4 pt-4 pb-2",children:(0,r.jsxs)(er.Select,{value:n||"all",onValueChange:e=>{i("all"===e?null:e),window.location.reload()},children:[(0,r.jsx)(er.SelectTrigger,{className:"w-full bg-duo500 border-duo400 focus:ring-duo300 text-white",children:(0,r.jsx)(er.SelectValue,{placeholder:"Sélectionner un secteur"})}),(0,r.jsxs)(er.SelectContent,{children:[a&&(0,r.jsx)(er.SelectItem,{value:"all",children:"Tous les secteurs"}),o.map(e=>(0,r.jsx)(er.SelectItem,{value:e.id,children:e.name},e.id))]})]})})},ea=()=>{let{signOut:e}=(0,h.useContext)(L.AuthContext),{sideMenu:t,setSideMenu:n}=(0,h.useContext)(S),i=(0,p.useRouter)();return(0,h.useEffect)(()=>()=>{},[]),(0,r.jsxs)(Z.motion.div,{className:`w-full  sm:w-48 fixed z-50 lg:z-40 left-0 top-0 flex-col bg-duo500 min-h-screen max-h-screen overflow-y-auto transition-all duration-300 ease-in-out
2      ${t?"translate-x-0":"-translate-x-full  lg:-translate-x-0"}
3      `,children:[(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsx)("div",{className:"pl-5 py-6",children:(0,r.jsx)("img",{className:"w-36 object-contain",draggable:!1,src:"/img/logo.svg"})}),(0,r.jsx)("div",{className:"flex lg:hidden cursor-pointer pr-4",onClick:()=>{n?.(!1)},children:(0,r.jsx)(w.FiMenu,{size:24,className:"text-white"})})]}),(0,r.jsx)(ei,{}),(0,r.jsx)("nav",{className:"flex flex-grow min-h-fit",children:(0,r.jsx)("ul",{className:"list-none w-full",children:en?.map?.((e,t)=>{let a=e?.href=="/"?i?.pathname=="/":i?.pathname?.startsWith(e?.href);return(0,r.jsx)("li",{children:(0,r.jsxs)(_.default,{href:e?.href,className:"flex h-12 w-full items-center hover:opacity-70 cursor-pointer",onClick:e=>{n?.(!1)},children:[(0,r.jsx)("span",{className:"px-4",children:e?.icon?.(a)}),(0,r.jsx)("span",{className:`flex-1 ${a?"text-primary":"text-duo300"} text-base`,children:e?.name})]})},`navItem-${t}`)})})}),(0,r.jsxs)("div",{className:" py-6",children:[(0,r.jsx)("span",{className:"pl-5 text-duo800 uppercase",children:"Réglages"}),(0,r.jsx)("nav",{className:"mt-2 min-h-fit",children:(0,r.jsxs)("ul",{className:"list-none w-full",children:[(0,r.jsx)("li",{children:(0,r.jsxs)(_.default,{href:"/account",className:"flex h-10 w-full items-center hover:opacity-70 cursor-pointer",onClick:e=>{n?.(!1)},children:[(0,r.jsx)("span",{className:"px-4",children:(0,r.jsx)(H.FaRegUserCircle,{size:18,className:`${i.pathname.includes("/account")?"text-primary":"text-navFocusOut"}`})}),(0,r.jsx)("span",{className:`flex-1 ${i.pathname.includes("/account")?"text-primary":"text-duo300"} text-sm`,children:"Mon profil"})]})}),(0,r.jsx)("li",{children:(0,r.jsxs)(_.default,{href:"/administration",className:"flex h-10 w-full items-center hover:opacity-70 cursor-pointer",onClick:e=>{n?.(!1)},children:[(0,r.jsx)("span",{className:"px-4",children:(0,r.jsx)(K.BiCog,{size:18,className:`${i.pathname.includes("/administration")?"text-primary":"text-navFocusOut"}`})}),(0,r.jsx)("span",{className:`flex-1 ${i.pathname.includes("/administration")?"text-primary":"text-duo300"} text-sm`,children:"Administration"})]})}),(0,r.jsxs)("li",{className:"flex h-10 w-full items-center hover:opacity-70 cursor-pointer",onClick:async()=>{e?.()},children:[(0,r.jsx)("span",{className:"px-4",children:(0,r.jsx)(K.BiLogOut,{size:18,className:"text-navFocusOut"})}),(0,r.jsx)("a",{className:"flex-1 text-duo300 text-sm",children:"Se déconnecter"})]})]})})]})]})},eo=[{name:"Gestion",icon:e=>(0,r.jsx)(J,{size:20,className:`${e?"text-navFocus":"text-navFocusOut"}`}),href:"/interim-direct"}],es=()=>{let{signOut:e}=(0,h.useContext)(L.AuthContext),{sideMenu:t,setSideMenu:n}=(0,h.useContext)(S),i=(0,p.useRouter)();return(0,h.useEffect)(()=>()=>{},[]),(0,r.jsxs)(Z.motion.div,{className:`w-full  sm:w-48 fixed z-50 lg:z-40 left-0 top-0 flex-col bg-duo500 min-h-screen max-h-screen overflow-y-auto transition-all duration-300 ease-in-out
4      ${t?"translate-x-0":"-translate-x-full  lg:-translate-x-0"}
5      `,children:[(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsx)("div",{className:"pl-5 py-6",children:(0,r.jsx)("img",{className:"w-36 object-contain",draggable:!1,src:"/img/logo.svg"})}),(0,r.jsx)("div",{className:"flex lg:hidden cursor-pointer pr-4",onClick:()=>{n?.(!1)},children:(0,r.jsx)(w.FiMenu,{size:24,className:"text-white"})})]}),(0,r.jsx)("nav",{className:"flex flex-grow min-h-fit",children:(0,r.jsx)("ul",{className:"list-none w-full",children:eo?.map?.((e,t)=>
5{let a=e?.href=="/"?i?.pathname=="/":i?.pathname?.startsWith(e?.href);return(0,r.jsx)("li",{children:(0,r.jsxs)(_.default,{href:e?.href,className:"flex h-12 w-full items-center hover:opacity-70 cursor-pointer",onClick:e=>{n?.(!1)},children:[(0,r.jsx)("span",{className:"px-4",children:e?.icon?.(a)}),(0,r.jsx)("span",{className:`flex-1 ${a?"text-primary":"text-duo300"} text-base`,children:e?.name})]})},`navItem-${t}`)})})}),(0,r.jsxs)("div",{className:" py-6",children:[(0,r.jsx)("span",{className:"pl-5 text-duo800 uppercase",children:"Réglages"}),(0,r.jsx)("nav",{className:"mt-2 min-h-fit",children:(0,r.jsx)("ul",{className:"list-none w-full",children:(0,r.jsxs)("li",{className:"flex h-10 w-full items-center hover:opacity-70 cursor-pointer",onClick:async()=>{e?.()},children:[(0,r.jsx)("span",{className:"px-4",children:(0,r.jsx)(K.BiLogOut,{size:18,className:"text-navFocusOut"})}),(0,r.jsx)("a",{className:"flex-1 text-duo300 text-sm",children:"Se déconnecter"})]})})})]})]})};function el(e){return(0,G.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M368.005 272h-96v96h96v-96zm-32-208v32h-160V64h-48v32h-24.01c-22.002 0-40 17.998-40 40v272c0 22.002 17.998 40 40 40h304.01c22.002 0 40-17.998 40-40V136c0-22.002-17.998-40-40-40h-24V64h-48zm72 344h-304.01V196h304.01v212z"}}]})(e)}function ec(e){return(0,G.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M288 48H136c-22.092 0-40 17.908-40 40v336c0 22.092 17.908 40 40 40h240c22.092 0 40-17.908 40-40V176L288 48zm-16 144V80l112 112H272z"}}]})(e)}var eu=e.i(89348);let ef=(0,P.default)("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);var ed=e.i(88293),ep=/[\\\/_+.#"@\[\(\{&]/,eh=/[\\\/_+.#"@\[\(\{&]/g,em=/[\s-]/,ev=/[\s-]/g;function ey(e){return e.toLowerCase().replace(ev," ")}var eg=e.i(35598);e.i(30943);var eb=e.i(57006),ex=Symbol.for("react.lazy"),e_=h[" use ".trim().toString()];function ew(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===ex&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var eS=Symbol("radix.slottable");function ek(e){return h.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eS}var eO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var n,i;let a,o,s,l=(i=n=`Primitive.${t}`,(a=h.forwardRef((e,t)=>{let{children:r,...n}=e;if(ew(r)&&"function"==typeof e_&&(r=e_(r._payload)),h.isValidElement(r)){var i;let e,a,o=(i=r,(a=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(a=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),s=function(e,t){let r={...t};for(let n in t){let i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...a}:"className"===n&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==h.Fragment&&(s.ref=t?(0,eb.composeRefs)(t,o):o),h.cloneElement(r,s)}return h.Children.count(r)>1?h.Children.only(null):null})).displayName=`${i}.SlotClone`,o=a,(s=h.forwardRef((e,t)=>{let{children:n,...i}=e;ew(n)&&"function"==typeof e_&&(n=e_(n._payload));let a=h.Children.toArray(n),s=a.find(ek);if(s){let e=s.props.children,n=a.map(t=>t!==s?t:h.Children.count(e)>1?h.Children.only(null):h.isValidElement(e)?e.props.children:null);return(0,r.jsx)(o,{...i,ref:t,children:h.isValidElement(e)?h.cloneElement(e,void 0,n):null})}return(0,r.jsx)(o,{...i,ref:t,children:n})})).displayName=`${n}.Slot`,s),c=h.forwardRef((e,n)=>{let{asChild:i,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,r.jsx)(i?l:t,{...a,ref:n})});return c.displayName=`Primitive.${t}`,{...e,[t]:c}},{}),ej=e.i(64592),eE='[cmdk-group=""]',eN='[cmdk-group-items=""]',eC='[cmdk-item=""]',eR=`${eC}:not([aria-disabled="true"])`,eF="cmdk-item-select",eD="data-value",eI=(e,t,r)=>{var n;return n=e,function e(t,r,n,i,a,o,s){if(o===r.length)return a===t.length?1:.99;var l=`${a},${o}`;if(void 0!==s[l])return s[l];for(var c,u,f,d,p=i.charAt(o),h=n.indexOf(p,a),m=0;h>=0;)(c=e(t,r,n,i,h+1,o+1,s))>m&&(h===a?c*=1:ep.test(t.charAt(h-1))?(c*=.8,(f=t.slice(a,h-1).match(eh))&&a>0&&(c*=Math.pow(.999,f.length))):em.test(t.charAt(h-1))?(c*=.9,(d=t.slice(a,h-1).match(ev))&&a>0&&(c*=Math.pow(.999,d.length))):(c*=.17,a>0&&(c*=Math.pow(.999,h-a))),t.charAt(h)!==r.charAt(o)&&(c*=.9999)),(c<.1&&n.charAt(h-1)===i.charAt(o+1)||i.charAt(o+1)===i.charAt(o)&&n.charAt(h-1)!==i.charAt(o))&&.1*(u=e(t,r,n,i,h+1,o+2,s))>c&&(c=.1*u),c>m&&(m=c),h=n.indexOf(p,h+1);return s[l]=m,m}(n=r&&r.length>0?`${n+" "+r.join(" ")}`:n,t,ey(n),ey(t),0,0,{})},eT=h.createContext(void 0),eA=h.createContext(void 0),eP=h.createContext(void 0),eM=h.forwardRef((e,t)=>
5{let r=eK(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=eK(()=>new Set),i=eK(()=>new Map),a=eK(()=>new Map),o=eK(()=>new Set),s=e$(e),{label:l,children:c,value:u,onValueChange:f,filter:d,shouldFilter:p,loop:m,disablePointerSelection:v=!1,vimBindings:y=!0,...g}=e,b=(0,ej.useId)(),x=(0,ej.useId)(),_=(0,ej.useId)(),w=h.useRef(null),S=eJ();eU(()=>{if(void 0!==u){let e=u.trim();r.current.value=e,k.emit()}},[u]),eU(()=>{S(6,R)},[]);let k=h.useMemo(()=>({subscribe:e=>(o.current.add(e),()=>o.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var i,a,o,l;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)C(),E(),S(1,N);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(_);e?e.focus():null==(i=document.getElementById(b))||i.focus()}if(S(7,()=>{var e;r.current.selectedItemId=null==(e=F())?void 0:e.id,k.emit()}),n||S(5,R),(null==(a=s.current)?void 0:a.value)!==void 0){null==(l=(o=s.current).onValueChange)||l.call(o,null!=t?t:"");return}}k.emit()}},emit:()=>{o.current.forEach(e=>e())}}),[]),O=h.useMemo(()=>({value:(e,t,n)=>{var i;t!==(null==(i=a.current.get(e))?void 0:i.value)&&(a.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,j(t,n)),S(2,()=>{E(),k.emit()}))},item:(e,t)=>(n.current.add(e),t&&(i.current.has(t)?i.current.get(t).add(e):i.current.set(t,new Set([e]))),S(3,()=>{C(),E(),r.current.value||N(),k.emit()}),()=>{a.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=F();S(4,()=>{C(),(null==t?void 0:t.getAttribute("id"))===e&&N(),k.emit()})}),group:e=>(i.current.has(e)||i.current.set(e,new Set),()=>{a.current.delete(e),i.current.delete(e)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:b,inputId:_,labelId:x,listInnerRef:w}),[]);function j(e,t){var n,i;let a=null!=(i=null==(n=s.current)?void 0:n.filter)?i:eI;return e?a(e,r.current.search,t):0}function E(){if(!r.current.search||!1===s.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=i.current.get(r),a=0;n.forEach(t=>{a=Math.max(e.get(t),a)}),t.push([r,a])});let n=w.current;D().sort((t,r)=>{var n,i;let a=t.getAttribute("id"),o=r.getAttribute("id");return(null!=(n=e.get(o))?n:0)-(null!=(i=e.get(a))?i:0)}).forEach(e=>{let t=e.closest(eN);t?t.appendChild(e.parentElement===t?e:e.closest(`${eN} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${eN} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=w.current)?void 0:t.querySelector(`${eE}[${eD}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function N(){let e=D().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(eD);k.setState("value",t||void 0)}function C(){var e,t,o,l;if(!r.current.search||!1===s.current.shouldFilter){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let c=0;for(let i of n.current){let n=j(null!=(t=null==(e=a.current.get(i))?void 0:e.value)?t:"",null!=(l=null==(o=a.current.get(i))?void 0:o.keywords)?l:[]);r.current.filtered.items.set(i,n),n>0&&c++}for(let[e,t]of i.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=c}function R(){var e,t,r;let n=F();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(eE))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function F(){var e;return null==(e=w.current)?void 0:e.querySelector(`${eC}[aria-selected="true"]`)}function D(){var e;return Array.from((null==(e=w.current)?void 0:e.querySelectorAll(eR))||[])}function I(e){let t=D()[e];t&&k.setState("value",t.getAttribute(eD))}function T(e){var t;let r=F(),n=D(),i=n.findIndex(e=>e===r),a=n[i+e];null!=(t=s.current)&&t.loop&&(a=i+e<0?n[n.length-1]:i+e===n.length?n[0]:n[i+e]),a&&k.setState("value",a.getAttribute(eD))}function A(e){let t=F(),r=null==t?void 0:t.closest(eE),n;for(;r&&!n;)n=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,eE):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,eE))?void 0:r.querySelector(eR);n?k.setState("value",n.getAttribute(eD)):T(e)}let P=()=>I(D().length-1),M=e=>{e.preventDefault(),e.metaKey?P():e.altKey?A(1):T(1)},q=e=>{e.preventDefault(),e.metaKey?I(0):e.altKey?A(-1):T(-1)};return h.createElement(eO.div,{ref:t,tabIndex:-1,...g,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=g.onKeyDown)||t.call(g,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":y&&e.ctrlKey&&M(e);break;case"ArrowDown":M(e);break;case"p":case"k":y&&e.ctrlKey&&q(e);break;case"ArrowUp":q(e);break;case"Home":e.preventDefault(),I(0);break;case"End":e.preventDefault(),P();break;case"Enter":{e.preventDefault();let t=F();if(t){let e=new Event(eF);t.dispatchEvent(e)}}}}},h.createElement("label",{"cmdk-label":"",htmlFor:O.inputId,id:O.labelId,style:eX},l),eY(e,e=>h.createElement(eA.Provider,{value:k},h.createElement(eT.Provider,{value:O},e))))}),eq=h.forwardRef((e,t)=>
5{var r,n;let i=(0,ej.useId)(),a=h.useRef(null),o=h.useContext(eP),s=h.useContext(eT),l=e$(e),c=null!=(n=null==(r=l.current)?void 0:r.forceMount)?n:null==o?void 0:o.forceMount;eU(()=>{if(!c)return s.item(i,null==o?void 0:o.id)},[c]);let u=eG(i,a,[e.value,e.children,a],e.keywords),f=h.useContext(eA),d=eH(e=>e.value&&e.value===u.current),p=eH(e=>!!c||!1===s.filter()||!e.search||e.filtered.items.get(i)>0);function m(){var e,t;v(),null==(t=(e=l.current).onSelect)||t.call(e,u.current)}function v(){f.setState("value",u.current,!0)}if(h.useEffect(()=>{let t=a.current;if(!(!t||e.disabled))return t.addEventListener(eF,m),()=>t.removeEventListener(eF,m)},[p,e.onSelect,e.disabled]),!p)return null;let{disabled:y,value:g,onSelect:b,forceMount:x,keywords:_,...w}=e;return h.createElement(eO.div,{ref:(0,eb.composeRefs)(a,t),...w,id:i,"cmdk-item":"",role:"option","aria-disabled":!!y,"aria-selected":!!d,"data-disabled":!!y,"data-selected":!!d,onPointerMove:y||s.getDisablePointerSelection()?void 0:v,onClick:y?void 0:m},e.children)}),eL=h.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:i,...a}=e,o=(0,ej.useId)(),s=h.useRef(null),l=h.useRef(null),c=(0,ej.useId)(),u=h.useContext(eT),f=eH(e=>!!i||!1===u.filter()||!e.search||e.filtered.groups.has(o));eU(()=>u.group(o),[]),eG(o,s,[e.value,e.heading,l]);let d=h.useMemo(()=>({id:o,forceMount:i}),[i]);return h.createElement(eO.div,{ref:(0,eb.composeRefs)(s,t),...a,"cmdk-group":"",role:"presentation",hidden:!f||void 0},r&&h.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},r),eY(e,e=>h.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?c:void 0},h.createElement(eP.Provider,{value:d},e))))}),eV=h.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,i=h.useRef(null),a=eH(e=>!e.search);return r||a?h.createElement(eO.div,{ref:(0,eb.composeRefs)(i,t),...n,"cmdk-separator":"",role:"separator"}):null}),eQ=h.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,i=null!=e.value,a=h.useContext(eA),o=eH(e=>e.search),s=eH(e=>e.selectedItemId),l=h.useContext(eT);return h.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),h.createElement(eO.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:i?e.value:o,onChange:e=>{i||a.setState("search",e.target.value),null==r||r(e.target.value)}})}),ez=h.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...i}=e,a=h.useRef(null),o=h.useRef(null),s=eH(e=>e.selectedItemId),l=h.useContext(eT);return h.useEffect(()=>{if(o.current&&a.current){let e=o.current,t=a.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),h.createElement(eO.div,{ref:(0,eb.composeRefs)(a,t),...i,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":n,id:l.listId},eY(e,e=>h.createElement("div",{ref:(0,eb.composeRefs)(o,l.listInnerRef),"cmdk-list-sizer":""},e)))}),eW=h.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:i,contentClassName:a,container:o,...s}=e;return h.createElement(eg.Root,{open:r,onOpenChange:n},h.createElement(eg.Portal,{container:o},h.createElement(eg.Overlay,{"cmdk-overlay":"",className:i}),h.createElement(eg.Content,{"aria-label":e.label,"cmdk-dialog":"",className:a},h.createElement(eM,{ref:t,...s}))))}),eB=Object.assign(eM,{List:ez,Item:eq,Input:eQ,Group:eL,Separator:eV,Dialog:eW,Empty:h.forwardRef((e,t)=>eH(e=>0===e.filtered.count)?h.createElement(eO.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:h.forwardRef((e,t)=>{let{progress:r,children:n,label:i="Loading...",...a}=e;return h.createElement(eO.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},eY(e,e=>h.createElement("div",{"aria-hidden":!0},e)))})});function e$(e){let t=h.useRef(e);return eU(()=>{t.current=e}),t}var eU="u"<typeof window?h.useEffect:h.useLayoutEffect;function eK(e){let t=h.useRef();return void 0===t.current&&(t.current=e()),t}function eH(e){let t=h.useContext(eA),r=()=>e(t.snapshot());return h.useSyncExternalStore(t.subscribe,r,r)}function eG(e,t,r,n=[]){let i=h.useRef(),a=h.useContext(eT);return eU(()=>{var o;let s=(()=>{var e;
5for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():i.current}})(),l=n.map(e=>e.trim());a.value(e,s,l),null==(o=t.current)||o.setAttribute(eD,s),i.current=s}),i}var eJ=()=>{let[e,t]=h.useState(),r=eK(()=>new Map);return eU(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function eY({asChild:e,children:t},r){let n;return e&&h.isValidElement(t)?h.cloneElement("function"==typeof(n=t.type)?n(t.props):"render"in n?n.render(t.props):t,{ref:t.ref},r(t.props.children)):r(t)}var eX={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},eZ=e.i(33538);e.i(60187);let e0=h.forwardRef(({className:e,...t},n)=>(0,r.jsx)(eB,{ref:n,className:(0,C.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));e0.displayName=eB.displayName;let e1=h.forwardRef(({className:e,...t},n)=>(0,r.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,r.jsx)(eZ.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,r.jsx)(eB.Input,{ref:n,className:(0,C.cn)("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));e1.displayName=eB.Input.displayName;let e2=h.forwardRef(({className:e,...t},n)=>(0,r.jsx)(eB.List,{ref:n,className:(0,C.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));e2.displayName=eB.List.displayName;let e4=h.forwardRef((e,t)=>(0,r.jsx)(eB.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));e4.displayName=eB.Empty.displayName;let e3=h.forwardRef(({className:e,...t},n)=>(0,r.jsx)(eB.Group,{ref:n,className:(0,C.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));e3.displayName=eB.Group.displayName,h.forwardRef(({className:e,...t},n)=>(0,r.jsx)(eB.Separator,{ref:n,className:(0,C.cn)("-mx-1 h-px bg-border",e),...t})).displayName=eB.Separator.displayName;let e8=h.forwardRef(({className:e,...t},n)=>(0,r.jsx)(eB.Item,{ref:n,className:(0,C.cn)("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));e8.displayName=eB.Item.displayName;let e5=()=>{let{selectedClient:e,setSelectedClient:t,me:n}=(0,h.useContext)(L.AuthContext),[i,a]=(0,h.useState)(!1);return(0,r.jsxs)(I.Popover,{open:i,onOpenChange:a,children:[(0,r.jsx)(I.PopoverTrigger,{asChild:!0,children:(0,r.jsxs)(ed.Button,{variant:"outline",role:"combobox","aria-expanded":i,className:"w-full justify-between h-10 px-3",children:[(0,r.jsx)("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-left",children:e?.name||"Sélectionner un établissement"}),(0,r.jsx)(ef,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),(0,r.jsx)(I.PopoverContent,{className:"w-[250px] p-0",align:"start",children:(0,r.jsx)(e0,{children:(0,r.jsxs)(e2,{children:[(0,r.jsx)(e1,{placeholder:"Rechercher un établissement..."}),(0,r.jsx)(e4,{children:"Aucun établissement trouvé."}),(0,r.jsx)(e3,{children:n?.clients?.map(n=>(0,r.jsxs)(e8,{value:n.name,onSelect:()=>{t(n),a(!1)},className:"cursor-pointer",children:[(0,r.jsx)("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap",children:n.name}),(0,r.jsx)(eu.CheckIcon,{className:(0,C.cn)("ml-2 h-4 w-4",e?.id===n.id?"opacity-100":"opacity-0")})]},n.id))})]})})})]})},e9=[{name:"Dashboard",icon:e=>(0,r.jsx)(F.IoHomeOutline,{size:20,className:`${e?"text-navFocus":"text-navFocusOut"}`}),href:"/user-client"},{name:"Mon Profil",icon:e=>(0,r.jsx)(H.FaRegUserCircle,{size:20,className:`${e?"text-navFocus":"text-navFocusOut"}`}),href:"/user-client/profile"},{name:"Planning",icon:e=>(0,r.jsx)(el,{size:20,className:`${e?"text-navFocus":"text-navFocusOut"}`}),href:"/user-client/planning"},{name:"Remplacement",icon:e=>(0,r.jsx)(F.IoPeopleCircleOutline,{size:20,className:`${e?"text-navFocus":"text-navFocusOut"}`}),href:"/user-client/orders"},{name:"DUO Vacation",icon:e=>(0,r.jsx)(ec,{size:20,className:`${e?"text-navFocus":"text-navFocusOut"}`}),href:"/user-client/contracts"},{name:"Interim Direct",icon:e=>(0,r.jsx)(J,{size:20,className:`${e?"text-navFocus":"text-navFocusOut"}`}
5),href:"https://extranet.interimdirect.fr/connexion-client"},{name:"Armado",icon:e=>(0,r.jsx)(F.IoDocumentTextOutline,{size:20,className:`${e?"text-navFocus":"text-navFocusOut"}`}),href:"https://www.armado.fr"},{name:"Bilans de mission",icon:e=>(0,r.jsx)(Y.MdOutlineRateReview,{size:20,className:`${e?"text-navFocus":"text-navFocusOut"}`}),href:"/user-client/bilans"}],e6=()=>{let e,{signOut:t}=(0,h.useContext)(L.AuthContext),{sideMenu:n,setSideMenu:i}=(0,h.useContext)(S),a=(0,p.useRouter)();return(0,h.useEffect)(()=>()=>{},[]),(0,r.jsxs)(Z.motion.div,{className:`w-full hide-for-print sm:w-48 fixed z-50 lg:z-40 left-0 top-0 flex-col bg-duo500 min-h-screen max-h-screen overflow-y-auto transition-all duration-300 ease-in-out
6      ${n?"translate-x-0":"-translate-x-full  lg:-translate-x-0"}
7      `,children:[(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsx)("div",{className:"pl-5 py-6",children:(0,r.jsx)("img",{className:"w-36 object-contain",draggable:!1,src:"/img/logo.svg"})}),(0,r.jsx)("div",{className:"flex lg:hidden cursor-pointer pr-4",onClick:()=>{i?.(!1)},children:(0,r.jsx)(w.FiMenu,{size:24,className:"text-white"})})]}),(0,r.jsx)("div",{className:"px-4 mb-2",children:(0,r.jsx)(e5,{})}),(0,r.jsx)("nav",{className:"flex flex-grow min-h-fit",children:(0,r.jsx)("ul",{className:"list-none w-full",children:(e=e9.map(e=>e.href).filter(e=>e.startsWith("/")).filter(e=>a?.pathname===e||a?.pathname?.startsWith?.(e+"/")).sort((e,t)=>t.length-e.length)[0],e9?.map?.((t,n)=>{let a=e===t?.href;return(0,r.jsx)("li",{children:(0,r.jsxs)(_.default,{href:t?.href,className:"flex h-12 w-full items-center hover:opacity-70 cursor-pointer",onClick:e=>{i?.(!1)},children:[(0,r.jsx)("span",{className:"px-4",children:t?.icon?.(a)}),(0,r.jsx)("span",{className:`flex-1 ${a?"text-primary":"text-duo300"} text-base`,children:t?.name})]})},`navItem-${n}`)}))})}),(0,r.jsxs)("div",{className:" py-6",children:[(0,r.jsx)("span",{className:"pl-5 text-duo800 uppercase",children:"Réglages"}),(0,r.jsx)("nav",{className:"mt-2 min-h-fit",children:(0,r.jsx)("ul",{className:"list-none w-full",children:(0,r.jsxs)("li",{className:"flex h-10 w-full items-center hover:opacity-70 cursor-pointer",onClick:async()=>{t?.()},children:[(0,r.jsx)("span",{className:"px-4",children:(0,r.jsx)(K.BiLogOut,{size:18,className:"text-navFocusOut"})}),(0,r.jsx)("a",{className:"flex-1 text-duo300 text-sm",children:"Se déconnecter"})]})})})]})]})};var e7=e.i(58129);let te=(0,P.default)("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);var tt=e.i(68462);let tr=({user:e})=>{let{selectedClient:t}=(0,h.useContext)(L.AuthContext),[n,i]=(0,h.useState)([]),[a,o]=(0,h.useState)(!1),[s,l]=(0,h.useState)(!0),c=n?.some(e=>"online"===e.status);return((0,h.useEffect)(()=>{if(!e)return;e7.Crisp.configure("c0c392e2-5c4d-4eb7-b3ab-f50a88034a51"),e7.Crisp.chat.hide();let r=t?.name||e.userClients?.[0]?.client?.name||null,n=`- ${r}`;return e7.Crisp.user.setEmail(e.email),e7.Crisp.user.setNickname(`${e.firstName} ${e.lastName}${n}`),e7.Crisp.session.setData({userId:e.id,role:"CLIENT",clientName:r}),e7.Crisp.chat.onChatOpened(()=>o(!0)),e7.Crisp.chat.onChatClosed(()=>{o(!1),e7.Crisp.chat.hide()}),()=>{e7.Crisp.chat.offChatOpened(),e7.Crisp.chat.offChatClosed()}},[e,t]),(0,h.useEffect)(()=>{let e=async()=>{try{let e=await fetch("https://api.duo-sante.fr/api/crisp/support-team"),t=await e.json();i(t.team)}catch(e){console.error("Error fetching support team:",e)}};e();let t=setInterval(e,3e5);return()=>clearInterval(t)},[]),!s||a)?null:(0,r.jsxs)("div",{className:"fixed bottom-5 right-5 bg-white shadow-lg rounded-lg p-4 w-80 border border-gray-200 z-10",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("h3",{className:"text-sm font-semibold",children:"Contactez-nous 💬"}),(0,r.jsx)("button",{onClick:()=>l(!1),className:"text-gray-400 hover:text-gray-600",children:(0,r.jsx)(tt.X,{size:14})})]}),(0,r.jsxs)("div",{className:"flex justify-between items-center mt-2",children:[(0,r.jsxs)("div",{className:"flex items-center text-sm text-gray-500",children:[(0,r.jsx)("span",{children:c?"Le support est en ligne":"Le support est disponible du lundi au vendredi de 9h à 18h"}),c&&(0,r.jsx)("div",{className:"ml-2 w-2 h-2 bg-green-500 rounded-full"})]}),n?.length>0&&(0,r.jsx)("div",{className:"flex items-center pr-4",children:n.slice(0,3).map((e,t)=>(0,r.jsx)("img",{src:e.avatar,alt:e.nickname,className:"w-7 h-7 rounded-full border border-gray-300 -ml-2 first:ml-0"},t))})]}),(0,r.jsx)("div",{className:"flex mt-3 space-x-2",children:(0,r.jsxs)("button",{onClick:()=>{e7.Crisp.chat.open(),e7.Crisp.chat.show()},className:"flex items-center justify-center bg-primary text-white rounded-md px-4 py-2 text-sm font-medium w-full",children:[(0,r.jsx)(te,{size:16,className:"mr-2"}),"Discuter avec Duo Santé"]})})]})},tn=()=>{let e="https://api.duo-sante.fr",[t,n]=(0,h.useState)(0);return(0,h.useEffect)(()=>{let t=async()=>{try{let t=await fetch(`${e}/api/crisp/unread-message-count`);if(!t.ok)throw Error("Failed to fetch unread messages");let r=await t.json();n(r.unreadCount)}catch(e){console.error("Error fetching unread messages:",e)}};t();let r=setInterval(t,6e4);return()=>clearInterval(r)},[e]),(0,r.jsxs)("div",{onClick:()=>window.open("https://app.crisp.chat/website/c0c392e2-5c4d-4eb7-b3ab-f50a88034a51/inbox/","_blank"),className:"fixed bottom-5 right-5 bg-[#1971f5] text-white p-4 rounded-full shadow-lg cursor-pointer flex items-center justify-center z-10",children:[(0,r.jsx)(te,{size:24}),t>0&&(0,r.jsx)("span",{className:"absolute top-0 right-0 bg-red-500 text-white text-xs font-bold w-5 h-5 flex items-center justify-center rounded-full",children:t})]})},ti=(0,d.default)({uri:"https://api.duo-sante.fr",credentials:"include",headers:{"Apollo-Require-Preflight":"true"}}),ta=(t=(e,{headers:t})=>{let r=localStorage.getItem("token"),n=sessionStorage.getItem("sectorId"),i=sessionStorage.getItem("workProfileId");return{headers:{...t,authorization:r?`Bearer ${r}`:"","x-sector-id":n||"","x-work-profile-id":i||""}}},new u.ApolloLink(function(e,r){var n=(0,i.__rest)(e,[]);return new f.Observable(function(i){var a,o=!1;return Promise.resolve(n).then(function(r){return t(r,e.getContext())}).then(e.setContext).then(function(){o||(a=r(e).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){o=!0,a&&a.unsubscribe()}})})),to=new n.ApolloClient({link:ta.concat(ti),cache:new c.InMemoryCache}),ts=["/orders/[orderId]/print","/candidates/[candidateId]/print","/clients/[clientId]/print","/forgotPassword","/resetPassword/[token]"],tl=({children:e})=>{let[t,n]=(0,h.useState)(!1),i=p.useRouter?.(),a=h.useContext?.(L.AuthContext);return((0,h.useEffect)(()=>(a?.me?.roles?.includes?.("INTERIM_DIRECT")&&!i?.pathname?.includes?.("/interim-direct")&&i?.pu
7sh?.("/interim-direct?status=validated"),a?.me?.roles?.includes?.("CLIENT")&&!i?.pathname?.includes?.("/user-client")&&i?.push?.("/user-client"),()=>{}),[a?.me?.roles,i?.pathname]),(0,h.useEffect)(()=>((a?.me||i?.pathname=="/forgotPassword"||i?.pathname=="/resetPassword/[token]")&&n?.(!0),()=>{}),[a?.me]),t)?(0,r.jsx)("div",{className:"flex h-full w-full relative",children:a?.me?.roles?.includes?.("INTERIM_DIRECT")?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"print:hidden",children:(0,r.jsx)(es,{})}),(0,r.jsx)("main",{children:(0,r.jsx)(z,{noHeader:!0,children:e})})]}):a?.me?.roles?.includes?.("CLIENT")?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"print:hidden",children:[(0,r.jsx)(e6,{}),(0,r.jsx)(A,{isClient:!0})]}),(0,r.jsxs)("main",{children:[(0,r.jsx)(z,{isClient:!0,children:e}),(0,r.jsx)("div",{className:"print:hidden",children:(0,r.jsx)(tr,{user:a?.me})})]})]}):ts?.includes?.(i?.pathname)?(0,r.jsx)("main",{className:"w-full",children:e}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"print:hidden",children:[(0,r.jsx)(ea,{}),(0,r.jsx)(A,{}),(0,r.jsx)(U,{}),(0,r.jsx)(Q,{})]}),(0,r.jsxs)("main",{children:[(0,r.jsx)(z,{children:e}),(0,r.jsx)("div",{className:"print:hidden",children:(0,r.jsx)(tn,{})})]})]})}):(0,r.jsx)("div",{className:"flex h-screen w-full justify-center items-center",children:(0,r.jsx)($.default,{})})};e.s(["default",0,function({Component:e,pageProps:t}){return p.useRouter?.(),(0,r.jsxs)(l,{client:to,children:[(0,r.jsx)(L.AuthProvider,{children:(0,r.jsx)(ee.SectorProvider,{children:(0,r.jsx)(j,{children:(0,r.jsx)(k,{children:(0,r.jsx)(tl,{children:(0,r.jsx)(e,{...t})})})})})}),(0,r.jsx)(m.Toaster,{}),(0,r.jsx)(x,{})]})}],59866)},55070,(e,t,r)=>{let n="/_app";(window.__NEXT_P=window.__NEXT_P||[]).push([n,()=>e.r(59866)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([n])})},95585,71393,33448,268,64501,14540,58673,84936,e=>{"use strict";var t,r,n=e.i(89280);e.i(68681);var i=e.i(5578),a=e.i(62979),o=a.ApolloLink.execute;e.s(["execute",0,o],71393);var s=e.i(99849),l=e.i(71596),c=e.i(24669),u=e.i(49429),f=e.i(26452),d=e.i(2024),p=e.i(86384),h=e.i(28117),m=e.i(15301),v=e.i(42419);function y(e){var t=g(e);return(0,v.isNonEmptyArray)(t)}function g(e){var t=(0,v.isNonEmptyArray)(e.errors)?e.errors.slice(0):[];return(0,d.isExecutionPatchIncrementalResult)(e)&&(0,v.isNonEmptyArray)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var b=e.i(25945);function x(e,t,r){return new b.Observable(function(n){var i={then:function(e){return new Promise(function(t){return t(e())})}};function a(e,t){return function(r){if(e){var a=function(){return n.closed?0:e(r)};i=i.then(a,a).then(function(e){return n.next(e)},function(e){return n.error(e)})}else n[t](r)}}var o={next:a(t,"next"),error:a(r,"error"),complete:function(){i.then(function(){return n.complete()})}},s=e.subscribe(o);return function(){return s.unsubscribe()}})}var _=e.i(56034),w=e.i(98377);function S(e){return e&&"function"==typeof e.then}var k=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),(0,_.iterateObserversSafely)(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),(0,_.iterateObserversSafely)(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?S(n)?n.then(function(e){return r.sub=e.subscribe(r.handlers)},r.handlers.error):r.sub=n.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),(0,_.iterateObserversSafely)(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.error(e)},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new b.Observable(t)]),S(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,n.__extends)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(b.Observable);(0,w.fixObservableSubclass)(k);var O=e.i(83874),j=e.i(56776),E=e.i(30101),N=e.i(83015),C=e.i(23289),R=e.i(62918),F=e.i(6775),D=e.i(6044);function I(e){return e}var T=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=C.canUseWeakSet?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(I,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),Object.assign(new e(function(e){return(t(e)?r:n).transformDocument(e)},{cache:!1}),{left:r,right:n})},e.prototype.resetCache=function(){var t=this;if(this.cached){var r=new N.Trie(C.canUseWeakMap);this.performWork=(0,F.wrap)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return(0,i.invariant)(Array.isArray(n),105),r.lookupArray(n)},max:D.cacheSizes["documentTransform.cache"],cache:R.WeakCache})}},e.prototype.performWork=function(e){return(0,m.checkDocument)(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var r=this;return Object.assign(new e(function(e){return t.transformDocument(r.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}();e.s(["DocumentTransform",0,T],33448);var A=e.i(33879),P=e.i(57828),M=e.i(76810),q=e.i(13959),L=e.i(69547),V=new(C.canUseWeakMap?WeakMap:Map);function Q(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return V.set(e,(V.get(e)+1)%1e15),r.apply(this,arguments)})}var z=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var r=this.cache=e.cache;V.has(r)||(V.set(r,0),Q(r,"evict"),Q(r,"modify"),Q(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||M.NetworkStatus.loading;return this.variables&&this.networkStatus!==M.NetworkStatus.loading&&!(0,c.equal)(this.variables,e.variables)&&(t=M.NetworkStatus.setVariables),(0,c.equal)(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this,t=this.getDiffOptions();if(this.lastDiff&&(0,c.equal)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var n=(0,L.muteDeprecations)("canonizeResults",function(){return e.cache.diff(t)});return this.updateLastDiff(n,t),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null==(t=this.observableQuery)?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r=this,n=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(0,L.muteDeprecations)("getLastError",function(){var e;return null==(e=r.observableQuery)?void 0:e.getLastError()}))&&(this.updateLastDiff(e),(0,c.equal)(n&&n.result,e&&e.result)||null==(t=this.observableQuery)||t.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,null==(e=this.observableQuery)||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;null==(e=this.cancelWatch)||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var i=(0,n.__assign)((0,n.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});
7this.lastWatch&&(0,c.equal)(i,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===V.get(this.cache)&&(0,c.equal)(t,r.variables)&&(0,c.equal)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i,a=this,o=new q.DeepMerger,s=(0,v.isNonEmptyArray)(e.errors)?e.errors.slice(0):[];if(null==(i=this.observableQuery)||i.resetNotifications(),"incremental"in e&&(0,v.isNonEmptyArray)(e.incremental)){var l=(0,d.mergeIncrementalData)(this.getDiff().result,e);e.data=l}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=o.merge(u.result,e.data)}this.graphQLErrors=s,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(W(e,r.errorPolicy)?this.cache.performTransaction(function(i){if(a.shouldWrite(e,r.variables))i.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),a.lastWrite={result:e,variables:r.variables,dmCount:V.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete){e.data=a.lastDiff.diff.result;return}var o=a.getDiffOptions(r.variables),s=(0,L.muteDeprecations)("canonizeResults",function(){return i.diff(o)});!a.stopped&&(0,c.equal)(a.variables,r.variables)&&a.updateWatch(r.variables),a.updateLastDiff(s,o),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=M.NetworkStatus.ready},e.prototype.markError=function(e){var t;return this.networkStatus=M.NetworkStatus.error,this.lastWrite=void 0,null==(t=this.observableQuery)||t.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function W(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!y(e);return!n&&r&&e.data&&(n=!0),n}var B=e.i(41969),$=e.i(36904),U=e.i(6699),K=e.i(98173),H=C.canUseWeakMap?WeakMap:Map,G=C.canUseWeakSet?WeakSet:Set,J=new K.Slot,Y=!1;function X(){Y||(Y=!0,!1!==globalThis.__DEV__&&i.invariant.warn(64))}var Z=e.i(11922);function ee(e,t,r){return J.withValue(!0,function(){var n=function e(t,r,n,a,o){var s,l=n.knownChanged,c=function(e,t){if(t.has(e))return t.get(e);var r=Array.isArray(e)?[]:Object.create(null);return t.set(e,r),r}(t,n.mutableTargets);if(Array.isArray(t)){for(var u=0,d=Array.from(t.entries());u<d.length;u++){var p=d[u],h=p[0],m=p[1];if(null===m){c[h]=null;continue}var v=e(m,r,n,a,!1!==globalThis.__DEV__?"".concat(o||"","[").concat(h,"]"):void 0);l.has(v)&&l.add(c),c[h]=v}return l.has(c)?c:t}for(var y=0,g=r.selections;y<g.length;y++){var b=g[y],x=void 0;if(a&&l.add(c),b.kind===U.Kind.FIELD){var _=(0,j.resultKeyNameFromField)(b),w=b.selectionSet;if(void 0===(x=c[_]||t[_]))continue;if(w&&null!==x){var v=e(t[_],w,n,a,!1!==globalThis.__DEV__?"".concat(o||"",".").concat(_):void 0);l.has(v)&&(x=v)}!1===globalThis.__DEV__&&(c[_]=x),!1!==globalThis.__DEV__&&(!a||"__typename"===_||(null==(s=Object.getOwnPropertyDescriptor(c,_))?void 0:s.value)?(delete c[_],c[_]=x):Object.defineProperty(c,_,function(e,t,r,n,a){var o=function(){return J.getValue()||(!1!==globalThis.__DEV__&&i.invariant.warn(60,n?"".concat(a," '").concat(n,"'"):"anonymous ".concat(a),"".concat(r,".").concat(e).replace(/^\./,"")),o=function(){return t}),t};return{get:function(){return o()},set:function(e){o=function(){return e}},enumerable:!0,configurable:!0}}(_,x,o||"",n.operationName,n.operationType)))}if(b.kind===U.Kind.INLINE_FRAGMENT&&(!b.typeCondition||n.cache.fragmentMatches(b,t.__typename))&&(x=e(t,b.selectionSet,n,a,o)),b.kind===U.Kind.FRAGMENT_SPREAD){var S=b.name.value,k=n.fragmentMap[S]||(n.fragmentMap[S]=n.cache.lookupFragment(S));(0,i.invariant)(k,59,S);var O=(0,f.getFragmentMaskMode)(b);"mask"!==O&&(x=e(t,k.selectionSet,n,"migrate"===O,o))}l.has(x)&&l.add(c)}return"__typename"in t&&!("__typename"in c)&&(c.__typename=t.__typename),Object.keys(c).length!==Object.keys(t).length&&l.add(c),l.has(c)?c:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,Z.maybeDeepFreeze)(n),n})}function et(e,t,r,n){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&X(),e;var a=t.definitions.filter(function(e){return e.kind===U.Kind.FRAGMENT_DEFINITION});void 0===n&&((0,i.invariant)(1===a.length,61,a.length),n=a[0].name.value);var o=a.find(function(e){return e.name.value===n});return((0,i.invariant)(!!o,62,n),null==e||(0,c.default)(e,{}))?e:ee(e,o.selectionSet,{operationType:"fragment",operationName:o.name.value,fragmentMap:(0,p.createFragmentMap)((0,m.getFragmentDefinitions)(t)),cache:r,mutableTargets:new H,knownChanged:new G})}var er=Object.prototype.hasOwnProperty,en=Object.create(null),ei=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new $.AutoCleanedWeakCache(D.cacheSizes["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new N.Trie(!1),this.noCacheWarningsByQueryId=new Set;var r=new T(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var n=e.documentTransform;this.documentTransform=n?r.concat(n).concat(r):r,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;
7this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches((0,i.newInvariantError)(35))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,n.__awaiter)(this,arguments,void 0,function(e){var t,r,a,o,s,l,c,u=e.mutation,f=e.variables,d=e.optimisticResponse,p=e.updateQueries,h=e.refetchQueries,m=void 0===h?[]:h,v=e.awaitRefetchQueries,b=void 0!==v&&v,_=e.update,w=e.onQueryUpdated,S=e.fetchPolicy,k=void 0===S?(null==(l=this.defaultOptions.mutate)?void 0:l.fetchPolicy)||"network-only":S,O=e.errorPolicy,j=void 0===O?(null==(c=this.defaultOptions.mutate)?void 0:c.errorPolicy)||"none":O,E=e.keepRootFields,N=e.context;return(0,n.__generator)(this,function(e){switch(e.label){case 0:if((0,i.invariant)(u,36),(0,i.invariant)("network-only"===k||"no-cache"===k,37),t=this.generateMutationId(),u=this.cache.transformForLink(this.transform(u)),r=this.getDocumentInfo(u).hasClientExports,f=this.getVariables(u,f),!r)return[3,2];return[4,this.localState.addExportedVariables(u,f,N)];case 1:f=e.sent(),e.label=2;case 2:return a=this.mutationStore&&(this.mutationStore[t]={mutation:u,variables:f,loading:!0,error:null}),o=d&&this.markMutationOptimistic(d,{mutationId:t,document:u,variables:f,fetchPolicy:k,errorPolicy:j,context:N,updateQueries:p,update:_,keepRootFields:E}),this.broadcastQueries(),s=this,[2,new Promise(function(e,r){return x(s.getObservableFromLink(u,(0,n.__assign)((0,n.__assign)({},N),{optimisticResponse:o?d:void 0}),f,{},!1),function(e){if(y(e)&&"none"===j)throw new A.ApolloError({graphQLErrors:g(e)});a&&(a.loading=!1,a.error=null);var r=(0,n.__assign)({},e);return"function"==typeof m&&(m=m(r)),"ignore"===j&&y(r)&&delete r.errors,s.markMutationResult({mutationId:t,result:r,document:u,variables:f,fetchPolicy:k,errorPolicy:j,context:N,update:_,updateQueries:p,awaitRefetchQueries:b,refetchQueries:m,removeOptimistic:o?t:void 0,onQueryUpdated:w,keepRootFields:E})}).subscribe({next:function(r){s.broadcastQueries(),"hasNext"in r&&!1!==r.hasNext||e((0,n.__assign)((0,n.__assign)({},r),{data:s.maskOperation({document:u,data:r.data,fetchPolicy:k,id:t})}))},error:function(e){a&&(a.loading=!1,a.error=e),o&&s.cache.removeOptimistic(t),s.broadcastQueries(),r(e instanceof A.ApolloError?e:new A.ApolloError({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var i=e.result,a=[],o="no-cache"===e.fetchPolicy;if(!o&&W(i,e.errorPolicy)){if((0,d.isExecutionPatchIncrementalResult)(i)||a.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,d.isExecutionPatchIncrementalResult)(i)&&(0,v.isNonEmptyArray)(i.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),l=void 0;s.result&&(l=(0,d.mergeIncrementalData)(s.result,i)),void 0!==l&&(i.data=l,a.push({result:l,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,n){var o=e.observableQuery,s=o&&o.queryName;if(s&&er.call(c,s)){var l=c[s],u=r.queries.get(n),f=u.document,d=u.variables,p=t.diff({query:f,variables:d,returnPartialData:!0,optimistic:!1}),h=p.result;if(p.complete&&h){var v=l(h,{mutationResult:i,queryName:f&&(0,m.getOperationName)(f)||void 0,queryVariables:d});v&&a.push({result:v,dataId:"ROOT_QUERY",query:f,variables:d})}}})}if(a.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var u=[];if(this.refetchQueries({updateCache:function(t){o||a.forEach(function(e){return t.write(e)});var s=e.update,l=!(0,d.isExecutionPatchResult)(i)||(0,d.isExecutionPatchIncrementalResult)(i)&&!i.hasNext;if(s){if(!o){var c=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(i=(0,n.__assign)((0,n.__assign)({},i),{data:c.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}l&&s(t,i,{context:e.context,variables:e.variables})}o||e.keepRootFields||!l||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}
7).forEach(function(e){return u.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(u).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var r=this,a="function"==typeof e?e(t.variables,{IGNORE:en}):e;return a!==en&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,n.__assign)((0,n.__assign)({},t),{result:{data:a}}),e)}catch(e){!1!==globalThis.__DEV__&&i.invariant.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:(0,f.hasClientExports)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,f.hasDirectives)(["nonreactive"],e),nonReactiveQuery:(0,u.addNonReactiveToNamedFragments)(e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,u.removeDirectivesFromDocument)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:(0,m.getDefaultValues)((0,m.getOperationDefinition)(e)),asQuery:(0,n.__assign)((0,n.__assign)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,n.__assign)((0,n.__assign)({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,n.__assign)((0,n.__assign)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,n.__assign)((0,n.__assign)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new z(this),i=new P.ObservableQuery({queryManager:this,queryInfo:r,options:e});return i.lastQuery=t,P.ObservableQuery.inactiveOnCreation.getValue()||this.queries.set(i.queryId,r),r.init({document:t,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(e,t){var r=this;void 0===t&&(t=this.generateQueryId()),(0,i.invariant)(e.query,38),(0,i.invariant)("Document"===e.query.kind,39),(0,i.invariant)(!e.returnPartialData,40),(0,i.invariant)(!e.pollInterval,41);var a=this.transform(e.query);return this.fetchQuery(t,(0,n.__assign)((0,n.__assign)({},e),{query:a})).then(function(i){return i&&(0,n.__assign)((0,n.__assign)({},i),{data:r.maskOperation({document:a,data:i.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,i.newInvariantError)(42)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=M.NetworkStatus.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,a=new Map,o=new Map,s=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)a.set(e,e),o.set(e,!1);else if((0,j.isDocumentNode)(e)){var r=(0,B.print)(t.transform(e));a.set(r,(0,m.getOperationName)(e)),o.set(r,!1)}else(0,E.isNonNullObject)(e)&&e.query&&s.add(e)}),this.queries.forEach(function(t,n){var i=t.observableQuery,a=t.document;if(i){if("all"===e)return void r.set(n,i);var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&o.has(s)||a&&o.has((0,B.print)(a)))&&(r.set(n,i),s&&o.set(s,!0),a&&o.set((0,B.print)(a),!0))}}
7),s.size&&s.forEach(function(e){var a=(0,O.makeUniqueId)("legacyOneTimeQuery"),o=t.getOrCreateQuery(a).init({document:e.query,variables:e.variables}),s=new P.ObservableQuery({queryManager:t,queryInfo:o,options:(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"network-only"})});(0,i.invariant)(s.queryId===a),o.setObservableQuery(s),r.set(a,s)}),!1!==globalThis.__DEV__&&o.size&&o.forEach(function(e,t){if(!e){var r=a.get(t);r?!1!==globalThis.__DEV__&&i.invariant.warn(43,r):!1!==globalThis.__DEV__&&i.invariant.warn(44)}}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var a=n.options.fetchPolicy;(0,L.muteDeprecations)("resetLastResults",function(){return n.resetLastResults()}),(e||"standby"!==a&&"cache-only"!==a)&&r.push(n.refetch()),(t.queries.get(i)||n.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.variables,i=e.fetchPolicy,a=e.errorPolicy,o=void 0===a?"none":a,s=e.context,l=void 0===s?{}:s,c=e.extensions,u=void 0===c?{}:c;r=this.transform(r),n=this.getVariables(r,n);var f=function(e){return t.getObservableFromLink(r,l,e,u).map(function(n){"no-cache"!==i&&(W(n,o)&&t.cache.write({query:r,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=y(n),s=(0,A.graphQLResultHasProtocolErrors)(n);if(a||s){var l={};if(a&&(l.graphQLErrors=n.errors),s&&(l.protocolErrors=n.extensions[A.PROTOCOL_ERRORS_SYMBOL]),"none"===o||s)throw new A.ApolloError(l)}return"ignore"===o&&delete n.errors,n})};if(this.getDocumentInfo(r).hasClientExports){var d=this.localState.addExportedVariables(r,n,l).then(f);return new b.Observable(function(e){var t=null;return d.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return f(n)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&(null==(t=this.queries.get(e))||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var t;return null==(t=e.observableQuery)?void 0:t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,i,a){var s,l,c=this;void 0===a&&(a=null!=(s=null==t?void 0:t.queryDeduplication)?s:this.queryDeduplication);var u=this.getDocumentInfo(e),f=u.serverQuery,d=u.clientQuery;if(f){var p=this.inFlightLinkObservables,v=this.link,y={query:f,variables:r,operationName:(0,m.getOperationName)(f)||void 0,context:this.prepareContext((0,n.__assign)((0,n.__assign)({},t),{forceFetch:!a})),extensions:i};if(t=y.context,a){var g=(0,B.print)(f),_=(0,h.canonicalStringify)(r),w=p.lookup(g,_);if(!(l=w.observable)){var S=new k([o(v,y)]);l=w.observable=S,S.beforeNext(function e(t,r){"next"===t&&"hasNext"in r&&r.hasNext?S.beforeNext(e):p.remove(g,_)})}}else l=new k([o(v,y)])}else l=new k([b.Observable.of({data:{}})]),t=this.prepareContext(t);return d&&(l=x(l,function(e){return c.localState.runResolvers({document:d,remoteResult:e,context:t,variables:r})})),l},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return x(this.getObservableFromLink(i,r.context,r.variables),function(a){var o=g(a),s=o.length>0,l=r.errorPolicy;if(n>=e.lastRequestId){if(s&&"none"===l)throw e.markError(new A.ApolloError({graphQLErrors:o}));e.markResult(a,i,r,t),e.markReady()}var c={data:a.data,loading:!1,networkStatus:M.NetworkStatus.ready};return s&&"none"===l&&(c.data=void 0),s&&"ignore"!==l&&(c.errors=o,c.networkStatus=M.NetworkStatus.error),c},function(t){var r=(0,A.isApolloError)(t)?t:new A.ApolloError({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i,a,o=this;void 0===r&&(r=M.NetworkStatus.loading),void 0===n&&(n=t.query);var s=this.getVariables(n,t.variables),l=this.defaultOptions.watchQuery,c=t.fetchPolicy,u=void 0===c?l&&l.fetchPolicy||"cache-first":c,f=t.errorPolicy,d=void 0===f?l&&l.errorPolicy||"none":f,p=t.returnPartialData,h=t.notifyOnNetworkStatusChange,m=t.context,v=Object.assign({},t,{query:n,variables:s,fetchPolicy:u,errorPolicy:d,returnPartialData:void 0!==p&&p,notifyOnNetworkStatusChange:void 0!==h&&h,context:void 0===m?{}:m}),y=function(n){v.variables=n;var i=o.fetchQueryByPolicy(e,v,r);return"standby"!==v.fetchPolicy&&i.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",t),i},g=function(){return o.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){g(),setTimeout(function(){return i.cancel(e)})}),this.getDocumentInfo(v.query).hasClientExports)i=new k(this.localState.addExportedVariables(v.query,v.variables,v.context).then(y).then(function(e){return e.sources})),a=!0;else{var b=y(v.variables);a=b.fromLink,i=new k(b.sources)}return i.promise.then(g,g),{concast:i,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,a=void 0!==i&&i,o=e.removeOptimistic,s=void 0===o?a?(0,O.makeUniqueId)("refetchQueries"):void 0:o,l=e.onQueryUpdated,c=new Map;
7n&&this.getObservableQueries(n).forEach(function(e,r){c.set(r,{oq:e,lastDiff:(t.queries.get(r)||e.queryInfo).getDiff()})});var u=new Map;return r&&this.cache.batch({update:r,optimistic:a&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof z&&e.watcher.observableQuery;if(n){if(l){c.delete(n.queryId);var i=l(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&u.set(n,i),i}null!==l&&c.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),c.size&&c.forEach(function(e,r){var n,i=e.oq,a=e.lastDiff,o=e.diff;l&&(o||(o=(0,L.muteDeprecations)("canonizeResults",function(){return t.cache.diff(i.queryInfo.getDiffOptions())})),n=l(i,o,a)),l&&!0!==n||(n=i.refetch()),!1!==n&&u.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),u},e.prototype.maskOperation=function(e){var t,r,n,a=e.document,o=e.data;if(!1!==globalThis.__DEV__){var s=e.fetchPolicy,l=e.id,c=null==(t=(0,m.getOperationDefinition)(a))?void 0:t.operation,u=(null!=(r=null==c?void 0:c[0])?r:"o")+l;!this.dataMasking||"no-cache"!==s||(0,p.isFullyUnmaskedOperation)(a)||this.noCacheWarningsByQueryId.has(u)||(this.noCacheWarningsByQueryId.add(u),!1!==globalThis.__DEV__&&i.invariant.warn(45,null!=(n=(0,m.getOperationName)(a))?n:"Unnamed ".concat(null!=c?c:"operation")))}return this.dataMasking?function(e,t,r){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&X(),e;var n,a=(0,m.getOperationDefinition)(t);return((0,i.invariant)(a,63),null==e)?e:ee(e,a.selectionSet,{operationType:a.operation,operationName:null==(n=a.name)?void 0:n.value,fragmentMap:(0,p.createFragmentMap)((0,m.getFragmentDefinitions)(t)),cache:r,mutableTargets:new H,knownChanged:new G})}(o,a,this.cache):o},e.prototype.maskFragment=function(e){var t=e.data,r=e.fragment,n=e.fragmentName;return this.dataMasking?et(t,r,this.cache,n):t},e.prototype.fetchQueryByPolicy=function(e,t,r){var i=this,a=t.query,o=t.variables,s=t.fetchPolicy,l=t.refetchWritePolicy,u=t.errorPolicy,f=t.returnPartialData,d=t.context,p=t.notifyOnNetworkStatusChange,h=e.networkStatus;e.init({document:a,variables:o,networkStatus:r});var m=function(){return e.getDiff()},v=function(t,r){void 0===r&&(r=e.networkStatus||M.NetworkStatus.loading);var s=t.result;!1===globalThis.__DEV__||f||(0,c.equal)(s,{})||(0,P.logMissingFieldErrors)(t.missing);var l=function(e){return b.Observable.of((0,n.__assign)({data:e,loading:(0,M.isNetworkRequestInFlight)(r),networkStatus:r},t.complete?null:{partial:!0}))};return s&&i.getDocumentInfo(a).hasForcedResolvers?i.localState.runResolvers({document:a,remoteResult:{data:s},context:d,variables:o,onlyRunForcedResolvers:!0}).then(function(e){return l(e.data||void 0)}):"none"===u&&r===M.NetworkStatus.refetch&&Array.isArray(t.missing)?l(void 0):l(s)},y="no-cache"===s?0:r===M.NetworkStatus.refetch&&"merge"!==l?1:2,g=function(){return i.getResultsFromLink(e,y,{query:a,variables:o,context:d,fetchPolicy:s,errorPolicy:u})},x=p&&"number"==typeof h&&h!==r&&(0,M.isNetworkRequestInFlight)(r);switch(s){default:case"cache-first":var _=m();if(_.complete)return{fromLink:!1,sources:[v(_,e.markReady())]};if(f||x)return{fromLink:!0,sources:[v(_),g()]};return{fromLink:!0,sources:[g()]};case"cache-and-network":var _=m();if(_.complete||f||x)return{fromLink:!0,sources:[v(_),g()]};return{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[v(m(),e.markReady())]};case"network-only":if(x)return{fromLink:!0,sources:[v(m()),g()]};return{fromLink:!0,sources:[g()]};case"no-cache":if(x)return{fromLink:!0,sources:[v(e.getDiff()),g()]};return{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new z(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,n.__assign)((0,n.__assign)((0,n.__assign)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),ea=e.i(2088);function eo(e){return e.kind===U.Kind.FIELD||e.kind===U.Kind.FRAGMENT_SPREAD||e.kind===U.Kind.INLINE_FRAGMENT}var es=e.i(22025),el=new K.Slot,ec=new WeakMap;function eu(e){var t=ec.get(e);return t||ec.set(e,t={vars:new Set,dep:(0,es.dep)()}),t}
7function ef(e){eu(e).vars.forEach(function(t){return t.forgetCache(e)})}function ed(e){eu(e).vars.forEach(function(t){return t.attachCache(e)})}function ep(e){var t=new Set,r=new Set,n=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(function(e){var t;eu(e).dep.dirty(n),(t=e).broadcastWatches&&t.broadcastWatches()});var o=Array.from(r);r.clear(),o.forEach(function(t){return t(e)})}}else{var s=el.getValue();s&&(i(s),eu(s).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){return t.add(e),eu(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}e.s(["cacheSlot",0,el,"forgetCache",0,ef,"makeVar",0,ep,"recallCache",0,ed],268);var eh=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,q.mergeDeep)(t.resolvers,e)}):this.resolvers=(0,q.mergeDeep)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,n.__awaiter)(this,arguments,void 0,function(e){var t=e.document,r=e.remoteResult,i=e.context,a=e.variables,o=e.onlyRunForcedResolvers,s=void 0!==o&&o;return(0,n.__generator)(this,function(e){return t?[2,this.resolveDocument(t,r.data,i,a,this.fragmentMatcher,s).then(function(e){return(0,n.__assign)((0,n.__assign)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,f.hasDirectives)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,u.removeClientSetsFromDocument)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,n.__assign)((0,n.__assign)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,n.__awaiter)(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,n.__generator)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,n.__assign)((0,n.__assign)({},t),e.exportedVariables)})]:[2,(0,n.__assign)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,ea.visit)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return ea.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,u.buildQueryFromSelectionSet)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,n.__awaiter)(this,arguments,void 0,function(e,t,r,i,a,o){var s,l,c,u,f,d,h,v,y,g;return void 0===r&&(r={}),void 0===i&&(i={}),void 0===a&&(a=function(){return!0}),void 0===o&&(o=!1),(0,n.__generator)(this,function(b){return s=(0,m.getMainDefinition)(e),l=(0,m.getFragmentDefinitions)(e),c=(0,p.createFragmentMap)(l),u=this.collectSelectionsToResolve(s,c),d=(f=s.operation)?f.charAt(0).toUpperCase()+f.slice(1):"Query",h=this,v=h.cache,y=h.client,g={fragmentMap:c,context:(0,n.__assign)((0,n.__assign)({},r),{cache:v,client:y}),variables:i,fragmentMatcher:a,defaultOperationType:d,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(s.selectionSet,!1,t,g).then(function(e){return{result:e,exportedVariables:g.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,a){return(0,n.__awaiter)(this,void 0,void 0,function(){var o,s,l,c,u,d=this;return(0,n.__generator)(this,function(p){return o=a.fragmentMap,s=a.context,l=a.variables,c=[r],u=function(e){return(0,n.__awaiter)(d,void 0,void 0,function(){var u,d;return(0,n.__generator)(this,function(n){return(t||a.selectionsToResolve.has(e))&&(0,f.shouldInclude)(e,l)?(0,j.isField)(e)?[2,this.resolveField(e,t,r,a).then(function(t){var r;void 0!==t&&c.push(((r={}
7)[(0,j.resultKeyNameFromField)(e)]=t,r))})]:((0,j.isInlineFragment)(e)?u=e:(u=o[e.name.value],(0,i.invariant)(u,21,e.name.value)),u&&u.typeCondition&&(d=u.typeCondition.name.value,a.fragmentMatcher(r,d,s)))?[2,this.resolveSelectionSet(u.selectionSet,t,r,a).then(function(e){c.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(u)).then(function(){return(0,q.mergeDeepArray)(c)})]})})},e.prototype.resolveField=function(e,t,r,i){return(0,n.__awaiter)(this,void 0,void 0,function(){var a,o,s,l,c,u,f,d,p,h=this;return(0,n.__generator)(this,function(n){return r?(a=i.variables,l=(o=e.name.value)!==(s=(0,j.resultKeyNameFromField)(e)),u=Promise.resolve(c=r[s]||r[o]),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(f=r.__typename||i.defaultOperationType,(d=this.resolvers&&this.resolvers[f])&&(p=d[l?o:s])&&(u=Promise.resolve(el.withValue(this.cache,p,[r,(0,j.argumentsObjectFromField)(e,a),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,u.then(function(r){if(void 0===r&&(r=c),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(i.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var n,a,o=null!=(a=null==(n=e.directives)?void 0:n.some(function(e){return"client"===e.name.value}))&&a;return Array.isArray(r)?h.resolveSubSelectedArray(e,t||o,r,i):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t||o,r,i):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(a){if(!n.has(a)){var o=new Set;n.set(a,o),(0,ea.visit)(a,{Directive:function(e,t,n,i,a){"client"===e.name.value&&a.forEach(function(e){r(e)&&eo(e)&&o.add(e)})},FragmentSpread:function(n,a,s,l,c){var u=t[n.name.value];(0,i.invariant)(u,22,n.name.value);var f=e(u);f.size>0&&(c.forEach(function(e){r(e)&&eo(e)&&o.add(e)}),o.add(n),f.forEach(function(e){o.add(e)}))}})}return n.get(a)}(e)},e}(),em=e.i(69570),ev=e.i(99523),ey=!1,eg=function(){function e(e){var t,r,o,c=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,i.newInvariantError)(16);var u=e.uri,f=e.credentials,d=e.headers,p=e.cache,h=e.documentTransform,m=e.ssrMode,v=void 0!==m&&m,y=e.ssrForceFetchDelay,g=void 0===y?0:y,b=e.connectToDevTools,x=e.queryDeduplication,_=void 0===x||x,w=e.defaultOptions,S=e.defaultContext,k=e.assumeImmutableResults,O=void 0===k?p.assumeImmutableResults:k,j=e.resolvers,E=e.typeDefs,N=e.fragmentMatcher,C=e.clientAwareness,R=e.name,F=e.version,D=e.devtools,I=e.dataMasking;!1!==globalThis.__DEV__&&((0,L.warnRemovedOption)(e,"connectToDevTools","ApolloClient","Please use `devtools.enabled` instead."),(0,L.warnRemovedOption)(e,"uri","ApolloClient","Please initialize an instance of `HttpLink` with `uri` instead."),(0,L.warnRemovedOption)(e,"credentials","ApolloClient","Please initialize an instance of `HttpLink` with `credentials` instead."),(0,L.warnRemovedOption)(e,"headers","ApolloClient","Please initialize an instance of `HttpLink` with `headers` instead."),(0,L.warnRemovedOption)(e,"name","ApolloClient","Please use the `clientAwareness.name` option instead."),(0,L.warnRemovedOption)(e,"version","ApolloClient","Please use the `clientAwareness.version` option instead."),(0,L.warnRemovedOption)(e,"typeDefs","ApolloClient"),e.link||!1===globalThis.__DEV__||i.invariant.warn(17));var T=e.link;T||(T=u?new l.HttpLink({uri:u,credentials:f,headers:d}):a.ApolloLink.empty()),this.link=T,this.cache=p,this.disableNetworkFetches=v||g>0,this.queryDeduplication=_,this.defaultOptions=w||Object.create(null),this.typeDefs=E,this.devtoolsConfig=(0,n.__assign)((0,n.__assign)({},D),{enabled:null!=(t=null==D?void 0:D.enabled)?t:b}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),g&&setTimeout(function(){return c.disableNetworkFetches=!1},g),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=s.version,this.localState=new eh({cache:p,client:this,resolvers:j,fragmentMatcher:N}),this.queryManager=new ei({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:S,documentTransform:h,queryDeduplication:_,ssrMode:v,dataMasking:!!I,clientAwareness:{name:null!=(r=null==C?void 0:C.name)?r:R,version:null!=(o=null==C?void 0:C.version)?o:F},localState:this.localState,assumeImmutableResults:O,onBroadcast:this.devtoolsConfig.enabled?function(){c.devToolsHookCb&&c.devToolsHookCb({action:{},state:{queries:c.queryManager.getQueryStore(),mutations:c.queryManager.mutationStore||{}},dataWithOptimisticResults:c.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return Object.defineProperty(e.prototype,"prioritizeCacheValues",{get:function(){return this.disableNetworkFetches},set:function(e){this.disableNetworkFetches=e}
7,enumerable:!1,configurable:!0}),e.prototype.connectToDevTools=function(){if("u">typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!ey&&!1!==globalThis.__DEV__&&(ey=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&i.invariant.log("Download the Apollo DevTools for a better development experience: %s",r)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,em.mergeOptions)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&((0,L.warnRemovedOption)(e,"canonizeResults","client.watchQuery"),(0,L.warnRemovedOption)(e,"partialRefetch","client.watchQuery")),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,em.mergeOptions)(this.defaultOptions.query,e)),(0,i.invariant)("cache-and-network"!==e.fetchPolicy,18),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&((0,L.warnRemovedOption)(e,"canonizeResults","client.query"),(0,L.warnRemovedOption)(e,"notifyOnNetworkStatusChange","client.query","This option does not affect `client.query` and can be safely removed."),"standby"===e.fetchPolicy&&!1!==globalThis.__DEV__&&i.invariant.warn(19)),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,em.mergeOptions)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(i){return(0,n.__assign)((0,n.__assign)({},i),{data:t.queryManager.maskOperation({document:e.query,data:i.data,fetchPolicy:e.fetchPolicy,id:r})})})},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment((0,n.__assign)((0,n.__assign)({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return o(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var a=Promise.all(n);return a.queries=r,a.results=n,a.catch(function(e){!1!==globalThis.__DEV__&&i.invariant.debug(20,e)}),a},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext}
7,enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(eg.prototype.getMemoryInternals=ev.getApolloClientMemoryInternals),e.s(["ApolloClient",0,eg],95585);var eb=e.i(22479),ex=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,F.wrap)(p.getFragmentQueryDocument,{max:D.cacheSizes["cache.fragmentQueryDocuments"]||1e3,cache:R.WeakCache})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){var r=this;return void 0===t&&(t=!!e.optimistic),!1!==globalThis.__DEV__&&(0,L.warnRemovedOption)(e,"canonizeResults","cache.readQuery"),(0,L.muteDeprecations)("canonizeResults",function(){return r.read((0,n.__assign)((0,n.__assign)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))})},e.prototype.watchFragment=function(e){var t,r=this,a=e.fragment,o=e.fragmentName,s=e.from,l=e.optimistic,c=(0,n.__rest)(e,["fragment","fragmentName","from","optimistic"]),u=this.getFragmentDoc(a,o),f=void 0===s||"string"==typeof s?s:this.identify(s),d=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var p=o||(0,m.getFragmentDefinition)(a).name.value;f||!1===globalThis.__DEV__||i.invariant.warn(1,p)}var h=(0,n.__assign)((0,n.__assign)({},c),{returnPartialData:!0,id:f,query:u,optimistic:void 0===l||l});return new b.Observable(function(i){return r.watch((0,n.__assign)((0,n.__assign)({},h),{immediate:!0,callback:function(s){var l=d?et(s.result,a,r,o):s.result;if(!(t&&(0,eb.equalByQuery)(u,{data:t.result},{data:l},e.variables))){var c={data:l,complete:!!s.complete};s.missing&&(c.missing=(0,q.mergeDeepArray)(s.missing.map(function(e){return e.missing}))),t=(0,n.__assign)((0,n.__assign)({},s),{result:l}),i.next(c)}}}))})},e.prototype.readFragment=function(e,t){var r=this;return void 0===t&&(t=!!e.optimistic),!1!==globalThis.__DEV__&&(0,L.warnRemovedOption)(e,"canonizeResults","cache.readFragment"),(0,L.muteDeprecations)("canonizeResults",function(){return r.read((0,n.__assign)((0,n.__assign)({},e),{query:r.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))})},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,i=(0,n.__rest)(e,["id","data"]);return this.write(Object.assign(i,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,i=e.fragment,a=e.fragmentName,o=(0,n.__rest)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(i,a),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return!1!==globalThis.__DEV__&&(0,L.warnRemovedOption)(e,"canonizeResults","cache.updateQuery"),this.batch({update:function(r){var i=(0,L.muteDeprecations)("canonizeResults",function(){return r.readQuery(e)}),a=t(i);return null==a?i:(r.writeQuery((0,n.__assign)((0,n.__assign)({},e),{data:a})),a)}})},e.prototype.updateFragment=function(e,t){return!1!==globalThis.__DEV__&&(0,L.warnRemovedOption)(e,"canonizeResults","cache.updateFragment"),this.batch({update:function(r){var i=(0,L.muteDeprecations)("canonizeResults",function(){return r.readFragment(e)}),a=t(i);return null==a?i:(r.writeFragment((0,n.__assign)((0,n.__assign)({},e),{data:a})),a)}})},e}();!1!==globalThis.__DEV__&&(ex.prototype.getMemoryInternals=ev.getApolloCacheMemoryInternals),e.s(["ApolloCache",0,ex],64501);var e_=function(e){function t(r,n,i,a){var o,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=a,Array.isArray(s.path)){s.missing=s.message;for(var l=s.path.length-1;l>=0;--l)(o={})[s.path[l]]=s.missing,s.missing=o}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,n.__extends)(t,e),t}(Error);e.s(["MissingFieldError",0,e_],14540);var ew=e.i(27371),eS=Object.prototype.hasOwnProperty;function ek(e){return null==e}function eO(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=ek(n)?ek(i)?void 0:{_id:i}:{id:n}),ek(n)&&!ek(i)&&(n=i),!ek(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var ej={dataIdFromObject:eO,addTypename:!0,resultCaching:!0,canonizeResults:!1};function eE(e){return(0,ew.compact)(ej,e)}function eN(e){var t=e.canonizeResults;return void 0===t?ej.canonizeResults:t}function eC(e,t){return(0,j.isReference)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var eR=/^[_a-z][_0-9a-z]*/i;function eF(e){var t=e.match(eR);return t?t[0]:e}function eD(e,t,r){return!!(0,E.isNonNullObject)(t)&&((0,v.isArray)(t)?t.every(function(t){return eD(e,t,r)}):e.selections.every(function(e){if((0,j.isField)(e)&&(0,f.shouldInclude)(e,r)){var n=(0,j.resultKeyNameFromField)(e);return eS.call(t,n)&&(!e.selectionSet||eD(e.selectionSet,t[n],r))}return!0}))}function eI(e){return(0,E.isNonNullObject)(e)&&!(0,j.isReference)(e)&&!(0,v.isArray)(e)}function eT(){return new q.DeepMerger}function eA(e,t){var r=(0,p.createFragmentMap)((0,m.getFragmentDefinitions)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}e.s(["TypeOrFieldNameRegExp",0,eR,"defaultDataIdFromObject",0,eO,"extractFragmentContext",0,eA,"fieldNameFromStoreName",0,eF,"getTypenameFromStoreObject",0,eC,"hasOwn",0,eS,"makeProcessedFieldsMerger",0,eT,"normalizeConfig",0,eE,"selectionSetMatchesResult",0,eD,"shouldCanonizeResults",0,eN,"storeValueIsStoreObject",0,eI],58673);var eP=Object.create(null),eM=function(){return eP},eq=Object.create(null),eL=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,Z.maybeDeepFreeze)((0,j.isReference)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,j.isReference)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,j.makeReference)(e);if((0,j.isReference)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,j.makeReference)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,n.__assign)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),eS.call(this.data,e)){var r=this.data[e];if(r&&eS.call(r,t))return r[t]}return"__typename"===t&&eS.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof ez?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),eS.call(this.data,e))?this.data[e]:this instanceof ez?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,j.isReference)(e)&&(e=e.__ref),(0,j.isReference)(t)&&(t=t.__ref);
7var a="string"==typeof e?this.lookup(r=e):e,o="string"==typeof t?this.lookup(r=t):t;if(o){(0,i.invariant)("string"==typeof r,2);var s=new q.DeepMerger(eB).merge(a,o);if(this.data[r]=s,s!==a&&(delete this.refs[r],this.group.caching)){var l=Object.create(null);a||(l.__exists=1),Object.keys(o).forEach(function(e){if(!a||a[e]!==s[e]){l[e]=1;var t=eF(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(l[t]=1),void 0!==s[e]||n instanceof ez||delete s[e]}}),l.__typename&&!(a&&a.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete l.__typename,Object.keys(l).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,a=this.lookup(e);if(a){var o=Object.create(null),s=!1,l=!0,c={DELETE:eP,INVALIDATE:eq,isReference:j.isReference,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,j.makeReference)(e)}:t,{store:r})}};if(Object.keys(a).forEach(function(u){var f=eF(u),d=a[u];if(void 0!==d){var p="function"==typeof t?t:t[u]||t[f];if(p){var h=p===eM?eP:p((0,Z.maybeDeepFreeze)(d),(0,n.__assign)((0,n.__assign)({},c),{fieldName:f,storeFieldName:u,storage:r.getStorage(e,u)}));if(h===eq)r.group.dirty(e,u);else if(h===eP&&(h=void 0),h!==d&&(o[u]=h,s=!0,d=h,!1!==globalThis.__DEV__)){var m=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&i.invariant.warn(3,e),!0};if((0,j.isReference)(h))m(h);else if(Array.isArray(h))for(var v=!1,y=void 0,g=0,b=h;g<b.length;g++){var x=b[g];if((0,j.isReference)(x)){if(v=!0,m(x))break}else"object"==typeof x&&x&&r.policies.identify(x)[0]&&(y=x);if(v&&void 0!==y){!1!==globalThis.__DEV__&&i.invariant.warn(4,y);break}}}}void 0!==d&&(l=!1)}}),s)return this.merge(e,o),l&&(this instanceof ez?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var a=this.getFieldValue(i,"__typename"),o=t&&r?this.policies.getStoreFieldName({typename:a,fieldName:t,args:r}):t;return this.modify(e,o?((n={})[o]=eM,n):eM)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(eS.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof ez&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){eS.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&eS.call(e,r)||t.delete(r)}),e){var r=e.__META,i=(0,n.__rest)(e,["__META"]);
7Object.keys(i).forEach(function(e){t.merge(e,i[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof ez?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){eS.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof ez;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!eS.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){(0,j.isReference)(e)&&(t[e.__ref]=!0),(0,E.isNonNullObject)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,E.isNonNullObject)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),eV=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,es.dep)():null,this.keyMaker=new N.Trie(C.canUseWeakMap)}
7,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=eF(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function eQ(e,t){e$(e)&&e.group.depend(t,"__exists")}r=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,a=e.call(this,r,new eV(void 0===n||n))||this;return a.stump=new eW(a),a.storageTrie=new N.Trie(C.canUseWeakMap),i&&a.replace(i),a}return(0,n.__extends)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(t=eL||(eL={})),t.Root=r;var ez=function(e){function t(t,r,n,i){var a=e.call(this,r.policies,i)||this;return a.id=t,a.parent=r,a.replay=n,a.group=i,n(a),a}return(0,n.__extends)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){(0,c.equal)(n[r],i[r])||t.group.dirty(e,r)}
7):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,n.__assign)((0,n.__assign)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return eS.call(this.data,t)?(0,n.__assign)((0,n.__assign)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(eL),eW=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new eV(t.group.caching,t.group))||this}return(0,n.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(ez);function eB(e,t,r){var n=e[r],i=t[r];return(0,c.equal)(n,i)?n:i}function e$(e){return!!(e instanceof eL&&e.group.caching)}var eU=function(){function e(){this.known=new(C.canUseWeakSet?WeakSet:Set),this.pool=new N.Trie(C.canUseWeakMap),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,E.isNonNullObject)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,E.isNonNullObject)(e)){var t=(0,E.isNonNullObject)(e)?(0,v.isArray)(e)?e.slice(0):(0,n.__assign)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,E.isNonNullObject)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),i=this.pool.lookupArray(n);return i.array||(this.known.add(i.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var a=Object.getPrototypeOf(e),o=[a],s=this.sortedKeys(e);o.push(s.json);var l=o.length;s.sorted.forEach(function(r){o.push(t.admit(e[r]))});var i=this.pool.lookupArray(o);if(!i.object){var c=i.object=Object.create(a);this.known.add(c),s.sorted.forEach(function(e,t){c[e]=o[l+t]}),!1!==globalThis.__DEV__&&Object.freeze(c)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}();function eK(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var eH=function(){function e(e){var t=this;this.knownResults=new(C.canUseWeakMap?WeakMap:Map),this.config=(0,ew.compact)(e,{addTypename:!1!==e.addTypename,canonizeResults:eN(e)}),this.canon=e.canon||new eU,this.executeSelectionSet=(0,F.wrap)(function(e){var r,i=e.context.canonizeResults,a=eK(e);a[3]=!i;var o=(r=t.executeSelectionSet).peek.apply(r,a);return o?i?(0,n.__assign)((0,n.__assign)({},o),{result:t.canon.admit(o.result)}):o:(eQ(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||D.cacheSizes["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:eK,makeCacheKey:function(e,t,r,n){if(e$(r.store))return r.store.makeCacheKey(e,(0,j.isReference)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,F.wrap)(function(e){return eQ(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||D.cacheSizes["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(e$(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new eU},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,i=e.query,a=e.rootId,o=e.variables,s=e.returnPartialData,l=e.canonizeResults,c=void 0===l?this.config.canonizeResults:l,u=this.config.cache.policies;o=(0,n.__assign)((0,n.__assign)({},(0,m.getDefaultValues)((0,m.getQueryDefinition)(i))),o);var f=(0,j.makeReference)(void 0===a?"ROOT_QUERY":a),d=this.executeSelectionSet({selectionSet:(0,m.getMainDefinition)(i).selectionSet,objectOrReference:f,enclosingRef:f,context:(0,n.__assign)({store:r,query:i,policies:u,variables:o,varString:(0,h.canonicalStringify)(o),canonizeResults:c},eA(i,this.config.fragments))});if(d.missing&&(t=[new e_(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(d.missing),d.missing,i,o)],!(void 0===s||s)))throw t[0];return{result:d.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if(e$(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,r=this,n=e.selectionSet,a=e.objectOrReference,o=e.enclosingRef,s=e.context;if((0,j.isReference)(a)&&!s.policies.rootTypenamesById[a.__ref]&&!s.store.has(a.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(a.__ref," object")};var l=s.variables,c=s.policies,d=s.store.getFieldValue(a,"__typename"),h=[],m=new q.DeepMerger;function y(e,r){var n;return e.missing&&(t=m.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof d&&!c.rootIdsByTypename[d]&&h.push({__typename:d});var g=new Set(n.selections);g.forEach(function(e){var n,b;if((0,f.shouldInclude)(e,l))if((0,j.isField)(e)){var x=c.readField({fieldName:e.n
7ame.value,field:e,variables:s.variables,from:a},s),_=(0,j.resultKeyNameFromField)(e);void 0===x?u.addTypenameToDocument.added(e)||(t=m.merge(t,((n={})[_]="Can't find field '".concat(e.name.value,"' on ").concat((0,j.isReference)(a)?a.__ref+" object":"object "+JSON.stringify(a,null,2)),n))):(0,v.isArray)(x)?x.length>0&&(x=y(r.executeSubSelectedArray({field:e,array:x,enclosingRef:o,context:s}),_)):e.selectionSet?null!=x&&(x=y(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:x,enclosingRef:(0,j.isReference)(x)?x:o,context:s}),_)):s.canonizeResults&&(x=r.canon.pass(x)),void 0!==x&&h.push(((b={})[_]=x,b))}else{var w=(0,p.getFragmentFromSelection)(e,s.lookupFragment);if(!w&&e.kind===U.Kind.FRAGMENT_SPREAD)throw(0,i.newInvariantError)(10,e.name.value);w&&c.fragmentMatches(w,d)&&w.selectionSet.selections.forEach(g.add,g)}});var b={result:(0,q.mergeDeepArray)(h),missing:t},x=s.canonizeResults?this.canon.admit(b):(0,Z.maybeDeepFreeze)(b);return x.result&&this.knownResults.set(x.result,n),x},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,a=e.array,o=e.enclosingRef,s=e.context,l=new q.DeepMerger;function c(e,r){var n;return e.missing&&(t=l.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(a=a.filter(s.store.canRead)),a=a.map(function(e,t){return null===e?null:(0,v.isArray)(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:s}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,j.isReference)(e)?e:o,context:s}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){(0,E.isNonNullObject)(r)&&((0,i.invariant)(!(0,j.isReference)(r),11,eC(e,r),t.name.value),Object.values(r).forEach(n.add,n))})}}(s.store,n,e),e)}),{result:s.canonizeResults?this.canon.admit(a):a,missing:t}},e}(),eG=e.i(43772),eJ=e.i(10125),eY=Object.create(null);function eX(e){var t=JSON.stringify(e);return eY[t]||(eY[t]=Object.create(null))}function eZ(e){var t=eX(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},a=r.keyObject=e1(e,function(e){var a=e4(r.storeObject,e,n);return void 0===a&&t!==r.storeObject&&eS.call(t,e[0])&&(a=e4(t,e,e2)),(0,i.invariant)(void 0!==a,5,e.join("."),t),a});return"".concat(r.typename,":").concat(JSON.stringify(a))})}function e0(e){var t=eX(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,a=r.fieldName,o=JSON.stringify(e1(e,function(e){var r=e[0],a=r.charAt(0);if("@"===a){if(n&&(0,v.isNonEmptyArray)(n.directives)){var o=r.slice(1),s=n.directives.find(function(e){return e.name.value===o}),l=s&&(0,j.argumentsObjectFromField)(s,i);return l&&e4(l,e.slice(1))}return}if("$"===a){var c=r.slice(1);if(i&&eS.call(i,c)){var u=e.slice(0);return u[0]=c,e4(i,u)}return}if(t)return e4(t,e)}));return(t||"{}"!==o)&&(a+=":"+o),a})}function e1(e,t){var r=new q.DeepMerger;return(function e(t){var r=eX(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,a){(0,v.isArray)(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),(0,v.isArray)(t[a+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce(function(e,n){var i,a=t(n);if(void 0!==a){for(var o=n.length-1;o>=0;--o)(i={})[n[o]]=a,a=i;e=r.merge(e,a)}return e},Object.create(null))}function e2(e,t){return e[t]}function e4(e,t,r){return r=r||e2,function e(t){return(0,E.isNonNullObject)(t)?(0,v.isArray)(t)?t.map(e):e1(Object.keys(t).sort(),function(e){return e4(t,e)}):t}(t.reduce(function e(t,n){return(0,v.isArray)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function e3(e){return void 0!==e.args?e.args:e.field?(0,j.argumentsObjectFromField)(e.field,e.variables):null}var e8=function(){},e5=function(e,t){return t.fieldName},e9=function(e,t,r){return(0,r.mergeObjects)(e,t)},e6=function(e,t){return t},e7=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,n.__assign)({dataIdFromObject:eO},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,i,a=this,o=t&&(t.typename||(null==(r=t.storeObject)?void 0:r.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var s=t&&t.storeObject||e,l=(0,n.__assign)((0,n.__assign)({},t),{typename:o,storeObject:s,readField:t&&t.readField||function(){var e=tt(arguments,s);return a.readField(e,{store:a.cache.data,variables:e.variables})}}),c=o&&this.getTypePolicy(o),u=c&&c.keyFn||this.config.dataIdFromObject;return J.withValue(!0,function(){for(;u;){var t=u((0,n.__assign)((0,n.__assign)({},e),s),l);if((0,v.isArray)(t))u=eZ(t);else{i=t;break}}}),i=i?String(i):void 0,l.keyObject?[i,l.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var i=e[r],a=i.queryType,o=i.mutationType,s=i.subscriptionType,l=(0,n.__rest)(i,["queryType","mutationType","subscriptionType"]);a&&t.setRootTypename("Query",r),o&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),eS.call(t.toBeAdded,r)?t.toBeAdded[r].push(l):t.toBeAdded[r]=[l]})},e.prototype.updateTypePolicy=function(e,t,r){var n=this.getTypePolicy(e),i=t.keyFields,a=t.fields;function o(e,t){e.merge="function"==typeof t?t:!0===t?e9:!1===t?e6:e.merge}o(n,t.merge),n.keyFn=!1===i?e8:(0,v.isArray)(i)?eZ(i):"function"==typeof i?i:n.keyFn,a&&Object.keys(a).forEac
7h(function(t){var n=r[t];n&&(null==n?void 0:n.typename)===e||(n=r[t]={typename:e});var i=a[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,l=i.read,c=i.merge;n.keyFn=!1===s?e5:(0,v.isArray)(s)?e0(s):"function"==typeof s?s:n.keyFn,"function"==typeof l&&(n.read=l),o(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||e5)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,i.invariant)(!n||n===e,6,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(eR);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!eS.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(r,n){if(r.test(e)){var a=t.supertypeMap.get(n);a&&a.forEach(function(e){return i.add(e)})}})),i&&i.size&&i.forEach(function(e){var i=t.getTypePolicy(e),a=i.fields;Object.assign(r,(0,n.__rest)(i,["fields"])),Object.assign(r.fields,a)})}var a=this.toBeAdded[e];return a&&a.length&&a.splice(0).forEach(function(r){t.updateTypePolicy(e,r,t.typePolicies[e].fields)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t){if(e)return this.getTypePolicy(e).fields[t]},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var a=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),l=[s],c=function(e){var t=a.getSupertypeSet(e,!1);t&&t.size&&0>l.indexOf(t)&&l.push(t)},u=!!(r&&this.fuzzySubtypes.size),f=!1,d=0;d<l.length;++d){var p=l[d];if(p.has(o))return s.has(o)||(f&&!1!==globalThis.__DEV__&&i.invariant.warn(7,t,o),s.add(o)),!0;p.forEach(c),u&&d===l.length-1&&eD(e.selectionSet,r,n)&&(u=!1,f=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&c(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n),a=i&&i.keyFn;if(a&&r)for(var o={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=e3(e);a;){var l=a(s,o);if((0,v.isArray)(l))a=e0(l);else{t=l||n;break}}return(void 0===t&&(t=e.field?(0,j.storeKeyNameFromField)(e.field,e.variables):(0,j.getStoreKeyName)(n,e3(e))),!1===t)?n:n===eF(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),a=eF(i),o=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,a),l=s&&s.read;if(l){var c=te(this,r,e,t,t.store.getStorage((0,j.isReference)(r)?r.__ref:r,i));return el.withValue(this.cache,l,[o,c])}return o}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var a=r.field,o=r.typename,s=r.merge;return s===e9?tr(n.store)(e,t):s===e6?t:(n.overwrite&&(e=void 0),s(e,t,te(this,void 0,{typename:o,fieldName:a.name.value,field:a,variables:n.variables},n,i||Object.create(null))))},e}();function te(e,t,r,n,i){var a=e.getStoreFieldName(r),o=eF(a),s=r.variables||n.variables,l=n.store,c=l.toReference,u=l.canRead;return{args:e3(r),field:r.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:j.isReference,toReference:c,storage:i,cache:e.cache,canRead:u,readField:function(){return e.readField(tt(arguments,t,s),n)},mergeObjects:tr(n.store)}}function tt(e,t,r){var a,o=e[0],s=e[1],l=e.length;return"string"==typeof o?a={fieldName:o,from:l>1?s:t}:(a=(0,n.__assign)({},o),eS.call(a,"from")||(a.from=t)),!1!==globalThis.__DEV__&&void 0===a.from&&!1!==globalThis.__DEV__&&i.invariant.warn(8,(0,eJ.stringifyForDisplay)(Array.from(e))),void 0===a.variables&&(a.variables=r),a}
7function tr(e){return function(t,r){if((0,v.isArray)(t)||(0,v.isArray)(r))throw(0,i.newInvariantError)(9);if((0,E.isNonNullObject)(t)&&(0,E.isNonNullObject)(r)){var a=e.getFieldValue(t,"__typename"),o=e.getFieldValue(r,"__typename");if(a&&o&&a!==o)return r;if((0,j.isReference)(t)&&eI(r))return e.merge(t.__ref,r),t;if(eI(t)&&(0,j.isReference)(r))return e.merge(t,r.__ref),r;if(eI(t)&&eI(r))return(0,n.__assign)((0,n.__assign)({},t),r)}return r}}function tn(e,t,r){var i="".concat(t).concat(r),a=e.flavors.get(i);return a||e.flavors.set(i,a=e.clientOnly===t&&e.deferred===r?e:(0,n.__assign)((0,n.__assign)({},e),{clientOnly:t,deferred:r})),a}var ti=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,a=t.query,o=t.result,s=t.dataId,l=t.variables,u=t.overwrite,f=(0,m.getOperationDefinition)(a),d=eT();l=(0,n.__assign)((0,n.__assign)({},(0,m.getDefaultValues)(f)),l);var p=(0,n.__assign)((0,n.__assign)({store:e,written:Object.create(null),merge:function(e,t){return d.merge(e,t)},variables:l,varString:(0,h.canonicalStringify)(l)},eA(a,this.fragments)),{overwrite:!!u,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),y=this.processSelectionSet({result:o||Object.create(null),dataId:s,selectionSet:f.selectionSet,mergeTree:{map:new Map},context:p});if(!(0,j.isReference)(y))throw(0,i.newInvariantError)(12,o);return p.incomingById.forEach(function(t,a){var o=t.storeObject,s=t.mergeTree,l=t.fieldNodeSet,u=(0,j.makeReference)(a);if(s&&s.map.size){var f=r.applyMerges(s,u,o,p);if((0,j.isReference)(f))return;o=f}
7if(!1!==globalThis.__DEV__&&!p.overwrite){var d=Object.create(null);l.forEach(function(e){e.selectionSet&&(d[e.name.value]=!0)});var h=function(e){var t=s&&s.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(o).forEach(function(e){!0!==d[eF(e)]||h(e)||function(e,t,r,a){var o=function(e){var t=a.getFieldValue(e,r);return"object"==typeof t&&t},s=o(e);if(s){var l=o(t);if(!(!l||(0,j.isReference)(s)||(0,c.equal)(s,l)||Object.keys(s).every(function(e){return void 0!==a.getFieldValue(l,e)}))){var u=a.getFieldValue(e,"__typename")||a.getFieldValue(t,"__typename"),f=eF(r),d="".concat(u,".").concat(f);if(!tc.has(d)){tc.add(d);var p=[];(0,v.isArray)(s)||(0,v.isArray)(l)||[s,l].forEach(function(e){var t=a.getFieldValue(e,"__typename");"string"!=typeof t||p.includes(t)||p.push(t)}),!1!==globalThis.__DEV__&&i.invariant.warn(15,f,u,p.length?"either ensure all objects of type "+p.join(" and ")+" have an ID or a custom merge function, or ":"",d,(0,n.__assign)({},s),(0,n.__assign)({},l))}}}}(u,o,e,p.store)})}e.merge(a,o)}),e.retain(y.__ref),y},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,a=e.result,o=e.selectionSet,s=e.context,l=e.mergeTree,c=this.cache.policies,f=Object.create(null),d=r&&c.rootTypenamesById[r]||(0,j.getTypenameFromResult)(a,o,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof d&&(f.__typename=d);var p=function(){var e=tt(arguments,f,s.variables);if((0,j.isReference)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var r=c.readField((0,n.__assign)((0,n.__assign)({},e),{from:t.storeObject}),s);if(void 0!==r)return r}}return c.readField(e,s)},h=new Set;this.flattenFields(o,a,s,d).forEach(function(e,r){var n,o=a[(0,j.resultKeyNameFromField)(r)];if(h.add(r),void 0!==o){var s=c.getStoreFieldName({typename:d,fieldName:r.name.value,field:r,variables:e.variables}),m=to(l,s),v=t.processFieldValue(o,r,r.selectionSet?tn(e,!1,!1):e,m),y=void 0;r.selectionSet&&((0,j.isReference)(v)||eI(v))&&(y=p("__typename",v));var g=c.getMergeFunction(d,r.name.value,y);g?m.info={field:r,typename:d,merge:g}:tl(l,s),f=e.merge(f,((n={})[s]=v,n))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||u.addTypenameToDocument.added(r)||c.getReadFunction(d,r.name.value)||!1===globalThis.__DEV__||i.invariant.error(13,(0,j.resultKeyNameFromField)(r),a)});try{var m=c.identify(a,{typename:d,selectionSet:o,fragmentMap:s.fragmentMap,storeObject:f,readField:p}),v=m[0],y=m[1];r=r||v,y&&(f=s.merge(f,y))}catch(e){if(!r)throw e}if("string"==typeof r){var g=(0,j.makeReference)(r),b=s.written[r]||(s.written[r]=[]);if(b.indexOf(o)>=0||(b.push(o),this.reader&&this.reader.isFresh(a,g,o,s)))return g;var x=s.incomingById.get(r);return x?(x.storeObject=s.merge(x.storeObject,f),x.mergeTree=function e(t,r){if(t===r||!r||ts(r))return t;if(!t||ts(t))return r;var i=t.info&&r.info?(0,n.__assign)((0,n.__assign)({},t.info),r.info):t.info||r.info,a=t.map.size&&r.map.size,o={info:i,map:a?new Map:t.map.size?t.map:r.map};if(a){var s=new Set(r.map.keys());t.map.forEach(function(t,n){o.map.set(n,e(t,r.map.get(n))),s.delete(n)}),s.forEach(function(n){o.map.set(n,e(r.map.get(n),t.map.get(n)))})}return o}(x.mergeTree,l),h.forEach(function(e){return x.fieldNodeSet.add(e)})):s.incomingById.set(r,{storeObject:f,mergeTree:ts(l)?void 0:l,fieldNodeSet:h}),g}return f},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,v.isArray)(e)?e.map(function(e,a){var o=i.processFieldValue(e,t,r,to(n,a));return tl(n,a),o}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?(0,eG.cloneDeep)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,j.getTypenameFromResult)(t,e,r.fragmentMap));var a=new Map,o=this.cache.policies,s=new N.Trie(!1);return!function e(l,c){var u=s.lookup(l,c.clientOnly,c.deferred);u.visited||(u.visited=!0,l.selections.forEach(function(s){if((0,f.shouldInclude)(s,r.variables)){var l=c.clientOnly,u=c.deferred;if(!(l&&u)&&(0,v.isNonEmptyArray)(s.directives)&&s.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(l=!0),"defer"===t){var n=(0,j.argumentsObjectFromField)(e,r.variables);n&&!1===n.if||(u=!0)}}),(0,j.isField)(s)){var d=a.get(s);d&&(l=l&&d.clientOnly,u=u&&d.deferred),a.set(s,tn(r,l,u))}else{var h=(0,p.getFragmentFromSelection)(s,r.lookupFragment);if(!h&&s.kind===U.Kind.FRAGMENT_SPREAD)throw(0,i.newInvariantError)(14,s.name.value);h&&o.fragmentMatches(h,n,t,r.variables)&&e(h.selectionSet,tn(r,l,u))}}}))}(e,r),a},e.prototype.applyMerges=function(e,t,r,a,o){var s=this;if(e.map.size&&!(0,j.isReference)(r)){var l,c,u=!(0,v.isArray)(r)&&((0,j.isReference)(t)||eI(t))?t:void 0,f=r;u&&!o&&(o=[(0,j.isReference)(u)?u.__ref:u]);var d=function(e,t){return(0,v.isArray)(e)?"number"==typeof t?e[t]:void 0:a.store.getFieldValue(e,String(t))};
7e.map.forEach(function(e,t){var r=d(u,t),n=d(f,t);if(void 0!==n){o&&o.push(t);var l=s.applyMerges(e,r,n,a,o);l!==n&&(c=c||new Map).set(t,l),o&&(0,i.invariant)(o.pop()===t)}}),c&&(r=(0,v.isArray)(f)?f.slice(0):(0,n.__assign)({},f),c.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,a,o&&(l=a.store).getStorage.apply(l,o)):r},e}(),ta=[];function to(e,t){var r=e.map;return r.has(t)||r.set(t,ta.pop()||{map:new Map}),r.get(t)}function ts(e){return!e||!(e.info||e.map.size)}function tl(e,t){var r=e.map,n=r.get(t);n&&ts(n)&&(ta.push(n),r.delete(t))}var tc=new Set,tu=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new T(u.addTypenameToDocument),r.assumeImmutableResults=!0,r.makeVar=ep,r.txCount=0,!1!==globalThis.__DEV__&&((0,L.warnRemovedOption)(t,"addTypename","InMemoryCache","Please remove the `addTypename` option when initializing `InMemoryCache`."),(0,L.warnRemovedOption)(t,"canonizeResults","InMemoryCache","Please remove the `canonizeResults` option when initializing `InMemoryCache`.")),r.config=eE(t),r.addTypename=!!r.config.addTypename,r.policies=new e7({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,n.__extends)(t,e),t.prototype.init=function(){var e=this.data=new eL.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.addTypenameTransform.resetCache(),null==n||n.resetCaches(),this.storeWriter=new ti(this,this.storeReader=new eH({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:eN(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,F.wrap)(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||D.cacheSizes["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(e$(r)){var n=e.optimistic,i=e.id,a=e.variables;return r.makeCacheKey(e.query,e.callback,(0,h.canonicalStringify)({optimistic:n,id:i,variables:a}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){!1!==globalThis.__DEV__&&(0,L.warnRemovedOption)(e,"canonizeResults","cache.read");var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,n.__assign)((0,n.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof e_)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(eS.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return!1!==globalThis.__DEV__&&(0,L.warnRemovedOption)(e,"canonizeResults","cache.diff"),this.storeReader.diffQueryAgainstStore((0,n.__assign)((0,n.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||ed(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&ef(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){!1!==globalThis.__DEV__&&(0,L.warnRemovedOption)(e||{},"resetResultIdentities","cache.gc","First ensure all usages of `canonizeResults` are removed, then remove this option."),h.
7canonicalStringify.reset(),B.print.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,j.isReference)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&i.invariant.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(eS.call(e,"id"))return!1;e=(0,n.__assign)((0,n.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),h.canonicalStringify.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),ef(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,i=e.update,a=e.optimistic,o=void 0===a||a,s=e.removeOptimistic,l=e.onWatchUpdated,c=function(e){var n=r.data,a=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=i(r)}finally{--r.txCount,r.data=n,r.optimisticData=a}},u=new Set;return l&&!this.txCount&&this.broadcastWatches((0,n.__assign)((0,n.__assign)({},e),{onWatchUpdated:function(e){return u.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,c):!1===o?c(this.data):c(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),l&&u.size?(this.broadcastWatches((0,n.__assign)((0,n.__assign)({},e),{onWatchUpdated:function(e,t){var r=l.call(this,e,t);return!1!==r&&u.delete(e),r}})),u.size&&u.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null==(t=this.config.fragments)?void 0:t.lookup(e))||null},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=this,n=e.lastDiff,i=(0,L.muteDeprecations)("canonizeResults",function(){return r.diff(e)});(!t||(e.optimistic&&"string"==typeof t.optimistic&&(i.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,i,n)))&&(n&&(0,c.equal)(n.result,i.result)||e.callback(e.lastDiff=i,n))},t}(ex);!1!==globalThis.__DEV__&&(tu.prototype.getMemoryInternals=ev.getInMemoryCacheMemoryInternals),e.s(["InMemoryCache",0,tu],84936)},30468,e=>{"use strict";var t,r=e.i(84849);(0,r.setVerbosity)(!1!==globalThis.__DEV__?"log":"silent"),e.s([],75477),e.i(75477);var n=e.i(95585),i=e.i(69570),a=e.i(57828),o=e.i(76810),s=e.i(33879);t||(t={});var l=e.i(64501),c=e.i(84936),u=e.i(14540),f=e.i(58673),d=e.i(268);e.i(68681),e.s([],3421),e.i(3421);var p=e.i(62979),h=p.ApolloLink.empty,m=p.ApolloLink.from,v=p.ApolloLink.split,y=p.ApolloLink.concat,g=e.i(71393);e.s(["ApolloLink",()=>p.ApolloLink,"concat",0,y,"empty",0,h,"execute",()=>g.execute,"from",0,m,"split",0,v],21664),e.i(21664);var b=e.i(70454),x=e.i(87434),_=e.i(5578),w=e.i(25945),S=e.i(22017),k=e.i(33448),O=e.i(56776),j=e.i(59080);e.s(["ApolloCache",()=>l.ApolloCache,"ApolloClient",()=>n.ApolloClient,"ApolloError",()=>s.ApolloError,"ApolloLink",()=>p.ApolloLink,"Cache",0,t,"DocumentTransform",()=>k.DocumentTransform,"HttpLink",()=>b.HttpLink,"InMemoryCache",()=>c.InMemoryCache,"MissingFieldError",()=>u.MissingFieldError,"NetworkStatus",()=>o.NetworkStatus,"Observable",()=>w.Observable,"ObservableQuery",()=>a.ObservableQuery,"checkFetcher",()=>b.checkFetcher,"concat",0,y,"createHttpLink",()=>b.createHttpLink,"createSignalIfSupported",()=>b.createSignalIfSupported,"defaultDataIdFromObject",()=>f.defaultDataIdFromObject,"defaultPrinter",()=>b.defaultPrinter,"disableExperimentalFragmentVariables",()=>j.disableExperimentalFragmentVariables,"disableFragmentWarnings",()=>j.disableFragmentWarnings,"empty",0,h,"enableExperimentalFragmentVariables",()=>j.enableExperimentalFragmentVariables,"execute",()=>g.execute,"fallbackHttpConfig",()=>b.fallbackHttpConfig,"from",0,m,"fromError",()=>x.fromError,"fromPromise",0,function(e){return new w.Observable(function(t){e.then(function(e){t.next(e),t.complete()}).catch(t.error.bind(t))})},"gql",()=>j.gql,"isApolloError",()=>
7s.isApolloError,"isNetworkRequestSettled",()=>o.isNetworkRequestSettled,"isReference",()=>O.isReference,"makeReference",()=>O.makeReference,"makeVar",()=>d.makeVar,"mergeOptions",()=>i.mergeOptions,"parseAndCheckHttpResponse",()=>b.parseAndCheckHttpResponse,"resetCaches",()=>j.resetCaches,"rewriteURIForGET",()=>b.rewriteURIForGET,"selectHttpOptionsAndBody",()=>b.selectHttpOptionsAndBody,"selectHttpOptionsAndBodyInternal",()=>b.selectHttpOptionsAndBodyInternal,"selectURI",()=>b.selectURI,"serializeFetchParameter",()=>b.serializeFetchParameter,"setLogVerbosity",()=>r.setVerbosity,"split",0,v,"throwServerError",()=>S.throwServerError,"toPromise",0,function(e){var t=!1;return new Promise(function(r,n){e.subscribe({next:function(e){t?!1!==globalThis.__DEV__&&_.invariant.warn(57):(t=!0,r(e))},error:n})})}],30468)},49396,(e,t,r)=>{"use strict";t.exports=class{constructor({uri:e,name:t,type:r}){this.uri=e,this.name=t,this.type=r}}},38583,(e,t,r)=>{"use strict";let n=e.r(49396);t.exports=function(e){return"u">typeof File&&e instanceof File||"u">typeof Blob&&e instanceof Blob||e instanceof n}},60150,(e,t,r)=>{"use strict";let n=e.r(38583);t.exports=function(e,t="",r=n){let i=new Map,a=new Map;return{clone:function e(t,n,o){let s=t;if(r(t)){s=null;let e=i.get(t);e?e.push(n):i.set(t,[n])}else{let r=Array.isArray(t)||"u">typeof FileList&&t instanceof FileList,i=t&&t.constructor===Object;if(r||i){let i=a.has(t);if(i?s=a.get(t):(s=r?[]:{},a.set(t,s)),!o.has(t)){let a=n?`${n}.`:"",l=new Set(o).add(t);if(r){let r=0;for(let n of t){let t=e(n,a+r++,l);i||s.push(t)}}else for(let r in t){let n=e(t[r],a+r,l);i||(s[r]=n)}}}}return s}(e,t,new Set),files:i}}},65079,(e,t,r)=>{"use strict";t.exports=function(e,t,r){e.append(t,r,r.name)}},3471,(e,t,r)=>{"use strict";t.exports=e.r(38583)},90384,(e,t,r)=>{"use strict";let{ApolloLink:n,Observable:i}=e.r(30468),{createSignalIfSupported:a,fallbackHttpConfig:o,parseAndCheckHttpResponse:s,rewriteURIForGET:l,selectHttpOptionsAndBody:c,selectURI:u,serializeFetchParameter:f}=e.r(70454),d=e.r(60150),p=e.r(65079),h=e.r(3471);t.exports=function({uri:e="/graphql",useGETForQueries:t,isExtractableFile:r=h,FormData:m,formDataAppendFile:v=p,fetch:y,fetchOptions:g,credentials:b,headers:x,includeExtensions:_}={}){let w={http:{includeExtensions:_},options:g,credentials:b,headers:x};return new n(n=>{let p=n.getContext(),{clientAwareness:{name:h,version:g}={},headers:b}=p,{options:x,body:_}=c(n,o,w,{http:p.http,options:p.fetchOptions,credentials:p.credentials,headers:{...h&&{"apollographql-client-name":h},...g&&{"apollographql-client-version":g},...b}}),{clone:S,files:k}=d(_,"",r),O=u(n,e);if(k.size){delete x.headers["content-type"];let e=new(m||FormData);e.append("operations",f(S,"Payload"));let t={},r=0;k.forEach(e=>{t[++r]=e}),e.append("map",JSON.stringify(t)),r=0,k.forEach((t,n)=>{v(e,++r,n)}),x.body=e}else if(t&&!n.query.definitions.some(e=>"OperationDefinition"===e.kind&&"mutation"===e.operation)&&(x.method="GET"),"GET"===x.method){let{newURI:e,parseError:t}=l(O,_);if(t)return new i(e=>{e.error(t)});O=e}else x.body=f(S,"Payload");let{controller:j}=a();j&&(x.signal&&(x.signal.aborted?j.abort():x.signal.addEventListener("abort",()=>{j.abort()},{once:!0})),x.signal=j.signal);let E=y||fetch;return new i(e=>{let t;return E(O,x).then(e=>(n.setContext({response:e}),e)).then(s(n)).then(t=>{e.next(t),e.complete()}).catch(r=>{t||(r.result&&r.result.errors&&r.result.data&&e.next(r.result),e.error(r))}),()=>{t=!0,j&&j.abort()}})})}},62979,97107,92449,22017,13959,2024,3285,64657,41969,54413,91839,87434,49429,9698,71596,e=>{"use strict";e.i(68681);var t,r=e.i(5578),n=e.i(25945),i=e.i(89280),a=e.i(15301),o=e.i(69547);function s(e,t){return t?t(e):n.Observable.of()}function l(e){return"function"==typeof e?new u(e):e}function c(e){return e.request.length<=1}var u=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return n.Observable.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(l).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,i){var a=l(r),o=l(i||new e(s));return Object.assign(new e(c(a)&&c(o)?function(e){return t(e)?a.request(e)||n.Observable.of():o.request(e)||n.Observable.of()}:function(e,r){return t(e)?a.request(e,r)||n.Observable.of():o.request(e,r)||n.Observable.of()}),{left:a,right:o})},e.execute=function(e,t){var o,s,l,c,u;return e.request((l=t.context,(s={variables:(o=function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,i=Object.keys(e);n<i.length;n++){var a=i[n];if(0>t.indexOf(a))throw(0,r.newInvariantError)(58,a)}return e}(t)).variables||{},extensions:o.extensions||{},operationName:o.operationName,query:o.query}).operationName||(s.operationName="string"!=typeof s.query?(0,a.getOperationName)(s.query)||void 0:""),c=s,u=(0,i.__assign)({},l),Object.defineProperty(c,"setContext",{enumerable:!1,value:function(e){u="function"==typeof e?(0,i.__assign)((0,i.__assign)({},u),e(u)):(0,i.__assign)((0,i.__assign)({},u),e)}}),Object.defineProperty(c,"getContext",{enumerable:!1,value:function(){return(0,i.__assign)({},u)}}),c))||n.Observable.of()},e.concat=function(t,i){var a=l(t);if(c(a))return!1!==globalThis.__DEV__&&r.invariant.warn(47,a),a;var o=l(i);return Object.assign(new e(c(o)?function(e){return a.request(e,function(e){return o.request(e)||n.Observable.of()})||n.Observable.of()}:function(e,t){return a.request(e,function(e){return o.request(e,t)||n.Observable.of()})||n.Observable.of()}),{left:a,right:o})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(s)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,r.newInvariantError)(48)},e.prototype.onError=function(e,t){if(!1!==globalThis.__DEV__&&(0,o.warnDeprecated)("onError",function(){!1!==globalThis.__DEV__&&r.invariant.warn(49)}),t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&r.invariant.warn(50),this.onError=e,this},e}();e.s(["ApolloLink",0,u],62979);var f=e.i(26452),d=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var i=(0,r.newInvariantError)(54,t,e.message);throw i.parseError=e,i}return n};e.s(["serializeFetchParameter",0,d],97107);var p=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")};e.s(["selectURI",0,p],92449);var h=e.i(23289);function m(e){var t={next:function(){return e.read()}};return h.canUseAsyncIteratorSymbol&&(t[Symbol.asyncIterator]=function(){return this}),t}var v=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n};e.s(["throwServerError",0,v],22017);var y=e.i(33879),g=e.i(30101),b=e.i(42419),x=Object.prototype.hasOwnProperty;function _(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new S,i=1;i<r;++i)t=n.merge(t,e[i]);return t}
7var w=function(e,t,r){return this.merge(e[r],t[r])},S=function(){function e(e){void 0===e&&(e=w),this.reconciler=e,this.isObject=g.isNonNullObject,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];return(0,g.isNonNullObject)(t)&&(0,g.isNonNullObject)(e)?(Object.keys(t).forEach(function(a){if(x.call(e,a)){var o=e[a];if(t[a]!==o){var s=r.reconciler.apply(r,(0,i.__spreadArray)([e,t,a],n,!1));s!==o&&((e=r.shallowCopyForMerge(e))[a]=s)}}else(e=r.shallowCopyForMerge(e))[a]=t[a]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,g.isNonNullObject)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,i.__assign)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();function k(e){return"incremental"in e}function O(e){return(0,g.isNonNullObject)(e)&&"payload"in e}e.s(["DeepMerger",0,S,"mergeDeep",0,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return _(e)},"mergeDeepArray",0,_],13959),e.s(["isApolloPayloadResult",0,O,"isExecutionPatchIncrementalResult",0,k,"isExecutionPatchResult",0,function(e){return k(e)||"hasNext"in e&&"data"in e},"mergeIncrementalData",0,function(e,t){var r=e,n=new S;return k(t)&&(0,b.isNonEmptyArray)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,a=i.length-1;a>=0;--a){var o=i[a],s=isNaN(+o)?{}:[];s[o]=t,t=s}r=n.merge(r,t)}),r}],2024);var j=Object.prototype.hasOwnProperty;function E(e,t){return(0,i.__awaiter)(this,void 0,void 0,function(){var r,n,a,o,s,l,c,u,f,d,p,v,g,b,x,_,w,S,k,j,E,C,R;return(0,i.__generator)(this,function(F){switch(F.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),n=null==(R=e.headers)?void 0:R.get("content-type"),a="boundary=",o=(null==n?void 0:n.includes(a))?null==n?void 0:n.substring((null==n?void 0:n.indexOf(a))+a.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",s="\r\n--".concat(o),l="",c=function(e){var t,r,n,i,a,o,s=e;if(e.body&&(s=e.body),t=s,h.canUseAsyncIteratorSymbol&&t[Symbol.asyncIterator])return n=s[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(s.getReader)return m(s.getReader());if(s.stream)return m(s.stream().getReader());if(s.arrayBuffer)return i=s.arrayBuffer(),a=!1,o={next:function(){return a?Promise.resolve({value:void 0,done:!0}):(a=!0,new Promise(function(e,t){i.then(function(t){e({value:t,done:!1})}).catch(t)}))}},h.canUseAsyncIteratorSymbol&&(o[Symbol.asyncIterator]=function(){return this}),o;if(s.pipe)return function(e){var t=null,r=null,n=!1,i=[],a=[];function o(e){if(!r){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){r=e,a.slice().forEach(function(t){t[1](e)}),t&&t()}function l(){n=!0,a.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",o),e.removeListener("error",s),e.removeListener("end",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",o),e.on("error",s),e.on("end",l),e.on("finish",l),e.on("close",l);var c={next:function(){return new Promise(function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void a.push([e,t])})}};return h.canUseAsyncIteratorSymbol&&(c[Symbol.asyncIterator]=function(){return this}),c}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),u=!0,F.label=1;case 1:if(!u)return[3,3];return[4,c.next()];case 2:for(d=(f=F.sent()).value,p=f.done,v="string"==typeof d?d:r.decode(d),g=l.length-s.length+1,u=!p,l+=v,b=l.indexOf(s,g);b>-1;){if(x=void 0,x=(E=[l.slice(0,b),l.slice(b+s.length)])[0],l=E[1],_=x.indexOf("\r\n\r\n"),(w=function(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(x.slice(0,_))["content-type"])&&-1===w.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");
7if(S=x.slice(_)){if(Object.keys(k=N(e,S)).length>1||"data"in k||"incremental"in k||"errors"in k||"payload"in k)if(O(k)){if(j={},"payload"in k){if(1===Object.keys(k).length&&null===k.payload)return[2];j=(0,i.__assign)({},k.payload)}"errors"in k&&(j=(0,i.__assign)((0,i.__assign)({},j),{extensions:(0,i.__assign)((0,i.__assign)({},"extensions"in j?j.extensions:null),((C={})[y.PROTOCOL_ERRORS_SYMBOL]=k.errors,C))})),t(j)}else t(k);else if(1===Object.keys(k).length&&"hasNext"in k&&!k.hasNext)return[2]}b=l.indexOf(s)}return[3,1];case 3:return[2]}})})}function N(e,t){e.status>=300&&v(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function C(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function R(e){return function(t){return t.text().then(function(e){return N(t,e)}).then(function(r){return Array.isArray(r)||j.call(r,"data")||j.call(r,"errors")||v(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r})}}e.s(["handleError",0,C,"parseAndCheckHttpResponse",0,R,"readMultipartBody",0,E],3285);var F=function(e){if(!e&&"u"<typeof fetch)throw(0,r.newInvariantError)(51)};e.s(["checkFetcher",0,F],64657);var D=e.i(67757);let I=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function T(e){return A[e.charCodeAt(0)]}let A=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var P=e.i(2088);let M={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>q(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=V("(",q(e.variableDefinitions,", "),")"),r=q([e.operation,q([e.name,t]),q(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+V(" = ",r)+V(" ",q(n," "))},SelectionSet:{leave:({selections:e})=>L(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let a=V("",e,": ")+t,o=a+V("(",q(r,", "),")");return o.length>80&&(o=a+V("(\n",Q(q(r,"\n")),"\n)")),q([o,q(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+V(" ",q(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>q(["...",V("on ",e),q(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${V("(",q(r,", "),")")} on ${t} ${V("",q(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,D.printBlockString)(e):`"${e.replace(I,T)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+q(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+q(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+V("(",q(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>V("",e,"\n")+q(["schema",q(t," "),L(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>V("",e,"\n")+q(["scalar",t,q(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>V("",e,"\n")+q(["type",t,V("implements ",q(r," & ")),q(n," "),L(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>
7V("",e,"\n")+t+(z(r)?V("(\n",Q(q(r,"\n")),"\n)"):V("(",q(r,", "),")"))+": "+n+V(" ",q(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>V("",e,"\n")+q([t+": "+r,V("= ",n),q(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>V("",e,"\n")+q(["interface",t,V("implements ",q(r," & ")),q(n," "),L(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>V("",e,"\n")+q(["union",t,q(r," "),V("= ",q(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>V("",e,"\n")+q(["enum",t,q(r," "),L(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>V("",e,"\n")+q([t,q(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>V("",e,"\n")+q(["input",t,q(r," "),L(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>V("",e,"\n")+"directive @"+t+(z(r)?V("(\n",Q(q(r,"\n")),"\n)"):V("(",q(r,", "),")"))+(n?" repeatable":"")+" on "+q(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>q(["extend schema",q(e," "),L(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>q(["extend scalar",e,q(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>q(["extend type",e,V("implements ",q(t," & ")),q(r," "),L(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>q(["extend interface",e,V("implements ",q(t," & ")),q(r," "),L(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>q(["extend union",e,q(t," "),V("= ",q(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>q(["extend enum",e,q(t," "),L(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>q(["extend input",e,q(t," "),L(r)]," ")}};function q(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function L(e){return V("{\n",Q(q(e,"\n")),"\n}")}function V(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function Q(e){return V("  ",e.replace(/\n/g,"\n  "))}function z(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}var W=e.i(36904),B=e.i(6044),$=e.i(99523),U=Object.assign(function(e){var r=t.get(e);return r||(r=(0,P.visit)(e,M),t.set(e,r)),r},{reset:function(){t=new W.AutoCleanedWeakCache(B.cacheSizes.print||2e3)}});U.reset(),!1!==globalThis.__DEV__&&(0,$.registerGlobalCache)("print",function(){return t?t.size:0}),e.s(["print",0,U],41969);var K={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},H=function(e,t){return t(e)};function G(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a={},o={};r.forEach(function(e){a=(0,i.__assign)((0,i.__assign)((0,i.__assign)({},a),e.options),{headers:(0,i.__assign)((0,i.__assign)({},a.headers),e.headers)}),e.credentials&&(a.credentials=e.credentials),o=(0,i.__assign)((0,i.__assign)({},o),e.http)}),a.headers&&(a.headers=function(e,t){if(!t){var r={};
7return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n={};Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i={};return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(a.headers,o.preserveHeaderCase));var s=e.operationName,l=e.extensions,c=e.variables,u=e.query,f={operationName:s,variables:c};return o.includeExtensions&&(f.extensions=l),o.includeQuery&&(f.query=t(u,U)),{options:a,body:f}}function J(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=d(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var a=void 0;try{a=d(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",a)}var o="",s=e,l=e.indexOf("#");-1!==l&&(o=e.substr(l),s=e.substr(0,l));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+r.join("&")+o}}function Y(e){return new n.Observable(function(t){t.error(e)})}e.s(["defaultPrinter",0,H,"fallbackHttpConfig",0,K,"selectHttpOptionsAndBody",0,function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return r.unshift(t),G.apply(void 0,(0,i.__spreadArray)([e,H],r,!1))},"selectHttpOptionsAndBodyInternal",0,G],54413),e.s(["rewriteURIForGET",0,J],91839),e.s(["fromError",0,Y],87434);var X=e.i(22001),Z=e.i(6699),ee=e.i(56776),et=e.i(86384),er={kind:Z.Kind.FIELD,name:{kind:Z.Kind.NAME,value:"__typename"}};function en(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function ei(e,t){(0,a.checkDocument)(t);for(var n,o,s,l=en(""),c=en(""),u=function(e){for(var t=0,n=void 0;t<e.length&&(n=e[t]);++t)if(!(0,b.isArray)(n)){if(n.kind===Z.Kind.OPERATION_DEFINITION)return l(n.name&&n.name.value);if(n.kind===Z.Kind.FRAGMENT_DEFINITION)return c(n.name.value)}return!1!==globalThis.__DEV__&&r.invariant.error(125),null},f=0,d=t.definitions.length-1;d>=0;--d)t.definitions[d].kind===Z.Kind.OPERATION_DEFINITION&&++f;var p=(n=new Map,o=new Map,e.forEach(function(e){e&&(e.name?n.set(e.name,e):e.test&&o.set(e.test,e))}),function(e){var t=n.get(e.name.value);return!t&&o.size&&o.forEach(function(r,n){n(e)&&(t=r)}),t}),h=function(e){return(0,b.isNonEmptyArray)(e)&&e.map(p).some(function(e){return e&&e.remove})},m=new Map,v=!1,y={enter:function(e){if(h(e.directives))return v=!0,null}},g=(0,P.visit)(t,{Field:y,InlineFragment:y,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var a=u(i);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(h(e.directives))return v=!0,null;var a=u(i);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){m.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===m.get(JSON.stringify(n))?e:f>0&&e.selectionSet.selections.every(function(e){return e.kind===Z.Kind.FIELD&&"__typename"===e.name.value})?(c(e.name.value).removed=!0,v=!0,null):void 0}},Directive:{leave:function(e){if(p(e))return v=!0,null}}});if(!v)return t;var x=function(e){return!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){x(c(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},_=new Set;g.definitions.forEach(function(e){e.kind===Z.Kind.OPERATION_DEFINITION?x(l(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){_.add(e)}):e.kind!==Z.Kind.FRAGMENT_DEFINITION||0!==f||c(e.name.value).removed||_.add(e.name.value)}),_.forEach(function(e){x(c(e)).fragmentSpreads.forEach(function(e){_.add(e)})});var w={enter:function(e){var t;if(t=e.name.value,!_.has(t)||c(t).removed)return null}};return s=(0,P.visit)(g,{FragmentSpread:w,FragmentDefinition:w,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=x(l(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,i.__assign)((0,i.__assign)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}),!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===Z.Kind.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}((0,a.getOperationDefinition)(s)||(0,a.getFragmentDefinition)(s),(0,et.createFragmentMap)((0,a.getFragmentDefinitions)(s)))?s:null}var ea=Object.assign(function(e){return(0,P.visit)(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==Z.Kind.OPERATION_DEFINITION){var n=e.selections;if(!(!n||n.some(function(e){return(0,ee.isField)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,ee.isField)(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,i.__assign)((0,i.__assign)({},e),{selections:(0,i.__spreadArray)((0,i.__spreadArray)([],n,!0),[er],!1)})}}}})},{added:function(e){return e===er}});function eo(e){return(0,a.checkDocument)(e),ei([{test:function(e){return"client"===e.name.value},remove:!0}],e)}e.s(["addNonReactiveToNamedFragments",0,function(e){return(0,a.checkDocument)(e),(0,P.visit)(e,{FragmentSpread:function(e){var t;if(null==(t=e.directives)||!t.some(function(e){return"unmask"===e.name.value}))return(0,i.__assign)((0,i.__assign)({},e),{directives:(0,i.__spreadArray)((0,i.__spreadArray)([],e.directives||[],!0),[{kind:Z.Kind.DIRECTIVE,name:{kind:Z.Kind.NAME,value:"nonreactive"}}
7],!1)})}})},"addTypenameToDocument",0,ea,"buildQueryFromSelectionSet",0,function(e){return"query"===(0,a.getMainDefinition)(e).operation?e:(0,P.visit)(e,{OperationDefinition:{enter:function(e){return(0,i.__assign)((0,i.__assign)({},e),{operation:"query"})}}})},"removeClientSetsFromDocument",0,eo,"removeDirectivesFromDocument",0,ei],49429);var es=(0,X.maybe)(function(){return fetch}),el=function(e){void 0===e&&(e={});var t=e.uri,o=void 0===t?"/graphql":t,s=e.fetch,l=e.print,c=void 0===l?H:l,h=e.includeExtensions,m=e.preserveHeaderCase,v=e.useGETForQueries,y=e.includeUnusedVariables,g=void 0!==y&&y,b=(0,i.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&F(s||es);var x={http:{includeExtensions:h,preserveHeaderCase:m},options:b.fetchOptions,credentials:b.credentials,headers:b.headers};return new u(function(e){var t,l,u,h,m,y,b=p(e,o),_=e.getContext(),w={};if(_.clientAwareness){var S=_.clientAwareness,k=S.name,O=S.version;k&&(w["apollographql-client-name"]=k),O&&(w["apollographql-client-version"]=O)}var j=(0,i.__assign)((0,i.__assign)({},w),_.headers),N={http:_.http,options:_.fetchOptions,credentials:_.credentials,headers:j};if((0,f.hasDirectives)(["client"],e.query)){!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&r.invariant.warn(52);var F=eo(e.query);if(!F)return Y(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=F}var D=G(e,c,K,x,N),I=D.options,T=D.body;T.variables&&!g&&(t=T.variables,l=e.query,u=(0,i.__assign)({},t),h=new Set(Object.keys(t)),(0,P.visit)(l,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&h.delete(e.name.value)}}),h.forEach(function(e){delete u[e]}),T.variables=u),!I.signal&&"u">typeof AbortController&&(I.signal=(y=new AbortController).signal);var A="OperationDefinition"===(m=(0,a.getMainDefinition)(e.query)).kind&&"subscription"===m.operation,M=(0,f.hasDirectives)(["defer"],e.query);if(v&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(I.method="GET"),M||A){I.headers=I.headers||{};var q="multipart/mixed;";A&&M&&!1!==globalThis.__DEV__&&r.invariant.warn(53),A?q+="boundary=graphql;subscriptionSpec=1.0,application/json":M&&(q+="deferSpec=20220824,application/json"),I.headers.accept=q}if("GET"===I.method){var L=J(b,T),V=L.newURI,Q=L.parseError;if(Q)return Y(Q);b=V}else try{I.body=d(T,"Payload")}catch(e){return Y(e)}return new n.Observable(function(t){var r=s||(0,X.maybe)(function(){return fetch})||es,n=t.next.bind(t);return r(b,I).then(function(t){e.setContext({response:t});var r,i=null==(r=t.headers)?void 0:r.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?E(t,n):R(e)(t).then(n)}).then(function(){y=void 0,t.complete()}).catch(function(e){y=void 0,C(e,t)}),function(){y&&y.abort()}})})};e.s(["createHttpLink",0,el],9698);var ec=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,el(t).request)||this;return r.options=t,r}return(0,i.__extends)(t,e),t}(u);e.s(["HttpLink",0,ec],71596)},70454,e=>{"use strict";e.i(68681),e.s([],4283),e.i(4283);var t=e.i(3285),r=e.i(97107),n=e.i(54413),i=e.i(64657),a=e.i(92449),o=e.i(9698),s=e.i(71596),l=e.i(91839);e.s(["HttpLink",()=>s.HttpLink,"checkFetcher",()=>i.checkFetcher,"createHttpLink",()=>o.createHttpLink,"createSignalIfSupported",0,function(){if("u"<typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}},"defaultPrinter",()=>n.defaultPrinter,"fallbackHttpConfig",()=>n.fallbackHttpConfig,"parseAndCheckHttpResponse",()=>t.parseAndCheckHttpResponse,"rewriteURIForGET",()=>l.rewriteURIForGET,"selectHttpOptionsAndBody",()=>n.selectHttpOptionsAndBody,"selectHttpOptionsAndBodyInternal",()=>n.selectHttpOptionsAndBodyInternal,"selectURI",()=>a.selectURI,"serializeFetchParameter",()=>r.serializeFetchParameter],70454)},79079,(e,t,r)=>{"use strict";var n=e.r(98204),i=e.r(27241),a=e.r(40406),o={};try{o.__proto__=null}
7catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var s=!("toString"in o),l=i&&i(Object.prototype,"__proto__");t.exports=s&&(!!l&&"function"==typeof l.set&&n([l.set])||function(e,t){if(null==e)throw new a("set Object.prototype.__proto__ called on null or undefined");return e.__proto__=t,t})},22544,(e,t,r)=>{"use strict";var n=e.r(57137),i=e.r(71790),a=e.r(79079),o=e.r(40406);t.exports=n?function(e,t){if(n(e,t))return e;throw new o("Reflect.setPrototypeOf: failed to set [[Prototype]]")}:i||(a?function(e,t){return a(e,t),e}:null)},11507,(e,t,r)=>{"use strict";var n=e.r(558)("%Array.prototype%"),i=e.r(9995),a=e.r(9066),o=e.r(40406),s=e.r(42836),l=e.r(75769),c=e.r(22544);t.exports=function(e){if(!s(e)||e<0)throw new o("Assertion failed: `length` must be an integer Number >= 0");if(e>l)throw new i("length is greater than (2**32 - 1)");var t=arguments.length>1?arguments[1]:n,r=[];if(t!==n){if(!c)throw new a("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");c(r,t)}return 0!==e&&(r.length=e),r}},88661,(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=n&&i&&"function"==typeof i.get?i.get:null,o=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"==typeof l.get?l.get:null,u=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,v=Function.prototype.toString,y=String.prototype.match,g=String.prototype.slice,b=String.prototype.replace,x=String.prototype.toUpperCase,_=String.prototype.toLowerCase,w=RegExp.prototype.test,S=Array.prototype.concat,k=Array.prototype.join,O=Array.prototype.slice,j=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,N=Object.getOwnPropertySymbols,C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,R="function"==typeof Symbol&&"object"==typeof Symbol.iterator,F="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===R?"object":"symbol")?Symbol.toStringTag:null,D=Object.prototype.propertyIsEnumerable,I=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function T(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-j(-e):j(e);if(n!==e){var i=String(n),a=g.call(t,i.length+1);return b.call(i,r,"$&_")+"."+b.call(b.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var A={},P=A.custom,M=B(P)?P:null,q={__proto__:null,double:'"',single:"'"},L={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function V(e,t,r){var n=q[r.quoteStyle||t];return n+e+n}function Q(e){return!F||!("object"==typeof e&&(F in e||void 0!==e[F]))}function z(e){return"[object Array]"===K(e)&&Q(e)}function W(e){return"[object RegExp]"===K(e)&&Q(e)}function B(e){if(R)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!C)return!1;try{return C.call(e),!0}catch(e){}return!1}t.exports=function t(r,n,i,s){var l,m,x,w,j,N=n||{};if(U(N,"quoteStyle")&&!U(q,N.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(U(N,"maxStringLength")&&("number"==typeof N.maxStringLength?N.maxStringLength<0&&N.maxStringLength!==1/0:null!==N.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var P=!U(N,"customInspect")||N.customInspect;if("boolean"!=typeof P&&"symbol"!==P)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
7if(U(N,"indent")&&null!==N.indent&&"	"!==N.indent&&!(parseInt(N.indent,10)===N.indent&&N.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(U(N,"numericSeparator")&&"boolean"!=typeof N.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var $=N.numericSeparator;if(void 0===r)return"undefined";if(null===r)return"null";if("boolean"==typeof r)return r?"true":"false";if("string"==typeof r)return function e(t,r){if(t.length>r.maxStringLength){var n=t.length-r.maxStringLength;return e(g.call(t,0,r.maxStringLength),r)+("... "+n)+" more character"+(n>1?"s":"")}var i=L[r.quoteStyle||"single"];return i.lastIndex=0,V(b.call(b.call(t,i,"\\$1"),/[\x00-\x1f]/g,G),"single",r)}(r,N);if("number"==typeof r){if(0===r)return 1/0/r>0?"0":"-0";var et=String(r);return $?T(r,et):et}if("bigint"==typeof r){var er=String(r)+"n";return $?T(r,er):er}var en=void 0===N.depth?5:N.depth;if(void 0===i&&(i=0),i>=en&&en>0&&"object"==typeof r)return z(r)?"[Array]":"[Object]";var ei=function(e,t){var r;if("	"===e.indent)r="	";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=k.call(Array(e.indent+1)," ")}return{base:r,prev:k.call(Array(t+1),r)}}(N,i);if(void 0===s)s=[];else if(H(s,r)>=0)return"[Circular]";function ea(e,r,n){if(r&&(s=O.call(s)).push(r),n){var a={depth:N.depth};return U(N,"quoteStyle")&&(a.quoteStyle=N.quoteStyle),t(e,a,i+1,s)}return t(e,N,i+1,s)}if("function"==typeof r&&!W(r)){var eo=function(e){if(e.name)return e.name;var t=y.call(v.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(r),es=ee(r,ea);return"[Function"+(eo?": "+eo:" (anonymous)")+"]"+(es.length>0?" { "+k.call(es,", ")+" }":"")}if(B(r)){var el=R?b.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):C.call(r);return"object"!=typeof r||R?el:J(el)}if((ec=r)&&"object"==typeof ec&&("u">typeof HTMLElement&&ec instanceof HTMLElement||"string"==typeof ec.nodeName&&"function"==typeof ec.getAttribute)){for(var ec,eu,ef="<"+_.call(String(r.nodeName)),ed=r.attributes||[],ep=0;ep<ed.length;ep++){ef+=" "+ed[ep].name+"="+V((eu=ed[ep].value,b.call(String(eu),/"/g,"&quot;")),"double",N)}return ef+=">",r.childNodes&&r.childNodes.length&&(ef+="..."),ef+="</"+_.call(String(r.nodeName))+">"}if(z(r)){if(0===r.length)return"[]";var eh=ee(r,ea);return ei&&!function(e){for(var t=0;t<e.length;t++)if(H(e[t],"\n")>=0)return!1;return!0}(eh)?"["+Z(eh,ei)+"]":"[ "+k.call(eh,", ")+" ]"}if("[object Error]"===K(l=r)&&Q(l)){var em=ee(r,ea);return"cause"in Error.prototype||!("cause"in r)||D.call(r,"cause")?0===em.length?"["+String(r)+"]":"{ ["+String(r)+"] "+k.call(em,", ")+" }":"{ ["+String(r)+"] "+k.call(S.call("[cause]: "+ea(r.cause),em),", ")+" }"}if("object"==typeof r&&P){if(M&&"function"==typeof r[M]&&A)return A(r,{depth:en-i});else if("symbol"!==P&&"function"==typeof r.inspect)return r.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(r)){var ev=[];return o&&o.call(r,function(e,t){ev.push(ea(t,r,!0)+" => "+ea(e,r))}),X("Map",a.call(r),ev,ei)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(r)){var ey=[];return u&&u.call(r,function(e){ey.push(ea(e,r))}),X("Set",c.call(r),ey,ei)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(r))return Y("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(r))return Y("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(r))return Y("WeakRef");if("[object Number]"===K(m=r)&&Q(m))return J(ea(Number(r)));if(function(e){if(!e||"object"!=typeof e||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}(r))return J(ea(E.call(r)));if("[object Boolean]"===K(x=r)&&Q(x))return J(h.call(r));if("[object String]"===K(w=r)&&Q(w))return J(ea(String(r)));if("u">typeof window&&r===window)return"{ [object Window] }";if("u">typeof globalThis&&r===globalThis||r===e.g)return"{ [object globalThis] }";if(!("[object Date]"===K(j=r)&&Q(j))&&!W(r)){var eg=ee(r,ea),eb=I?I(r)===Object.prototype:r instanceof Object||r.constructor===Object,ex=r instanceof Object?"":"null prototype",e_=!eb&&F&&Object(r)===r&&F in r?g.call(K(r),8,-1):ex?"Object":"",ew=(eb||"function"!=typeof r.constructor?"":r.constructor.name?r.constructor.name+" ":"")+(e_||ex?"["+k.call(S.call([],e_||[],ex||[]),": ")+"] ":"");return 0===eg.length?ew+"{}":ei?ew+"{"+Z(eg,ei)+"}":ew+"{ "+k.call(eg,", ")+" }"}return String(r)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function U(e,t){return $.call(e,t)}function K(e){return m.call(e)}function H(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}function G(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function J(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function X(e,t,r,n){return e+" ("+t+") {"+(n?Z(r,n):k.call(r,", "))+"}"}function Z(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+k.call(e,","+r)+"\n"+t.prev}function ee(e,t){var r,n=z(e),i=[];if(n){i.length=e.length;for(var a=0;a<e.length;a++)i[a]=U(e,a)?t(e[a],e):""}var o="function"==typeof N?N(e):[];if(R){r={};for(var s=0;s<o.length;s++)r["$"+o[s]]=o[s]}for(var l in e)if(U(e,l)&&(!n||String(Number(l))!==l||!(l<e.length)))if(R&&r["$"+l]instanceof Symbol)continue;else w.call(/[^\w$]/,l)?i.push(t(l,e)+": "+t(e[l],e)):i.push(l+": "+t(e[l],e));if("function"==typeof N)for(var c=0;c<o.length;c++)D.call(e,o[c])&&i.push("["+t(o[c])+"]: "+t(e[o[c]],e));return i}},41133,(e,t,r)=>{"use strict";
7t.exports=function(e){return"string"==typeof e||"symbol"==typeof e}},82282,(e,t,r)=>{"use strict";var n=e.r(40406),i=e.r(88661),a=e.r(41133),o=e.r(76304);t.exports=function(e,t){if(!o(e))throw new n("Assertion failed: Type(O) is not Object");if(!a(t))throw new n("Assertion failed: P is not a Property Key, got "+i(t));return e[t]}},5566,(e,t,r)=>{"use strict";t.exports=e.r(38363)},77704,(e,t,r)=>{"use strict";t.exports=function(e){return!!e}},32812,(e,t,r)=>{"use strict";var n=e.r(32305),i=e.r(40406),a=e.r(76304),o=e.r(5566),s=e.r(77704);t.exports=function(e){if(!a(e))throw new i("ToPropertyDescriptor requires an object");var t={};if(n(e,"enumerable")&&(t["[[Enumerable]]"]=s(e.enumerable)),n(e,"configurable")&&(t["[[Configurable]]"]=s(e.configurable)),n(e,"value")&&(t["[[Value]]"]=e.value),n(e,"writable")&&(t["[[Writable]]"]=s(e.writable)),n(e,"get")){var r=e.get;if(void 0!==r&&!o(r))throw new i("getter must be a function");t["[[Get]]"]=r}if(n(e,"set")){var l=e.set;if(void 0!==l&&!o(l))throw new i("setter must be a function");t["[[Set]]"]=l}if((n(t,"[[Get]]")||n(t,"[[Set]]"))&&(n(t,"[[Value]]")||n(t,"[[Writable]]")))throw new i("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},26690,(e,t,r)=>{"use strict";var n=e.r(40406),i=e.r(76304),a=e.r(63218),o=e.r(73006),s=e.r(32695),l=e.r(89873),c=e.r(41133),u=e.r(47033),f=e.r(32812);t.exports=function(e,t,r){if(!i(e))throw new n("Assertion failed: Type(O) is not Object");if(!c(t))throw new n("Assertion failed: P is not a Property Key");var d=a(r)?r:f(r);if(!a(d))throw new n("Assertion failed: Desc is not a valid Property Descriptor");return o(l,u,s,e,t,d)}},89844,(e,t,r)=>{"use strict";var n=e.r(73453)("%Reflect.construct%",!0),i=e.r(26690);try{i({},"",{"[[Get]]":function(){}})}catch(e){i=null}if(i&&n){var a={},o={};i(o,"length",{"[[Get]]":function(){throw a},"[[Enumerable]]":!0}),t.exports=function(e){try{n(e,o)}catch(e){return e===a}}}else t.exports=function(e){return"function"==typeof e&&!!e.prototype}},65650,(e,t,r)=>{"use strict";var n=e.r(558)("%Symbol.species%",!0),i=e.r(40406),a=e.r(42836),o=e.r(76304),s=e.r(11507),l=e.r(82282),c=e.r(60761),u=e.r(89844);t.exports=function(e,t){if(!a(t)||t<0)throw new i("Assertion failed: length must be an integer >= 0");if(!c(e))return s(t);var r=l(e,"constructor");if(n&&o(r)&&null===(r=l(r,n))&&(r=void 0),void 0===r)return s(t);if(!u(r))throw new i("C must be a constructor");return new r(t)}},55214,(e,t,r)=>{"use strict";t.exports=Number.MAX_SAFE_INTEGER||0x1fffffffffffff},54625,(e,t,r)=>{"use strict";var n=e.r(558),i=e.r(34787),a=e.r(40406),o=e.r(60761),s=n("%Reflect.apply%",!0)||i("Function.prototype.apply");t.exports=function(e,t){var r=arguments.length>2?arguments[2]:[];if(!o(r))throw new a("Assertion failed: optional `argumentsList`, if provided, must be a List");return s(e,t,r)}},70804,(e,t,r)=>{"use strict";var n=e.r(40406),i=e.r(32305),a=e.r(63218);t.exports=function(e){if(void 0===e)return!1;if(!a(e))throw new n("Assertion failed: `Desc` must be a Property Descriptor");return!!i(e,"[[Get]]")||!!i(e,"[[Set]]")}},24899,(e,t,r)=>{"use strict";t.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},33471,(e,t,r)=>{"use strict";var n=e.r(558),i=n("%Object.preventExtensions%",!0),a=n("%Object.isExtensible%",!0),o=e.r(24899);t.exports=i?function(e){return!o(e)&&a(e)}:function(e){return!o(e)}},32749,(e,t,r)=>{"use strict";var n=e.r(63218);t.exports=function(e,t){return n(t)&&"[[Enumerable]]"in t&&"[[Configurable]]"in t&&(e.IsAccessorDescriptor(t)||e.IsDataDescriptor(t))}},7377,(e,t,r)=>{"use strict";var n=e.r(40406),i=e.r(70804),a=e.r(89873),o=e.r(63218);t.exports=function(e){if(void 0===e)return!1;if(!o(e))throw new n("Assertion failed: `Desc` must be a Property Descriptor");return!(i(e)||a(e))}},96144,(e,t,r)=>{"use strict";var n=e.r(40406),i=e.r(76304),a=e.r(73006),o=e.r(32749),s=e.r(63218),l=e.r(32695),c=e.r(70804),u=e.r(89873),f=e.r(7377),d=e.r(41133),p=e.r(47033);t.exports=function(e,t,r,h,m){if(void 0!==e&&!i(e))throw new n("Assertion failed: O must be undefined or an Object");
7if(!d(t))throw new n("Assertion failed: P must be a Property Key");if("boolean"!=typeof r)throw new n("Assertion failed: extensible must be a Boolean");if(!s(h))throw new n("Assertion failed: Desc must be a Property Descriptor");if(void 0!==m&&!s(m))throw new n("Assertion failed: current must be a Property Descriptor, or undefined");if(void 0===m)return!!r&&(void 0===e||(c(h)?a(u,p,l,e,t,h):a(u,p,l,e,t,{"[[Configurable]]":!!h["[[Configurable]]"],"[[Enumerable]]":!!h["[[Enumerable]]"],"[[Value]]":h["[[Value]]"],"[[Writable]]":!!h["[[Writable]]"]})));if(!o({IsAccessorDescriptor:c,IsDataDescriptor:u},m))throw new n("`current`, when present, must be a fully populated and valid Property Descriptor");if(!m["[[Configurable]]"]){if("[[Configurable]]"in h&&h["[[Configurable]]"]||"[[Enumerable]]"in h&&!p(h["[[Enumerable]]"],m["[[Enumerable]]"])||!f(h)&&!p(c(h),c(m)))return!1;if(c(m)){if("[[Get]]"in h&&!p(h["[[Get]]"],m["[[Get]]"])||"[[Set]]"in h&&!p(h["[[Set]]"],m["[[Set]]"]))return!1}else if(!m["[[Writable]]"]&&("[[Writable]]"in h&&h["[[Writable]]"]||"[[Value]]"in h&&!p(h["[[Value]]"],m["[[Value]]"])))return!1}if(void 0!==e){var v;return u(m)&&c(h)?a(u,p,l,e,t,{"[[Configurable]]":!!(v=("[[Configurable]]"in h?h:m)["[[Configurable]]"]),"[[Enumerable]]":!!("[[Enumerable]]"in h?h:m)["[[Enumerable]]"],"[[Get]]":("[[Get]]"in h?h:m)["[[Get]]"],"[[Set]]":("[[Set]]"in h?h:m)["[[Set]]"]}):c(m)&&u(h)?a(u,p,l,e,t,{"[[Configurable]]":!!(v=("[[Configurable]]"in h?h:m)["[[Configurable]]"]),"[[Enumerable]]":!!("[[Enumerable]]"in h?h:m)["[[Enumerable]]"],"[[Value]]":("[[Value]]"in h?h:m)["[[Value]]"],"[[Writable]]":!!("[[Writable]]"in h?h:m)["[[Writable]]"]}):a(u,p,l,e,t,h)}return!0}},80072,(e,t,r)=>{"use strict";var n=e.r(27241),i=e.r(9066),a=e.r(40406),o=e.r(76304),s=e.r(63218),l=e.r(70804),c=e.r(33471),u=e.r(41133),f=e.r(32812),d=e.r(47033),p=e.r(96144);t.exports=function(e,t,r){if(!o(e))throw new a("Assertion failed: O must be an Object");if(!u(t))throw new a("Assertion failed: P must be a Property Key");if(!s(r))throw new a("Assertion failed: Desc must be a Property Descriptor");if(!n){if(l(r))throw new i("This environment does not support accessor property descriptors.");var h=!(t in e)&&r["[[Writable]]"]&&r["[[Enumerable]]"]&&r["[[Configurable]]"]&&"[[Value]]"in r,m=t in e&&(!("[[Configurable]]"in r)||r["[[Configurable]]"])&&(!("[[Enumerable]]"in r)||r["[[Enumerable]]"])&&(!("[[Writable]]"in r)||r["[[Writable]]"])&&"[[Value]]"in r;if(h||m)return e[t]=r["[[Value]]"],d(e[t],r["[[Value]]"]);throw new i("This environment does not support defining non-writable, non-enumerable, or non-configurable properties")}var v=n(e,t),y=v&&f(v),g=c(e);return p(e,t,g,r,y)}},91924,(e,t,r)=>{"use strict";var n=e.r(40406),i=e.r(76304),a=e.r(41133),o=e.r(80072);t.exports=function(e,t,r){if(!i(e))throw new n("Assertion failed: Type(O) is not Object");if(!a(t))throw new n("Assertion failed: P is not a Property Key");return o(e,t,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":r,"[[Writable]]":!0})}},4120,(e,t,r)=>{"use strict";var n=e.r(40406),i=e.r(76304),a=e.r(91924),o=e.r(41133);t.exports=function(e,t,r){if(!i(e))throw new n("Assertion failed: Type(O) is not Object");if(!o(t))throw new n("Assertion failed: P is not a Property Key");if(!a(e,t,r))throw new n("unable to create data property")}},72790,(e,t,r)=>{"use strict";var n=e.r(40406),i=e.r(76304),a=e.r(41133);t.exports=function(e,t){if(!i(e))throw new n("Assertion failed: `O` must be an Object");if(!a(t))throw new n("Assertion failed: `P` must be a Property Key");return t in e}},581,(e,t,r)=>{"use strict";t.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},93019,(e,t,r)=>{"use strict";var n=e.r(558)("%String%"),i=e.r(40406);t.exports=function(e){if("symbol"==typeof e)throw new i("Cannot convert a Symbol value to a string");return n(e)}},23588,(e,t,r)=>{"use strict";var n=e.r(84388),i=e.r(93019),a=e.r(34787)("String.prototype.replace"),o=/^\s$/.test("᠎"),s=o?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,l=o?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;t.exports=function(){return a(a(i(n(this)),s,""),l,"")}},51811,(e,t,r)=>{"use strict";var n=e.r(23588);t.exports=function(){return String.prototype.trim&&"​"==="​".trim()&&"᠎"==="᠎".trim()&&"_᠎"==="_᠎".trim()&&"᠎_"==="᠎_".trim()?String.prototype.trim:n}},73006,(e,t,r)=>{"use strict";var n=e.r(7721),i=e.r(70011),a=n.hasArrayLengthDefineBug(),o=a&&e.r(26710),s=e.r(34787)("Ob
7ject.prototype.propertyIsEnumerable");t.exports=function(e,t,r,n,l,c){if(!i){if(!e(c)||!c["[[Configurable]]"]||!c["[[Writable]]"]||l in n&&s(n,l)!==!!c["[[Enumerable]]"])return!1;var u=c["[[Value]]"];return n[l]=u,t(n[l],u)}return a&&"length"===l&&"[[Value]]"in c&&o(n)&&n.length!==c["[[Value]]"]?(n.length=c["[[Value]]"],n.length===c["[[Value]]"]):(i(n,l,r(c)),!0)}},70046,(e,t,r)=>{"use strict";t.exports=function(e){if(void 0===e)return e;var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=!!e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=!!e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=!!e["[[Configurable]]"]),t}},32695,(e,t,r)=>{"use strict";var n=e.r(40406),i=e.r(63218),a=e.r(70046);t.exports=function(e){if(void 0!==e&&!i(e))throw new n("Assertion failed: `Desc` must be a Property Descriptor");return a(e)}},89873,(e,t,r)=>{"use strict";var n=e.r(40406),i=e.r(32305),a=e.r(63218);t.exports=function(e){if(void 0===e)return!1;if(!a(e))throw new n("Assertion failed: `Desc` must be a Property Descriptor");return!!i(e,"[[Value]]")||!!i(e,"[[Writable]]")}},47033,(e,t,r)=>{"use strict";var n=e.r(2122);t.exports=function(e,t){return e===t?0!==e||1/e==1/t:n(e)&&n(t)}},26710,(e,t,r)=>{"use strict";
7var n=e.r(558)("%Array%"),i=!n.isArray&&e.r(34787)("Object.prototype.toString");t.exports=n.isArray||function(e){return"[object Array]"===i(e)}},60761,(e,t,r)=>{"use strict";t.exports=e.r(26710)},73453,(e,t,r)=>{"use strict";t.exports=e.r(558)},63218,(e,t,r)=>{"use strict";var n=e.r(40406),i=e.r(32305),a={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};t.exports=function(e){if(!e||"object"!=typeof e)return!1;for(var t in e)if(i(e,t)&&!a[t])return!1;var r=i(e,"[[Value]]")||i(e,"[[Writable]]"),o=i(e,"[[Get]]")||i(e,"[[Set]]");if(r&&o)throw new n("Property Descriptors may not be both accessor and data descriptors");return!0}},8605,(e,t,r)=>{"use strict";var n=e.r(68494);t.exports=function(){return n()&&!!Symbol.toStringTag}},37742,(e,t,r)=>{"use strict";var n=e.r(34787),i=n("Date.prototype.getDay"),a=function(e){try{return i(e),!0}catch(e){return!1}},o=n("Object.prototype.toString"),s=e.r(8605)();t.exports=function(e){return"object"==typeof e&&null!==e&&(s?a(e):"[object Date]"===o(e))}},36482,(e,t,r)=>{"use strict";var n,i=e.r(34787),a=e.r(8605)(),o=e.r(32305),s=e.r(27241);if(a){var l=i("RegExp.prototype.exec"),c={},u=function(){throw c},f={toString:u,valueOf:u};"symbol"==typeof Symbol.toPrimitive&&(f[Symbol.toPrimitive]=u),n=function(e){if(!e||"object"!=typeof e)return!1;var t=s(e,"lastIndex");if(!(t&&o(t,"value")))return!1;try{l(e,f)}catch(e){return e===c}}}else{var d=i("Object.prototype.toString");n=function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"[object RegExp]"===d(e)}}t.exports=n},12825,(e,t,r)=>{"use strict";var n=e.r(34787),i=e.r(36482),a=n("RegExp.prototype.exec"),o=e.r(40406);t.exports=function(e){if(!i(e))throw new o("`regex` must be a RegExp");return function(t){return null!==a(e,t)}}},21036,(e,t,r)=>{"use strict";var n=e.r(34787),i=n("Object.prototype.toString"),a=e.r(90650)(),o=e.r(12825);if(a){var s=n("Symbol.prototype.toString"),l=o(/^Symbol\(.*\)$/);t.exports=function(e){if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||"[object Symbol]"!==i(e))return!1;try{return"symbol"==typeof e.valueOf()&&l(s(e))}catch(e){return!1}}}else t.exports=function(e){return!1}},49764,(e,t,r)=>{"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,i=e.r(581),a=e.r(38363),o=e.r(37742),s=e.r(21036),l=function(e,t){if(null==e)throw TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw TypeError('hint must be "string" or "number"');var r,n,o,s="string"===t?["toString","valueOf"]:["valueOf","toString"];for(o=0;o<s.length;++o)if(a(r=e[s[o]])&&i(n=r.call(e)))return n;throw TypeError("No default value")},c=function(e,t){var r=e[t];if(null!=r){if(!a(r))throw TypeError(r+" returned for property "+String(t)+" of object "+e+" is not a function");return r}};t.exports=function(e){if(i(e))return e;var t,r="default";if(arguments.length>1&&(arguments[1]===String?r="string":arguments[1]===Number&&(r="number")),n&&(Symbol.toPrimitive?t=c(e,Symbol.toPrimitive):s(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var a=t.call(e,r);if(i(a))return a;throw TypeError("unable to convert exotic object to primitive")}return"default"===r&&(o(e)||s(e))&&(r="string"),l(e,"default"===r?"number":r)}},32822,(e,t,r)=>{"use strict";var n=e.r(49764);t.exports=function(e){return arguments.length>1?n(e,arguments[1]):n(e)}},75769,(e,t,r)=>{"use strict";t.exports=0xffffffff},57137,(e,t,r)=>{"use strict";t.exports="u">typeof Reflect&&Reflect.setPrototypeOf||null},97253,(e,t,r)=>{"use strict";var n=e.r(2122);t.exports=function(e){return("number"==typeof e||"bigint"==typeof e)&&!n(e)&&e!==1/0&&e!==-1/0}},42836,(e,t,r)=>{"use strict";var n=e.r(7276),i=e.r(54979),a=e.r(2122),o=e.r(97253);t.exports=function(e){if("number"!=typeof e||a(e)||!o(e))return!1;var t=n(e);return i(t)===t}},76304,(e,t,r)=>{"use strict";t.exports=function(e){return!!e&&("function"==typeof e||"object"==typeof e)}},41175,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={white:"#fff",gray:"#484848",grayLight:"#82888a",grayLighter:"#cacccd",grayLightest:"#f2f2f2",borderMedium:"#c4c4c4",border:"#dbdbdb",borderLight:"#e4e7e7",borderLighter:"#eceeee",borderBright:"#f4f5f5",primary:"#00a699",primaryShade_1:"#33dacd",primaryShade_2:"#66e2da",primaryShade_3:"#80e8e0",primaryShade_4:"#b2f1ec",primary_dark:"#008489",secondary:"#007a87",yellow:"#ffe8bc",yellow_dark:"#ffce71"};r.default={reactDates:{zIndex:0,border:{input:{border:0,borderTop:0,borderRight:0,borderBottom:"2px s
7olid transparent",borderLeft:0,outlineFocused:0,borderFocused:0,borderTopFocused:0,borderLeftFocused:0,borderBottomFocused:"2px solid ".concat(n.primary_dark),borderRightFocused:0,borderRadius:0},pickerInput:{borderWidth:1,borderStyle:"solid",borderRadius:2}},color:{core:n,disabled:n.grayLightest,background:n.white,backgroundDark:"#f2f2f2",backgroundFocused:n.white,border:"rgb(219, 219, 219)",text:n.gray,textDisabled:n.border,textFocused:"#007a87",placeholderText:"#757575",outside:{backgroundColor:n.white,backgroundColor_active:n.white,backgroundColor_hover:n.white,color:n.gray,color_active:n.gray,color_hover:n.gray},highlighted:{backgroundColor:n.yellow,backgroundColor_active:n.yellow_dark,backgroundColor_hover:n.yellow_dark,color:n.gray,color_active:n.gray,color_hover:n.gray},minimumNights:{backgroundColor:n.white,backgroundColor_active:n.white,backgroundColor_hover:n.white,borderColor:n.borderLighter,color:n.grayLighter,color_active:n.grayLighter,color_hover:n.grayLighter},hoveredSpan:{backgroundColor:n.primaryShade_4,backgroundColor_active:n.primaryShade_3,backgroundColor_hover:n.primaryShade_4,borderColor:n.primaryShade_3,borderColor_active:n.primaryShade_3,borderColor_hover:n.primaryShade_3,color:n.secondary,color_active:n.secondary,color_hover:n.secondary},selectedSpan:{backgroundColor:n.primaryShade_2,backgroundColor_active:n.primaryShade_1,backgroundColor_hover:n.primaryShade_1,borderColor:n.primaryShade_1,borderColor_active:n.primary,borderColor_hover:n.primary,color:n.white,color_active:n.white,color_hover:n.white},selected:{backgroundColor:n.primary,backgroundColor_active:n.primary,backgroundColor_hover:n.primary,borderColor:n.primary,borderColor_active:n.primary,borderColor_hover:n.primary,color:n.white,color_active:n.white,color_hover:n.white},blocked_calendar:{backgroundColor:n.grayLighter,backgroundColor_active:n.grayLighter,backgroundColor_hover:n.grayLighter,borderColor:n.grayLighter,borderColor_active:n.grayLighter,borderColor_hover:n.grayLighter,color:n.grayLight,color_active:n.grayLight,color_hover:n.grayLight},blocked_out_of_range:{backgroundColor:n.white,backgroundColor_active:n.white,backgroundColor_hover:n.white,borderColor:n.borderLight,borderColor_active:n.borderLight,borderColor_hover:n.borderLight,color:n.grayLighter,color_active:n.grayLighter,color_hover:n.grayLighter}},spacing:{dayPickerHorizontalPadding:9,captionPaddingTop:22,captionPaddingBottom:37,inputPadding:0,displayTextPaddingVertical:void 0,displayTextPaddingTop:11,displayTextPaddingBottom:9,displayTextPaddingHorizontal:void 0,displayTextPaddingLeft:11,displayTextPaddingRight:11,displayTextPaddingVertical_small:void 0,displayTextPaddingTop_small:7,displayTextPaddingBottom_small:5,displayTextPaddingHorizontal_small:void 0,displayTextPaddingLeft_small:7,displayTextPaddingRight_small:7},sizing:{inputWidth:130,inputWidth_small:97,arrowWidth:24},noScrollBarOnVerticalScrollable:!1,font:{size:14,captionSize:18,input:{size:19,weight:200,lineHeight:"24px",size_small:15,lineHeight_small:"18px",letterSpacing_small:"0.2px",styleDisabled:"italic"}}}}},9333,(e,t,r)=>{"use strict";var n=e.r(78509);Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){i.default.registerInterface(e),i.default.registerTheme(a.default)};var i=n(e.r(15808)),a=n(e.r(41175))},16240,(e,t,r)=>{"use strict";var n=e.r(78509);Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){(0,a.default)(i.default)};var i=n(e.r(34810)),a=n(e.r(9333))},45103,(e,t,r)=>{"use strict";(0,e.r(78509)(e.r(16240)).default)()},72040,(e,t,r)=>{e.r(45103)},71790,(e,t,r)=>{"use strict";t.exports=e.r(55669).setPrototypeOf||null},58114,(e,t,r)=>{"use strict";var n=e.r(7721)(),i=e.r(8775),a=e.r(51811);t.exports=function(){var e=a();return String.prototype.trim!==e&&(n?i(String.prototype,"trim",e,!0):i(String.prototype,"trim",e)),e}},6611,(e,t,r)=>{"use strict";var n=e.r(91735),i=e.r(47873),a=e.r(84388),o=e.r(23588),s=e.r(51811),l=e.r(58114),c=n(s()),u=function(e){return a(e),c(e)};i(u,{getPolyfill:s,implementation:o,shim:l}),t.exports=u},45291,(e,t,r)=>{"use strict";var n=e.r(558),i=n("%RegExp%"),a=e.r(40406),o=n("%parseInt%"),s=e.r(34787),l=e.r(12825),c=s("String.prototype.slice"),u=l(/^0b[01]+$/i),f=l(/^0o[0-7]+$/i),d=l(/^[-+]0x[0-9a-f]+$/i),p=l(new i("[…​￾]","g")),h=e.r(6611);t.exports=function e(t){if("string"!=typeof t)throw new a("Assertion failed: `argument` is not a String");if(u(t))return+o(c(t,2),2);if(f(t))return+o(c(t,2),8);if(p(t)||d(t))return NaN;var r=h(t);return r!==t?e(r):+t}},4815,(e,t,r)=>{"use strict";var n=e.r(558),i=e.r(40406),a=n("%Number%"),o=e.r(24899),s=e.r(32822),l=e.r(45291);t.exports=function(e){var t=o(e)?e:s(e,a);if("symbol"==typeof t)throw new i("Cannot convert a Symbol value to a number");if("bigint"==typeof t)throw new i("Conversion from 'BigInt' to 'number' is not allowed.");return"string"==typeof t?l(t):+t}},29090,(e,t,r)=>{"use strict";var n=e.r(54979);t.exports=function(e){return"bigint"==typeof e?e:n(e)}},73819,(e,t,r)=>{"use strict";var n=e.r(29090),i=e.r(40406);t.exports=function(e){if("number"!=typeof e&&"bigint"!=typeof e)throw new i("argument must be a Number or a BigInt");var t=e<0?-n(-e):n(e);return 0===t?0:t}},68776,(e,t,r)=>{"use strict";var n=e.r(4815),i=e.r(73819),a=e.r(2122),o=e.r(97253);t.exports=function(e){var t=n(e);return a(t)||0===t?0:o(t)?i(t):t}},23602,(e,t,r)=>{"use strict";var n=e.r(55214),i=e.r(68776);t.exports=function(e){var t=i(e);return t<=0?0:t>n?n:t}},87526,(e,t,r)=>{"use strict";var n=e.r(40406),i=e.r(76304),a=e.r(82282),o=e.r(23602);t.exports=function(e){if(!i(e))throw new n("Assertion failed: `obj` must be an Object");return o(a(e,"length"))}},82039,(e,t,r)=>{"use strict";var n=e.r(40406),i=e.r(55214),a=e.r(54625),o=e.r(4120),s=e.r(82282),l=e.r(72790),c=e.r(60761),u=e.r(87526),f=e.r(93019);t.exports=function e(t,r,d,p,h){arguments.length>5&&(m=arguments[5]);for(var m,v=p,y=0;y<d;){var g=f(y);if(!0===l(r,g)){var b=s(r,g);if(void 0!==m){if(arguments.length<=6)throw new n("Assertion failed: thisArg is required when mapperFunction is provided");b=a(m,arguments[6],[b,y,r])}var x=!1;if(h>0&&(x=c(b)),x){var _=u(b);v=e(t,b,_,v,h-1)}else{if(v>=i)throw new n("index too large");o(t,f(v),b),v+=1}}y+=1}return v}},77746,(e,t,r)=>{"use strict";var n=e.r(55669),i=e.r(84388);t.exports=function(e){return i(e),n(e)}},2848,(e,t,r)=>{"use strict";
7t.exports=e.r(77746)},34115,(e,t,r)=>{"use strict";var n=e.r(65650),i=e.r(82039),a=e.r(82282),o=e.r(68776),s=e.r(23602),l=e.r(2848);t.exports=function(){var e=l(this),t=s(a(e,"length")),r=1;arguments.length>0&&void 0!==arguments[0]&&(r=o(arguments[0]));var c=n(e,0);return i(c,e,t,0,r),c}},66846,(e,t,r)=>{"use strict";var n=e.r(34115);t.exports=function(){return Array.prototype.flat||n}},1076,(e,t,r)=>{"use strict";var n=e.r(32305),i="function"==typeof Symbol&&"symbol"==typeof Symbol.unscopables,a=i&&Array.prototype[Symbol.unscopables],o=TypeError;t.exports=function(e){if("string"!=typeof e||!e)throw new o("method must be a non-empty string");if(!n(Array.prototype,e))throw new o("method must be on Array.prototype");i&&a&&(a[e]=!0)}},40573,(e,t,r)=>{"use strict";var n=e.r(47873),i=e.r(1076),a=e.r(66846);t.exports=function(){var e=a();return n(Array.prototype,{flat:e},{flat:function(){return Array.prototype.flat!==e}}),i("flat"),e}},93901,(e,t,r)=>{"use strict";var n=e.r(47873),i=e.r(91735),a=e.r(34115),o=e.r(66846),s=o(),l=e.r(40573),c=i(s);n(c,{getPolyfill:o,implementation:a,shim:l}),t.exports=c},69340,(e,t,r)=>{"use strict";var n=e.r(47873),i=e.r(21036),a="__ global cache key __";"function"==typeof Symbol&&i(Symbol("foo"))&&"function"==typeof Symbol.for&&(a=Symbol.for(a));var o=function(){return!0},s=function(){if(!e.g[a]){var t={};t[a]={};var r={};r[a]=o,n(e.g,t,r)}return e.g[a]},l=s(),c=function(e){return i(e)?Symbol.prototype.valueOf.call(e):typeof e+" | "+String(e)},u=function(e){if(null!==e&&("object"==typeof e||"function"==typeof e))throw TypeError("key must not be an object")},f={clear:function(){delete e.g[a],l=s()},delete:function(e){return u(e),delete l[c(e)],!f.has(e)},get:function(e){return u(e),l[c(e)]},has:function(e){return u(e),c(e)in l},set:function(e,t){u(e);var r=c(e),i={};i[r]=t;var a={};return a[r]=o,n(l,i,a),f.has(e)},setIfMissingThenGet:function(e,t){if(f.has(e))return f.get(e);var r=t();return f.set(e,r),r}};t.exports=f},12139,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.MAX_SPECIFICITY=r.GLOBAL_CACHE_KEY=void 0,r.GLOBAL_CACHE_KEY="reactWithStylesInterfaceCSS",r.MAX_SPECIFICITY=20},89883,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){var r=e.length>0?"".concat(e,"__"):"";return"".concat(r).concat(t)}},39129,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=function(e){for(var t=[],r=!1,n={},i=0;i<e.length;i++){var a=e[i];a&&("string"==typeof a?t.push(a):(Object.assign(n,a),r=!0))}return{classNames:t,hasInlineStyles:r,inlineStyles:n}}},22716,(e,t,r)=>{"use strict";var n=e.r(78509);Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e.r(93901)),a=n(e.r(69340)),o=e.r(12139),s=n(e.r(89883)),l=n(e.r(39129));r.default={create:function(e){var t={},r=Object.keys(e),n=(a.default.get(o.GLOBAL_CACHE_KEY)||{}).namespace,i=void 0===n?"":n;return r.forEach(function(e){var r=(0,s.default)(i,e);t[e]=r}),t},resolve:function(e){var t=(0,i.default)(e,1/0),r=(0,l.default)(t),n=r.classNames,a=r.hasInlineStyles,o=r.inlineStyles,s={className:n.map(function(e,t){return"".concat(e," ").concat(e,"_").concat(t+1)}).join(" ")};return a&&(s.style=o),s}}},34810,(e,t,r)=>{t.exports=e.r(22716).default}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.