1"use strict";(self.rspackChunkryfma=self.rspackChunkryfma||[]).push([[21527],{215(e,t,r){r.r(t),r.d(t,{default:()=>W});var n=r(74848),o=r(70111),i=r(93621),a=r(75494),s=r(18987),l=r(54953),c=r(21540),u=r(90537),d=r(92368),p=r(38036),m=r(38784);let f=(0,m.J1)` 2 mutation login($username: String, $email: String, $password: HashedPassword!) { 3 loginWithPassword(username: $username, email: $email, password: $password) { 4 id 5 token 6 tokenExpires 7 } 8 } 9`;var h=r(35649),g=r(12487),v=r(62301),b=r(77898),y=r(95723),w=r(68093),x=r(7358),k=r(48972),j=r(54553),A=r(31613),C=r(92027),N=r(92412),I=r(85137),$=r(59302),_=r(8450),P=r(43119),z=r(12625),U=r(52636);let E="https://ryfma.com/login",S=e=>{window.ReactGA?.event({category:"User",action:e,label:e,value:1})},W=function({referer:e="/",isMinimal:t=!1}){let[r]=(0,c.Bd)(["login","form","notif_public"]),m=(0,u.Zp)(),[W]=(0,d.ok)(),{isMobile:T,staticContext:B}=(0,I.t0)(),M=(0,o.m)(),{token:R,signin:D}=(0,I.As)(),[K,O]=(0,l.useState)(""),[L,Z]=(0,l.useState)(""),[F,H]=(0,l.useState)(!1),[q,V]=(0,l.useState)(!1),G=W.get("referer")||e,J=`${E}?referer=${encodeURIComponent(G)}`,Q=`${E}?provider=yandex&referer=${encodeURIComponent(G)}`,Y=async({token:e,tokenExpires:t})=>{$.A.setItem(N.h0,e),$.A.setItem(N.k6,t);let n={secure:!0,expires:new Date(parseInt(t,10))};s.A.set("rfm_token",e,n),s.A.set("rfm_token_expires",t,n);try{let{error:t,data:n}=await M.query({query:v.A,fetchPolicy:"network-only"});if(t)return void x.Notification.error(t.message);if(!n?.me)throw $.A.removeItem(N.h0),$.A.removeItem(N.k6),s.A.remove("rfm_token"),s.A.remove("rfm_token_expires"),Error("Ðе ÑдалоÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ Ð´Ð°Ð½Ð½Ñе полÑзоваÑелÑ, попÑобÑйÑе еÑÑ Ñаз");x.Notification.success(r("notif_public:logged")),D({currUser:n.me,token:e}),(0,w.E7)()&&(0,a.Ay)("31738176","firstPartyParams",{email:n.me.email,first_name:n.me.profile?.name,last_name:n.me.profile?.lastname||""}),m(G)}catch(e){x.Notification.error(e)}finally{V(!1)}},[X]=(0,i.n)(f,{onCompleted:e=>Y({token:e.loginWithPassword.token,tokenExpires:e.loginWithPassword.tokenExpires})}),[ee]=(0,i.n)(h.A,{onCompleted:e=>Y({token:e.loginWithVK.token,tokenExpires:e.loginWithVK.tokenExpires})}),[et]=(0,i.n)(g.A,{onCompleted:e=>Y({token:e.loginWithYandex.token,tokenExpires:e.loginWithYandex.tokenExpires})});if(R)return B?(B.status=301,B.redirectTo=G,null):(0,n.jsx)(p.C5,{to:G});let er=async e=>{if(e.preventDefault(),/[а-ÑÐ-Я]/gi.test(K)){x.Notification.error("ÐÐ¼Ñ Ð¿Ð¾Ð»ÑзоваÑÐµÐ»Ñ Ð¸Ð»Ð¸ email Ð´Ð¾Ð»Ð¶Ð½Ñ ÑодеÑжаÑÑ ÑолÑко английÑкие ÑимволÑ"),H(!0);return}let t=K.trim().toLowerCase().replace(/\s/gi,"");if(!L||!t)return void x.Notification.error("ÐведиÑе Ð¸Ð¼Ñ Ð¸ паÑолÑ");let r=t.includes("@"),n={username:r?null:t,email:r?t:null,password:(0,_.A)(L)};V(!0);try{await X({variables:n}),S(`LoginWithEmail: ${t}`)}catch(e){x.Notification.error(e),V(!1)}},en=async e=>{if(e.error)return void x.Notification.error(e.error_description||e.error);let t=$.A.getItem("Meteor.referralToken")||"";try{await ee({variables:{...e,invitedByUserId:t}}),S("LoginWithVK")}catch(e){x.Notification.error(e)}},eo=async e=>{if(e.error)return void x.Notification.error(e.error_description||e.error);let t=$.A.getItem("Meteor.referralToken")||"";try{await et({variables:{code:e.code,invitedByUserId:t}}),S("LoginWithYandex")}catch(e){x.Notification.error(e)}},ei="flex items-center justify-center space-x-1 text-sm font-semibold w-full rounded-lg p-2 border hover:opacity-90";return(0,n.jsxs)("div",{className:`flex ${t||T?"h-full":"h-screen"}`,children:[(0,n.jsx)(y.default,{schema:"Webpage",title:r("seoTitle"),description:r("seoDesc"),path:"login",contentType:"website",noIndex:!0,noFollow:!0}),(0,n.jsx)(U.A,{isMinimal:t}),(0,n.jsxs)("div",{className:"mx-auto flex max-w-md flex-1 flex-col justify-center",children:[(0,n.jsx)("div",{className:"mt-6 mb-8 flex justify-center md:hidden",children:(0,n.jsx)(b.A,{})}),(0,n.jsx)("h1",{className:"mb-4 text-2xl font-bold",children:r("header")}),(0,n.jsxs)("div",{className:"flex flex-col items-center space-y-2 md:flex-row md:justify-between md:space-y-0 md:space-x-2",children:[(0,n.jsx)(k.A,{clientId:"4957795",fields:"name,email,picture",scope:"public_profile,email,wall",callback:en,cssClass:"w-full",text:(0,n.jsxs)("span",{className:`${ei} border-none bg-[#07f] py-2 text-white`,children:[(0,n.jsx)(P.A,{}),(0,n.jsx)("span",{className:"md:hidden xl:inline-block",children:"ÐойÑи ÑеÑез"}),(0,n.jsx)("span",{children:"ÐÐ"})]}),redirectUri:J}),(0,n.jsx)(k.A,{provider:"yandex",storageKey:"yandexReactLogin",clientId:N.Ot,scope:"login:email login:info login:avatar",callback:eo,cssClass:"w-full",text:(0,n.jsxs)("span",{className:`${ei} border-none bg-[#FC3F1D] py-2 text-white`,children:[(0,n.jsx)(z.A,{}),(0,n.jsx)("span",{className:"md:hidden xl:inline-block",children:"ÐойÑи ÑеÑез"}),(0,n.jsx)("span",{children:"ЯндекÑ"})]}),redirectUri:Q})]}),(0,n.jsx)("hr",{"data-after":r("common:or"),className:"mt-6 mb-4 overflow-visible border-t border-gray-200 text-center after:relative after:-top-[14px] after:inline-block after:bg-white after:px-4 after:content-[attr(data-after)]"}),(0,n.jsxs)("form",{onSubmit:er,children:[(0,n.jsxs)("div",{className:"relative mb-4 grid w-full items-center gap-2",children:[(0,n.jsx)(C.J,{htmlFor:"emailUsername",children:r("form:emailUsername")}),(0,n.jsx)(A.p,{placeholder:r("form:emailUsername"),value:K,name:"emailUsername",type:"text",autoComplete:"username",required:!0,onChange:e=>{O(e.target.value),H(!1)}})]}),(0,n.jsxs)("div",{className:"relative mb-4 grid w-full items-center gap-2",children:[(0,n.jsx)(C.J,{htmlFor:"password",children:r("form:password")}),(0,n.jsx)(A.p,{placeholder:r("form:password"),value:L,name:"password",type:"password",autoComplete:"current-password",required:!0,onChange:e=>Z(e.target.value)})]}),(0,n.jsx)(j.$,{className:"mt-4 w-full",type:"submit",variant:"default",size:"lg",disabled:q||F,children:q?r("common:loading"):r("form:signIn")}),(0,n.jsxs)("div",{className:"mt-6 flex items-center justify-between text-center",children:[(0,n.jsx)(d.N_,{to:"/recover-password",className:"font-bold",children:r("form:forgotPassword")}),(0,n.jsxs)("div",{children:[r("form:noAccount")," ",(0,n.jsx)(d.N_,{to:G?`/register?referer=${G}`:"/register",rel:"noopener nofollow",className:"font-bold",children:r("form:signUp")})]})]})]})]})]})}},95723(e,t,r){r.r(t);var n=r(74848),o=r(14855),i=r(54953),a=r(85902),s=r(21540),l=r(37682);let c=/([23456789ABCDEFGHJKLMNPQRSTWXYZabcdefghijkmnopqrstuvwxyz]{17})/,u=(0,i.memo)(({author:e,authorName:t,category:r,contentType:i,description:u,first_name:d,gender:p,image:m,ISBN:f,last_name:h,noFollow:g,noIndex:v,path:b,published:y,schema:w,tags:x,title:k,twitter:j,updated:A,username:C,year:N,searchParams:I,ogTitle:$,ogDescription:_})=>{let{i18n:P}=(0,s.Bd)(),z=P.language||"ru",U=b.split("?"),E=b;U.length>1&&(E=U[0]);let S=o.Meteor.absoluteUrl((0,l.A)(b).split(c).map((e,t)=>t%2==1?e:e.toLowerCase()).join("")).replace(/\/$/,"").replace(/[^\p{ASCII}]+/giu,e=>encodeURIComponent(e)),W=S.includes("/p/")||S.includes("/u/")||S.includes("/b/"),T=w||"WebPage",B="website: https://ogp.me/ns/website#";S.includes("/p/")?(T="Article",B="article: https://ogp.me/ns/article#"):S.includes("/u/")?(T="ProfilePage",B="profile: https://ogp.me/ns/profile#"):S.includes("/b/")&&(T="Book",B="book: https://ogp.me/ns/book#");let M={prefix:`og: https://ogp.me/ns# ${B} fb: https://ogp.me/ns/fb# ya: https://webmaster.yandex.ru/vocabularies/`};return I?.hl&&(M={...M,lang:z}),W||(M.itemtype=`https://schema.org/${T}`),(0,n.jsx)(a.mg,{htmlAttributes:M,title:k,link:(({path:e,author:t})=>{let r=[{rel:"canonical",href:e}];return t&&r.push({rel:"author",href:t}),r})({path:S,author:e}),meta:(({author:e,authorName:t,category:r,contentType:n,description:o,first_name:i,gender:a,image:s,ISBN:l,last_name:c,noFollow:u,noIndex:d,ogDescription:p,ogTitle:m,published:f,tags:h,title:g,twitter:v,updated:b,url:y,username:w,year:x})=>{let k=(e,t)=>{if(e.length<=t)return e;let r=e.substring(0,t),n=r.lastIndexOf(" ");return n>0?r.substring(0,n):r},j=o?k(o.replace(/<p>|<\/p>|<code>|<\/code>|"/g,"").replace(/<br(\s)?\/>/g," ").replace(/\r?\n/g," ").replace(/\s+/g," ").trim(),289):`${i} ${c}`,A=p?k(p.replace(/<p>|<\/p>|<code>|<\/code>|"/g,"").replace(/<br(\s)?\/>/g," ").replace(/\r?\n/g," ").replace(/\s+/g," ").trim(),289):void 0,C=s||"https://cdn.ryfma.com/defaults/icons/open-graph-social-2.jpg",N=[{itemProp:"name",content:g},{itemProp:"title",content:g},{name:"title",content:g},{itemProp:"description",content:j},{name:"description",content:j},{name:"twitter:card",content:"summary_large_image"},{property:"twitter:site",content:"@Ryfma"},{property:"twitter:title",content:`${m||g}`},{property:"twitter:url",content:`${y}`},{property:"twitter:description",content:A||j},{property:"twitter:creator",content:`@${v||"ryfma"}`},{property:"og:title",content:`${m||g}`},{property:"og:type",content:n},{property:"og:url",content:y},{property:"og:description",content:A||j},{property:"og:site_name",content:"Ryfma"},{property:"fb:app_id",content:"1127643753917982"}];if(C&&(N=[...N,{itemProp:"image",content:C},{itemProp:"image_src",content:C},{property:"twitter:image",content:C},{property:"og:image",content:C},{property:"og:image:url",content:C},{property:"og:image:secure_url",content:C},{property:"og:image:alt",content:g}]),"article"===n){if(N.push({property:"article:publisher",content:"https://www.facebook.com/ryfma"}),s&&(N.push({property:"og:image:width",content:1200}),N.push({property:"og:image:height",content:442})),e&&(N.push({property:"article:author",content:e}),N.push({property:"author",content:t})),f&&N.push({property:"article:published_time",content:f}),b&&N.push({property:"article:modified_time",content:b}),r&&N.push({property:"article:section",content:r}),h)try{for(let e of h.split(","))e&&N.push({property:"article:tag",content:e.trim()})}catch(e){N.push({property:"article:tag",content:h})}}else if("book"===n){if(s&&(N.push({property:"og:image:width",content:1200}),N.push({property:"og:image:height",content:630})),e&&N.push({property:"book:author",content:e}),l&&N.push({property:"book:isbn",content:l}),x&&N.push({property:"book:release_date",content:x}),h)try{for(let e of h.split(","))N.push({property:"book:tag",content:e.trim()})}catch(e){N.push({property:"article:tag",content:h})}}else"website"===n?s&&(N.push({property:"og:image:width",content:1200}),N.push({property:"og:image:height",content:630})):"profile"===n&&(s&&(N.push({property:"og:image:width",content:1200}),N.push({property:"og:image:height",content:630})),i&&N.push({property:"profile:first_name",content:i}),c&&N.push({property:"profile:last_name",content:c}),w&&N.push({property:"profile:username",content:w}),a&&N.push({property:"profile:gender",content:a}));return d&&N.push({name:"robots",content:"noindex"}),u&&N.push({name:"robots",content:"nofollow"}),d||(N=[...N,{name:"robots",content:"index,follow,max-snippet:-1,max-video-preview:-1,max-image-preview:large"}]),N})({author:e,authorName:t,category:r,contentType:i,description:u,first_name:d,gender:p,image:m,ISBN:f,last_name:h,noFollow:g,noIndex:v,ogDescription:_,ogTitle:$,published:y,tags:x,title:k,twitter:j,updated:A,url:S,username:C,year:N})},E)});r.d(t,{},{default:u})},7358(e,t,r){r.d(t,{Notification:()=>d,A:()=>p});var n=r(74848),o=r(78740),i=r(5338);let a="notification-wrapper";var s=r(54953),l=r(38445);let c=function({type:e,text:t,timeout:r,color:o}
9){let[i,a]=(0,s.useState)(l.lZ),c=e=>{a(`${l.lZ} ${e}`)};(0,s.useEffect)(()=>{setTimeout(()=>{c(l.QI)},100),-1!==r&&setTimeout(()=>{c(l.pf)},r)},[]);let u="custom"===e&&o?{backgroundColor:o.background,color:o.text}:{};return(0,n.jsx)("div",{className:i,style:u,children:(0,n.jsx)("span",{className:(()=>{switch(e){case"success":return`${l.ZI} ${l.kz}`;case"error":return`${l.ZI} ${l.Zy}`;case"warning":return`${l.ZI} ${l.tV}`;case"info":return`${l.ZI} ${l.zP}`;case"custom":return`${l.ZI} ${l.yl}`;default:return l.ZI}})(),children:t})})},u=(e="",t="",r=0,o={})=>{let s=document.getElementById(a);if(s&&!s.hasChildNodes()){let s=r||5e3;return((e="",t="",r=0,o={})=>{let s=document.getElementById(a);(0,i.createRoot)(s).render((0,n.jsx)(c,{text:e,timeout:r,type:t,color:o}))})(e,t,s,o),-1!==s&&(setTimeout(()=>{let e,t;e=document.getElementById(a),t=(0,i.createRoot)(e),e&&t.unmount()},s+300),!0)}return!1},d={error:e=>{e?o.K.is(e)?e.errors[0]?u(e.errors[0].message,"error",1e4):e.message?u(e.message,"error",1e4):u(String(e),"error",1e4):e.message?u(e.message,"error",1e4):u(e,"error",1e4):u("An unknown error occured","error",5e3)},success:e=>{u(e,"success",3e3)},warning:e=>{u(e,"warning",6e3)}},p=function(){return(0,n.jsx)("div",{id:"notification-wrapper"})}},54553(e,t,r){var n=r(74848),o=r(6142),i=r(86036),a=r(26073);let s=(0,i.F)("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-colors outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function l({className:e,variant:t="default",size:r="default",render:i,...c}){return(0,n.jsx)(o.$,{"data-slot":"button","data-variant":t,"data-size":r,className:(0,a.cn)(s({variant:t,size:r,className:e})),render:i,...c})}r.d(t,{$:()=>l},{r:s})},85137(e,t,r){r.d(t,{As:()=>n.A,d7:()=>i,t0:()=>a.t,yT:()=>c});var n=r(84077),o=r(54953);function i(e,t){let[r,n]=(0,o.useState)(e);return(0,o.useEffect)(()=>{let r=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(r)}},[e,t]),r}var a=r(91602),s=r(18987),l=r(14855);function c(e){let{currUser:t}=(0,n.A)(),{readCookie:i,readWebPush:c,setReadWebPush:u}=(0,a.t)(),d="u">typeof window&&"Notification"in window&&"PushManager"in window,p=async()=>{if(!t)return;let n=l.Meteor.settings.public.vapid.publicKey,o=null;if(void 0!==navigator.serviceWorker){try{if(!(o=await navigator.serviceWorker.ready).pushManager){window.ReactGA&&window.ReactGA.event({category:"User",action:"WebPushUnsupported",label:`NoWebPush: ${t._id}, browser: ${navigator.userAgent||navigator.vendor||("string"==typeof window.opera?window.opera:"")}`,value:1}),u(2),s.A.set("webPushSubscribed","2",{expires:30,path:"/"});return}}catch(e){console.log(e)}let i=null;try{i=await o.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(e){let t="=".repeat((4-e.length%4)%4),r=(e+t).replace(/-/g,"+").replace(/_/g,"/"),n=window.atob(r),o=new Uint8Array(n.length);for(let e=0;e<n.length;e+=1)o[e]=n.charCodeAt(e);return o}(n)})}catch(e){console.log(e)}if(i)try{let n=(await r.e(26905).then(r.bind(r,78112))).default;await fetch("/api/push/subscribe",{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({_id:t._id,guid:n(e?.isMobile,e?.isTablet),type:1,subscription:i})}),u(2),s.A.set("webPushSubscribed","2",{expires:365,path:"/"})}catch(e){console.log(e)}}};return(0,o.useEffect)(()=>{d&&i&&p()},[]),{isShowPushBanner:d&&2!==c,handleWebPushSubscribe:p,hideWebPushSubsribe:()=>{u(2),s.A.set("webPushSubscribed","2",{expires:30,path:"/"})}}}},43119(e,t,r){var n=r(74848);r.d(t,{},{A:({color:e="currentColor",size:t=24,...r})=>(0,n.jsx)("svg",{xmlns:"https://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...r,children:(0,n.jsx)("path",{xmlns:"https://www.w3.org/2000/svg",d:"m19.915 13.028c-.388-.49-.277-.708 0-1.146.005-.005 3.208-4.431 3.538-5.932l.002-.001c.164-.547 0-.949-.793-.949h-2.624c-.668 0-.976.345-1.141.731 0 0-1.336 3.198-3.226 5.271-.61.599-.892.791-1.225.791-.164 0-.419-.192-.419-.739v-5.105c0-.656-.187-.949-.74-.949h-4.126c-.419 0-.668.306-.668.591 0 .622.945.765 1.043 2.515v3.797c0 .832-.151.985-.486.985-.892 0-3.057-3.211-4.34-6.886-.259-.713-.512-1.001-1.185-1.001h-2.625c-.749 0-.9.345-.9.731 0 .682.892 4.073 4.148 8.553 2.17 3.058 5.226 4.715 8.006 4.715 1.671 0 1.875-.368 1.875-1.001 0-2.922-.151-3.198.686-3.198.388 0 1.056.192 2.616 1.667 1.783 1.749 2.076 2.532 3.074 2.532h2.624c.748 0 1.127-.368.909-1.094-.499-1.527-3.871-4.668-4.023-4.878z"})})})},37682(e,t,r){r.d(t,{},{A:function(e){let t=[],r=0;for(;r<e.length;)if("%"===e[r]&&r+2<e.length){let n=[],o=r;for(;"%"===e[o]&&o+2<e.length;){let t=e.slice(o+1,o+3);if(/^[0-9A-Fa-f]{2}$/.test(t))n.push(parseInt(t,16)),o+=3;else break}if(0===n.length){t.push(e[r]),r+=1;continue}let i=n.map(e=>`%${e.toString(16).padStart(2,"0").toUpperCase()}`).join("");try{t.push(decodeURIComponent(i))}catch{}r=o}else t.push(e[r]),r+=1;return t.join("")}})},38445(e){e.exports={lZ:"YwKUAz",QI:"_6ejKQA",pf:"H5gAyO",ZI:"_2MhWIw",kz:"kqwemF",Zy:"jU5-ao",tV:"ijTAHA",zP:"_71Qsrc",yl:"Xrg8xu"}},70111(e,t,r){var n=r(54953),o=r(70775),i=r(6741);
9function a(e){let t=n.useContext((0,i.l)()),r=e||t.client;return(0,o.V1)(!!r,30),r}r.d(t,{m:()=>a})},93621(e,t,r){r.d(t,{n:()=>c});var n=r(15381),o=r(54953),i=r(52404),a=r(2928);let s=r(16507).S?o.useLayoutEffect:o.useEffect;var l=r(70111);let c=function(e,t){let r=(0,l.m)(t?.client),[c,d]=o.useState(()=>u(r)),p=o.useRef({result:c,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});s(()=>{Object.assign(p.current,{client:r,options:t,mutation:e})});let m=o.useCallback((e={})=>{let{options:t,mutation:r}=p.current,o={...t,mutation:r},s=e.client||p.current.client,l="function"==typeof e.context?e.context(t?.context):e.context;!p.current.result.loading&&p.current.isMounted&&d(p.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:s});let c=++p.current.mutationId,u=(0,i.l)(o,{...e,context:l});return(0,a.X)(s.mutate(u).then(t=>{let{data:r,error:o}=t,i=e.onError||p.current.options?.onError;if(o&&i&&i(o,u),c===p.current.mutationId){let e={called:!0,loading:!1,data:r,error:o,client:s};p.current.isMounted&&!(0,n.L)(p.current.result,e)&&d(p.current.result=e)}let a=e.onCompleted||p.current.options?.onCompleted;return o||a?.(t.data,u),t},t=>{if(c===p.current.mutationId&&p.current.isMounted){let e={loading:!1,error:t,data:void 0,called:!0,client:s};(0,n.L)(p.current.result,e)||d(p.current.result=e)}let r=e.onError||p.current.options?.onError;throw r&&r(t,u),t}))},[]),f=o.useCallback(()=>{if(p.current.isMounted){let e=u(p.current.client);Object.assign(p.current,{mutationId:0,result:e}),d(e)}},[]);return o.useEffect(()=>{let e=p.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[m,{reset:f,...c}]};function u(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}},16507(e,t,r){let n="function"==typeof(0,r(62735).n)(()=>window.document.createElement);r.d(t,{},{S:n})},6142(e,t,r){var n=r(54953),o=r(25078),i=r(21728);let a=n.forwardRef(function(e,t){let{render:r,className:n,disabled:a=!1,focusableWhenDisabled:s=!1,nativeButton:l=!0,style:c,...u}=e,{getButtonProps:d,buttonRef:p}=(0,o.s)({disabled:a,focusableWhenDisabled:s,native:l});return(0,i.o)("button",e,{state:{disabled:a},ref:[t,p],props:[u,d]})});r.d(t,{},{$:a})},24579(e,t,r){var n=r(99211),o=r(54953);let i=o.createContext(void 0);function a(e=!1){let t=o.useContext(i);if(void 0===t&&!e)throw Error((0,n.A)(16));return t}r.d(t,{G:()=>a},{H:i})},25078(e,t,r){r.d(t,{s:()=>u});var n=r(54953),o=r(86635),i=r(74618),a=r(7456),s=r(82221),l=r(24579),c=r(84069);function u(e={}){let{disabled:t=!1,focusableWhenDisabled:r,tabIndex:p=0,native:m=!0,composite:f}=e,h=n.useRef(null),g=(0,l.G)(!0),v=f??void 0!==g,{props:b}=function(e){let{focusableWhenDisabled:t,disabled:r,composite:o=!1,tabIndex:i=0,isNativeButton:a}=e,s=o&&!1!==t,l=o&&!1===t;return{props:n.useMemo(()=>{let e={onKeyDown(e){r&&t&&"Tab"!==e.key&&e.preventDefault()}};return o||(e.tabIndex=i,!a&&r&&(e.tabIndex=t?i:-1)),(a&&(t||s)||!a&&r)&&(e["aria-disabled"]=r),a&&(!t||l)&&(e.disabled=r),e},[o,r,t,s,l,a,i])}}({focusableWhenDisabled:r,disabled:t,composite:v,tabIndex:p,isNativeButton:m}),y=n.useCallback(()=>{let e=h.current;d(e)&&v&&t&&void 0===b.disabled&&e.disabled&&(e.disabled=!1)},[t,b.disabled,v]);return(0,a.g)(y,[y]),{getButtonProps:n.useCallback((e={})=>{let{onClick:r,onMouseDown:n,onKeyUp:i,onKeyDown:a,onPointerDown:l,...u}=e;return(0,s.v6)({onClick(e){t?e.preventDefault():r?.(e)},onMouseDown(e){t||n?.(e)},onKeyDown(e){var r;if(t||((0,s.PT)(e),a?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,i=e.currentTarget,l=d(i),u=!m&&(r=i,(0,o.sb)(r)&&"A"===r.tagName&&!!r.href),p=n&&(m?l:!u),f="Enter"===e.key,h=" "===e.key,g=i.getAttribute("role"),b=g?.startsWith("menuitem")||"option"===g||"gridcell"===g;if(n&&v&&h){if(e.defaultPrevented&&b)return;e.preventDefault(),(!m||l)&&(e.preventBaseUIHandler(),(0,c.B)(i,e));return}if(!p||m||!h&&!f){n&&u&&h&&e.preventDefault();return}!e.defaultPrevented&&(e.preventDefault(),f&&(e.preventBaseUIHandler(),(0,c.B)(i,e)))},onKeyUp(e){t||(((0,s.PT)(e),i?.(e),e.target===e.currentTarget&&m&&v&&d(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||m||v||e.defaultPrevented||" "!==e.key||(e.preventBaseUIHandler(),(0,c.B)(e.currentTarget,e))))},onPointerDown(e){t?e.preventDefault():l?.(e)}},m?{type:"button"}:{role:"button"},b,u)},[t,b,v,m]),buttonRef:(0,i.K)(e=>{h.current=e,y()})}}function d(e){return(0,o.sb)(e)&&"BUTTON"===e.tagName}},84069(e,t,r){var n=r(86635);function o(e,t,{detail:r=0}={}){e.dispatchEvent(new((0,n.zk)(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}r.d(t,{B:()=>o})},86036(e,t,r){r.d(t,{F:()=>i});let n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=function(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}(e))&&(n&&(n+=" "),n+=t);return n},i=(e,t)=>r=>{var i;if((null==t?void 0:t.variants)==null)return o(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],o=null==s?void 0:s[e];if(null===t)return null;let i=n(t)||n(o);return a[e][i]}),c=r&&Object.entries(r).reduce((e,t)=>
9{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return o(e,l,null==t||null==(i=t.compoundVariants)?void 0:i.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...c}[t]):({...s,...c})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},18987(e,t,r){function n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)"__proto__"!==n&&(e[n]=r[n])}return e}var o=function e(t,r){function o(e,o,i){if("u">typeof document){"number"==typeof(i=n({},r,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in i)i[s]&&(a+="; "+s,!0!==i[s]&&(a+="="+i[s].split(";")[0]));return document.cookie=e+"="+t.write(o,e)+a}}return Object.create({set:o,get:function(e){if("u">typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},o=0;o<r.length;o++){var i=r[o].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(s in n||(n[s]=t.read(a,s)),e===s)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){o(e,"",n({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,n({},this.attributes,t))},withConverter:function(t){return e(n({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});r.d(t,{A:()=>o})},52316(e,t,r){r.d(t,{A:()=>l});var n=r(54953);let o=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},a=(0,n.createContext)({}),s=(0,n.forwardRef)(({color:e,size:t,width:r,height:s,strokeWidth:l,absoluteStrokeWidth:c,nonScalingStroke:u,className:d="",children:p,iconNode:m=[],icon:f={node:m,aliases:[],size:24},...h},g)=>{let{size:v=24,strokeWidth:b=2,absoluteStrokeWidth:y=!1,nonScalingStroke:w=!1,color:x="currentColor",className:k=""}=(0,n.useContext)(a)??{},j=!!p||(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(h),[A,C,N=[]]=function(e,t={}){return function(e,t={}){let r=t.attributeNames??{},n=e=>r[e]??e,a=e.size??e.width??i.width,s=e.size??e.height??i.height,l=e.aliases?.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>`lucide-${e}`)??[],c=[...e.name?[`lucide-${e.name}`]:[],...l],u=t.className?.split(" ").filter(Boolean)??[],d=!1===t.includeDefaultClasses?o(...u):o("lucide",...c,...u),p=t.absoluteStrokeWidth?Number(t.strokeWidth??i["stroke-width"])*Number(e.size??e.width??i.width)/Number(t.size??t.width??i.width):t.strokeWidth??i["stroke-width"];return["svg",{...Object.entries(i).reduce((e,[t,r])=>(e[n(t)]=r,e),{}),..."color"in t&&t.color&&{[n("stroke")]:t.color},..."size"in t&&null!=t.size&&{[n("width")]:t.size,[n("height")]:t.size},..."width"in t&&null!=t.width&&{[n("width")]:t.width},..."height"in t&&null!=t.height&&{[n("height")]:t.height},[n("stroke-width")]:p,...d&&{[n("class")]:d},[n("viewBox")]:`0 0 ${a} ${s}`,...!1===t.hasA11yProp?{[n("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(e=>{let[r,o,i]=e,a=t.nonScalingStroke?{[n("vector-effect")]:"non-scaling-stroke",...o}:o;return i?[r,a,i]:[r,a]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(f,{color:e??x,width:r??t??v,height:s??t??v,strokeWidth:l??b,absoluteStrokeWidth:c??y,nonScalingStroke:u??w,className:o(k,d),hasA11yProp:j,attributes:h});return(0,n.createElement)(A,{ref:g,...C},[...N.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(p)?p:[p]])});function l(e,t=[],r=[]){let o,i="string"==typeof e?function(e,t,r=[]){if(null==t)throw Error("[lucide]: iconNode is required when icon name is used");return{name:e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),size:24,node:t,...r.length>0?{aliases:r}:{}}}(e,t,r):e,a=(0,n.forwardRef)(({className:e,...t},r)=>(0,n.createElement)(s,{ref:r,icon:i,className:e,...t}));return i.name&&(a.displayName=(o=(e=>{let t="",r=!1;for(let n of e){if("-"===n||"_"===n||n<=" "){r=t.length>0;continue}0===t.length?t+=n.toLowerCase():t+=r?n.toUpperCase():n,r=!1}return t})(i.name)).charAt(0).toUpperCase()+o.slice(1)),a}},65262(e,t,r){var n=r(52316);let o={name:"eye-off",size:24,node:[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};o.node;let i=(0,n.A)(o);r.d(t,{},{A:i})},15426(e,t,r){var n=r(52316);let o={name:"eye",size:24,node:[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};o.node;let i=(0,n.A)(o);r.d(t,{},{A:i})}}]);
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.