1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4237],{52043:function(t){var e;e=function(){"use strict";var t="millisecond",e="second",r="minute",i="hour",n="week",s="month",o="quarter",a="year",u="date",c="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h=function(t,e,r){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(r)+t},f="en",m={};m[f]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||"th")+"]"}};var p="$isDayjsObject",g=function(t){return t instanceof w||!(!t||!t[p])},v=function t(e,r,i){var n;if(!e)return f;if("string"==typeof e){var s=e.toLowerCase();m[s]&&(n=s),r&&(m[s]=r,n=s);var o=e.split("-");if(!n&&o.length>1)return t(o[0])}else{var a=e.name;m[a]=e,n=a}return!i&&n&&(f=n),n||!i&&f},y=function(t,e){if(g(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new w(r)},b={s:h,z:function(t){var e=-t.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+h(Math.floor(r/60),2,"0")+":"+h(r%60,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var i=12*(r.year()-e.year())+(r.month()-e.month()),n=e.clone().add(i,s),o=r-n<0,a=e.clone().add(i+(o?-1:1),s);return+(-(i+(r-n)/(o?n-a:a-n))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return({M:s,y:a,w:n,d:"day",D:u,h:i,m:r,s:e,ms:t,Q:o})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};b.l=v,b.i=g,b.w=function(t,e){return y(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var w=function(){function h(t){this.$L=v(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var f=h.prototype;return f.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(l);if(i){var n=i[2]-1||0,s=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,s)):new Date(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,s)}}return new Date(e)}(t),this.init()},f.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},f.$utils=function(){return b},f.isValid=function(){return this.$d.toString()!==c},f.isSame=function(t,e){var r=y(t);return this.startOf(e)<=r&&r<=this.endOf(e)},f.isAfter=function(t,e){return y(t)<this.startOf(e)},f.isBefore=function(t,e){return this.endOf(e)<y(t)},f.$g=function(t,e,r){return b.u(t)?this[e]:this.set(r,t)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(t,o){var c=this,l=!!b.u(o)||o,d=b.p(t),h=function(t,e){var r=b.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return l?r:r.endOf("day")},f=function(t,e){return b.w(c.toDate()[t].apply(c.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},m=this.$W,p=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case a:return l?h(1,0):h(31,11);case s:return l?h(1,p):h(0,p+1);case n:var y=this.$locale().weekStart||0,w=(m<y?m+7:m)-y;return h(l?g-w:g+(6-w),p);case"day":case u:return f(v+"Hours",0);case i:return f(v+"Minutes",1);case r:return f(v+"Seconds",2);case e:return f(v+"Milliseconds",3);default:return this.clone()}},f.endOf=function(t){return this.startOf(t,!1)},f.$set=function(n,o){var c,l=b.p(n),d="set"+(this.$u?"UTC":""),h=((c={}).day=d+"Date",c[u]=d+"Date",c[s]=d+"Month",c[a]=d+"FullYear",c[i]=d+"Hours",c[r]=d+"Minutes",c[e]=d+"Seconds",c[t]=d+"Milliseconds",c)[l],f="day"===l?this.$D+(o-this.$W):o;if(l===s||l===a){var m=this.clone().set(u,1);m.$d[h](f),m.init(),this.$d=m.set(u,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](f);return this.init(),this},f.set=function(t,e){return this.clone().$set(t,e)},f.get=function(t){return this[b.p(t)]()},f.add=function(t,o){var u,c=this;t=Number(t);var l=b.p(o),d=function(e){var r=y(c);return b.w(r.date(r.date()+Math.round(e*t)),c)};if(l===s)return this.set(s,this.$M+t);if(l===a)return this.set(a,this.$y+t);if("day"===l)return d(1);if(l===n)return d(7);var h=((u={})[r]=6e4,u[i]=36e5,u[e]=1e3,u)[l]||1,f=this.$d.getTime()+t*h;return b.w(f,this)},f.subtract=function(t,e){return this.add(-1*t,e)},f.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||c;var i=t||"YYYY-MM-DDTHH:mm:ssZ",n=b.z(this),s=this.$H,o=this.$m,a=this.$M,u=r.weekdays,l=r.months,h=r.meri
1diem,f=function(t,r,n,s){return t&&(t[r]||t(e,i))||n[r].slice(0,s)},m=function(t){return b.s(s%12||12,t,"0")},p=h||function(t,e,r){var i=t<12?"AM":"PM";return r?i.toLowerCase():i};return i.replace(d,function(t,i){return i||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return b.s(e.$y,4,"0");case"M":return a+1;case"MM":return b.s(a+1,2,"0");case"MMM":return f(r.monthsShort,a,l,3);case"MMMM":return f(l,a);case"D":return e.$D;case"DD":return b.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return f(r.weekdaysMin,e.$W,u,2);case"ddd":return f(r.weekdaysShort,e.$W,u,3);case"dddd":return u[e.$W];case"H":return String(s);case"HH":return b.s(s,2,"0");case"h":return m(1);case"hh":return m(2);case"a":return p(s,o,!0);case"A":return p(s,o,!1);case"m":return String(o);case"mm":return b.s(o,2,"0");case"s":return String(e.$s);case"ss":return b.s(e.$s,2,"0");case"SSS":return b.s(e.$ms,3,"0");case"Z":return n}return null}(t)||n.replace(":","")})},f.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},f.diff=function(t,u,c){var l,d=this,h=b.p(u),f=y(t),m=(f.utcOffset()-this.utcOffset())*6e4,p=this-f,g=function(){return b.m(d,f)};switch(h){case a:l=g()/12;break;case s:l=g();break;case o:l=g()/3;break;case n:l=(p-m)/6048e5;break;case"day":l=(p-m)/864e5;break;case i:l=p/36e5;break;case r:l=p/6e4;break;case e:l=p/1e3;break;default:l=p}return c?l:b.a(l)},f.daysInMonth=function(){return this.endOf(s).$D},f.$locale=function(){return m[this.$L]},f.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),i=v(t,e,!0);return i&&(r.$L=i),r},f.clone=function(){return b.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},h}(),$=w.prototype;return y.prototype=$,[["$ms",t],["$s",e],["$m",r],["$H",i],["$W","day"],["$M",s],["$y",a],["$D",u]].forEach(function(t){$[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),y.extend=function(t,e){return t.$i||(t(e,w,y),t.$i=!0),y},y.locale=v,y.isDayjs=g,y.unix=function(t){return y(1e3*t)},y.en=m[f],y.Ls=m,y.p={},y},t.exports=e()},35082:function(t,e,r){"use strict";r.d(e,{Z:function(){return d}});var i=r(75271);let n=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,e,r)=>r?r.toUpperCase():e.toLowerCase()),o=t=>{let e=s(t);return e.charAt(0).toUpperCase()+e.slice(1)},a=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.filter((t,e,r)=>!!t&&""!==t.trim()&&r.indexOf(t)===e).join(" ").trim()},u=t=>{for(let e in t)if(e.startsWith("aria-")||"role"===e||"title"===e)return!0};var c={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,i.forwardRef)((t,e)=>{let{color:r="currentColor",size:n=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:l="",children:d,iconNode:h,...f}=t;return(0,i.createElement)("svg",{ref:e,...c,width:n,height:n,stroke:r,strokeWidth:o?24*Number(s)/Number(n):s,className:a("lucide",l),...!d&&!u(f)&&{"aria-hidden":"true"},...f},[...h.map(t=>{let[e,r]=t;return(0,i.createElement)(e,r)}),...Array.isArray(d)?d:[d]])}),d=(t,e)=>{let r=(0,i.forwardRef)((r,s)=>{let{className:u,...c}=r;return(0,i.createElement)(l,{ref:s,iconNode:e,className:a("lucide-".concat(n(o(t))),"lucide-".concat(t),u),...c})});return r.displayName=o(t),r}},40772:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return b}});let i=r(42430),n=r(11778),s=r(52676),o=n._(r(75271)),a=i._(r(30967)),u=i._(r(67904)),c=r(63437),l=r(92742),d=r(44345);r(16572);let h=r(14820),f=i._(r(10286)),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function p(t,e,r,i,n,s,o){let a=null==t?void 0:t.src;t&&t["data-loaded-src"]!==a&&(t["data-loaded-src"]=a,("decode"in t?t.decode():Promise.resolve()).catch(()=>{}).then(()=>
1{if(t.parentElement&&t.isConnected){if("empty"!==e&&n(!0),null==r?void 0:r.current){let e=new Event("load");Object.defineProperty(e,"target",{writable:!1,value:t});let i=!1,n=!1;r.current({...e,nativeEvent:e,currentTarget:t,target:t,isDefaultPrevented:()=>i,isPropagationStopped:()=>n,persist:()=>{},preventDefault:()=>{i=!0,e.preventDefault()},stopPropagation:()=>{n=!0,e.stopPropagation()}})}(null==i?void 0:i.current)&&i.current(t)}}))}function g(t){return o.use?{fetchPriority:t}:{fetchpriority:t}}let v=(0,o.forwardRef)((t,e)=>{let{src:r,srcSet:i,sizes:n,height:a,width:u,decoding:c,className:l,style:d,fetchPriority:h,placeholder:f,loading:m,unoptimized:v,fill:y,onLoadRef:b,onLoadingCompleteRef:w,setBlurComplete:$,setShowAltText:M,sizesInput:S,onLoad:O,onError:_,...C}=t;return(0,s.jsx)("img",{...C,...g(h),loading:m,width:u,height:a,decoding:c,"data-nimg":y?"fill":"1",className:l,style:d,sizes:n,srcSet:i,src:r,ref:(0,o.useCallback)(t=>{e&&("function"==typeof e?e(t):"object"==typeof e&&(e.current=t)),t&&(_&&(t.src=t.src),t.complete&&p(t,f,b,w,$,v,S))},[r,f,b,w,$,_,v,S,e]),onLoad:t=>{p(t.currentTarget,f,b,w,$,v,S)},onError:t=>{M(!0),"empty"!==f&&$(!0),_&&_(t)}})});function y(t){let{isAppRouter:e,imgAttributes:r}=t,i={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...g(r.fetchPriority)};return e&&a.default.preload?(a.default.preload(r.src,i),null):(0,s.jsx)(u.default,{children:(0,s.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...i},"__nimg-"+r.src+r.srcSet+r.sizes)})}let b=(0,o.forwardRef)((t,e)=>{let r=(0,o.useContext)(h.RouterContext),i=(0,o.useContext)(d.ImageConfigContext),n=(0,o.useMemo)(()=>{var t;let e=m||i||l.imageConfigDefault,r=[...e.deviceSizes,...e.imageSizes].sort((t,e)=>t-e),n=e.deviceSizes.sort((t,e)=>t-e),s=null==(t=e.qualities)?void 0:t.sort((t,e)=>t-e);return{...e,allSizes:r,deviceSizes:n,qualities:s}},[i]),{onLoad:a,onLoadingComplete:u}=t,p=(0,o.useRef)(a);(0,o.useEffect)(()=>{p.current=a},[a]);let g=(0,o.useRef)(u);(0,o.useEffect)(()=>{g.current=u},[u]);let[b,w]=(0,o.useState)(!1),[$,M]=(0,o.useState)(!1),{props:S,meta:O}=(0,c.getImgProps)(t,{defaultLoader:f.default,imgConf:n,blurComplete:b,showAltText:$});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v,{...S,unoptimized:O.unoptimized,placeholder:O.placeholder,fill:O.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:w,setShowAltText:M,sizesInput:t.sizes,ref:e}),O.priority?(0,s.jsx)(y,{isAppRouter:!r,imgAttributes:S}):null]})});("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},63437:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return a}}),r(16572);let i=r(93399),n=r(92742);function s(t){return void 0!==t.default}function o(t){return void 0===t?t:"number"==typeof t?Number.isFinite(t)?t:NaN:"string"==typeof t&&/^[0-9]+$/.test(t)?parseInt(t,10):NaN}function a(t,e){var r,a;let u,c,l,{src:d,sizes:h,unoptimized:f=!1,priority:m=!1,loading:p,className:g,quality:v,width:y,height:b,fill:w=!1,style:$,overrideSrc:M,onLoad:S,onLoadingComplete:O,placeholder:_="empty",blurDataURL:C,fetchPriority:x,decoding:D="async",layout:j,objectFit:k,objectPosition:z,lazyBoundary:E,lazyRoot:P,...R}=t,{imgConf:L,showAltText:A,blurComplete:I,defaultLoader:Y}=e,N=L||n.imageConfigDefault;if("allSizes"in N)u=N;else{let t=[...N.deviceSizes,...N.imageSizes].sort((t,e)=>t-e),e=N.deviceSizes.sort((t,e)=>t-e),i=null==(r=N.qualities)?void 0:r.sort((t,e)=>t-e);u={...N,allSizes:t,deviceSizes:e,qualities:i}}if(void 0===Y)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let W=R.loader||Y;delete R.loader,delete R.srcSet;let T="__next_img_default"in W;if(T){if("custom"===u.loader)throw Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let t=W;W=e=>{let{config:r,...i}=e;return t(i)}}if(j){"fill"===j&&(w=!0);let t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[j];t&&($={...$,...t});let e={responsive:"100vw",fill:"100vw"}[j];e&&!h&&(h=e)}let H="",U=o(y),F=o(b);
1if("object"==typeof(a=d)&&(s(a)||void 0!==a.src)){let t=s(d)?d.default:d;if(!t.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(t));if(!t.height||!t.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(t));if(c=t.blurWidth,l=t.blurHeight,C=C||t.blurDataURL,H=t.src,!w){if(U||F){if(U&&!F){let e=U/t.width;F=Math.round(t.height*e)}else if(!U&&F){let e=F/t.height;U=Math.round(t.width*e)}}else U=t.width,F=t.height}}let B=!m&&("lazy"===p||void 0===p);(!(d="string"==typeof d?d:H)||d.startsWith("data:")||d.startsWith("blob:"))&&(f=!0,B=!1),u.unoptimized&&(f=!0),T&&d.endsWith(".svg")&&!u.dangerouslyAllowSVG&&(f=!0),m&&(x="high");let V=o(v),Z=Object.assign(w?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:k,objectPosition:z}:{},A?{}:{color:"transparent"},$),G=I||"empty"===_?null:"blur"===_?'url("data:image/svg+xml;charset=utf-8,'+(0,i.getImageBlurSvg)({widthInt:U,heightInt:F,blurWidth:c,blurHeight:l,blurDataURL:C||"",objectFit:Z.objectFit})+'")':'url("'+_+'")',q=G?{backgroundSize:Z.objectFit||"cover",backgroundPosition:Z.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:G}:{},J=function(t){let{config:e,src:r,unoptimized:i,width:n,quality:s,sizes:o,loader:a}=t;if(i)return{src:r,srcSet:void 0,sizes:void 0};let{widths:u,kind:c}=function(t,e,r){let{deviceSizes:i,allSizes:n}=t;if(r){let t=/(^|\s)(1?\d?\d)vw/g,e=[];for(let i;i=t.exec(r);i)e.push(parseInt(i[2]));if(e.length){let t=.01*Math.min(...e);return{widths:n.filter(e=>e>=i[0]*t),kind:"w"}}return{widths:n,kind:"w"}}return"number"!=typeof e?{widths:i,kind:"w"}:{widths:[...new Set([e,2*e].map(t=>n.find(e=>e>=t)||n[n.length-1]))],kind:"x"}}(e,n,o),l=u.length-1;return{sizes:o||"w"!==c?o:"100vw",srcSet:u.map((t,i)=>a({config:e,src:r,quality:s,width:t})+" "+("w"===c?t:i+1)+c).join(", "),src:a({config:e,src:r,quality:s,width:u[l]})}}({config:u,src:d,unoptimized:f,width:U,quality:V,sizes:h,loader:W});return{props:{...R,loading:B?"lazy":p,fetchPriority:x,width:U,height:F,decoding:D,className:g,style:{...Z,...q},sizes:J.sizes,srcSet:J.srcSet,src:M||J.src},meta:{unoptimized:f,priority:m,placeholder:_,fill:w}}}},93399:function(t,e){"use strict";function r(t){let{widthInt:e,heightInt:r,blurWidth:i,blurHeight:n,blurDataURL:s,objectFit:o}=t,a=i?40*i:e,u=n?40*n:r,c=a&&u?"viewBox='0 0 "+a+" "+u+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+c+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(c?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+s+"'/%3E%3C/svg%3E"}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},96197:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var r in e)Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}(e,{default:function(){return u},getImageProps:function(){return a}});let i=r(42430),n=r(63437),s=r(40772),o=i._(r(10286));function a(t){let{props:e}=(0,n.getImgProps)(t,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[t,r]of Object.entries(e))void 0===r&&delete e[t];return{props:e}}let u=s.Image},10286:function(t,e){"use strict";function r(t){var e;let{config:r,src:i,width:n,quality:s}=t,o=s||(null==(e=r.qualities)?void 0:e.reduce((t,e)=>Math.abs(e-75)<Math.abs(t-75)?e:t))||75;return r.path+"?url="+encodeURIComponent(i)+"&w="+n+"&q="+o}
1Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}}),r.__next_img_default=!0;let i=r},32623:function(t,e,r){t.exports=r(96197)},71030:function(t,e,r){"use strict";r.d(e,{D:function(){return l}});var i=r(75271),n=r(44451),s=r(14435),o=r(86345),a=r(4475),u=class extends o.l{#t;#e=void 0;#r;#i;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,a.VS)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,a.Ym)(e.mutationKey)!==(0,a.Ym)(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(t){this.#n(),this.#s(t)}getCurrentResult(){return this.#e}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#n(),this.#s()}mutate(t,e){return this.#i=e,this.#r?.removeObserver(this),this.#r=this.#t.getMutationCache().build(this.#t,this.options),this.#r.addObserver(this),this.#r.execute(t)}#n(){let t=this.#r?.state??(0,n.R)();this.#e={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#s(t){s.Vr.batch(()=>{if(this.#i&&this.hasListeners()){let e=this.#e.variables,r=this.#e.context,i={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#i.onSuccess?.(t.data,e,r,i)}catch(t){Promise.reject(t)}try{this.#i.onSettled?.(t.data,null,e,r,i)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#i.onError?.(t.error,e,r,i)}catch(t){Promise.reject(t)}try{this.#i.onSettled?.(void 0,t.error,e,r,i)}catch(t){Promise.reject(t)}}}this.listeners.forEach(t=>{t(this.#e)})})}},c=r(69947);function l(t,e){let r=(0,c.NL)(e),[n]=i.useState(()=>new u(r,t));i.useEffect(()=>{n.setOptions(t)},[n,t]);let o=i.useSyncExternalStore(i.useCallback(t=>n.subscribe(s.Vr.batchCalls(t)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),l=i.useCallback((t,e)=>{n.mutate(t,e).catch(a.ZT)},[n]);if(o.error&&(0,a.L3)(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:l,mutateAsync:o.mutate}}}}]);
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.