1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3821],{622:(e,t,r)=>{"use strict";r.d(t,{QP:()=>el});let n=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),i=[],o=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let n=e[t],i=r.nextPart.get(n);if(i){let r=o(e,t+1,i);if(r)return r}let s=r.validators;if(null===s)return;let a=0===t?e.join("-"):e.slice(t).join("-"),l=s.length;for(let e=0;e<l;e++){let t=s[e];if(t.validator(a))return t.classGroupId}},s=(e,t)=>{let r=n();for(let n in e)a(e[n],r,n,t);return r},a=(e,t,r,n)=>{let i=e.length;for(let o=0;o<i;o++)l(e[o],t,r,n)},l=(e,t,r,n)=>{"string"==typeof e?u(e,t,r):"function"==typeof e?c(e,t,r,n):f(e,t,r,n)},u=(e,t,r)=>{(""===e?t:h(t,e)).classGroupId=r},c=(e,t,r,n)=>{d(e)?a(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e}))},f=(e,t,r,n)=>{let i=Object.entries(e),o=i.length;for(let e=0;e<o;e++){let[o,s]=i[e];a(s,h(t,o),r,n)}},h=(e,t)=>{let r=e,i=t.split("-"),o=i.length;for(let e=0;e<o;e++){let t=i[e],o=r.nextPart.get(t);o||(o=n(),r.nextPart.set(t,o)),r=o}return r},d=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,p=[],m=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),g=/\s+/,y=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=y(e[n]))&&(r&&(r+=" "),r+=t);return r},v=[],b=e=>{let t=t=>t[e]||v;return t.isThemeGetter=!0,t},w=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,A=/^\((?:(\w[\w-]*):)?(.+)\)$/i,x=/^\d+\/\d+$/,E=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,k=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,N=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,S=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,M=e=>x.test(e),R=e=>!!e&&!Number.isNaN(Number(e)),P=e=>!!e&&Number.isInteger(Number(e)),I=e=>e.endsWith("%")&&R(e.slice(0,-1)),C=e=>E.test(e),T=()=>!0,O=e=>_.test(e)&&!k.test(e),L=()=>!1,F=e=>N.test(e),B=e=>S.test(e),D=e=>!U(e)&&!Y(e),j=e=>Z(e,en,L),U=e=>w.test(e),z=e=>Z(e,ei,O),V=e=>Z(e,eo,R),H=e=>Z(e,et,L),G=e=>Z(e,er,B),q=e=>Z(e,ea,F),Y=e=>A.test(e),K=e=>ee(e,ei),W=e=>ee(e,es),J=e=>ee(e,et),Q=e=>ee(e,en),X=e=>ee(e,er),$=e=>ee(e,ea,!0),Z=(e,t,r)=>{let n=w.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},ee=(e,t,r=!1)=>{let n=A.exec(e);return!!n&&(n[1]?t(n[1]):r)},et=e=>"position"===e||"percentage"===e,er=e=>"image"===e||"url"===e,en=e=>"length"===e||"size"===e||"bg-size"===e,ei=e=>"length"===e,eo=e=>"number"===e,es=e=>"family-name"===e,ea=e=>"shadow"===e,el=((e,...t)=>{let r,n,a,l,u=e=>{let t=n(e);if(t)return t;let i=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:o}=t,s=[],a=e.trim().split(g),l="";for(let e=a.length-1;e>=0;e-=1){let t=a[e],{isExternal:u,modifiers:c,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:d}=r(t);if(u){l=t+(l.length>0?" "+l:l);continue}let p=!!d,m=n(p?h.substring(0,d):h);if(!m){if(!p||!(m=n(h))){l=t+(l.length>0?" "+l:l);continue}p=!1}let g=0===c.length?"":1===c.length?c[0]:o(c).join(":"),y=f?g+"!":g,v=y+m;if(s.indexOf(v)>-1)continue;s.push(v);let b=i(m,p);for(let e=0;e<b.length;++e){let t=b[e];s.push(y+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return a(e,i),i};return l=c=>{var f;let h;return n=(r={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null),i=(i,o)=>{r[i]=o,++t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(i(e,t),t):void 0},set(e,t){e in r?r[e]=t:i(e,t)}}})((f=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,n=e=>{let t,r=[],n=0,i=0,o=0,s=e.length;for(let a=0;a<s;a++){let s=e[a];if(0===n&&0===i){if(":"===s){r.push(e.slice(o,a)),o=a+1;continue}if("/"===s){t=a;continue}}"["===s?n++:"]"===s?n--:"("===s?i++:")"===s&&i--}let a=0===r.length?e:e.slice(o),l=a,u=!1;return a.endsWith("!")?(l=a.slice(0,-1),u=!0):a.startsWith("!")&&(l=a.slice(1),u=!0),m(r,u,l,t&&t>o?t-o:void 0)};if(t){let e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):m(p,!1,t,void 0,!0)}if(r){let e=n;n=t=>r({className:t,parseClassName:e})}return n}
1)(f),sortModifiers:(h=new Map,f.orderSensitiveModifiers.forEach((e,t)=>{h.set(e,1e6+t)}),e=>{let t=[],r=[];for(let n=0;n<e.length;n++){let i=e[n],o="["===i[0],s=h.has(i);o||s?(r.length>0&&(r.sort(),t.push(...r),r=[]),t.push(i)):r.push(i)}return r.length>0&&(r.sort(),t.push(...r)),t}),...(e=>{let t=(e=>{let{theme:t,classGroups:r}=e;return s(r,t)})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var r;let t,n,i;return -1===(r=e).slice(1,-1).indexOf(":")?void 0:(n=(t=r.slice(1,-1)).indexOf(":"),(i=t.slice(0,n))?"arbitrary.."+i:void 0)}let n=e.split("-"),i=+(""===n[0]&&n.length>1);return o(n,i,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=n[e],o=r[e];if(t){if(o){let e=Array(o.length+t.length);for(let t=0;t<o.length;t++)e[t]=o[t];for(let r=0;r<t.length;r++)e[o.length+r]=t[r];return e}return t}return o||i}return r[e]||i}}})(f)}).cache.get,a=r.cache.set,l=u,u(c)},(...e)=>l(((...e)=>{let t,r,n=0,i="";for(;n<e.length;)(t=e[n++])&&(r=y(t))&&(i&&(i+=" "),i+=r);return i})(...e))})(()=>{let e=b("color"),t=b("font"),r=b("text"),n=b("font-weight"),i=b("tracking"),o=b("leading"),s=b("breakpoint"),a=b("container"),l=b("spacing"),u=b("radius"),c=b("shadow"),f=b("inset-shadow"),h=b("text-shadow"),d=b("drop-shadow"),p=b("blur"),m=b("perspective"),g=b("aspect"),y=b("ease"),v=b("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[...A(),Y,U],E=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],k=()=>[Y,U,l],N=()=>[M,"full","auto",...k()],S=()=>[P,"none","subgrid",Y,U],O=()=>["auto",{span:["full",P,Y,U]},P,Y,U],L=()=>[P,"auto",Y,U],F=()=>["auto","min","max","fr",Y,U],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],ee=()=>["auto",...k()],et=()=>[M,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],er=()=>[e,Y,U],en=()=>[...A(),J,H,{position:[Y,U]}],ei=()=>["no-repeat",{repeat:["","x","y","space","round"]}],eo=()=>["auto","cover","contain",Q,j,{size:[Y,U]}],es=()=>[I,K,z],ea=()=>["","none","full",u,Y,U],el=()=>["",R,K,z],eu=()=>["solid","dashed","dotted","double"],ec=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ef=()=>[R,I,J,H],eh=()=>["","none",p,Y,U],ed=()=>["none",R,Y,U],ep=()=>["none",R,Y,U],em=()=>[R,Y,U],eg=()=>[M,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[C],breakpoint:[C],color:[T],container:[C],"drop-shadow":[C],ease:["in","out","in-out"],font:[D],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[C],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[C],shadow:[C],spacing:["px",R],text:[C],"text-shadow":[C],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",M,U,Y,g]}],container:["container"],columns:[{columns:[R,U,Y,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{start:N()}],end:[{end:N()}],top:[{top:N()}
vendor: 11,538 bytes, line 1
1],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[P,"auto",Y,U]}],basis:[{basis:[M,"full","auto",a,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[R,M,"auto","initial","none",U]}],grow:[{grow:["",R,Y,U]}],shrink:[{shrink:["",R,Y,U]}],order:[{order:[P,"first","last","none",Y,U]}],"grid-cols":[{"grid-cols":S()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":S()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:ee()}],mx:[{mx:ee()}],my:[{my:ee()}],ms:[{ms:ee()}],me:[{me:ee()}],mt:[{mt:ee()}],mr:[{mr:ee()}],mb:[{mb:ee()}],ml:[{ml:ee()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:et()}],w:[{w:[a,"screen",...et()]}],"min-w":[{"min-w":[a,"screen","none",...et()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...et()]}],h:[{h:["screen","lh",...et()]}],"min-h":[{"min-h":["screen","lh","none",...et()]}],"max-h":[{"max-h":["screen","lh",...et()]}],"font-size":[{text:["base",r,K,z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Y,V]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",I,U]}],"font-family":[{font:[W,U,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Y,U]}],"line-clamp":[{"line-clamp":[R,"none",Y,V]}],leading:[{leading:[o,...k()]}],"list-image":[{"list-image":["none",Y,U]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Y,U]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:er()}],"text-color":[{text:er()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...eu(),"wavy"]}],"text-decoration-thickness":[{decoration:[R,"from-font","auto",Y,z]}],"text-decoration-color":[{decoration:er()}],"underline-offset":[{"underline-offset":[R,"auto",Y,U]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y,U]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Y,U]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:en()}],"bg-repeat":[{bg:ei()}],"bg-size":[{bg:eo()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},P,Y,U],radial:["",Y,U],conic:[P,Y,U]},X,G]}],"bg-color":[{bg:er()}],"gradient-from-pos":[{from:es()}],"gradient-via-pos":[{via:es()}],"gradient-to-pos":[{to:es()}],"gradient-from":[{from:er()}],"gradient-via":[{via:er()}],"gradient-to":[{to:er()}],rounded:[{rounded:ea()}],"rounded-s":[{"rounded-s":ea()}],"rounded-e":[{"rounded-e":ea()}],"rounded-t":[{"rounded-t":ea()}],"rounded-r":[{"rounded-r":ea()}],"rounded-b":[{"rounded-b":ea()}],"rounded-l":[{"rounded-l":ea()}],"rounded-ss":[{"rounded-ss":ea()}],"rounded-se":[{"rounded-se":ea()}],"rounded-ee":[{"rounded-ee":ea()}],"rounded-es":[{"rounded-es":ea()}],"rounded-tl":[{"rounded-tl":ea()}],"rounded-tr":[{"rounded-tr":ea()}],"rounded-br":[{"rounded-br":ea()}],"rounded-bl":[{"rounded-bl":ea()}],"border-w":[{border:el()}],"border-w-x":[{"border-x":el()}],"border-w-y":[{"border-y":el()}],"border-w-s":[{"border-s":el()}],"border-w-e":[{"border-e":el()}],"border-w-t":[{"border-t":el()}],"border-w-r":[{"border-r":el()}],"border-w-b":[{"border-b":el()}],"border-w-l":[{"border-l":el()}],"divide-x":[{"divide-x":el()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":el()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...eu(),"hidden","none"]}],"divide-style":[{divide:[...eu(),"hidden","none"]}],"border-color":[{border:er()}],"border-color-x":[{"border-x":er()}],"border-color-y":[{"border-y":er()}],"border-color-s":[{"border-s":er()}],"border-color-e":[{"border-e":er()}],"border-color-t":[{"border-t":er()}],"border-color-r":[{"border-r":er()}],"border-color-b":[{"border-b":er()}],"border-color-l":[{"border-l":er()}],"divide-color":[{divide:er()}],"outline-style":[{outline:[...eu(),"none","hidden"]}],"outline-offset":[{"outline-offset":[R,Y,U]}],"outline-w":[{outline:["",R,K,z]}],"outline-color":[{outline:er()}],shadow:[{shadow:["","none",c,$,q]}],"shadow-color":[{shadow:er()}],"inset-shadow":[{"inset-shadow":["none",f,$,q]}],"inset-shadow-color":[{"inset-shadow":er()}],"ring-w":[{ring:el()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:er()}],"ring-offset-w":[{"ring-offset":[R,z]}],"ring-offset-color":[{"ring-offset":er()}],"inset-ring-w":[{"inset-ring":el()}],"inset-ring-color":[{"inset-ring":er()}],"text-shadow":[{"text-shadow":["none",h,$,q]}],"text-shadow-color":[{"text-shadow":er()}],opacity:[{opacity:[R,Y,U]}],"mix-blend":[{"mix-blend":[...ec(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ec()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[R]}],"mask-image-linear-from-pos":[{"mask-linear-from":ef()}],"mask-image-linear-to-pos":[{"mask-linear-to":ef()}],"mask-image-linear-from-color":[{"mask-linear-from":er()}],"mask-image-linear-to-color":[{"mask-linear-to":er()}],"mask-image-t-from-pos":[{"mask-t-from":ef()}],"mask-image-t-to-pos":[{"mask-t-to":ef()}],"mask-image-t-from-color":[{"mask-t-from":er()}],"mask-image-t-to-color":[{"mask-t-to":er()}],"mask-image-r-from-pos":[{"mask-r-from":ef()}],"mask-image-r-to-pos":[{"mask-r-to":ef()}],"mask-image-r-from-color":[{"mask-r-from":er()}],"mask-image-r-to-color":[{"mask-r-to":er()}],"mask-image-b-from-pos":[{"mask-b-from":ef()}],"mask-image-b-to-pos":[{"mask-b-to":ef()}],"mask-image-b-from-color":[{"mask-b-from":er()}],"mask-image-b-to-color":[{"mask-b-to":er()}],"mask-image-l-from-pos":[{"mask-l-from":ef()}],"mask-image-l-to-pos":[{"mask-l-to":ef()}],"mask-image-l-from-color":[{"mask-l-from":er()}],"mask-image-l-to-color":[{"mask-l-to":er()}],"mask-image-x-from-pos":[{"mask-x-from":ef()}],"mask-image-x-to-pos":[{"mask-x-to":ef()}],"mask-image-x-from-color":[{"mask-x-from":er()}],"mask-image-x-to-color":[{"mask-x-to":er()}],"mask-image-y-from-pos":[{"mask-y-from":ef()}],"mask-image-y-to-pos":[{"mask-y-to":ef()}],"mask-image-y-from-color":[{"mask-y-from":er()}],"mask-image-y-to-color":[{"mask-y-to":er()}],"mask-image-radial":[{"mask-radial":[Y,U]}],"mask-image-radial-from-pos":[{"mask-radial-from":ef()}],"mask-image-radial-to-pos":[{"mask-radial-to":ef()}],"mask-image-radial-from-color":[{"mask-radial-from":er()}],"mask-image-radial-to-color":[{"mask-radial-to":er()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[R]}],"mask-image-conic-from-pos":[{"mask-conic-from":ef()}],"mask-image-conic-to-pos":[{"mask-conic-to":ef()}],"mask-image-conic-from-color":[{"mask-conic-from":er()}],"mask-image-conic-to-color":[{"mask-conic-to":er()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:en()}],"mask-repeat":[{mask:ei()}],"mask-size":[{mask:eo()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Y,U]}],filter:[{filter:["","none",Y,U]}],blur:[{blur:eh()}],brightness:[{brightness:[R,Y,U]}],contrast:[{contrast:[R,Y,U]}],"drop-shadow":[{"drop-shadow":["","none",d,$,q]}],"drop-shadow-color":[{"drop-shadow":er()}],grayscale:[{grayscale:["",R,Y,U]}],"hue-rotate":[{"hue-rotate":[R,Y,U]}],invert:[{invert:["",R,Y,U]}],saturate:[{saturate:[R,Y,U]}],sepia:[{sepia:["",R,Y,U]}],"backdrop-filter":[{"backdrop-filter":["","none",Y,U]}],"backdrop-blur":[{"backdrop-blur":eh()}],"backdrop-brightness":[{"backdrop-brightness":[R,Y,U]}],"backdrop-contrast":[{"backdrop-contrast":[R,Y,U]}],"backdrop-grayscale":[{"backdrop-grayscale":["",R,Y,U]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R,Y,U]}],"backdrop-invert":[{"backdrop-invert":["",R,Y,U]}],"backdrop-opacity":[{"backdrop-opacity":[R,Y,U]}],"backdrop-saturate":[{"backdrop-saturate":[R,Y,U]}],"backdrop-sepia":[{"backdrop-sepia":["",R,Y,U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Y,U]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[R,"initial",Y,U]}],ease:[{ease:["linear","initial",y,Y,U]}],delay:[{delay:[R,Y,U]}],animate:[{animate:["none",v,Y,U]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Y,U]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ed()}],"rotate-x":[{"rotate-x":ed()}],"rotate-y":[{"rotate-y":ed()}],"rotate-z":[{"rotate-z":ed()}],scale:[{scale:ep()}],"scale-x":[{"scale-x":ep()}],"scale-y":[{"scale-y":ep()}],"scale-z":[{"scale-z":ep()}],"scale-3d":["scale-3d"],skew:[{skew:em()}],"skew-x":[{"skew-x":em()}],"skew-y":[{"skew-y":em()}],transform:[{transform:[Y,U,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:eg()}],"translate-x":[{"translate-x":eg()}],"translate-y":[{"translate-y":eg()}],"translate-z":[{"translate-z":eg()}],"translate-none":["translate-none"],accent:[{accent:er()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:er()}
1],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Y,U]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Y,U]}],fill:[{fill:["none",...er()]}],"stroke-w":[{stroke:[R,K,z,V]}],stroke:[{stroke:["none",...er()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}})},1933:(e,t,r)=>{"use strict";r.d(t,{jH:()=>o});var n=r(12115);r(95155);var i=n.createContext(void 0);function o(e){let t=n.useContext(i);return e||t||"ltr"}},2047:(e,t,r)=>{"use strict";r.d(t,{D:()=>f,l:()=>l});var n=r(44464),i=r(51633);let o=new i.Vy("rlp/5.8.0");function s(e){let t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function a(e,t,r){let n=0;for(let i=0;i<r;i++)n=256*n+e[t+i];return n}function l(e){return(0,n.c$)(function e(t){if(Array.isArray(t)){let r=[];if(t.forEach(function(t){r=r.concat(e(t))}),r.length<=55)return r.unshift(192+r.length),r;let n=s(r.length);return n.unshift(247+n.length),n.concat(r)}(0,n.f)(t)||o.throwArgumentError("RLP object must be BytesLike","object",t);let r=Array.prototype.slice.call((0,n.k9)(t));if(1===r.length&&r[0]<=127)return r;if(r.length<=55)return r.unshift(128+r.length),r;let i=s(r.length);return i.unshift(183+i.length),i.concat(r)}(e))}function u(e,t,r,n){let s=[];for(;r<t+1+n;){let a=c(e,r);s.push(a.result),(r+=a.consumed)>t+1+n&&o.throwError("child data too short",i.Vy.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:s}}function c(e,t){if(0===e.length&&o.throwError("data too short",i.Vy.errors.BUFFER_OVERRUN,{}),e[t]>=248){let r=e[t]-247;t+1+r>e.length&&o.throwError("data short segment too short",i.Vy.errors.BUFFER_OVERRUN,{});let n=a(e,t+1,r);return t+1+r+n>e.length&&o.throwError("data long segment too short",i.Vy.errors.BUFFER_OVERRUN,{}),u(e,t,t+1+r,r+n)}if(e[t]>=192){let r=e[t]-192;return t+1+r>e.length&&o.throwError("data array too short",i.Vy.errors.BUFFER_OVERRUN,{}),u(e,t,t+1,r)}if(e[t]>=184){let r=e[t]-183;t+1+r>e.length&&o.throwError("data array too short",i.Vy.errors.BUFFER_OVERRUN,{});let s=a(e,t+1,r);t+1+r+s>e.length&&o.throwError("data array too short",i.Vy.errors.BUFFER_OVERRUN,{});let l=(0,n.c$)(e.slice(t+1+r,t+1+r+s));return{consumed:1+r+s,result:l}}if(e[t]>=128){let r=e[t]-128;t+1+r>e.length&&o.throwError("data too short",i.Vy.errors.BUFFER_OVERRUN,{});let s=(0,n.c$)(e.slice(t+1,t+1+r));return{consumed:1+r,result:s}}return{consumed:1,result:(0,n.c$)(e[t])}}function f(e){let t=(0,n.k9)(e),r=c(t,0);return r.consumed!==t.length&&o.throwArgumentError("invalid rlp data","data",e),r.result}},4101:(e,t,r)=>{"use strict";var n=r(73594);function i(e){return(e>>>24|e>>>8&65280|e<<8&0xff0000|(255&e)<<24)>>>0}function o(e){return 1===e.length?"0"+e:e}function s(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;else if(2===e.length)return"000000"+e;else if(1===e.length)return"0000000"+e;else return e}t.inherits=r(77801),t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var o,s,a=e.charCodeAt(i);a<128?r[n++]=a:(a<2048?r[n++]=a>>6|192:((o=e,s=i,(64512&o.charCodeAt(s))!=55296||s<0||s+1>=o.length?1:(64512&o.charCodeAt(s+1))!=56320)?r[n++]=a>>12|224:(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128),r[n++]=a>>6&63|128),r[n++]=63&a|128)}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=o(e[r].toString(16));return t},t.htonl=i,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e[n];"little"===t&&(o=i(o)),r+=s(o.toString(16))}return r},t.zero2=o,t.zero8=s,t.join32=function(e,t,r,i){var o,s=r-t;n(s%4==0);for(var a=Array(s/4),l=0,u=t;l<a.length;l++,u+=4)o="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],a[l]=o>>>0;return a},t.split32=function(e,t){for(var r=Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0;e[t]=+(o<n)+r+i>>>
10,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return+(t+n>>>0<t)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,s,a){var l,u=t;return e+r+i+s+(l=0+ +((u=u+n>>>0)<t)+ +((u=u+o>>>0)<o)+ +((u=u+a>>>0)<a))>>>0},t.sum64_4_lo=function(e,t,r,n,i,o,s,a){return t+n+o+a>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,s,a,l,u){var c,f=t;return e+r+i+s+l+(c=0+ +((f=f+n>>>0)<t)+ +((f=f+o>>>0)<o)+ +((f=f+a>>>0)<a)+ +((f=f+u>>>0)<u))>>>0},t.sum64_5_lo=function(e,t,r,n,i,o,s,a,l,u){return t+n+o+a+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},5339:(e,t,r)=>{"use strict";r.d(t,{A:()=>M});var n=r(49303),i=r(12115),o=r(55947),s=r(94280),a=(0,r(94622).f)(),l=function(){},u=i.forwardRef(function(e,t){var r=i.useRef(null),o=i.useState({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:l}),u=o[0],c=o[1],f=e.forwardProps,h=e.children,d=e.className,p=e.removeScrollBar,m=e.enabled,g=e.shards,y=e.sideCar,v=e.noRelative,b=e.noIsolation,w=e.inert,A=e.allowPinchZoom,x=e.as,E=e.gapMode,_=(0,n.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(0,s.S)([r,t]),N=(0,n.Cl)((0,n.Cl)({},_),u);return i.createElement(i.Fragment,null,m&&i.createElement(y,{sideCar:a,removeScrollBar:p,shards:g,noRelative:v,noIsolation:b,inert:w,setCallbacks:c,allowPinchZoom:!!A,lockRef:r,gapMode:E}),f?i.cloneElement(i.Children.only(h),(0,n.Cl)((0,n.Cl)({},N),{ref:k})):i.createElement(void 0===x?"div":x,(0,n.Cl)({},N,{className:d,ref:k}),h))});u.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},u.classNames={fullWidth:o.pN,zeroRight:o.Mi};var c=r(77436),f=r(82578),h=r(13672),d=!1;if("undefined"!=typeof window)try{var p=Object.defineProperty({},"passive",{get:function(){return d=!0,!0}});window.addEventListener("test",p,p),window.removeEventListener("test",p,p)}catch(e){d=!1}var m=!!d&&{passive:!1},g=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},y=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),v(e,n)){var i=b(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},v=function(e,t){return"v"===e?g(t,"overflowY"):g(t,"overflowX")},b=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},w=function(e,t,r,n,i){var o,s=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),a=s*n,l=r.target,u=t.contains(l),c=!1,f=a>0,h=0,d=0;do{if(!l)break;var p=b(e,l),m=p[0],g=p[1]-p[2]-s*m;(m||g)&&v(e,l)&&(h+=g,d+=m);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return f&&(i&&1>Math.abs(h)||!i&&a>h)?c=!0:!f&&(i&&1>Math.abs(d)||!i&&-a>d)&&(c=!0),c},A=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},x=function(e){return[e.deltaX,e.deltaY]},E=function(e){return e&&"current"in e?e.current:e},_=0,k=[];let N=(0,c.m)(a,function(e){var t=i.useRef([]),r=i.useRef([0,0]),o=i.useRef(),s=i.useState(_++)[0],a=i.useState(h.T0)[0],l=i.useRef(e);i.useEffect(function(){l.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var t=(0,n.fX)([e.lockRef.current],(e.shards||[]).map(E),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var u=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var n,i=A(e),s=r.current,a="deltaX"in e?e.deltaX:s[0]-i[0],u="deltaY"in e?e.deltaY:s[1]-i[1],c=e.target,f=Math.abs(a)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===f&&"range"===c.type)return!1;var h=y(f,c);if(!h)return!0;
1if(h?n=f:(n="v"===f?"h":"v",h=y(f,c)),!h)return!1;if(!o.current&&"changedTouches"in e&&(a||u)&&(o.current=n),!n)return!0;var d=o.current||n;return w(d,t,e,"h"===d?a:u,!0)},[]),c=i.useCallback(function(e){if(k.length&&k[k.length-1]===a){var r="deltaY"in e?x(e):A(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var i=(l.current.shards||[]).map(E).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?u(e,i[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=i.useCallback(function(e,r,n,i){var o={name:e,delta:r,target:n,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),p=i.useCallback(function(e){r.current=A(e),o.current=void 0},[]),g=i.useCallback(function(t){d(t.type,x(t),t.target,u(t,e.lockRef.current))},[]),v=i.useCallback(function(t){d(t.type,A(t),t.target,u(t,e.lockRef.current))},[]);i.useEffect(function(){return k.push(a),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",c,m),document.addEventListener("touchmove",c,m),document.addEventListener("touchstart",p,m),function(){k=k.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,m),document.removeEventListener("touchmove",c,m),document.removeEventListener("touchstart",p,m)}},[]);var b=e.removeScrollBar,N=e.inert;return i.createElement(i.Fragment,null,N?i.createElement(a,{styles:"\n .block-interactivity-".concat(s," {pointer-events: none;}\n .allow-interactivity-").concat(s," {pointer-events: all;}\n")}):null,b?i.createElement(f.jp,{noRelative:e.noRelative,gapMode:e.gapMode}):null)});var S=i.forwardRef(function(e,t){return i.createElement(u,(0,n.Cl)({},e,{ref:t,sideCar:N}))});S.classNames=u.classNames;let M=S},5772:(e,t,r)=>{"use strict";r.d(t,{default:()=>i.a});var n=r(97651),i=r.n(n)},6061:(e,t,r)=>{"use strict";r.d(t,{bv:()=>f,RZ:()=>h});var n=r(44464),i=r(54914),o=r(72385),s=r(2047);let a=new(r(51633)).Vy("address/5.8.0");function l(e){(0,n.Lo)(e,20)||a.throwArgumentError("invalid address","address",e);let t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);let i=(0,n.k9)((0,o.S)(r));for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&i[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}let u={};for(let e=0;e<10;e++)u[String(e)]=String(e);for(let e=0;e<26;e++)u[String.fromCharCode(65+e)]=String(10+e);let c=Math.floor(Math.log10?Math.log10(0x1fffffffffffff):Math.log(0x1fffffffffffff)/Math.LN10);function f(e){let t=null;if("string"!=typeof e&&a.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=l(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&a.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==function(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>u[e]).join("");for(;t.length>=c;){let e=t.substring(0,c);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}(e)&&a.throwArgumentError("bad icap checksum","address",e),t=(0,i.Os)(e.substring(4));t.length<40;)t="0"+t;t=l("0x"+t)}else a.throwArgumentError("invalid address","address",e);return t}function h(e){let t=null;try{t=f(e.from)}catch(t){a.throwArgumentError("missing from address","transaction",e)}let r=(0,n.gr)((0,n.k9)(i.gH.from(e.nonce).toHexString()));return f((0,n.Ab)((0,o.S)((0,s.l)([t,r])),12))}},6296:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(78340).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},9039:(e,t,r)=>{"use strict";var n=r(4101),i=r(63017),o=n.rotl32,s=n.sum32,a=n.sum32_3,l=n.sum32_4,u=i.BlockHash;function c(){if(!(this instanceof c))return new c;u.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.endian="little"}function f(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}n.inherits(c,u),t.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],u=this.h[3],c=this.h[4],g=r,y=n,v=i,b=u,w=c,A=0;A<80;A++){var x,E,_=s(o(l(r,f(A,n,i,u),e[h[A]+t],(x=A)<=15?0:x<=31?0x5a827999:x<=47?0x6ed9eba1:x<=63?0x8f1bbcdc:0xa953fd4e),p[A]),c);r=c,c=u,u=o(i,10),i=n,n=_,_=s(o(l(g,f(79-A,y,v,b),e[d[A]+t],(E=A)<=15?0x50a28be6:E<=31?0x5c4dd124:E<=47?0x6d703ef3:0x7a6d76e9*!!(E<=63)),m[A]),w),g=w,w=b,b=o(v,10),v=y,y=_}_=a(this.h[1],i,b),this.h[1]=a(this.h[2],u,w),this.h[2]=a(this.h[3],c,g),this.h[3]=a(this.h[4],r,y),this.h[4]=a(this.h[0],n,v),this.h[0]=_},c.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var h=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],d=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],p=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],m=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},9921:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(78340).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},11135:(e,t,r)=>{"use strict";r.d(t,{id:()=>o});var n=r(72385),i=r(57141);function o(e){return(0,n.S)((0,i.YW)(e))}},12590:(e,t)=>{"use strict";function r({widthInt:e,heightInt:t,blurWidth:r,blurHeight:n,blurDataURL:i,objectFit:o}){let s=r?40*r:e,a=n?40*n:t,l=s&&a?`viewBox='0 0 ${s} ${a}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${l}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3Cfe
1ColorMatrix 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='${l?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${i}'/%3E%3C/svg%3E`}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},13545:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(78340).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},14043:(e,t,r)=>{"use strict";r.d(t,{j:()=>c});var n=r(99502),i=r(51633),o=r(94927),s=r(42742);let a=new i.Vy(o.r),l=1;function u(e,t){let r="Web3LegacyFetcher";return function(e,i){let o={method:e,params:i,id:l++,jsonrpc:"2.0"};return new Promise((e,i)=>{this.emit("debug",{action:"request",fetcher:r,request:(0,n.A4)(o),provider:this}),t(o,(t,n)=>{if(t)return this.emit("debug",{action:"response",fetcher:r,error:t,request:o,provider:this}),i(t);if(this.emit("debug",{action:"response",fetcher:r,request:o,response:n,provider:this}),n.error){let e=Error(n.error.message);return e.code=n.error.code,e.data=n.error.data,i(e)}e(n.result)})})}}class c extends s.F{constructor(e,t){null==e&&a.throwArgumentError("missing provider","provider",e);let r=null,i=null,o=null;if("function"==typeof e)r="unknown:",i=e;else{if((r=e.host||e.path||"")||!e.isMetaMask||(r="metamask"),o=e,e.request)""===r&&(r="eip-1193:"),i=function(t,r){null==r&&(r=[]);let i={method:t,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,n.A4)(i),provider:this}),e.request(i).then(e=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:i,response:e,provider:this}),e),e=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:i,error:e,provider:this}),e})};else e.sendAsync?i=u(e,e.sendAsync.bind(e)):e.send?i=u(e,e.send.bind(e)):a.throwArgumentError("unsupported provider","provider",e);r||(r="unknown:")}super(r,t),(0,n.yY)(this,"jsonRpcFetchFunc",i),(0,n.yY)(this,"provider",o)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}},15157:e=>{"use strict";for(var t="qpzry9x8gf2tvdw0s3jn54khce6mua7l",r={},n=0;n<t.length;n++){var i=t.charAt(n);if(void 0!==r[i])throw TypeError(i+" is ambiguous");r[i]=n}function o(e){var t=e>>25;return(0x1ffffff&e)<<5^0x3b6a57b2&-(1&t)^0x26508e6d&-(t>>1&1)^0x1ea119fa&-(t>>2&1)^0x3d4233dd&-(t>>3&1)^0x2a1462b3&-(t>>4&1)}function s(e){for(var t=1,r=0;r<e.length;++r){var n=e.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+e+")";t=o(t)^n>>5}for(r=0,t=o(t);r<e.length;++r){var i=e.charCodeAt(r);t=o(t)^31&i}return t}function a(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var n=e.toLowerCase(),i=e.toUpperCase();if(e!==n&&e!==i)return"Mixed-case string "+e;var a=(e=n).lastIndexOf("1");if(-1===a)return"No separator character for "+e;if(0===a)return"Missing prefix for "+e;var l=e.slice(0,a),u=e.slice(a+1);if(u.length<6)return"Data too short";var c=s(l);if("string"==typeof c)return c;for(var f=[],h=0;h<u.length;++h){var d=u.charAt(h),p=r[d];if(void 0===p)return"Unknown character "+d;c=o(c)^p,h+6>=u.length||f.push(p)}return 1!==c?"Invalid checksum for "+e:{prefix:l,words:f}}function l(e,t,r,n){for(var i=0,o=0,s=(1<<r)-1,a=[],l=0;l<e.length;++l)for(i=i<<t|e[l],o+=t;o>=r;)a.push(i>>(o-=r)&s);if(n)o>0&&a.push(i<<r-o&s);else{if(o>=t)return"Excess padding";if(i<<r-o&s)return"Non-zero padding"}return a}e.exports={decodeUnsafe:function(){var e=a.apply(null,arguments);if("object"==typeof e)return e},decode:function(e){var t=a.apply(null,arguments);if("object"==typeof t)return t;throw Error(t)},encode:function(e,r,n){if(n=n||90,e.length+7+r.length>n)throw TypeError("Exceeds length limit");var i=s(e=e.toLowerCase());if("string"==typeof i)throw Error(i);for(var a=e+"1",l=0;l<r.length;++l){var u=r[l];if(u>>5!=0)throw Error("Non 5-bit word");i=o(i)^u,a+=t.charAt(u)}for(l=0;l<6;++l)i=o(i);for(i^=1,l=0;l<6;++l){var c=i>>(5-l)*5&31;a+=t.charAt(c)}return a},toWordsUnsafe:function(e){var t=l(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=l(e,8,5,!0);if(Array.isArray(t))return t;throw Error(t)},fromWordsUnsafe:function(e){var t=l(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=l(e,5,8,!1);if(Array.isArray(t))return t;throw Error(t)}}},15448:(e,t,r)=>{"use strict";r.d(t,{UC:()=>t6,In:()=>t5,q7:()=>t9,VF:()=>re,p4:()=>t7,ZL:()=>t4,bL:()=>t2,wn:()=>rr,PP:()=>rt,l9:()=>t3,LM:()=>t8});var n=r(12115),i=r(47650);function o(e,[t,r]){return Math.min(r,Math.max(t,e))}var s=r(70379),a=r(76094),l=r(47527),u=r(68599),c=r(1933),f=r(98454),h=r(54388),d=r(69885),p=r(89971);let m=["top","right","bottom","left"],g=Math.min,y=Math.max,v=Math.round,b=Math.floor,w=e=>({x:e,y:e}
1),A={left:"right",right:"left",bottom:"top",top:"bottom"},x={start:"end",end:"start"};function E(e,t){return"function"==typeof e?e(t):e}function _(e){return e.split("-")[0]}function k(e){return e.split("-")[1]}function N(e){return"x"===e?"y":"x"}function S(e){return"y"===e?"height":"width"}let M=new Set(["top","bottom"]);function R(e){return M.has(_(e))?"y":"x"}function P(e){return e.replace(/start|end/g,e=>x[e])}let I=["left","right"],C=["right","left"],T=["top","bottom"],O=["bottom","top"];function L(e){return e.replace(/left|right|bottom|top/g,e=>A[e])}function F(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function B(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function D(e,t,r){let n,{reference:i,floating:o}=e,s=R(t),a=N(R(t)),l=S(a),u=_(t),c="y"===s,f=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,d=i[l]/2-o[l]/2;switch(u){case"top":n={x:f,y:i.y-o.height};break;case"bottom":n={x:f,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:h};break;case"left":n={x:i.x-o.width,y:h};break;default:n={x:i.x,y:i.y}}switch(k(t)){case"start":n[a]-=d*(r&&c?-1:1);break;case"end":n[a]+=d*(r&&c?-1:1)}return n}let j=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=o.filter(Boolean),l=await (null==s.isRTL?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=D(u,n,l),h=n,d={},p=0;for(let r=0;r<a.length;r++){let{name:o,fn:m}=a[r],{x:g,y:y,data:v,reset:b}=await m({x:c,y:f,initialPlacement:n,placement:h,strategy:i,middlewareData:d,rects:u,platform:s,elements:{reference:e,floating:t}});c=null!=g?g:c,f=null!=y?y:f,d={...d,[o]:{...d[o],...v}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(u=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:c,y:f}=D(u,h,l)),r=-1)}return{x:c,y:f,placement:h,strategy:i,middlewareData:d}};async function U(e,t){var r;void 0===t&&(t={});let{x:n,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=E(t,e),p=F(d),m=a[h?"floating"===f?"reference":"floating":f],g=B(await o.getClippingRect({element:null==(r=await (null==o.isElement?void 0:o.isElement(m)))||r?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===f?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),b=await (null==o.isElement?void 0:o.isElement(v))&&await (null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},w=B(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-w.top+p.top)/b.y,bottom:(w.bottom-g.bottom+p.bottom)/b.y,left:(g.left-w.left+p.left)/b.x,right:(w.right-g.right+p.right)/b.x}}function z(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function V(e){return m.some(t=>e[t]>=0)}let H=new Set(["left","top"]);async function G(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),s=_(r),a=k(r),l="y"===R(r),u=H.has(s)?-1:1,c=o&&l?-1:1,f=E(t,e),{mainAxis:h,crossAxis:d,alignmentAxis:p}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof p&&(d="end"===a?-1*p:p),l?{x:d*c,y:h*u}:{x:h*u,y:d*c}}function q(){return"undefined"!=typeof window}function Y(e){return J(e)?(e.nodeName||"").toLowerCase():"#document"}function K(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function W(e){var t;return null==(t=(J(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function J(e){return!!q()&&(e instanceof Node||e instanceof K(e).Node)}function Q(e){return!!q()&&(e instanceof Element||e instanceof K(e).Element)}function X(e){return!!q()&&(e instanceof HTMLElement||e instanceof K(e).HTMLElement)}function $(e){return!!q()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof K(e).ShadowRoot)}let Z=new Set(["inline","contents"]);function ee(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=ef(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Z.has(i)}let et=new Set(["table","td","th"]),er=[":popover-open",":modal"];function en(e){return er.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let ei=["transform","translate","scale","rotate","perspective"],eo=["transform","translate","scale","rotate","perspective","filter"],es=["paint","layout","strict","content"];function ea(e){let t=el(),r=Q(e)?ef(e):e;return ei.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||eo.some(e=>(r.willChange||"").includes(e))||es.some(e=>(r.contain||"").includes(e))}function el(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let eu=new Set(["html","body","#document"]);function ec(e){return eu.has(Y(e))}function ef(e){return K(e).getComputedStyle(e)}function eh(e){return Q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ed(e){if("html"===Y(e))return e;let t=e.assignedSlot||e.parentNode||$(e)&&e.host||W(e);return $(t)?t.host:t}function ep(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let i=function e(t){let r=ed(t);return ec(r)?t.ownerDocument?t.ownerDocument.body:t.body:X(r)&&ee(r)?r:e(r)}(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),s=K(i);if(o){let e=em(s);
1return t.concat(s,s.visualViewport||[],ee(i)?i:[],e&&r?ep(e):[])}return t.concat(i,ep(i,[],r))}function em(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eg(e){let t=ef(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=X(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,a=v(r)!==o||v(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function ey(e){return Q(e)?e:e.contextElement}function ev(e){let t=ey(e);if(!X(t))return w(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=eg(t),s=(o?v(r.width):r.width)/n,a=(o?v(r.height):r.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}let eb=w(0);function ew(e){let t=K(e);return el()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eb}function eA(e,t,r,n){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),s=ey(e),a=w(1);t&&(n?Q(n)&&(a=ev(n)):a=ev(e));let l=(void 0===(i=r)&&(i=!1),n&&(!i||n===K(s))&&i)?ew(s):w(0),u=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,f=o.width/a.x,h=o.height/a.y;if(s){let e=K(s),t=n&&Q(n)?K(n):n,r=e,i=em(r);for(;i&&n&&t!==r;){let e=ev(i),t=i.getBoundingClientRect(),n=ef(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,c*=e.y,f*=e.x,h*=e.y,u+=o,c+=s,i=em(r=K(i))}}return B({width:f,height:h,x:u,y:c})}function ex(e,t){let r=eh(e).scrollLeft;return t?t.left+r:eA(W(e)).left+r}function eE(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-ex(e,r),y:r.top+t.scrollTop}}let e_=new Set(["absolute","fixed"]);function ek(e,t,r){var n;let i;if("viewport"===t)i=function(e,t){let r=K(e),n=W(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;let e=el();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}let u=ex(n);if(u<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,s=Math.abs(n.clientWidth-t.clientWidth-i);s<=25&&(o-=s)}else u<=25&&(o+=u);return{width:o,height:s,x:a,y:l}}(e,r);else if("document"===t){let t,r,o,s,a,l,u;n=W(e),t=W(n),r=eh(n),o=n.ownerDocument.body,s=y(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=y(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),l=-r.scrollLeft+ex(n),u=-r.scrollTop,"rtl"===ef(o).direction&&(l+=y(t.clientWidth,o.clientWidth)-s),i={width:s,height:a,x:l,y:u}}else if(Q(t)){let e,n,o,s,a,l;n=(e=eA(t,!0,"fixed"===r)).top+t.clientTop,o=e.left+t.clientLeft,s=X(t)?ev(t):w(1),a=t.clientWidth*s.x,l=t.clientHeight*s.y,i={width:a,height:l,x:o*s.x,y:n*s.y}}else{let r=ew(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return B(i)}function eN(e){return"static"===ef(e).position}function eS(e,t){if(!X(e)||"fixed"===ef(e).position)return null;if(t)return t(e);let r=e.offsetParent;return W(e)===r&&(r=r.ownerDocument.body),r}function eM(e,t){var r;let n=K(e);if(en(e))return n;if(!X(e)){let t=ed(e);for(;t&&!ec(t);){if(Q(t)&&!eN(t))return t;t=ed(t)}return n}let i=eS(e,t);for(;i&&(r=i,et.has(Y(r)))&&eN(i);)i=eS(i,t);return i&&ec(i)&&eN(i)&&!ea(i)?n:i||function(e){let t=ed(e);for(;X(t)&&!ec(t);){if(ea(t))return t;if(en(t))break;t=ed(t)}return null}(e)||n}let eR=async function(e){let t=this.getOffsetParent||eM,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=X(t),i=W(t),o="fixed"===r,s=eA(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=w(0);if(n||!n&&!o)if(("body"!==Y(t)||ee(i))&&(a=eh(t)),n){let e=eA(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=ex(i));o&&!n&&i&&(l.x=ex(i));let u=!i||n||o?w(0):eE(i,a);return{x:s.left+a.scrollLeft-l.x-u.x,y:s.top+a.scrollTop-l.y-u.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},eP={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o="fixed"===i,s=W(n),a=!!t&&en(t.floating);if(n===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},u=w(1),c=w(0),f=X(n);if((f||!f&&!o)&&(("body"!==Y(n)||ee(s))&&(l=eh(n)),X(n))){let e=eA(n);u=ev(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}
1let h=!s||f||o?w(0):eE(s,l);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+c.x+h.x,y:r.y*u.y-l.scrollTop*u.y+c.y+h.y}},getDocumentElement:W,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[..."clippingAncestors"===r?en(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=ep(e,[],!1).filter(e=>Q(e)&&"body"!==Y(e)),i=null,o="fixed"===ef(e).position,s=o?ed(e):e;for(;Q(s)&&!ec(s);){let t=ef(s),r=ea(s);r||"fixed"!==t.position||(i=null),(o?!r&&!i:!r&&"static"===t.position&&!!i&&e_.has(i.position)||ee(s)&&!r&&function e(t,r){let n=ed(t);return!(n===r||!Q(n)||ec(n))&&("fixed"===ef(n).position||e(n,r))}(e,s))?n=n.filter(e=>e!==s):i=t,s=ed(s)}return t.set(e,n),n}(t,this._c):[].concat(r),n],s=o[0],a=o.reduce((e,r)=>{let n=ek(t,r,i);return e.top=y(n.top,e.top),e.right=g(n.right,e.right),e.bottom=g(n.bottom,e.bottom),e.left=y(n.left,e.left),e},ek(t,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:eM,getElementRects:eR,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=eg(e);return{width:t,height:r}},getScale:ev,isElement:Q,isRTL:function(e){return"rtl"===ef(e).direction}};function eI(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eC=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=E(e,t)||{};if(null==u)return{};let f=F(c),h={x:r,y:n},d=N(R(i)),p=S(d),m=await s.getDimensions(u),v="y"===d,b=v?"clientHeight":"clientWidth",w=o.reference[p]+o.reference[d]-h[d]-o.floating[p],A=h[d]-o.reference[d],x=await (null==s.getOffsetParent?void 0:s.getOffsetParent(u)),_=x?x[b]:0;_&&await (null==s.isElement?void 0:s.isElement(x))||(_=a.floating[b]||o.floating[p]);let M=_/2-m[p]/2-1,P=g(f[v?"top":"left"],M),I=g(f[v?"bottom":"right"],M),C=_-m[p]-I,T=_/2-m[p]/2+(w/2-A/2),O=y(P,g(T,C)),L=!l.arrow&&null!=k(i)&&T!==O&&o.reference[p]/2-(T<P?P:I)-m[p]/2<0,B=L?T<P?T-P:T-C:0;return{[d]:h[d]+B,data:{[d]:O,centerOffset:T-O-B,...L&&{alignmentOffset:B}},reset:L}}});var eT="undefined"!=typeof document?n.useLayoutEffect:function(){};function eO(e,t){let r,n,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!eO(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!eO(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function eL(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eF(e,t){let r=eL(e);return Math.round(t*r)/r}function eB(e){let t=n.useRef(e);return eT(()=>{t.current=e}),t}var eD=r(55897),ej=r(95155),eU=n.forwardRef((e,t)=>{let{children:r,width:n=10,height:i=5,...o}=e;return(0,ej.jsx)(eD.sG.svg,{...o,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,ej.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eU.displayName="Arrow";var ez=r(17347),eV=r(66294),eH="Popper",[eG,eq]=(0,u.A)(eH),[eY,eK]=eG(eH),eW=e=>{let{__scopePopper:t,children:r}=e,[i,o]=n.useState(null);return(0,ej.jsx)(eY,{scope:t,anchor:i,onAnchorChange:o,children:r})};eW.displayName=eH;var eJ="PopperAnchor",eQ=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:i,...o}=e,s=eK(eJ,r),a=n.useRef(null),u=(0,l.s)(t,a),c=n.useRef(null);return n.useEffect(()=>{let e=c.current;c.current=i?.current||a.current,e!==c.current&&s.onAnchorChange(c.current)}),i?null:(0,ej.jsx)(eD.sG.div,{...o,ref:u})});eQ.displayName=eJ;var eX="PopperContent",[e$,eZ]=eG(eX),e0=n.forwardRef((e,t)=>{var r,o,s,a,u,c,f,h,d,p,m,v,w,A,x,M,F,B,D,q,Y;let{__scopePopper:K,side:J="bottom",sideOffset:Q=0,align:X="center",alignOffset:$=0,arrowPadding:Z=0,avoidCollisions:ee=!0,collisionBoundary:et=[],collisionPadding:er=0,sticky:en="partial",hideWhenDetached:ei=!1,updatePositionStrategy:eo="optimized",onPlaced:es,...ea}=e,el=eK(eX,K),[eu,ec]=n.useState(null),ef=(0,l.s)(t,e=>ec(e)),[eh,ed]=n.useState(null),em=function(e){let[t,r]=n.useState(void 0);return(0,eV.N)(()=>
1{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(eh),eg=em?.width??0,ev=em?.height??0,eb="number"==typeof er?er:{top:0,right:0,bottom:0,left:0,...er},ew=Array.isArray(et)?et:[et],ex=ew.length>0,eE={padding:eb,boundary:ew.filter(e5),altBoundary:ex},{refs:e_,floatingStyles:ek,placement:eN,isPositioned:eS,middlewareData:eM}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:s,elements:{reference:a,floating:l}={},transform:u=!0,whileElementsMounted:c,open:f}=e,[h,d]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=n.useState(o);eO(p,o)||m(o);let[g,y]=n.useState(null),[v,b]=n.useState(null),w=n.useCallback(e=>{e!==_.current&&(_.current=e,y(e))},[]),A=n.useCallback(e=>{e!==k.current&&(k.current=e,b(e))},[]),x=a||g,E=l||v,_=n.useRef(null),k=n.useRef(null),N=n.useRef(h),S=null!=c,M=eB(c),R=eB(s),P=eB(f),I=n.useCallback(()=>{var e,n;let o,s,a;if(!_.current||!k.current)return;let l={placement:t,strategy:r,middleware:p};R.current&&(l.platform=R.current),(e=_.current,n=k.current,o=new Map,a={...(s={platform:eP,...l}).platform,_c:o},j(e,n,{...s,platform:a})).then(e=>{let t={...e,isPositioned:!1!==P.current};C.current&&!eO(N.current,t)&&(N.current=t,i.flushSync(()=>{d(t)}))})},[p,t,r,R,P]);eT(()=>{!1===f&&N.current.isPositioned&&(N.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[f]);let C=n.useRef(!1);eT(()=>(C.current=!0,()=>{C.current=!1}),[]),eT(()=>{if(x&&(_.current=x),E&&(k.current=E),x&&E){if(M.current)return M.current(x,E,I);I()}},[x,E,I,M,S]);let T=n.useMemo(()=>({reference:_,floating:k,setReference:w,setFloating:A}),[w,A]),O=n.useMemo(()=>({reference:x,floating:E}),[x,E]),L=n.useMemo(()=>{let e={position:r,left:0,top:0};if(!O.floating)return e;let t=eF(O.floating,h.x),n=eF(O.floating,h.y);return u?{...e,transform:"translate("+t+"px, "+n+"px)",...eL(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,u,O.floating,h.x,h.y]);return n.useMemo(()=>({...h,update:I,refs:T,elements:O,floatingStyles:L}),[h,I,T,O,L])}({strategy:"fixed",placement:J+("center"!==X?"-"+X:""),whileElementsMounted:(...e)=>(function(e,t,r,n){let i;void 0===n&&(n={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=n,c=ey(e),f=o||s?[...c?ep(c):[],...ep(t)]:[];f.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),s&&e.addEventListener("resize",r)});let h=c&&l?function(e,t){let r,n=null,i=W(e);function o(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),o();let u=e.getBoundingClientRect(),{left:c,top:f,width:h,height:d}=u;if(a||t(),!h||!d)return;let p={rootMargin:-b(f)+"px "+-b(i.clientWidth-(c+h))+"px "+-b(i.clientHeight-(f+d))+"px "+-b(c)+"px",threshold:y(0,g(1,l))||1},m=!0;function v(t){let n=t[0].intersectionRatio;if(n!==l){if(!m)return s();n?s(!1,n):r=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==n||eI(u,e.getBoundingClientRect())||s(),m=!1}try{n=new IntersectionObserver(v,{...p,root:i.ownerDocument})}catch(e){n=new IntersectionObserver(v,p)}n.observe(e)}(!0),o}(c,r):null,d=-1,p=null;a&&(p=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),r()}),c&&!u&&p.observe(c),p.observe(t));let m=u?eA(e):null;return u&&function t(){let n=eA(e);m&&!eI(m,n)&&r(),m=n,i=requestAnimationFrame(t)}(),r(),()=>{var e;f.forEach(e=>{o&&e.removeEventListener("scroll",r),s&&e.removeEventListener("resize",r)}),null==h||h(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(i)}})(...e,{animationFrame:"always"===eo}),elements:{reference:el.anchor},middleware:[{...{name:"offset",options:s=r={mainAxis:Q+ev,alignmentAxis:$},async fn(e){var t,r;let{x:n,y:i,placement:o,middlewareData:a}=e,l=await G(e,s);return o===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:n+l.x,y:i+l.y,data:{...l,placement:o}}}},options:[r,o]},ee&&{...{name:"shift",options:d=f={mainAxis:!0,crossAxis:!1,limiter:"partial"===en?{...(void 0===(c=a)&&(c={}),{options:c,fn(e){let{x:t,y:r,placement:n,rects:i,middlewareData:o}=e,{offset:s=0,mainAxis:a=!0,crossAxis:l=!0}=E(c,e),u={x:t,y:r},f=R(n),h=N(f),d=u[h],p=u[f],m=E(s,e),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(a){let e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+g.mainAxis,r=i.reference[h]+i.reference[e]-g.mainAxis;d<t?d=t:d>r&&(d=r)}if(l){var y,v;let e="y"===h?"width":"height",t=H.has(_(n)),r=i.reference[f]-i.floating[e]+(t&&(null==(y=o.offset)?void 0:y[f])||0)+(t?0:g.crossAxis),s=i.reference[f]+i.reference[e]+(t?0:(null==(v=o.offset)?void 0:v[f])||0)-(t?g.crossAxis:0);p<r?p=r:p>s&&(p=s)}return{[h]:d,[f]:p}}}),options:[a,u]}:void 0,...eE},async fn(e){let{x:t,y:r,placement:n}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...a}=E(d,e),l={x:t,y:r},u=await U(e,a),c=R(_(n)),f=N(c),h=l[f],p=l[c];if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",r=h+u[e],n=h-u[t];h=y(r,g(h,n))}if(o){let e="y"===c?"top":"left",t="y"===c?"bottom":"right",r=p+u[e],n=p-u[t];p=y(r,g(p,n))}let m=s.fn({...e,[f]:h,[c]:p});return{...m,data:{x:m.x-t,y:m.y-r,enabled:{[f]:i,[c]:o}}}}},options:[f,h]},ee&&{...{name:"flip",options:v=p={...eE},async fn(e){var t,r,n,i,o,s,a,l;let u,c,f,{placement:h,middlewareData:d,rects:p,initialPlacement:m,platform:g,elements:y}=e,{mainAxis:b=!0,crossAxis:w=!0,fallbackPlacements:A,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:F=!0,...B}=E(v,e);if(null!=(t=d.arrow)&&t.alignmentOffset)return{};let D=_(h),j=R(m),z=_(m)===m,V=await (null==g.isRTL?void 0:g.isRTL(y.floating)),H=A||(z||!F?[L(m)]:(u=L(m),[P(m),u,P(u)])),G="none"!==M;!A&&G&&H.push(...(c=k(m),f=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?C:I;return t?I:C;case"left":case"right":return t?T:O;default:return[]}}(_(m),"start"===M,V),c&&(f=f.map(e=>e+"-"+c),F&&(f=f.concat(f.map(P)))),f));let q=[m,...H],Y=await U(e,B),K=[],W=(null==(r=d.flip)?void 0:r.overflows)||[];if(b&&K.push(Y[D]),w){let e,t,r,n,i=(s=h,a=p,void 0===(l=V)&&(l=!1),e=k(s),r=S(t=N(R(s))),n="x"===t?e===(l?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[r]>a.floating[r]&&(n=L(n)),[n,L(n)]);K.push(Y[i[0]],Y[i[1]])}if(W=[...W,{placement:h,overflows:K}],!K.every(e=>e<=0)){let e=((null==(n=d.flip)?void 0:n.index)||0)+1,t=q[e];
1if(t&&("alignment"!==w||j===R(t)||W.every(e=>R(e.placement)!==j||e.overflows[0]>0)))return{data:{index:e,overflows:W},reset:{placement:t}};let r=null==(i=W.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!r)switch(x){case"bestFit":{let e=null==(o=W.filter(e=>{if(G){let t=R(e.placement);return t===j||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(r=e);break}case"initialPlacement":r=m}if(h!==r)return{reset:{placement:r}}}return{}}},options:[p,m]},{...{name:"size",options:x=w={...eE,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:i,height:o}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${r}px`),s.setProperty("--radix-popper-available-height",`${n}px`),s.setProperty("--radix-popper-anchor-width",`${i}px`),s.setProperty("--radix-popper-anchor-height",`${o}px`)}},async fn(e){var t,r;let n,i,{placement:o,rects:s,platform:a,elements:l}=e,{apply:u=()=>{},...c}=E(x,e),f=await U(e,c),h=_(o),d=k(o),p="y"===R(o),{width:m,height:v}=s.floating;"top"===h||"bottom"===h?(n=h,i=d===(await (null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(i=h,n="end"===d?"top":"bottom");let b=v-f.top-f.bottom,w=m-f.left-f.right,A=g(v-f[n],b),N=g(m-f[i],w),S=!e.middlewareData.shift,M=A,P=N;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(P=w),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(M=b),S&&!d){let e=y(f.left,0),t=y(f.right,0),r=y(f.top,0),n=y(f.bottom,0);p?P=m-2*(0!==e||0!==t?e+t:y(f.left,f.right)):M=v-2*(0!==r||0!==n?r+n:y(f.top,f.bottom))}await u({...e,availableWidth:P,availableHeight:M});let I=await a.getDimensions(l.floating);return m!==I.width||v!==I.height?{reset:{rects:!0}}:{}}},options:[w,A]},eh&&{...{name:"arrow",options:B=M={element:eh,padding:Z},fn(e){let{element:t,padding:r}="function"==typeof B?B(e):B;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eC({element:t.current,padding:r}).fn(e):{}:t?eC({element:t,padding:r}).fn(e):{}}},options:[M,F]},e4({arrowWidth:eg,arrowHeight:ev}),ei&&{...{name:"hide",options:Y=D={strategy:"referenceHidden",...eE},async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...n}=E(Y,e);switch(r){case"referenceHidden":{let r=z(await U(e,{...n,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:V(r)}}}case"escaped":{let r=z(await U(e,{...n,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:V(r)}}}default:return{}}}},options:[D,q]}]}),[eR,eU]=e6(eN),eH=(0,ez.c)(es);(0,eV.N)(()=>{eS&&eH?.()},[eS,eH]);let eG=eM.arrow?.x,eq=eM.arrow?.y,eY=eM.arrow?.centerOffset!==0,[eW,eJ]=n.useState();return(0,eV.N)(()=>{eu&&eJ(window.getComputedStyle(eu).zIndex)},[eu]),(0,ej.jsx)("div",{ref:e_.setFloating,"data-radix-popper-content-wrapper":"",style:{...ek,transform:eS?ek.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eW,"--radix-popper-transform-origin":[eM.transformOrigin?.x,eM.transformOrigin?.y].join(" "),...eM.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ej.jsx)(e$,{scope:K,placedSide:eR,onArrowChange:ed,arrowX:eG,arrowY:eq,shouldHideArrow:eY,children:(0,ej.jsx)(eD.sG.div,{"data-side":eR,"data-align":eU,...ea,ref:ef,style:{...ea.style,animation:eS?void 0:"none"}})})})});e0.displayName=eX;var e1="PopperArrow",e2={top:"bottom",right:"left",bottom:"top",left:"right"},e3=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,i=eZ(e1,r),o=e2[i.placedSide];return(0,ej.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,ej.jsx)(eU,{...n,ref:t,style:{...n.style,display:"block"}})})});function e5(e){return null!==e}e3.displayName=e1;var e4=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,s=o?0:e.arrowWidth,a=o?0:e.arrowHeight,[l,u]=e6(r),c={start:"0%",center:"50%",end:"100%"}[u],f=(i.arrow?.x??0)+s/2,h=(i.arrow?.y??0)+a/2,d="",p="";return"bottom"===l?(d=o?c:`${f}px`,p=`${-a}px`):"top"===l?(d=o?c:`${f}px`,p=`${n.floating.height+a}px`):"right"===l?(d=`${-a}px`,p=o?c:`${h}px`):"left"===l&&(d=`${n.floating.width+a}px`,p=o?c:`${h}px`),{data:{x:d,y:p}}}});function e6(e){let[t,r="center"]=e.split("-");return[t,r]}var e8=r(19040),e9=r(42442),e7=r(98979),te=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});n.forwardRef((e,t)=>
1(0,ej.jsx)(eD.sG.span,{...e,ref:t,style:{...te,...e.style}})).displayName="VisuallyHidden";var tt=r(22954),tr=r(5339),tn=[" ","Enter","ArrowUp","ArrowDown"],ti=[" ","Enter"],to="Select",[ts,ta,tl]=(0,a.N)(to),[tu,tc]=(0,u.A)(to,[tl,eq]),tf=eq(),[th,td]=tu(to),[tp,tm]=tu(to),tg=e=>{let{__scopeSelect:t,children:r,open:i,defaultOpen:o,onOpenChange:s,value:a,defaultValue:l,onValueChange:u,dir:f,name:h,autoComplete:d,disabled:m,required:g,form:y}=e,v=tf(t),[b,w]=n.useState(null),[A,x]=n.useState(null),[E,_]=n.useState(!1),k=(0,c.jH)(f),[N,S]=(0,e7.i)({prop:i,defaultProp:o??!1,onChange:s,caller:to}),[M,R]=(0,e7.i)({prop:a,defaultProp:l,onChange:u,caller:to}),P=n.useRef(null),I=!b||y||!!b.closest("form"),[C,T]=n.useState(new Set),O=Array.from(C).map(e=>e.props.value).join(";");return(0,ej.jsx)(eW,{...v,children:(0,ej.jsxs)(th,{required:g,scope:t,trigger:b,onTriggerChange:w,valueNode:A,onValueNodeChange:x,valueNodeHasChildren:E,onValueNodeHasChildrenChange:_,contentId:(0,p.B)(),value:M,onValueChange:R,open:N,onOpenChange:S,dir:k,triggerPointerDownPosRef:P,disabled:m,children:[(0,ej.jsx)(ts.Provider,{scope:t,children:(0,ej.jsx)(tp,{scope:e.__scopeSelect,onNativeOptionAdd:n.useCallback(e=>{T(t=>new Set(t).add(e))},[]),onNativeOptionRemove:n.useCallback(e=>{T(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),I?(0,ej.jsxs)(t$,{"aria-hidden":!0,required:g,tabIndex:-1,name:h,autoComplete:d,value:M,onChange:e=>R(e.target.value),disabled:m,form:y,children:[void 0===M?(0,ej.jsx)("option",{value:""}):null,Array.from(C)]},O):null]})})};tg.displayName=to;var ty="SelectTrigger",tv=n.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:i=!1,...o}=e,a=tf(r),u=td(ty,r),c=u.disabled||i,f=(0,l.s)(t,u.onTriggerChange),h=ta(r),d=n.useRef("touch"),[p,m,g]=t0(e=>{let t=h().filter(e=>!e.disabled),r=t.find(e=>e.value===u.value),n=t1(t,e,r);void 0!==n&&u.onValueChange(n.value)}),y=e=>{c||(u.onOpenChange(!0),g()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,ej.jsx)(eQ,{asChild:!0,...a,children:(0,ej.jsx)(eD.sG.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":tZ(u.value)?"":void 0,...o,ref:f,onClick:(0,s.mK)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==d.current&&y(e)}),onPointerDown:(0,s.mK)(o.onPointerDown,e=>{d.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(y(e),e.preventDefault())}),onKeyDown:(0,s.mK)(o.onKeyDown,e=>{let t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&tn.includes(e.key)&&(y(),e.preventDefault())})})})});tv.displayName=ty;var tb="SelectValue";n.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:i,children:o,placeholder:s="",...a}=e,u=td(tb,r),{onValueNodeHasChildrenChange:c}=u,f=void 0!==o,h=(0,l.s)(t,u.onValueNodeChange);return(0,eV.N)(()=>{c(f)},[c,f]),(0,ej.jsx)(eD.sG.span,{...a,ref:h,style:{pointerEvents:"none"},children:tZ(u.value)?(0,ej.jsx)(ej.Fragment,{children:s}):o})}).displayName=tb;var tw=n.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...i}=e;return(0,ej.jsx)(eD.sG.span,{"aria-hidden":!0,...i,ref:t,children:n||"▼"})});tw.displayName="SelectIcon";var tA=e=>(0,ej.jsx)(e8.Z,{asChild:!0,...e});tA.displayName="SelectPortal";var tx="SelectContent",tE=n.forwardRef((e,t)=>{let r=td(tx,e.__scopeSelect),[o,s]=n.useState();return((0,eV.N)(()=>{s(new DocumentFragment)},[]),r.open)?(0,ej.jsx)(tS,{...e,ref:t}):o?i.createPortal((0,ej.jsx)(t_,{scope:e.__scopeSelect,children:(0,ej.jsx)(ts.Slot,{scope:e.__scopeSelect,children:(0,ej.jsx)("div",{children:e.children})})}),o):null});tE.displayName=tx;var[t_,tk]=tu(tx),tN=(0,e9.TL)("SelectContent.RemoveScroll"),tS=n.forwardRef((e,t)=>{let{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:u,side:c,sideOffset:p,align:m,alignOffset:g,arrowPadding:y,collisionBoundary:v,collisionPadding:b,sticky:w,hideWhenDetached:A,avoidCollisions:x,...E}=e,_=td(tx,r),[k,N]=n.useState(null),[S,M]=n.useState(null),R=(0,l.s)(t,e=>N(e)),[P,I]=n.useState(null),[C,T]=n.useState(null),O=ta(r),[L,F]=n.useState(!1),B=n.useRef(!1);n.useEffect(()=>{if(k)return(0,tt.Eq)(k)},[k]),(0,h.Oh)();let D=n.useCallback(e=>{let[t,...r]=O().map(e=>e.ref.current),[n]=r.slice(-1),i=document.activeElement;for(let r of e)if(r===i||(r?.scrollIntoView({block:"nearest"}),r===t&&S&&(S.scrollTop=0),r===n&&S&&(S.scrollTop=S.scrollHeight),r?.focus(),document.activeElement!==i))return},[O,S]),j=n.useCallback(()=>D([P,k]),[D,P,k]);n.useEffect(()=>{L&&j()},[L,j]);let{onOpenChange:U,triggerPointerDownPosRef:z}=_;n.useEffect(()=>{if(k){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(z.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(z.current?.y??0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():k.contains(r.target)||U(!1),document.removeEventListener("pointermove",t),z.current=null};return null!==z.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[k,U,z]),n.useEffect(()=>{let e=()=>U(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[U]);let[V,H]=t0(e=>
1{let t=O().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=t1(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),G=n.useCallback((e,t,r)=>{let n=!B.current&&!r;(void 0!==_.value&&_.value===t||n)&&(I(e),n&&(B.current=!0))},[_.value]),q=n.useCallback(()=>k?.focus(),[k]),Y=n.useCallback((e,t,r)=>{let n=!B.current&&!r;(void 0!==_.value&&_.value===t||n)&&T(e)},[_.value]),K="popper"===i?tR:tM,W=K===tR?{side:c,sideOffset:p,align:m,alignOffset:g,arrowPadding:y,collisionBoundary:v,collisionPadding:b,sticky:w,hideWhenDetached:A,avoidCollisions:x}:{};return(0,ej.jsx)(t_,{scope:r,content:k,viewport:S,onViewportChange:M,itemRefCallback:G,selectedItem:P,onItemLeave:q,itemTextRefCallback:Y,focusSelectedItem:j,selectedItemText:C,position:i,isPositioned:L,searchRef:V,children:(0,ej.jsx)(tr.A,{as:tN,allowPinchZoom:!0,children:(0,ej.jsx)(d.n,{asChild:!0,trapped:_.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,s.mK)(o,e=>{_.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,ej.jsx)(f.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:(0,ej.jsx)(K,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:e=>e.preventDefault(),...E,...W,onPlaced:()=>F(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:(0,s.mK)(E.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||H(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=O().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>D(t)),e.preventDefault()}})})})})})})});tS.displayName="SelectContentImpl";var tM=n.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:i,...s}=e,a=td(tx,r),u=tk(tx,r),[c,f]=n.useState(null),[h,d]=n.useState(null),p=(0,l.s)(t,e=>d(e)),m=ta(r),g=n.useRef(!1),y=n.useRef(!0),{viewport:v,selectedItem:b,selectedItemText:w,focusSelectedItem:A}=u,x=n.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&h&&v&&b&&w){let e=a.trigger.getBoundingClientRect(),t=h.getBoundingClientRect(),r=a.valueNode.getBoundingClientRect(),n=w.getBoundingClientRect();if("rtl"!==a.dir){let i=n.left-t.left,s=r.left-i,a=e.left-s,l=e.width+a,u=Math.max(l,t.width),f=o(s,[10,Math.max(10,window.innerWidth-10-u)]);c.style.minWidth=l+"px",c.style.left=f+"px"}else{let i=t.right-n.right,s=window.innerWidth-r.right-i,a=window.innerWidth-e.right-s,l=e.width+a,u=Math.max(l,t.width),f=o(s,[10,Math.max(10,window.innerWidth-10-u)]);c.style.minWidth=l+"px",c.style.right=f+"px"}let s=m(),l=window.innerHeight-20,u=v.scrollHeight,f=window.getComputedStyle(h),d=parseInt(f.borderTopWidth,10),p=parseInt(f.paddingTop,10),y=parseInt(f.borderBottomWidth,10),A=d+p+u+parseInt(f.paddingBottom,10)+y,x=Math.min(5*b.offsetHeight,A),E=window.getComputedStyle(v),_=parseInt(E.paddingTop,10),k=parseInt(E.paddingBottom,10),N=e.top+e.height/2-10,S=b.offsetHeight/2,M=d+p+(b.offsetTop+S);if(M<=N){let e=s.length>0&&b===s[s.length-1].ref.current;c.style.bottom="0px";let t=Math.max(l-N,S+(e?k:0)+(h.clientHeight-v.offsetTop-v.offsetHeight)+y);c.style.height=M+t+"px"}else{let e=s.length>0&&b===s[0].ref.current;c.style.top="0px";let t=Math.max(N,d+v.offsetTop+(e?_:0)+S);c.style.height=t+(A-M)+"px",v.scrollTop=M-N+v.offsetTop}c.style.margin="10px 0",c.style.minHeight=x+"px",c.style.maxHeight=l+"px",i?.(),requestAnimationFrame(()=>g.current=!0)}},[m,a.trigger,a.valueNode,c,h,v,b,w,a.dir,i]);(0,eV.N)(()=>x(),[x]);let[E,_]=n.useState();(0,eV.N)(()=>{h&&_(window.getComputedStyle(h).zIndex)},[h]);let k=n.useCallback(e=>{e&&!0===y.current&&(x(),A?.(),y.current=!1)},[x,A]);return(0,ej.jsx)(tP,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:k,children:(0,ej.jsx)("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:(0,ej.jsx)(eD.sG.div,{...s,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});tM.displayName="SelectItemAlignedPosition";var tR=n.forwardRef((e,t)=>
1{let{__scopeSelect:r,align:n="start",collisionPadding:i=10,...o}=e,s=tf(r);return(0,ej.jsx)(e0,{...s,...o,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});tR.displayName="SelectPopperPosition";var[tP,tI]=tu(tx,{}),tC="SelectViewport",tT=n.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:i,...o}=e,a=tk(tC,r),u=tI(tC,r),c=(0,l.s)(t,a.onViewportChange),f=n.useRef(0);return(0,ej.jsxs)(ej.Fragment,{children:[(0,ej.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,ej.jsx)(ts.Slot,{scope:r,children:(0,ej.jsx)(eD.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,s.mK)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=u;if(n?.current&&r){let e=Math.abs(f.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,i=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(i<n){let o=i+e,s=Math.min(n,o),a=o-s;r.style.height=s+"px","0px"===r.style.bottom&&(t.scrollTop=a>0?a:0,r.style.justifyContent="flex-end")}}}f.current=t.scrollTop})})})]})});tT.displayName=tC;var tO="SelectGroup",[tL,tF]=tu(tO);n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=(0,p.B)();return(0,ej.jsx)(tL,{scope:r,id:i,children:(0,ej.jsx)(eD.sG.div,{role:"group","aria-labelledby":i,...n,ref:t})})}).displayName=tO;var tB="SelectLabel";n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=tF(tB,r);return(0,ej.jsx)(eD.sG.div,{id:i.id,...n,ref:t})}).displayName=tB;var tD="SelectItem",[tj,tU]=tu(tD),tz=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:i,disabled:o=!1,textValue:a,...u}=e,c=td(tD,r),f=tk(tD,r),h=c.value===i,[d,m]=n.useState(a??""),[g,y]=n.useState(!1),v=(0,l.s)(t,e=>f.itemRefCallback?.(e,i,o)),b=(0,p.B)(),w=n.useRef("touch"),A=()=>{o||(c.onValueChange(i),c.onOpenChange(!1))};if(""===i)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,ej.jsx)(tj,{scope:r,value:i,disabled:o,textId:b,isSelected:h,onItemTextChange:n.useCallback(e=>{m(t=>t||(e?.textContent??"").trim())},[]),children:(0,ej.jsx)(ts.ItemSlot,{scope:r,value:i,disabled:o,textValue:d,children:(0,ej.jsx)(eD.sG.div,{role:"option","aria-labelledby":b,"data-highlighted":g?"":void 0,"aria-selected":h&&g,"data-state":h?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...u,ref:v,onFocus:(0,s.mK)(u.onFocus,()=>y(!0)),onBlur:(0,s.mK)(u.onBlur,()=>y(!1)),onClick:(0,s.mK)(u.onClick,()=>{"mouse"!==w.current&&A()}),onPointerUp:(0,s.mK)(u.onPointerUp,()=>{"mouse"===w.current&&A()}),onPointerDown:(0,s.mK)(u.onPointerDown,e=>{w.current=e.pointerType}),onPointerMove:(0,s.mK)(u.onPointerMove,e=>{w.current=e.pointerType,o?f.onItemLeave?.():"mouse"===w.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,s.mK)(u.onPointerLeave,e=>{e.currentTarget===document.activeElement&&f.onItemLeave?.()}),onKeyDown:(0,s.mK)(u.onKeyDown,e=>{(f.searchRef?.current===""||" "!==e.key)&&(ti.includes(e.key)&&A()," "===e.key&&e.preventDefault())})})})})});tz.displayName=tD;var tV="SelectItemText",tH=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:o,style:s,...a}=e,u=td(tV,r),c=tk(tV,r),f=tU(tV,r),h=tm(tV,r),[d,p]=n.useState(null),m=(0,l.s)(t,e=>p(e),f.onItemTextChange,e=>c.itemTextRefCallback?.(e,f.value,f.disabled)),g=d?.textContent,y=n.useMemo(()=>(0,ej.jsx)("option",{value:f.value,disabled:f.disabled,children:g},f.value),[f.disabled,f.value,g]),{onNativeOptionAdd:v,onNativeOptionRemove:b}=h;return(0,eV.N)(()=>(v(y),()=>b(y)),[v,b,y]),(0,ej.jsxs)(ej.Fragment,{children:[(0,ej.jsx)(eD.sG.
1span,{id:f.textId,...a,ref:m}),f.isSelected&&u.valueNode&&!u.valueNodeHasChildren?i.createPortal(a.children,u.valueNode):null]})});tH.displayName=tV;var tG="SelectItemIndicator",tq=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return tU(tG,r).isSelected?(0,ej.jsx)(eD.sG.span,{"aria-hidden":!0,...n,ref:t}):null});tq.displayName=tG;var tY="SelectScrollUpButton",tK=n.forwardRef((e,t)=>{let r=tk(tY,e.__scopeSelect),i=tI(tY,e.__scopeSelect),[o,s]=n.useState(!1),a=(0,l.s)(t,i.onScrollButtonChange);return(0,eV.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){s(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,ej.jsx)(tQ,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});tK.displayName=tY;var tW="SelectScrollDownButton",tJ=n.forwardRef((e,t)=>{let r=tk(tW,e.__scopeSelect),i=tI(tW,e.__scopeSelect),[o,s]=n.useState(!1),a=(0,l.s)(t,i.onScrollButtonChange);return(0,eV.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;s(Math.ceil(t.scrollTop)<e)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,ej.jsx)(tQ,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});tJ.displayName=tW;var tQ=n.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:i,...o}=e,a=tk("SelectScrollButton",r),l=n.useRef(null),u=ta(r),c=n.useCallback(()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)},[]);return n.useEffect(()=>()=>c(),[c]),(0,eV.N)(()=>{let e=u().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[u]),(0,ej.jsx)(eD.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,s.mK)(o.onPointerDown,()=>{null===l.current&&(l.current=window.setInterval(i,50))}),onPointerMove:(0,s.mK)(o.onPointerMove,()=>{a.onItemLeave?.(),null===l.current&&(l.current=window.setInterval(i,50))}),onPointerLeave:(0,s.mK)(o.onPointerLeave,()=>{c()})})});n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,ej.jsx)(eD.sG.div,{"aria-hidden":!0,...n,ref:t})}).displayName="SelectSeparator";var tX="SelectArrow";n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=tf(r),o=td(tX,r),s=tk(tX,r);return o.open&&"popper"===s.position?(0,ej.jsx)(e3,{...i,...n,ref:t}):null}).displayName=tX;var t$=n.forwardRef(({__scopeSelect:e,value:t,...r},i)=>{let o,s=n.useRef(null),a=(0,l.s)(i,s),u=(o=n.useRef({value:t,previous:t}),n.useMemo(()=>(o.current.value!==t&&(o.current.previous=o.current.value,o.current.value=t),o.current.previous),[t]));return n.useEffect(()=>{let e=s.current;if(!e)return;let r=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(u!==t&&r){let n=new Event("change",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[u,t]),(0,ej.jsx)(eD.sG.select,{...r,style:{...te,...r.style},ref:a,defaultValue:t})});function tZ(e){return""===e||void 0===e}function t0(e){let t=(0,ez.c)(e),r=n.useRef(""),i=n.useRef(0),o=n.useCallback(e=>{let n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(i.current),""!==t&&(i.current=window.setTimeout(()=>e(""),1e3))}(n)},[t]),s=n.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,o,s]}function t1(e,t,r){var n,i;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,s=r?e.indexOf(r):-1,a=(n=e,i=Math.max(s,0),n.map((e,t)=>n[(i+t)%n.length]));1===o.length&&(a=a.filter(e=>e!==r));let l=a.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}t$.displayName="SelectBubbleInput";var t2=tg,t3=tv,t5=tw,t4=tA,t6=tE,t8=tT,t9=tz,t7=tH,re=tq,rt=tK,rr=tJ},17150:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let n=r(73623)._(r(12115)),i=r(55762),o=n.default.createContext(i.imageConfigDefault)},17347:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(12115);function i(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},18857:(e,t)=>{"use strict";function r(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>
1Math.abs(t-r)<Math.abs(e-r)?t:e,0):r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findClosestQuality",{enumerable:!0,get:function(){return r}})},19040:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(12115),i=r(47650),o=r(55897),s=r(66294),a=r(95155),l=n.forwardRef((e,t)=>{let{container:r,...l}=e,[u,c]=n.useState(!1);(0,s.N)(()=>c(!0),[]);let f=r||u&&globalThis?.document?.body;return f?i.createPortal((0,a.jsx)(o.sG.div,{...l,ref:t}),f):null});l.displayName="Portal"},19683:(e,t,r)=>{"use strict";var n=r(4101),i=r(73594);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(t=0,this.inner=new this.Hash().update(e);t<e.length;t++)e[t]^=106;this.outer=new this.Hash().update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},21172:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(12115);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=o(e,n)),t&&(i.current=o(t,n))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},22954:(e,t,r)=>{"use strict";r.d(t,{Eq:()=>u});var n=new WeakMap,i=new WeakMap,o={},s=0,a=function(e){return e&&(e.host||a(e.parentNode))},l=function(e,t,r,l){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=a(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});o[r]||(o[r]=new WeakMap);var c=o[r],f=[],h=new Set,d=new Set(u),p=function(e){!e||h.has(e)||(h.add(e),p(e.parentNode))};u.forEach(p);var m=function(e){!e||d.has(e)||Array.prototype.forEach.call(e.children,function(e){if(h.has(e))m(e);else try{var t=e.getAttribute(l),o=null!==t&&"false"!==t,s=(n.get(e)||0)+1,a=(c.get(e)||0)+1;n.set(e,s),c.set(e,a),f.push(e),1===s&&o&&i.set(e,!0),1===a&&e.setAttribute(r,"true"),o||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),h.clear(),s++,function(){f.forEach(function(e){var t=n.get(e)-1,o=c.get(e)-1;n.set(e,t),c.set(e,o),t||(i.has(e)||e.removeAttribute(l),i.delete(e)),o||e.removeAttribute(r)}),--s||(n=new WeakMap,n=new WeakMap,i=new WeakMap,o={})}},u=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),l(n,i,r,"aria-hidden")):function(){return null}}},23526:(e,t,r)=>{"use strict";t.sha1=r(55842),t.sha224=r(84425),t.sha256=r(64308),t.sha384=r(46408),t.sha512=r(56889)},29019:(e,t,r)=>{t.utils=r(4101),t.common=r(63017),t.sha=r(23526),t.ripemd=r(9039),t.hmac=r(19683),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160},33668:(e,t,r)=>{"use strict";r.d(t,{$2:()=>ei,qg:()=>eu});var n,i,o=r(6061),s=r(54914),a=r(44464),l=r(86993),u=r(72385),c=r(2047),f=r(95439),h=r.n(f),d=r(29019),p=r.n(d);function m(e,t,r){return e(r={path:t,exports:{},require:function(e,t){throw null==t&&r.path,Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},r.exports),r.exports}"undefined"!=typeof globalThis||("undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self&&self);var g=y;function y(e,t){if(!e)throw Error(t||"Assertion failed")}y.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)};var v=m(function(e,t){function r(e){return 1===e.length?"0"+e:e}function n(e){for(var t="",n=0;n<e.length;n++)t+=r(e[n].toString(16));return t}t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e);for(var n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,s=255&i;o?r.push(o,s):r.push(s)}return r},t.zero2=r,t.toHex=n,t.encode=function(e,t){return"hex"===t?n(e):e}}),b=m(function(e,t){t.assert=g,t.toArray=v.toArray,t.zero2=v.zero2,t.toHex=v.toHex,t.encode=v.encode,t.getNAF=function(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);for(s=0;s<n.length;s+=1)n[s]=0;var i=1<<t+1,o=e.clone();for(s=0;s<n.length;s++){var s,a,l=o.andln(i-1);o.isOdd()?(a=l>(i>>1)-1?(i>>1)-l:l,o.isubn(a)):a=0,n[s]=a,o.iushrn(1)}return n},t.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var o,s,a,l=e.andln(3)+n&3,u=t.andln(3)+i&3;3===l&&(l=-1),3===u&&(u=-1),s=(1&l)==0?0:(3==(o=e.andln(7)+n&7)||5===o)&&2===u?-l:l,r[0].push(s),a=(1&u)==0?0:(3==(o=t.andln(7)+i&7)||5===o)&&2===l?-u:u,r[1].push(a),2*n===s+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},t.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},t.parseBytes=function(e){return"string"==typeof e?t.toArray(e,"hex"):e},t.intFromLE=function(e){return new(h())(e,"hex","le")}}),w=b.getNAF,A=b.getJSF,x=b.assert;function E(e,t){this.type=e,this.p=new(h())(t.p,16),this.red=t.prime?h().red(t.prime):h().mont(this.p),this.zero=new(h())(0).toRed(this.red),this.one=new(h())(1).toRed(this.red),this.two=new(h())(2).toRed(this.red),this.n=t.n&&new(h())(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}
1function _(e,t){this.curve=e,this.type=t,this.precomputed=null}E.prototype.point=function(){throw Error("Not implemented")},E.prototype.validate=function(){throw Error("Not implemented")},E.prototype._fixedNafMul=function(e,t){x(e.precomputed);var r,n,i=e._getDoubles(),o=w(t,1,this._bitLength),s=(1<<i.step+1)-(i.step%2==0?2:1);s/=3;var a=[];for(r=0;r<o.length;r+=i.step){n=0;for(var l=r+i.step-1;l>=r;l--)n=(n<<1)+o[l];a.push(n)}for(var u=this.jpoint(null,null,null),c=this.jpoint(null,null,null),f=s;f>0;f--){for(r=0;r<a.length;r++)(n=a[r])===f?c=c.mixedAdd(i.points[r]):n===-f&&(c=c.mixedAdd(i.points[r].neg()));u=u.add(c)}return u.toP()},E.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=w(t,r,this._bitLength),s=this.jpoint(null,null,null),a=o.length-1;a>=0;a--){for(var l=0;a>=0&&0===o[a];a--)l++;if(a>=0&&l++,s=s.dblp(l),a<0)break;var u=o[a];x(0!==u),s="affine"===e.type?u>0?s.mixedAdd(i[u-1>>1]):s.mixedAdd(i[-u-1>>1].neg()):u>0?s.add(i[u-1>>1]):s.add(i[-u-1>>1].neg())}return"affine"===e.type?s.toP():s},E.prototype._wnafMulAdd=function(e,t,r,n,i){var o,s,a,l=this._wnafT1,u=this._wnafT2,c=this._wnafT3,f=0;for(o=0;o<n;o++){var h=(a=t[o])._getNAFPoints(e);l[o]=h.wnd,u[o]=h.points}for(o=n-1;o>=1;o-=2){var d=o-1,p=o;if(1!==l[d]||1!==l[p]){c[d]=w(r[d],l[d],this._bitLength),c[p]=w(r[p],l[p],this._bitLength),f=Math.max(c[d].length,f),f=Math.max(c[p].length,f);continue}var m=[t[d],null,null,t[p]];
10===t[d].y.cmp(t[p].y)?(m[1]=t[d].add(t[p]),m[2]=t[d].toJ().mixedAdd(t[p].neg())):0===t[d].y.cmp(t[p].y.redNeg())?(m[1]=t[d].toJ().mixedAdd(t[p]),m[2]=t[d].add(t[p].neg())):(m[1]=t[d].toJ().mixedAdd(t[p]),m[2]=t[d].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],y=A(r[d],r[p]);for(s=0,f=Math.max(y[0].length,f),c[d]=Array(f),c[p]=Array(f);s<f;s++){var v=0|y[0][s],b=0|y[1][s];c[d][s]=g[(v+1)*3+(b+1)],c[p][s]=0,u[d]=m}}var x=this.jpoint(null,null,null),E=this._wnafT4;for(o=f;o>=0;o--){for(var _=0;o>=0;){var k=!0;for(s=0;s<n;s++)E[s]=0|c[s][o],0!==E[s]&&(k=!1);if(!k)break;_++,o--}if(o>=0&&_++,x=x.dblp(_),o<0)break;for(s=0;s<n;s++){var N=E[s];0!==N&&(N>0?a=u[s][N-1>>1]:N<0&&(a=u[s][-N-1>>1].neg()),x="affine"===a.type?x.mixedAdd(a):x.add(a))}}for(o=0;o<n;o++)u[o]=null;return i?x:x.toP()},E.BasePoint=_,_.prototype.eq=function(){throw Error("Not implemented")},_.prototype.validate=function(){return this.curve.validate(this)},E.prototype.decodePoint=function(e,t){e=b.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?x(e[e.length-1]%2==0):7===e[0]&&x(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw Error("Unknown point format")},_.prototype.encodeCompressed=function(e){return this.encode(e,!0)},_.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},_.prototype.encode=function(e,t){return b.encode(this._encode(t),e)},_.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},_.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},_.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},_.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},_.prototype._getBeta=function(){return null},_.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t};var k=m(function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}),N=b.assert;function S(e){E.call(this,"short",e),this.a=new(h())(e.a,16).toRed(this.red),this.b=new(h())(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function M(e,t,r,n){E.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new(h())(t,16),this.y=new(h())(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function R(e,t,r,n){E.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new(h())(0)):(this.x=new(h())(t,16),this.y=new(h())(r,16),this.z=new(h())(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}k(S,E),S.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(e.beta)t=new(h())(e.beta,16).toRed(this.red);else{var t,r,n,i=this._getEndoRoots(this.p);t=(t=0>i[0].cmp(i[1])?i[0]:i[1]).toRed(this.red)}if(e.lambda)r=new(h())(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],N(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new(h())(e.a,16),b:new(h())(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},S.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:h().mont(e),r=new(h())(2).toRed(t).redInvm(),n=r.redNeg(),i=new(h())(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},S.prototype._getEndoBasis=function(e){for(var t,r,n,i,o,s,a,l,u,c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,d=this.n.clone(),p=new(h())(1),m=new(h())(0),g=new(h())(0),y=new(
vendor: 4,510 bytes, line 1
1h())(1),v=0;0!==f.cmpn(0);){var b=d.div(f);l=d.sub(b.mul(f)),u=g.sub(b.mul(p));var w=y.sub(b.mul(m));if(!n&&0>l.cmp(c))t=a.neg(),r=p,n=l.neg(),i=u;else if(n&&2==++v)break;a=l,d=f,f=l,g=p,p=u,y=m,m=w}o=l.neg(),s=u;var A=n.sqr().add(i.sqr());return o.sqr().add(s.sqr()).cmp(A)>=0&&(o=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:n,b:i},{a:o,b:s}]},S.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),s=i.mul(r.a),a=o.mul(n.a),l=i.mul(r.b),u=o.mul(n.b);return{k1:e.sub(s).sub(a),k2:l.add(u).neg()}},S.prototype.pointFromX=function(e,t){(e=new(h())(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},S.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},S.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var s=this._endoSplit(t[o]),a=e[o],l=a._getBeta();s.k1.negative&&(s.k1.ineg(),a=a.neg(!0)),s.k2.negative&&(s.k2.ineg(),l=l.neg(!0)),n[2*o]=a,n[2*o+1]=l,i[2*o]=s.k1,i[2*o+1]=s.k2}for(var u=this._wnafMulAdd(1,n,i,2*o,r),c=0;c<2*o;c++)n[c]=null,i[c]=null;return u},k(M,E.BasePoint),S.prototype.point=function(e,t,r){return new M(this,e,t,r)},S.prototype.pointFromJSON=function(e,t){return M.fromJSON(this,e,t)},M.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},M.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},M.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},M.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},M.prototype.isInfinity=function(){return this.inf},M.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},M.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},M.prototype.getX=function(){return this.x.fromRed()},M.prototype.getY=function(){return this.y.fromRed()},M.prototype.mul=function(e){return(e=new(h())(e,16),this.isInfinity())?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},M.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},M.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},M.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},M.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());
1if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},M.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},k(R,E.BasePoint),S.prototype.jpoint=function(e,t,r){return new R(this,e,t,r)},R.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},R.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},R.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),a=n.redSub(i),l=o.redSub(s);if(0===a.cmpn(0))if(0!==l.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var u=a.redSqr(),c=u.redMul(a),f=n.redMul(u),h=l.redSqr().redIAdd(c).redISub(f).redISub(f),d=l.redMul(f.redISub(h)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(h,d,p)},R.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),s=r.redSub(n),a=i.redSub(o);if(0===s.cmpn(0))if(0!==a.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var l=s.redSqr(),u=l.redMul(s),c=r.redMul(l),f=a.redSqr().redIAdd(u).redISub(c).redISub(c),h=a.redMul(c.redISub(f)).redISub(i.redMul(u)),d=this.z.redMul(s);return this.curve.jpoint(f,h,d)},R.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,s=this.y,a=this.z,l=a.redSqr().redSqr(),u=s.redAdd(s);for(t=0;t<e;t++){var c=o.redSqr(),f=u.redSqr(),h=f.redSqr(),d=c.redAdd(c).redIAdd(c).redIAdd(n.redMul(l)),p=o.redMul(f),m=d.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),y=d.redMul(g);y=y.redIAdd(y).redISub(h);var v=u.redMul(a);t+1<e&&(l=l.redMul(h)),o=m,a=v,u=y}return this.curve.jpoint(o,u.redMul(i),a)},R.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},R.prototype._zeroDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n),l=a.redSqr().redISub(s).redISub(s),u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),e=l,t=a.redMul(s.redISub(l)).redISub(u),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),f=this.y.redSqr(),h=f.redSqr(),d=this.x.redAdd(f).redSqr().redISub(c).redISub(h);d=d.redIAdd(d);var p=c.redAdd(c).redIAdd(c),m=p.redSqr(),g=h.redIAdd(h);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(d).redISub(d),t=p.redMul(d.redISub(e)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},R.prototype._threeDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),l=a.redSqr().redISub(s).redISub(s);e=l;var u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),t=a.redMul(s.redISub(l)).redISub(u),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),f=this.y.redSqr(),h=this.x.redMul(f),d=this.x.redSub(c).redMul(this.x.redAdd(c));d=d.redAdd(d).redIAdd(d);var p=h.redIAdd(h),m=(p=p.redIAdd(p)).redAdd(p);e=d.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(f).redISub(c);var g=f.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=d.redMul(p.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,r)},R.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),s=r.redSqr(),a=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),l=t.redAdd(t),u=(l=l.redIAdd(l)).redMul(s),c=a.redSqr().redISub(u.redAdd(u)),f=u.redISub(c),h=s.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=a.redMul(f).redISub(h),p=r.redAdd(r).redMul(n);return this.curve.jpoint(c,d,p)},R.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);
vendor: 6,418 bytes, line 1
1var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),s=this.x.redAdd(t).redSqr().redISub(e).redISub(n),a=(s=(s=(s=s.redIAdd(s)).redAdd(s).redIAdd(s)).redISub(o)).redSqr(),l=n.redIAdd(n);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var u=i.redIAdd(s).redSqr().redISub(o).redISub(a).redISub(l),c=t.redMul(u);c=(c=c.redIAdd(c)).redIAdd(c);var f=this.x.redMul(a).redISub(c);f=(f=f.redIAdd(f)).redIAdd(f);var h=this.y.redMul(u.redMul(l.redISub(u)).redISub(s.redMul(a)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=this.z.redAdd(s).redSqr().redISub(r).redISub(a);return this.curve.jpoint(f,h,d)},R.prototype.mul=function(e,t){return e=new(h())(e,t),this.curve._wnafMul(this,e)},R.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},R.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},R.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},R.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var P=m(function(e,t){t.base=E,t.short=S,t.mont=null,t.edwards=null}),I=m(function(e,t){var r,n=b.assert;function i(e){"short"===e.type?this.curve=new P.short(e):"edwards"===e.type?this.curve=new P.edwards(e):this.curve=new P.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function o(e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var n=new i(r);return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}),n}})}t.PresetCurve=i,o("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:p().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),o("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:p().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),o("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:p().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),o("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:p().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),o("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:p().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),o("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:p().sha256,gRed:!1,g:["9"]}),o("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:p().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(e){r=void 0}o("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:p().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
1,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})});function C(e){if(!(this instanceof C))return new C(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=v.toArray(e.entropy,e.entropyEnc||"hex"),r=v.toArray(e.nonce,e.nonceEnc||"hex"),n=v.toArray(e.pers,e.persEnc||"hex");g(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}C.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=0x1000000000000},C.prototype._hmac=function(){return new(p()).hmac(this.hash,this.K)},C.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},C.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=v.toArray(e,t),r=v.toArray(r,n),g(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},C.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=v.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,e);return this._update(r),this._reseed++,v.encode(o,t)};var T=b.assert;function O(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}O.fromPublic=function(e,t,r){return t instanceof O?t:new O(e,{pub:t,pubEnc:r})},O.fromPrivate=function(e,t,r){return t instanceof O?t:new O(e,{priv:t,privEnc:r})},O.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},O.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},O.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},O.prototype._importPrivate=function(e,t){this.priv=new(h())(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},O.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?T(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&T(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},O.prototype.derive=function(e){return e.validate()||T(e.validate(),"public point not validated"),e.mul(this.priv).getX()},O.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},O.prototype.verify=function(e,t,r){return this.ec.verify(e,t,this,void 0,r)},O.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var L=b.assert;function F(e,t){if(e instanceof F)return e;this._importDER(e,t)||(L(e.r&&e.s,"Signature without r or s"),this.r=new(h())(e.r,16),this.s=new(
1h())(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function B(){this.place=0}function D(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4||0===e[t.place])return!1;for(var i=0,o=0,s=t.place;o<n;o++,s++)i<<=8,i|=e[s],i>>>=0;return!(i<=127)&&(t.place=s,i)}function j(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function U(e,t){if(t<128)return void e.push(t);var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}F.prototype._importDER=function(e,t){e=b.toArray(e,t);var r=new B;if(48!==e[r.place++])return!1;var n=D(e,r);if(!1===n||n+r.place!==e.length||2!==e[r.place++])return!1;var i=D(e,r);if(!1===i||(128&e[r.place])!=0)return!1;var o=e.slice(r.place,i+r.place);if(r.place+=i,2!==e[r.place++])return!1;var s=D(e,r);if(!1===s||e.length!==s+r.place||(128&e[r.place])!=0)return!1;var a=e.slice(r.place,s+r.place);if(0===o[0])if(!(128&o[1]))return!1;else o=o.slice(1);if(0===a[0])if(!(128&a[1]))return!1;else a=a.slice(1);
1return this.r=new(h())(o),this.s=new(h())(a),this.recoveryParam=null,!0},F.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=j(t),r=j(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];U(n,t.length),(n=n.concat(t)).push(2),U(n,r.length);var i=n.concat(r),o=[48];return U(o,i.length),o=o.concat(i),b.encode(o,e)};var z=function(){throw Error("unsupported")},V=b.assert;function H(e){if(!(this instanceof H))return new H(e);"string"==typeof e&&(V(Object.prototype.hasOwnProperty.call(I,e),"Unknown curve "+e),e=I[e]),e instanceof I.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}H.prototype.keyPair=function(e){return new O(this,e)},H.prototype.keyFromPrivate=function(e,t){return O.fromPrivate(this,e,t)},H.prototype.keyFromPublic=function(e,t){return O.fromPublic(this,e,t)},H.prototype.genKeyPair=function(e){e||(e={});for(var t=new C({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||z(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new(h())(2));;){var i=new(h())(t.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},H.prototype._truncateToN=function(e,t,r){if(h().isBN(e)||"number"==typeof e)n=(e=new(h())(e,16)).byteLength();else if("object"==typeof e)n=e.length,e=new(h())(e,16);else{var n,i=e.toString();n=i.length+1>>>1,e=new(h())(i,16)}"number"!=typeof r&&(r=8*n);var o=r-this.n.bitLength();return(o>0&&(e=e.ushrn(o)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},H.prototype.sign=function(e,t,r,n){if("object"==typeof r&&(n=r,r=null),n||(n={}),"string"!=typeof e&&"number"!=typeof e&&!h().isBN(e)){V("object"==typeof e&&e&&"number"==typeof e.length,"Expected message to be an array-like, a hex string, or a BN instance"),V(e.length>>>0===e.length);for(var i=0;i<e.length;i++)V((255&e[i])===e[i])}t=this.keyFromPrivate(t,r),V(!(e=this._truncateToN(e,!1,n.msgBitLength)).isNeg(),"Can not sign a negative message");var o=this.n.byteLength(),s=t.getPrivate().toArray("be",o),a=e.toArray("be",o);V(new(h())(a).eq(e),"Can not sign message");for(var l=new C({hash:this.hash,entropy:s,nonce:a,pers:n.pers,persEnc:n.persEnc||"utf8"}),u=this.n.sub(new(h())(1)),c=0;;c++){var f=n.k?n.k(c):new(h())(l.generate(this.n.byteLength()));if(0>=(f=this._truncateToN(f,!0)).cmpn(1)||f.cmp(u)>=0)continue;var d=this.g.mul(f);if(!d.isInfinity()){var p=d.getX(),m=p.umod(this.n);if(0!==m.cmpn(0)){var g=f.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var y=!!d.getY().isOdd()|2*(0!==p.cmp(m));return n.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),y^=1),new F({r:m,s:g,recoveryParam:y})}}}}},H.prototype.verify=function(e,t,r,n,i){i||(i={}),e=this._truncateToN(e,!1,i.msgBitLength),r=this.keyFromPublic(r,n);var o,s=(t=new F(t,"hex")).r,a=t.s;if(0>s.cmpn(1)||s.cmp(this.n)>=0||0>a.cmpn(1)||a.cmp(this.n)>=0)return!1;var l=a.invm(this.n),u=l.mul(e).umod(this.n),c=l.mul(s).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(u,r.getPublic(),c)).isInfinity()&&o.eqXToP(s):!(o=this.g.mulAdd(u,r.getPublic(),c)).isInfinity()&&0===o.getX().umod(this.n).cmp(s)},H.prototype.recoverPubKey=function(e,t,r,n){V((3&r)===r,"The recovery param is more than two bits"),t=new F(t,n);var i=this.n,o=new(h())(e),s=t.r,a=t.s,l=1&r,u=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw Error("Unable to find sencond key candinate");s=u?this.curve.pointFromX(s.add(this.curve.n),l):this.curve.pointFromX(s,l);var c=t.r.invm(i),f=i.sub(o).mul(c).umod(i),d=a.mul(c).umod(i);return this.g.mulAdd(f,s,d)},H.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new F(t,n)).recoveryParam)return t.recoveryParam;for(var i,o=0;o<4;o++){try{i=this.recoverPubKey(e,t,o)}catch(e){continue}if(i.eq(r))return o}throw Error("Unable to find valid recovery factor")};var G=m(function(e,t){t.version="6.6.1",t.utils=b,t.rand=function(){throw Error("unsupported")},t.curve=P,t.curves=I,t.ec=H,t.eddsa=null}).ec,q=r(99502),Y=r(51633);let K=new Y.Vy("signing-key/5.8.0"),W=null;function J(){return W||(W=new G("secp256k1")),W}class Q{constructor(e){(0,q.yY)(this,"curve","secp256k1"),(0,q.yY)(this,"privateKey",(0,a.c$)(e)),32!==(0,a.cm)(this.privateKey)&&K.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const t=J().keyFromPrivate((0,a.k9)(this.privateKey));(0,q.yY)(this,"publicKey","0x"+t.getPublic(!1,"hex")),(0,q.yY)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),(0,q.yY)(this,"_isSigningKey",!0)}_addPoint(e){let t=J().keyFromPublic((0,a.k9)(this.publicKey)),r=J().keyFromPublic((0,a.k9)(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")}
1signDigest(e){let t=J().keyFromPrivate((0,a.k9)(this.privateKey)),r=(0,a.k9)(e);32!==r.length&&K.throwArgumentError("bad digest length","digest",e);let n=t.sign(r,{canonical:!0});return(0,a.Pc)({recoveryParam:n.recoveryParam,r:(0,a.bj)("0x"+n.r.toString(16),32),s:(0,a.bj)("0x"+n.s.toString(16),32)})}computeSharedSecret(e){let t=J().keyFromPrivate((0,a.k9)(this.privateKey)),r=J().keyFromPublic((0,a.k9)(X(e)));return(0,a.bj)("0x"+t.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function X(e,t){let r=(0,a.k9)(e);if(32===r.length){let e=new Q(r);return t?"0x"+J().keyFromPrivate(r).getPublic(!0,"hex"):e.publicKey}return 33===r.length?t?(0,a.c$)(r):"0x"+J().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?t?"0x"+J().keyFromPublic(r).getPublic(!0,"hex"):(0,a.c$)(r):K.throwArgumentError("invalid public or private key","key","[REDACTED]")}let $=new Y.Vy("transactions/5.8.0");function Z(e){return"0x"===e?null:(0,o.bv)(e)}function ee(e){return"0x"===e?l.XK:s.gH.from(e)}function et(e,t){var r;let n,i,s;return s=X((r=(0,a.k9)(e),n=(0,a.Pc)(t),i={r:(0,a.k9)(n.r),s:(0,a.k9)(n.s)},"0x"+J().recoverPubKey((0,a.k9)(r),i,n.recoveryParam).encode("hex",!1))),(0,o.bv)((0,a.Ab)((0,u.S)((0,a.Ab)(s,1)),12))}function er(e,t){let r=(0,a.gr)(s.gH.from(e).toHexString());return r.length>32&&$.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function en(e,t){return{address:(0,o.bv)(e),storageKeys:(t||[]).map((t,r)=>(32!==(0,a.cm)(t)&&$.throwArgumentError("invalid access list storageKey",`accessList[${e}:${r}]`,t),t.toLowerCase()))}}function ei(e){if(Array.isArray(e))return e.map((e,t)=>Array.isArray(e)?(e.length>2&&$.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${t}]`,e),en(e[0],e[1])):en(e.address,e.storageKeys));let t=Object.keys(e).map(t=>{let r=e[t].reduce((e,t)=>(e[t]=!0,e),{});return en(t,Object.keys(r).sort())});return t.sort((e,t)=>e.address.localeCompare(t.address)),t}function eo(e){return ei(e).map(e=>[e.address,e.storageKeys])}function es(e,t){if(null!=e.gasPrice){let t=s.gH.from(e.gasPrice),r=s.gH.from(e.maxFeePerGas||0);t.eq(r)||$.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:r})}let r=[er(e.chainId||0,"chainId"),er(e.nonce||0,"nonce"),er(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),er(e.maxFeePerGas||0,"maxFeePerGas"),er(e.gasLimit||0,"gasLimit"),null!=e.to?(0,o.bv)(e.to):"0x",er(e.value||0,"value"),e.data||"0x",eo(e.accessList||[])];if(t){let e=(0,a.Pc)(t);r.push(er(e.recoveryParam,"recoveryParam")),r.push((0,a.gr)(e.r)),r.push((0,a.gr)(e.s))}return(0,a.qn)(["0x02",c.l(r)])}function ea(e,t){let r=[er(e.chainId||0,"chainId"),er(e.nonce||0,"nonce"),er(e.gasPrice||0,"gasPrice"),er(e.gasLimit||0,"gasLimit"),null!=e.to?(0,o.bv)(e.to):"0x",er(e.value||0,"value"),e.data||"0x",eo(e.accessList||[])];if(t){let e=(0,a.Pc)(t);r.push(er(e.recoveryParam,"recoveryParam")),r.push((0,a.gr)(e.r)),r.push((0,a.gr)(e.s))}return(0,a.qn)(["0x01",c.l(r)])}function el(e,t,r){try{let r=ee(t[0]).toNumber();if(0!==r&&1!==r)throw Error("bad recid");e.v=r}catch(e){$.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=(0,a.bj)(t[1],32),e.s=(0,a.bj)(t[2],32);try{let t=(0,u.S)(r(e));e.from=et(t,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){}}function eu(e){let t=(0,a.k9)(e);if(t[0]>127)return function(e){let t=c.D(e);9!==t.length&&6!==t.length&&$.throwArgumentError("invalid raw transaction","rawTransaction",e);let r={nonce:ee(t[0]).toNumber(),gasPrice:ee(t[1]),gasLimit:ee(t[2]),to:Z(t[3]),value:ee(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=s.gH.from(t[6]).toNumber()}catch(e){return r}if(r.r=(0,a.bj)(t[7],32),r.s=(0,a.bj)(t[8],32),s.gH.from(r.r).isZero()&&s.gH.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let n=r.v-27,i=t.slice(0,6);0!==r.chainId&&(i.push((0,a.c$)(r.chainId)),i.push("0x"),i.push("0x"),n-=2*r.chainId+8);let o=(0,u.S)(c.l(i));try{r.from=et(o,{r:(0,a.c$)(r.r),s:(0,a.c$)(r.s),recoveryParam:n})}catch(e){}r.hash=(0,u.S)(e)}return r.type=null,r}(t);switch(t[0]){case 1:let r,n;return 8!==(r=c.D(t.slice(1))).length&&11!==r.length&&$.throwArgumentError("invalid component count for transaction type: 1","payload",(0,a.c$)(t)),n={type:1,chainId:ee(r[0]).toNumber(),nonce:ee(r[1]).toNumber(),gasPrice:ee(r[2]),gasLimit:ee(r[3]),to:Z(r[4]),value:ee(r[5]),data:r[6],accessList:ei(r[7])},8===r.length||(n.hash=(0,u.S)(t),el(n,r.slice(8),ea)),n;case 2:let i,o,l,f;return 9!==(i=c.D(t.slice(1))).length&&12!==i.length&&$.throwArgumentError("invalid component count for transaction type: 2","payload",(0,a.c$)(t)),o=ee(i[2]),l=ee(i[3]),f={type:2,chainId:ee(i[0]).toNumber(),nonce:ee(i[1]).toNumber(),maxPriorityFeePerGas:o,maxFeePerGas:l,gasPrice:null,gasLimit:ee(i[4]),to:Z(i[5
1]),value:ee(i[6]),data:i[7],accessList:ei(i[8])},9===i.length||(f.hash=(0,u.S)(t),el(f,i.slice(9),es)),f}return $.throwError(`unsupported transaction type: ${t[0]}`,Y.Vy.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}(n=i||(i={}))[n.legacy=0]="legacy",n[n.eip2930=1]="eip2930",n[n.eip1559=2]="eip1559"},36095:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(18857);function i({config:e,src:t,width:r,quality:i}){if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns. 2Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let o=(0,n.findClosestQuality)(i,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${o}${t.startsWith("/_next/static/media/")&&1?"&dpl=dpl_FhkMenMA6Xy4kKAmuofZKnEEDQa8":""}`}i.__next_img_default=!0;let o=i},37460:(e,t,r)=>{"use strict";r.d(t,{PW:()=>M});let n=!1,i=!1,o={debug:1,default:2,info:2,warning:3,error:4,off:5},s=o.default,a=null,l=function(){try{let e=[];
2if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test"!=="test".normalize(t))throw Error("bad normalize")}catch(r){e.push(t)}}),e.length)throw Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(e){return e.message}return null}();(g=v||(v={})).DEBUG="DEBUG",g.INFO="INFO",g.WARNING="WARNING",g.ERROR="ERROR",g.OFF="OFF",(y=b||(b={})).UNKNOWN_ERROR="UNKNOWN_ERROR",y.NOT_IMPLEMENTED="NOT_IMPLEMENTED",y.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",y.NETWORK_ERROR="NETWORK_ERROR",y.SERVER_ERROR="SERVER_ERROR",y.TIMEOUT="TIMEOUT",y.BUFFER_OVERRUN="BUFFER_OVERRUN",y.NUMERIC_FAULT="NUMERIC_FAULT",y.MISSING_NEW="MISSING_NEW",y.INVALID_ARGUMENT="INVALID_ARGUMENT",y.MISSING_ARGUMENT="MISSING_ARGUMENT",y.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",y.CALL_EXCEPTION="CALL_EXCEPTION",y.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",y.NONCE_EXPIRED="NONCE_EXPIRED",y.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",y.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",y.TRANSACTION_REPLACED="TRANSACTION_REPLACED",y.ACTION_REJECTED="ACTION_REJECTED";let u="0123456789abcdef";class c{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){let r=e.toLowerCase();null==o[r]&&this.throwArgumentError("invalid log level name","logLevel",e),s>o[r]||console.log.apply(console,t)}debug(...e){this._log(c.levels.DEBUG,e)}info(...e){this._log(c.levels.INFO,e)}warn(...e){this._log(c.levels.WARNING,e)}makeError(e,t,r){if(i)return this.makeError("censored error",t,{});t||(t=c.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(e=>{let t=r[e];try{if(t instanceof Uint8Array){let r="";for(let e=0;e<t.length;e++)r+=u[t[e]>>4],r+=u[15&t[e]];n.push(e+"=Uint8Array(0x"+r+")")}else n.push(e+"="+JSON.stringify(t))}catch(t){n.push(e+"="+JSON.stringify(r[e].toString()))}}),n.push(`code=${t}`),n.push(`version=${this.version}`);let o=e,s="";switch(t){case b.NUMERIC_FAULT:{s="NUMERIC_FAULT";let t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":s+="-"+t;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break}case b.CALL_EXCEPTION:case b.INSUFFICIENT_FUNDS:case b.MISSING_NEW:case b.NONCE_EXPIRED:case b.REPLACEMENT_UNDERPRICED:case b.TRANSACTION_REPLACED:case b.UNPREDICTABLE_GAS_LIMIT:s=t}s&&(e+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),n.length&&(e+=" ("+n.join(", ")+")");let a=Error(e);return a.reason=o,a.code=t,Object.keys(r).forEach(function(e){a[e]=r[e]}),a}throwError(e,t,r){throw this.makeError(e,t,r)}throwArgumentError(e,t,r){return this.throwError(e,c.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,r,n){e||this.throwError(t,r,n)}assertArgument(e,t,r,n){e||this.throwArgumentError(t,r,n)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),l&&this.throwError("platform missing String.prototype.normalize",c.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:l})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=0x1fffffffffffff)&&this.throwError(t,c.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,c.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",e<t&&this.throwError("missing argument"+r,c.errors.MISSING_ARGUMENT,{count:e,expectedCount:t}),e>t&&this.throwError("too many arguments"+r,c.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){(e===Object||null==e)&&this.throwError("missing new",c.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",c.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||null==e)&&this.throwError("missing new",c.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return a||(a=new c("logger/5.8.0")),a}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",c.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),n){if(!e)return;this.globalLogger().throwError("error censorship permanent",c.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}i=!!e,n=!!t}static setLogLevel(e){let t=o[e.toLowerCase()];null==t?c.globalLogger().warn("invalid log level - "+e):s=t}static from(e){return new c(e)}}c.errors=b,c.levels=v;let f=new c("bytes/5.8.0");function h(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return h(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function d(e){return"number"==typeof e&&e==e&&e%1==0}function p(e,t){if(t||(t={}
2),"number"==typeof e){f.checkSafeUint53(e,"invalid arrayify value");let t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),h(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),e.toHexString&&(e=e.toHexString()),m(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0"+r:"right"===t.hexPad?r+="0":f.throwArgumentError("hex data is odd-length","value",e));let n=[];for(let e=0;e<r.length;e+=2)n.push(parseInt(r.substring(e,e+2),16));return h(new Uint8Array(n))}return!function(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e||!d(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(!d(r)||r<0||r>=256)return!1}return!0}(e)?f.throwArgumentError("invalid arrayify value","value",e):h(new Uint8Array(e))}function m(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!t||e.length===2+2*t)}var g,y,v,b,w=r(95439),A=r.n(w)().BN;new c("bignumber/5.8.0");var x=r(91879),E=r.n(x);let _=new c("address/5.7.0");function k(e){m(e,20)||_.throwArgumentError("invalid address","address",e);let t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);let n=p("0x"+E().keccak_256(p(r)));for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&n[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}let N={};for(let e=0;e<10;e++)N[String(e)]=String(e);for(let e=0;e<26;e++)N[String.fromCharCode(65+e)]=String(10+e);let S=Math.floor(Math.log10?Math.log10(0x1fffffffffffff):Math.log(0x1fffffffffffff)/Math.LN10);function M(e){try{return!function(e){let t=null;if("string"!=typeof e&&_.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=k(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&_.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==function(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>N[e]).join("");for(;t.length>=S;){let e=t.substring(0,S);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}(e)&&_.throwArgumentError("bad icap checksum","address",e),t=new A(e.substring(4),36).toString(16);t.length<40;)t="0"+t;t=k("0x"+t)}else _.throwArgumentError("invalid address","address",e)}(e),!0}catch(e){}return!1}},38437:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return w}});let n=r(73623),i=r(66388),o=r(95155),s=i._(r(12115)),a=n._(r(47650)),l=n._(r(46686)),u=r(95413),c=r(55762),f=r(17150);r(47284);let h=r(60751),d=n._(r(36095)),p=r(21172),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,r,n,i,o,s){let a=e?.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}n?.current&&n.current(e)}}))}function y(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,s.forwardRef)(({src:e,srcSet:t,sizes:r,height:n,width:i,decoding:a,className:l,style:u,fetchPriority:c,placeholder:f,loading:h,unoptimized:d,fill:m,onLoadRef:v,onLoadingCompleteRef:b,setBlurComplete:w,setShowAltText:A,sizesInput:x,onLoad:E,onError:_,...k},N)=>{let S=(0,s.useCallback)(e=>{e&&(_&&(e.src=e.src),e.complete&&g(e,f,v,b,w,d,x))},[e,f,v,b,w,_,d,x]),M=(0,p.useMergedRef)(N,S);return(0,o.jsx)("img",{...k,...y(c),loading:h,width:i,height:n,decoding:a,"data-nimg":m?"fill":"1",className:l,style:u,sizes:r,srcSet:t,src:e,ref:M,onLoad:e=>{g(e.currentTarget,f,v,b,w,d,x)},onError:e=>{A(!0),"empty"!==f&&w(!0),_&&_(e)}})});function b({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...y(t.fetchPriority)};return e&&a.default.preload?(a.default.preload(t.src,r),null):(0,o.jsx)(l.default,{children:(0,o.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let w=(0,s.forwardRef)((e,t)=>{let r=(0,s.useContext)(h.RouterContext),n=(0,s.useContext)(f.ImageConfigContext),i=(0,s.useMemo)(()=>{let e=m||n||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>
2e-t),r=e.deviceSizes.sort((e,t)=>e-t),i=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:i,localPatterns:e.localPatterns}},[n]),{onLoad:a,onLoadingComplete:l}=e,p=(0,s.useRef)(a);(0,s.useEffect)(()=>{p.current=a},[a]);let g=(0,s.useRef)(l);(0,s.useEffect)(()=>{g.current=l},[l]);let[y,w]=(0,s.useState)(!1),[A,x]=(0,s.useState)(!1),{props:E,meta:_}=(0,u.getImgProps)(e,{defaultLoader:d.default,imgConf:i,blurComplete:y,showAltText:A});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{...E,unoptimized:_.unoptimized,placeholder:_.placeholder,fill:_.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:w,setShowAltText:x,sizesInput:e.sizes,ref:t}),_.preload?(0,o.jsx)(b,{isAppRouter:!r,imgAttributes:E}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39197:(e,t,r)=>{"use strict";r.d(t,{NZ:()=>eM});var n=r(44464),i=r(54914),o=r(99502),s=r(51633);let a="abi/5.8.0",l=new s.Vy(a);class u{constructor(e,t,r,n){this.name=e,this.type=t,this.localName=r,this.dynamic=n}_throwError(e,t){l.throwArgumentError(e,this.localName,t)}}class c{constructor(e){(0,o.yY)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return(0,n.qn)(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData((0,n.xW)(e._data))}writeBytes(e){let t=(0,n.k9)(e),r=t.length%this.wordSize;return r&&(t=(0,n.xW)([t,this._padding.slice(r)])),this._writeData(t)}_getValue(e){let t=(0,n.k9)(i.gH.from(e));return t.length>this.wordSize&&l.throwError("value out-of-bounds",s.Vy.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,n.xW)([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){let e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}
2class f{constructor(e,t,r,i){(0,o.yY)(this,"_data",(0,n.k9)(e)),(0,o.yY)(this,"wordSize",t||32),(0,o.yY)(this,"_coerceFunc",r),(0,o.yY)(this,"allowLoose",i),this._offset=0}get data(){return(0,n.c$)(this._data)}get consumed(){return this._offset}static coerce(e,t){let r=e.match("^u?int([0-9]+)$");return r&&48>=parseInt(r[1])&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):f.coerce(e,t)}_peekBytes(e,t,r){let n=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:l.throwError("data out-of-bounds",s.Vy.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(e){return new f(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}readValue(){return i.gH.from(this.readBytes(this.wordSize))}}var h=r(6061),d=r(11135),p=r(72385);class m extends u{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){try{t=(0,h.bv)(t)}catch(e){this._throwError(e.message,t)}return e.writeValue(t)}decode(e){return(0,h.bv)((0,n.bj)(e.readValue().toHexString(),20))}}class g extends u{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}let y=new s.Vy(a);function v(e,t,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let e={};n=t.map(t=>{let n=t.localName;return n||y.throwError("cannot encode object for signature with missing names",s.Vy.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]&&y.throwError("cannot encode object for signature with duplicate names",s.Vy.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]=!0,r[n]})}else y.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&y.throwArgumentError("types/value length mismatch","tuple",r);let i=new c(e.wordSize),o=new c(e.wordSize),a=[];t.forEach((e,t)=>{let r=n[t];if(e.dynamic){let t=o.length;e.encode(o,r);let n=i.writeUpdatableValue();a.push(e=>{n(e+t)})}else e.encode(i,r)}),a.forEach(e=>{e(i.length)});let l=e.appendWriter(i);return l+e.appendWriter(o)}function b(e,t){let r=[],n=e.subReader(0);t.forEach(t=>{let i=null;if(t.dynamic){let r=e.readValue(),o=n.subReader(r.toNumber());try{i=t.decode(o)}catch(e){if(e.code===s.Vy.errors.BUFFER_OVERRUN)throw e;(i=e).baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(e){if(e.code===s.Vy.errors.BUFFER_OVERRUN)throw e;(i=e).baseType=t.name,i.name=t.localName,i.type=t.type}void 0!=i&&r.push(i)});let i=t.reduce((e,t)=>{let r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});t.forEach((e,t)=>{let n=e.localName;if(!n||1!==i[n]||("length"===n&&(n="_length"),null!=r[n]))return;let o=r[t];o instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw o}}):r[n]=o});for(let e=0;e<r.length;e++){let t=r[e];t instanceof Error&&Object.defineProperty(r,e,{enumerable:!0,get:()=>{throw t}})}return Object.freeze(r)}class w extends u{constructor(e,t,r){super("array",e.type+"["+(t>=0?t:"")+"]",r,-1===t||e.dynamic),this.coder=e,this.length=t}defaultValue(){let e=this.coder.defaultValue(),t=[];for(let r=0;r<this.length;r++)t.push(e);return t}encode(e,t){Array.isArray(t)||this._throwError("expected array value",t);let r=this.length;-1===r&&(r=t.length,e.writeValue(t.length)),y.checkArgumentCount(t.length,r,"coder array"+(this.localName?" "+this.localName:""));let n=[];for(let e=0;e<t.length;e++)n.push(this.coder);return v(e,n,t)}decode(e){let t=this.length;-1===t&&32*(t=e.readValue().toNumber())>e._data.length&&y.throwError("insufficient data length",s.Vy.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});let r=[];for(let e=0;e<t;e++)r.push(new g(this.coder));return e.coerce(this.name,b(e,r))}}class A extends u{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){return e.writeValue(+!!t)}
2decode(e){return e.coerce(this.type,!e.readValue().isZero())}}class x extends u{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){t=(0,n.k9)(t);let r=e.writeValue(t.length);return r+e.writeBytes(t)}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class E extends x{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,(0,n.c$)(super.decode(e)))}}class _ extends u{constructor(e,t){let r="bytes"+String(e);super(r,r,t,!1),this.size=e}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let r=(0,n.k9)(t);return r.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(r)}decode(e){return e.coerce(this.name,(0,n.c$)(e.readBytes(this.size)))}}class k extends u{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}var N=r(86993);class S extends u{constructor(e,t,r){const n=(t?"int":"uint")+8*e;super(n,n,r,!1),this.size=e,this.signed=t}defaultValue(){return 0}encode(e,t){let r=i.gH.from(t),n=N.Is.mask(8*e.wordSize);if(this.signed){let e=n.mask(8*this.size-1);(r.gt(e)||r.lt(e.add(N.pD).mul(N.eR)))&&this._throwError("value out-of-bounds",t)}else(r.lt(N.XK)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(r)}decode(e){let t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}var M=r(57141);class R extends x{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,(0,M.YW)(t))}decode(e){return(0,M._v)(super.decode(e))}}class P extends u{constructor(e,t){let r=!1;const n=[];e.forEach(e=>{e.dynamic&&(r=!0),n.push(e.type)}),super("tuple","tuple("+n.join(",")+")",t,r),this.coders=e}defaultValue(){let e=[];this.coders.forEach(t=>{e.push(t.defaultValue())});let t=this.coders.reduce((e,t)=>{let r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});return this.coders.forEach((r,n)=>{let i=r.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[n]))}),Object.freeze(e)}encode(e,t){return v(e,this.coders,t)}decode(e){return e.coerce(this.name,b(e,this.coders))}}let I=new s.Vy(a),C={},T={calldata:!0,memory:!0,storage:!0},O={calldata:!0,memory:!0};function L(e,t){if("bytes"===e||"string"===e){if(T[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&O[t])return!0;return(T[t]||"payable"===t)&&I.throwArgumentError("invalid modifier","name",t),!1}function F(e,t){for(let r in t)(0,o.yY)(e,r,t[r])}let B=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),D=new RegExp(/^(.*)\[([0-9]*)\]$/);class j{constructor(e,t){e!==C&&I.throwError("use fromString",s.Vy.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),F(this,t);let r=this.type.match(D);r?F(this,{arrayLength:parseInt(r[2]||"-1"),arrayChildren:j.fromObject({type:r[1],components:this.components}),baseType:"array"}):F(this,{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=B.sighash),B[e]||I.throwArgumentError("invalid format type","format",e),e===B.json){let t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map(t=>JSON.parse(t.format(e)))),JSON.stringify(t)}let t="";return"array"===this.baseType?(t+=this.arrayChildren.format(e),t+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==B.sighash&&(t+=this.type),t+="("+this.components.map(t=>t.format(e)).join(e===B.full?", ":",")+")"):t+=this.type,e!==B.sighash&&(!0===this.indexed&&(t+=" indexed"),e===B.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"==typeof e?j.fromString(e,t):j.fromObject(e)}static fromObject(e){return j.isParamType(e)?e:new j(C,{name:e.name||null,type:Q(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(j.fromObject):null})}static fromString(e,t){var r;return r=function(e,t){let r=e;function n(t){I.throwArgumentError(`unexpected character at position ${t}`,"param",e)}function i(e){let r={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},s=o;for(let r=0;r<e.length;r++){let o=e[r];switch(o){case"(":s.state.allowType&&""===s.type?s.type="tuple":s.state.allowParams||n(r),s.state.allowType=!1,s.type=Q(s.type),s.components=[i(s)],s=s.components[0];break;case")":delete s.state,"indexed"===s.name&&(t||n(r),s.indexed=!0,s.name=""),L(s.type,s.name)&&(s.name=""),s.type=Q(s.type);let a=s;(s=s.parent)||n(r),delete a.parent,s.state.allowParams=!1,s.state.allowName=!0,s.state.allowArray=!0;break;case",":delete s.state,"indexed"===s.name&&(t||n(r),s.indexed=!0,s.name=""),L(s.type,s.name)&&(s.name=""),s.type=Q(s.type);let l=i(s.parent);s.parent.components.push(l),delete s.parent,s=l;break;case" ":s.state.allowType&&""!==s.type&&(s.type=Q(s.type),delete s.state.allowType,s.state.allowName=!0,s.state.allowParams=!0),s.state.allowName&&""!==s.name&&("indexed"===s.name?(t||n(r),s.indexed&&n(r),s.indexed=!0,s.name=""):L(s.type,s.name)?s.name="":s.state.allowName=!1);break;case"[":s.state.allowArray||n(r),s.type+=o,s.state.allowArray=!1,s.state.allowName=!1,s.state.readArray=!0;break;case"]":s.state.readArray||n(r),s.type+=o,s.state.readArray=!1,s.state.allowArray=!0,s.state.allowName=!0;break;default:s.state.allowType?(s.type+=o,s.state.allowParams=!0,s.state.allowArray=!0):s.state.allowName?(s.name+=o,delete s.state.allowArray):s.state.readArray?s.type+=o:n(r)}}return s.parent&&I.throwArgumentError("unexpected eof","param",e),delete o.state,"indexed"===s.name?(t||n(r.length-7),s.indexed&&n(r.length-7),s.indexed=!0,s.name=""):L(s.type,s.name)&&(s.name=""),o.type=Q(o.type),o}(e,!!t),j.fromObject({name:r.name,type:r.type,indexed:r.indexed,components:r.components})}static isParamType(e){return!!(null!=e&&e._isParamType)}}function U(e,t){return(function(e){e=e.trim();let t=[],r="",n=0;for(let i=0;i<e.length;i++){let o=e[i];","===o&&0===n?(t.push(r),r=""):(r+=o,"("===o?n++:")"===o&&-1==--n&&I.throwArgumentError("unbalanced parenthesis","value",e))}return r&&t.push(r),t})(e).map(e=>j.fromString(e,t))}class z{constructor(e,t){e!==C&&I.throwError("use a static from method",s.Vy.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),F(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return z.isFragment(e)?e:"string"==typeof e?z.fromString(e):z.fromObject(e)}static fromObject(e){if(z.isFragment(e))return e;switch(e.type){case"function":return K.fromObject(e);case"event":return V.fromObject(e);case"constructor":return Y.fromObject(e);case"error":return J.fromObject(e);case"fallback":case"receive":return null}return I.throwArgumentError("invalid fragment object","value",e)}
2static fromString(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?V.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?K.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?Y.fromString(e.trim()):"error"===e.split(" ")[0]?J.fromString(e.substring(5).trim()):I.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class V extends z{format(e){if(e||(e=B.sighash),B[e]||I.throwArgumentError("invalid format type","format",e),e===B.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==B.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===B.full?", ":",")+") ",e!==B.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"==typeof e?V.fromString(e):V.fromObject(e)}static fromObject(e){return V.isEventFragment(e)?e:("event"!==e.type&&I.throwArgumentError("invalid event object","value",e),new V(C,{name:$(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(j.fromObject):[],type:"event"}))}static fromString(e){let t=e.match(Z);t||I.throwArgumentError("invalid event string","value",e);let r=!1;return t[3].split(" ").forEach(e=>{switch(e.trim()){case"anonymous":r=!0;break;case"":break;default:I.warn("unknown modifier: "+e)}}),V.fromObject({name:t[1].trim(),anonymous:r,inputs:U(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function H(e,t){t.gas=null;let r=e.split("@");return 1!==r.length?(r.length>2&&I.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||I.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=i.gH.from(r[1]),r[0]):e}function G(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach(e=>{switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}})}function q(e){let t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&I.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&I.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||I.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&I.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&I.throwArgumentError("unable to determine stateMutability","value",e),t}class Y extends z{format(e){if(e||(e=B.sighash),B[e]||I.throwArgumentError("invalid format type","format",e),e===B.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});e===B.sighash&&I.throwError("cannot format a constructor for sighash",s.Vy.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map(t=>t.format(e)).join(e===B.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"==typeof e?Y.fromString(e):Y.fromObject(e)}static fromObject(e){if(Y.isConstructorFragment(e))return e;"constructor"!==e.type&&I.throwArgumentError("invalid constructor object","value",e);let t=q(e);return t.constant&&I.throwArgumentError("constructor cannot be constant","value",e),new Y(C,{name:null,type:e.type,inputs:e.inputs?e.inputs.map(j.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?i.gH.from(e.gas):null})}static fromString(e){let t={type:"constructor"},r=(e=H(e,t)).match(Z);return r&&"constructor"===r[1].trim()||I.throwArgumentError("invalid constructor string","value",e),t.input
2s=U(r[2].trim(),!1),G(r[3].trim(),t),Y.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class K extends Y{format(e){if(e||(e=B.sighash),B[e]||I.throwArgumentError("invalid format type","format",e),e===B.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e))),outputs:this.outputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==B.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===B.full?", ":",")+") ",e!==B.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map(t=>t.format(e)).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}static from(e){return"string"==typeof e?K.fromString(e):K.fromObject(e)}static fromObject(e){if(K.isFunctionFragment(e))return e;"function"!==e.type&&I.throwArgumentError("invalid function object","value",e);let t=q(e);return new K(C,{type:e.type,name:$(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(j.fromObject):[],outputs:e.outputs?e.outputs.map(j.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?i.gH.from(e.gas):null})}static fromString(e){let t={type:"function"},r=(e=H(e,t)).split(" returns ");r.length>2&&I.throwArgumentError("invalid function string","value",e);let n=r[0].match(Z);if(n||I.throwArgumentError("invalid function signature","value",e),t.name=n[1].trim(),t.name&&$(t.name),t.inputs=U(n[2],!1),G(n[3].trim(),t),r.length>1){let n=r[1].match(Z);(""!=n[1].trim()||""!=n[3].trim())&&I.throwArgumentError("unexpected tokens","value",e),t.outputs=U(n[2],!1)}else t.outputs=[];return K.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function W(e){let t=e.format();return("Error(string)"===t||"Panic(uint256)"===t)&&I.throwArgumentError(`cannot specify user defined ${t} error`,"fragment",e),e}class J extends z{format(e){if(e||(e=B.sighash),B[e]||I.throwArgumentError("invalid format type","format",e),e===B.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==B.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===B.full?", ":",")+") ").trim()}static from(e){return"string"==typeof e?J.fromString(e):J.fromObject(e)}static fromObject(e){return J.isErrorFragment(e)?e:("error"!==e.type&&I.throwArgumentError("invalid error object","value",e),W(new J(C,{type:e.type,name:$(e.name),inputs:e.inputs?e.inputs.map(j.fromObject):[]})))}static fromString(e){let t={type:"error"},r=e.match(Z);return r||I.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&$(t.name),t.inputs=U(r[2],!1),W(J.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function Q(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}let X=RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function $(e){return e&&e.match(X)||I.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}let Z=RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$"),ee=new s.Vy(a),et=new RegExp(/^bytes([0-9]*)$/),er=new RegExp(/^(u?int)([0-9]*)$/);class en{constructor(e){(0,o.yY)(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new m(e.name);case"bool":return new A(e.name);case"string":return new R(e.name);case"bytes":return new E(e.name);case"array":return new w(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new P((e.components||[]).map(e=>this._getCoder(e)),e.name);case"":return new k(e.name)}let t=e.type.match(er);if(t){let r=parseInt(t[2]||"256");return(0===r||r>256||r%8!=0)&&ee.throwArgumentError("invalid "+t[1]+" bit length","param",e),new S(r/8,"int"===t[1],e.name)}if(t=e.type.match(et)){let r=parseInt(t[1]);return(0===r||r>32)&&ee.throwArgumentError("invalid bytes length","param",e),new _(r,e.name)}return ee.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,t){return new f(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new c(this._getWordSize())}getDefaultValue(e){return new P(e.map(e=>this._getCoder(j.from(e))),"_").defaultValue()}encode(e,t){e.length!==t.length&&ee.throwError("types/values length mismatch",s.Vy.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});let r=new P(e.map(e=>this._getCoder(j.from(e))),"_"),n=this._getWriter();return r.encode(n,t),n.data}decode(e,t,r){return new P(e.map(e=>this._getCoder(j.from(e))),"_").decode(this._getReader((0,n.k9)(t),r))}}let ei=new en,eo=new s.Vy(a);class es extends o.VY{}class ea extends o.VY{}class el extends o.VY{}class eu extends o.VY{static isIndexed(e){return!!(e&&e._isIndexed)}}let ec={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function ef(e,t){let r=Error(`deferred error during ABI decoding triggered accessing ${e}`);return r.error=t,r}class eh{constructor(e){let t=[];t="string"==typeof e?JSON.parse(e):e,(0,o.yY)(this,"fragments",t.map(e=>z.from(e)).filter(e=>null!=e)),(0,o.yY)(this,"_abiCoder",(0,o.$J)(new.target,"getAbiCoder")()),(0,o.yY)(this,"functions",{}),(0,o.yY)(this,"errors",{}),(0,o.yY)(this,"events",{}),(0,o.yY)(this,"structs",{}
2),this.fragments.forEach(e=>{let t=null;switch(e.type){case"constructor":if(this.deploy)return void eo.warn("duplicate definition - constructor");(0,o.yY)(this,"deploy",e);return;case"function":t=this.functions;break;case"event":t=this.events;break;case"error":t=this.errors;break;default:return}let r=e.format();t[r]?eo.warn("duplicate definition - "+r):t[r]=e}),this.deploy||(0,o.yY)(this,"deploy",Y.from({payable:!1,type:"constructor"})),(0,o.yY)(this,"_isInterface",!0)}format(e){e||(e=B.full),e===B.sighash&&eo.throwArgumentError("interface does not support formatting sighash","format",e);let t=this.fragments.map(t=>t.format(e));return e===B.json?JSON.stringify(t.map(e=>JSON.parse(e))):t}static getAbiCoder(){return ei}static getAddress(e){return(0,h.bv)(e)}static getSighash(e){return(0,n.Ab)((0,d.id)(e.format()),0,4)}static getEventTopic(e){return(0,d.id)(e.format())}getFunction(e){if((0,n.Lo)(e)){for(let t in this.functions)if(e===this.getSighash(t))return this.functions[t];eo.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){let t=e.trim(),r=Object.keys(this.functions).filter(e=>e.split("(")[0]===t);return 0===r.length?eo.throwArgumentError("no matching function","name",t):r.length>1&&eo.throwArgumentError("multiple matching functions","name",t),this.functions[r[0]]}let t=this.functions[K.fromString(e).format()];return t||eo.throwArgumentError("no matching function","signature",e),t}getEvent(e){if((0,n.Lo)(e)){let t=e.toLowerCase();for(let e in this.events)if(t===this.getEventTopic(e))return this.events[e];eo.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){let t=e.trim(),r=Object.keys(this.events).filter(e=>e.split("(")[0]===t);return 0===r.length?eo.throwArgumentError("no matching event","name",t):r.length>1&&eo.throwArgumentError("multiple matching events","name",t),this.events[r[0]]}let t=this.events[V.fromString(e).format()];return t||eo.throwArgumentError("no matching event","signature",e),t}getError(e){if((0,n.Lo)(e)){let t=(0,o.$J)(this.constructor,"getSighash");for(let r in this.errors)if(e===t(this.errors[r]))return this.errors[r];eo.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){let t=e.trim(),r=Object.keys(this.errors).filter(e=>e.split("(")[0]===t);return 0===r.length?eo.throwArgumentError("no matching error","name",t):r.length>1&&eo.throwArgumentError("multiple matching errors","name",t),this.errors[r[0]]}let t=this.errors[K.fromString(e).format()];return t||eo.throwArgumentError("no matching error","signature",e),t}getSighash(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return(0,o.$J)(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"==typeof e&&(e=this.getEvent(e)),(0,o.$J)(this.constructor,"getEventTopic")(e)}_decodeParams(e,t){return this._abiCoder.decode(e,t)}_encodeParams(e,t){return this._abiCoder.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){"string"==typeof e&&(e=this.getError(e));let r=(0,n.k9)(t);return(0,n.c$)(r.slice(0,4))!==this.getSighash(e)&&eo.throwArgumentError(`data signature does not match error ${e.name}.`,"data",(0,n.c$)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeErrorResult(e,t){return"string"==typeof e&&(e=this.getError(e)),(0,n.c$)((0,n.xW)([this.get
2Sighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionData(e,t){"string"==typeof e&&(e=this.getFunction(e));let r=(0,n.k9)(t);return(0,n.c$)(r.slice(0,4))!==this.getSighash(e)&&eo.throwArgumentError(`data signature does not match function ${e.name}.`,"data",(0,n.c$)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeFunctionData(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,n.c$)((0,n.xW)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,t){"string"==typeof e&&(e=this.getFunction(e));let r=(0,n.k9)(t),i=null,o="",a=null,l=null,u=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(e){}break;case 4:{let e=(0,n.c$)(r.slice(0,4)),t=ec[e];if(t)a=this._abiCoder.decode(t.inputs,r.slice(4)),l=t.name,u=t.signature,t.reason&&(i=a[0]),"Error"===l?o=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(a[0])}`:"Panic"===l&&(o=`; VM Exception while processing transaction: reverted with panic code ${a[0]}`);else try{let t=this.getError(e);a=this._abiCoder.decode(t.inputs,r.slice(4)),l=t.name,u=t.format()}catch(e){}}}return eo.throwError("call revert exception"+o,s.Vy.errors.CALL_EXCEPTION,{method:e.format(),data:(0,n.c$)(t),errorArgs:a,errorName:l,errorSignature:u,reason:i})}encodeFunctionResult(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,n.c$)(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&eo.throwError("too many arguments for "+e.format(),s.Vy.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});let r=[];e.anonymous||r.push(this.getEventTopic(e));let o=(e,t)=>"string"===e.type?(0,d.id)(t):"bytes"===e.type?(0,p.S)((0,n.c$)(t)):("bool"===e.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=i.gH.from(t).toHexString()),"address"===e.type&&this._abiCoder.encode(["address"],[t]),(0,n.bj)((0,n.c$)(t),32));for(t.forEach((t,n)=>{let i=e.inputs[n];if(!i.indexed){null!=t&&eo.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+i.name,t);return}null==t?r.push(null):"array"===i.baseType||"tuple"===i.baseType?eo.throwArgumentError("filtering with tuples or arrays not supported","contract."+i.name,t):Array.isArray(t)?r.push(t.map(e=>o(i,e))):r.push(o(i,t))});r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){"string"==typeof e&&(e=this.getEvent(e));let r=[],n=[],i=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&eo.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((e,o)=>{let s=t[o];if(e.indexed)if("string"===e.type)r.push((0,d.id)(s));else if("bytes"===e.type)r.push((0,p.S)(s));else if("tuple"===e.baseType||"array"===e.baseType)throw Error("not implemented");else r.push(this._abiCoder.encode([e.type],[s]));else n.push(e),i.push(s)}),{data:this._abiCoder.encode(n,i),topics:r}}decodeEventLog(e,t,r){if("string"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){let t=this.getEventTopic(e);(0,n.Lo)(r[0],32)&&r[0].toLowerCase()===t||eo.throwError("fragment/topic mismatch",s.Vy.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:t,value:r[0]}),r=r.slice(1)}let i=[],o=[],a=[];e.inputs.forEach((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(i.push(j.fromObject({type:"bytes32",name:e.name})),a.push(!0)):(i.push(e),a.push(!1)):(o.push(e),a.push(!1))});let l=null!=r?this._abiCoder.decode(i,(0,n.xW)(r)):null,u=this._abiCoder.decode(o,t,!0),c=[],f=0,h=0;e.inputs.forEach((e,t)=>{if(e.indexed)if(null==l)c[t]=new eu({_isIndexed:!0,hash:null});else if(a[t])c[t]=new eu({_isIndexed:!0,hash:l[h++]});else try{c[t]=l[h++]}catch(e){c[t]=e}else try{c[t]=u[f++]}catch(e){c[t]=e}if(e.name&&null==c[e.name]){let r=c[t];r instanceof Error?Object.defineProperty(c,e.name,{enumerable:!0,get:()=>{throw ef(`property ${JSON.stringify(e.name)}`,r)}}):c[e.name]=r}});for(let e=0;e<c.length;e++){let t=c[e];t instanceof Error&&Object.defineProperty(c,e,{enumerable:!0,get:()=>{throw ef(`index ${e}`,t)}})}return Object.freeze(c)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new ea({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:i.gH.from(e.value||"0")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new es({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}parseError(e){let t=(0,n.c$)(e),r=this.getError(t.substring(0,10).toLowerCase());return r?new el({args:this._abiCoder.decode(r.inputs,"0x"+t.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(e){return!!(e&&e._isInterface)}}var ed=r(82673),ep=r(78428),em=r(33668),eg=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};let ey=new s.Vy("contracts/5.7.0");function ev(e,t){return eg(this,void 0,void 0,function*(){let r=yield t;"string"!=typeof r&&ey.throwArgumentError("invalid address or ENS name","name",r);try{return(0,h.bv)(r)}catch(e){}e||ey.throwError("a provider or signer is needed to resolve ENS names",s.Vy.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});let n=yield e.resolveName(r);return null==n&&ey.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n})}function eb(e,t,r){return eg(this,void 0,void 0,function*(){let a={};r.length===t.inputs.length+1&&"object"==typeof r[r.length-1]&&(a=(0,o.Ic)(r.pop())
2),ey.checkArgumentCount(r.length,t.inputs.length,"passed to contract"),e.signer?a.from?a.from=(0,o.k_)({override:ev(e.signer,a.from),signer:e.signer.getAddress()}).then(e=>eg(this,void 0,void 0,function*(){return(0,h.bv)(e.signer)!==e.override&&ey.throwError("Contract with a Signer cannot override from",s.Vy.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),e.override})):a.from=e.signer.getAddress():a.from&&(a.from=ev(e.provider,a.from));let l=yield(0,o.k_)({args:function e(t,r,n){return eg(this,void 0,void 0,function*(){return Array.isArray(n)?yield Promise.all(n.map((n,i)=>e(t,Array.isArray(r)?r[i]:r[n.name],n))):"address"===n.type?yield ev(t,r):"tuple"===n.type?yield e(t,r,n.components):"array"===n.baseType?Array.isArray(r)?yield Promise.all(r.map(r=>e(t,r,n.arrayChildren))):Promise.reject(ey.makeError("invalid value for array",s.Vy.errors.INVALID_ARGUMENT,{argument:"value",value:r})):r})}(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:(0,o.k_)(a)||{}}),u=e.interface.encodeFunctionData(t,l.args),c={data:u,to:l.address},f=l.overrides;if(null!=f.nonce&&(c.nonce=i.gH.from(f.nonce).toNumber()),null!=f.gasLimit&&(c.gasLimit=i.gH.from(f.gasLimit)),null!=f.gasPrice&&(c.gasPrice=i.gH.from(f.gasPrice)),null!=f.maxFeePerGas&&(c.maxFeePerGas=i.gH.from(f.maxFeePerGas)),null!=f.maxPriorityFeePerGas&&(c.maxPriorityFeePerGas=i.gH.from(f.maxPriorityFeePerGas)),null!=f.from&&(c.from=f.from),null!=f.type&&(c.type=f.type),null!=f.accessList&&(c.accessList=(0,em.$2)(f.accessList)),null==c.gasLimit&&null!=t.gas){let e=21e3,r=(0,n.k9)(u);for(let t=0;t<r.length;t++)e+=4,r[t]&&(e+=64);c.gasLimit=i.gH.from(t.gas).add(e)}if(f.value){let e=i.gH.from(f.value);e.isZero()||t.payable||ey.throwError("non-payable method cannot override value",s.Vy.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:a.value}),c.value=e}f.customData&&(c.customData=(0,o.Ic)(f.customData)),f.ccipReadEnabled&&(c.ccipReadEnabled=!!f.ccipReadEnabled),delete a.nonce,delete a.gasLimit,delete a.gasPrice,delete a.from,delete a.value,delete a.type,delete a.accessList,delete a.maxFeePerGas,delete a.maxPriorityFeePerGas,delete a.customData,delete a.ccipReadEnabled;let d=Object.keys(a).filter(e=>null!=a[e]);return d.length&&ey.throwError(`cannot override ${d.map(e=>JSON.stringify(e)).join(",")}`,s.Vy.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:d}),c})}function ew(e,t,r){let n=e.signer||e.provider;return function(...i){return eg(this,void 0,void 0,function*(){let a;if(i.length===t.inputs.length+1&&"object"==typeof i[i.length-1]){let e=(0,o.Ic)(i.pop());null!=e.blockTag&&(a=yield e.blockTag),delete e.blockTag,i.push(e)}null!=e.deployTransaction&&(yield e._deployed(a));let l=yield eb(e,t,i),u=yield n.call(l,a);try{let n=e.interface.decodeFunctionResult(t,u);return r&&1===t.outputs.length&&(n=n[0]),n}catch(t){throw t.code===s.Vy.errors.CALL_EXCEPTION&&(t.address=e.address,t.args=i,t.transaction=l),t}})}}function eA(e,t,r){return t.constant?ew(e,t,r):function(...r){return eg(this,void 0,void 0,function*(){let n;e.signer||ey.throwError("sending a transaction requires a signer",s.Vy.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=e.deployTransaction&&(yield e._deployed());let i=yield eb(e,t,r),a=yield e.signer.sendTransaction(i);return n=a.wait.bind(a),a.wait=t=>n(t).then(t=>(t.events=t.logs.map(r=>{let n=(0,o.A4)(r),i=null;try{i=e.interface.parseLog(r)}catch(e){}return i&&(n.args=i.args,n.decode=(t,r)=>e.interface.decodeEventLog(i.eventFragment,t,r),n.event=i.name,n.eventSignature=i.signature),n.removeListener=()=>e.provider,n.getBlock=()=>e.provider.getBlock(t.blockHash),n.getTransaction=()=>e.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>Promise.resolve(t),n}),t)),a})}}function ex(e){return e.address&&(null==e.topics||0===e.topics.length)?"*":(e.address||"*")+"@"+(e.topics?e.topics.map(e=>Array.isArray(e)?e.join("|"):e).join(":"):"")}class eE{constructor(e,t){(0,o.yY)(this,"tag",e),(0,o.yY)(this,"filter",t),this._listeners=[]}addListener(e,t){this._listeners.push({listener:e,once:t})}removeListener(e){let t=!1;this._listeners=this._listeners.filter(r=>!!t||r.listener!==e||(t=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(e=>e.listener)}listenerCount(){return this._listeners.length}run(e){let t=this.listenerCount();return this._listeners=this._listeners.filter(t=>{let r=e.slice();return setTimeout(()=>{t.listener.apply(this,r)},0),!t.once}),t}prepareEvent(e){}getEmit(e){return[e]}}class e_ extends eE{constructor(){super("error",null)}}class ek extends eE{constructor(e,t,r,n){const i={address:e};let s=t.getEventTopic(r);n?(s!==n[0]&&ey.throwArgumentError("topic mismatch","topics",n),i.topics=n.slice()):i.topics=[s],super(ex(i),i),(0,o.yY)(this,"address",e),(0,o.yY)(this,"interface",t),(0,o.yY)(this,"fragment",r)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(e,t)=>this.interface.decodeEventLog(this.fragment,e,t);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(t){e.args=null,e.decodeError=t}}getEmit(e){var t;let r,n,i=(t=e.args,r=[],(n=function(e,t){if(Array.isArray(t))for(let i in t){let o=e.slice();o.push(i);try{n(o,t[i])}catch(e){r.push({path:o,error:e})}}})([],t),r);if(i.length)throw i[0].error;let o=(e.args||[]).slice();return o.push(e),o}}class eN extends eE{constructor(e,t){super("*",{address:e}),(0,o.yY)(this,"address",e),(0,o.yY)(this,"interface",t)}prepareEvent(e){super.prepareEvent(e);try{let t=this.interface.parseLog(e);e.event=t.name,e.eventSignature=t.signature,e.decode=(e,r)=>this.interface.decodeEventLog(t.eventFragment,e,r),e.args=t.args}catch(e){}}}class eS{constructor(e,t,r){(0,o.yY)(this,"interface",(0,o.$J)(new.target,"getInterface")(t)),null==r?((0,o.yY)(this,"provider",null),(0,o.yY)(this,"signer",null)):ep.l.isSigner(r)?((0,o.yY)(this,"provider",r.provider||null),(0,o.yY)(this,"signer",r)):ed.Kq.isProvider(r)?((0,o.yY)(this,"provider",r),(0,o.yY)(this,"signer",null)):ey.throwArgumentError("invalid signer or provider","signerOrProvider",r),(0,o.yY)(this,"callStatic",{}),(0,o.yY)(this,"estimateGas",{}),(0,o.yY)(this,"functions",{}),(0,o.yY)(this,"populateTransaction",{}),(0,o.yY)(this,"filters",{});{const e={};
2Object.keys(this.interface.events).forEach(t=>{let r=this.interface.events[t];(0,o.yY)(this.filters,t,(...e)=>({address:this.address,topics:this.interface.encodeFilterTopics(r,e)})),e[r.name]||(e[r.name]=[]),e[r.name].push(t)}),Object.keys(e).forEach(t=>{let r=e[t];1===r.length?(0,o.yY)(this.filters,t,this.filters[r[0]]):ey.warn(`Duplicate definition of ${t} (${r.join(", ")})`)})}if((0,o.yY)(this,"_runningEvents",{}),(0,o.yY)(this,"_wrappedEmits",{}),null==e&&ey.throwArgumentError("invalid contract address or ENS name","addressOrName",e),(0,o.yY)(this,"address",e),this.provider)(0,o.yY)(this,"resolvedAddress",ev(this.provider,e));else try{(0,o.yY)(this,"resolvedAddress",Promise.resolve((0,h.bv)(e)))}catch(e){ey.throwError("provider is required to use ENS name as contract address",s.Vy.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(e=>{});const n={},i={};Object.keys(this.interface.functions).forEach(e=>{var t,r;let a,l=this.interface.functions[e];if(i[e])return void ey.warn(`Duplicate ABI entry for ${JSON.stringify(e)}`);i[e]=!0;{let t=l.name;n[`%${t}`]||(n[`%${t}`]=[]),n[`%${t}`].push(e)}null==this[e]&&(0,o.yY)(this,e,eA(this,l,!0)),null==this.functions[e]&&(0,o.yY)(this.functions,e,eA(this,l,!1)),null==this.callStatic[e]&&(0,o.yY)(this.callStatic,e,ew(this,l,!0)),null==this.populateTransaction[e]&&(0,o.yY)(this.populateTransaction,e,(t=this,function(...e){return eb(t,l,e)})),null==this.estimateGas[e]&&(0,o.yY)(this.estimateGas,e,(r=this,a=r.signer||r.provider,function(...e){return eg(this,void 0,void 0,function*(){a||ey.throwError("estimate require a provider or signer",s.Vy.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});let t=yield eb(r,l,e);return yield a.estimateGas(t)})}))}),Object.keys(n).forEach(e=>{let t=n[e];if(t.length>1)return;e=e.substring(1);let r=t[0];try{null==this[e]&&(0,o.yY)(this,e,this[r])}catch(e){}null==this.functions[e]&&(0,o.yY)(this.functions,e,this.functions[r]),null==this.callStatic[e]&&(0,o.yY)(this.callStatic,e,this.callStatic[r]),null==this.populateTransaction[e]&&(0,o.yY)(this.populateTransaction,e,this.populateTransaction[r]),null==this.estimateGas[e]&&(0,o.yY)(this.estimateGas,e,this.estimateGas[r])})}static getContractAddress(e){return(0,h.RZ)(e)}static getInterface(e){return eh.isInterface(e)?e:new eh(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,e).then(e=>("0x"===e&&ey.throwError("contract not deployed",s.Vy.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||ey.throwError("sending a transactions require a signer",s.Vy.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});let t=(0,o.Ic)(e||{});return["from","to"].forEach(function(e){null!=t[e]&&ey.throwError("cannot override "+e,s.Vy.errors.UNSUPPORTED_OPERATION,{operation:e})}),t.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(t))}connect(e){"string"==typeof e&&(e=new ep.J(e,this.provider));let t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,o.yY)(t,"deployTransaction",this.deployTransaction),t}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return eu.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new e_);if("event"===e)return this._normalizeRunningEvent(new eE("event",null));if("*"===e)return this._normalizeRunningEvent(new eN(this.address,this.interface));let t=this.interface.getEvent(e);return this._normalizeRunningEvent(new ek(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{let t=e.topics[0];if("string"!=typeof t)throw Error("invalid topic");let r=this.interface.getEvent(t);return this._normalizeRunningEvent(new ek(this.address,this.interface,r,e.topics))}catch(e){}let t={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new eE(ex(t),t))}return this._normalizeRunningEvent(new eN(this.address,this.interface))}_checkRunningEvents(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];let t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,t,r){let n=(0,o.A4)(t);return n.removeListener=()=>{r&&(e.removeListener(r),this._checkRunningEvents(e))},n.getBlock=()=>this.provider.getBlock(t.blockHash),n.getTransaction=()=>this.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>this.provider.getTransactionReceipt(t.transactionHash),e.prepareEvent(n),n}_addEventListener(e,t,r){if(this.provider||ey.throwError("events require a provider or a signer with a provider",s.Vy.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){let r=r=>{let n=this._wrapEvent(e,r,t);if(null==n.decodeError)try{let t=e.getEmit(n);
2this.emit(e.filter,...t)}catch(e){n.decodeError=e.error}null!=e.filter&&this.emit("event",n),null!=n.decodeError&&this.emit("error",n.decodeError,n)};this._wrappedEmits[e.tag]=r,null!=e.filter&&this.provider.on(e.filter,r)}}queryFilter(e,t,r){let i=this._getRunningEvent(e),s=(0,o.Ic)(i.filter);return"string"==typeof t&&(0,n.Lo)(t,32)?(null!=r&&ey.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),s.blockHash=t):(s.fromBlock=null!=t?t:0,s.toBlock=null!=r?r:"latest"),this.provider.getLogs(s).then(e=>e.map(e=>this._wrapEvent(i,e,null)))}on(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}once(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}emit(e,...t){if(!this.provider)return!1;let r=this._getRunningEvent(e),n=r.run(t)>0;return this._checkRunningEvents(r),n}listenerCount(e){return this.provider?null==e?Object.keys(this._runningEvents).reduce((e,t)=>e+this._runningEvents[t].listenerCount(),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(null==e){let e=[];for(let t in this._runningEvents)this._runningEvents[t].listeners().forEach(t=>{e.push(t)});return e}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(null==e){for(let e in this._runningEvents){let t=this._runningEvents[e];t.removeAllListeners(),this._checkRunningEvents(t)}return this}let t=this._getRunningEvent(e);return t.removeAllListeners(),this._checkRunningEvents(t),this}off(e,t){if(!this.provider)return this;let r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this}removeListener(e,t){return this.off(e,t)}}class eM extends eS{}},42442:(e,t,r)=>{"use strict";r.d(t,{DX:()=>a,TL:()=>s});var n=r(12115),i=r(47527),o=r(95155);function s(e){var t;let r,s=(t=e,(r=n.forwardRef((e,t)=>{let{children:r,...o}=e;if(n.isValidElement(r)){var s;let e,a,l=(s=r,(a=(e=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.ref:(a=(e=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.props.ref:s.props.ref||s.ref),u=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,i.t)(t,l):l),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null})).displayName=`${t}.SlotClone`,r),a=n.forwardRef((e,t)=>{let{children:r,...i}=e,a=n.Children.toArray(r),l=a.find(u);if(l){let e=l.props.children,r=a.map(t=>t!==l?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,o.jsx)(s,{...i,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,o.jsx)(s,{...i,ref:t,children:r})});return a.displayName=`${e}.Slot`,a}var a=s("Slot"),l=Symbol("radix.slottable");function u(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}},42742:(e,t,r)=>{"use strict";let n,i;r.d(t,{F:()=>e0});var o,s=r(78428),a=r(54914),l=r(44464),u=r(6061),c=r(72385),f=r(99502),h=r(51633);let d="hash/5.8.0";var p=r(11135);let m=new h.Vy(d),g=new Uint8Array(32);g.fill(0);let y=a.gH.from(-1),v=a.gH.from(0),b=a.gH.from(1),w=a.gH.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),A=(0,l.bj)(b.toHexString(),32),x=(0,l.bj)(v.toHexString(),32),E={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},_=["name","version","chainId","verifyingContract","salt"];function k(e){return function(t){return"string"!=typeof t&&m.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}let N={name:k("name"),version:k("version"),chainId:function(e){try{return a.gH.from(e).toString()}catch(e){}return m.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return(0,u.bv)(e).toLowerCase()}catch(e){}return m.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{let t=(0,l.k9)(e);if(32!==t.length)throw Error("bad length");return(0,l.c$)(t)}catch(e){}return m.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function S(e){{let t=e.match(/^(u?)int(\d*)$/);if(t){let r=""===t[1],n=parseInt(t[2]||"256");(n%8!=0||n>256||t[2]&&t[2]!==String(n))&&m.throwArgumentError("invalid numeric width","type",e);let i=w.mask(r?n-1:n),o=r?i.add(b).mul(y):v;return function(t){let r=a.gH.from(t);return(r.lt(o)||r.gt(i))&&m.throwArgumentError(`value out-of-bounds for ${e}`,"value",t),(0,l.bj)(r.toTwos(256).toHexString(),32)}}}{let t=e.match(/^bytes(\d+)$/);if(t){let r=parseInt(t[1]);return(0===r||r>32||t[1]!==String(r))&&m.throwArgumentError("invalid bytes width","type",e),function(t){let n,i;return(0,l.k9)(t).length!==r&&m.throwArgumentError(`invalid length for ${e}`,"value",t),(i=(n=(0,l.k9)(t)).length%32)?(0,l.qn)([n,g.slice(i)]):(0,l.c$)(n)}}}switch(e){case"address":return function(e){return(0,l.bj)((0,u.bv)(e),32)};case"bool":return function(e){return e?A:x};case"bytes":return function(e){return(0,c.S)(e)};case"string":return function(e){return(0,p.id)(e)}}return null}function M(e,t){return`${e}(${t.map(({name:e,type:t})=>t+" "+e).join(",")})`}class R{constructor(e){(0,f.yY)(this,"types",Object.freeze((0,f.A4)(e))),(0,f.yY)(this,"_encoderCache",{}),(0,f.yY)(this,"_types",{});const t={},r={},n={};
2for(const i in Object.keys(e).forEach(e=>{t[e]={},r[e]=[],n[e]={}}),e){const n={};e[i].forEach(o=>{n[o.name]&&m.throwArgumentError(`duplicate variable name ${JSON.stringify(o.name)} in ${JSON.stringify(i)}`,"types",e),n[o.name]=!0;let s=o.type.match(/^([^\x5b]*)(\x5b|$)/)[1];s===i&&m.throwArgumentError(`circular type reference to ${JSON.stringify(s)}`,"types",e),S(s)||(r[s]||m.throwArgumentError(`unknown type ${JSON.stringify(s)}`,"types",e),r[s].push(i),t[i][s]=!0)})}const i=Object.keys(r).filter(e=>0===r[e].length);for(const o in 0===i.length?m.throwArgumentError("missing primary type","types",e):i.length>1&&m.throwArgumentError(`ambiguous primary types or unused types: ${i.map(e=>JSON.stringify(e)).join(", ")}`,"types",e),(0,f.yY)(this,"primaryType",i[0]),!function i(o,s){s[o]&&m.throwArgumentError(`circular type reference to ${JSON.stringify(o)}`,"types",e),s[o]=!0,Object.keys(t[o]).forEach(e=>{r[e]&&(i(e,s),Object.keys(s).forEach(t=>{n[t][e]=!0}))}),delete s[o]}(this.primaryType,{}),n){const t=Object.keys(n[o]);t.sort(),this._types[o]=M(o,e[o])+t.map(t=>M(t,e[t])).join("")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{let t=S(e);if(t)return t}let t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){let e=t[1],r=this.getEncoder(e),n=parseInt(t[3]);return t=>{n>=0&&t.length!==n&&m.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);let i=t.map(r);return this._types[e]&&(i=i.map(c.S)),(0,c.S)((0,l.qn)(i))}}let r=this.types[e];if(r){let t=(0,p.id)(this._types[e]);return e=>{let n=r.map(({name:t,type:r})=>{let n=this.getEncoder(r)(e[t]);return this._types[r]?(0,c.S)(n):n});return n.unshift(t),(0,l.qn)(n)}}return m.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){let t=this._types[e];return t||m.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,c.S)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){if(S(e))return r(e,t);let n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){let e=n[1],i=parseInt(n[3]);return i>=0&&t.length!==i&&m.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map(t=>this._visit(e,t,r))}let i=this.types[e];return i?i.reduce((e,{name:n,type:i})=>(e[n]=this._visit(i,t[n],r),e),{}):m.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new R(e)}static getPrimaryType(e){return R.from(e).primaryType}static hashStruct(e,t,r){return R.from(t).hashStruct(e,r)}static hashDomain(e){let t=[];for(let r in e){let n=E[r];n||m.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),t.push({name:r,type:n})}return t.sort((e,t)=>_.indexOf(e.name)-_.indexOf(t.name)),R.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return(0,l.qn)(["0x1901",R.hashDomain(e),R.from(t).hash(r)])}static hash(e,t,r){return(0,c.S)(R.encode(e,t,r))}static resolveNames(e,t,r,n){var i,o,s,a;return i=this,o=void 0,s=void 0,a=function*(){e=(0,f.Ic)(e);let i={};e.verifyingContract&&!(0,l.Lo)(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");let o=R.from(t);for(let e in o.visit(r,(e,t)=>("address"!==e||(0,l.Lo)(t,20)||(i[t]="0x"),t)),i)i[e]=yield n(e);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),r=o.visit(r,(e,t)=>"address"===e&&i[t]?i[t]:t),{domain:e,value:r}},new(s||(s=Promise))(function(e,t){function r(e){try{l(a.next(e))}catch(e){t(e)}}function n(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var i;t.done?e(t.value):((i=t.value)instanceof s?i:new s(function(e){e(i)})).then(r,n)}l((a=a.apply(i,o||[])).next())})}static getPayload(e,t,r){R.hashDomain(e);let n={},i=[];_.forEach(t=>{let r=e[t];null!=r&&(n[t]=N[t](r),i.push({name:t,type:E[t]}))});let o=R.from(t),s=(0,f.Ic)(t);return s.EIP712Domain?m.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):s.EIP712Domain=i,o.encode(r),{types:s,domain:n,primaryType:o.primaryType,message:o.visit(r,(e,t)=>{if(e.match(/^bytes(\d*)/))return(0,l.c$)((0,l.k9)(t));if(e.match(/^u?int/))return a.gH.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&m.throwArgumentError("invalid string","value",t),t}return m.throwArgumentError("unsupported type","type",e)})}}}var P=r(57141),I=r(33668);function C(e){e=atob(e);let t=[];for(let r=0;r<e.length;r++)t.push(e.charCodeAt(r));return(0,l.k9)(t)}function T(e){e=(0,l.k9)(e);let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}let O=new h.Vy("web/5.8.0");function L(e){return new Promise(t=>{setTimeout(t,e)})}function F(e,t){if(null==e)return null;if("string"==typeof e)return e;if((0,l.f)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return(0,P._v)(e)}catch(e){}return(0,l.c$)(e)}return e}function B(e,t,r){let n=null;if(null!=t){n=(0,P.YW)(t);let r="string"==typeof e?{url:e}:(0,f.Ic)(e);r.headers?0===Object.keys(r.headers).filter(e=>"content-type"===e.toLowerCase()).length&&(r.headers=(0,f.Ic)(r.headers),r.headers["content-type"]="application/json"):r.headers={"content-type":"application/json"},e=r}return function(e,t,r){let n,i="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;O.assertArgument(i>0&&i%1==0,"invalid connection throttle limit","connection.throttleLimit",i);let o="object"==typeof e?e.throttleCallback:null,s="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;O.assertArgument(s>0&&s%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",s);let a="object"==typeof e&&!!e.errorPassThrough,u={},c=null,d={method:"GET"},p=!1,m=12e4;if("string"==typeof e)c=e;else if("object"==typeof e){if((null==e||null==e.url)&&O.throwArgumentError("missing URL","connection.url",e),c=e.url,"number"==typeof e.timeout&&e.timeout>0&&(m=e.timeout),e.headers)for(let t in e.headers)u[t.toLowerCase()]={key:t,value:String(e.headers[t])},["if-none-match","if-modified-since"].indexOf(t.toLowerCase())>=0&&(p=!0);if(d.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==c.substring(0,6)&&!0!==e.allowInsecureAuthentication&&O.throwError("basic authentication requires a secure https url",h.Vy.errors.INVALID_ARGUMENT,{argument:"url",url:c,user:e.user,password:"[REDACTED]"});let t=e.user+":"+e.password;u.authorization={key:"Authorization",value:"Basic "+T((0,P.YW)(t))}}
2null!=e.skipFetchSetup&&(d.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(d.fetchOptions=(0,f.Ic)(e.fetchOptions))}let g=RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),y=c?c.match(g):null;if(y)try{var v;let e={statusCode:200,statusMessage:"OK",headers:{"content-type":y[1]||"text/plain"},body:y[2]?C(y[3]):(v=y[3],(0,P.YW)(v.replace(/%([0-9a-f][0-9a-f])/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))))},t=e.body;return r&&(t=r(e.body,e)),Promise.resolve(t)}catch(e){O.throwError("processing response error",h.Vy.errors.SERVER_ERROR,{body:F(y[1],y[2]),error:e,requestBody:null,requestMethod:"GET",url:c})}t&&(d.method="POST",d.body=t,null==u["content-type"]&&(u["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==u["content-length"]&&(u["content-length"]={key:"Content-Length",value:String(t.length)}));let b={};Object.keys(u).forEach(e=>{let t=u[e];b[t.key]=t.value}),d.headers=b;let w=(n=null,{promise:new Promise(function(e,t){m&&(n=setTimeout(()=>{null!=n&&(n=null,t(O.makeError("timeout",h.Vy.errors.TIMEOUT,{requestBody:F(d.body,b["content-type"]),requestMethod:d.method,timeout:m,url:c})))},m))}),cancel:function(){null!=n&&(clearTimeout(n),n=null)}}),A=function(){var e,t,n,u;return e=this,t=void 0,n=void 0,u=function*(){for(let e=0;e<i;e++){let t=null;try{if(t=yield function(e,t){var r,n,i,o;return r=this,n=void 0,i=void 0,o=function*(){null==t&&(t={});let r={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0};
2if(!0!==t.skipFetchSetup&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),null!=t.fetchOptions){let e=t.fetchOptions;e.mode&&(r.mode=e.mode),e.cache&&(r.cache=e.cache),e.credentials&&(r.credentials=e.credentials),e.redirect&&(r.redirect=e.redirect),e.referrer&&(r.referrer=e.referrer)}let n=yield fetch(e,r),i=yield n.arrayBuffer(),o={};return n.headers.forEach?n.headers.forEach((e,t)=>{o[t.toLowerCase()]=e}):n.headers.keys().forEach(e=>{o[e.toLowerCase()]=n.headers.get(e)}),{headers:o,statusCode:n.status,statusMessage:n.statusText,body:(0,l.k9)(new Uint8Array(i))}},new(i||(i=Promise))(function(e,t){function s(e){try{l(o.next(e))}catch(e){t(e)}}function a(e){try{l(o.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(s,a)}l((o=o.apply(r,n||[])).next())})}(c,d),e<i){if(301===t.statusCode||302===t.statusCode){let e=t.headers.location||"";if("GET"===d.method&&e.match(/^https:/)){c=t.headers.location;continue}}else if(429===t.statusCode){let r=!0;if(o&&(r=yield o(e,c)),r){let r=0,n=t.headers["retry-after"];r="string"==typeof n&&n.match(/^[1-9][0-9]*$/)?1e3*parseInt(n):s*parseInt(String(Math.random()*Math.pow(2,e))),yield L(r);continue}}}}catch(e){null==(t=e.response)&&(w.cancel(),O.throwError("missing response",h.Vy.errors.SERVER_ERROR,{requestBody:F(d.body,b["content-type"]),requestMethod:d.method,serverError:e,url:c}))}let n=t.body;if(p&&304===t.statusCode?n=null:!a&&(t.statusCode<200||t.statusCode>=300)&&(w.cancel(),O.throwError("bad response",h.Vy.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:F(n,t.headers?t.headers["content-type"]:null),requestBody:F(d.body,b["content-type"]),requestMethod:d.method,url:c})),r)try{let e=yield r(n,t);return w.cancel(),e}catch(r){if(r.throttleRetry&&e<i){let t=!0;if(o&&(t=yield o(e,c)),t){let t=s*parseInt(String(Math.random()*Math.pow(2,e)));yield L(t);continue}}w.cancel(),O.throwError("processing response error",h.Vy.errors.SERVER_ERROR,{body:F(n,t.headers?t.headers["content-type"]:null),error:r,requestBody:F(d.body,b["content-type"]),requestMethod:d.method,url:c})}return w.cancel(),n}return O.throwError("failed response",h.Vy.errors.SERVER_ERROR,{requestBody:F(d.body,b["content-type"]),requestMethod:d.method,url:c})},new(n||(n=Promise))(function(r,i){function o(e){try{a(u.next(e))}catch(e){i(e)}}function s(e){try{a(u.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}a((u=u.apply(e,t||[])).next())})}();return Promise.race([w.promise,A])}(e,n,(e,t)=>{let n=null;if(null!=e)try{n=JSON.parse((0,P._v)(e))}catch(t){O.throwError("invalid JSON",h.Vy.errors.SERVER_ERROR,{body:e,error:t})}return r&&(n=r(n,t)),n})}function D(e,t){return t||(t={}),null==(t=(0,f.Ic)(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise(function(r,n){let i=null,o=!1,s=()=>!o&&(o=!0,i&&clearTimeout(i),!0);t.timeout&&(i=setTimeout(()=>{s()&&n(Error("timeout"))},t.timeout));let a=t.retryLimit,l=0;!function i(){return e().then(function(e){if(void 0!==e)s()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",i);else if(t.onceBlock)t.onceBlock.once("block",i);else if(!o){if(++l>a){s()&&n(Error("retry limit reached"));return}let e=t.interval*parseInt(String(Math.random()*Math.pow(2,l)));e<t.floor&&(e=t.floor),e>t.ceiling&&(e=t.ceiling),setTimeout(i,e)}return null},function(e){s()&&n(e)})}()})}var j=r(94927),U=r(82673);class z{constructor(e){(0,f.yY)(this,"alphabet",e),(0,f.yY)(this,"base",e.length),(0,f.yY)(this,"_alphabetMap",{}),(0,f.yY)(this,"_leader",e.charAt(0));for(let t=0;t<e.length;t++)this._alphabetMap[e.charAt(t)]=t}encode(e){let t=(0,l.k9)(e);if(0===t.length)return"";let r=[0];for(let e=0;e<t.length;++e){let n=t[e];for(let e=0;e<r.length;++e)n+=r[e]<<8,r[e]=n%this.base,n=n/this.base|0;for(;n>0;)r.push(n%this.base),n=n/this.base|0}let n="";for(let e=0;0===t[e]&&e<t.length-1;++e)n+=this._leader;for(let e=r.length-1;e>=0;--e)n+=this.alphabet[r[e]];return n}decode(e){if("string"!=typeof e)throw TypeError("Expected String");let t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(let r=0;r<e.length;r++){let n=this._alphabetMap[e[r]];if(void 0===n)throw Error("Non-base"+this.base+" character");let i=n;for(let e=0;e<t.length;++e)i+=t[e]*this.base,t[e]=255&i,i>>=8;for(;i>0;)t.push(255&i),i>>=8}for(let r=0;e[r]===this._leader&&r<e.length-1;++r)t.push(0);return(0,l.k9)(new Uint8Array(t.reverse()))}}new z("abcdefghijklmnopqrstuvwxyz234567");let V=new z("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");function H(e,t){null==t&&(t=1);let r=[],n=r.forEach,i=function(e,t){n.call(e,function(e){t>0&&Array.isArray(e)?i(e,t-1):r.push(e)})};return i(e,t),r}function G(e,t){let r=Array(e);for(let n=0,i=-1;n<e;n++)r[n]=i+=1+t();return r}function q(e,t){let r=G(e(),e),n=e(),i=G(n,e),o=function(e,t){let r=Array(e);for(let n=0;n<e;n++)r[n]=1+t();return r}(n,e);for(let e=0;e<n;e++)for(let t=0;t<o[e];t++)r.push(i[e]+t);return t?r.map(e=>t[e]):r}function Y(e,t,r){let n=Array(e).fill(void 0).map(()=>[]);for(let i=0;i<t;i++)(function(e,t){let r=Array(e);for(let i=0,o=0;i<e;i++){var n;r[i]=o+=1&(n=t())?~n>>1:n>>1}return r})(e,r).forEach((e,t)=>n[t].push(e));return n}let K=(o=function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),i=1,o=[0,1];for(let e=1;e<n;e++)o.push(i+=r());let s=r(),a=t;t+=s;let l=0,u=0;function c(){return 0==l&&(u=u<<8|e[t++],l=8),u>>--l&1}let f=0;for(let e=0;e<31;e++)f=f<<1|c();let h=[],d=0,p=0x80000000;for(;;){let e=Math.floor(((f-d+1)*i-1)/p),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e<o[n]?r=n:t=n}if(0==t)break;h.push(t);let s=d+Math.floor(p*o[t]/i),a=d+Math.floor(p*o[t+1]/i)-1;for(;((s^a)&0x40000000)==0;
2)f=f<<1&0x7fffffff|c(),s=s<<1&0x7fffffff,a=a<<1&0x7fffffff|1;for(;s&~a&0x20000000;)f=0x40000000&f|f<<1&0x3fffffff|c(),s=s<<1^0x40000000,a=(0x40000000^a)<<1|0x40000001;d=s,p=1+a-s}let m=n-4;return h.map(t=>{switch(t-m){case 3:return m+65792+(e[a++]<<16|e[a++]<<8|e[a++]);case 2:return m+256+(e[a++]<<8|e[a++]);case 1:return m+e[a++];default:return t-1}})}(C
vendor: 14,758 bytes, line 2
2("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==")),
2i=0,()=>o[i++]),W=new Set(q(K)),J=new Set(q(K)),Q=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(function(e,t){let r=1+t(),n=t(),i=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(r)}return t}(t);return H(Y(i.length,1+e,t).map((e,t)=>{let o=e[0],s=e.slice(1);return Array(i[t]).fill(void 0).map((e,t)=>{let i=t*n;return[o+t*r,s.map(e=>e+i)]})}))}(r,e))}for(;;){var r,n;let i=e()-1;if(i<0)break;t.push((r=i,Y(1+(n=e)(),1+r,n).map(e=>[e[0],e.slice(1)])))}return function(e){let t={};for(let r=0;r<e.length;r++){let n=e[r];t[n[0]]=n[1]}return t}(H(t))}(K),X=(n=q(K).sort((e,t)=>e-t),function e(){let t=[];for(;;){let r=q(K,n);if(0==r.length)break;t.push({set:new Set(r),node:e()})}t.sort((e,t)=>t.set.size-e.set.size);let r=K(),i=r%3;return{branches:t,valid:i,fe0f:!!(1&(r=r/3|0)),save:1==(r>>=1),check:2==r}}());function $(e){return e.filter(e=>65039!=e)}function Z(e){for(let t of e.split(".")){let e=(0,P.dg)(t);try{for(let t=e.lastIndexOf(95)-1;t>=0;t--)if(95!==e[t])throw Error("underscore only allowed at start");if(e.length>=4&&e.every(e=>e<128)&&45===e[2]&&45===e[3])throw Error("invalid label extension")}catch(e){throw Error(`Invalid label "${t}": ${e.message}`)}}return e}let ee=new h.Vy(d),et=new Uint8Array(32);function er(e){if(0===e.length)throw Error("invalid ENS name; empty component");return e}function en(e){let t=(0,P.YW)(Z(function(e,t){let r=(0,P.dg)(e).reverse(),n=[];for(;r.length;){let e=function(e,t){var r;let n,i,o=X,s=[],a=e.length;for(;a;){let t=e[--a];if(!(o=null==(r=o.branches.find(e=>e.set.has(t)))?void 0:r.node))break;if(o.save)i=t;else if(o.check&&t===i)break;s.push(t),o.fe0f&&(s.push(65039),a>0&&65039==e[a-1]&&a--),o.valid&&(n=s.slice(),2==o.valid&&n.splice(1,1),e.length=a)}return n}(r);if(e){n.push(...t(e));continue}let i=r.pop();if(W.has(i)){n.push(i);continue}if(J.has(i))continue;let o=Q[i];if(o){n.push(...o);continue}throw Error(`Disallowed codepoint: 0x${i.toString(16).toUpperCase()}`)}return Z(String.fromCodePoint(...n).normalize("NFC"))}(e,$))),r=[];if(0===e.length)return r;let n=0;for(let e=0;e<t.length;e++)46===t[e]&&(r.push(er(t.slice(n,e))),n=e+1);if(n>=t.length)throw Error("invalid ENS name; empty component");return r.push(er(t.slice(n))),r}function ei(e){"string"!=typeof e&&ee.throwArgumentError("invalid ENS name; not a string","name",e);let t=et,r=en(e);for(;r.length;)t=(0,c.S)((0,l.xW)([t,(0,c.S)(r.pop())]));return(0,l.c$)(t)}et.fill(0);let eo=new h.Vy("networks/5.8.0");function es(e){let t=function(t,r){null==r&&(r={});let n=[];if(t.InfuraProvider&&"-"!==r.infura)try{n.push(new t.InfuraProvider(e,r.infura))}catch(e){}if(t.EtherscanProvider&&"-"!==r.etherscan)try{n.push(new t.EtherscanProvider(e,r.etherscan))}catch(e){}if(t.AlchemyProvider&&"-"!==r.alchemy)try{n.push(new t.AlchemyProvider(e,r.alchemy))}catch(e){}if(t.PocketProvider&&"-"!==r.pocket)try{let i=new t.PocketProvider(e,r.pocket);i.network&&-1===["goerli","ropsten","rinkeby","sepolia"].indexOf(i.network.name)&&n.push(i)}catch(e){}if(t.CloudflareProvider&&"-"!==r.cloudflare)try{n.push(new t.CloudflareProvider(e))}catch(e){}if(t.AnkrProvider&&"-"!==r.ankr)try{let i=new t.AnkrProvider(e,r.ankr);i.network&&-1===["ropsten"].indexOf(i.network.name)&&n.push(i)}catch(e){}if(t.QuickNodeProvider&&"-"!==r.quicknode)try{n.push(new t.QuickNodeProvider(e,r.quicknode))}catch(e){}if(0===n.length)return null;if(t.FallbackProvider){let i=1;return null!=r.quorum?i=r.quorum:"homestead"===e&&(i=2),new t.FallbackProvider(n,i)}return n[0]};return t.renetwork=function(e){return es(e)},t}function ea(e,t){let r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(e,t):null};return r.renetwork=function(t){return ea(e,t)},r}let el={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:es("homestead")},eu={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:es("ropsten")},ec={chainId:63,name:"classicMordor",_defaultProvider:ea("https://www.ethercluster.com/mordor","classicMordor")},ef={unspecified:{chainId:0,name:"unspecified"},homestead:el,mainnet:el,morden:{chainId:2,name:"morden"}
2,ropsten:eu,testnet:eu,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:es("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:es("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:es("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:0xaa36a7,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"sepolia",_defaultProvider:es("sepolia")},holesky:{chainId:17e3,name:"holesky",_defaultProvider:es("holesky")},classic:{chainId:61,name:"classic",_defaultProvider:ea("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:ec,classicTestnet:ec,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:ea("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:es("matic")},maticmum:{chainId:80001,name:"maticmum",_defaultProvider:es("maticmum")},optimism:{chainId:10,name:"optimism",_defaultProvider:es("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},"optimism-sepolia":{chainId:0xaa37dc,name:"optimism-sepolia"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},"arbitrum-sepolia":{chainId:421614,name:"arbitrum-sepolia"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};var eh=r(29019),ed=r.n(eh);function ep(e){return"0x"+ed().sha256().update((0,l.k9)(e)).digest("hex")}new h.Vy("sha2/5.8.0");var em=r(15157),eg=r.n(em);let ey=new h.Vy(j.r);class ev{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){let e={},t=this.address.bind(this),r=this.bigNumber.bind(this),n=this.blockTag.bind(this),i=this.data.bind(this),o=this.hash.bind(this),s=this.hex.bind(this),a=this.number.bind(this),l=this.type.bind(this),u=e=>this.data(e,!0);return e.transaction={hash:o,type:l,accessList:ev.allowNull(this.accessList.bind(this),null),blockHash:ev.allowNull(o,null),blockNumber:ev.allowNull(a,null),transactionIndex:ev.allowNull(a,null),confirmations:ev.allowNull(a,null),from:t,gasPrice:ev.allowNull(r),maxPriorityFeePerGas:ev.allowNull(r),maxFeePerGas:ev.allowNull(r),gasLimit:r,to:ev.allowNull(t,null),value:r,nonce:a,data:i,r:ev.allowNull(this.uint256),s:ev.allowNull(this.uint256),v:ev.allowNull(a),creates:ev.allowNull(t,null),raw:ev.allowNull(i)},e.transactionRequest={from:ev.allowNull(t),nonce:ev.allowNull(a),gasLimit:ev.allowNull(r),gasPrice:ev.allowNull(r),maxPriorityFeePerGas:ev.allowNull(r),maxFeePerGas:ev.allowNull(r),to:ev.allowNull(t),value:ev.allowNull(r),data:ev.allowNull(u),type:ev.allowNull(a),accessList:ev.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:a,blockNumber:a,transactionHash:o,address:t,topics:ev.arrayOf(o),data:i,logIndex:a,blockHash:o},e.receipt={to:ev.allowNull(this.address,null),from:ev.allowNull(this.address,null),
2contractAddress:ev.allowNull(t,null),transactionIndex:a,root:ev.allowNull(s),gasUsed:r,logsBloom:ev.allowNull(i),blockHash:o,transactionHash:o,logs:ev.arrayOf(this.receiptLog.bind(this)),blockNumber:a,confirmations:ev.allowNull(a,null),cumulativeGasUsed:r,effectiveGasPrice:ev.allowNull(r),status:ev.allowNull(a),type:l},e.block={hash:ev.allowNull(o),parentHash:o,number:a,timestamp:a,nonce:ev.allowNull(s),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:ev.allowNull(t),extraData:i,transactions:ev.allowNull(ev.arrayOf(o)),baseFeePerGas:ev.allowNull(r)},e.blockWithTransactions=(0,f.Ic)(e.block),e.blockWithTransactions.transactions=ev.allowNull(ev.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:ev.allowNull(n,void 0),toBlock:ev.allowNull(n,void 0),blockHash:ev.allowNull(o,void 0),address:ev.allowNull(t,void 0),topics:ev.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:ev.allowNull(a),blockHash:ev.allowNull(o),transactionIndex:a,removed:ev.allowNull(this.boolean.bind(this)),address:t,data:ev.allowFalsish(i,"0x"),topics:ev.arrayOf(o),transactionHash:o,logIndex:a},e}accessList(e){return(0,I.$2)(e||[])}number(e){return"0x"===e?0:a.gH.from(e).toNumber()}type(e){return"0x"===e||null==e?0:a.gH.from(e).toNumber()}bigNumber(e){return a.gH.from(e)}boolean(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw Error("invalid boolean - "+e)}hex(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),(0,l.Lo)(e))?e.toLowerCase():ey.throwArgumentError("invalid hash","value",e)}data(e,t){let r=this.hex(e,t);if(r.length%2!=0)throw Error("invalid data; odd-length - "+e);return r}address(e){return(0,u.bv)(e)}callAddress(e){if(!(0,l.Lo)(e,32))return null;let t=(0,u.bv)((0,l.Ab)(e,12));return"0x0000000000000000000000000000000000000000"===t?null:t}contractAddress(e){return(0,u.RZ)(e)}blockTag(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"==typeof e||(0,l.Lo)(e))return(0,l.Fh)(e);throw Error("invalid blockTag")}hash(e,t){let r=this.hex(e,t);return 32!==(0,l.cm)(r)?ey.throwArgumentError("invalid hash","value",e):r}difficulty(e){if(null==e)return null;let t=a.gH.from(e);try{return t.toNumber()}catch(e){}return null}uint256(e){if(!(0,l.Lo)(e))throw Error("invalid uint256");return(0,l.bj)(e,32)}_block(e,t){null!=e.author&&null==e.miner&&(e.miner=e.author);let r=null!=e._difficulty?e._difficulty:e.difficulty,n=ev.check(t,e);return n._difficulty=null==r?null:a.gH.from(r),n}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return ev.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&a.gH.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),(1===e.type||2===e.type)&&null==e.accessList&&(e.accessList=[]);let t=ev.check(this.formats.transaction,e);if(null!=e.chainId){let r=e.chainId;(0,l.Lo)(r)&&(r=a.gH.from(r).toNumber()),t.chainId=r}else{let r=e.networkId;null==r&&null==t.v&&(r=e.chainId),(0,l.Lo)(r)&&(r=a.gH.from(r).toNumber()),"number"!=typeof r&&null!=t.v&&((r=(t.v-35)/2)<0&&(r=0),r=parseInt(r)),"number"!=typeof r&&(r=0),t.chainId=r}return t.blockHash&&"x"===t.blockHash.replace(/0/g,"")&&(t.blockHash=null),t}transaction(e){return(0,I.qg)(e)}receiptLog(e){return ev.check(this.formats.receiptLog,e)}receipt(e){let t=ev.check(this.formats.receipt,e);if(null!=t.root)if(t.root.length<=4){let e=a.gH.from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&ey.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=e,delete t.root):ey.throwArgumentError("invalid alt-root-status","value.root",t.root)}else 66!==t.root.length&&ey.throwArgumentError("invalid root hash","value.root",t.root);return null!=t.status&&(t.byzantium=!0),t}topics(e){return Array.isArray(e)?e.map(e=>this.topics(e)):null!=e?this.hash(e,!0):null}filter(e){return ev.check(this.formats.filter,e)}filterLog(e){return ev.check(this.formats.filterLog,e)}static check(e,t){let r={};for(let n in e)try{let i=e[n](t[n]);void 0!==i&&(r[n]=i)}catch(e){throw e.checkKey=n,e.checkValue=t[n],e}return r}static allowNull(e,t){return function(r){return null==r?t:e(r)}}static allowFalsish(e,t){return function(r){return r?e(r):t}}static arrayOf(e){return function(t){if(!Array.isArray(t))throw Error("not an array");let r=[];return t.forEach(function(t){r.push(e(t))}),r}}}var eb=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};let ew=new h.Vy(j.r);function eA(e){return null==e?"null":(32!==(0,l.cm)(e)&&ew.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function ex(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map(e=>{if(!Array.isArray(e))return eA(e);{let t={};
2e.forEach(e=>{t[eA(e)]=!0});let r=Object.keys(t);return r.sort(),r.join("|")}}).join("&")}function eE(e){if("string"==typeof e){if(e=e.toLowerCase(),32===(0,l.cm)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else if(Array.isArray(e))return"filter:*:"+ex(e);else if(U.Rj.isForkEvent(e))throw ew.warn("not implemented"),Error("not implemented");else if(e&&"object"==typeof e)return"filter:"+(e.address||"*")+":"+ex(e.topics||[]);throw Error("invalid event - "+e)}function e_(){return new Date().getTime()}function ek(e){return new Promise(t=>{setTimeout(t,e)})}let eN=["block","network","pending","poll"];class eS{constructor(e,t,r){(0,f.yY)(this,"tag",e),(0,f.yY)(this,"listener",t),(0,f.yY)(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){let e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}get filter(){var e;let t=this.tag.split(":");if("filter"!==t[0])return null;let r=t[1],n=""===(e=t[2])?[]:e.split(/&/g).map(e=>{if(""===e)return[];let t=e.split("|").map(e=>"null"===e?null:e);return 1===t.length?t[0]:t}),i={};return n.length>0&&(i.topics=n),r&&"*"!==r&&(i.address=r),i}pollable(){return this.tag.indexOf(":")>=0||eN.indexOf(this.tag)>=0}}let eM={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function eR(e){return(0,l.bj)(a.gH.from(e).toHexString(),32)}function eP(e){return V.encode((0,l.xW)([e,(0,l.Ab)(ep(ep(e)),0,4)]))}let eI=RegExp("^(ipfs)://(.*)$","i"),eC=[RegExp("^(https)://(.*)$","i"),RegExp("^(data):(.*)$","i"),eI,RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function eT(e,t){try{return(0,P._v)(eO(e,t))}catch(e){}return null}function eO(e,t){if("0x"===e)return null;let r=a.gH.from((0,l.Ab)(e,t,t+32)).toNumber(),n=a.gH.from((0,l.Ab)(e,r,r+32)).toNumber();return(0,l.Ab)(e,r+32,r+32+n)}function eL(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):ew.throwArgumentError("unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}function eF(e){let t=(0,l.k9)(e);if(t.length>32)throw Error("internal; should not happen");let r=new Uint8Array(32);return r.set(t,32-t.length),r}function eB(e){let t=[],r=0;for(let n=0;n<e.length;n++)t.push(null),r+=32;for(let n=0;n<e.length;n++){let i=(0,l.k9)(e[n]);t[n]=eF(r),t.push(eF(i.length)),t.push(function(e){if(e.length%32==0)return e;let t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}(i)),r+=32+32*Math.ceil(i.length/32)}return(0,l.qn)(t)}class eD{constructor(e,t,r,n){(0,f.yY)(this,"provider",e),(0,f.yY)(this,"name",r),(0,f.yY)(this,"address",e.formatter.address(t)),(0,f.yY)(this,"_resolvedAddress",n)}supportsWildcard(){return this._supportsEip2544||(this._supportsEip2544=this.provider.call({to:this.address,data:"0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000"}).then(e=>a.gH.from(e).eq(1)).catch(e=>{if(e.code===h.Vy.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}_fetch(e,t){return eb(this,void 0,void 0,function*(){let r={to:this.address,ccipReadEnabled:!0,data:(0,l.qn)([e,ei(this.name),t||"0x"])},n=!1;if(yield this.supportsWildcard()){var i;n=!0,r.data=(0,l.qn)(["0x9061b923",eB([(i=this.name,(0,l.c$)((0,l.xW)(en(i).map(e=>{if(e.length>63)throw Error("invalid DNS encoded entry; length exceeds 63 bytes");let t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t})))+"00"),r.data])])}try{let e=yield this.provider.call(r);return(0,l.k9)(e).length%32==4&&ew.throwError("resolver threw error",h.Vy.errors.CALL_EXCEPTION,{transaction:r,data:e}),n&&(e=eO(e,0)),e}catch(e){if(e.code===h.Vy.errors.CALL_EXCEPTION)return null;throw e}})}_fetchBytes(e,t){return eb(this,void 0,void 0,function*(){let r=yield this._fetch(e,t);return null!=r?eO(r,0):null})}_getAddress(e,t){let r=eM[String(e)];if(null==r&&ew.throwError(`unsupported coin type: ${e}`,h.Vy.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),"eth"===r.ilk)return this.provider.formatter.address(t);let n=(0,l.k9)(t);if(null!=r.p2pkh){let e=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){let t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return eP((0,l.xW)([[r.p2pkh],"0x"+e[2]]))}}if(null!=r.p2sh){let e=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){let t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return eP((0,l.xW)([[r.p2sh],"0x"+e[2]]))}}if(null!=r.prefix){let e=n[1],t=n[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&n.length===2+e&&e>=1&&e<=75){let e=eg().toWords(n.slice(2));return e.unshift(t),eg().encode(r.prefix,e)}}return null}getAddress(e){return eb(this,void 0,void 0,function*(){if(null==e&&(e=60),60===e)try{let e=yield this._fetch("0x3b3b57de");if("0x"===e||"0x0000000000000000000000000000000000000000000000000000000000000000"===e)return null;return this.provider.formatter.callAddress(e)}catch(e){if(e.code===h.Vy.errors.CALL_EXCEPTION)return null;throw e}let t=yield this._fetchBytes("0xf1cb7e06",eR(e));if(null==t||"0x"===t)return null;let r=this._getAddress(e,t);return null==r&&ew.throwError("invalid or unsupported coin data",h.Vy.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:t}),r})}getAvatar(){return eb(this,void 0,void 0,function*(){let e=[{type:"name",content:this.name}];try{let t=yield this.getText("avatar");if(null==t)return null;for(let r=0;r<eC.length;r++){let n=t.match(eC[r]);if(null==n)continue;let i=n[1].toLowerCase();switch(i){case"https":return e.push({type:"url",content:t}),{linkage:e,url:t};case"data":return e.push({type:"data",content:t}),{linkage:e,url:t};case"ipfs":return e.push({type:"ipfs",content:t}),{linkage:e,url:eL(t)};case"erc721":case"erc1155":{let r="erc721"===i?"0xc87b56dd":"0x0e89341c";e.push({type:i,content:t});let o=this._resolvedAddress||(yield this.getAddress()),s=(n[2]||"").split("/");if(2!==s.length)return null;let u=yield this.provider.formatter.address(s[0]),c=(0,l.bj)(a.gH.from(s[1]).toHexString(),32);if("erc721"===i){let t=this.provider.formatter.callAddress((yield this.provider.call({to:u,data:(0,l.qn)(["0x6352211e",c])})));if(o!==t)return null;e.push({type:"owner",content:t})}else if("erc1155"===i){let t=a.gH.from((yield this.provider.call({to:u,data:(0,l.qn)(["0x00fdd58e",(0,l.bj)(o,32),c])})));if(t.isZero())return null;e.push({type:"balance",content:t.toString()})}let f={to:this.provider.formatter.address(s[0]),data:(0,l.qn)([r,c])},h=eT((yield this.provider.call(f)),0);if(null==h)return null;e.push({type:"metadata-url-base",content:h}),"erc1155"===i&&(h=h.replace("{id}",c.substring(2)),e.push({type:"metadata-url-expanded",content:h}
2)),h.match(/^ipfs:/i)&&(h=eL(h)),e.push({type:"metadata-url",content:h});let d=yield B(h);if(!d)return null;e.push({type:"metadata",content:JSON.stringify(d)});let p=d.image;if("string"!=typeof p)return null;if(p.match(/^(https:\/\/|data:)/i));else{let t=p.match(eI);if(null==t)return null;e.push({type:"url-ipfs",content:p}),p=eL(p)}return e.push({type:"url",content:p}),{linkage:e,url:p}}}}}catch(e){}return null})}getContentHash(){return eb(this,void 0,void 0,function*(){let e=yield this._fetchBytes("0xbc1c58d1");if(null==e||"0x"===e)return null;let t=e.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){let e=parseInt(t[3],16);if(t[4].length===2*e)return"ipfs://"+V.encode("0x"+t[1])}let r=e.match(/^0xe5010172(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(r){let e=parseInt(r[3],16);if(r[4].length===2*e)return"ipns://"+V.encode("0x"+r[1])}let n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&64===n[1].length)return"bzz://"+n[1];let i=e.match(/^0x90b2c605([0-9a-f]*)$/);if(i&&68===i[1].length){let e={"=":"","+":"-","/":"_"};return"sia://"+T("0x"+i[1]).replace(/[=+\/]/g,t=>e[t])}return ew.throwError("invalid or unsupported content hash data",h.Vy.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return eb(this,void 0,void 0,function*(){let t=(0,P.YW)(e);(t=(0,l.xW)([eR(64),eR(t.length),t])).length%32!=0&&(t=(0,l.xW)([t,(0,l.bj)("0x",32-e.length%32)]));let r=yield this._fetchBytes("0x59d1d43c",(0,l.c$)(t));return null==r||"0x"===r?null:(0,P._v)(r)})}}let ej=null,eU=1;class ez extends U.Kq{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),(0,f.yY)(this,"anyNetwork","any"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(e=>{}),this._ready().catch(e=>{});else{const t=(0,f.$J)(new.target,"getNetwork")(e);t?((0,f.yY)(this,"_network",t),this.emit("network",t,null)):ew.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return eb(this,void 0,void 0,function*(){if(null==this._network){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch(e){}null==e&&(e=yield this.detectNetwork()),e||ew.throwError("no network detected",h.Vy.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:(0,f.yY)(this,"_network",e),this.emit("network",e,null))}return this._network})}get ready(){return D(()=>this._ready().then(e=>e,e=>{if(e.code!==h.Vy.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))}static getFormatter(){return null==ej&&(ej=new ev),ej}static getNetwork(e){return function(e){if(null==e)return null;if("number"==typeof e){for(let t in ef){let r=ef[t];if(r.chainId===e)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"==typeof e){let t=ef[e];return null==t?null:{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress,_defaultProvider:t._defaultProvider||null}}let t=ef[e.name];if(!t)return"number"!=typeof e.chainId&&eo.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==t.chainId&&eo.throwArgumentError("network chainId mismatch","network",e);let r=e._defaultProvider||null;if(null==r&&t._defaultProvider){var n;r=(n=t._defaultProvider)&&"function"==typeof n.renetwork?t._defaultProvider.renetwork(e):t._defaultProvider}return{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:r}}(null==e?"homestead":e)}ccipReadFetch(e,t,r){return eb(this,void 0,void 0,function*(){if(this.disableCcipRead||0===r.length)return null;let n=e.to.toLowerCase(),i=t.toLowerCase(),o=[];for(let e=0;e<r.length;e++){let t=r[e],s=t.replace("{sender}",n).replace("{data}",i),a=t.indexOf("{data}")>=0?null:JSON.stringify({data:i,sender:n}),l=yield B({url:s,errorPassThrough:!0},a,(e,t)=>(e.status=t.statusCode,e));if(l.data)return l.data;let u=l.message||"unknown error";if(l.status>=400&&l.status<500)return ew.throwError(`response not found during CCIP fetch: ${u}`,h.Vy.errors.SERVER_ERROR,{url:t,errorMessage:u});o.push(u)}return ew.throwError(`error encountered during CCIP fetch: ${o.map(e=>JSON.stringify(e)).join(", ")}`,h.Vy.errors.SERVER_ERROR,{urls:r,errorMessages:o})})}_getInternalBlockNumber(e){return eb(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){let t=this._internalBlockNumber;try{let r=yield t;if(e_()-r.respTime<=e)return r.blockNumber;break}catch(e){if(this._internalBlockNumber===t)break}}let t=e_(),r=(0,f.k_)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(e=>null,e=>e)}).then(({blockNumber:e,networkError:n})=>{if(n)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),n;let i=e_();return(e=a.gH.from(e).toNumber())<this._maxInternalBlockNumber&&(e=this._maxInternalBlockNumber),this._maxInternalBlockNumber=e,this._setFastBlockNumber(e),{blockNumber:e,reqTime:t,respTime:i}});return this._internalBlockNumber=r,r.catch(e=>{this._internalBlockNumber===r&&(this._internalBlockNumber=null)}),(yield r).blockNumber})}poll(){return eb(this,void 0,void 0,function*(){let e=eU++,t=[],r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}
2catch(e){this.emit("error",e);return}if(this._setFastBlockNumber(r),this.emit("poll",e,r),r===this._lastBlockNumber)return void this.emit("didPoll",e);if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)ew.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",ew.makeError("network block skew detected",h.Vy.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let e=this._emitted.block+1;e<=r;e++)this.emit("block",e);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach(e=>{if("block"===e)return;let t=this._emitted[e];"pending"!==t&&r-t>12&&delete this._emitted[e]})),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach(e=>{switch(e.type){case"tx":{let r=e.hash,n=this.getTransactionReceipt(r).then(e=>(e&&null!=e.blockNumber&&(this._emitted["t:"+r]=e.blockNumber,this.emit(r,e)),null)).catch(e=>{this.emit("error",e)});t.push(n);break}case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=r-1);let n=e.filter;n.fromBlock=e._lastBlockNumber+1,n.toBlock=r;let i=n.toBlock-this._maxFilterBlockRange;i>n.fromBlock&&(n.fromBlock=i),n.fromBlock<0&&(n.fromBlock=0);let o=this.getLogs(n).then(t=>{e._inflight=!1,0!==t.length&&t.forEach(t=>{t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),this._emitted["b:"+t.blockHash]=t.blockNumber,this._emitted["t:"+t.transactionHash]=t.blockNumber,this.emit(n,t)})}).catch(t=>{this.emit("error",t),e._inflight=!1});t.push(o)}}}),this._lastBlockNumber=r,Promise.all(t).then(()=>{this.emit("didPoll",e)}).catch(e=>{this.emit("error",e)})})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return eb(this,void 0,void 0,function*(){return ew.throwError("provider does not support network detection",h.Vy.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return eb(this,void 0,void 0,function*(){let e=yield this._ready(),t=yield this.detectNetwork();if(e.chainId!==t.chainId){if(this.anyNetwork)return this._network=t,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",t,e),yield ek(0),this._network;let r=ew.makeError("underlying network changed",h.Vy.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:t});throw this.emit("error",r),r}return e})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(e=>{this._setFastBlockNumber(e)},e=>{}),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(e){e&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){let e=e_();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(e){(null==this._fastBlockNumber||!(e<this._fastBlockNumber))&&(this._fastQueryDate=e_(),(null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,t,r){return eb(this,void 0,void 0,function*(){return this._waitForTransaction(e,null==t?1:t,r||0,null)})}_waitForTransaction(e,t,r,n){return eb(this,void 0,void 0,function*(){let i=yield this.getTransactionReceipt(e);return(i?i.confirmations:0)>=t?i:new Promise((i,o)=>
2{let s=[],a=!1,l=function(){return!!a||(a=!0,s.forEach(e=>{e()}),!1)},u=e=>{e.confirmations<t||l()||i(e)};if(this.on(e,u),s.push(()=>{this.removeListener(e,u)}),n){let r=n.startBlock,i=null,u=s=>eb(this,void 0,void 0,function*(){a||(yield ek(1e3),this.getTransactionCount(n.from).then(c=>eb(this,void 0,void 0,function*(){if(!a){if(c<=n.nonce)r=s;else{{let t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==i&&(i=r-3)<n.startBlock&&(i=n.startBlock);i<=s;){if(a)return;let r=yield this.getBlockWithTransactions(i);for(let i=0;i<r.transactions.length;i++){let s=r.transactions[i];if(s.hash===e)return;if(s.from===n.from&&s.nonce===n.nonce){if(a)return;let r=yield this.waitForTransaction(s.hash,t);if(l())return;let i="replaced";s.data===n.data&&s.to===n.to&&s.value.eq(n.value)?i="repriced":"0x"===s.data&&s.from===s.to&&s.value.isZero()&&(i="cancelled"),o(ew.makeError("transaction was replaced",h.Vy.errors.TRANSACTION_REPLACED,{cancelled:"replaced"===i||"cancelled"===i,reason:i,replacement:this._wrapTransaction(s),hash:e,receipt:r}));return}}i++}}a||this.once("block",u)}}),e=>{a||this.once("block",u)}))});if(a)return;this.once("block",u),s.push(()=>{this.removeListener("block",u)})}if("number"==typeof r&&r>0){let e=setTimeout(()=>{l()||o(ew.makeError("timeout exceeded",h.Vy.errors.TIMEOUT,{timeout:r}))},r);e.unref&&e.unref(),s.push(()=>{clearTimeout(e)})}})})}getBlockNumber(){return eb(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return eb(this,void 0,void 0,function*(){yield this.getNetwork();let e=yield this.perform("getGasPrice",{});try{return a.gH.from(e)}catch(t){return ew.throwError("bad result from backend",h.Vy.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:t})}})}getBalance(e,t){return eb(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,f.k_)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getBalance",r);try{return a.gH.from(n)}catch(e){return ew.throwError("bad result from backend",h.Vy.errors.SERVER_ERROR,{method:"getBalance",params:r,result:n,error:e})}})}getTransactionCount(e,t){return eb(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,f.k_)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getTransactionCount",r);try{return a.gH.from(n).toNumber()}catch(e){return ew.throwError("bad result from backend",h.Vy.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:n,error:e})}})}getCode(e,t){return eb(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,f.k_)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getCode",r);try{return(0,l.c$)(n)}catch(e){return ew.throwError("bad result from backend",h.Vy.errors.SERVER_ERROR,{method:"getCode",params:r,result:n,error:e})}})}getStorageAt(e,t,r){return eb(this,void 0,void 0,function*(){yield this.getNetwork();let n=yield(0,f.k_)({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then(e=>(0,l.Fh)(e))}),i=yield this.perform("getStorageAt",n);try{return(0,l.c$)(i)}catch(e){return ew.throwError("bad result from backend",h.Vy.errors.SERVER_ERROR,{method:"getStorageAt",params:n,result:i,error:e})}})}_wrapTransaction(e,t,r){if(null!=t&&32!==(0,l.cm)(t))throw Error("invalid response - sendTransaction");return null!=t&&e.hash!==t&&ew.throwError("Transaction hash mismatch from Provider.sendTransaction.",h.Vy.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),e.wait=(t,n)=>eb(this,void 0,void 0,function*(){let i;null==t&&(t=1),null==n&&(n=0),0!==t&&null!=r&&(i={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r});let o=yield this._waitForTransaction(e.hash,t,n,i);return null==o&&0===t?null:(this._emitted["t:"+e.hash]=o.blockNumber,0===o.status&&ew.throwError("transaction failed",h.Vy.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:o}),o)}),e}sendTransaction(e){return eb(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield Promise.resolve(e).then(e=>(0,l.c$)(e)),r=this.formatter.transaction(e);null==r.confirmations&&(r.confirmations=0);let n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{let e=yield this.perform("sendTransaction",{signedTransaction:t});return this._wrapTransaction(r,e,n)}catch(e){throw e.transaction=r,e.transactionHash=r.hash,e}})}_getTransactionRequest(e){return eb(this,void 0,void 0,function*(){let t=yield e,r={};
2return["from","to"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?this._getAddress(e):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?a.gH.from(e):null))}),["type"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>null!=e?e:null))}),t.accessList&&(r.accessList=this.formatter.accessList(t.accessList)),["data"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?(0,l.c$)(e):null))}),this.formatter.transactionRequest((yield(0,f.k_)(r)))})}_getFilter(e){return eb(this,void 0,void 0,function*(){e=yield e;let t={};return null!=e.address&&(t.address=this._getAddress(e.address)),["blockHash","topics"].forEach(r=>{null!=e[r]&&(t[r]=e[r])}),["fromBlock","toBlock"].forEach(r=>{null!=e[r]&&(t[r]=this._getBlockTag(e[r]))}),this.formatter.filter((yield(0,f.k_)(t)))})}_call(e,t,r){return eb(this,void 0,void 0,function*(){r>=10&&ew.throwError("CCIP read exceeded maximum redirections",h.Vy.errors.SERVER_ERROR,{redirects:r,transaction:e});let n=e.to,i=yield this.perform("call",{transaction:e,blockTag:t});if(r>=0&&"latest"===t&&null!=n&&"0x556f1830"===i.substring(0,10)&&(0,l.cm)(i)%32==4)try{let o=(0,l.Ab)(i,4),s=(0,l.Ab)(o,0,32);a.gH.from(s).eq(n)||ew.throwError("CCIP Read sender did not match",h.Vy.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i});let u=[],c=a.gH.from((0,l.Ab)(o,32,64)).toNumber(),f=a.gH.from((0,l.Ab)(o,c,c+32)).toNumber(),d=(0,l.Ab)(o,c+32);for(let t=0;t<f;t++){let r=eT(d,32*t);null==r&&ew.throwError("CCIP Read contained corrupt URL string",h.Vy.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i}),u.push(r)}let p=eO(o,64);a.gH.from((0,l.Ab)(o,100,128)).isZero()||ew.throwError("CCIP Read callback selector included junk",h.Vy.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i});let m=(0,l.Ab)(o,96,100),g=eO(o,128),y=yield this.ccipReadFetch(e,p,u);null==y&&ew.throwError("CCIP Read disabled or provided no URLs",h.Vy.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i});let v={to:n,data:(0,l.qn)([m,eB([y,g])])};return this._call(v,t,r+1)}catch(e){if(e.code===h.Vy.errors.SERVER_ERROR)throw e}try{return(0,l.c$)(i)}catch(r){return ew.throwError("bad result from backend",h.Vy.errors.SERVER_ERROR,{method:"call",params:{transaction:e,blockTag:t},result:i,error:r})}})}call(e,t){return eb(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,f.k_)({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(t),ccipReadEnabled:Promise.resolve(e.ccipReadEnabled)});return this._call(r.transaction,r.blockTag,r.ccipReadEnabled?0:-1)})}estimateGas(e){return eb(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield(0,f.k_)({transaction:this._getTransactionRequest(e)}),r=yield this.perform("estimateGas",t);try{return a.gH.from(r)}catch(e){return ew.throwError("bad result from backend",h.Vy.errors.SERVER_ERROR,{method:"estimateGas",params:t,result:r,error:e})}})}_getAddress(e){return eb(this,void 0,void 0,function*(){"string"!=typeof(e=yield e)&&ew.throwArgumentError("invalid address or ENS name","name",e);let t=yield this.resolveName(e);return null==t&&ew.throwError("ENS name not configured",h.Vy.errors.UNSUPPORTED_OPERATION,{operation:`resolveName(${JSON.stringify(e)})`}),t})}_getBlock(e,t){return eb(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let r=-128,n={includeTransactions:!!t};if((0,l.Lo)(e,32))n.blockHash=e;else try{n.blockTag=yield this._getBlockTag(e),(0,l.Lo)(n.blockTag)&&(r=parseInt(n.blockTag.substring(2),16))}catch(t){ew.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",e)}return D(()=>eb(this,void 0,void 0,function*(){let e=yield this.perform("getBlock",n);if(null==e)return null!=n.blockHash&&null==this._emitted["b:"+n.blockHash]||null!=n.blockTag&&r>this._emitted.block?null:void 0;if(t){let t=null;for(let r=0;r<e.transactions.length;r++){let n=e.transactions[r];if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){null==t&&(t=yield this._getInternalBlockNumber(100+2*this.pollingInterval));let e=t-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}}let r=this.formatter.blockWithTransactions(e);return r.transactions=r.transactions.map(e=>this._wrapTransaction(e)),r}return this.formatter.block(e)}),{oncePoll:this})})}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return eb(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let t={transactionHash:this.formatter.hash(e,!0)};return D(()=>eb(this,void 0,void 0,function*(){let r=yield this.perform("getTransaction",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;let n=this.formatter.transactionResponse(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return this._wrapTransaction(n)}),{oncePoll:this})})}getTransactionReceipt(e){return eb(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let t={transactionHash:this.formatter.hash(e,!0)};return D(()=>eb(this,void 0,void 0,function*(){let r=yield this.perform("getTransactionReceipt",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;if(null==r.blockHash)return;let n=this.formatter.receipt(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return n}),{oncePoll:this})})}getLogs(e){return eb(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield(0,f.k_)({filter:this._getFilter(e)}),r=yield this.perform("getLogs",t);
2return r.forEach(e=>{null==e.removed&&(e.removed=!1)}),ev.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)})}getEtherPrice(){return eb(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return eb(this,void 0,void 0,function*(){if("number"==typeof(e=yield e)&&e<0){e%1&&ew.throwArgumentError("invalid BlockTag","blockTag",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return(t+=e)<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)})}getResolver(e){return eb(this,void 0,void 0,function*(){let t=e;for(;;){if(""===t||"."===t||"eth"!==e&&"eth"===t)return null;let r=yield this._getResolver(t,"getResolver");if(null!=r){let n=new eD(this,r,e);if(t!==e&&!(yield n.supportsWildcard()))return null;return n}t=t.split(".").slice(1).join(".")}})}_getResolver(e,t){return eb(this,void 0,void 0,function*(){null==t&&(t="ENS");let r=yield this.getNetwork();r.ensAddress||ew.throwError("network does not support ENS",h.Vy.errors.UNSUPPORTED_OPERATION,{operation:t,network:r.name});try{let t=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+ei(e).substring(2)});return this.formatter.callAddress(t)}catch(e){}return null})}resolveName(e){return eb(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(t){if((0,l.Lo)(e))throw t}"string"!=typeof e&&ew.throwArgumentError("invalid ENS name","name",e);let t=yield this.getResolver(e);return t?yield t.getAddress():null})}lookupAddress(e){return eb(this,void 0,void 0,function*(){e=yield e;let t=(e=this.formatter.address(e)).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(t,"lookupAddress");if(null==r)return null;let n=eT((yield this.call({to:r,data:"0x691f3431"+ei(t).substring(2)})),0);return(yield this.resolveName(n))!=e?null:n})}getAvatar(e){return eb(this,void 0,void 0,function*(){let t=null;if((0,l.Lo)(e)){let r=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(r,"getAvatar");if(!n)return null;t=new eD(this,n,r);try{let e=yield t.getAvatar();if(e)return e.url}catch(e){if(e.code!==h.Vy.errors.CALL_EXCEPTION)throw e}try{let e=eT((yield this.call({to:n,data:"0x691f3431"+ei(r).substring(2)})),0);t=yield this.getResolver(e)}catch(e){if(e.code!==h.Vy.errors.CALL_EXCEPTION)throw e;return null}}else if(!(t=yield this.getResolver(e)))return null;let r=yield t.getAvatar();return null==r?null:r.url})}perform(e,t){return ew.throwError(e+" not implemented",h.Vy.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter(e=>e.pollable()).length>0}_stopEvent(e){this.polling=this._events.filter(e=>e.pollable()).length>0}_addEventListener(e,t,r){let n=new eS(eE(e),t,r);return this._events.push(n),this._startEvent(n),this}on(e,t){return this._addEventListener(e,t,!1)}once(e,t){return this._addEventListener(e,t,!0)}emit(e,...t){let r=!1,n=[],i=eE(e);return this._events=this._events.filter(e=>e.tag!==i||(setTimeout(()=>{e.listener.apply(this,t)},0),r=!0,!e.once||(n.push(e),!1))),n.forEach(e=>{this._stopEvent(e)}),r}listenerCount(e){if(!e)return this._events.length;let t=eE(e);return this._events.filter(e=>e.tag===t).length}listeners(e){if(null==e)return this._events.map(e=>e.listener);let t=eE(e);return this._events.filter(e=>e.tag===t).map(e=>e.listener)}off(e,t){if(null==t)return this.removeAllListeners(e);let r=[],n=!1,i=eE(e);return this._events=this._events.filter(e=>e.tag!==i||e.listener!=t||!!n||(n=!0,r.push(e),!1)),r.forEach(e=>{this._stopEvent(e)}),this}removeAllListeners(e){let t=[];if(null==e)t=this._events,this._events=[];else{let r=eE(e);this._events=this._events.filter(e=>e.tag!==r||(t.push(e),!1))}return t.forEach(e=>{this._stopEvent(e)}),this}}var eV=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};let eH=new h.Vy(j.r),eG=["call","estimateGas"];function eq(e,t){if(null==e)return null;if("string"==typeof e.message&&e.message.match("reverted")){let r=(0,l.Lo)(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if("object"==typeof e){for(let r in e){let n=eq(e[r],t);if(n)return n}return null}if("string"==typeof e)try{return eq(JSON.parse(e),t)}catch(e){}return null}function eY(e,t,r){let n=r.transaction||r.signedTransaction;if("call"===e){let e=eq(t,!0);if(e)return e.data;eH.throwError("missing revert data in call exception; Transaction reverted without a reason string",h.Vy.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:t})}if("estimateGas"===e){let r=eq(t.body,!1);null==r&&(r=eq(t,!1)),r&&eH.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",h.Vy.errors.UNPREDICTABLE_GAS_LIMIT,{reason:r.message,method:e,transaction:n,error:t})}let i=t.message;throw t.code===h.Vy.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?i=t.error.message:"string"==typeof t.body?i=t.body:"string"==typeof t.responseText&&(i=t.responseText),(i=(i||"").toLowerCase()).match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&eH.throwError("insufficient funds for intrinsic transaction cost",h.Vy.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),i.match(/nonce (is )?too low/i)&&eH.throwError("nonce has already been used",h.Vy.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&eH.throwError("replacement fee too low",h.Vy.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),i.match(/only replay-protected/i)&&eH.throwError("legacy pre-eip-155 transactions not supported",h.Vy.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:n}),eG.indexOf(e)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&eH.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",h.Vy.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}function eK(e){return new Promise(function(t){setTimeout(t,e)})}function eW(e){if(e.error){let t=Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function eJ(e){return e?e.toLowerCase():e}let eQ={};class eX extends s.l{constructor(e,t,r){if(super(),e!==eQ)throw Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");(0,f.yY)(this,"provider",t),null==r&&(r=0),"string"==typeof r?((0,f.yY)(this,"_address",this.provider.formatter.address(r)),(0,f.yY)(this,"_index",null)):"number"==typeof r?((0,f.yY)(this,"_index",r),(0,f.yY)(this,"_address",null)):eH.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(e){return eH.throwError("cannot alter JSON-RPC Signer connection",h.Vy.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new e$(eQ,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(e=>(e.length<=this._index&&eH.throwError("unknown account #"+this._index,h.Vy.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=(0,f.Ic)(e);let t=this.getAddress().then(e=>(e&&(e=e.toLowerCase()),e));
2if(null==e.gasLimit){let r=(0,f.Ic)(e);r.from=t,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then(e=>eV(this,void 0,void 0,function*(){if(null==e)return null;let t=yield this.provider.resolveName(e);return null==t&&eH.throwArgumentError("provided ENS name resolves to null","tx.to",e),t}))),(0,f.k_)({tx:(0,f.k_)(e),sender:t}).then(({tx:t,sender:r})=>{null!=t.from?t.from.toLowerCase()!==r&&eH.throwArgumentError("from address mismatch","transaction",e):t.from=r;let n=this.provider.constructor.hexlifyTransaction(t,{from:!0});return this.provider.send("eth_sendTransaction",[n]).then(e=>e,e=>("string"==typeof e.message&&e.message.match(/user denied/i)&&eH.throwError("user rejected transaction",h.Vy.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:t}),eY("sendTransaction",e,n)))})}signTransaction(e){return eH.throwError("signing transactions is unsupported",h.Vy.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return eV(this,void 0,void 0,function*(){let t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(e);try{return yield D(()=>eV(this,void 0,void 0,function*(){let e=yield this.provider.getTransaction(r);if(null!==e)return this.provider._wrapTransaction(e,r,t)}),{oncePoll:this.provider})}catch(e){throw e.transactionHash=r,e}})}signMessage(e){return eV(this,void 0,void 0,function*(){let t="string"==typeof e?(0,P.YW)(e):e,r=yield this.getAddress();try{return yield this.provider.send("personal_sign",[(0,l.c$)(t),r.toLowerCase()])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&eH.throwError("user rejected signing",h.Vy.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),t}})}_legacySignMessage(e){return eV(this,void 0,void 0,function*(){let t="string"==typeof e?(0,P.YW)(e):e,r=yield this.getAddress();try{return yield this.provider.send("eth_sign",[r.toLowerCase(),(0,l.c$)(t)])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&eH.throwError("user rejected signing",h.Vy.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),t}})}_signTypedData(e,t,r){return eV(this,void 0,void 0,function*(){let n=yield R.resolveNames(e,t,r,e=>this.provider.resolveName(e)),i=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(R.getPayload(n.domain,t,n.value))])}catch(e){throw"string"==typeof e.message&&e.message.match(/user denied/i)&&eH.throwError("user rejected signing",h.Vy.errors.ACTION_REJECTED,{action:"_signTypedData",from:i,messageData:{domain:n.domain,types:t,value:n.value}}),e}})}unlock(e){return eV(this,void 0,void 0,function*(){let t=this.provider,r=yield this.getAddress();return t.send("personal_unlockAccount",[r.toLowerCase(),e,null])})}}class e$ extends eX{sendTransaction(e){return this.sendUncheckedTransaction(e).then(e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:t=>this.provider.waitForTransaction(e,t)}))}}let eZ={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class e0 extends ez{constructor(e,t){let r=t;null==r&&(r=new Promise((e,t)=>{setTimeout(()=>{this.detectNetwork().then(t=>{e(t)},e=>{t(e)})},0)})),super(r),e||(e=(0,f.$J)(this.constructor,"defaultUrl")()),"string"==typeof e?(0,f.yY)(this,"connection",Object.freeze({url:e})):(0,f.yY)(this,"connection",Object.freeze((0,f.Ic)(e))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return eV(this,void 0,void 0,function*(){yield eK(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch(t){try{e=yield this.send("net_version",[])}catch(e){}}if(null!=e){let t=(0,f.$J)(this.constructor,"getNetwork");try{return t(a.gH.from(e).toNumber())}catch(t){return eH.throwError("could not detect network",h.Vy.errors.NETWORK_E
2RROR,{chainId:e,event:"invalidNetwork",serverError:t})}}return eH.throwError("could not detect network",h.Vy.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new eX(eQ,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(e=>e.map(e=>this.formatter.address(e)))}send(e,t){let r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,f.A4)(r),provider:this});let n=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(n&&this._cache[e])return this._cache[e];let i=B(this.connection,JSON.stringify(r),eW).then(e=>(this.emit("debug",{action:"response",request:r,response:e,provider:this}),e),e=>{throw this.emit("debug",{action:"response",error:e,request:r,provider:this}),e});return n&&(this._cache[e]=i,setTimeout(()=>{this._cache[e]=null},0)),i}prepareRequest(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[eJ(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[eJ(t.address),t.blockTag]];case"getCode":return["eth_getCode",[eJ(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[eJ(t.address),(0,l.bj)(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":if(t.blockTag)return["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]];if(t.blockHash)return["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]];break;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[(0,f.$J)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[(0,f.$J)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=eJ(t.filter.address)),["eth_getLogs",[t.filter]]}return null}perform(e,t){return eV(this,void 0,void 0,function*(){if("call"===e||"estimateGas"===e){let e=t.transaction;if(e&&null!=e.type&&a.gH.from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){let r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((t=(0,f.Ic)(t)).transaction=(0,f.Ic)(e),delete t.transaction.type)}}let r=this.prepareRequest(e,t);null==r&&eH.throwError(e+" not implemented",h.Vy.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(r[0],r[1])}catch(r){return eY(e,r,t)}})}_startEvent(e){"pending"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;let e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then(function(r){return!function n(){e.send("eth_getFilterChanges",[r]).then(function(r){if(e._pendingFilter!=t)return null;let n=Promise.resolve();return r.forEach(function(t){e._emitted["t:"+t.toLowerCase()]="pending",n=n.then(function(){return e.getTransaction(t).then(function(t){return e.emit("pending",t),null})})}),n.then(function(){return eK(1e3)})}).then(function(){return e._pendingFilter!=t?void e.send("eth_uninstallFilter",[r]):(setTimeout(function(){n()},0),null)}).catch(e=>{})}(),r}).catch(e=>{})}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){let r=(0,f.Ic)(eZ);if(t)for(let e in t)t[e]&&(r[e]=!0);(0,f.qN)(e,r);let n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(t){if(null==e[t])return;let r=(0,l.Fh)(a.gH.from(e[t]));"gasLimit"===t&&(t="gas"),n[t]=r}),["from","to","data"].forEach(function(t){null!=e[t]&&(n[t]=(0,l.c$)(e[t]))}),e.accessList&&(n.accessList=(0,I.$2)(e.accessList)),n}}},43146:(e,t,r)=>{"use strict";r.d(t,{UC:()=>ee,VY:()=>er,ZL:()=>$,bL:()=>X,bm:()=>en,hE:()=>et,hJ:()=>Z});var n=r(12115),i=r(70379),o=r(47527),s=r(68599),a=r(89971),l=r(98979),u=r(98454),c=r(69885),f=r(19040),h=r(83935),d=r(55897),p=r(54388),m=r(5339),g=r(22954),y=r(42442),v=r(95155),b="Dialog",[w,A]=(0,s.A)(b),[x,E]=w(b),_=e=>{let{__scopeDialog:t,children:r,open:i,defaultOpen:o,onOpenChange:s,modal:u=!0}=e,c=n.useRef(null),f=n.useRef(null),[h,d]=(0,l.i)({prop:i,defaultProp:o??!1,onChange:s,caller:b});return(0,v.jsx)(x,{scope:t,triggerRef:c,contentRef:f,contentId:(0,a.B)(),titleId:(0,a.B)(),descriptionId:(0,a.B)(),open:h,onOpenChange:d,onOpenToggle:n.useCallback(()=>d(e=>!e),[d]),modal:u,children:r})};_.displayName=b;var k="DialogTrigger";n.forwardRef((e,t)=>
2{let{__scopeDialog:r,...n}=e,s=E(k,r),a=(0,o.s)(t,s.triggerRef);return(0,v.jsx)(d.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":q(s.open),...n,ref:a,onClick:(0,i.mK)(e.onClick,s.onOpenToggle)})}).displayName=k;var N="DialogPortal",[S,M]=w(N,{forceMount:void 0}),R=e=>{let{__scopeDialog:t,forceMount:r,children:i,container:o}=e,s=E(N,t);return(0,v.jsx)(S,{scope:t,forceMount:r,children:n.Children.map(i,e=>(0,v.jsx)(h.C,{present:r||s.open,children:(0,v.jsx)(f.Z,{asChild:!0,container:o,children:e})}))})};R.displayName=N;var P="DialogOverlay",I=n.forwardRef((e,t)=>{let r=M(P,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=E(P,e.__scopeDialog);return o.modal?(0,v.jsx)(h.C,{present:n||o.open,children:(0,v.jsx)(T,{...i,ref:t})}):null});I.displayName=P;var C=(0,y.TL)("DialogOverlay.RemoveScroll"),T=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=E(P,r);return(0,v.jsx)(m.A,{as:C,allowPinchZoom:!0,shards:[i.contentRef],children:(0,v.jsx)(d.sG.div,{"data-state":q(i.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),O="DialogContent",L=n.forwardRef((e,t)=>{let r=M(O,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=E(O,e.__scopeDialog);return(0,v.jsx)(h.C,{present:n||o.open,children:o.modal?(0,v.jsx)(F,{...i,ref:t}):(0,v.jsx)(B,{...i,ref:t})})});L.displayName=O;var F=n.forwardRef((e,t)=>{let r=E(O,e.__scopeDialog),s=n.useRef(null),a=(0,o.s)(t,r.contentRef,s);return n.useEffect(()=>{let e=s.current;if(e)return(0,g.Eq)(e)},[]),(0,v.jsx)(D,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,i.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault())})}),B=n.forwardRef((e,t)=>{let r=E(O,e.__scopeDialog),i=n.useRef(!1),o=n.useRef(!1);return(0,v.jsx)(D,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||r.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let n=t.target;r.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),D=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,...l}=e,f=E(O,r),h=n.useRef(null),d=(0,o.s)(t,h);return(0,p.Oh)(),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(c.n,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a,children:(0,v.jsx)(u.qW,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":q(f.open),...l,ref:d,onDismiss:()=>f.onOpenChange(!1)})}),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(J,{titleId:f.titleId}),(0,v.jsx)(Q,{contentRef:h,descriptionId:f.descriptionId})]})]})}),j="DialogTitle",U=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=E(j,r);return(0,v.jsx)(d.sG.h2,{id:i.titleId,...n,ref:t})});U.displayName=j;var z="DialogDescription",V=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=E(z,r);return(0,v.jsx)(d.sG.p,{id:i.descriptionId,...n,ref:t})});V.displayName=z;var H="DialogClose",G=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=E(H,r);return(0,v.jsx)(d.sG.button,{type:"button",...n,ref:t,onClick:(0,i.mK)(e.onClick,()=>o.onOpenChange(!1))})});function q(e){return e?"open":"closed"}G.displayName=H;var Y="DialogTitleWarning",[K,W]=(0,s.q)(Y,{contentName:O,titleName:j,docsSlug:"dialog"}),J=({titleId:e})=>{let t=W(Y),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 3 4If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 5 6For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return n.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Q=({contentRef:e,descriptionId:t})=>{let r=W("DialogDescriptionWarning"),i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return n.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},X=_,$=R,Z=I,ee=L,et=U,er=V,en=G},44464:(e,t,r)=>{"use strict";r.d(t,{k9:()=>u,xW:()=>c,qn:()=>y,cm:()=>m,Ab:()=>g,Fh:()=>v,bj:()=>b,c$:()=>p,aY:()=>l,f:()=>s,Lo:()=>h,Pc:()=>w,gr:()=>f});let n=new(r(51633)).Vy("bytes/5.8.0");function i(e){return!!e.toHexString}function o(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function s(e){return h(e)&&!(e.length%2)||l(e)}function a(e){return"number"==typeof e&&e==e&&e%1==0}function l(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;
6if("string"==typeof e||!a(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(!a(r)||r<0||r>=256)return!1}return!0}function u(e,t){if(t||(t={}),"number"==typeof e){n.checkSafeUint53(e,"invalid arrayify value");let t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),o(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e)&&(e=e.toHexString()),h(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0"+r:"right"===t.hexPad?r+="0":n.throwArgumentError("hex data is odd-length","value",e));let i=[];for(let e=0;e<r.length;e+=2)i.push(parseInt(r.substring(e,e+2),16));return o(new Uint8Array(i))}return l(e)?o(new Uint8Array(e)):n.throwArgumentError("invalid arrayify value","value",e)}function c(e){let t=e.map(e=>u(e)),r=new Uint8Array(t.reduce((e,t)=>e+t.length,0));return t.reduce((e,t)=>(r.set(t,e),e+t.length),0),o(r)}function f(e){let t=u(e);if(0===t.length)return t;let r=0;for(;r<t.length&&0===t[r];)r++;return r&&(t=t.slice(r)),t}function h(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!t||e.length===2+2*t)}let d="0123456789abcdef";function p(e,t){if(t||(t={}),"number"==typeof e){n.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=d[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e))return e.toHexString();if(h(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":n.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(l(e)){let t="0x";for(let r=0;r<e.length;r++){let n=e[r];t+=d[(240&n)>>4]+d[15&n]}return t}return n.throwArgumentError("invalid hexlify value","value",e)}function m(e){if("string"!=typeof e)e=p(e);else if(!h(e)||e.length%2)return null;return(e.length-2)/2}function g(e,t,r){return("string"!=typeof e?e=p(e):(!h(e)||e.length%2)&&n.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r)?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function y(e){let t="0x";return e.forEach(e=>{t+=p(e).substring(2)}),t}function v(e){let t=function(e){"string"!=typeof e&&(e=p(e)),h(e)||n.throwArgumentError("invalid hex string","value",e),e=e.substring(2);let t=0;for(;t<e.length&&"0"===e[t];)t++;return"0x"+e.substring(t)}(p(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function b(e,t){for("string"!=typeof e?e=p(e):h(e)||n.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&n.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function w(e){let t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(s(e)){let r=u(e);64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=p(r.slice(0,32)),t.s=p(r.slice(32,64))):65===r.length?(t.r=p(r.slice(0,32)),t.s=p(r.slice(32,64)),t.v=r[64]):n.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:n.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=p(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){let r=function(e,t){(e=u(e)).length>t&&n.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(t);return r.set(e,t-e.length),o(r)}(u(t._vs),32);t._vs=p(r);let i=+(r[0]>=128);null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&n.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),r[0]&=127;let s=p(r);null==t.s?t.s=s:t.s!==s&&n.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?n.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{let r=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==r&&n.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&h(t.r)?t.r=b(t.r,32):n.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&h(t.s)?t.s=b(t.s,32):n.throwArgumentError("signature missing or invalid s","signature",e);let r=u(t.s);r[0]>=128&&n.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);let i=p(r);t._vs&&(h(t._vs)||n.throwArgumentError("signature invalid _vs","signature",e),t._vs=b(t._vs,32)),null==t._vs?t._vs=i:t._vs!==i&&n.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}},45752:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(78340).A)("arrow-down-up",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}
6],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"m21 8-4-4-4 4",key:"1c9v7m"}],["path",{d:"M17 4v16",key:"7dpous"}]])},46408:(e,t,r)=>{"use strict";var n=r(4101),i=r(56889);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},46686:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return m},defaultHead:function(){return f}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let o=r(73623),s=r(66388),a=r(95155),l=s._(r(12115)),u=o._(r(76899)),c=r(75368);function f(){return[(0,a.jsx)("meta",{charSet:"utf-8"},"charset"),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function h(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(47284);let d=["name","httpEquiv","charSet","itemProp"];function p(e){let t,r,n,i;return e.reduce(h,[]).reverse().concat(f().reverse()).filter((t=new Set,r=new Set,n=new Set,i={},e=>{let o=!0,s=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){s=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?o=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?o=!1:r.add(e.type);break;case"meta":for(let t=0,r=d.length;t<r;t++){let r=d[t];if(e.props.hasOwnProperty(r))if("charSet"===r)n.has(r)?o=!1:n.add(r);else{let t=e.props[r],n=i[r]||new Set;("name"!==r||!s)&&n.has(t)?o=!1:(n.add(t),i[r]=n)}}}return o})).reverse().map((e,t)=>{let r=e.key||t;return l.default.cloneElement(e,{key:r})})}let m=function({children:e}){let t=(0,l.useContext)(c.HeadManagerContext);return(0,a.jsx)(u.default,{reduceComponentsToState:p,headManager:t,children:e})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47527:(e,t,r)=>{"use strict";r.d(t,{s:()=>s,t:()=>o});var n=r(12115);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let r=!1,n=e.map(e=>{let n=i(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():i(e[t],null)}}}}function s(...e){return n.useCallback(o(...e),e)}},51036:(e,t,r)=>{"use strict";r.d(t,{r:()=>n});let n="bignumber/5.8.0"},51633:(e,t,r)=>{"use strict";var n,i,o,s;r.d(t,{Vy:()=>p});let a=!1,l=!1,u={debug:1,default:2,info:2,warning:3,error:4,off:5},c=u.default,f=null,h=function(){try{let e=[];
6if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test"!=="test".normalize(t))throw Error("bad normalize")}catch(r){e.push(t)}}),e.length)throw Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(e){return e.message}return null}();(o=n||(n={})).DEBUG="DEBUG",o.INFO="INFO",o.WARNING="WARNING",o.ERROR="ERROR",o.OFF="OFF",(s=i||(i={})).UNKNOWN_ERROR="UNKNOWN_ERROR",s.NOT_IMPLEMENTED="NOT_IMPLEMENTED",s.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",s.NETWORK_ERROR="NETWORK_ERROR",s.SERVER_ERROR="SERVER_ERROR",s.TIMEOUT="TIMEOUT",s.BUFFER_OVERRUN="BUFFER_OVERRUN",s.NUMERIC_FAULT="NUMERIC_FAULT",s.MISSING_NEW="MISSING_NEW",s.INVALID_ARGUMENT="INVALID_ARGUMENT",s.MISSING_ARGUMENT="MISSING_ARGUMENT",s.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",s.CALL_EXCEPTION="CALL_EXCEPTION",s.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",s.NONCE_EXPIRED="NONCE_EXPIRED",s.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",s.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",s.TRANSACTION_REPLACED="TRANSACTION_REPLACED",s.ACTION_REJECTED="ACTION_REJECTED";let d="0123456789abcdef";class p{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){let r=e.toLowerCase();null==u[r]&&this.throwArgumentError("invalid log level name","logLevel",e),c>u[r]||console.log.apply(console,t)}debug(...e){this._log(p.levels.DEBUG,e)}info(...e){this._log(p.levels.INFO,e)}warn(...e){this._log(p.levels.WARNING,e)}makeError(e,t,r){if(l)return this.makeError("censored error",t,{});t||(t=p.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(e=>{let t=r[e];try{if(t instanceof Uint8Array){let r="";for(let e=0;e<t.length;e++)r+=d[t[e]>>4],r+=d[15&t[e]];n.push(e+"=Uint8Array(0x"+r+")")}else n.push(e+"="+JSON.stringify(t))}catch(t){n.push(e+"="+JSON.stringify(r[e].toString()))}}),n.push(`code=${t}`),n.push(`version=${this.version}`);let o=e,s="";switch(t){case i.NUMERIC_FAULT:{s="NUMERIC_FAULT";let t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":s+="-"+t;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break}case i.CALL_EXCEPTION:case i.INSUFFICIENT_FUNDS:case i.MISSING_NEW:case i.NONCE_EXPIRED:case i.REPLACEMENT_UNDERPRICED:case i.TRANSACTION_REPLACED:case i.UNPREDICTABLE_GAS_LIMIT:s=t}s&&(e+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),n.length&&(e+=" ("+n.join(", ")+")");let a=Error(e);return a.reason=o,a.code=t,Object.keys(r).forEach(function(e){a[e]=r[e]}),a}throwError(e,t,r){throw this.makeError(e,t,r)}throwArgumentError(e,t,r){return this.throwError(e,p.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,r,n){e||this.throwError(t,r,n)}assertArgument(e,t,r,n){e||this.throwArgumentError(t,r,n)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),h&&this.throwError("platform missing String.prototype.normalize",p.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:h})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=0x1fffffffffffff)&&this.throwError(t,p.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,p.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",e<t&&this.throwError("missing argument"+r,p.errors.MISSING_ARGUMENT,{count:e,expectedCount:t}),e>t&&this.throwError("too many arguments"+r,p.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){(e===Object||null==e)&&this.throwError("missing new",p.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",p.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||null==e)&&this.throwError("missing new",p.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return f||(f=new p("logger/5.8.0")),f}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),a){if(!e)return;this.globalLogger().throwError("error censorship permanent",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}l=!!e,a=!!t}static setLogLevel(e){let t=u[e.toLowerCase()];null==t?p.globalLogger().warn("invalid log level - "+e):c=t}static from(e){return new p(e)}}p.errors=i,p.levels=n},54388:(e,t,r)=>{"use strict";r.d(t,{Oh:()=>o});var n=r(12115),i=0;function o(){n.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??s()),document.body.insertAdjacentElement("beforeend",e[1]??s()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e
6=>e.remove()),i--}},[])}function s(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},54914:(e,t,r)=>{"use strict";r.d(t,{Os:()=>v,YR:()=>f,gH:()=>d});var n=r(95439),i=r.n(n),o=r(44464),s=r(51633),a=r(51036),l=i().BN;let u=new s.Vy(a.r),c={};function f(e){return null!=e&&(d.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||(0,o.Lo)(e)||"bigint"==typeof e||(0,o.aY)(e))}let h=!1;class d{constructor(e,t){e!==c&&u.throwError("cannot call constructor directly; use BigNumber.from",s.Vy.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return m(g(this).fromTwos(e))}toTwos(e){return m(g(this).toTwos(e))}abs(){return"-"===this._hex[0]?d.from(this._hex.substring(1)):this}add(e){return m(g(this).add(g(e)))}sub(e){return m(g(this).sub(g(e)))}div(e){return d.from(e).isZero()&&y("division-by-zero","div"),m(g(this).div(g(e)))}mul(e){return m(g(this).mul(g(e)))}mod(e){let t=g(e);return t.isNeg()&&y("division-by-zero","mod"),m(g(this).umod(t))}pow(e){let t=g(e);return t.isNeg()&&y("negative-power","pow"),m(g(this).pow(t))}and(e){let t=g(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","and"),m(g(this).and(t))}or(e){let t=g(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","or"),m(g(this).or(t))}xor(e){let t=g(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","xor"),m(g(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&y("negative-width","mask"),m(g(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&y("negative-width","shl"),m(g(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&y("negative-width","shr"),m(g(this).shrn(e))}eq(e){return g(this).eq(g(e))}lt(e){return g(this).lt(g(e))}lte(e){return g(this).lte(g(e))}gt(e){return g(this).gt(g(e))}gte(e){return g(this).gte(g(e))}isNegative(){return"-"===this._hex[0]}isZero(){return g(this).isZero()}toNumber(){try{return g(this).toNumber()}catch(e){y("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return u.throwError("this platform does not support BigInt",s.Vy.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?h||(h=!0,u.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?u.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",s.Vy.errors.UNEXPECTED_ARGUMENT,{}):u.throwError("BigNumber.toString does not accept parameters",s.Vy.errors.UNEXPECTED_ARGUMENT,{})),g(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof d)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new d(c,p(e)):e.match(/^-?[0-9]+$/)?new d(c,p(new l(e))):u.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&y("underflow","BigNumber.from",e),(e>=0x1fffffffffffff||e<=-0x1fffffffffffff)&&y("overflow","BigNumber.from",e),d.from(String(e));if("bigint"==typeof e)return d.from(e.toString());if((0,o.aY)(e))return d.from((0,o.c$)(e));if(e)if(e.toHexString){let t=e.toHexString();if("string"==typeof t)return d.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&((0,o.Lo)(t)||"-"===t[0]&&(0,o.Lo)(t.substring(1))))return d.from(t)}return u.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function p(e){if("string"!=typeof e)return p(e.toString(16));if("-"===e[0])return("-"===(e=e.substring(1))[0]&&u.throwArgumentError("invalid hex","value",e),"0x00"===(e=p(e)))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function m(e){return d.from(p(e))}function g(e){let t=d.from(e).toHexString();return"-"===t[0]?new l("-"+t.substring(3),16):new l(t.substring(2),16)}function y(e,t,r){let n={fault:e,operation:t};return null!=r&&(n.value=r),u.throwError(e,s.Vy.errors.NUMERIC_FAULT,n)}function v(e){return new l(e,36).toString(16)}},55762:(e,t)=>
6{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={VALID_LOADERS:function(){return i},imageConfigDefault:function(){return o}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let i=["default","imgix","cloudinary","akamai","custom"],o={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumRedirects:3,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1}},55842:(e,t,r)=>{"use strict";var n=r(4101),i=r(63017),o=r(70874),s=n.rotl32,a=n.sum32,l=n.sum32_5,u=o.ft_1,c=i.BlockHash,f=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6];function h(){if(!(this instanceof h))return new h;c.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.W=Array(80)}n.inherits(h,c),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=s(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],c=this.h[2],h=this.h[3],d=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),m=l(s(i,5),u(p,o,c,h),d,r[n],f[p]);d=h,h=c,c=s(o,30),o=i,i=m}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],c),this.h[3]=a(this.h[3],h),this.h[4]=a(this.h[4],d)},h.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},55897:(e,t,r)=>{"use strict";r.d(t,{hO:()=>l,sG:()=>a});var n=r(12115),i=r(47650),o=r(42442),s=r(95155),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,o.TL)(`Primitive.${t}`),i=n.forwardRef((e,n)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(i?r:t,{...o,ref:n})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},56440:(e,t,r)=>{"use strict";r.d(t,{UC:()=>J,B8:()=>K,bL:()=>Y,l9:()=>W});var n=r(12115),i=r(70379),o=r(68599),s=r(76094),a=r(47527),l=r(89971),u=r(55897),c=r(17347),f=r(98979),h=r(1933),d=r(95155),p="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[y,v,b]=(0,s.N)(g),[w,A]=(0,o.A)(g,[b]),[x,E]=w(g),_=n.forwardRef((e,t)=>(0,d.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(k,{...e,ref:t})})}));_.displayName=g;var k=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:o,loop:s=!1,dir:l,currentTabStopId:y,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:w,onEntryFocus:A,preventScrollOnEntryFocus:E=!1,..._}=e,k=n.useRef(null),N=(0,a.s)(t,k),S=(0,h.jH)(l),[M,P]=(0,f.i)({prop:y,defaultProp:b??null,onChange:w,caller:g}),[I,C]=n.useState(!1),T=(0,c.c)(A),O=v(r),L=n.useRef(!1),[F,B]=n.useState(0);return n.useEffect(()=>{let e=k.current;if(e)return e.addEventListener(p,T),()=>e.removeEventListener(p,T)},[T]),(0,d.jsx)(x,{scope:r,orientation:o,dir:S,loop:s,currentTabStopId:M,onItemFocus:n.useCallback(e=>P(e),[P]),onItemShiftTab:n.useCallback(()=>C(!0),[]),onFocusableItemAdd:n.useCallback(()=>B(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>B(e=>e-1),[]),children:(0,d.jsx)(u.sG.div,{tabIndex:I||0===F?-1:0,"data-orientation":o,..._,ref:N,style:{outline:"none",...e.style},onMouseDown:(0,i.mK)(e.onMouseDown,()=>{L.current=!0}),onFocus:(0,i.mK)(e.onFocus,e=>{let t=!L.current;if(e.target===e.currentTarget&&t&&!I){let t=new CustomEvent(p,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=O().filter(e=>e.focusable);R([e.find(e=>e.active),e.find(e=>e.id===M),...e].filter(Boolean).map(e=>e.ref.current),E)}}L.current=!1}),onBlur:(0,i.mK)(e.onBlur,()=>C(!1))})})}),N="RovingFocusGroupItem",S=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:o=!0,active:s=!1,tabStopId:a,children:c,...f}=e,h=(0,l.B)(),p=a||h,m=E(N,r),g=m.currentTabStopId===p,b=v(r),{onFocusableItemAdd:w,onFocusableItemRemove:A,currentTabStopId:x}=m;return n.useEffect(()=>{if(o)return w(),()=>A()},[o,w,A]),(0,d.jsx)(y.ItemSlot,{scope:r,id:p,focusable:o,active:s,children:(0,d.jsx)(u.sG.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...f,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{o?m.onItemFocus(p):e.preventDefault()}),onFocus:(0,i.mK)(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let i=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return M[i]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=b().filter(e=>
6e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&i.reverse();let o=i.indexOf(e.currentTarget);i=m.loop?(r=i,n=o+1,r.map((e,t)=>r[(n+t)%r.length])):i.slice(o+1)}setTimeout(()=>R(i))}}),children:"function"==typeof c?c({isCurrentTabStop:g,hasTabStop:null!=x}):c})})});S.displayName=N;var M={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function R(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var P=r(83935),I="Tabs",[C,T]=(0,o.A)(I,[A]),O=A(),[L,F]=C(I),B=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:i,defaultValue:o,orientation:s="horizontal",dir:a,activationMode:c="automatic",...p}=e,m=(0,h.jH)(a),[g,y]=(0,f.i)({prop:n,onChange:i,defaultProp:o??"",caller:I});return(0,d.jsx)(L,{scope:r,baseId:(0,l.B)(),value:g,onValueChange:y,orientation:s,dir:m,activationMode:c,children:(0,d.jsx)(u.sG.div,{dir:m,"data-orientation":s,...p,ref:t})})});B.displayName=I;var D="TabsList",j=n.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...i}=e,o=F(D,r),s=O(r);return(0,d.jsx)(_,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:n,children:(0,d.jsx)(u.sG.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:t})})});j.displayName=D;var U="TabsTrigger",z=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:o=!1,...s}=e,a=F(U,r),l=O(r),c=G(a.baseId,n),f=q(a.baseId,n),h=n===a.value;return(0,d.jsx)(S,{asChild:!0,...l,focusable:!o,active:h,children:(0,d.jsx)(u.sG.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":f,"data-state":h?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...s,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(n)}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(n)}),onFocus:(0,i.mK)(e.onFocus,()=>{let e="manual"!==a.activationMode;h||o||!e||a.onValueChange(n)})})})});z.displayName=U;var V="TabsContent",H=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:i,forceMount:o,children:s,...a}=e,l=F(V,r),c=G(l.baseId,i),f=q(l.baseId,i),h=i===l.value,p=n.useRef(h);return n.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,d.jsx)(P.C,{present:o||h,children:({present:r})=>(0,d.jsx)(u.sG.div,{"data-state":h?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!r,id:f,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:r&&s})})});function G(e,t){return`${e}-trigger-${t}`}function q(e,t){return`${e}-content-${t}`}H.displayName=V;var Y=B,K=j,W=z,J=H},56889:(e,t,r)=>{"use strict";var n=r(4101),i=r(63017),o=r(73594),s=n.rotr64_hi,a=n.rotr64_lo,l=n.shr64_hi,u=n.shr64_lo,c=n.sum64,f=n.sum64_hi,h=n.sum64_lo,d=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,g=n.sum64_5_lo,y=i.BlockHash,v=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817];function b(){if(!(this instanceof b))return new b;
6y.call(this),this.h=[0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179],this.k=v,this.W=Array(160)}n.inherits(b,y),e.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=function(e,t){var r=s(e,t,19)^s(t,e,29)^l(e,t,6);return r<0&&(r+=0x100000000),r}(r[n-4],r[n-3]),o=function(e,t){var r=a(e,t,19)^a(t,e,29)^u(e,t,6);return r<0&&(r+=0x100000000),r}(r[n-4],r[n-3]),c=r[n-14],f=r[n-13],h=function(e,t){var r=s(e,t,1)^s(e,t,8)^l(e,t,7);return r<0&&(r+=0x100000000),r}(r[n-30],r[n-29]),m=function(e,t){var r=a(e,t,1)^a(e,t,8)^u(e,t,7);return r<0&&(r+=0x100000000),r}(r[n-30],r[n-29]),g=r[n-32],y=r[n-31];r[n]=d(i,o,c,f,h,m,g,y),r[n+1]=p(i,o,c,f,h,m,g,y)}},b.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],l=this.h[2],u=this.h[3],d=this.h[4],p=this.h[5],y=this.h[6],v=this.h[7],b=this.h[8],w=this.h[9],A=this.h[10],x=this.h[11],E=this.h[12],_=this.h[13],k=this.h[14],N=this.h[15];o(this.k.length===r.length);for(var S=0;S<r.length;S+=2){var M=k,R=N,P=function(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=0x100000000),r}(b,w),I=function(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=0x100000000),r}(b,w),C=function(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=0x100000000),o}(b,0,A,0,E,_),T=function(e,t,r,n,i,o){var s=t&n^~t&o;return s<0&&(s+=0x100000000),s}(0,w,0,x,0,_),O=this.k[S],L=this.k[S+1],F=r[S],B=r[S+1],D=m(M,R,P,I,C,T,O,L,F,B),j=g(M,R,P,I,C,T,O,L,F,B);M=function(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=0x100000000),r}(n,i),R=function(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=0x100000000),r}(n,i);var U=f(M,R,P=function(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=0x100000000),o}(n,0,l,0,d,p),I=function(e,t,r,n,i,o){var s=t&n^t&o^n&o;return s<0&&(s+=0x100000000),s}(0,i,0,u,0,p)),z=h(M,R,P,I);k=E,N=_,E=A,_=x,A=b,x=w,b=f(y,v,D,j),w=h(v,v,D,j),y=d,v=p,d=l,p=u,l=n,u=i,n=f(D,j,U,z),i=h(D,j,U,z)}c(this.h,0,n,i),c(this.h,2,l,u),c(this.h,4,d,p),c(this.h,6,y,v),c(this.h,8,b,w),c(this.h,10,A,x),c(this.h,12,E,_),c(this.h,14,k,N)},b.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},57141:(e,t,r)=>{"use strict";r.d(t,{YW:()=>h,dg:()=>p,_v:()=>d});var n,i,o,s,a=r(44464);let l=new(r(51633)).Vy("strings/5.8.0");function u(e,t,r,n,i){if(e===s.BAD_PREFIX||e===s.UNEXPECTED_CONTINUE){let e=0;for(let n=t+1;n<r.length&&r[n]>>6==2;n++)e++;return e}return e===s.OVERRUN?r.length-t-1:0}(n=o||(o={})).current="",n.NFC="NFC",n.NFD="NFD",n.NFKC="NFKC",n.NFKD="NFKD",(i=s||(s={})).UNEXPECTED_CONTINUE="unexpected continuation byte",i.BAD_PREFIX="bad codepoint prefix",i.OVERRUN="string overrun",i.MISSING_CONTINUE="missing continuation byte",i.OUT_OF_RANGE="out of UTF-8 range",i.UTF16_SURROGATE="UTF-16 surrogate",i.OVERLONG="overlong representation";let c=Object.freeze({error:function(e,t,r,n,i){return l.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:u,replace:function(e,t,r,n,i){return e===s.OVERLONG?(n.push(i),0):(n.push(65533),u(e,t,r,n,i))}});function f(e,t){null==t&&(t=c.error),e=(0,a.k9)(e);let r=[],n=0;for(;n<e.length;){let i=e[n++];if(i>>7==0){r.push(i);continue}let o=null,a=null;if((224&i)==192)o=1,a=127;else if((240&i)==224)o=2,a=2047;else if((248&i)==240)o=3,a=65535;else{(192&i)==128?n+=t(s.UNEXPECTED_CONTINUE,n-1,e,r):n+=t(s.BAD_PREFIX,n-1,e,r);continue}if(n-1+o>=e.length){n+=t(s.OVERRUN,n-1,e,r);continue}let l=i&(1<<8-o-1)-1;for(let i=0;i<o;i++){let i=e[n];if((192&i)!=128){n+=t(s.MISSING_CONTINUE,n,e,r),l=null;break}l=l<<6|63&i,n++}if(null!==l){if(l>1114111){n+=t(s.OUT_OF_RANGE,n-1-o,e,r,l);continue}if(l>=55296&&l<=57343){n+=t(s.UTF16_SURROGATE,n-1-o,e,r,l);continue}if(l<=a){n+=t(s.OVERLONG,n-1-o,e,r,l);continue}r.push(l)}}return r}function h(e,t=o.current){t!=o.current&&(l.checkNormalize(),e=e.normalize(t));let r=[];for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if((64512&n)==55296){t++;let i=e.charCodeAt(t);if(t>=e.length||(64512&i)!=56320)throw Error("invalid utf-8 string");let o=65536+((1023&n)<<10)+(1023&i);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return(0,a.k9)(r)}function d(e,t){return f(e,t).map(e=>e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10&1023)+55296,(1023&e)+56320)).join("")}function p(e,t=o.current){return f(h(e,t))}},59573:(e,t,r)=>{"use strict";r.d(t,{G:()=>eo});var n=r(35625),i=r(69960),o=r(84428);async function s(e,{chain:t}){let{id:r,name:n,nativeCurrency:i,rpcUrls:s,blockExplorers:a}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,o.cK)(r),chainName:n,nativeCurrency:i,rpcUrls:s.default.http,blockExplorerUrls:a?Object.values(a).map(({url:e})=>e):void 0}]},{dedupe:!0,retryCount:0})}var a=r(24642),l=r(27426),u=r(96685);async function c(e){return e.account?.type==="local"?[e.account.address]:(await e.request({method:"eth_accounts"},{dedupe:!0})).map(e=>(0,u.o)(e))}var f=r(90731),h=r(51011);async function d(e,t={}){let{account:r=e.account,chainId:n}=t,i=r?(0,h.J)(r):void 0,s=n?[i?.address,[(0,o.cK)(n)]]:[i?.address],a=await e.request({method:"wallet_getCapabilities",params:s}),l={};for(let[e,t]of Object.entries(a))for(let[r,n]of(l[Number(e)]={},Object.entries(t)))"addSubAccount"===r&&(r="unstable_addSubAccount"),l[Number(e)][r]=n;return"number"==typeof n?l[n]:l}async function p(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}var m=r(55088),g=r(29562);async function y(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(e=>(0,u.b)(e))}async function v(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}var b=r(75255),w=r(17785);async function A(e,t){let{chain:r=e.chain}=t,n=t.timeout??Math.max((r?.blockTime??0)*3,5e3),i=await (0,b.yM)(e,t);return await (0,w.c)(e,{...t,id:i.id,timeout:n})}var x=r(45312),E=r(96023),_=r(6593),k=r(66568),N=r(96002),S=r(12131),M=r(81278),R=r(70969),P=r(89649),I=r(58637),C=r(49586),T=r(86301),O=r(97948),L=r(1864);let F=new T.A(128);async function B(e,t){let{account:r=e.account,chain:n=e.chain,accessList:o,authorizationList:s,blobs:a,data:l,gas:u,gasPrice:c,maxFeePerBlobGas:f,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:m,pollingInterval:y,throwOnReceiptRevert:v,type:b,value:w,...A}=t,x=t.timeout??Math.max((n?.blockTime??0)*3,5e3);if(void 0===r)throw new _.T({docsPath:"/docs/actions/wallet/sendTransactionSync"});let T=r?(0,h.J)(r):null;try{(0,O.c)(t);let r=await (async()=>t.to?t.to:null!==t.to&&s&&s.length>0?await (0,S.g)({authorization:s[0]}).catch(()=>{throw new k.C("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if(T?.type==="json-rpc"||null===T){let t;null!==n&&(t=await (0,C.T)(e,i.T,"getChainId")({}),(0,M.v)({currentChainId:t,chain:n}));let h=e.chain?.formatters?.transactionRequest?.format,g=(h||I.Bv)({...(0,P.o)(A,{format:h}),accessList:o,account:T,authorizationList:s,blobs:a,chainId:t,data:l,gas:u,gasPrice:c,maxFeePerBlobGas:f,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:m,to:r,type:b,value:w},"sendTransaction"),E=F.get(e.uid),_=E?"wallet_sendTransaction":"eth_sendTransaction",k=await (async()=>{try{return await e.request({method:_,params:[g]},{retryCount:0})}catch(t){if(!1===E)throw t;if("InvalidInputRpcError"===t.name||"InvalidParamsRpcError"===t.name||"MethodNotFoundRpcError"===t.name||"MethodNotSupportedRpcError"===t.name)return await e.request({method:"wallet_sendTransaction",params:[g]},{retryCount:0}).then(t=>(F.set(e.uid,!0),t)).catch(r=>{if("MethodNotFoundRpcError"===r.name||"MethodNotSupportedRpcError"===r.name)throw F.set(e.uid,!1),t;throw r});throw t}})(),S=await (0,C.T)(e,L.n,"waitForTransactionReceipt")({checkReplacement:!1,hash:k,pollingInterval:y,timeout:x});if(v&&"reverted"===S.status)throw new N.Sq({receipt:S});return S}if(T?.type==="local"){let t=await (0,C.T)(e,g.ft,"prepareTransactionRequest")({account:T,accessList:o,authorizationList:s,blobs:a,chain:n,data:l,gas:u,gasPrice:c,maxFeePerBlobGas:f,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:m,nonceManager:T.nonceManager,parameters:[...g.MM,"sidecars"],type:b,value:w,...A,to:r}),i=n?.serializers?.transaction,h=await T.signTransaction(t,{serializer:i});return await (0,C.T)(e,E.s,"sendRawTransactionSync")({serializedTransaction:h,throwOnReceiptRevert:v})}if(T?.type==="smart")throw new _.Z({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new _.Z({docsPath:"/docs/actions/wallet/sendTransactionSync",type:T?.type})}catch(e){if(e instanceof _.Z)throw e;throw(0,R.p)(e,{...t,account:T,chain:t.chain||void 0})}}async function D(e,t){let{id:r}=t;await e.request({method:"wallet_showCallsStatus",params:[r]})}async function j(e,t){let{account:r=e.account}=t;if(!r)throw new _.T({docsPath:"/docs/eip7702/signAuthorization"});let n=(0,h.J)(r);if(!n.signAuthorization)throw new _.Z({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});let i=await (0,m.h)(e,t);return n.signAuthorization(i)}var U=r(75732);async function z(e,t){let{account:r=e.account,chain:n=e.chain,...s}=t;if(!r)throw new _.T({docsPath:"/docs/actions/wallet/signTransaction"});let a=(0,h.J)(r);(0,O.c)({account:a,...t});let l=await (0,C.T)(e,i.T,"getChainId")({});null!==n&&(0,M.v)({currentChainId:l,chain:n});let u=n?.formatters||e.chain?.formatters,c=u?.transactionRequest?.format||I.Bv;return a.signTransaction?a.signTransaction({...s,chainId:l},{serializer:e.chain?.serializers?.transaction}):await e.request({method:"eth_signTransaction",params:[{...c({...s,account:a},"signTransaction"),chainId:(0,o.cK)(l),from:a.address}]},{retryCount:0})}var V=r(35895);async function H(e,t){let{account:r=e.account,domain:n,message:i,primaryType:o}=t;if(!r)throw new _.T({docsPath:"/docs/actions/wallet/signTypedData"});let s=(0,h.J)(r),a={EIP712Domain:(0,V.H4)({domain:n}),...t.types};if((0,V.$$)({domain:n,message:i,primaryType:o,types:a}),s.signTypedData)return s.signTypedData({domain:n,message:i,primaryType:o,types:a});let l=(0,V.v8)({domain:n,message:i,primaryType:o,types:a});return e.request({method:"eth_signTypedData_v4",params:[s.address,l]},{retryCount:0})}async function G(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,o.cK)(t)}]},{retryCount:0})}async function q(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}var Y=r(4181),K=r(4016);async function W(e,t){return W.internal(e,l.v,"sendTransaction",t)}async function J(e,t){return W.internal(e,B,"sendTransactionSync",t)}function Q(e){return{addChain:t=>s(e,t),deployContract:t=>(function(e,t){let{abi:r,args:n,bytecode:i,...o}=t,s=(0,a.m)({abi:r,args:n,bytecode:i}
6);return(0,l.v)(e,{...o,...o.authorizationList?{to:null}:{},data:s})})(e,t),getAddresses:()=>c(e),getCallsStatus:t=>(0,f.k)(e,t),getCapabilities:t=>d(e,t),getChainId:()=>(0,i.T)(e),getPermissions:()=>p(e),prepareAuthorization:t=>(0,m.h)(e,t),prepareTransactionRequest:t=>(0,g.ft)(e,t),requestAddresses:()=>y(e),requestPermissions:t=>v(e,t),sendCalls:t=>(0,b.yM)(e,t),sendCallsSync:t=>A(e,t),sendRawTransaction:t=>(0,x.L)(e,t),sendRawTransactionSync:t=>(0,E.s)(e,t),sendTransaction:t=>(0,l.v)(e,t),sendTransactionSync:t=>B(e,t),showCallsStatus:t=>D(e,t),signAuthorization:t=>j(e,t),signMessage:t=>(0,U.l)(e,t),signTransaction:t=>z(e,t),signTypedData:t=>H(e,t),switchChain:t=>G(e,t),waitForCallsStatus:t=>(0,w.c)(e,t),watchAsset:t=>q(e,t),writeContract:t=>W(e,t),writeContractSync:t=>J(e,t)}}(W||(W={})).internal=async function(e,t,r,n){let{abi:i,account:o=e.account,address:s,args:a,dataSuffix:l,functionName:u,...c}=n;if(void 0===o)throw new _.T({docsPath:"/docs/contract/writeContract"});let f=o?(0,h.J)(o):null,d=(0,Y.p)({abi:i,args:a,functionName:u});try{return await (0,C.T)(e,t,r)({data:`${d}${l?l.replace("0x",""):""}`,to:s,account:f,...c})}catch(e){throw(0,K.j)(e,{abi:i,address:s,args:a,docsPath:"/docs/contract/writeContract",functionName:u,sender:f?.address})}};var X=r(86484);async function $(e,t={}){return(await (0,X.r)(e,t)).extend(Q)}var Z=r(72242),ee=r(12115),et=r(47002),er=r(66404),en=r(5573),ei=r(42482);function eo(e={}){let{query:t={},...r}=e,i=(0,ei.U)(r),o=(0,n.jE)(),{address:s,connector:a,status:l}=(0,er.F)({config:i}),u=(0,en.i)({config:i}),c=e.connector??a,{queryKey:f,...h}=function(e,t={}){return{gcTime:0,async queryFn({queryKey:r}){let{connector:n}=t,{connectorUid:i,scopeKey:o,...s}=r[1];return $(e,{...s,connector:n})},queryKey:function(e={}){let{connector:t,...r}=e;return["walletClient",{...(0,Z.xO)(r),connectorUid:t?.uid}]}(t)}}(i,{...e,chainId:e.chainId??u,connector:e.connector??a}),d=!!(("connected"===l||"reconnecting"===l&&c?.getProvider)&&(t.enabled??!0)),p=(0,ee.useRef)(s);return(0,ee.useEffect)(()=>{let e=p.current;!s&&e?(o.removeQueries({queryKey:f}),p.current=void 0):s!==e&&(o.invalidateQueries({queryKey:f}),p.current=s)},[s,o]),(0,et.IT)({...t,...h,queryKey:f,enabled:d,staleTime:1/0})}},60751:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(73623)._(r(12115)).default.createContext(null)},63017:(e,t,r)=>{"use strict";var n=r(4101),i=r(73594);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(o=8,n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0;o<this.padLength;o++)n[i++]=0;return n}},64308:(e,t,r)=>{"use strict";var n=r(4101),i=r(63017),o=r(70874),s=r(73594),a=n.sum32,l=n.sum32_4,u=n.sum32_5,c=o.ch32,f=o.maj32,h=o.s0_256,d=o.s1_256,p=o.g0_256,m=o.g1_256,g=i.BlockHash,y=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc
676c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],this.k=y,this.W=Array(64)}n.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=l(m(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],g=this.h[2],y=this.h[3],v=this.h[4],b=this.h[5],w=this.h[6],A=this.h[7];for(s(this.k.length===r.length),n=0;n<r.length;n++){var x=u(A,d(v),c(v,b,w),this.k[n],r[n]),E=a(h(i),f(i,o,g));A=w,w=b,b=v,v=a(y,x),y=g,g=o,o=i,i=a(x,E)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],y),this.h[4]=a(this.h[4],v),this.h[5]=a(this.h[5],b),this.h[6]=a(this.h[6],w),this.h[7]=a(this.h[7],A)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},66088:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(78340).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},66294:(e,t,r)=>{"use strict";r.d(t,{N:()=>i});var n=r(12115),i=globalThis?.document?n.useLayoutEffect:()=>{}},68599:(e,t,r)=>{"use strict";r.d(t,{A:()=>s,q:()=>o});var n=r(12115),i=r(95155);function o(e,t){let r=n.createContext(t),o=e=>{let{children:t,...o}=e,s=n.useMemo(()=>o,Object.values(o));return(0,i.jsx)(r.Provider,{value:s,children:t})};return o.displayName=e+"Provider",[o,function(i){let o=n.useContext(r);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function s(e,t=[]){let r=[],o=()=>{let t=r.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return o.scopeName=e,[function(t,o){let s=n.createContext(o),a=r.length;r=[...r,o];let l=t=>{let{scope:r,children:o,...l}=t,u=r?.[e]?.[a]||s,c=n.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:c,children:o})};return l.displayName=t+"Provider",[l,function(r,i){let l=i?.[e]?.[a]||s,u=n.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}(o,...t)]}},69885:(e,t,r)=>{"use strict";let n;r.d(t,{n:()=>h});var i=r(12115),o=r(47527),s=r(55897),a=r(17347),l=r(95155),u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",f={bubbles:!1,cancelable:!0},h=i.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:h,onUnmountAutoFocus:y,...v}=e,[b,w]=i.useState(null),A=(0,a.c)(h),x=(0,a.c)(y),E=i.useRef(null),_=(0,o.s)(t,e=>w(e)),k=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let e=function(e){if(k.paused||!b)return;let t=e.target;b.contains(t)?E.current=t:m(E.current,{select:!0})},t=function(e){if(k.paused||!b)return;let t=e.relatedTarget;null!==t&&(b.contains(t)||m(E.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&m(b)});return b&&r.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,b,k.paused]),i.useEffect(()=>{if(b){g.add(k);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(u,f);b.addEventListener(u,A),b.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(m(n,{select:t}),document.activeElement!==r)return}(d(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(b))}return()=>{b.removeEventListener(u,A),setTimeout(()=>{let t=new CustomEvent(c,f);b.addEventListener(c,x),b.dispatchEvent(t),t.defaultPrevented||m(e??document.body,{select:!0}),b.removeEventListener(c,x),g.remove(k)},0)}}},[b,A,x,k]);let N=i.useCallback(e=>{if(!r&&!n||k.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){var o;let t,n=e.currentTarget,[s,a]=[p(t=d(o=n),o),p(t.reverse(),o)];s&&a?e.shiftKey||i!==a?e.shiftKey&&i===s&&(e.preventDefault(),r&&m(a,{select:!0})):(e.preventDefault(),r&&m(s,{select:!0})):i===n&&e.preventDefault()}},[r,n,k.paused]);return(0,l.jsx)(s.sG.div,{tabIndex:-1,...v,ref:_,onKeyDown:N})});function d(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function p(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function m(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}h.displayName="FocusScope";var g=(n=[],{add(e){let t=n[0];e!==t&&t?.pause(),(n=y(n,e)).unshift(e)},remove(e){n=y(n,e),n[0]?.resume()}});function y(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}},70379:(e,t,r)=>{"use strict";function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{mK:()=>n}),"undefined"!=typeof window&&window.document&&window.document.createElement},70874:(e,t,r)=>{"use strict";var n=r(4101).rotr32;function i(e,t,r){return e&t^e&r^t&r}t.ft_1=function(e,t,r,n){var o;return 0===e?(o=t)&r^~o&n:1===e||3===e?t^r^n:2===e?i(t,r,n):void 0},t.ch32=function(e,t,r){return e&t^~e&r},t.maj32=i,t.p32=function(e,t,r){return e^t^r},t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},71275:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(78340).A)("wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]])},72385:(e,t,r)=>{"use strict";r.d(t,{S:()=>s});var n=r(91879),i=r.n(n),o=r(44464);function s(e){return"0x"+i().keccak_256((0,o.k9)(e))}},73321:(e,t,r)=>{"use strict";var n=r(74645);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}})},73594:e=>{function t(e,t){if(!e)throw Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)}},73676:(e,t,r)=>{"use strict";r.d(t,{KA:()=>eh});
6var n=r(6061),i=r(54914),o=r(44464),s=r(11135),a=r(72385),l=r(99502),u=r(51633);let c="abi/5.7.0",f=new u.Vy(c);class h{constructor(e,t,r,n){this.name=e,this.type=t,this.localName=r,this.dynamic=n}_throwError(e,t){f.throwArgumentError(e,this.localName,t)}}class d{constructor(e){(0,l.yY)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return(0,o.qn)(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData((0,o.xW)(e._data))}writeBytes(e){let t=(0,o.k9)(e),r=t.length%this.wordSize;return r&&(t=(0,o.xW)([t,this._padding.slice(r)])),this._writeData(t)}_getValue(e){let t=(0,o.k9)(i.gH.from(e));return t.length>this.wordSize&&f.throwError("value out-of-bounds",u.Vy.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,o.xW)([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){let e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class p{constructor(e,t,r,n){(0,l.yY)(this,"_data",(0,o.k9)(e)),(0,l.yY)(this,"wordSize",t||32),(0,l.yY)(this,"_coerceFunc",r),(0,l.yY)(this,"allowLoose",n),this._offset=0}get data(){return(0,o.c$)(this._data)}get consumed(){return this._offset}static coerce(e,t){let r=e.match("^u?int([0-9]+)$");return r&&48>=parseInt(r[1])&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):p.coerce(e,t)}_peekBytes(e,t,r){let n=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:f.throwError("data out-of-bounds",u.Vy.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(e){return new p(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}readValue(){return i.gH.from(this.readBytes(this.wordSize))}}class m extends h{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){try{t=(0,n.bv)(t)}catch(e){this._throwError(e.message,t)}return e.writeValue(t)}decode(e){return(0,n.bv)((0,o.bj)(e.readValue().toHexString(),20))}}class g extends h{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}let y=new u.Vy(c);function v(e,t,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let e={};n=t.map(t=>{let n=t.localName;return n||y.throwError("cannot encode object for signature with missing names",u.Vy.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]&&y.throwError("cannot encode object for signature with duplicate names",u.Vy.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]=!0,r[n]})}else y.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&y.throwArgumentError("types/value length mismatch","tuple",r);let i=new d(e.wordSize),o=new d(e.wordSize),s=[];t.forEach((e,t)=>{let r=n[t];if(e.dynamic){let t=o.length;e.encode(o,r);let n=i.writeUpdatableValue();s.push(e=>{n(e+t)})}else e.encode(i,r)}),s.forEach(e=>{e(i.length)});let a=e.appendWriter(i);return a+e.appendWriter(o)}function b(e,t){let r=[],n=e.subReader(0);t.forEach(t=>{let i=null;if(t.dynamic){let r=e.readValue(),o=n.subReader(r.toNumber());try{i=t.decode(o)}catch(e){if(e.code===u.Vy.errors.BUFFER_OVERRUN)throw e;(i=e).baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(e){if(e.code===u.Vy.errors.BUFFER_OVERRUN)throw e;(i=e).baseType=t.name,i.name=t.localName,i.type=t.type}void 0!=i&&r.push(i)});let i=t.reduce((e,t)=>{let r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});t.forEach((e,t)=>{let n=e.localName;if(!n||1!==i[n]||("length"===n&&(n="_length"),null!=r[n]))return;let o=r[t];o instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw o}}):r[n]=o});for(let e=0;e<r.length;e++){let t=r[e];t instanceof Error&&Object.defineProperty(r,e,{enumerable:!0,get:()=>{throw t}})}return Object.freeze(r)}class w extends h{constructor(e,t,r){super("array",e.type+"["+(t>=0?t:"")+"]",r,-1===t||e.dynamic),this.coder=e,this.length=t}defaultValue(){let e=this.coder.defaultValue(),t=[];for(let r=0;r<this.length;r++)t.push(e);return t}encode(e,t){Array.isArray(t)||this._throwError("expected array value",t);let r=this.length;-1===r&&(r=t.length,e.writeValue(t.length)),y.checkArgumentCount(t.length,r,"coder array"+(this.localName?" "+this.localName:""));let n=[];for(let e=0;e<t.length;e++)n.push(this.coder);return v(e,n,t)}decode(e){let t=this.length;-1===t&&32*(t=e.readValue().toNumber())>e._data.length&&y.throwError("insufficient data length",u.Vy.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});let r=[];for(let e=0;e<t;e++)r.push(new g(this.coder));return e.coerce(this.name,b(e,r))}}class A extends h{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){return e.writeValue(+!!t)}
6decode(e){return e.coerce(this.type,!e.readValue().isZero())}}class x extends h{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){t=(0,o.k9)(t);let r=e.writeValue(t.length);return r+e.writeBytes(t)}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class E extends x{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,(0,o.c$)(super.decode(e)))}}class _ extends h{constructor(e,t){let r="bytes"+String(e);super(r,r,t,!1),this.size=e}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let r=(0,o.k9)(t);return r.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(r)}decode(e){return e.coerce(this.name,(0,o.c$)(e.readBytes(this.size)))}}class k extends h{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}var N=r(86993);class S extends h{constructor(e,t,r){const n=(t?"int":"uint")+8*e;super(n,n,r,!1),this.size=e,this.signed=t}defaultValue(){return 0}encode(e,t){let r=i.gH.from(t),n=N.Is.mask(8*e.wordSize);if(this.signed){let e=n.mask(8*this.size-1);(r.gt(e)||r.lt(e.add(N.pD).mul(N.eR)))&&this._throwError("value out-of-bounds",t)}else(r.lt(N.XK)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(r)}decode(e){let t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}var M=r(57141);class R extends x{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,(0,M.YW)(t))}decode(e){return(0,M._v)(super.decode(e))}}class P extends h{constructor(e,t){let r=!1;const n=[];e.forEach(e=>{e.dynamic&&(r=!0),n.push(e.type)}),super("tuple","tuple("+n.join(",")+")",t,r),this.coders=e}defaultValue(){let e=[];this.coders.forEach(t=>{e.push(t.defaultValue())});let t=this.coders.reduce((e,t)=>{let r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});return this.coders.forEach((r,n)=>{let i=r.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[n]))}),Object.freeze(e)}encode(e,t){return v(e,this.coders,t)}decode(e){return e.coerce(this.name,b(e,this.coders))}}let I=new u.Vy(c),C={},T={calldata:!0,memory:!0,storage:!0},O={calldata:!0,memory:!0};function L(e,t){if("bytes"===e||"string"===e){if(T[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&O[t])return!0;return(T[t]||"payable"===t)&&I.throwArgumentError("invalid modifier","name",t),!1}function F(e,t){for(let r in t)(0,l.yY)(e,r,t[r])}let B=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),D=new RegExp(/^(.*)\[([0-9]*)\]$/);class j{constructor(e,t){e!==C&&I.throwError("use fromString",u.Vy.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),F(this,t);let r=this.type.match(D);r?F(this,{arrayLength:parseInt(r[2]||"-1"),arrayChildren:j.fromObject({type:r[1],components:this.components}),baseType:"array"}):F(this,{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=B.sighash),B[e]||I.throwArgumentError("invalid format type","format",e),e===B.json){let t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map(t=>JSON.parse(t.format(e)))),JSON.stringify(t)}let t="";return"array"===this.baseType?(t+=this.arrayChildren.format(e),t+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==B.sighash&&(t+=this.type),t+="("+this.components.map(t=>t.format(e)).join(e===B.full?", ":",")+")"):t+=this.type,e!==B.sighash&&(!0===this.indexed&&(t+=" indexed"),e===B.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"==typeof e?j.fromString(e,t):j.fromObject(e)}static fromObject(e){return j.isParamType(e)?e:new j(C,{name:e.name||null,type:Q(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(j.fromObject):null})}static fromString(e,t){var r;return r=function(e,t){let r=e;function n(t){I.throwArgumentError(`unexpected character at position ${t}`,"param",e)}function i(e){let r={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},s=o;for(let r=0;r<e.length;r++){let o=e[r];switch(o){case"(":s.state.allowType&&""===s.type?s.type="tuple":s.state.allowParams||n(r),s.state.allowType=!1,s.type=Q(s.type),s.components=[i(s)],s=s.components[0];break;case")":delete s.state,"indexed"===s.name&&(t||n(r),s.indexed=!0,s.name=""),L(s.type,s.name)&&(s.name=""),s.type=Q(s.type);let a=s;(s=s.parent)||n(r),delete a.parent,s.state.allowParams=!1,s.state.allowName=!0,s.state.allowArray=!0;break;case",":delete s.state,"indexed"===s.name&&(t||n(r),s.indexed=!0,s.name=""),L(s.type,s.name)&&(s.name=""),s.type=Q(s.type);let l=i(s.parent);s.parent.components.push(l),delete s.parent,s=l;break;case" ":s.state.allowType&&""!==s.type&&(s.type=Q(s.type),delete s.state.allowType,s.state.allowName=!0,s.state.allowParams=!0),s.state.allowName&&""!==s.name&&("indexed"===s.name?(t||n(r),s.indexed&&n(r),s.indexed=!0,s.name=""):L(s.type,s.name)?s.name="":s.state.allowName=!1);break;case"[":s.state.allowArray||n(r),s.type+=o,s.state.allowArray=!1,s.state.allowName=!1,s.state.readArray=!0;break;case"]":s.state.readArray||n(r),s.type+=o,s.state.readArray=!1,s.state.allowArray=!0,s.state.allowName=!0;break;default:s.state.allowType?(s.type+=o,s.state.allowParams=!0,s.state.allowArray=!0):s.state.allowName?(s.name+=o,delete s.state.allowArray):s.state.readArray?s.type+=o:n(r)}}return s.parent&&I.throwArgumentError("unexpected eof","param",e),delete o.state,"indexed"===s.name?(t||n(r.length-7),s.indexed&&n(r.length-7),s.indexed=!0,s.name=""):L(s.type,s.name)&&(s.name=""),o.type=Q(o.type),o}(e,!!t),j.fromObject({name:r.name,type:r.type,indexed:r.indexed,components:r.components})}static isParamType(e){return!!(null!=e&&e._isParamType)}}function U(e,t){return(function(e){e=e.trim();let t=[],r="",n=0;for(let i=0;i<e.length;i++){let o=e[i];","===o&&0===n?(t.push(r),r=""):(r+=o,"("===o?n++:")"===o&&-1==--n&&I.throwArgumentError("unbalanced parenthesis","value",e))}return r&&t.push(r),t})(e).map(e=>j.fromString(e,t))}class z{constructor(e,t){e!==C&&I.throwError("use a static from method",u.Vy.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),F(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return z.isFragment(e)?e:"string"==typeof e?z.fromString(e):z.fromObject(e)}static fromObject(e){if(z.isFragment(e))return e;switch(e.type){case"function":return K.fromObject(e);case"event":return V.fromObject(e);case"constructor":return Y.fromObject(e);case"error":return J.fromObject(e);case"fallback":case"receive":return null}return I.throwArgumentError("invalid fragment object","value",e)}
6static fromString(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?V.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?K.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?Y.fromString(e.trim()):"error"===e.split(" ")[0]?J.fromString(e.substring(5).trim()):I.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class V extends z{format(e){if(e||(e=B.sighash),B[e]||I.throwArgumentError("invalid format type","format",e),e===B.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==B.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===B.full?", ":",")+") ",e!==B.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"==typeof e?V.fromString(e):V.fromObject(e)}static fromObject(e){return V.isEventFragment(e)?e:("event"!==e.type&&I.throwArgumentError("invalid event object","value",e),new V(C,{name:$(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(j.fromObject):[],type:"event"}))}static fromString(e){let t=e.match(Z);t||I.throwArgumentError("invalid event string","value",e);let r=!1;return t[3].split(" ").forEach(e=>{switch(e.trim()){case"anonymous":r=!0;break;case"":break;default:I.warn("unknown modifier: "+e)}}),V.fromObject({name:t[1].trim(),anonymous:r,inputs:U(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function H(e,t){t.gas=null;let r=e.split("@");return 1!==r.length?(r.length>2&&I.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||I.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=i.gH.from(r[1]),r[0]):e}function G(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach(e=>{switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}})}function q(e){let t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&I.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&I.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||I.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&I.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&I.throwArgumentError("unable to determine stateMutability","value",e),t}class Y extends z{format(e){if(e||(e=B.sighash),B[e]||I.throwArgumentError("invalid format type","format",e),e===B.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});e===B.sighash&&I.throwError("cannot format a constructor for sighash",u.Vy.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map(t=>t.format(e)).join(e===B.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"==typeof e?Y.fromString(e):Y.fromObject(e)}static fromObject(e){if(Y.isConstructorFragment(e))return e;"constructor"!==e.type&&I.throwArgumentError("invalid constructor object","value",e);let t=q(e);return t.constant&&I.throwArgumentError("constructor cannot be constant","value",e),new Y(C,{name:null,type:e.type,inputs:e.inputs?e.inputs.map(j.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?i.gH.from(e.gas):null})}static fromString(e){let t={type:"constructor"},r=(e=H(e,t)).match(Z);return r&&"constructor"===r[1].trim()||I.throwArgumentError("invalid constructor string","value",e),t.input
6s=U(r[2].trim(),!1),G(r[3].trim(),t),Y.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class K extends Y{format(e){if(e||(e=B.sighash),B[e]||I.throwArgumentError("invalid format type","format",e),e===B.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e))),outputs:this.outputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==B.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===B.full?", ":",")+") ",e!==B.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map(t=>t.format(e)).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}static from(e){return"string"==typeof e?K.fromString(e):K.fromObject(e)}static fromObject(e){if(K.isFunctionFragment(e))return e;"function"!==e.type&&I.throwArgumentError("invalid function object","value",e);let t=q(e);return new K(C,{type:e.type,name:$(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(j.fromObject):[],outputs:e.outputs?e.outputs.map(j.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?i.gH.from(e.gas):null})}static fromString(e){let t={type:"function"},r=(e=H(e,t)).split(" returns ");r.length>2&&I.throwArgumentError("invalid function string","value",e);let n=r[0].match(Z);if(n||I.throwArgumentError("invalid function signature","value",e),t.name=n[1].trim(),t.name&&$(t.name),t.inputs=U(n[2],!1),G(n[3].trim(),t),r.length>1){let n=r[1].match(Z);(""!=n[1].trim()||""!=n[3].trim())&&I.throwArgumentError("unexpected tokens","value",e),t.outputs=U(n[2],!1)}else t.outputs=[];return K.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function W(e){let t=e.format();return("Error(string)"===t||"Panic(uint256)"===t)&&I.throwArgumentError(`cannot specify user defined ${t} error`,"fragment",e),e}class J extends z{format(e){if(e||(e=B.sighash),B[e]||I.throwArgumentError("invalid format type","format",e),e===B.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==B.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===B.full?", ":",")+") ").trim()}static from(e){return"string"==typeof e?J.fromString(e):J.fromObject(e)}static fromObject(e){return J.isErrorFragment(e)?e:("error"!==e.type&&I.throwArgumentError("invalid error object","value",e),W(new J(C,{type:e.type,name:$(e.name),inputs:e.inputs?e.inputs.map(j.fromObject):[]})))}static fromString(e){let t={type:"error"},r=e.match(Z);return r||I.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&$(t.name),t.inputs=U(r[2],!1),W(J.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function Q(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}let X=RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function $(e){return e&&e.match(X)||I.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}let Z=RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$"),ee=new u.Vy(c),et=new RegExp(/^bytes([0-9]*)$/),er=new RegExp(/^(u?int)([0-9]*)$/);class en{constructor(e){(0,l.yY)(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new m(e.name);case"bool":return new A(e.name);case"string":return new R(e.name);case"bytes":return new E(e.name);case"array":return new w(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new P((e.components||[]).map(e=>this._getCoder(e)),e.name);case"":return new k(e.name)}let t=e.type.match(er);if(t){let r=parseInt(t[2]||"256");return(0===r||r>256||r%8!=0)&&ee.throwArgumentError("invalid "+t[1]+" bit length","param",e),new S(r/8,"int"===t[1],e.name)}if(t=e.type.match(et)){let r=parseInt(t[1]);return(0===r||r>32)&&ee.throwArgumentError("invalid bytes length","param",e),new _(r,e.name)}return ee.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,t){return new p(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new d(this._getWordSize())}getDefaultValue(e){return new P(e.map(e=>this._getCoder(j.from(e))),"_").defaultValue()}encode(e,t){e.length!==t.length&&ee.throwError("types/values length mismatch",u.Vy.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});let r=new P(e.map(e=>this._getCoder(j.from(e))),"_"),n=this._getWriter();return r.encode(n,t),n.data}decode(e,t,r){return new P(e.map(e=>this._getCoder(j.from(e))),"_").decode(this._getReader((0,o.k9)(t),r))}}let ei=new en,eo=new u.Vy(c);class es extends l.VY{}class ea extends l.VY{}class el extends l.VY{}class eu extends l.VY{static isIndexed(e){return!!(e&&e._isIndexed)}}let ec={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function ef(e,t){let r=Error(`deferred error during ABI decoding triggered accessing ${e}`);return r.error=t,r}class eh{constructor(e){let t=[];t="string"==typeof e?JSON.parse(e):e,(0,l.yY)(this,"fragments",t.map(e=>z.from(e)).filter(e=>null!=e)),(0,l.yY)(this,"_abiCoder",(0,l.$J)(new.target,"getAbiCoder")()),(0,l.yY)(this,"functions",{}),(0,l.yY)(this,"errors",{}),(0,l.yY)(this,"events",{}),(0,l.yY)(this,"structs",{}
6),this.fragments.forEach(e=>{let t=null;switch(e.type){case"constructor":if(this.deploy)return void eo.warn("duplicate definition - constructor");(0,l.yY)(this,"deploy",e);return;case"function":t=this.functions;break;case"event":t=this.events;break;case"error":t=this.errors;break;default:return}let r=e.format();t[r]?eo.warn("duplicate definition - "+r):t[r]=e}),this.deploy||(0,l.yY)(this,"deploy",Y.from({payable:!1,type:"constructor"})),(0,l.yY)(this,"_isInterface",!0)}format(e){e||(e=B.full),e===B.sighash&&eo.throwArgumentError("interface does not support formatting sighash","format",e);let t=this.fragments.map(t=>t.format(e));return e===B.json?JSON.stringify(t.map(e=>JSON.parse(e))):t}static getAbiCoder(){return ei}static getAddress(e){return(0,n.bv)(e)}static getSighash(e){return(0,o.Ab)((0,s.id)(e.format()),0,4)}static getEventTopic(e){return(0,s.id)(e.format())}getFunction(e){if((0,o.Lo)(e)){for(let t in this.functions)if(e===this.getSighash(t))return this.functions[t];eo.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){let t=e.trim(),r=Object.keys(this.functions).filter(e=>e.split("(")[0]===t);return 0===r.length?eo.throwArgumentError("no matching function","name",t):r.length>1&&eo.throwArgumentError("multiple matching functions","name",t),this.functions[r[0]]}let t=this.functions[K.fromString(e).format()];return t||eo.throwArgumentError("no matching function","signature",e),t}getEvent(e){if((0,o.Lo)(e)){let t=e.toLowerCase();for(let e in this.events)if(t===this.getEventTopic(e))return this.events[e];eo.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){let t=e.trim(),r=Object.keys(this.events).filter(e=>e.split("(")[0]===t);return 0===r.length?eo.throwArgumentError("no matching event","name",t):r.length>1&&eo.throwArgumentError("multiple matching events","name",t),this.events[r[0]]}let t=this.events[V.fromString(e).format()];return t||eo.throwArgumentError("no matching event","signature",e),t}getError(e){if((0,o.Lo)(e)){let t=(0,l.$J)(this.constructor,"getSighash");for(let r in this.errors)if(e===t(this.errors[r]))return this.errors[r];eo.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){let t=e.trim(),r=Object.keys(this.errors).filter(e=>e.split("(")[0]===t);return 0===r.length?eo.throwArgumentError("no matching error","name",t):r.length>1&&eo.throwArgumentError("multiple matching errors","name",t),this.errors[r[0]]}let t=this.errors[K.fromString(e).format()];return t||eo.throwArgumentError("no matching error","signature",e),t}getSighash(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return(0,l.$J)(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"==typeof e&&(e=this.getEvent(e)),(0,l.$J)(this.constructor,"getEventTopic")(e)}_decodeParams(e,t){return this._abiCoder.decode(e,t)}_encodeParams(e,t){return this._abiCoder.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){"string"==typeof e&&(e=this.getError(e));let r=(0,o.k9)(t);return(0,o.c$)(r.slice(0,4))!==this.getSighash(e)&&eo.throwArgumentError(`data signature does not match error ${e.name}.`,"data",(0,o.c$)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeErrorResult(e,t){return"string"==typeof e&&(e=this.getError(e)),(0,o.c$)((0,o.xW)([this.get
6Sighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionData(e,t){"string"==typeof e&&(e=this.getFunction(e));let r=(0,o.k9)(t);return(0,o.c$)(r.slice(0,4))!==this.getSighash(e)&&eo.throwArgumentError(`data signature does not match function ${e.name}.`,"data",(0,o.c$)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeFunctionData(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,o.c$)((0,o.xW)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,t){"string"==typeof e&&(e=this.getFunction(e));let r=(0,o.k9)(t),n=null,i="",s=null,a=null,l=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(e){}break;case 4:{let e=(0,o.c$)(r.slice(0,4)),t=ec[e];if(t)s=this._abiCoder.decode(t.inputs,r.slice(4)),a=t.name,l=t.signature,t.reason&&(n=s[0]),"Error"===a?i=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(s[0])}`:"Panic"===a&&(i=`; VM Exception while processing transaction: reverted with panic code ${s[0]}`);else try{let t=this.getError(e);s=this._abiCoder.decode(t.inputs,r.slice(4)),a=t.name,l=t.format()}catch(e){}}}return eo.throwError("call revert exception"+i,u.Vy.errors.CALL_EXCEPTION,{method:e.format(),data:(0,o.c$)(t),errorArgs:s,errorName:a,errorSignature:l,reason:n})}encodeFunctionResult(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,o.c$)(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&eo.throwError("too many arguments for "+e.format(),u.Vy.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});let r=[];e.anonymous||r.push(this.getEventTopic(e));let n=(e,t)=>"string"===e.type?(0,s.id)(t):"bytes"===e.type?(0,a.S)((0,o.c$)(t)):("bool"===e.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=i.gH.from(t).toHexString()),"address"===e.type&&this._abiCoder.encode(["address"],[t]),(0,o.bj)((0,o.c$)(t),32));for(t.forEach((t,i)=>{let o=e.inputs[i];if(!o.indexed){null!=t&&eo.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,t);return}null==t?r.push(null):"array"===o.baseType||"tuple"===o.baseType?eo.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,t):Array.isArray(t)?r.push(t.map(e=>n(o,e))):r.push(n(o,t))});r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){"string"==typeof e&&(e=this.getEvent(e));let r=[],n=[],i=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&eo.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((e,o)=>{let l=t[o];if(e.indexed)if("string"===e.type)r.push((0,s.id)(l));else if("bytes"===e.type)r.push((0,a.S)(l));else if("tuple"===e.baseType||"array"===e.baseType)throw Error("not implemented");else r.push(this._abiCoder.encode([e.type],[l]));else n.push(e),i.push(l)}),{data:this._abiCoder.encode(n,i),topics:r}}decodeEventLog(e,t,r){if("string"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){let t=this.getEventTopic(e);(0,o.Lo)(r[0],32)&&r[0].toLowerCase()===t||eo.throwError("fragment/topic mismatch",u.Vy.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:t,value:r[0]}),r=r.slice(1)}let n=[],i=[],s=[];e.inputs.forEach((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(n.push(j.fromObject({type:"bytes32",name:e.name})),s.push(!0)):(n.push(e),s.push(!1)):(i.push(e),s.push(!1))});let a=null!=r?this._abiCoder.decode(n,(0,o.xW)(r)):null,l=this._abiCoder.decode(i,t,!0),c=[],f=0,h=0;e.inputs.forEach((e,t)=>{if(e.indexed)if(null==a)c[t]=new eu({_isIndexed:!0,hash:null});else if(s[t])c[t]=new eu({_isIndexed:!0,hash:a[h++]});else try{c[t]=a[h++]}catch(e){c[t]=e}else try{c[t]=l[f++]}catch(e){c[t]=e}if(e.name&&null==c[e.name]){let r=c[t];r instanceof Error?Object.defineProperty(c,e.name,{enumerable:!0,get:()=>{throw ef(`property ${JSON.stringify(e.name)}`,r)}}):c[e.name]=r}});for(let e=0;e<c.length;e++){let t=c[e];t instanceof Error&&Object.defineProperty(c,e,{enumerable:!0,get:()=>{throw ef(`index ${e}`,t)}})}return Object.freeze(c)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new ea({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:i.gH.from(e.value||"0")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new es({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}parseError(e){let t=(0,o.c$)(e),r=this.getError(t.substring(0,10).toLowerCase());return r?new el({args:this._abiCoder.decode(r.inputs,"0x"+t.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(e){return!!(e&&e._isInterface)}}},76094:(e,t,r)=>{"use strict";r.d(t,{N:()=>l});
6var n=r(12115),i=r(68599),o=r(47527),s=r(42442),a=r(95155);function l(e){let t=e+"CollectionProvider",[r,l]=(0,i.A)(t),[u,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),f=e=>{let{scope:t,children:r}=e,i=n.useRef(null),o=n.useRef(new Map).current;return(0,a.jsx)(u,{scope:t,itemMap:o,collectionRef:i,children:r})};f.displayName=t;let h=e+"CollectionSlot",d=(0,s.TL)(h),p=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=c(h,r),s=(0,o.s)(t,i.collectionRef);return(0,a.jsx)(d,{ref:s,children:n})});p.displayName=h;let m=e+"CollectionItemSlot",g="data-radix-collection-item",y=(0,s.TL)(m),v=n.forwardRef((e,t)=>{let{scope:r,children:i,...s}=e,l=n.useRef(null),u=(0,o.s)(t,l),f=c(m,r);return n.useEffect(()=>(f.itemMap.set(l,{ref:l,...s}),()=>void f.itemMap.delete(l))),(0,a.jsx)(y,{...{[g]:""},ref:u,children:i})});return v.displayName=m,[{Provider:f,Slot:p,ItemSlot:v},function(t){let r=c(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},l]}var u=new WeakMap;function c(e,t){var r,n;let i,o,s;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let a=(r=e,n=t,i=r.length,(s=(o=f(n))>=0?o:i+o)<0||s>=i?-1:s);return -1===a?void 0:e[a]}function f(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],u.set(this,!0)}set(e,t){return u.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,i=this.has(t),o=this.#e.length,s=f(e),a=s>=0?s:o+s,l=a<0||a>=o?-1:a;if(l===this.size||i&&l===this.size-1||-1===l)return this.set(t,r),this;let u=this.size+ +!i;s<0&&a++;let c=[...this.#e],h=!1;for(let e=a;e<u;e++)if(a===e){let o=c[e];c[e]===t&&(o=c[e+1]),i&&this.delete(t),n=this.get(o),this.set(t,r)}else{h||c[e-1]!==t||(h=!0);let r=c[h?e:e-1],i=n;n=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,n){let i=new e(this);return i.insert(t,r,n),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=c(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=c(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return c(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(...e){let[t,r]=e,n=0,i=r??this.at(0);for(let r of this)i=0===n&&1===e.length?r:Reflect.apply(t,this,[i,r,n,this]),n++;return i}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);n=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[n,i,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}})},76899:(e,t,r)=>{"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let n=r(12115),i=n.useLayoutEffect,o=n.useEffect;function s(e){let{headManager:t,reduceComponentsToState:r}=e;function s(){if(t&&t.mountedInstances){let e=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return i(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),i(()=>(t&&(t._pendingUpdate=s),()=>{t&&(t._pendingUpdate=s)})),o(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},77801:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},78340:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(12115);let i=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},o=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var s={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 a=(0,n.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:a="",children:l,iconNode:u,...c},f)=>(0,n.createElement)("svg",{ref:f,...s,width:t,height:t,stroke:e,strokeWidth:i?24*Number(r)/Number(t):r,className:o("lucide",a),...!l&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(c)&&{"aria-hidden":"true"},...c},[...u.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(l)?l:[l]])),l=(e,t)=>
6{let r=(0,n.forwardRef)(({className:r,...s},l)=>(0,n.createElement)(a,{ref:l,iconNode:t,className:o(`lucide-${i(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...s}));return r.displayName=i(e),r}},78428:(e,t,r)=>{"use strict";r.d(t,{l:()=>u,J:()=>c});var n=r(99502),i=r(51633),o=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};let s=new i.Vy("abstract-signer/5.8.0"),a=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],l=[i.Vy.errors.INSUFFICIENT_FUNDS,i.Vy.errors.NONCE_EXPIRED,i.Vy.errors.REPLACEMENT_UNDERPRICED];class u{constructor(){s.checkAbstract(new.target,u),(0,n.yY)(this,"_isSigner",!0)}getBalance(e){return o(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return o(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return o(this,void 0,void 0,function*(){this._checkProvider("estimateGas");let t=yield(0,n.k_)(this.checkTransaction(e));return yield this.provider.estimateGas(t)})}call(e,t){return o(this,void 0,void 0,function*(){this._checkProvider("call");let r=yield(0,n.k_)(this.checkTransaction(e));return yield this.provider.call(r,t)})}sendTransaction(e){return o(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");let t=yield this.populateTransaction(e),r=yield this.signTransaction(t);return yield this.provider.sendTransaction(r)})}getChainId(){return o(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return o(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return o(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return o(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(let t in e)-1===a.indexOf(t)&&s.throwArgumentError("invalid transaction key: "+t,"transaction",e);let t=(0,n.Ic)(e);return null==t.from?t.from=this.getAddress():t.from=Promise.all([Promise.resolve(t.from),this.getAddress()]).then(t=>(t[0].toLowerCase()!==t[1].toLowerCase()&&s.throwArgumentError("from address mismatch","transaction",e),t[0])),t}populateTransaction(e){return o(this,void 0,void 0,function*(){let t=yield(0,n.k_)(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then(e=>o(this,void 0,void 0,function*(){if(null==e)return null;let t=yield this.resolveName(e);return null==t&&s.throwArgumentError("provided ENS name resolves to null","tx.to",e),t})),t.to.catch(e=>{}));let r=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null!=t.gasPrice&&(2===t.type||r)?s.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(0===t.type||1===t.type)&&r&&s.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(2===t.type||null==t.type)&&null!=t.maxFeePerGas&&null!=t.maxPriorityFeePerGas)t.type=2;else if(0===t.type||1===t.type)null==t.gasPrice&&(t.gasPrice=this.getGasPrice());else{let e=yield this.getFeeData();if(null==t.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(t.type=2,null!=t.gasPrice){let e=t.gasPrice;delete t.gasPrice,t.maxFeePerGas=e,t.maxPriorityFeePerGas=e}else null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?(r&&s.throwError("network does not support EIP-1559",i.Vy.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):s.throwError("failed to get consistent fee data",i.Vy.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}return null==t.nonce&&(t.nonce=this.getTransactionCount("pending")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch(e=>{if(l.indexOf(e.code)>=0)throw e;return s.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",i.Vy.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:t})})),null==t.chainId?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then(t=>(0!==t[1]&&t[0]!==t[1]&&s.throwArgumentError("chainId address mismatch","transaction",e),t[0])),yield(0,n.k_)(t)})}_checkProvider(e){this.provider||s.throwError("missing provider",i.Vy.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}class c extends u{constructor(e,t){super(),(0,n.yY)(this,"address",e),(0,n.yY)(this,"provider",t||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,t){return Promise.resolve().then(()=>{s.throwError(e,i.Vy.errors.UNSUPPORTED_OPERATION,{operation:t})})}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,t,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new c(this.address,e)}}},82673:(e,t,r)=>{"use strict";r.d(t,{Rj:()=>s,Kq:()=>a});var n=r(54914);r(44464);var i=r(99502);let o=new(r(51633)).Vy("abstract-provider/5.8.0");class s extends i.VY{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class a{constructor(){o.checkAbstract(new.target,a),(0,i.yY)(this,"_isProvider",!0)}getFeeData(){var e,t,r,o;return e=this,t=void 0,r=void 0,o=function*(){let{block:e,gasPrice:t}=yield(0,i.k_)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(e=>null)}),r=null,o=null,s=null;return e&&e.baseFeePerGas&&(r=e.baseFeePerGas,s=n.gH.from("1500000000"),o=e.baseFeePerGas.mul(2).add(s)),{lastBaseFeePerGas:r,maxFeePerGas:o,maxPriorityFeePerGas:s,gasPrice:t}},new(r||(r=Promise))(function(n,i){function s(e){try{l(o.next(e))}catch(e){i(e)}}function a(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((o=o.apply(e,t||[])).next())})}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!!(e&&e._isProvider)}}},83935:(e,t,r)=>{"use strict";r.d(t,{C:()=>s});var n=r(12115),i=r(47527),o=r(66294),s=e=>{var t;let r,s,{present:l,children:u}=e,c=function(e){var t,r;let[i,s]=n.useState(),l=n.useRef(null),u=n.useRef(e),c=n.useRef("none"),[f,h]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>
6r[e][t]??e,t));return n.useEffect(()=>{let e=a(l.current);c.current="mounted"===f?e:"none"},[f]),(0,o.N)(()=>{let t=l.current,r=u.current;if(r!==e){let n=c.current,i=a(t);e?h("MOUNT"):"none"===i||t?.display==="none"?h("UNMOUNT"):r&&n!==i?h("ANIMATION_OUT"):h("UNMOUNT"),u.current=e}},[e,h]),(0,o.N)(()=>{if(i){let e,t=i.ownerDocument.defaultView??window,r=r=>{let n=a(l.current).includes(CSS.escape(r.animationName));if(r.target===i&&n&&(h("ANIMATION_END"),!u.current)){let r=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=r)})}},n=e=>{e.target===i&&(c.current=a(l.current))};return i.addEventListener("animationstart",n),i.addEventListener("animationcancel",r),i.addEventListener("animationend",r),()=>{t.clearTimeout(e),i.removeEventListener("animationstart",n),i.removeEventListener("animationcancel",r),i.removeEventListener("animationend",r)}}h("ANIMATION_END")},[i,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:n.useCallback(e=>{l.current=e?getComputedStyle(e):null,s(e)},[])}}(l),f="function"==typeof u?u({present:c.isPresent}):n.Children.only(u),h=(0,i.s)(c.ref,(t=f,(s=(r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.ref:(s=(r=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof u||c.isPresent?n.cloneElement(f,{ref:h}):null};function a(e){return e?.animationName||"none"}s.displayName="Presence"},84182:(e,t,r)=>{"use strict";r.d(t,{ck:()=>_,Js:()=>x,g5:()=>k,XS:()=>E});var n=r(44464),i=r(51633),o=r(51036),s=r(54914);let a=new i.Vy(o.r),l={},u=s.gH.from(0),c=s.gH.from(-1);function f(e,t,r,n){let o={fault:t,operation:r};return void 0!==n&&(o.value=n),a.throwError(e,i.Vy.errors.NUMERIC_FAULT,o)}let h="0";for(;h.length<256;)h+=h;function d(e){if("number"!=typeof e)try{e=s.gH.from(e).toNumber()}catch(e){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+h.substring(0,e):a.throwArgumentError("invalid decimal size","decimals",e)}function p(e,t){null==t&&(t=0);let r=d(t),n=(e=s.gH.from(e)).lt(u);n&&(e=e.mul(c));let i=e.mod(r).toString();for(;i.length<r.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];let o=e.div(r).toString();return e=1===r.length?o:o+"."+i,n&&(e="-"+e),e}function m(e,t){null==t&&(t=0);let r=d(t);"string"==typeof e&&e.match(/^-?[0-9.]+$/)||a.throwArgumentError("invalid decimal value","value",e);let n="-"===e.substring(0,1);n&&(e=e.substring(1)),"."===e&&a.throwArgumentError("missing value","value",e);let i=e.split(".");i.length>2&&a.throwArgumentError("too many decimal points","value",e);let o=i[0],l=i[1];for(o||(o="0"),l||(l="0");"0"===l[l.length-1];)l=l.substring(0,l.length-1);for(l.length>r.length-1&&f("fractional component exceeds decimals","underflow","parseFixed"),""===l&&(l="0");l.length<r.length-1;)l+="0";let u=s.gH.from(o),h=s.gH.from(l),p=u.mul(r).add(h);return n&&(p=p.mul(c)),p}class g{constructor(e,t,r,n){e!==l&&a.throwError("cannot use FixedFormat constructor; use FixedFormat.from",i.Vy.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=t,this.width=r,this.decimals=n,this.name=(t?"":"u")+"fixed"+String(r)+"x"+String(n),this._multiplier=d(n),Object.freeze(this)}static from(e){if(e instanceof g)return e;"number"==typeof e&&(e=`fixed128x${e}`);let t=!0,r=128,n=18;if("string"==typeof e)if("fixed"===e);else if("ufixed"===e)t=!1;else{let i=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);i||a.throwArgumentError("invalid fixed format","format",e),t="u"!==i[1],r=parseInt(i[2]),n=parseInt(i[3])}else if(e){let i=(t,r,n)=>null==e[t]?n:(typeof e[t]!==r&&a.throwArgumentError("invalid fixed format ("+t+" not "+r+")","format."+t,e[t]),e[t]);t=i("signed","boolean",t),r=i("width","number",r),n=i("decimals","number",n)}return r%8&&a.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&a.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new g(l,t,r,n)}}class y{constructor(e,t,r,n){e!==l&&a.throwError("cannot use FixedNumber constructor; use FixedNumber.from",i.Vy.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=t,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&a.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);let t=m(this._value,this.format.decimals),r=m(e._value,e.format.decimals);return y.fromValue(t.add(r),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);let t=m(this._value,this.format.decimals),r=m(e._value,e.format.decimals);return y.fromValue(t.sub(r),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);let t=m(this._value,this.format.decimals),r=m(e._value,e.format.decimals);return y.fromValue(t.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);let t=m(this._value,this.format.decimals),r=m(e._value,e.format.decimals);return y.fromValue(t.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){let e=this.toString().split(".");1===e.length&&e.push("0");let t=y.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(t=t.subUnsafe(v.toFormat(t.format))),t}ceiling(){let e=this.toString().split(".");1===e.length&&e.push("0");let t=y.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(t=t.addUnsafe(v.toFormat(t.format))),t}round(e){null==e&&(e=0);let t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&a.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;let r=y.from("1"+h.substring(0,e),this.format),n=b.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(n).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){if(null==e)return this._hex;e%8&&a.throwArgumentError("invalid byte width","width",e);let t=s.gH.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,n.bj)(t,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return y.fromString(this._value,e)}static fromValue(e,t,r){return null!=r||null==t||(0,s.YR)(t)||(r=t,t=null),null==t&&(t=0),null==r&&(r="fixed"),y.fromString(p(e,t),g.from(r))}static fromString(e,t){null==t&&(t="fixed");let r=g.from(t),i=m(e,r.decimals);!r.signed&&i.lt(u)&&f("unsigned value cannot be negative","overflow","value",e);let o=null;return r.signed?o=i.toTwos(r.width).toHexString():(o=i.toHexString(),o=(0,n.bj)(o,r.width/8)),new y(l,o,p(i,r.decimals),r)}static fromBytes(e,t){null==t&&(t="fixed");let r=g.from(t);if((0,n.k9)(e).length>r.width/8)throw Error("overflow");let i=s.gH.from(e);return r.signed&&(i=i.fromTwos(r.width)),new y(l,i.toTwos(+!r.signed+r.width).toHexString(),p(i,r.decimals),r)}static from(e,t){if("string"==typeof e)return y.fromString(e,t);if((0,n.aY)(e))return y.fromBytes(e,t);try{return y.fromValue(e,0,t)}catch(e){if(e.code!==i.Vy.errors.INVALID_ARGUMENT)throw e}return a.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}let v=y.from(1),b=y.from("0.5"),w=new i.Vy("units/5.7.0"),A=["wei","kwei","mwei","gwei","szabo","finney","ether"];function x(e,t){if("string"==typeof t){let e=A.indexOf(t);-1!==e&&(t=3*e)}return p(e,null!=t?t:18)}function E(e,t){if("string"!=typeof e&&w.throwArgumentError("value must be a string","value",e),"string"==typeof t){let e=A.indexOf(t);-1!==e&&(t=3*e)}return m(e,null!=t?t:18)}function _(e){return x(e,18)}function k(e){return E(e,18)}},84425:(e,t,r)=>{"use strict";var n=r(4101),i=r(64308);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},86993:(e,t,r)=>{"use strict";r.d(t,{Is:()=>a,XK:()=>o,eR:()=>i,pD:()=>s});var n=r(54914);let i=n.gH.from(-1),o=n.gH.from(0),s=n.gH.from(1),a=n.gH.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},89971:(e,t,r)=>{"use strict";r.d(t,{B:()=>l});var n,i=r(12115),o=r(66294),s=(n||(n=r.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),a=0;function l(e){let[t,r]=i.useState(s());return(0,o.N)(()=>{e||r(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},91879:(e,t,r)=>{var n,i=r(87358);!function(){"use strict";
6var o="input is invalid type",s="object"==typeof window,a=s?window:{};a.JS_SHA3_NO_WINDOW&&(s=!1);var l=!s&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?a=r.g:l&&(a=self);var u=!a.JS_SHA3_NO_COMMON_JS&&e.exports,c=r.amdO,f=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,h="0123456789abcdef".split(""),d=[4,1024,262144,0x4000000],p=[0,8,16,24],m=[1,0,32898,0,32906,0x80000000,0x80008000,0x80000000,32907,0,0x80000001,0,0x80008081,0x80000000,32777,0x80000000,138,0,136,0,0x80008009,0,0x8000000a,0,0x8000808b,0,139,0x80000000,32905,0x80000000,32771,0x80000000,32770,0x80000000,128,0x80000000,32778,0,0x8000000a,0x80000000,0x80008081,0x80000000,32896,0x80000000,0x80000001,0,0x80008008,0x80000000],g=[224,256,384,512],y=[128,256],v=["hex","buffer","arrayBuffer","array","digest"],b={128:168,256:136};(a.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),f&&(a.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var w=function(e,t,r){return function(n){return new L(e,t,e).update(n)[r]()}},A=function(e,t,r){return function(n,i){return new L(e,t,i).update(n)[r]()}},x=function(e,t,r){return function(t,n,i,o){return S["cshake"+e].update(t,n,i,o)[r]()}},E=function(e,t,r){return function(t,n,i,o){return S["kmac"+e].update(t,n,i,o)[r]()}},_=function(e,t,r,n){for(var i=0;i<v.length;++i){var o=v[i];e[o]=t(r,n,o)}return e},k=function(e,t){var r=w(e,t,"hex");return r.create=function(){return new L(e,t,e)},r.update=function(e){return r.create().update(e)},_(r,w,e,t)},N=[{name:"keccak",padding:[1,256,65536,0x1000000],bits:g,createMethod:k},{name:"sha3",padding:[6,1536,393216,0x6000000],bits:g,createMethod:k},{name:"shake",padding:[31,7936,2031616,0x1f000000],bits:y,createMethod:function(e,t){var r=A(e,t,"hex");return r.create=function(r){return new L(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},_(r,A,e,t)}},{name:"cshake",padding:d,bits:y,createMethod:function(e,t){var r=b[e],n=x(e,t,"hex");return n.create=function(n,i,o){return i||o?new L(e,t,n).bytepad([i,o],r):S["shake"+e].create(n)},n.update=function(e,t,r,i){return n.create(t,r,i).update(e)},_(n,x,e,t)}},{name:"kmac",padding:d,bits:y,createMethod:function(e,t){var r=b[e],n=E(e,t,"hex");return n.create=function(n,i,o){return new F(e,t,i).bytepad(["KMAC",o],r).bytepad([n],r)},n.update=function(e,t,r,i){return n.create(e,r,i).update(t)},_(n,E,e,t)}}],S={},M=[],R=0;R<N.length;++R)for(var P=N[R],I=P.bits,C=0;C<I.length;++C){var T=P.name+"_"+I[C];if(M.push(T),S[T]=P.createMethod(I[C],P.padding),"sha3"!==P.name){var O=P.name+I[C];M.push(O),S[O]=S[T]}}function L(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function F(e,t,r){L.call(this,e,t,r)}L.prototype.update=function(e){if(this.finalized)throw Error("finalize already called");var t,r=typeof e;if("string"!==r){if("object"===r){if(null===e)throw Error(o);else if(f&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!f||!ArrayBuffer.isView(e)))throw Error(o)}else throw Error(o);t=!0}for(var n,i,s=this.blocks,a=this.byteCount,l=e.length,u=this.blockCount,c=0,h=this.s;c<l;){if(this.reset)for(n=1,this.reset=!1,s[0]=this.block;n<u+1;++n)s[n]=0;if(t)for(n=this.start;c<l&&n<a;++c)s[n>>2]|=e[c]<<p[3&n++];else for(n=this.start;c<l&&n<a;++c)(i=e.charCodeAt(c))<128?s[n>>2]|=i<<p[3&n++]:(i<2048?s[n>>2]|=(192|i>>6)<<p[3&n++]:(i<55296||i>=57344?s[n>>2]|=(224|i>>12)<<p[3&n++]:(i=65536+((1023&i)<<10|1023&e.charCodeAt(++c)),s[n>>2]|=(240|i>>18)<<p[3&n++],s[n>>2]|=(128|i>>12&63)<<p[3&n++]),s[n>>2]|=(128|i>>6&63)<<p[3&n++]),s[n>>2]|=(128|63&i)<<p[3&n++]);if(this.lastByteIndex=n,n>=a){for(this.start=n-a,this.block=s[u],n=0;n<u;++n)h[n]^=s[n];B(h),this.reset=!0}else this.start=n}return this},L.prototype.encode=function(e,t){var r=255&e,n=1,i=[r];for(e>>=8,r=255&e;r>0;)i.unshift(r),e>>=8,r=255&e,++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},L.prototype.encodeString=function(e){var t,r=typeof e;if("string"!==r){if("object"===r){if(null===e)throw Error(o);
6else if(f&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!f||!ArrayBuffer.isView(e)))throw Error(o)}else throw Error(o);t=!0}var n=0,i=e.length;if(t)n=i;else for(var s=0;s<e.length;++s){var a=e.charCodeAt(s);a<128?n+=1:a<2048?n+=2:a<55296||a>=57344?n+=3:(a=65536+((1023&a)<<10|1023&e.charCodeAt(++s)),n+=4)}return n+=this.encode(8*n),this.update(e),n},L.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var i=[];return i.length=t-r%t,this.update(i),this},L.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(t=1,e[0]=e[r];t<r+1;++t)e[t]=0;for(e[r-1]|=0x80000000,t=0;t<r;++t)n[t]^=e[t];B(n)}},L.prototype.toString=L.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,a="";s<n;){for(o=0;o<t&&s<n;++o,++s)a+=h[(e=r[o])>>4&15]+h[15&e]+h[e>>12&15]+h[e>>8&15]+h[e>>20&15]+h[e>>16&15]+h[e>>28&15]+h[e>>24&15];s%t==0&&(B(r),o=0)}return i&&(a+=h[(e=r[o])>>4&15]+h[15&e],i>1&&(a+=h[e>>12&15]+h[e>>8&15]),i>2&&(a+=h[e>>20&15]+h[e>>16&15])),a},L.prototype.arrayBuffer=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,a=this.outputBits>>3,l=new Uint32Array(e=new ArrayBuffer(i?n+1<<2:a));s<n;){for(o=0;o<t&&s<n;++o,++s)l[s]=r[o];s%t==0&&B(r)}return i&&(l[o]=r[o],e=e.slice(0,a)),e},L.prototype.buffer=L.prototype.arrayBuffer,L.prototype.digest=L.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,s=0,a=0,l=[];a<i;){for(s=0;s<r&&a<i;++s,++a)e=a<<2,t=n[s],l[e]=255&t,l[e+1]=t>>8&255,l[e+2]=t>>16&255,l[e+3]=t>>24&255;a%r==0&&B(n)}return o&&(e=a<<2,t=n[s],l[e]=255&t,o>1&&(l[e+1]=t>>8&255),o>2&&(l[e+2]=t>>16&255)),l},F.prototype=new L,F.prototype.finalize=function(){return this.encode(this.outputBits,!0),L.prototype.finalize.call(this)};var B=function(e){var t,r,n,i,o,s,a,l,u,c,f,h,d,p,g,y,v,b,w,A,x,E,_,k,N,S,M,R,P,I,C,T,O,L,F,B,D,j,U,z,V,H,G,q,Y,K,W,J,Q,X,$,Z,ee,et,er,en,ei,eo,es,ea,el,eu,ec;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],h=e[8]^e[18]^e[28]^e[38]^e[48],d=e[9]^e[19]^e[29]^e[39]^e[49],t=h^(s<<1|a>>>31),r=d^(a<<1|s>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(l<<1|u>>>31),r=o^(u<<1|l>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=s^(c<<1|f>>>31),r=a^(f<<1|c>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=l^(h<<1|d>>>31),r=u^(d<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=c^(i<<1|o>>>31),r=f^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],g=e[1],K=e[11]<<4|e[10]>>>28,W=e[10]<<4|e[11]>>>28,R=e[20]<<3|e[21]>>>29,P=e[21]<<3|e[20]>>>29,ea=e[31]<<9|e[30]>>>23,el=e[30]<<9|e[31]>>>23,H=e[40]<<18|e[41]>>>14,G=e[41]<<18|e[40]>>>14,L=e[2]<<1|e[3]>>>31,F=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,J=e[22]<<10|e[23]>>>22,Q=e[23]<<10|e[22]>>>22,I=e[33]<<13|e[32]>>>19,C=e[32]<<13|e[33]>>>19,eu=e[42]<<2|e[43]>>>30,ec=e[43]<<2|e[42]>>>30,et=e[5]<<30|e[4]>>>2,er=e[4]<<30|e[5]>>>2,B=e[14]<<6|e[15]>>>26,D=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,X=e[34]<<15|e[35]>>>17,$=e[35]<<15|e[34]>>>17,T=e[45]<<29|e[44]>>>3,O=e[44]<<29|e[45]>>>3,k=e[6]<<28|e[7]>>>4,N=e[7]<<28|e[6]>>>4,en=e[17]<<23|e[16]>>>9,ei=e[16]<<23|e[17]>>>9,j=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,A=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,Z=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,q=e[8]<<27|e[9]>>>5,Y=e[9]<<27|e[8]>>>5,S=e[18]<<20|e[19]>>>12,M=e[19]<<20|e[18]>>>12,eo=e[29]<<7|e[28]>>>25,es=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,V=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,_=e[49]<<14|e[48]>>>18,e[0]=p^~y&b,e[1]=g^~v&w,e[10]=k^~S&R,e[11]=N^~M&P,e[20]=L^~B&j,e[21]=F^~D&U,e[30]=q^~K&J,e[31]=Y^~W&Q,e[40]=et^~en&eo,e[41]=er^~ei&es,e[2]=y^~b&A,e[3]=v^~w&x,e[12]=S^~R&I,e[13]=M^~P&C,e[22]=B^~j&z,e[23]=D^~U&V,e[32]=K^~J&X,e[33]=W^~Q&$,e[42]=en^~eo&ea,e[43]=ei^~es&el,e[4]=b^~A&E,e[5]=w^~x&_,e[14]=R^~I&T,e[15]=P^~C&O,e[24]=j^~z&H,e[25]=U^~V&G,e[34]=J^~X&Z,e[35]=Q^~$&ee,e[44]=eo^~ea&eu,e[45]=es^~el&ec,e[6]=A^~E&p,e[7]=x^~_&g,e[16]=I^~T&k,e[17]=C^~O&N,e[26]=z^~H&L,e[27]=V^~G&F,e[36]=X^~Z&q,e[37]=$^~ee&Y,e[46]=ea^~eu&et,e[47]=el^~ec&er,e[8]=E^~p&y,e[9]=_^~g&v,e[18]=T^~k&S,e[19]=O^~N&M,e[28]=H^~L&B,e[29]=G^~F&D,e[38]=Z^~q&K,e[39]=ee^~Y&W,e[48]=eu^~et&en,e[49]=ec^~er&ei,e[0]^=m[n],e[1]^=m[n+1]};if(u)e.exports=S;else{for(R=0;R<M.length;++R)a[M[R]]=S[M[R]];c&&(void 0===(n=(function(){return S}).call(t,r,t,e))||(e.exports=n))}}()},94514:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(78340).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},94927:(e,t,r)=>{"use strict";r.d(t,{r:()=>n});let n="providers/5.7.2"},95413:(e,t,r)=>{"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return l}}),r(47284);let n=r(12590),i=r(55762),o=["-moz-initial","fill","none","scale-down",void 0];function s(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function l({src:e,sizes:t,unoptimized:r=!1,priority:l=!1,preload:u=!1,loading:c,className:f,quality:h,width:d,height:p,fill:m=!1,style:g,overrideSrc:y,onLoad:v,onLoadingComplete:b,placeholder:w="empty",blurDataURL:A,fetchPriority:x,decoding:E="async",layout:_,objectFit:k,objectPosition:N,lazyBoundary:S,lazyRoot:M,...R},P){var I;let C,T,O,{imgConf:L,showAltText:F,blurComplete:B,defaultLoader:D}=P,j=L||i.imageConfigDefault;if("allSizes"in j)C=j;else{let e=[...j.deviceSizes,...j.imageSizes].sort((e,t)=>e-t),t=j.deviceSizes.sort((e,t)=>e-t),r=j.qualities?.sort((e,t)=>e-t);C={...j,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===D)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let U=R.loader||D;delete R.loader,delete R.srcSet;let z="__next_img_default"in U;if(z){if("custom"===C.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop. 7Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=U;U=t=>{let{config:r,...n}=t;return e(n)}}if(_){"fill"===_&&(m=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[_];e&&(g={...g,...e});let r={responsive:"100vw",fill:"100vw"}[_];r&&!t&&(t=r)}let V="",H=a(d),G=a(p);if((I=e)&&"object"==typeof I&&(s(I)||void 0!==I.src)){let t=s(e)?e.default:e;if(!t.src)throw Object.defineProperty(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)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(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)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(T=t.blurWidth,O=t.blurHeight,A=A||t.blurDataURL,V=t.src,!m)if(H||G){if(H&&!G){let e=H/t.width;G=Math.round(t.height*e)}else if(!H&&G){let e=G/t.height;H=Math.round(t.width*e)}}else H=t.width,G=t.height}let q=!l&&!u&&("lazy"===c||void 0===c);(!(e="string"==typeof e?e:V)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,q=!1),C.unoptimized&&(r=!0),z&&!C.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let Y=a(h),K=Object.assign(m?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:k,objectPosition:N}:{},F?{}:{color:"transparent"},g),W=B||"empty"===w?null:"blur"===w?`url("data:image/svg+xml;charset=utf-8,${(0,n.getImageBlurSvg)({widthInt:H,heightInt:G,blurWidth:T,blurHeight:O,blurDataURL:A||"",objectFit:K.objectFit})}")`:`url("${w}")`,J=o.includes(K.objectFit)?"fill"===K.objectFit?"100% 100%":"cover":K.objectFit,Q=W?{backgroundSize:J,backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:W}:{},X=function({config:e,src:t,unoptimized:r,width:n,quality:i,sizes:o,loader:s}){if(r)return{src:t,srcSet:void 0,sizes:void 0};let{widths:a,kind:l}=function({deviceSizes:e,allSizes:t},r,n){if(n){let r=/(^|\s)(1?\d?\d)vw/g,i=[];for(let e;e=r.exec(n);)i.push(parseInt(e[2]));if(i.length){let r=.01*Math.min(...i);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,n,o),u=a.length-1;return{sizes:o||"w"!==l?o:"100vw",srcSet:a.map((r,n)=>`${s({config:e,src:t,quality:i,width:r})} ${"w"===l?r:n+1}${l}`).join(", "),src:s({config:e,src:t,quality:i,width:a[u]})}}({config:C,src:e,unoptimized:r,width:H,quality:Y,sizes:t,loader:U}),$=q?"lazy":c;return{props:{...R,loading:$,fetchPriority:x,width:H,height:G,decoding:E,className:f,style:{...K,...Q},sizes:X.sizes,srcSet:X.srcSet,src:y||X.src},meta:{unoptimized:r,preload:u||l,placeholder:w,fill:m}}}},95439:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}
vendor: 43,949 bytes, line 7
7"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{f="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(47790).Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function a(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function l(e,t,r,i){for(var o=0,s=0,a=Math.min(e.length,r),l=t;l<a;l++){var u=e.charCodeAt(l)-48;o*=i,s=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&s<i,"Invalid character"),o+=s}return o}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<0x4000000?(this.words=[0x3ffffff&e],this.length=1):e<0x10000000000000?(this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff],this.length=2):(n(e<0x20000000000000),this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,o,s=0;s<this.length;s++)this.words[s]=0;var a=0;if("be"===r)for(s=e.length-1,i=0;s>=0;s-=3)o=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[i]|=o<<a&0x3ffffff,this.words[i+1]=o>>>26-a&0x3ffffff,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(s=0,i=0;s<e.length;s+=3)o=e[s]|e[s+1]<<8|e[s+2]<<16,this.words[i]|=o<<a&0x3ffffff,this.words[i+1]=o>>>26-a&0x3ffffff,(a+=24)>=26&&(a-=26,i++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var o=0,s=0;if("be"===r)for(i=e.length-1;i>=t;i-=2)n=a(e,t,i)<<o,this.words[s]|=0x3ffffff&n,o>=18?(o-=18,s+=1,this.words[s]|=n>>>26):o+=8;else for(i=(e.length-t)%2==0?t+1:t;i<e.length;i+=2)n=a(e,t,i)<<o,this.words[s]|=0x3ffffff&n,o>=18?(o-=18,s+=1,this.words[s]|=n>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=0x3ffffff;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,c=r;c<a;c+=n)u=l(e,c,c+n,t),this.imuln(i),this.words[0]+u<0x4000000?this.words[0]+=u:this._iaddn(u);if(0!==s){var f=1;for(u=l(e,c,e.length,t),c=0;c<s;c++)f*=t;this.imuln(f),this.words[0]+u<0x4000000?this.words[0]+=u:this._iaddn(u)}this._strip()},o.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){u(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=c}catch(e){o.prototype.inspect=c}else o.prototype.inspect=c;function c(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f,h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=0x3ffffff&s,l=s/0x4000000|0;r.words[0]=a;for(var u=1;u<n;u++){for(var c=l>>>26,f=0x3ffffff&l,h=Math.min(u,t.length-1),d=Math.max(0,u-e.length+1);d<=h;d++){var p=u-d|0;c+=(s=(i=0|e.words[p])*(o=0|t.words[d])+f)/0x4000000|0,f=0x3ffffff&s}r.words[u]=0|f,l=0|c}return 0!==l?r.words[u]=0|l:r.length--,r._strip()}o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){for(var r="",i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],l=((a<<i|o)&0xffffff).toString(16);o=a>>>24-i&0xffffff,(i+=2)>=26&&(i-=26,s--),r=0!==o||s!==this.length-1?h[6-l.length]+l+r:l+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],c=p[e];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modrn(c).toString(e);r=(f=f.idivn(c)).isZero()?m+r:h[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},f&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(f,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var s=e.allocUnsafe?e.allocUnsafe(o):new e(o);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,i),s},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;e[r++]=255&s,r<e.length&&(e[r++]=s>>8&255),r<e.length&&(e[r++]=s>>16&255),6===o?(r<e.length&&(e[r++]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;e[r--]=255&s,r>=0&&(e[r--]=s>>8&255),r>=0&&(e[r--]=s>>16&255),6===o?(r>=0&&(e[r--]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return n((this.negative|e.negative)==0),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return n((this.negative|e.negative)==0),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return n((this.negative|e.negative)==0),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=0x3ffffff&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&0x3ffffff>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=0x3ffffff&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=0x3ffffff&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,s=0;s<r.length;s++)o=(n=(0|t.words[s])-(0|r.words[s])+o)>>26,this.words[s]=0x3ffffff&n;for(;0!==o&&s<t.length;s++)o=(n=(0|t.words[s])+o)>>26,this.words[s]=0x3ffffff&n;if(0===o&&s<t.length&&t!==this)for(;s<t.length;s++)this.words[s]=t.words[s];return this.length=Math.max(this.length,s),t!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,r){var n,i,o,s=e.words,a=t.words,l=r.words,u=0,c=0|s[0],f=8191&c,h=c>>>13,d=0|s[1],p=8191&d,m=d>>>13,g=0|s[2],y=8191&g,v=g>>>13,b=0|s[3],w=8191&b,A=b>>>13,x=0|s[4],E=8191&x,_=x>>>13,k=0|s[5],N=8191&k,S=k>>>13,M=0|s[6],R=8191&M,P=M>>>13,I=0|s[7],C=8191&I,T=I>>>13,O=0|s[8],L=8191&O,F=O>>>13,B=0|s[9],D=8191&B,j=B>>>13,U=0|a[0],z=8191&U,V=U>>>13,H=0|a[1],G=8191&H,q=H>>>13,Y=0|a[2],K=8191&Y,W=Y>>>13,J=0|a[3],Q=8191&J,X=J>>>13,$=0|a[4],Z=8191&$,ee=$>>>13,et=0|a[5],er=8191&et,en=et>>>13,ei=0|a[6],eo=8191&ei,es=ei>>>13,ea=0|a[7],el=8191&ea,eu=ea>>>13,ec=0|a[8],ef=8191&ec,eh=ec>>>13,ed=0|a[9],ep=8191&ed,em=ed>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(f,z);var eg=(u+n|0)+((8191&(i=(i=Math.imul(f,V))+Math.imul(h,z)|0))<<13)|0;u=((o=Math.imul(h,V))+(i>>>13)|0)+(eg>>>26)|0,eg&=0x3ffffff,n=Math.imul(p,z),i=(i=Math.imul(p,V))+Math.imul(m,z)|0,o=Math.imul(m,V),n=n+Math.imul(f,G)|0;var ey=(u+n|0)+((8191&(i=(i=i+Math.imul(f,q)|0)+Math.imul(h,G)|0))<<13)|0;u=((o=o+Math.imul(h,q)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,n=Math.imul(y,z),i=(i=Math.imul(y,V))+Math.imul(v,z)|0,o=Math.imul(v,V),n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,q)|0,n=n+Math.imul(f,K)|0;var ev=(u+n|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(h,K)|0))<<13)|0;u=((o=o+Math.imul(h,W)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,n=Math.imul(w,z),i=(i=Math.imul(w,V))+Math.imul(A,z)|0,o=Math.imul(A,V),n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,W)|0,n=n+Math.imul(f,Q)|0;var eb=(u+n|0)+((8191&(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,Q)|0))<<13)|0;u=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=0x3ffffff,n=Math.imul(E,z),i=(i=Math.imul(E,V))+Math.imul(_,z)|0,o=Math.imul(_,V),n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,q)|0,n=n+Math.imul(y,K)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,W)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(f,Z)|0;var ew=(u+n|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,Z)|0))<<13)|0;u=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,n=Math.imul(N,z),i=(i=Math.imul(N,V))+Math.imul(S,z)|0,o=Math.imul(S,V),n=n+Math.imul(E,G)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,X)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,X)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,ee)|0,n=n+Math.imul(f,er)|0;var eA=(u+n|0)+((8191&(i=(i=i+Math.imul(f,en)|0)+Math.imul(h,er)|0))<<13)|0;u=((o=o+Math.imul(h,en)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,n=Math.imul(R,z),i=(i=Math.imul(R,V))+Math.imul(P,z)|0,o=Math.imul(P,V),n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,n=n+Math.imul(E,K)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,W)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,o=o+Math.imul(m,en)|0,n=n+Math.imul(f,eo)|0;var ex=(u+n|0)+((8191&(i=(i=i+Math.imul(f,es)|0)+Math.imul(h,eo)|0))<<13)|0;u=((o=o+Math.imul(h,es)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,n=Math.imul(C,z),i=(i=Math.imul(C,V))+Math.imul(T,z)|0,o=Math.imul(T,V),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,q)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,q)|0,n=n+Math.imul(N,K)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,W)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(y,er)|0,i=(i=i+Math.imul(y,en)|0)+Math.imul(v,er)|0,o=o+Math.imul(v,en)|0,n=n+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,es)|0)+Math.imul(m,eo)|0,o=o+Math.imul(m,es)|0,n=n+Math.imul(f,el)|0;var eE=(u+n|0)+((8191&(i=(i=i+Math.imul(f,eu)|0)+Math.imul(h,el)|0))<<13)|0;u=((o=o+Math.imul(h,eu)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,n=Math.imul(L,z),i=(i=Math.imul(L,V))+Math.imul(F,z)|0,o=Math.imul(F,V),n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(T,G)|0,o=o+Math.imul(T,q)|0,n=n+Math.imul(R,K)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(P,K)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,X)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(A,er)|0,o=o+Math.imul(A,en)|0,n=n+Math.imul(y,eo)|0,i=(i=i+Math.imul(y,es)|0)+Math.imul(v,eo)|0,o=o+Math.imul(v,es)|0,n=n+Math.imul(p,el)|0,i=(i=i+Math.imul(p,eu)|0)+Math.imul(m,el)|0,o=o+Math.imul(m,eu)|0,n=n+Math.imul(f,ef)|0;var e_=(u+n|0)+((8191&(i=(i=i+Math.imul(f,eh)|0)+Math.imul(h,ef)|0))<<13)|0;u=((o=o+Math.imul(h,eh)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,n=Math.imul(D,z),i=(i=Math.imul(D,V))+Math.imul(j,z)|0,o=Math.imul(j,V),n=n+Math.imul(L,G)|0,i=(i=i+Math.imul(L,q)|0)+Math.imul(F,G)|0,o=o+Math.imul(F,q)|0,n=n+Math.imul(C,K)|0,i=(i=i+Math.imul(C,W)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,W)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,X)|0,n=n+Math.imul(N,Z)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(S,Z)|0,o=o+Math.imul(S,ee)|0,n=n+Math.imul(E,er)|0,i=(i=i+Math.imul(E,en)|0)+Math.imul(_,er)|0,o=o+Math.imul(_,en)|0,n=n+Math.imul(w,eo)|0,i=(i=i+Math.imul(w,es)|0)+Math.imul(A,eo)|0,o=o+Math.imul(A,es)|0,n=n+Math.imul(y,el)|0,i=(i=i+Math.imul(y,eu)|0)+Math.imul(v,el)|0,o=o+Math.imul(v,eu)|0,n=n+Math.imul(p,ef)|0,i=(i=i+Math.imul(p,eh)|0)+Math.imul(m,ef)|0,o=o+Math.imul(m,eh)|0,n=n+Math.imul(f,ep)|0;var ek=(u+n|0)+((8191&(i=(i=i+Math.imul(f,em)|0)+Math.imul(h,ep)|0))<<13)|0;u=((o=o+Math.imul(h,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,n=Math.imul(D,G),i=(i=Math.imul(D,q))+Math.imul(j,G)|0,o=Math.imul(j,q),n=n+Math.imul(L,K)|0,i=(i=i+Math.imul(L,W)|0)+Math.imul(F,K)|0,o=o+Math.imul(F,W)|0,n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,X)|0,n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(P,Z)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(N,er)|0,i=(i=i+Math.imul(N,en)|0)+Math.imul(S,er)|0,o=o+Math.imul(S,en)|0,n=n+Math.imul(E,eo)|0,i=(i=i+Math.imul(E,es)|0)+Math.imul(_,eo)|0,o=o+Math.imul(_,es)|0,n=n+Math.imul(w,el)|0,i=(i=i+Math.imul(w,eu)|0)+Math.imul(A,el)|0,o=o+Math.imul(A,eu)|0,n=n+Math.imul(y,ef)|0,i=(i=i+Math.imul(y,eh)|0)+Math.imul(v,ef)|0,o=o+Math.imul(v,eh)|0,n=n+Math.imul(p,ep)|0;var eN=(u+n|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;u=((o=o+Math.imul(m,em)|0)+(i>>>13)|0)+(eN>>>26)|0,eN&=0x3ffffff,n=Math.imul(D,K),i=(i=Math.imul(D,W))+Math.imul(j,K)|0,o=Math.imul(j,W),n=n+Math.imul(L,Q)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(F,Q)|0,o=o+Math.imul(F,X)|0,n=n+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(P,er)|0,o=o+Math.imul(P,en)|0,n=n+Math.imul(N,eo)|0,i=(i=i+Math.imul(N,es)|0)+Math.imul(S,eo)|0,o=o+Math.imul(S,es)|0,n=n+Math.imul(E,el)|0,i=(i=i+Math.imul(E,eu)|0)+Math.imul(_,el)|0,o=o+Math.imul(_,eu)|0,n=n+Math.imul(w,ef)|0,i=(i=i+Math.imul(w,eh)|0)+Math.imul(A,ef)|0,o=o+Math.imul(A,eh)|0,n=n+Math.imul(y,ep)|0;var eS=(u+n|0)+((8191&(i=(i=i+Math.imul(y,em)|0)+Math.imul(v,ep)|0))<<13)|0;u=((o=o+Math.imul(v,em)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,n=Math.imul(D,Q),i=(i=Math.imul(D,X))+Math.imul(j,Q)|0,o=Math.imul(j,X),n=n+Math.imul(L,Z)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(F,Z)|0,o=o+Math.imul(F,ee)|0,n=n+Math.imul(C,er)|0,i=(i=i+Math.imul(C,en)|0)+Math.imul(T,er)|0,o=o+Math.imul(T,en)|0,n=n+Math.imul(R,eo)|0,i=(i=i+Math.imul(R,es)|0)+Math.imul(P,eo)|0,o=o+Math.imul(P,es)|0,n=n+Math.imul(N,el)|0,i=(i=i+Math.imul(N,eu)|0)+Math.imul(S,el)|0,o=o+Math.imul(S,eu)|0,n=n+Math.imul(E,ef)|0,i=(i=i+Math.imul(E,eh)|0)+Math.imul(_,ef)|0,o=o+Math.imul(_,eh)|0,n=n+Math.imul(w,ep)|0;var eM=(u+n|0)+((8191&(i=(i=i+Math.imul(w,em)|0)+Math.imul(A,ep)|0))<<13)|0;u=((o=o+Math.imul(A,em)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,n=Math.imul(D,Z),i=(i=Math.imul(D,ee))+Math.imul(j,Z)|0,o=Math.imul(j,ee),n=n+Math.imul(L,er)|0,i=(i=i+Math.imul(L,en)|0)+Math.imul(F,er)|0,o=o+Math.imul(F,en)|0,n=n+Math.imul(C,eo)|0,i=(i=i+Math.imul(C,es)|0)+Math.imul(T,eo)|0,o=o+Math.imul(T,es)|0,n=n+Math.imul(R,el)|0,i=(i=i+Math.imul(R,eu)|0)+Math.imul(P,el)|0,o=o+Math.imul(P,eu)|0,n=n+Math.imul(N,ef)|0,i=(i=i+Math.imul(N,eh)|0)+Math.imul(S,ef)|0,o=o+Math.imul(S,eh)|0,n=n+Math.imul(E,ep)|0;var eR=(u+n|0)+((8191&(i=(i=i+Math.imul(E,em)|0)+Math.imul(_,ep)|0))<<13)|0;u=((o=o+Math.imul(_,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,n=Math.imul(D,er),i=(i=Math.imul(D,en))+Math.imul(j,er)|0,o=Math.imul(j,en),n=n+Math.imul(L,eo)|0,i=(i=i+Math.imul(L,es)|0)+Math.imul(F,eo)|0,o=o+Math.imul(F,es)|0,n=n+Math.imul(C,el)|0,i=(i=i+Math.imul(C,eu)|0)+Math.imul(T,el)|0,o=o+Math.imul(T,eu)|0,n=n+Math.imul(R,ef)|0,i=(i=i+Math.imul(R,eh)|0)+Math.imul(P,ef)|0,o=o+Math.imul(P,eh)|0,n=n+Math.imul(N,ep)|0;var eP=(u+n|0)+((8191&(i=(i=i+Math.imul(N,em)|0)+Math.imul(S,ep)|0))<<13)|0;u=((o=o+Math.imul(S,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=0x3ffffff,n=Math.imul(D,eo),i=(i=Math.imul(D,es))+Math.imul(j,eo)|0,o=Math.imul(j,es),n=n+Math.imul(L,el)|0,i=(i=i+Math.imul(L,eu)|0)+Math.imul(F,el)|0,o=o+Math.imul(F,eu)|0,n=n+Math.imul(C,ef)|0,i=(i=i+Math.imul(C,eh)|0)+Math.imul(T,ef)|0,o=o+Math.imul(T,eh)|0,n=n+Math.imul(R,ep)|0;var eI=(u+n|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(P,ep)|0))<<13)|0;u=((o=o+Math.imul(P,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,n=Math.imul(D,el),i=(i=Math.imul(D,eu))+Math.imul(j,el)|0,o=Math.imul(j,eu),n=n+Math.imul(L,ef)|0,i=(i=i+Math.imul(L,eh)|0)+Math.imul(F,ef)|0,o=o+Math.imul(F,eh)|0,n=n+Math.imul(C,ep)|0;var eC=(u+n|0)+((8191&(i=(i=i+Math.imul(C,em)|0)+Math.imul(T,ep)|0))<<13)|0;u=((o=o+Math.imul(T,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=0x3ffffff,n=Math.imul(D,ef),i=(i=Math.imul(D,eh))+Math.imul(j,ef)|0,o=Math.imul(j,eh),n=n+Math.imul(L,ep)|0;var eT=(u+n|0)+((8191&(i=(i=i+Math.imul(L,em)|0)+Math.imul(F,ep)|0))<<13)|0;u=((o=o+Math.imul(F,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=0x3ffffff,n=Math.imul(D,ep);var eO=(u+n|0)+((8191&(i=(i=Math.imul(D,em))+Math.imul(j,ep)|0))<<13)|0;return u=((o=Math.imul(j,em))+(i>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,l[0]=eg,l[1]=ey,l[2]=ev,l[3]=eb,l[4]=ew,l[5]=eA,l[6]=ex,l[7]=eE,l[8]=e_,l[9]=ek,l[10]=eN,l[11]=eS,l[12]=eM,l[13]=eR,l[14]=eP,l[15]=eI,l[16]=eC,l[17]=eT,l[18]=eO,0!==u&&(l[19]=u,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=0x3ffffff&n,l=Math.min(o,t.length-1),u=Math.max(0,o-e.length+1);u<=l;u++){var c=o-u,f=(0|e.words[c])*(0|t.words[u]),h=0x3ffffff&f;s=s+(f/0x4000000|0)|0,a=0x3ffffff&(h=h+a|0),i+=(s=s+(h>>>26)|0)>>>26,s&=0x3ffffff}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function v(e,t){this.x=e,this.y=t}Math.imul||(g=m),o.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return 10===this.length&&10===e.length?r=g(this,e,t):n<63?r=m(this,e,t):r=y(this,e,t),r},v.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},v.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},v.prototype.permute=function(e,t,r,n,i,o){for(var s=0;s<o;s++)n[s]=t[e[s]],i[s]=r[e[s]]},v.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,l=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),c=0;c<i;c+=a)for(var f=l,h=u,d=0;d<s;d++){var p=r[c+d],m=n[c+d],g=r[c+d+s],y=n[c+d+s],v=f*g-h*y;y=f*y+h*g,g=v,r[c+d]=p+g,n[c+d]=m+y,r[c+d+s]=p-g,n[c+d+s]=m-y,d!==a&&(v=l*f-u*h,h=l*h+u*f,f=v)}},v.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},v.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},v.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=0x3ffffff&i,r=i<0x4000000?0:i/0x4000000|0}return e},v.prototype.convert13b=function(e,t,r,i){for(var o=0,s=0;s<t;s++)o+=0|e[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*t;s<i;++s)r[s]=0;n(0===o),n((-8192&o)==0)},v.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},v.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),s=Array(n),a=Array(n),l=Array(n),u=Array(n),c=Array(n),f=Array(n),h=r.words;h.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(t.words,t.length,u,n),this.transform(s,o,a,l,n,i),this.transform(u,o,c,f,n,i);for(var d=0;d<n;d++){var p=a[d]*c[d]-l[d]*f[d];l[d]=a[d]*f[d]+l[d]*c[d],a[d]=p}return this.conjugate(a,l,n),this.transform(a,l,h,o,n,i),this.conjugate(h,o,n),this.normalize13b(h,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=Array(this.length+e.length),y(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<0x4000000);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,s=(0x3ffffff&o)+(0x3ffffff&r);r>>=26,r+=(o/0x4000000|0)+(s>>>26),this.words[i]=0x3ffffff&s}return 0!==r&&(this.words[i]=r,this.length++),this.length=0===e?1:this.length,t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=0x3ffffff>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&o,l=(0|this.words[t])-a<<r;this.words[t]=l|s,s=a>>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0);var i=t?(t-t%26)/26:0,o=e%26,s=Math.min((e-o)/26,this.length),a=0x3ffffff^0x3ffffff>>>o<<o;if(i-=s,i=Math.max(0,i),r){for(var l=0;l<s;l++)r.words[l]=this.words[l];r.length=s}if(0===s);else if(this.length>s)for(this.length-=s,l=0;l<this.length;l++)this.words[l]=this.words[l+s];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var c=0|this.words[l];this.words[l]=u<<26-o|c>>>o,u=c&a}return r&&0!==u&&(r.words[r.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<<t)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=0x3ffffff^0x3ffffff>>>t<<t),this._strip())},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return(n("number"==typeof e),n(e<0x4000000),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<0x4000000),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=0x4000000,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,s=e.length+r;this._expand(s);var a=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+a;var l=(0|e.words[i])*t;o-=0x3ffffff&l,a=(o>>26)-(l/0x4000000|0),this.words[i+r]=0x3ffffff&o}for(;i<this.length-r;i++)a=(o=(0|this.words[i+r])+a)>>26,this.words[i+r]=0x3ffffff&o;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=0x3ffffff&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),s=e,a=0|s.words[s.length-1];0!=(n=26-this._countBits(a))&&(s=s.ushln(n),i.iushln(n),a=0|s.words[s.length-1]);var l=i.length-s.length;if("mod"!==t){(r=new o(null)).length=l+1,r.words=Array(r.length);for(var u=0;u<r.length;u++)r.words[u]=0}var c=i.clone()._ishlnsubmul(s,1,l);0===c.negative&&(i=c,r&&(r.words[l]=1));for(var f=l-1;f>=0;f--){var h=(0|i.words[s.length+f])*0x4000000+(0|i.words[s.length+f-1]);for(h=Math.min(h/a|0,0x3ffffff),i._ishlnsubmul(s,h,f);0!==i.negative;)h--,i.negative=0,i._ishlnsubmul(s,1,f),i.isZero()||(i.negative^=1);r&&(r.words[f]=h)}return r&&r._strip(),i._strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,r){var i,s,a;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&e.negative)!=0?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=0x3ffffff);for(var r=0x4000000%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=0x3ffffff);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+0x4000000*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),s=new o(0),a=new o(0),l=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),f=t.clone();!t.isZero();){for(var h=0,d=1;(t.words[0]&d)==0&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(c),s.isub(f)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(c),l.isub(f)),a.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(a),s.isub(l)):(r.isub(t),a.isub(i),l.isub(s))}return{a:a,b:l,gcd:r.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new o(1),a=new o(0),l=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,c=1;(r.words[0]&c)==0&&u<26;++u,c<<=1);if(u>0)for(r.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);for(var f=0,h=1;(i.words[0]&h)==0&&f<26;++f,h<<=1);if(f>0)for(i.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(a)):(i.isub(r),a.isub(s))}return 0>(t=0===r.cmpn(1)?s:a).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=0x3ffffff,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=0x3ffffff,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new k(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function A(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function N(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},i(A,w),A.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9){e.words[0]=0,e.length=1;return}var i=e.words[9];for(n=10,t.words[t.length++]=4194303&i;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},A.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=0x3ffffff&t,t=64*n+(t/0x4000000|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(x,w),i(E,w),i(_,w),_.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=(0|e.words[r])*19+t,i=0x3ffffff&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(b[e])return b[e];if("k256"===e)t=new A;else if("p224"===e)t=new x;else if("p192"===e)t=new E;else if("p25519"===e)t=new _;else throw Error("Unknown prime "+e);return b[e]=t,t},k.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),l=a.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var f=this.pow(c,i),h=this.pow(e,i.addn(1).iushrn(1)),d=this.pow(e,i),p=s;0!==d.cmp(a);){for(var m=d,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var y=this.pow(f,new o(1).iushln(p-g-1));h=h.redMul(y),f=y.redSqr(),d=d.redMul(f),p=g}return h},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],s=0,a=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var u=t.words[n],c=l-1;c>=0;c--){var f=u>>c&1;if(i!==r[0]&&(i=this.sqr(i)),0===f&&0===s){a=0;continue}s<<=1,s|=f,(4==++a||0===n&&0===c)&&(i=this.mul(i,r[s]),a=0,s=0)}l=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new N(e)},i(N,k),N.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},N.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},N.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},N.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},N.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},97651:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return c},getImageProps:function(){return u}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});
7let o=r(73623),s=r(95413),a=r(38437),l=o._(r(36095));function u(e){let{props:t}=(0,s.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let c=a.Image},98454:(e,t,r)=>{"use strict";r.d(t,{qW:()=>h});var n,i=r(12115),o=r(70379),s=r(55897),a=r(47527),l=r(17347),u=r(95155),c="dismissableLayer.update",f=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=i.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:y,onDismiss:v,...b}=e,w=i.useContext(f),[A,x]=i.useState(null),E=A?.ownerDocument??globalThis?.document,[,_]=i.useState({}),k=(0,a.s)(t,e=>x(e)),N=Array.from(w.layers),[S]=[...w.layersWithOutsidePointerEventsDisabled].slice(-1),M=N.indexOf(S),R=A?N.indexOf(A):-1,P=w.layersWithOutsidePointerEventsDisabled.size>0,I=R>=M,C=function(e,t=globalThis?.document){let r=(0,l.c)(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!n.current){let n=function(){p("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=n,t.addEventListener("click",o.current,{once:!0})):n()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...w.branches].some(e=>e.contains(t));I&&!r&&(m?.(e),y?.(e),e.defaultPrevented||v?.())},E),T=function(e,t=globalThis?.document){let r=(0,l.c)(e),n=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!n.current&&p("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target;![...w.branches].some(e=>e.contains(t))&&(g?.(e),y?.(e),e.defaultPrevented||v?.())},E);return!function(e,t=globalThis?.document){let r=(0,l.c)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{R===w.layers.size-1&&(h?.(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},E),i.useEffect(()=>{if(A)return r&&(0===w.layersWithOutsidePointerEventsDisabled.size&&(n=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),w.layersWithOutsidePointerEventsDisabled.add(A)),w.layers.add(A),d(),()=>{r&&1===w.layersWithOutsidePointerEventsDisabled.size&&(E.body.style.pointerEvents=n)}},[A,E,r,w]),i.useEffect(()=>()=>{A&&(w.layers.delete(A),w.layersWithOutsidePointerEventsDisabled.delete(A),d())},[A,w]),i.useEffect(()=>{let e=()=>_({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(s.sG.div,{...b,ref:k,style:{pointerEvents:P?I?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.mK)(e.onFocusCapture,T.onFocusCapture),onBlurCapture:(0,o.mK)(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:(0,o.mK)(e.onPointerDownCapture,C.onPointerDownCapture)})});function d(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?(0,s.hO)(i,o):i.dispatchEvent(o)}h.displayName="DismissableLayer",i.forwardRef((e,t)=>{let r=i.useContext(f),n=i.useRef(null),o=(0,a.s)(t,n);return i.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,u.jsx)(s.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch"},98979:(e,t,r)=>{"use strict";r.d(t,{i:()=>a});var n,i=r(12115),o=r(66294),s=(n||(n=r.t(i,2)))[" useInsertionEffect ".trim().toString()]||o.N;function a({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[o,a,l]=function({defaultProp:e,onChange:t}){let[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return s(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}({defaultProp:t,onChange:r}),u=void 0!==e,c=u?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,n])}return[c,i.useCallback(t=>{if(u){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else a(t)},[u,e,a,l])]}Symbol("RADIX:SYNC_STATE")},99502:(e,t,r)=>{"use strict";r.d(t,{VY:()=>f,qN:()=>a,A4:()=>c,yY:()=>i,$J:()=>o,k_:()=>s,Ic:()=>l});let n=new(r(51633)).Vy("properties/5.8.0");function i(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function o(e,t){for(let r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||"object"!=typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function s(e){var t,r,n,i;return t=this,r=void 0,n=void 0,i=function*(){let t=Object.keys(e).map(t=>Promise.resolve(e[t]).then(e=>({key:t,value:e})));return(yield Promise.all(t)).reduce((e,t)=>
7(e[t.key]=t.value,e),{})},new(n||(n=Promise))(function(e,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof n?r:new n(function(e){e(r)})).then(s,a)}l((i=i.apply(t,r||[])).next())})}function a(e,t){e&&"object"==typeof e||n.throwArgumentError("invalid object","object",e),Object.keys(e).forEach(r=>{t[r]||n.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)})}function l(e){let t={};for(let r in e)t[r]=e[r];return t}let u={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function c(e){if(function e(t){if(null==t||u[typeof t])return!0;if(Array.isArray(t)||"object"==typeof t){if(!Object.isFrozen(t))return!1;let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=null;try{i=t[r[n]]}catch(e){continue}if(!e(i))return!1}return!0}return n.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}(e))return e;if(Array.isArray(e))return Object.freeze(e.map(e=>c(e)));if("object"==typeof e){let t={};for(let r in e){let n=e[r];void 0!==n&&i(t,r,c(n))}return t}return n.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}class f{constructor(e){for(const t in e)this[t]=c(e[t])}}},99873:(e,t,r)=>{"use strict";r.d(t,{F:()=>o});let n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(n&&(n+=" "),n+=t);return n},o=(e,t)=>r=>{var o;if((null==t?void 0:t.variants)==null)return i(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:s,defaultVariants:a}=t,l=Object.keys(s).map(e=>{let t=null==r?void 0:r[e],i=null==a?void 0:a[e];if(null===t)return null;let o=n(t)||n(i);return s[e][o]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return i(e,l,null==t||null==(o=t.compoundVariants)?void 0:o.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...a,...u}[t]):({...a,...u})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}}]);
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.